@arbidocs/blocks 0.5.154 → 0.5.156
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-2DAQX5GX.cjs → ConnectedNativeDocxComparison-G3AIBKSN.cjs} +8 -8
- package/dist/{ConnectedNativeDocxComparison-2DAQX5GX.cjs.map → ConnectedNativeDocxComparison-G3AIBKSN.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-LTYB62VM.cjs → ConnectedStreamedWordArtifact-ISNLUTAT.cjs} +8 -8
- package/dist/{ConnectedStreamedWordArtifact-LTYB62VM.cjs.map → ConnectedStreamedWordArtifact-ISNLUTAT.cjs.map} +1 -1
- package/dist/{DocumentReviewCard-ILDLYZ5A.cjs → DocumentReviewCard-7ZH575KX.cjs} +14 -15
- package/dist/DocumentReviewCard-7ZH575KX.cjs.map +1 -0
- package/dist/{FilesViewerDialog-YLD5YFP2.cjs → FilesViewerDialog-6RWJSZZV.cjs} +14 -15
- package/dist/FilesViewerDialog-6RWJSZZV.cjs.map +1 -0
- package/dist/{WorkspaceTableView-V3N64LJG.cjs → WorkspaceTableView-NMERZJZZ.cjs} +5 -5
- package/dist/{WorkspaceTableView-V3N64LJG.cjs.map → WorkspaceTableView-NMERZJZZ.cjs.map} +1 -1
- package/dist/agents/index.cjs +173 -173
- package/dist/{chunk-NRGLF4J4.cjs → chunk-44M4FI2N.cjs} +472 -8
- package/dist/chunk-44M4FI2N.cjs.map +1 -0
- package/dist/{chunk-KWWGUQJV.cjs → chunk-4I4IYVC6.cjs} +7 -7
- package/dist/{chunk-KWWGUQJV.cjs.map → chunk-4I4IYVC6.cjs.map} +1 -1
- package/dist/{chunk-BTQ7IAOH.cjs → chunk-B2L3XNZH.cjs} +4 -4
- package/dist/{chunk-BTQ7IAOH.cjs.map → chunk-B2L3XNZH.cjs.map} +1 -1
- package/dist/{chunk-T7BUGVSG.cjs → chunk-BNHFDXJI.cjs} +36 -36
- package/dist/{chunk-T7BUGVSG.cjs.map → chunk-BNHFDXJI.cjs.map} +1 -1
- package/dist/{chunk-BNDIMTWJ.cjs → chunk-DCD4OHDF.cjs} +28 -28
- package/dist/{chunk-BNDIMTWJ.cjs.map → chunk-DCD4OHDF.cjs.map} +1 -1
- package/dist/{chunk-YXY52OGU.cjs → chunk-FNBUFKHE.cjs} +4 -4
- package/dist/{chunk-YXY52OGU.cjs.map → chunk-FNBUFKHE.cjs.map} +1 -1
- package/dist/{chunk-AURL2KT5.cjs → chunk-HGD4B7GO.cjs} +4 -4
- package/dist/{chunk-AURL2KT5.cjs.map → chunk-HGD4B7GO.cjs.map} +1 -1
- package/dist/{chunk-CNBYM5Q7.cjs → chunk-HJHDKS4V.cjs} +5 -5
- package/dist/{chunk-CNBYM5Q7.cjs.map → chunk-HJHDKS4V.cjs.map} +1 -1
- package/dist/{chunk-ZW2ZFC3Q.cjs → chunk-HLUZMXEZ.cjs} +56 -56
- package/dist/{chunk-ZW2ZFC3Q.cjs.map → chunk-HLUZMXEZ.cjs.map} +1 -1
- package/dist/{chunk-BZVK7JW5.cjs → chunk-K7GBHLLY.cjs} +4 -4
- package/dist/{chunk-BZVK7JW5.cjs.map → chunk-K7GBHLLY.cjs.map} +1 -1
- package/dist/{chunk-6GKCGCMT.cjs → chunk-M24FBUAP.cjs} +4 -4
- package/dist/{chunk-6GKCGCMT.cjs.map → chunk-M24FBUAP.cjs.map} +1 -1
- package/dist/{chunk-GYI4UXX6.cjs → chunk-PD47L6KS.cjs} +4 -4
- package/dist/{chunk-GYI4UXX6.cjs.map → chunk-PD47L6KS.cjs.map} +1 -1
- package/dist/{chunk-OOANNOH4.cjs → chunk-PTT5MZ7O.cjs} +9 -9
- package/dist/{chunk-OOANNOH4.cjs.map → chunk-PTT5MZ7O.cjs.map} +1 -1
- package/dist/{chunk-TSAZWUPZ.cjs → chunk-Q7G2W5VQ.cjs} +4 -4
- package/dist/{chunk-TSAZWUPZ.cjs.map → chunk-Q7G2W5VQ.cjs.map} +1 -1
- package/dist/{chunk-RL2HI6NP.cjs → chunk-S3GVFAFB.cjs} +3 -3
- package/dist/{chunk-RL2HI6NP.cjs.map → chunk-S3GVFAFB.cjs.map} +1 -1
- package/dist/{chunk-O7U6KL2W.cjs → chunk-U6JUIJTP.cjs} +10 -10
- package/dist/{chunk-O7U6KL2W.cjs.map → chunk-U6JUIJTP.cjs.map} +1 -1
- package/dist/{chunk-I3XTTTPZ.cjs → chunk-V4B2GSC6.cjs} +29 -29
- package/dist/{chunk-I3XTTTPZ.cjs.map → chunk-V4B2GSC6.cjs.map} +1 -1
- package/dist/{chunk-TN3UP3CI.cjs → chunk-YHXJWYOF.cjs} +6 -6
- package/dist/{chunk-TN3UP3CI.cjs.map → chunk-YHXJWYOF.cjs.map} +1 -1
- package/dist/{chunk-FEAHTNTY.cjs → chunk-YO7GDNEW.cjs} +91 -5
- package/dist/chunk-YO7GDNEW.cjs.map +1 -0
- package/dist/connect/docx.cjs +11 -11
- package/dist/connect/index.cjs +722 -769
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/viewer.cjs +12 -13
- package/dist/connection/export/ConnectedExportPanel.js +19 -78
- package/dist/connection/export/ConnectedExportPanel.js.map +2 -2
- package/dist/connection/export/transfer-targets.d.ts +66 -0
- package/dist/connection/export/transfer-targets.js +93 -0
- package/dist/connection/export/transfer-targets.js.map +7 -0
- package/dist/connection/export/transfer-text.js +5 -0
- package/dist/connection/export/transfer-text.js.map +2 -2
- package/dist/connection/files/page/ConnectedFilesPage.js +16 -13
- package/dist/connection/files/page/ConnectedFilesPage.js.map +2 -2
- package/dist/connection/pages/ConnectedPagesPage.d.ts +4 -1
- package/dist/connection/pages/ConnectedPagesPage.js +22 -2
- package/dist/connection/pages/ConnectedPagesPage.js.map +2 -2
- package/dist/connection/pages/DocumentBlocks.js +1 -1
- package/dist/connection/pages/DocumentBlocks.js.map +2 -2
- package/dist/connection/pages/EditablePageGrid.js +44 -13
- package/dist/connection/pages/EditablePageGrid.js.map +2 -2
- package/dist/connection/pages/PageTransferDialog.d.ts +38 -0
- package/dist/connection/pages/PageTransferDialog.js +219 -0
- package/dist/connection/pages/PageTransferDialog.js.map +7 -0
- package/dist/connection/pages/PageView.d.ts +6 -2
- package/dist/connection/pages/PageView.js +40 -15
- package/dist/connection/pages/PageView.js.map +2 -2
- package/dist/connection/pages/index.d.ts +1 -0
- package/dist/connection/pages/index.js +6 -0
- package/dist/connection/pages/index.js.map +2 -2
- package/dist/connection/pages/labels.d.ts +3 -1
- package/dist/connection/pages/labels.js +2 -0
- package/dist/connection/pages/labels.js.map +2 -2
- package/dist/connection/storage/ConnectedWorkspaceTrash.d.ts +5 -4
- package/dist/connection/storage/ConnectedWorkspaceTrash.js +1 -1
- package/dist/connection/storage/ConnectedWorkspaceTrash.js.map +2 -2
- package/dist/embed/index.cjs +15 -16
- package/dist/facts/index.cjs +43 -43
- package/dist/files/FilesPage.d.ts +4 -1
- package/dist/files/FilesPage.js +1 -1
- package/dist/files/FilesPage.js.map +2 -2
- package/dist/files/SelectionBar.js +1 -1
- package/dist/files/SelectionBar.js.map +2 -2
- package/dist/files/index.cjs +253 -254
- package/dist/index.cjs +238 -238
- package/dist/pages/index.cjs +291 -38
- package/dist/pages/index.cjs.map +1 -1
- package/dist/settings/index.cjs +9 -9
- package/dist/shell/index.cjs +1 -1
- package/dist/styles.css +1 -1
- package/dist/workflow-canvas/index.cjs +25 -26
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/src/blocks.css +18 -0
- package/dist/DocumentReviewCard-ILDLYZ5A.cjs.map +0 -1
- package/dist/FilesViewerDialog-YLD5YFP2.cjs.map +0 -1
- package/dist/chunk-FEAHTNTY.cjs.map +0 -1
- package/dist/chunk-NRGLF4J4.cjs.map +0 -1
- package/dist/chunk-T3Y3LZ4Y.cjs +0 -477
- package/dist/chunk-T3Y3LZ4Y.cjs.map +0 -1
package/dist/connect/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var chunkDCD4OHDF_cjs = require('../chunk-DCD4OHDF.cjs');
|
|
5
5
|
var chunkTD5V5BZ3_cjs = require('../chunk-TD5V5BZ3.cjs');
|
|
6
6
|
var chunk6OK7ESTL_cjs = require('../chunk-6OK7ESTL.cjs');
|
|
7
7
|
var chunkEG3DPKXM_cjs = require('../chunk-EG3DPKXM.cjs');
|
|
@@ -9,15 +9,15 @@ var chunk2XHJVYNY_cjs = require('../chunk-2XHJVYNY.cjs');
|
|
|
9
9
|
var chunk5GCCUXMT_cjs = require('../chunk-5GCCUXMT.cjs');
|
|
10
10
|
var chunkXYN3RP5W_cjs = require('../chunk-XYN3RP5W.cjs');
|
|
11
11
|
var chunkUJHQ4DA4_cjs = require('../chunk-UJHQ4DA4.cjs');
|
|
12
|
-
var
|
|
12
|
+
var chunkV4B2GSC6_cjs = require('../chunk-V4B2GSC6.cjs');
|
|
13
13
|
var chunkW5QSKW7T_cjs = require('../chunk-W5QSKW7T.cjs');
|
|
14
14
|
var chunk32W2S6DE_cjs = require('../chunk-32W2S6DE.cjs');
|
|
15
15
|
var chunk6OPDKROP_cjs = require('../chunk-6OPDKROP.cjs');
|
|
16
|
-
var
|
|
16
|
+
var chunkPTT5MZ7O_cjs = require('../chunk-PTT5MZ7O.cjs');
|
|
17
17
|
var chunk6P4U63HO_cjs = require('../chunk-6P4U63HO.cjs');
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var
|
|
18
|
+
var chunkFNBUFKHE_cjs = require('../chunk-FNBUFKHE.cjs');
|
|
19
|
+
var chunkM24FBUAP_cjs = require('../chunk-M24FBUAP.cjs');
|
|
20
|
+
var chunkYHXJWYOF_cjs = require('../chunk-YHXJWYOF.cjs');
|
|
21
21
|
var chunkTJY7XPDE_cjs = require('../chunk-TJY7XPDE.cjs');
|
|
22
22
|
var chunkDSLMJ24E_cjs = require('../chunk-DSLMJ24E.cjs');
|
|
23
23
|
var chunkE5TPRRAW_cjs = require('../chunk-E5TPRRAW.cjs');
|
|
@@ -25,7 +25,7 @@ require('../chunk-UMMZNZV3.cjs');
|
|
|
25
25
|
require('../chunk-AEQT2QQX.cjs');
|
|
26
26
|
var chunkSFRKKPBB_cjs = require('../chunk-SFRKKPBB.cjs');
|
|
27
27
|
require('../chunk-XNW62J54.cjs');
|
|
28
|
-
var
|
|
28
|
+
var chunkYO7GDNEW_cjs = require('../chunk-YO7GDNEW.cjs');
|
|
29
29
|
require('../chunk-DWRUGOTQ.cjs');
|
|
30
30
|
require('../chunk-KD66CBYO.cjs');
|
|
31
31
|
var chunk7UPEFZCV_cjs = require('../chunk-7UPEFZCV.cjs');
|
|
@@ -36,18 +36,17 @@ var chunkDDWLMYRO_cjs = require('../chunk-DDWLMYRO.cjs');
|
|
|
36
36
|
var chunk4CIVQWAX_cjs = require('../chunk-4CIVQWAX.cjs');
|
|
37
37
|
var chunkQWVUBTW3_cjs = require('../chunk-QWVUBTW3.cjs');
|
|
38
38
|
var chunkJVEDKKNO_cjs = require('../chunk-JVEDKKNO.cjs');
|
|
39
|
-
var
|
|
39
|
+
var chunkHGD4B7GO_cjs = require('../chunk-HGD4B7GO.cjs');
|
|
40
40
|
var chunkCYWOL2LS_cjs = require('../chunk-CYWOL2LS.cjs');
|
|
41
|
-
var
|
|
41
|
+
var chunkBNHFDXJI_cjs = require('../chunk-BNHFDXJI.cjs');
|
|
42
42
|
var chunkAHUEBRLX_cjs = require('../chunk-AHUEBRLX.cjs');
|
|
43
43
|
require('../chunk-HYUKPHCT.cjs');
|
|
44
|
-
var chunkNRGLF4J4_cjs = require('../chunk-NRGLF4J4.cjs');
|
|
45
|
-
var chunk223D4727_cjs = require('../chunk-223D4727.cjs');
|
|
46
|
-
var chunkSNUBQMIS_cjs = require('../chunk-SNUBQMIS.cjs');
|
|
47
44
|
var chunkDLGYR4JL_cjs = require('../chunk-DLGYR4JL.cjs');
|
|
48
45
|
require('../chunk-JWCVA4LC.cjs');
|
|
49
|
-
var
|
|
50
|
-
var
|
|
46
|
+
var chunk44M4FI2N_cjs = require('../chunk-44M4FI2N.cjs');
|
|
47
|
+
var chunk223D4727_cjs = require('../chunk-223D4727.cjs');
|
|
48
|
+
var chunkSNUBQMIS_cjs = require('../chunk-SNUBQMIS.cjs');
|
|
49
|
+
var chunkK7GBHLLY_cjs = require('../chunk-K7GBHLLY.cjs');
|
|
51
50
|
var chunk4ONPEVTP_cjs = require('../chunk-4ONPEVTP.cjs');
|
|
52
51
|
require('../chunk-V3KLUWQQ.cjs');
|
|
53
52
|
var chunk5GBM7BQB_cjs = require('../chunk-5GBM7BQB.cjs');
|
|
@@ -63,7 +62,7 @@ require('../chunk-OUYBYZ7Y.cjs');
|
|
|
63
62
|
var chunkQQMMCXBP_cjs = require('../chunk-QQMMCXBP.cjs');
|
|
64
63
|
require('../chunk-DTMBAFIL.cjs');
|
|
65
64
|
require('../chunk-7NJKDJVO.cjs');
|
|
66
|
-
var
|
|
65
|
+
var chunkHJHDKS4V_cjs = require('../chunk-HJHDKS4V.cjs');
|
|
67
66
|
var chunkNX56DIG3_cjs = require('../chunk-NX56DIG3.cjs');
|
|
68
67
|
var chunkU4YOVI5D_cjs = require('../chunk-U4YOVI5D.cjs');
|
|
69
68
|
require('../chunk-NEGFHF3V.cjs');
|
|
@@ -87,8 +86,8 @@ var chunkDYIZ7W4P_cjs = require('../chunk-DYIZ7W4P.cjs');
|
|
|
87
86
|
require('../chunk-WQMR3O2D.cjs');
|
|
88
87
|
var chunkNZNBJF3M_cjs = require('../chunk-NZNBJF3M.cjs');
|
|
89
88
|
require('../chunk-NWNVWO6L.cjs');
|
|
90
|
-
require('../chunk-SK6HQ46Q.cjs');
|
|
91
89
|
var chunkWRTEKOQP_cjs = require('../chunk-WRTEKOQP.cjs');
|
|
90
|
+
require('../chunk-SK6HQ46Q.cjs');
|
|
92
91
|
var chunkMNIQDXM6_cjs = require('../chunk-MNIQDXM6.cjs');
|
|
93
92
|
var chunkEKFA2OS3_cjs = require('../chunk-EKFA2OS3.cjs');
|
|
94
93
|
require('../chunk-WCT6FT2K.cjs');
|
|
@@ -97,7 +96,7 @@ var chunk2P7VH2SK_cjs = require('../chunk-2P7VH2SK.cjs');
|
|
|
97
96
|
var chunkZU2B2RZK_cjs = require('../chunk-ZU2B2RZK.cjs');
|
|
98
97
|
require('../chunk-OEJQFPWO.cjs');
|
|
99
98
|
require('../chunk-BQOL4XNZ.cjs');
|
|
100
|
-
var
|
|
99
|
+
var chunkU6JUIJTP_cjs = require('../chunk-U6JUIJTP.cjs');
|
|
101
100
|
var chunkCYN66TBO_cjs = require('../chunk-CYN66TBO.cjs');
|
|
102
101
|
var chunkJARBYN6Z_cjs = require('../chunk-JARBYN6Z.cjs');
|
|
103
102
|
require('../chunk-I4IS6ST6.cjs');
|
|
@@ -107,13 +106,13 @@ require('../chunk-EVZH6Z5O.cjs');
|
|
|
107
106
|
var chunkOYXWQTHF_cjs = require('../chunk-OYXWQTHF.cjs');
|
|
108
107
|
require('../chunk-S237ORM3.cjs');
|
|
109
108
|
require('../chunk-II2OEXHW.cjs');
|
|
110
|
-
require('../chunk-
|
|
109
|
+
require('../chunk-4I4IYVC6.cjs');
|
|
111
110
|
require('../chunk-3YEXZX4H.cjs');
|
|
112
111
|
var chunk4PA6VCCR_cjs = require('../chunk-4PA6VCCR.cjs');
|
|
113
|
-
var chunkRL2HI6NP_cjs = require('../chunk-RL2HI6NP.cjs');
|
|
114
|
-
var chunk6UZC4XVV_cjs = require('../chunk-6UZC4XVV.cjs');
|
|
115
112
|
require('../chunk-G3MRW4WB.cjs');
|
|
116
113
|
require('../chunk-AHDJXIUB.cjs');
|
|
114
|
+
var chunkS3GVFAFB_cjs = require('../chunk-S3GVFAFB.cjs');
|
|
115
|
+
var chunk6UZC4XVV_cjs = require('../chunk-6UZC4XVV.cjs');
|
|
117
116
|
var chunkSLCH5JRI_cjs = require('../chunk-SLCH5JRI.cjs');
|
|
118
117
|
var chunkDKY67DA6_cjs = require('../chunk-DKY67DA6.cjs');
|
|
119
118
|
var chunkYA6GXWC2_cjs = require('../chunk-YA6GXWC2.cjs');
|
|
@@ -180,11 +179,11 @@ var reactQuery = require('@tanstack/react-query');
|
|
|
180
179
|
var documentTools = require('@arbidocs/react/document-tools');
|
|
181
180
|
var artifacts = require('@arbidocs/react/artifacts');
|
|
182
181
|
var browser = require('@arbidocs/sdk/browser');
|
|
183
|
-
var zustand = require('zustand');
|
|
184
182
|
var client = require('@arbidocs/client');
|
|
185
183
|
var core$1 = require('@arbidocs/react/document-tools/core');
|
|
186
184
|
var core = require('@dnd-kit/core');
|
|
187
185
|
var reactVirtual = require('@tanstack/react-virtual');
|
|
186
|
+
var zustand = require('zustand');
|
|
188
187
|
var reactDom = require('react-dom');
|
|
189
188
|
|
|
190
189
|
function useSessionSidebar() {
|
|
@@ -277,7 +276,7 @@ function ConnectedWorkspaceActivity({
|
|
|
277
276
|
[feed.data]
|
|
278
277
|
);
|
|
279
278
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
280
|
-
|
|
279
|
+
chunkHJHDKS4V_cjs.WorkspaceActivityList,
|
|
281
280
|
{
|
|
282
281
|
...listProps,
|
|
283
282
|
items,
|
|
@@ -336,7 +335,7 @@ async function joinEvent({ arbi, environment }, eventId, recurrenceId) {
|
|
|
336
335
|
const event = await arbi.calendar.getEvent(eventId, recurrenceId);
|
|
337
336
|
const url = event.conference?.url;
|
|
338
337
|
if (url && /^https?:\/\//i.test(url)) {
|
|
339
|
-
await
|
|
338
|
+
await chunkYO7GDNEW_cjs.joinEventMeeting(arbi, url);
|
|
340
339
|
return;
|
|
341
340
|
}
|
|
342
341
|
} catch {
|
|
@@ -945,8 +944,8 @@ function NotificationCenter({
|
|
|
945
944
|
}
|
|
946
945
|
}
|
|
947
946
|
) }),
|
|
948
|
-
filtered.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
949
|
-
|
|
947
|
+
filtered.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(chunkS3GVFAFB_cjs.SelectionBar, { count: selected.length, onClear: () => setSelected([]), children: (isCompact) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
948
|
+
chunkS3GVFAFB_cjs.SelectionBarAction,
|
|
950
949
|
{
|
|
951
950
|
icon: lucideReact.Trash2,
|
|
952
951
|
label: "Delete",
|
|
@@ -1068,7 +1067,7 @@ function ConnectedNotificationCenter({ headerRight }) {
|
|
|
1068
1067
|
renderWorkspace: (workspaceId) => {
|
|
1069
1068
|
const workspace = byId.get(workspaceId);
|
|
1070
1069
|
return workspace ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1071
|
-
|
|
1070
|
+
chunkYO7GDNEW_cjs.ConnectedWorkspaceEntity,
|
|
1072
1071
|
{
|
|
1073
1072
|
workspace,
|
|
1074
1073
|
size: 16,
|
|
@@ -1197,14 +1196,14 @@ function ConnectedOfflineStatus({ compact = false }) {
|
|
|
1197
1196
|
const openOutbox = () => openMail?.(outbox.length > 0 ? { folder: outboxFolder } : void 0);
|
|
1198
1197
|
let tone;
|
|
1199
1198
|
let label;
|
|
1200
|
-
let onOpen = pending === 0 && outbox.length + mailChanges > 0 ? openOutbox :
|
|
1199
|
+
let onOpen = pending === 0 && outbox.length + mailChanges > 0 ? openOutbox : chunkBNHFDXJI_cjs.openPendingSyncDialog;
|
|
1201
1200
|
if (!isOnline) {
|
|
1202
1201
|
tone = "offline";
|
|
1203
1202
|
label = waiting > 0 ? `Offline \xB7 ${waiting} pending` : "Offline";
|
|
1204
1203
|
} else if (failed > 0) {
|
|
1205
1204
|
tone = "failed";
|
|
1206
1205
|
label = `${plural(failed, "change", "changes")} didn\u2019t sync`;
|
|
1207
|
-
onOpen =
|
|
1206
|
+
onOpen = chunkBNHFDXJI_cjs.openPendingSyncDialog;
|
|
1208
1207
|
} else if (outboxFailed > 0) {
|
|
1209
1208
|
tone = "failed";
|
|
1210
1209
|
label = `${plural(outboxFailed, "email", "emails")} not sent`;
|
|
@@ -1336,7 +1335,7 @@ function ConnectedSkillUpload({ onDone, labels, className }) {
|
|
|
1336
1335
|
onChange: (e) => {
|
|
1337
1336
|
const file = e.target.files?.[0];
|
|
1338
1337
|
e.target.value = "";
|
|
1339
|
-
if (file) void add(() =>
|
|
1338
|
+
if (file) void add(() => chunkU6JUIJTP_cjs.importSkillFile(file));
|
|
1340
1339
|
}
|
|
1341
1340
|
}
|
|
1342
1341
|
),
|
|
@@ -1361,7 +1360,7 @@ function ConnectedSkillUpload({ onDone, labels, className }) {
|
|
|
1361
1360
|
className: "space-y-2",
|
|
1362
1361
|
onSubmit: (e) => {
|
|
1363
1362
|
e.preventDefault();
|
|
1364
|
-
if (url.trim()) void add(() =>
|
|
1363
|
+
if (url.trim()) void add(() => chunkU6JUIJTP_cjs.importSkillFromUrl(url));
|
|
1365
1364
|
},
|
|
1366
1365
|
children: [
|
|
1367
1366
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "skills-add-url", children: l.fromLink }),
|
|
@@ -1429,9 +1428,9 @@ function ConnectedSkillsLibrary({
|
|
|
1429
1428
|
const [type, setType] = react.useState("all");
|
|
1430
1429
|
const [view, setView] = react.useState("gallery");
|
|
1431
1430
|
const [isBusy, setIsBusy] = react.useState(false);
|
|
1432
|
-
const all = react.useMemo(() =>
|
|
1431
|
+
const all = react.useMemo(() => chunkU6JUIJTP_cjs.buildLibrarySkills(builtins, listings ?? []), [builtins, listings]);
|
|
1433
1432
|
const shown = react.useMemo(
|
|
1434
|
-
() =>
|
|
1433
|
+
() => chunkU6JUIJTP_cjs.filterLibrarySkills(all, { query, source, type }),
|
|
1435
1434
|
[all, query, source, type]
|
|
1436
1435
|
);
|
|
1437
1436
|
const current = all.find((s) => s.slug === selected) ?? null;
|
|
@@ -1442,21 +1441,21 @@ function ConnectedSkillsLibrary({
|
|
|
1442
1441
|
const count2 = (s) => all.filter((x) => x.source === s).length;
|
|
1443
1442
|
const sourceOptions = [
|
|
1444
1443
|
{ id: "all", label: "All", count: all.length },
|
|
1445
|
-
{ id: "builtin", label:
|
|
1446
|
-
{ id: "mine", label:
|
|
1447
|
-
{ id: "shared", label:
|
|
1444
|
+
{ id: "builtin", label: chunkU6JUIJTP_cjs.SKILL_SOURCE_LABELS.builtin, count: count2("builtin") },
|
|
1445
|
+
{ id: "mine", label: chunkU6JUIJTP_cjs.SKILL_SOURCE_LABELS.mine, count: count2("mine") },
|
|
1446
|
+
{ id: "shared", label: chunkU6JUIJTP_cjs.SKILL_SOURCE_LABELS.shared, count: count2("shared") }
|
|
1448
1447
|
];
|
|
1449
1448
|
const types = [...new Set(all.map((s) => s.type))];
|
|
1450
1449
|
const typeOptions = [
|
|
1451
1450
|
{ id: "all", label: "Any kind" },
|
|
1452
|
-
...types.map((t) => ({ id: t, label:
|
|
1451
|
+
...types.map((t) => ({ id: t, label: chunkU6JUIJTP_cjs.SKILL_TYPE_LABELS[t] ?? t }))
|
|
1453
1452
|
];
|
|
1454
1453
|
const pick = (slug) => {
|
|
1455
1454
|
setSelected(slug);
|
|
1456
1455
|
setMode("detail");
|
|
1457
1456
|
};
|
|
1458
1457
|
const markdownOf = async (skill) => {
|
|
1459
|
-
if (!skill.docExtId) return
|
|
1458
|
+
if (!skill.docExtId) return chunkU6JUIJTP_cjs.workflowToSkillMarkdown(skill.workflow);
|
|
1460
1459
|
const response = await arbi.documents.download(skill.docExtId);
|
|
1461
1460
|
if (!response.ok) throw new Error(`Could not read the skill (${response.status})`);
|
|
1462
1461
|
return response.text();
|
|
@@ -1520,7 +1519,7 @@ function ConnectedSkillsLibrary({
|
|
|
1520
1519
|
try {
|
|
1521
1520
|
documentTools.downloadBlob(
|
|
1522
1521
|
new Blob([await markdownOf(skill)], { type: "text/markdown" }),
|
|
1523
|
-
|
|
1522
|
+
chunkU6JUIJTP_cjs.SKILL_MAIN_FILENAME
|
|
1524
1523
|
);
|
|
1525
1524
|
} catch (error) {
|
|
1526
1525
|
notify19(errorText(error, "Could not export the skill"), "error");
|
|
@@ -1561,10 +1560,10 @@ function ConnectedSkillsLibrary({
|
|
|
1561
1560
|
}
|
|
1562
1561
|
)
|
|
1563
1562
|
] }),
|
|
1564
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1563
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkU6JUIJTP_cjs.SkillViewToggle, { value: view, onChange: setView })
|
|
1565
1564
|
] }),
|
|
1566
1565
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1567
|
-
|
|
1566
|
+
chunkU6JUIJTP_cjs.SkillFilterChips,
|
|
1568
1567
|
{
|
|
1569
1568
|
label: "Show",
|
|
1570
1569
|
value: source,
|
|
@@ -1573,7 +1572,7 @@ function ConnectedSkillsLibrary({
|
|
|
1573
1572
|
}
|
|
1574
1573
|
),
|
|
1575
1574
|
types.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1576
|
-
|
|
1575
|
+
chunkU6JUIJTP_cjs.SkillFilterChips,
|
|
1577
1576
|
{
|
|
1578
1577
|
label: "Kind",
|
|
1579
1578
|
value: type,
|
|
@@ -1620,12 +1619,12 @@ function ConnectedSkillsLibrary({
|
|
|
1620
1619
|
view === "gallery" ? "grid grid-cols-[repeat(auto-fill,minmax(9.5rem,1fr))]" : "flex flex-col"
|
|
1621
1620
|
),
|
|
1622
1621
|
children: shown.map((skill) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1623
|
-
|
|
1622
|
+
chunkU6JUIJTP_cjs.SkillTile,
|
|
1624
1623
|
{
|
|
1625
1624
|
name: skill.title,
|
|
1626
1625
|
testId: `skill-tile-${skill.slug}`,
|
|
1627
1626
|
description: skill.description,
|
|
1628
|
-
sourceLabel: skill.isShared ? `${
|
|
1627
|
+
sourceLabel: skill.isShared ? `${chunkU6JUIJTP_cjs.SKILL_SOURCE_LABELS.mine}, shared` : chunkU6JUIJTP_cjs.SKILL_SOURCE_LABELS[skill.source],
|
|
1629
1628
|
type: skill.type,
|
|
1630
1629
|
icon,
|
|
1631
1630
|
layout: view,
|
|
@@ -1660,7 +1659,7 @@ function ConnectedSkillsLibrary({
|
|
|
1660
1659
|
}
|
|
1661
1660
|
),
|
|
1662
1661
|
mode === "new" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1663
|
-
|
|
1662
|
+
chunkU6JUIJTP_cjs.SkillGenerateForm,
|
|
1664
1663
|
{
|
|
1665
1664
|
icon,
|
|
1666
1665
|
onGenerate: (desc) => {
|
|
@@ -1687,11 +1686,11 @@ function ConnectedSkillsLibrary({
|
|
|
1687
1686
|
),
|
|
1688
1687
|
mode === "add" && /* @__PURE__ */ jsxRuntime.jsx(ConnectedSkillUpload, { onDone: done }),
|
|
1689
1688
|
mode === "detail" && current && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1690
|
-
|
|
1689
|
+
chunkU6JUIJTP_cjs.SkillLibraryDetail,
|
|
1691
1690
|
{
|
|
1692
1691
|
skill: current,
|
|
1693
1692
|
icon,
|
|
1694
|
-
instructions: current.docExtId ? currentText ?
|
|
1693
|
+
instructions: current.docExtId ? currentText ? chunkU6JUIJTP_cjs.parseSkillFrontmatter(currentText, chunkU6JUIJTP_cjs.SKILL_MAIN_FILENAME).content : "" : current.workflow.run.kind === "prompt" ? current.workflow.run.promptTemplate : "",
|
|
1695
1694
|
isLoading: !!current.docExtId && textLoading,
|
|
1696
1695
|
actions: {
|
|
1697
1696
|
onRun: () => onRun(current.slug),
|
|
@@ -1726,7 +1725,7 @@ function SkillEditor({
|
|
|
1726
1725
|
const [seeded, setSeeded] = react.useState(!isEditing);
|
|
1727
1726
|
const [nameError, setNameError] = react.useState(null);
|
|
1728
1727
|
if (isEditing && !seeded && text !== void 0) {
|
|
1729
|
-
const parsed =
|
|
1728
|
+
const parsed = chunkU6JUIJTP_cjs.parseSkillFrontmatter(text, chunkU6JUIJTP_cjs.SKILL_MAIN_FILENAME);
|
|
1730
1729
|
setDescription(parsed.description ?? "");
|
|
1731
1730
|
setBody(parsed.content ?? "");
|
|
1732
1731
|
setSeeded(true);
|
|
@@ -1740,15 +1739,15 @@ function SkillEditor({
|
|
|
1740
1739
|
notify19("Add a short description.", "error");
|
|
1741
1740
|
return;
|
|
1742
1741
|
}
|
|
1743
|
-
const slug =
|
|
1742
|
+
const slug = chunkU6JUIJTP_cjs.skillSlug(name);
|
|
1744
1743
|
try {
|
|
1745
|
-
await onSave(slug,
|
|
1744
|
+
await onSave(slug, chunkU6JUIJTP_cjs.serializeSkill({ name: slug, description, body }), isEditing);
|
|
1746
1745
|
} catch (err) {
|
|
1747
1746
|
notify19(errorText(err, "Could not save the skill"), "error");
|
|
1748
1747
|
}
|
|
1749
1748
|
};
|
|
1750
1749
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1751
|
-
|
|
1750
|
+
chunkU6JUIJTP_cjs.SkillEditForm,
|
|
1752
1751
|
{
|
|
1753
1752
|
name,
|
|
1754
1753
|
onNameChange: setName,
|
|
@@ -1841,7 +1840,7 @@ function ConnectedSkillsBrowser({
|
|
|
1841
1840
|
}
|
|
1842
1841
|
) }),
|
|
1843
1842
|
runSkillId && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1844
|
-
|
|
1843
|
+
chunkV4B2GSC6_cjs.ConnectedTaskComposer,
|
|
1845
1844
|
{
|
|
1846
1845
|
kind: "workflow",
|
|
1847
1846
|
open: true,
|
|
@@ -1865,9 +1864,9 @@ function ConnectedAgentCreator({
|
|
|
1865
1864
|
agent,
|
|
1866
1865
|
initialName,
|
|
1867
1866
|
onSaved,
|
|
1868
|
-
capabilities =
|
|
1869
|
-
templates =
|
|
1870
|
-
types =
|
|
1867
|
+
capabilities = chunkU6JUIJTP_cjs.DEFAULT_AGENT_CAPABILITIES,
|
|
1868
|
+
templates = chunkU6JUIJTP_cjs.DEFAULT_AGENT_TEMPLATES,
|
|
1869
|
+
types = chunkU6JUIJTP_cjs.DEFAULT_AGENT_TYPES,
|
|
1871
1870
|
canRevokeWorkspaces = false,
|
|
1872
1871
|
labels
|
|
1873
1872
|
}) {
|
|
@@ -1909,7 +1908,7 @@ function ConnectedAgentCreator({
|
|
|
1909
1908
|
const initialValues = react.useMemo(
|
|
1910
1909
|
() => ({
|
|
1911
1910
|
name: agent?.given_name ?? initialName ?? "",
|
|
1912
|
-
persona: isEdit ?
|
|
1911
|
+
persona: isEdit ? chunkU6JUIJTP_cjs.stripPersonaPreamble(String(agents.PERSONA ?? "")) : "",
|
|
1913
1912
|
modelName: String(agents.AGENT_MODEL_NAME ?? ""),
|
|
1914
1913
|
capabilities: Object.fromEntries(capabilities.map(({ key }) => [key, Boolean(agents[key])])),
|
|
1915
1914
|
type: "builtin",
|
|
@@ -1928,7 +1927,7 @@ function ConnectedAgentCreator({
|
|
|
1928
1927
|
try {
|
|
1929
1928
|
let agentExtId = agent?.external_id ?? early?.id ?? "";
|
|
1930
1929
|
if (!agentExtId) {
|
|
1931
|
-
if (!
|
|
1930
|
+
if (!chunkU6JUIJTP_cjs.isValidAgentName(values.name)) {
|
|
1932
1931
|
notify19("Give the agent a name first.", "error");
|
|
1933
1932
|
return;
|
|
1934
1933
|
}
|
|
@@ -1964,7 +1963,7 @@ function ConnectedAgentCreator({
|
|
|
1964
1963
|
title: `agent-${name}`,
|
|
1965
1964
|
sections: {
|
|
1966
1965
|
Agents: {
|
|
1967
|
-
PERSONA:
|
|
1966
|
+
PERSONA: chunkU6JUIJTP_cjs.composePersona(name, values.persona),
|
|
1968
1967
|
...values.modelName ? { AGENT_MODEL_NAME: values.modelName } : {},
|
|
1969
1968
|
...Object.fromEntries(capabilities.map(({ key }) => [key, !!values.capabilities[key]])),
|
|
1970
1969
|
ENABLED_SKILLS: values.capabilities.SKILLS_ENABLED && skills.length ? skills : null,
|
|
@@ -1987,7 +1986,7 @@ function ConnectedAgentCreator({
|
|
|
1987
1986
|
};
|
|
1988
1987
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1989
1988
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1990
|
-
|
|
1989
|
+
chunkU6JUIJTP_cjs.AgentCreator,
|
|
1991
1990
|
{
|
|
1992
1991
|
open: ready,
|
|
1993
1992
|
onOpenChange,
|
|
@@ -2003,11 +2002,11 @@ function ConnectedAgentCreator({
|
|
|
2003
2002
|
) : void 0,
|
|
2004
2003
|
revokingWorkspaceId: revokeAccess.isPending ? revokeAccess.variables?.workspaceId : void 0,
|
|
2005
2004
|
avatar: (values) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2006
|
-
|
|
2005
|
+
chunkU6JUIJTP_cjs.AgentAvatarField,
|
|
2007
2006
|
{
|
|
2008
2007
|
picture,
|
|
2009
2008
|
isBusy: avatarBusy,
|
|
2010
|
-
canGenerate: isEdit ||
|
|
2009
|
+
canGenerate: isEdit || chunkU6JUIJTP_cjs.isValidAgentName(values.name),
|
|
2011
2010
|
onGenerate: () => handleGenerateAvatar(values)
|
|
2012
2011
|
}
|
|
2013
2012
|
),
|
|
@@ -2059,7 +2058,7 @@ function ConnectedAgentCreator({
|
|
|
2059
2058
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { children: "Connect your agent" }),
|
|
2060
2059
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogDescription, { children: "This key is shown once. Run the script on the machine that will host the agent." })
|
|
2061
2060
|
] }),
|
|
2062
|
-
connect && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2061
|
+
connect && /* @__PURE__ */ jsxRuntime.jsx(chunkU6JUIJTP_cjs.AgentConnectInstructions, { email: connect.email, signingKey: connect.signingKey })
|
|
2063
2062
|
]
|
|
2064
2063
|
}
|
|
2065
2064
|
) })
|
|
@@ -2086,7 +2085,7 @@ function useConnectedAgentManagement({
|
|
|
2086
2085
|
const onEditorOpenChange = (open) => {
|
|
2087
2086
|
setEditorOpen(open);
|
|
2088
2087
|
};
|
|
2089
|
-
const
|
|
2088
|
+
const create2 = () => {
|
|
2090
2089
|
setEditing(null);
|
|
2091
2090
|
setEditorOpen(true);
|
|
2092
2091
|
};
|
|
@@ -2120,7 +2119,7 @@ function useConnectedAgentManagement({
|
|
|
2120
2119
|
return {
|
|
2121
2120
|
agents,
|
|
2122
2121
|
isLoading,
|
|
2123
|
-
create:
|
|
2122
|
+
create: create2,
|
|
2124
2123
|
edit,
|
|
2125
2124
|
assign,
|
|
2126
2125
|
remove,
|
|
@@ -2451,7 +2450,7 @@ function useMemoryCount(enabled) {
|
|
|
2451
2450
|
}
|
|
2452
2451
|
function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
|
|
2453
2452
|
const { notify: notify19, confirm, openConversation, openDocument } = chunk46LX6EQT_cjs.useBlocksEnvironment();
|
|
2454
|
-
const people =
|
|
2453
|
+
const people = chunkV4B2GSC6_cjs.useTaskPeople();
|
|
2455
2454
|
const canEditShared = react$1.useCanEditShared();
|
|
2456
2455
|
const isWorkspaceOwner = react$1.useIsWorkspaceOwner();
|
|
2457
2456
|
const { data: workflows = [] } = react$1.useWorkflows({ live: true });
|
|
@@ -2477,7 +2476,7 @@ function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
|
|
|
2477
2476
|
}, [documents]);
|
|
2478
2477
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2479
2478
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2480
|
-
|
|
2479
|
+
chunkU6JUIJTP_cjs.TaskTable,
|
|
2481
2480
|
{
|
|
2482
2481
|
tasks,
|
|
2483
2482
|
isLoading,
|
|
@@ -2507,7 +2506,7 @@ function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
|
|
|
2507
2506
|
}
|
|
2508
2507
|
),
|
|
2509
2508
|
activityFor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2510
|
-
|
|
2509
|
+
chunkV4B2GSC6_cjs.ConnectedTaskActivityDialog,
|
|
2511
2510
|
{
|
|
2512
2511
|
conversationId: activityFor.external_id,
|
|
2513
2512
|
taskName: activityFor.title || l.untitledTask,
|
|
@@ -2546,7 +2545,7 @@ function AgentsLauncher({ workflows, renderIcon, labels: l, testId }) {
|
|
|
2546
2545
|
[workflows, skills, l.skillFiles]
|
|
2547
2546
|
);
|
|
2548
2547
|
const launch = async ({ workflow, inputs, agentId }) => {
|
|
2549
|
-
const values =
|
|
2548
|
+
const values = chunkU6JUIJTP_cjs.defaultTaskComposerValues(launchable, {
|
|
2550
2549
|
workflowId: workflow.id,
|
|
2551
2550
|
assignee: "agent",
|
|
2552
2551
|
inputs,
|
|
@@ -2666,7 +2665,7 @@ function ConnectedAgentsPageScope(props) {
|
|
|
2666
2665
|
children,
|
|
2667
2666
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedAgentCreator, { ...management.editorProps, ...agentOptions.creator }),
|
|
2668
2667
|
taskDialog && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2669
|
-
|
|
2668
|
+
chunkV4B2GSC6_cjs.ConnectedTaskComposer,
|
|
2670
2669
|
{
|
|
2671
2670
|
open: true,
|
|
2672
2671
|
onOpenChange: (open) => !open && setTaskDialog(null),
|
|
@@ -2688,7 +2687,7 @@ function AgentsGallery() {
|
|
|
2688
2687
|
cardTestIds
|
|
2689
2688
|
} = agentOptions;
|
|
2690
2689
|
const { openConversation } = chunk46LX6EQT_cjs.useBlocksEnvironment();
|
|
2691
|
-
const tasksByAgent = react.useMemo(() =>
|
|
2690
|
+
const tasksByAgent = react.useMemo(() => chunkU6JUIJTP_cjs.groupAgentTasks(tasks), [tasks]);
|
|
2692
2691
|
const behaviour = useAgentBehaviour(l.defaultBehaviour, details.includes("behaviour"));
|
|
2693
2692
|
const { agents } = management;
|
|
2694
2693
|
const cardDetails = (agent) => details.map(
|
|
@@ -2703,7 +2702,7 @@ function AgentsGallery() {
|
|
|
2703
2702
|
) : 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)
|
|
2704
2703
|
);
|
|
2705
2704
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2706
|
-
|
|
2705
|
+
chunkU6JUIJTP_cjs.AgentGallery,
|
|
2707
2706
|
{
|
|
2708
2707
|
count: agents.length,
|
|
2709
2708
|
onCreate: management.create,
|
|
@@ -2715,7 +2714,7 @@ function AgentsGallery() {
|
|
|
2715
2714
|
const watchConversationId = running[0]?.external_id ?? null;
|
|
2716
2715
|
const progress = agentTasks[0] ? chunkBH322H5B_cjs.goalProgress(agentTasks[0]) : null;
|
|
2717
2716
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2718
|
-
|
|
2717
|
+
chunkU6JUIJTP_cjs.AgentCard,
|
|
2719
2718
|
{
|
|
2720
2719
|
name: displayName(agent),
|
|
2721
2720
|
avatar: /* @__PURE__ */ jsxRuntime.jsx(AgentInitialsAvatar, { agent }),
|
|
@@ -2823,7 +2822,7 @@ function AgentsSectionBody({ id }) {
|
|
|
2823
2822
|
) });
|
|
2824
2823
|
case "scheduled":
|
|
2825
2824
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-[min(32rem,70dvh)] min-h-64 flex-col", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2826
|
-
|
|
2825
|
+
chunkK7GBHLLY_cjs.ConnectedWorkflowsTable,
|
|
2827
2826
|
{
|
|
2828
2827
|
filter: "scheduled",
|
|
2829
2828
|
onEdit: (w) => openWorkflow?.(w.external_id),
|
|
@@ -3127,7 +3126,7 @@ function ConnectedTagTable({
|
|
|
3127
3126
|
const fail2 = (fallback) => (e) => notify19(browser.refusalReason(e, fallback), "error");
|
|
3128
3127
|
const snapshot2 = (data) => {
|
|
3129
3128
|
const title = exportTitle ?? ui.tagKindTitle(kind, { plural: true });
|
|
3130
|
-
const bytes =
|
|
3129
|
+
const bytes = chunkHJHDKS4V_cjs.tagTableDocx(data, {
|
|
3131
3130
|
title,
|
|
3132
3131
|
nameOf: (id) => people.find((p) => p.value === id)?.label
|
|
3133
3132
|
});
|
|
@@ -3136,7 +3135,7 @@ function ConnectedTagTable({
|
|
|
3136
3135
|
return { blob: new Blob([bytes], { type: chunkUKOYN2WD_cjs.DOCX_MIME_TYPE }), name };
|
|
3137
3136
|
};
|
|
3138
3137
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3139
|
-
|
|
3138
|
+
chunkHJHDKS4V_cjs.TagTable,
|
|
3140
3139
|
{
|
|
3141
3140
|
...props,
|
|
3142
3141
|
table,
|
|
@@ -3974,8 +3973,8 @@ function ConnectedAiReview({
|
|
|
3974
3973
|
const generate = react$1.useGenerateDocTags();
|
|
3975
3974
|
const { data: liveDocs = [] } = react$1.useDocuments();
|
|
3976
3975
|
const { data: tags = [] } = react$1.useTags();
|
|
3977
|
-
const result =
|
|
3978
|
-
const setResult =
|
|
3976
|
+
const result = chunkHGD4B7GO_cjs.useAiReviewStore((s) => s.run);
|
|
3977
|
+
const setResult = chunkHGD4B7GO_cjs.useAiReviewStore((s) => s.setRun);
|
|
3979
3978
|
const phase = result ? "review" : "ask";
|
|
3980
3979
|
const docCount = documents.length;
|
|
3981
3980
|
const scope = allDocuments ? "processed" : "selected";
|
|
@@ -4210,7 +4209,7 @@ function ConnectedAiReview({
|
|
|
4210
4209
|
}, [kind]);
|
|
4211
4210
|
const description = phase === "ask" ? assistant.reviewEach(docCount, scope) : aiCellsTotal > 0 ? reviewProgress(aiCellsDone, aiCellsEmpty, aiCellsTotal) : `Applied to ${rows.length} document${plural2(rows.length)}`;
|
|
4212
4211
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4213
|
-
|
|
4212
|
+
chunk44M4FI2N_cjs.AiReviewDialogView,
|
|
4214
4213
|
{
|
|
4215
4214
|
open,
|
|
4216
4215
|
onOpenChange: handleOpenChange,
|
|
@@ -4261,9 +4260,9 @@ function GlossaryExport({ labelId, nameOf }) {
|
|
|
4261
4260
|
const narrowed = agreements.find((a) => a.id === narrowTo);
|
|
4262
4261
|
const title = narrowed ? `Glossary - ${narrowed.name}` : "Glossary";
|
|
4263
4262
|
const download = (format) => {
|
|
4264
|
-
const entries =
|
|
4265
|
-
const blob = format === "docx" ? new Blob([
|
|
4266
|
-
documentTools.downloadBlob(blob,
|
|
4263
|
+
const entries = chunkHJHDKS4V_cjs.glossaryEntries(sources, { labelId: narrowed?.id });
|
|
4264
|
+
const blob = format === "docx" ? new Blob([chunkHJHDKS4V_cjs.glossaryDocx(entries, { title })], { type: chunkUKOYN2WD_cjs.DOCX_MIME_TYPE }) : new Blob([chunkHJHDKS4V_cjs.glossaryMarkdown(entries, { title })], { type: "text/markdown" });
|
|
4265
|
+
documentTools.downloadBlob(blob, chunkHJHDKS4V_cjs.glossaryFileName(title, format));
|
|
4267
4266
|
};
|
|
4268
4267
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", "data-testid": "tags-glossary", children: [
|
|
4269
4268
|
agreements.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -4327,8 +4326,8 @@ function useOpenTaggedContent() {
|
|
|
4327
4326
|
if (!workspaceId) return;
|
|
4328
4327
|
session.setTransientView("topbar.filter", "");
|
|
4329
4328
|
if (kind === "documents") {
|
|
4330
|
-
|
|
4331
|
-
|
|
4329
|
+
chunkHGD4B7GO_cjs.useFilesPrefs.getState().setDocumentFilters({ [tagId]: "include" });
|
|
4330
|
+
chunkHGD4B7GO_cjs.useFilesPrefs.getState().setViewMode("grid");
|
|
4332
4331
|
session.setPage("documents");
|
|
4333
4332
|
} else if (kind === "facts") {
|
|
4334
4333
|
session.setViewFilter(FACTS_FILTER_KEY, { [tagId]: "include" });
|
|
@@ -4367,7 +4366,7 @@ function ConnectedTagForm({
|
|
|
4367
4366
|
nameByKind = false
|
|
4368
4367
|
}) {
|
|
4369
4368
|
const isCreate = !tag;
|
|
4370
|
-
const memberById =
|
|
4369
|
+
const memberById = chunkDCD4OHDF_cjs.useMemberLookup();
|
|
4371
4370
|
const creator = memberById(tag?.created_by_ext_id);
|
|
4372
4371
|
const updater = memberById(tag?.updated_by_ext_id);
|
|
4373
4372
|
const fieldLabel = ui.getEntityLabel("TAG", "SINGULAR");
|
|
@@ -4446,19 +4445,19 @@ function ConnectedTagForm({
|
|
|
4446
4445
|
metaLines.push({
|
|
4447
4446
|
text: `Created ${ui.formatFriendlyDate(tag.created_at)}`,
|
|
4448
4447
|
byLabel: "by",
|
|
4449
|
-
by: creator ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
4448
|
+
by: creator ? /* @__PURE__ */ jsxRuntime.jsx(chunkM24FBUAP_cjs.DocumentUser, { user: creator }) : void 0
|
|
4450
4449
|
});
|
|
4451
4450
|
if (tag.updated_at && tag.updated_at !== tag.created_at) {
|
|
4452
4451
|
metaLines.push({
|
|
4453
4452
|
text: `Updated ${ui.formatFriendlyDate(tag.updated_at)}`,
|
|
4454
4453
|
byLabel: "by",
|
|
4455
|
-
by: updater ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
4454
|
+
by: updater ? /* @__PURE__ */ jsxRuntime.jsx(chunkM24FBUAP_cjs.DocumentUser, { user: updater }) : void 0
|
|
4456
4455
|
});
|
|
4457
4456
|
}
|
|
4458
4457
|
}
|
|
4459
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4458
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunk44M4FI2N_cjs.TagFormRoot, { children: [
|
|
4460
4459
|
!nameOnRow && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4461
|
-
|
|
4460
|
+
chunk44M4FI2N_cjs.TagFormNameField,
|
|
4462
4461
|
{
|
|
4463
4462
|
label: group || nameByKind ? `${ui.tagKindTitle(kind)} Name` : `${columnLabel} Name`,
|
|
4464
4463
|
placeholder: `Enter ${kindNoun ?? columnLabel.toLowerCase()} name...`,
|
|
@@ -4468,7 +4467,7 @@ function ConnectedTagForm({
|
|
|
4468
4467
|
}
|
|
4469
4468
|
),
|
|
4470
4469
|
kinds2.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4471
|
-
|
|
4470
|
+
chunk44M4FI2N_cjs.TagFormSelectField,
|
|
4472
4471
|
{
|
|
4473
4472
|
label: "Kind",
|
|
4474
4473
|
testId: "inline-tag-form-kind-field",
|
|
@@ -4483,7 +4482,7 @@ function ConnectedTagForm({
|
|
|
4483
4482
|
}
|
|
4484
4483
|
),
|
|
4485
4484
|
kind === "annotation" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4486
|
-
|
|
4485
|
+
chunk44M4FI2N_cjs.TagFormSelectField,
|
|
4487
4486
|
{
|
|
4488
4487
|
label: group === "annotation" ? "Value type" : "Field Type",
|
|
4489
4488
|
testId: "inline-tag-form-type-field",
|
|
@@ -4495,7 +4494,7 @@ function ConnectedTagForm({
|
|
|
4495
4494
|
}
|
|
4496
4495
|
),
|
|
4497
4496
|
showParentPicker && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4498
|
-
|
|
4497
|
+
chunk44M4FI2N_cjs.TagFormSelectField,
|
|
4499
4498
|
{
|
|
4500
4499
|
label: "Nested Under",
|
|
4501
4500
|
value: parentId,
|
|
@@ -4517,14 +4516,14 @@ function ConnectedTagForm({
|
|
|
4517
4516
|
]
|
|
4518
4517
|
}
|
|
4519
4518
|
),
|
|
4520
|
-
nestingEnabled && hasChildren && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4519
|
+
nestingEnabled && hasChildren && /* @__PURE__ */ jsxRuntime.jsxs(chunk44M4FI2N_cjs.TagFormNote, { testId: "inline-tag-form-parent-locked", children: [
|
|
4521
4520
|
"Other fields are nested under this one, so it cannot itself be nested \u2014 fields nest",
|
|
4522
4521
|
" ",
|
|
4523
4522
|
browser.TAG_NESTING_MAX_DEPTH,
|
|
4524
4523
|
" levels deep."
|
|
4525
4524
|
] }),
|
|
4526
4525
|
tagType === "select" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4527
|
-
|
|
4526
|
+
chunk44M4FI2N_cjs.TagFormOptionsEditor,
|
|
4528
4527
|
{
|
|
4529
4528
|
label: "Options",
|
|
4530
4529
|
options,
|
|
@@ -4537,7 +4536,7 @@ function ConnectedTagForm({
|
|
|
4537
4536
|
}
|
|
4538
4537
|
),
|
|
4539
4538
|
tagType === "text" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4540
|
-
|
|
4539
|
+
chunk44M4FI2N_cjs.TagFormInstructionField,
|
|
4541
4540
|
{
|
|
4542
4541
|
label: "AI Instruction",
|
|
4543
4542
|
optionalLabel: "(optional)",
|
|
@@ -4547,12 +4546,12 @@ function ConnectedTagForm({
|
|
|
4547
4546
|
onChange: setInstruction
|
|
4548
4547
|
}
|
|
4549
4548
|
),
|
|
4550
|
-
metaLines.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4549
|
+
metaLines.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.TagFormMeta, { lines: metaLines }),
|
|
4551
4550
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4552
|
-
|
|
4551
|
+
chunk44M4FI2N_cjs.TagFormFooter,
|
|
4553
4552
|
{
|
|
4554
4553
|
sharedToggle: isCreate || !group ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
4555
|
-
|
|
4554
|
+
chunk44M4FI2N_cjs.TagFormSharedToggle,
|
|
4556
4555
|
{
|
|
4557
4556
|
label: "Shared with workspace",
|
|
4558
4557
|
toggle: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4792,7 +4791,7 @@ function KindSection({
|
|
|
4792
4791
|
{
|
|
4793
4792
|
testId: `tags-kind-${kind}`,
|
|
4794
4793
|
title: ui.tagKindTitle(kind, { plural: true }),
|
|
4795
|
-
description:
|
|
4794
|
+
description: chunkHJHDKS4V_cjs.tagKindDescription(kind),
|
|
4796
4795
|
children: [
|
|
4797
4796
|
browser.isEntityTag({ kind }) && extractingCount > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4798
4797
|
"p",
|
|
@@ -4802,9 +4801,9 @@ function KindSection({
|
|
|
4802
4801
|
children: [
|
|
4803
4802
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-4 animate-spin" }),
|
|
4804
4803
|
"Extracting ",
|
|
4805
|
-
|
|
4804
|
+
chunkHJHDKS4V_cjs.entitiesPhrase().toLowerCase(),
|
|
4806
4805
|
" from ",
|
|
4807
|
-
|
|
4806
|
+
chunkHJHDKS4V_cjs.documentCount(extractingCount),
|
|
4808
4807
|
"\u2026"
|
|
4809
4808
|
]
|
|
4810
4809
|
}
|
|
@@ -4822,7 +4821,7 @@ function KindSection({
|
|
|
4822
4821
|
onOpenTag: ctx.onOpenTag,
|
|
4823
4822
|
onOpenRow: ctx.onOpenTag,
|
|
4824
4823
|
onOpenTaggedItems: ctx.onOpenTaggedItems,
|
|
4825
|
-
labels:
|
|
4824
|
+
labels: chunkHJHDKS4V_cjs.tagTableLabels(kind),
|
|
4826
4825
|
testId: `tags-table-${kind}`
|
|
4827
4826
|
}
|
|
4828
4827
|
)
|
|
@@ -4930,15 +4929,15 @@ function TagSection({
|
|
|
4930
4929
|
onOpenTag: ctx.onOpenTag,
|
|
4931
4930
|
onOpenRow: ctx.onOpenTag,
|
|
4932
4931
|
onOpenTaggedItems: ctx.onOpenTaggedItems,
|
|
4933
|
-
labels:
|
|
4932
|
+
labels: chunkHJHDKS4V_cjs.tagTableLabels(tag.kind),
|
|
4934
4933
|
testId: "tags-rows"
|
|
4935
4934
|
}
|
|
4936
4935
|
),
|
|
4937
4936
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4938
|
-
|
|
4937
|
+
chunkHJHDKS4V_cjs.TagDetail,
|
|
4939
4938
|
{
|
|
4940
4939
|
onOpenTaggedItems: ctx.onOpenTaggedItems,
|
|
4941
|
-
fieldLabels:
|
|
4940
|
+
fieldLabels: chunkHJHDKS4V_cjs.tagTableLabels(tag.kind),
|
|
4942
4941
|
row: detailRow,
|
|
4943
4942
|
fields: schema.data?.fields ?? [],
|
|
4944
4943
|
isLoading: detail.isLoading,
|
|
@@ -4952,7 +4951,7 @@ function TagSection({
|
|
|
4952
4951
|
throw e;
|
|
4953
4952
|
})
|
|
4954
4953
|
),
|
|
4955
|
-
labels:
|
|
4954
|
+
labels: chunkHJHDKS4V_cjs.tagDetailLabels(),
|
|
4956
4955
|
testId: "tags-detail"
|
|
4957
4956
|
}
|
|
4958
4957
|
)
|
|
@@ -4975,9 +4974,9 @@ var TAG_FILTER_FIELDS = [
|
|
|
4975
4974
|
function ConnectedTagsPage() {
|
|
4976
4975
|
const { confirm, notify: notify19, openSmartSearch } = chunk46LX6EQT_cjs.useBlocksEnvironment();
|
|
4977
4976
|
const onOpenTaggedItems = useOpenTaggedContent();
|
|
4978
|
-
const setReviewOpen =
|
|
4979
|
-
const setReviewRun =
|
|
4980
|
-
const reviewOpen =
|
|
4977
|
+
const setReviewOpen = chunkHGD4B7GO_cjs.useAiReviewStore((state) => state.setOpen);
|
|
4978
|
+
const setReviewRun = chunkHGD4B7GO_cjs.useAiReviewStore((state) => state.setRun);
|
|
4979
|
+
const reviewOpen = chunkHGD4B7GO_cjs.useAiReviewStore((state) => state.open);
|
|
4981
4980
|
const [review, setReview] = react.useState(null);
|
|
4982
4981
|
const { data: tags } = chunkDWN5AUMH_cjs.useConnectedTags();
|
|
4983
4982
|
const { data: documents } = chunkDWN5AUMH_cjs.useConnectedDocuments();
|
|
@@ -5027,7 +5026,7 @@ function ConnectedTagsPage() {
|
|
|
5027
5026
|
const onDelete = async (t) => {
|
|
5028
5027
|
const nested = browser.getChildTags([...tags], t.external_id);
|
|
5029
5028
|
const uses = browser.tagUseCount(t);
|
|
5030
|
-
const n2 =
|
|
5029
|
+
const n2 = chunkHJHDKS4V_cjs.tagsPageNouns();
|
|
5031
5030
|
const tagNoun = (count2) => (count2 === 1 ? n2.tag : n2.tags).toLowerCase();
|
|
5032
5031
|
const carriers = uses === 1 ? `${n2.document}, ${n2.fact} or ${n2.thread}` : `${n2.documents}, ${n2.facts} and ${n2.threads}`;
|
|
5033
5032
|
const message = `Delete ${ui.tagKindNouns(t.kind).singular} "${t.name}"?` + (uses > 0 ? `
|
|
@@ -5048,11 +5047,11 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
5048
5047
|
try {
|
|
5049
5048
|
await extract.mutateAsync(docIds);
|
|
5050
5049
|
notify19(
|
|
5051
|
-
`Extracting ${
|
|
5050
|
+
`Extracting ${chunkHJHDKS4V_cjs.entitiesPhrase().toLowerCase()} from ${chunkHJHDKS4V_cjs.documentCount(docIds.length)}. You will be notified when it is done.`,
|
|
5052
5051
|
"info"
|
|
5053
5052
|
);
|
|
5054
5053
|
} catch (error) {
|
|
5055
|
-
notify19(browser.refusalReason(error, `Could not extract ${
|
|
5054
|
+
notify19(browser.refusalReason(error, `Could not extract ${chunkHJHDKS4V_cjs.entitiesPhrase().toLowerCase()}`), "error");
|
|
5056
5055
|
throw error;
|
|
5057
5056
|
}
|
|
5058
5057
|
};
|
|
@@ -5066,10 +5065,10 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
5066
5065
|
onOpenTag: openTag,
|
|
5067
5066
|
onOpenTaggedItems
|
|
5068
5067
|
};
|
|
5069
|
-
const n =
|
|
5068
|
+
const n = chunkHJHDKS4V_cjs.tagsPageNouns();
|
|
5070
5069
|
const action = view === "person" || view === "organisation" ? {
|
|
5071
5070
|
label: "Extract",
|
|
5072
|
-
title: `Extract ${
|
|
5071
|
+
title: `Extract ${chunkHJHDKS4V_cjs.entitiesPhrase().toLowerCase()} from ${n.documents.toLowerCase()}`,
|
|
5073
5072
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { className: "h-4 w-4" }),
|
|
5074
5073
|
run: () => setExtracting(true),
|
|
5075
5074
|
testId: "tags-extract-entities"
|
|
@@ -5123,7 +5122,7 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
5123
5122
|
onTabChange: () => {
|
|
5124
5123
|
},
|
|
5125
5124
|
variant: "underline",
|
|
5126
|
-
firstTabContent: tag ? void 0 : /* @__PURE__ */ jsxRuntime.jsx(
|
|
5125
|
+
firstTabContent: tag ? void 0 : /* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.FilesFilterBar, { className: "flex-none", "data-testid": "tags-header-actions", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5127
5126
|
chunk6UZC4XVV_cjs.FilterInput,
|
|
5128
5127
|
{
|
|
5129
5128
|
value: filterText,
|
|
@@ -5145,7 +5144,7 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
5145
5144
|
filter: tagFilter
|
|
5146
5145
|
}
|
|
5147
5146
|
) }),
|
|
5148
|
-
centerContent: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5147
|
+
centerContent: /* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.FilesViewCenter, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5149
5148
|
chunkSNUBQMIS_cjs.ViewToggle,
|
|
5150
5149
|
{
|
|
5151
5150
|
options: browser.TAG_KINDS.map((k) => ({
|
|
@@ -5238,7 +5237,7 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
5238
5237
|
}
|
|
5239
5238
|
),
|
|
5240
5239
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5241
|
-
|
|
5240
|
+
chunkHJHDKS4V_cjs.ExtractEntitiesDialog,
|
|
5242
5241
|
{
|
|
5243
5242
|
open: extracting,
|
|
5244
5243
|
onOpenChange: setExtracting,
|
|
@@ -5374,15 +5373,6 @@ function useChatFacts() {
|
|
|
5374
5373
|
function useChatFactCount() {
|
|
5375
5374
|
return useChatFacts().chatFacts.length;
|
|
5376
5375
|
}
|
|
5377
|
-
var useExportStore = zustand.create()((set) => ({
|
|
5378
|
-
columnsMode: "visible",
|
|
5379
|
-
setColumnsMode: (columnsMode) => set({ columnsMode }),
|
|
5380
|
-
activeTransfers: [],
|
|
5381
|
-
trackTransfer: (transferId) => set(
|
|
5382
|
-
(state) => state.activeTransfers.includes(transferId) ? state : { activeTransfers: [...state.activeTransfers, transferId] }
|
|
5383
|
-
),
|
|
5384
|
-
untrackTransfer: (transferId) => set((state) => ({ activeTransfers: state.activeTransfers.filter((id) => id !== transferId) }))
|
|
5385
|
-
}));
|
|
5386
5376
|
function plural3(n, one, many = `${one}s`) {
|
|
5387
5377
|
return `${n} ${n === 1 ? one : many}`;
|
|
5388
5378
|
}
|
|
@@ -5419,6 +5409,11 @@ function describePlan(plan, mode) {
|
|
|
5419
5409
|
mode === "download" ? plural3(c.automations, "workflow") : `${plural3(c.automations, "workflow")} \u2014 they arrive paused`
|
|
5420
5410
|
);
|
|
5421
5411
|
}
|
|
5412
|
+
if (c.pages) {
|
|
5413
|
+
lines.push(
|
|
5414
|
+
mode === "download" ? plural3(c.pages, "page") : `${plural3(c.pages, "page")} \u2014 they arrive private to you`
|
|
5415
|
+
);
|
|
5416
|
+
}
|
|
5422
5417
|
if (plan.relations_outside) {
|
|
5423
5418
|
warnings.push(
|
|
5424
5419
|
`${plural3(plan.relations_outside, "provenance link")} to files outside this selection ${mode === "download" ? "are listed but their other file is not included" : "will be dropped"}`
|
|
@@ -5467,7 +5462,8 @@ var ALL_KINDS = [
|
|
|
5467
5462
|
"fields",
|
|
5468
5463
|
"facts",
|
|
5469
5464
|
"conversations",
|
|
5470
|
-
"automations"
|
|
5465
|
+
"automations",
|
|
5466
|
+
"pages"
|
|
5471
5467
|
];
|
|
5472
5468
|
function kindLabel(kind) {
|
|
5473
5469
|
switch (kind) {
|
|
@@ -5485,6 +5481,8 @@ function kindLabel(kind) {
|
|
|
5485
5481
|
return `${ui.getEntityLabel("CONVERSATION", "PLURAL")} and ${ui.getEntityLabel("TASK", "PLURAL").toLowerCase()}`;
|
|
5486
5482
|
case "automations":
|
|
5487
5483
|
return "Workflows";
|
|
5484
|
+
case "pages":
|
|
5485
|
+
return "Pages";
|
|
5488
5486
|
}
|
|
5489
5487
|
}
|
|
5490
5488
|
function ledgerKindLabel(kind) {
|
|
@@ -5499,6 +5497,8 @@ function ledgerKindLabel(kind) {
|
|
|
5499
5497
|
return ui.getEntityLabel("CONVERSATION");
|
|
5500
5498
|
case "workflow":
|
|
5501
5499
|
return "Workflow";
|
|
5500
|
+
case "page":
|
|
5501
|
+
return "Page";
|
|
5502
5502
|
default:
|
|
5503
5503
|
return "Item";
|
|
5504
5504
|
}
|
|
@@ -5509,24 +5509,6 @@ var PHASE_LABEL = {
|
|
|
5509
5509
|
remove: "Removing from this workspace",
|
|
5510
5510
|
done: "Done"
|
|
5511
5511
|
};
|
|
5512
|
-
function MemberAvatar({ user, size }) {
|
|
5513
|
-
const colorClass = ui.getUserAvatarColor(user.external_id);
|
|
5514
|
-
const agent = ui.isAgent(user);
|
|
5515
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5516
|
-
ui.UserEntity,
|
|
5517
|
-
{
|
|
5518
|
-
size,
|
|
5519
|
-
variant: "icon",
|
|
5520
|
-
showTooltip: false,
|
|
5521
|
-
initials: ui.getUserInitials(user),
|
|
5522
|
-
displayName: ui.getUserDisplayName(user),
|
|
5523
|
-
picture: user.picture,
|
|
5524
|
-
colorClass,
|
|
5525
|
-
isAgent: agent,
|
|
5526
|
-
agentStyle: agent ? ui.agentAvatarColors(colorClass) : void 0
|
|
5527
|
-
}
|
|
5528
|
-
);
|
|
5529
|
-
}
|
|
5530
5512
|
function ConnectedExportPanel({
|
|
5531
5513
|
items = [],
|
|
5532
5514
|
onClose,
|
|
@@ -5534,15 +5516,18 @@ function ConnectedExportPanel({
|
|
|
5534
5516
|
initialMode
|
|
5535
5517
|
}) {
|
|
5536
5518
|
const { notify: notify19 } = chunk46LX6EQT_cjs.useBlocksEnvironment();
|
|
5537
|
-
const { workspaceId: currentWorkspaceId
|
|
5538
|
-
const {
|
|
5519
|
+
const { workspaceId: currentWorkspaceId } = chunkGB5MN5FC_cjs.useConnectedWorkspace();
|
|
5520
|
+
const {
|
|
5521
|
+
options: workspaceOptions,
|
|
5522
|
+
current: workspace,
|
|
5523
|
+
currentRole,
|
|
5524
|
+
nameOf
|
|
5525
|
+
} = chunkYO7GDNEW_cjs.useTransferTargets();
|
|
5539
5526
|
const { data: workspaceTags = [] } = react$1.useTags(currentWorkspaceId ?? void 0);
|
|
5540
5527
|
const { data: workspaceDocuments = [] } = react$1.useDocuments(currentWorkspaceId ?? void 0);
|
|
5541
|
-
const
|
|
5542
|
-
const
|
|
5543
|
-
const
|
|
5544
|
-
const setColumnsMode = useExportStore((state) => state.setColumnsMode);
|
|
5545
|
-
const trackTransfer = useExportStore((state) => state.trackTransfer);
|
|
5528
|
+
const columnsMode = chunkYO7GDNEW_cjs.useExportStore((state) => state.columnsMode);
|
|
5529
|
+
const setColumnsMode = chunkYO7GDNEW_cjs.useExportStore((state) => state.setColumnsMode);
|
|
5530
|
+
const trackTransfer = chunkYO7GDNEW_cjs.useExportStore((state) => state.trackTransfer);
|
|
5546
5531
|
const [scopeChoice, setScopeChoice] = react.useState(
|
|
5547
5532
|
items.length > 0 ? "selection" : "all"
|
|
5548
5533
|
);
|
|
@@ -5587,13 +5572,8 @@ function ConnectedExportPanel({
|
|
|
5587
5572
|
() => plan ? describePlan(plan, mode) : { lines: [], warnings: [] },
|
|
5588
5573
|
[plan, mode]
|
|
5589
5574
|
);
|
|
5590
|
-
const
|
|
5591
|
-
|
|
5592
|
-
const role = roleIn(w);
|
|
5593
|
-
return role === "owner" || role === "collaborator";
|
|
5594
|
-
});
|
|
5595
|
-
const targetName = (id) => workspaces.find((w) => w.external_id === id)?.name ?? "the other workspace";
|
|
5596
|
-
const moveDisabledReason = workspace && roleIn(workspace) === "guest" ? "Viewers cannot remove anything from this workspace" : void 0;
|
|
5575
|
+
const targetName = nameOf;
|
|
5576
|
+
const moveDisabledReason = currentRole === "guest" ? "Viewers cannot remove anything from this workspace" : void 0;
|
|
5597
5577
|
const resumable = recentJobs.find((j) => react$1.isTransferResumable(j));
|
|
5598
5578
|
react.useEffect(() => {
|
|
5599
5579
|
if (!job || !react$1.isTransferFinished(job)) return;
|
|
@@ -5658,42 +5638,9 @@ function ConnectedExportPanel({
|
|
|
5658
5638
|
fields: plan?.counts?.fields,
|
|
5659
5639
|
facts: plan?.counts?.facts,
|
|
5660
5640
|
conversations: plan?.counts?.conversations,
|
|
5661
|
-
automations: plan?.counts?.automations
|
|
5641
|
+
automations: plan?.counts?.automations,
|
|
5642
|
+
pages: plan?.counts?.pages
|
|
5662
5643
|
};
|
|
5663
|
-
const workspaceOptions = targetOptions.map((w) => {
|
|
5664
|
-
const users = w.users || [];
|
|
5665
|
-
const owner = users.find((wu) => wu.user.external_id === w.created_by_ext_id);
|
|
5666
|
-
const others = users.filter(
|
|
5667
|
-
(wu) => wu.user.external_id !== w.created_by_ext_id && wu.user.external_id !== userId && !(user?.email && wu.user.email === user.email)
|
|
5668
|
-
);
|
|
5669
|
-
const remaining = Math.max(0, others.length - 2);
|
|
5670
|
-
return {
|
|
5671
|
-
id: w.external_id,
|
|
5672
|
-
name: w.name,
|
|
5673
|
-
description: w.description,
|
|
5674
|
-
memberCount: users.length,
|
|
5675
|
-
// The icons sit inside the picker's row button: a tooltip trigger there would be a button in a button.
|
|
5676
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5677
|
-
ui.ShieldIcon,
|
|
5678
|
-
{
|
|
5679
|
-
char: w.name.charAt(0),
|
|
5680
|
-
workspaceColor: chunkWRTEKOQP_cjs.workspaceKindColor(react$1.getWorkspaceKind(w)),
|
|
5681
|
-
size: 32,
|
|
5682
|
-
isSelected: false
|
|
5683
|
-
}
|
|
5684
|
-
),
|
|
5685
|
-
members: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1.5", children: [
|
|
5686
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center -space-x-1", children: [
|
|
5687
|
-
remaining > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-5 w-5 items-center justify-center rounded-full bg-muted text-sm font-semibold text-foreground", children: [
|
|
5688
|
-
"+",
|
|
5689
|
-
remaining
|
|
5690
|
-
] }),
|
|
5691
|
-
others.slice(0, 2).map((wu) => /* @__PURE__ */ jsxRuntime.jsx(MemberAvatar, { user: wu.user, size: "xs" }, wu.user.external_id))
|
|
5692
|
-
] }),
|
|
5693
|
-
owner && /* @__PURE__ */ jsxRuntime.jsx(MemberAvatar, { user: owner.user, size: "sm" })
|
|
5694
|
-
] })
|
|
5695
|
-
};
|
|
5696
|
-
});
|
|
5697
5644
|
const resultRows = (job?.issues ?? []).map((issue) => ({
|
|
5698
5645
|
id: `${issue.kind}-${issue.source_ext_id}`,
|
|
5699
5646
|
tone: issue.status === "failed" ? "error" : issue.status === "copied" || issue.status === "removed" ? "success" : "warning",
|
|
@@ -5709,7 +5656,7 @@ function ConnectedExportPanel({
|
|
|
5709
5656
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col h-full", "data-testid": "export-documents", children: [
|
|
5710
5657
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 overflow-auto space-y-6 p-6", children: [
|
|
5711
5658
|
jobRunning && job && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5712
|
-
|
|
5659
|
+
chunk44M4FI2N_cjs.TransferProgressView,
|
|
5713
5660
|
{
|
|
5714
5661
|
title: `${job.mode === "move" ? "Moving" : "Copying"} to ${targetName(job.target_workspace_ext_id)}`,
|
|
5715
5662
|
processed: job.processed ?? 0,
|
|
@@ -5722,7 +5669,7 @@ function ConnectedExportPanel({
|
|
|
5722
5669
|
),
|
|
5723
5670
|
jobDone && job && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
5724
5671
|
react$1.isTransferResumable(job) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5725
|
-
|
|
5672
|
+
chunk44M4FI2N_cjs.TransferResumeBanner,
|
|
5726
5673
|
{
|
|
5727
5674
|
message: `Stopped at ${job.processed} of ${job.total}. Resume to finish \u2014 nothing is copied twice.`,
|
|
5728
5675
|
onResume: () => handleResume(job),
|
|
@@ -5730,7 +5677,7 @@ function ConnectedExportPanel({
|
|
|
5730
5677
|
}
|
|
5731
5678
|
),
|
|
5732
5679
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5733
|
-
|
|
5680
|
+
chunk44M4FI2N_cjs.ExportResultsReport,
|
|
5734
5681
|
{
|
|
5735
5682
|
summary: `${job.mode === "move" ? "Moved" : "Copied"} ${plural3(
|
|
5736
5683
|
Number(job.counts?.copied ?? 0) + Number(job.counts?.removed ?? 0),
|
|
@@ -5743,7 +5690,7 @@ function ConnectedExportPanel({
|
|
|
5743
5690
|
] }),
|
|
5744
5691
|
!jobId && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
5745
5692
|
resumable && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5746
|
-
|
|
5693
|
+
chunk44M4FI2N_cjs.TransferResumeBanner,
|
|
5747
5694
|
{
|
|
5748
5695
|
message: `A ${resumable.mode} to ${targetName(resumable.target_workspace_ext_id)} stopped at ${resumable.processed} of ${resumable.total}.`,
|
|
5749
5696
|
onResume: () => handleResume(resumable),
|
|
@@ -5751,7 +5698,7 @@ function ConnectedExportPanel({
|
|
|
5751
5698
|
}
|
|
5752
5699
|
),
|
|
5753
5700
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5754
|
-
|
|
5701
|
+
chunk44M4FI2N_cjs.TransferScopeChooser,
|
|
5755
5702
|
{
|
|
5756
5703
|
scope: scopeChoice,
|
|
5757
5704
|
onScopeChange: setScopeChoice,
|
|
@@ -5762,7 +5709,7 @@ function ConnectedExportPanel({
|
|
|
5762
5709
|
}
|
|
5763
5710
|
),
|
|
5764
5711
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5765
|
-
|
|
5712
|
+
chunk44M4FI2N_cjs.TransferKindsPicker,
|
|
5766
5713
|
{
|
|
5767
5714
|
options: ALL_KINDS.map((kind) => ({
|
|
5768
5715
|
kind,
|
|
@@ -5775,9 +5722,9 @@ function ConnectedExportPanel({
|
|
|
5775
5722
|
)
|
|
5776
5723
|
}
|
|
5777
5724
|
),
|
|
5778
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5725
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.TransferReferencesChooser, { value: references, onChange: setReferences }),
|
|
5779
5726
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5780
|
-
|
|
5727
|
+
chunk44M4FI2N_cjs.ExportMethodChooser,
|
|
5781
5728
|
{
|
|
5782
5729
|
mode,
|
|
5783
5730
|
onModeChange: setMode,
|
|
@@ -5789,17 +5736,17 @@ function ConnectedExportPanel({
|
|
|
5789
5736
|
),
|
|
5790
5737
|
mode !== "download" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
5791
5738
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5792
|
-
|
|
5739
|
+
chunk44M4FI2N_cjs.ExportWorkspacePicker,
|
|
5793
5740
|
{
|
|
5794
5741
|
workspaces: workspaceOptions,
|
|
5795
5742
|
selectedId: targetId,
|
|
5796
5743
|
onSelect: setTargetId
|
|
5797
5744
|
}
|
|
5798
5745
|
),
|
|
5799
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5746
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.TransferConflictChooser, { value: conflict, onChange: setConflict })
|
|
5800
5747
|
] }),
|
|
5801
5748
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5802
|
-
|
|
5749
|
+
chunk44M4FI2N_cjs.TransferPlanSummary,
|
|
5803
5750
|
{
|
|
5804
5751
|
lines: summary.lines,
|
|
5805
5752
|
warnings: summary.warnings,
|
|
@@ -5816,7 +5763,7 @@ function ConnectedExportPanel({
|
|
|
5816
5763
|
] })
|
|
5817
5764
|
] }),
|
|
5818
5765
|
!jobId && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5819
|
-
|
|
5766
|
+
chunk44M4FI2N_cjs.ExportFooter,
|
|
5820
5767
|
{
|
|
5821
5768
|
onCancel: onClose,
|
|
5822
5769
|
onSubmit: handleSubmit,
|
|
@@ -5857,7 +5804,7 @@ function OpenExportDialog({
|
|
|
5857
5804
|
children: [
|
|
5858
5805
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkCVPV4I7Z_cjs.ModalHeader, { children: [
|
|
5859
5806
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5860
|
-
|
|
5807
|
+
chunk44M4FI2N_cjs.ExportModalTitle,
|
|
5861
5808
|
{
|
|
5862
5809
|
workspace: workspace ? {
|
|
5863
5810
|
icon: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "touch-hit inline-flex", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -6074,7 +6021,7 @@ function useFieldWrites({
|
|
|
6074
6021
|
const createTag = react$1.useCreateTag();
|
|
6075
6022
|
const updateTag = react$1.useUpdateTag();
|
|
6076
6023
|
const deleteTag = react$1.useDeleteTag();
|
|
6077
|
-
const
|
|
6024
|
+
const create2 = react.useCallback(
|
|
6078
6025
|
async (data) => {
|
|
6079
6026
|
let created;
|
|
6080
6027
|
try {
|
|
@@ -6180,7 +6127,7 @@ ${nested.length} nested ${nested.length === 1 ? "field moves" : "fields move"} t
|
|
|
6180
6127
|
},
|
|
6181
6128
|
[confirm, notify19, deleteTag, tags, workspaceTags, nouns]
|
|
6182
6129
|
);
|
|
6183
|
-
return { create:
|
|
6130
|
+
return { create: create2, update, rename, toggleShared, removeMany };
|
|
6184
6131
|
}
|
|
6185
6132
|
var ownFieldsExport = (props) => /* @__PURE__ */ jsxRuntime.jsx(ConnectedExportDialog, { ...props, entityType: "TAG", testId: "export-fields-modal" });
|
|
6186
6133
|
function ConnectedFieldsEditor({
|
|
@@ -6274,7 +6221,7 @@ function ConnectedFieldsEditor({
|
|
|
6274
6221
|
const [sortBy, setSortBy] = react.useState("name-asc");
|
|
6275
6222
|
const [filterText, setFilterText] = react.useState("");
|
|
6276
6223
|
const fieldRows = react.useMemo(
|
|
6277
|
-
() => browser.flattenTagTree(
|
|
6224
|
+
() => browser.flattenTagTree(chunk44M4FI2N_cjs.sortFields(chunk44M4FI2N_cjs.filterFieldsByName(tags, filterText), sortBy)),
|
|
6278
6225
|
[tags, filterText, sortBy]
|
|
6279
6226
|
);
|
|
6280
6227
|
const exportItems = react.useMemo(
|
|
@@ -6294,7 +6241,7 @@ function ConnectedFieldsEditor({
|
|
|
6294
6241
|
setIsDeleting(false);
|
|
6295
6242
|
}
|
|
6296
6243
|
};
|
|
6297
|
-
const copy =
|
|
6244
|
+
const copy = chunk44M4FI2N_cjs.fieldsApplyBarCopy({
|
|
6298
6245
|
nouns,
|
|
6299
6246
|
targetNoun,
|
|
6300
6247
|
fieldCount,
|
|
@@ -6303,9 +6250,9 @@ function ConnectedFieldsEditor({
|
|
|
6303
6250
|
isApplying,
|
|
6304
6251
|
isClearing
|
|
6305
6252
|
});
|
|
6306
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6253
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunk44M4FI2N_cjs.FieldsEditorRoot, { children: [
|
|
6307
6254
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6308
|
-
|
|
6255
|
+
chunk44M4FI2N_cjs.FieldsEditorToolbar,
|
|
6309
6256
|
{
|
|
6310
6257
|
nouns,
|
|
6311
6258
|
onNew: () => {
|
|
@@ -6333,11 +6280,11 @@ function ConnectedFieldsEditor({
|
|
|
6333
6280
|
onSortByChange: setSortBy
|
|
6334
6281
|
}
|
|
6335
6282
|
),
|
|
6336
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
6283
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk44M4FI2N_cjs.FieldsEditorList, { children: [
|
|
6337
6284
|
fieldRows.map(({ tag, depth, childCount }) => {
|
|
6338
6285
|
const isEditingThis = editingTagId === tag.external_id;
|
|
6339
6286
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6340
|
-
|
|
6287
|
+
chunk44M4FI2N_cjs.FieldRow,
|
|
6341
6288
|
{
|
|
6342
6289
|
tagId: tag.external_id,
|
|
6343
6290
|
name: tag.name,
|
|
@@ -6390,10 +6337,10 @@ function ConnectedFieldsEditor({
|
|
|
6390
6337
|
tag.external_id
|
|
6391
6338
|
);
|
|
6392
6339
|
}),
|
|
6393
|
-
fieldRows.length === 0 && !isCreatingTag && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6340
|
+
fieldRows.length === 0 && !isCreatingTag && /* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.FieldsEmptyState, { children: chunk44M4FI2N_cjs.fieldsEmptyText({ nouns, filterText, hasKind: !!kind }) })
|
|
6394
6341
|
] }),
|
|
6395
6342
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6396
|
-
|
|
6343
|
+
chunk44M4FI2N_cjs.FieldsApplyBar,
|
|
6397
6344
|
{
|
|
6398
6345
|
hint: copy.hint,
|
|
6399
6346
|
applyLabel: copy.applyLabel,
|
|
@@ -6469,8 +6416,8 @@ function ConnectedFieldsManager({
|
|
|
6469
6416
|
}
|
|
6470
6417
|
);
|
|
6471
6418
|
const body = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
6472
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6473
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6419
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.FieldsManagerDefinition, { children: DEFINITIONS[activeKind] }),
|
|
6420
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.FieldsManagerBody, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6474
6421
|
ConnectedFieldsEditor,
|
|
6475
6422
|
{
|
|
6476
6423
|
group: activeKind,
|
|
@@ -6482,7 +6429,7 @@ function ConnectedFieldsManager({
|
|
|
6482
6429
|
] });
|
|
6483
6430
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col h-full", children: [
|
|
6484
6431
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkAHUEBRLX_cjs.DraggableHeader, { children: [
|
|
6485
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6432
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.FieldsManagerTitle, { title, className: "px-4 pt-3.5 pb-2" }),
|
|
6486
6433
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-3", children: tabHeader })
|
|
6487
6434
|
] }),
|
|
6488
6435
|
body
|
|
@@ -6511,7 +6458,7 @@ function ConnectedFieldsManagerPanel({
|
|
|
6511
6458
|
const [createRequest, setCreateRequest] = react$1.useTransientView(FIELDS_MANAGER_CREATE_VIEW, 0);
|
|
6512
6459
|
const [kind, setKind] = react$1.useTransientView(FIELDS_MANAGER_KIND_VIEW, "label");
|
|
6513
6460
|
const documentIds = react$1.useArbiSessionState((s) => s.selectedDocumentIds);
|
|
6514
|
-
const reviewing =
|
|
6461
|
+
const reviewing = chunkHGD4B7GO_cjs.useFilesPrefs((state) => chunkHGD4B7GO_cjs.filesViewMode(state) === "navigator");
|
|
6515
6462
|
const viewingId = react$1.useArbiSessionState((s) => s.viewingDocument?.id ?? null);
|
|
6516
6463
|
const reviewingId = reviewing ? viewingId : null;
|
|
6517
6464
|
const handleClose = react.useCallback(() => {
|
|
@@ -6552,7 +6499,7 @@ function ConnectedFieldsManagerPanel({
|
|
|
6552
6499
|
onAnnotationCreated,
|
|
6553
6500
|
onAiFieldsApplied: (result) => {
|
|
6554
6501
|
session.closePanel(FIELDS_MANAGER_PANEL);
|
|
6555
|
-
const review =
|
|
6502
|
+
const review = chunkHGD4B7GO_cjs.useAiReviewStore.getState();
|
|
6556
6503
|
review.setRun(result);
|
|
6557
6504
|
review.setOpen(true);
|
|
6558
6505
|
}
|
|
@@ -6598,7 +6545,7 @@ function ConnectedFactsSmartSearch({
|
|
|
6598
6545
|
const runSearch = () => search().catch(() => notify19(`Could not search ${factsWord}. Please try again.`, "error"));
|
|
6599
6546
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full min-h-0 flex-col", "data-testid": "facts-smart-search", children: [
|
|
6600
6547
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6601
|
-
|
|
6548
|
+
chunkYHXJWYOF_cjs.FactSearchBar,
|
|
6602
6549
|
{
|
|
6603
6550
|
query,
|
|
6604
6551
|
onQueryChange: setQuery,
|
|
@@ -6607,7 +6554,7 @@ function ConnectedFactsSmartSearch({
|
|
|
6607
6554
|
isSearching
|
|
6608
6555
|
}
|
|
6609
6556
|
),
|
|
6610
|
-
!isSearching && hits !== null && hits.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6557
|
+
!isSearching && hits !== null && hits.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(chunkYHXJWYOF_cjs.FactSearchTotals, { children: [
|
|
6611
6558
|
hits.length.toLocaleString(),
|
|
6612
6559
|
" ",
|
|
6613
6560
|
hits.length === 1 ? factWord : factsWord,
|
|
@@ -6615,18 +6562,18 @@ function ConnectedFactsSmartSearch({
|
|
|
6615
6562
|
lastQuery,
|
|
6616
6563
|
"\u201D"
|
|
6617
6564
|
] }),
|
|
6618
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "scrollbar-subtle min-h-0 flex-1 overflow-y-auto px-4 pb-3", children: isSearching ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6565
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "scrollbar-subtle min-h-0 flex-1 overflow-y-auto px-4 pb-3", children: isSearching ? /* @__PURE__ */ jsxRuntime.jsxs(chunkYHXJWYOF_cjs.FactSearchPending, { children: [
|
|
6619
6566
|
"Searching ",
|
|
6620
6567
|
factsWord,
|
|
6621
6568
|
"\u2026"
|
|
6622
|
-
] }) : hits === null ? /* @__PURE__ */ jsxRuntime.jsx(chunkNX56DIG3_cjs.SearchEmptyState, { nouns, count: allFacts.length }) : hits.length === 0 ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6569
|
+
] }) : hits === null ? /* @__PURE__ */ jsxRuntime.jsx(chunkNX56DIG3_cjs.SearchEmptyState, { nouns, count: allFacts.length }) : hits.length === 0 ? /* @__PURE__ */ jsxRuntime.jsxs(chunkYHXJWYOF_cjs.FactSearchNoMatches, { children: [
|
|
6623
6570
|
"No ",
|
|
6624
6571
|
factsWord,
|
|
6625
6572
|
" matched \u201C",
|
|
6626
6573
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-foreground", children: lastQuery }),
|
|
6627
6574
|
"\u201D."
|
|
6628
6575
|
] }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-2", children: hits.map((h, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6629
|
-
|
|
6576
|
+
chunkYHXJWYOF_cjs.FactSearchResult,
|
|
6630
6577
|
{
|
|
6631
6578
|
id: h.external_id,
|
|
6632
6579
|
rank: i + 1,
|
|
@@ -6726,7 +6673,7 @@ function FactSourcesPopover({
|
|
|
6726
6673
|
const olderVersion = refOf(docId) !== docId ? refOf(docId).split("@v")[1] : null;
|
|
6727
6674
|
const cited = passagesOf(docId);
|
|
6728
6675
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6729
|
-
|
|
6676
|
+
chunkYHXJWYOF_cjs.FactSourceGroup,
|
|
6730
6677
|
{
|
|
6731
6678
|
docId,
|
|
6732
6679
|
isViewing,
|
|
@@ -6815,7 +6762,7 @@ function FactMarkdownEditor({
|
|
|
6815
6762
|
const editorRef = react.useRef(null);
|
|
6816
6763
|
react.useEffect(() => {
|
|
6817
6764
|
if (!editorRef.current) return;
|
|
6818
|
-
return
|
|
6765
|
+
return chunkYHXJWYOF_cjs.enableFactTableColumnResize(editorRef.current);
|
|
6819
6766
|
}, []);
|
|
6820
6767
|
react.useEffect(() => {
|
|
6821
6768
|
if (!editing) return;
|
|
@@ -6927,7 +6874,7 @@ var factNouns = () => ({
|
|
|
6927
6874
|
function useWorkspaceAsk() {
|
|
6928
6875
|
const { openNewConversation, openFiles } = chunk46LX6EQT_cjs.useBlocksEnvironment();
|
|
6929
6876
|
const { workspaceId } = chunkGB5MN5FC_cjs.useConnectedWorkspace();
|
|
6930
|
-
const setFilesViewMode =
|
|
6877
|
+
const setFilesViewMode = chunkHGD4B7GO_cjs.useFilesPrefs((state) => state.setViewMode);
|
|
6931
6878
|
const ask = react.useCallback(
|
|
6932
6879
|
(text) => openNewConversation({ prompt: text, keepDocumentOpen: true }),
|
|
6933
6880
|
[openNewConversation]
|
|
@@ -7454,8 +7401,8 @@ function useFactFilters(notes, view, chat) {
|
|
|
7454
7401
|
const makeTagPicker = react.useCallback(
|
|
7455
7402
|
(selected, setSelected, opts) => {
|
|
7456
7403
|
const applied = new Set(selected);
|
|
7457
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7458
|
-
|
|
7404
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkYHXJWYOF_cjs.FactFieldRow, { label: "Labels", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7405
|
+
chunk44M4FI2N_cjs.FieldLabelsSelect,
|
|
7459
7406
|
{
|
|
7460
7407
|
options: labelOptions,
|
|
7461
7408
|
appliedIds: applied,
|
|
@@ -7646,14 +7593,14 @@ function useFactSelection(notes, gridApiRef, setFactTags, chat) {
|
|
|
7646
7593
|
}
|
|
7647
7594
|
function renderSourcesCell(params) {
|
|
7648
7595
|
const fact = params.data;
|
|
7649
|
-
const count2 =
|
|
7596
|
+
const count2 = chunkYHXJWYOF_cjs.sourceDocCount(fact);
|
|
7650
7597
|
if (!fact || count2 === 0) return /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground/40", children: "\u2014" });
|
|
7651
7598
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7652
7599
|
"button",
|
|
7653
7600
|
{
|
|
7654
7601
|
type: "button",
|
|
7655
7602
|
onClick: () => params.context?.openEdit?.(fact),
|
|
7656
|
-
title:
|
|
7603
|
+
title: chunkYHXJWYOF_cjs.DEFAULT_FACT_COLUMN_LABELS.sourcedFrom(count2),
|
|
7657
7604
|
"data-testid": `facts-grid-sources-${fact.external_id}`,
|
|
7658
7605
|
className: "inline-flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground",
|
|
7659
7606
|
children: [
|
|
@@ -7682,7 +7629,7 @@ var FactHeader = react.memo(function FactHeader2({
|
|
|
7682
7629
|
if (params.enableSorting) params.progressSort(e.shiftKey);
|
|
7683
7630
|
},
|
|
7684
7631
|
children: [
|
|
7685
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7632
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.FilterButton, { params, colId }),
|
|
7686
7633
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "order-2 min-w-0 flex-1 truncate", children: params.displayName }),
|
|
7687
7634
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "ag-sort-indicator-container order-2 flex-shrink-0", "aria-hidden": "true", children: [
|
|
7688
7635
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -7710,14 +7657,14 @@ function createFactPageColumns({
|
|
|
7710
7657
|
onToggleConfirmed,
|
|
7711
7658
|
onToggleShared
|
|
7712
7659
|
}) {
|
|
7713
|
-
const columns =
|
|
7660
|
+
const columns = chunkYHXJWYOF_cjs.createFactColumns({
|
|
7714
7661
|
onToggleInChat,
|
|
7715
7662
|
isInChat,
|
|
7716
7663
|
renderHeader: (params, colId) => /* @__PURE__ */ jsxRuntime.jsx(FactHeader, { params, colId }),
|
|
7717
7664
|
renderRowActions: (fact, params) => {
|
|
7718
7665
|
const ctx = params.context;
|
|
7719
7666
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7720
|
-
|
|
7667
|
+
chunkYHXJWYOF_cjs.FactRowActions,
|
|
7721
7668
|
{
|
|
7722
7669
|
onEdit: () => ctx?.openEdit?.(fact),
|
|
7723
7670
|
canEdit: ctx?.canRewrite?.(fact) !== false,
|
|
@@ -7846,7 +7793,7 @@ function useFactsGrid({
|
|
|
7846
7793
|
);
|
|
7847
7794
|
const renderFactTags = react.useCallback(
|
|
7848
7795
|
(fact, rowHeight) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
7849
|
-
|
|
7796
|
+
chunkYHXJWYOF_cjs.FactLabelsCell,
|
|
7850
7797
|
{
|
|
7851
7798
|
options: labelOptions,
|
|
7852
7799
|
selectedIds: fact.tags.map((t) => t.tag_ext_id),
|
|
@@ -7953,7 +7900,7 @@ function useFactsPageView() {
|
|
|
7953
7900
|
"facts.searchFields",
|
|
7954
7901
|
DEFAULT_SEARCH_FIELDS
|
|
7955
7902
|
);
|
|
7956
|
-
const rowHeight = react$1.useArbiSessionState((s) => s.grid.rowHeights[FACTS_GRID_ID] ??
|
|
7903
|
+
const rowHeight = react$1.useArbiSessionState((s) => s.grid.rowHeights[FACTS_GRID_ID] ?? chunk44M4FI2N_cjs.ROW_MIN);
|
|
7957
7904
|
const labelWidth = react$1.useArbiSessionState(
|
|
7958
7905
|
(s) => s.grid.labelWidths[FACTS_GRID_ID] ?? DEFAULT_TIMELINE_LABEL_WIDTH
|
|
7959
7906
|
);
|
|
@@ -8187,7 +8134,7 @@ function ConnectedFactsPage() {
|
|
|
8187
8134
|
const view = pageView.view;
|
|
8188
8135
|
const setView = pageView.setView;
|
|
8189
8136
|
const openLabels = () => openFieldsManagerIn(session, "label");
|
|
8190
|
-
const factsRowHeight = pageView.rowHeight ===
|
|
8137
|
+
const factsRowHeight = pageView.rowHeight === chunk44M4FI2N_cjs.ROW_MIN ? chunk44M4FI2N_cjs.ROW_MIN : chunk44M4FI2N_cjs.rowHeightForLines(chunk44M4FI2N_cjs.linesForRowHeight(pageView.rowHeight));
|
|
8191
8138
|
const [isExportOpen, setIsExportOpen] = react.useState(false);
|
|
8192
8139
|
const [filterOpen, setFilterOpen] = react.useState(false);
|
|
8193
8140
|
const [factSection, setFactSection] = react.useState(null);
|
|
@@ -8211,7 +8158,7 @@ function ConnectedFactsPage() {
|
|
|
8211
8158
|
};
|
|
8212
8159
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: setFactSection, className: "relative flex h-full flex-col", "data-testid": "facts-page", children: [
|
|
8213
8160
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8214
|
-
|
|
8161
|
+
chunkYHXJWYOF_cjs.FactsToolbar,
|
|
8215
8162
|
{
|
|
8216
8163
|
count: filteredNotes.length,
|
|
8217
8164
|
hasActiveFilters: filters.hasActiveFilters,
|
|
@@ -8240,7 +8187,7 @@ function ConnectedFactsPage() {
|
|
|
8240
8187
|
onNewFact: composing && !editingId ? () => void 0 : composer.startNewFact,
|
|
8241
8188
|
navSlotRef: setNavSlot,
|
|
8242
8189
|
navigator: view === "table" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
8243
|
-
|
|
8190
|
+
chunkHJHDKS4V_cjs.GridRowNavigator,
|
|
8244
8191
|
{
|
|
8245
8192
|
gridApi,
|
|
8246
8193
|
selectedId: editingId,
|
|
@@ -8251,9 +8198,9 @@ function ConnectedFactsPage() {
|
|
|
8251
8198
|
) : null,
|
|
8252
8199
|
showToolbarRow: view !== "smart_search",
|
|
8253
8200
|
tools: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
8254
|
-
view === "table" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8201
|
+
view === "table" && /* @__PURE__ */ jsxRuntime.jsx(chunkYHXJWYOF_cjs.FactsFieldsButton, { getGridApi: () => gridApiRef.current }),
|
|
8255
8202
|
view === "table" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8256
|
-
|
|
8203
|
+
chunk44M4FI2N_cjs.RowDensityControl,
|
|
8257
8204
|
{
|
|
8258
8205
|
rowHeight: factsRowHeight,
|
|
8259
8206
|
onRowHeightChange: pageView.setRowHeight,
|
|
@@ -8289,7 +8236,7 @@ function ConnectedFactsPage() {
|
|
|
8289
8236
|
}
|
|
8290
8237
|
) }),
|
|
8291
8238
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8292
|
-
|
|
8239
|
+
chunkYHXJWYOF_cjs.FactComposer,
|
|
8293
8240
|
{
|
|
8294
8241
|
isOpen: composing,
|
|
8295
8242
|
isEditing: !!editingId,
|
|
@@ -8319,7 +8266,7 @@ function ConnectedFactsPage() {
|
|
|
8319
8266
|
reserveSourcesSpace: view === "gantt" || view === "calendar",
|
|
8320
8267
|
citationContainer: factSection,
|
|
8321
8268
|
renderDocumentPicker: (onSelect, selectedIds, onOpen, sourcesToggle, sourcesOpen) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
8322
|
-
|
|
8269
|
+
chunkYHXJWYOF_cjs.FactSourcesRow,
|
|
8323
8270
|
{
|
|
8324
8271
|
toggle: sourcesToggle,
|
|
8325
8272
|
picker: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -8365,7 +8312,7 @@ function ConnectedFactsPage() {
|
|
|
8365
8312
|
}
|
|
8366
8313
|
),
|
|
8367
8314
|
dateInput: /* @__PURE__ */ jsxRuntime.jsx(
|
|
8368
|
-
|
|
8315
|
+
chunkYHXJWYOF_cjs.FactDateInput,
|
|
8369
8316
|
{
|
|
8370
8317
|
value: composer.draftDateFields,
|
|
8371
8318
|
onChange: composer.setDraftDateFields,
|
|
@@ -8375,7 +8322,7 @@ function ConnectedFactsPage() {
|
|
|
8375
8322
|
}
|
|
8376
8323
|
),
|
|
8377
8324
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "scrollbar-subtle flex-1 overflow-y-auto pb-2", children: [
|
|
8378
|
-
isLoading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
8325
|
+
isLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunkYHXJWYOF_cjs.FactsLoading, {}) : isError ? /* @__PURE__ */ jsxRuntime.jsx(chunkYHXJWYOF_cjs.FactsLoadError, { onRetry: () => refetch() }) : view === "smart_search" ? (
|
|
8379
8326
|
// Searches facts only (never documents). Kept before the empty-state guard so the
|
|
8380
8327
|
// search UI is reachable even in an empty workspace.
|
|
8381
8328
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -8388,7 +8335,7 @@ function ConnectedFactsPage() {
|
|
|
8388
8335
|
)
|
|
8389
8336
|
) : notes.length === 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-full flex-col items-center justify-center", children: [
|
|
8390
8337
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8391
|
-
|
|
8338
|
+
chunkYHXJWYOF_cjs.FactsEmptyState,
|
|
8392
8339
|
{
|
|
8393
8340
|
onUseExample: (text) => {
|
|
8394
8341
|
composer.setDraft(text);
|
|
@@ -8399,7 +8346,7 @@ function ConnectedFactsPage() {
|
|
|
8399
8346
|
),
|
|
8400
8347
|
/* @__PURE__ */ jsxRuntime.jsx(FactsFindInDocuments, {})
|
|
8401
8348
|
] }) : view === "calendar" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
8402
|
-
|
|
8349
|
+
chunkYHXJWYOF_cjs.FactsCalendar,
|
|
8403
8350
|
{
|
|
8404
8351
|
facts: filteredNotes,
|
|
8405
8352
|
onSelect: (n) => openEditIfAllowed(n),
|
|
@@ -8408,7 +8355,7 @@ function ConnectedFactsPage() {
|
|
|
8408
8355
|
navigatorTotal: filteredNotes.length
|
|
8409
8356
|
}
|
|
8410
8357
|
) : view === "gantt" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
8411
|
-
|
|
8358
|
+
chunkYHXJWYOF_cjs.FactsGanttPane,
|
|
8412
8359
|
{
|
|
8413
8360
|
items: ganttItems,
|
|
8414
8361
|
labelWidth: pageView.labelWidth,
|
|
@@ -8458,7 +8405,7 @@ function ConnectedFactsPage() {
|
|
|
8458
8405
|
)
|
|
8459
8406
|
] }),
|
|
8460
8407
|
selectable && notes.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8461
|
-
|
|
8408
|
+
chunkYHXJWYOF_cjs.FactsBulkBar,
|
|
8462
8409
|
{
|
|
8463
8410
|
count: selection.selectedFacts.length,
|
|
8464
8411
|
onClear: selection.clearSelection,
|
|
@@ -8517,7 +8464,7 @@ function useConnectedShellWorkspaces(options = {}) {
|
|
|
8517
8464
|
function ConnectedSsoDisconnect() {
|
|
8518
8465
|
const { client } = react$1.useAccountClient();
|
|
8519
8466
|
const { data: profile } = react$1.useProfile();
|
|
8520
|
-
const auth =
|
|
8467
|
+
const auth = chunkPTT5MZ7O_cjs.useAuthPages();
|
|
8521
8468
|
const { notify: notify19 } = chunk46LX6EQT_cjs.useBlocksEnvironment();
|
|
8522
8469
|
const [open, setOpen] = react.useState(false);
|
|
8523
8470
|
const [step, setStep] = react.useState("email");
|
|
@@ -8695,14 +8642,14 @@ function ConnectedAccountSettings({
|
|
|
8695
8642
|
}) {
|
|
8696
8643
|
const [logoutOpen, setLogoutOpen] = react.useState(false);
|
|
8697
8644
|
return /* @__PURE__ */ jsxRuntime.jsxs(chunkQQMMCXBP_cjs.SettingsPanel, { className: "max-w-2xl", children: [
|
|
8698
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8645
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkPTT5MZ7O_cjs.ConnectedProfileCard, { avatarClassName, nameBadge: profileBadge }),
|
|
8699
8646
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedBoxPortalSection, {}),
|
|
8700
8647
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkQQMMCXBP_cjs.SettingsDisclosure, { title: "More", testId: "account-more-settings", children: [
|
|
8701
8648
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedSsoDisconnect, {}),
|
|
8702
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8649
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkPTT5MZ7O_cjs.ConnectedSecuritySection, { children: securityRows }),
|
|
8703
8650
|
moreSettings,
|
|
8704
8651
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8705
|
-
|
|
8652
|
+
chunkPTT5MZ7O_cjs.ConnectedIdentityVerification,
|
|
8706
8653
|
{
|
|
8707
8654
|
collapsible: true,
|
|
8708
8655
|
onManageBilling,
|
|
@@ -8712,7 +8659,7 @@ function ConnectedAccountSettings({
|
|
|
8712
8659
|
] }),
|
|
8713
8660
|
/* @__PURE__ */ jsxRuntime.jsx(chunkQQMMCXBP_cjs.SettingsSection, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Wifi, {}), title: "Session", children: /* @__PURE__ */ jsxRuntime.jsxs(chunkQQMMCXBP_cjs.SettingsCard, { children: [
|
|
8714
8661
|
connection && /* @__PURE__ */ jsxRuntime.jsx(ServerConnectionRow, { ...connection }),
|
|
8715
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8662
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkPTT5MZ7O_cjs.ConnectedSessionsRow, { renderSessionIcon }),
|
|
8716
8663
|
/* @__PURE__ */ jsxRuntime.jsx(chunkQQMMCXBP_cjs.SettingsRow, { label: "Logout", description: "Sign out of your account on this device.", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8717
8664
|
ui.Button,
|
|
8718
8665
|
{
|
|
@@ -8729,9 +8676,9 @@ function ConnectedAccountSettings({
|
|
|
8729
8676
|
}
|
|
8730
8677
|
) })
|
|
8731
8678
|
] }) }),
|
|
8732
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8679
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkPTT5MZ7O_cjs.ConnectedDangerZone, { renderSubscriptionLink }),
|
|
8733
8680
|
!onLogout && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8734
|
-
|
|
8681
|
+
chunkPTT5MZ7O_cjs.ConnectedLogoutDialog,
|
|
8735
8682
|
{
|
|
8736
8683
|
open: logoutOpen,
|
|
8737
8684
|
onClose: () => setLogoutOpen(false),
|
|
@@ -9074,7 +9021,7 @@ function ConnectedPrivacySettings({
|
|
|
9074
9021
|
}
|
|
9075
9022
|
)
|
|
9076
9023
|
] }) }),
|
|
9077
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
9024
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkPTT5MZ7O_cjs.ConnectedNotificationPreferences, {})
|
|
9078
9025
|
] });
|
|
9079
9026
|
}
|
|
9080
9027
|
var PROVIDER_NAMES = {
|
|
@@ -9813,7 +9760,7 @@ function ConnectedWorkspaceTrash({
|
|
|
9813
9760
|
const others = page?.others_private;
|
|
9814
9761
|
const othersCount = others?.count ?? 0;
|
|
9815
9762
|
const removable = items.filter((d) => !d.restoring);
|
|
9816
|
-
const emptiable = manager ? removable : removable.filter((d) => d.
|
|
9763
|
+
const emptiable = manager ? removable : removable.filter((d) => d.can_delete);
|
|
9817
9764
|
const emptiableBytes = emptiable.reduce((sum, d) => sum + d.bytes, 0);
|
|
9818
9765
|
const run = async (action, failure, undo) => {
|
|
9819
9766
|
setBusy(true);
|
|
@@ -11093,7 +11040,7 @@ function ConnectedRecoveryKeyDialog({
|
|
|
11093
11040
|
const arbi = react$1.useArbi();
|
|
11094
11041
|
const { user, isSso: isSsoMode } = react$1.useArbiSession();
|
|
11095
11042
|
const userEmail = user?.email;
|
|
11096
|
-
const sso =
|
|
11043
|
+
const sso = chunkPTT5MZ7O_cjs.useSsoSignIn();
|
|
11097
11044
|
const handleVerify = async () => {
|
|
11098
11045
|
setError(null);
|
|
11099
11046
|
if (!password) {
|
|
@@ -11254,7 +11201,7 @@ function ConnectedRemoteControlSwitch() {
|
|
|
11254
11201
|
}
|
|
11255
11202
|
function RemoteControlSwitch() {
|
|
11256
11203
|
const enabled = react$1.useRemoteControl((state) => state.enabled);
|
|
11257
|
-
const remote =
|
|
11204
|
+
const remote = chunkPTT5MZ7O_cjs.useRemoteControlActions();
|
|
11258
11205
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11259
11206
|
chunkQQMMCXBP_cjs.SettingsRow,
|
|
11260
11207
|
{
|
|
@@ -12077,7 +12024,7 @@ Note that ${members2} may have saved private content in the ${workspaceWord2} th
|
|
|
12077
12024
|
className: "w-full grid-sort-left"
|
|
12078
12025
|
}
|
|
12079
12026
|
) }),
|
|
12080
|
-
!readOnly && /* @__PURE__ */ jsxRuntime.jsx(
|
|
12027
|
+
!readOnly && /* @__PURE__ */ jsxRuntime.jsx(chunkS3GVFAFB_cjs.SelectionBar, { count: selected.length, onClear: () => setSelected([]), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12081
12028
|
chunkP7VUIW24_cjs.MemberBulkActions,
|
|
12082
12029
|
{
|
|
12083
12030
|
roles: BULK_ROLES,
|
|
@@ -12427,7 +12374,7 @@ function ConnectedWorkspaceShareDialog({
|
|
|
12427
12374
|
chunk223D4727_cjs.ModalBreadcrumbHeader,
|
|
12428
12375
|
{
|
|
12429
12376
|
workspaceName: workspace.name,
|
|
12430
|
-
workspaceIcon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12377
|
+
workspaceIcon: /* @__PURE__ */ jsxRuntime.jsx(chunkYO7GDNEW_cjs.ConnectedWorkspaceEntity, { workspace, size: 20, variant: "icon" }),
|
|
12431
12378
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.UserPlus, { className: "w-4 h-4" }),
|
|
12432
12379
|
title: labels.title
|
|
12433
12380
|
}
|
|
@@ -13236,7 +13183,7 @@ function NewProjectFlow({
|
|
|
13236
13183
|
};
|
|
13237
13184
|
const chosenName = stripeEnabled ? defaultName.trim() || ui.getEntityLabel("PROJECT") : projectName.trim();
|
|
13238
13185
|
const canSubmit = !!chosenName && !isCreating && !createProject.isPending;
|
|
13239
|
-
const
|
|
13186
|
+
const create2 = (interval, _capPence, quote, plan = stripeEnabled ? "pro" : "free") => {
|
|
13240
13187
|
if (!canSubmit) return;
|
|
13241
13188
|
const currentAttempt = ++attempt.current;
|
|
13242
13189
|
setIsCreating(true);
|
|
@@ -13302,7 +13249,7 @@ function NewProjectFlow({
|
|
|
13302
13249
|
placeholder: `My ${ui.getEntityLabel("PROJECT")}`,
|
|
13303
13250
|
autoFocus: true,
|
|
13304
13251
|
onKeyDown: (event) => {
|
|
13305
|
-
if (event.key === "Enter" && !stripeEnabled)
|
|
13252
|
+
if (event.key === "Enter" && !stripeEnabled) create2();
|
|
13306
13253
|
}
|
|
13307
13254
|
}
|
|
13308
13255
|
)
|
|
@@ -13316,13 +13263,13 @@ function NewProjectFlow({
|
|
|
13316
13263
|
disabled: !canSubmit,
|
|
13317
13264
|
busy: isCreating,
|
|
13318
13265
|
enabled: open,
|
|
13319
|
-
onChoose:
|
|
13320
|
-
onChooseFree: () =>
|
|
13266
|
+
onChoose: create2,
|
|
13267
|
+
onChooseFree: () => create2(void 0, void 0, void 0, "free")
|
|
13321
13268
|
}
|
|
13322
13269
|
)),
|
|
13323
13270
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-end gap-2", children: [
|
|
13324
13271
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Button, { variant: "ghost", onClick: close, children: "Cancel" }),
|
|
13325
|
-
!stripeEnabled && /* @__PURE__ */ jsxRuntime.jsx(chunkAHUEBRLX_cjs.PlanActionButton, { onClick: () =>
|
|
13272
|
+
!stripeEnabled && /* @__PURE__ */ jsxRuntime.jsx(chunkAHUEBRLX_cjs.PlanActionButton, { onClick: () => create2(), disabled: !canSubmit, children: isCreating ? "Creating\u2026" : `Create ${ui.entityNoun("PROJECT")}` })
|
|
13326
13273
|
] }),
|
|
13327
13274
|
isSlow && /* @__PURE__ */ jsxRuntime.jsx(chunkAHUEBRLX_cjs.PlanNotice, { className: "text-xs", testId: "new-project-still-working", children: "Still working. We'll update here." })
|
|
13328
13275
|
] })
|
|
@@ -13506,13 +13453,13 @@ function ConnectedWorkspaceSettings({
|
|
|
13506
13453
|
const [membersExpanded, setMembersExpanded] = react.useState(false);
|
|
13507
13454
|
const [shareOpen, setShareOpen] = react.useState(false);
|
|
13508
13455
|
if (!workspace) {
|
|
13509
|
-
return /* @__PURE__ */ jsxRuntime.jsx(chunkW5QSKW7T_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
13456
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkW5QSKW7T_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkHJHDKS4V_cjs.LoadingIndicator, { message: "Loading workspace..." }) });
|
|
13510
13457
|
}
|
|
13511
13458
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
13512
13459
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkW5QSKW7T_cjs.WorkspacePageFrame, { testId, children: [
|
|
13513
13460
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkW5QSKW7T_cjs.WorkspaceIdentityPanel, { children: [
|
|
13514
13461
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
13515
|
-
|
|
13462
|
+
chunkHJHDKS4V_cjs.EntityIdentityBar,
|
|
13516
13463
|
{
|
|
13517
13464
|
testId: "workspace-identity-bar",
|
|
13518
13465
|
canEdit: isOwner,
|
|
@@ -13529,7 +13476,7 @@ function ConnectedWorkspaceSettings({
|
|
|
13529
13476
|
label: "Name",
|
|
13530
13477
|
value: workspace.name,
|
|
13531
13478
|
placeholder: "Untitled",
|
|
13532
|
-
maxLength:
|
|
13479
|
+
maxLength: chunkHJHDKS4V_cjs.IDENTITY_NAME_MAX_LENGTH,
|
|
13533
13480
|
valueClassName: "truncate text-base font-semibold",
|
|
13534
13481
|
testId: "workspace-home-title",
|
|
13535
13482
|
hideLabel: true,
|
|
@@ -14206,8 +14153,8 @@ function WorkspaceCreateForm({
|
|
|
14206
14153
|
);
|
|
14207
14154
|
return;
|
|
14208
14155
|
}
|
|
14209
|
-
const
|
|
14210
|
-
const response = await
|
|
14156
|
+
const create2 = seed?.create ?? createWorkspaceMutation.mutateAsync;
|
|
14157
|
+
const response = await create2({
|
|
14211
14158
|
name: localWorkspaceName.trim(),
|
|
14212
14159
|
description: localWorkspaceDescription,
|
|
14213
14160
|
projectId: projectExtId
|
|
@@ -15028,36 +14975,36 @@ function ConnectedSharePointAdminConsentPage({
|
|
|
15028
14975
|
const result = givenResult === void 0 ? queryResult : givenResult;
|
|
15029
14976
|
const { apiBaseUrl } = chunk46LX6EQT_cjs.useBlocksEnvironment().runtimeConfig;
|
|
15030
14977
|
const consentUrl = `${apiBaseUrl}/v1/connectors/microsoft_sharepoint/admin-consent`;
|
|
15031
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
14978
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkU6JUIJTP_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkU6JUIJTP_cjs.ConsentCard, { size: "md", children: [
|
|
15032
14979
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15033
|
-
|
|
14980
|
+
chunkU6JUIJTP_cjs.ConsentHeader,
|
|
15034
14981
|
{
|
|
15035
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
14982
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.VendorLogo, { vendorKey: "microsoft_sharepoint", product: "sharepoint" }),
|
|
15036
14983
|
title: "Approve ARBI for SharePoint access",
|
|
15037
14984
|
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."
|
|
15038
14985
|
}
|
|
15039
14986
|
),
|
|
15040
|
-
result === "granted" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
15041
|
-
result === "declined" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
15042
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
14987
|
+
result === "granted" && /* @__PURE__ */ jsxRuntime.jsx(chunkU6JUIJTP_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." }),
|
|
14988
|
+
result === "declined" && /* @__PURE__ */ jsxRuntime.jsx(chunkU6JUIJTP_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." }),
|
|
14989
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkU6JUIJTP_cjs.ConsentSection, { title: "What you are approving", children: [
|
|
15043
14990
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15044
|
-
|
|
14991
|
+
chunkU6JUIJTP_cjs.ConsentBulletList,
|
|
15045
14992
|
{
|
|
15046
14993
|
items: [
|
|
15047
14994
|
/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
15048
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14995
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkU6JUIJTP_cjs.ConsentStrong, { children: "Read SharePoint sites and files" }),
|
|
15049
14996
|
" \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."
|
|
15050
14997
|
] }),
|
|
15051
14998
|
/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
15052
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14999
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkU6JUIJTP_cjs.ConsentStrong, { children: "Sign users in and keep access" }),
|
|
15053
15000
|
" \u2014 standard sign-in (openid, profile, email) and offline access so syncs keep working between sessions."
|
|
15054
15001
|
] })
|
|
15055
15002
|
]
|
|
15056
15003
|
}
|
|
15057
15004
|
),
|
|
15058
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15005
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkU6JUIJTP_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." }),
|
|
15059
15006
|
/* @__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" }) }),
|
|
15060
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15007
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkU6JUIJTP_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." })
|
|
15061
15008
|
] })
|
|
15062
15009
|
] }) });
|
|
15063
15010
|
}
|
|
@@ -18210,7 +18157,7 @@ function useConnectedWorkspaceList({
|
|
|
18210
18157
|
};
|
|
18211
18158
|
}
|
|
18212
18159
|
var WorkspaceTableView = react.lazy(
|
|
18213
|
-
() => import('../WorkspaceTableView-
|
|
18160
|
+
() => import('../WorkspaceTableView-NMERZJZZ.cjs').then((m) => ({ default: m.WorkspaceTableView }))
|
|
18214
18161
|
);
|
|
18215
18162
|
var WORKSPACES_TAB_ID = "workspaces";
|
|
18216
18163
|
var renderMember = (user, size) => /* @__PURE__ */ jsxRuntime.jsx(chunkSH7W4WVI_cjs.ConnectedUserEntity, { user, size, variant: "icon" });
|
|
@@ -18270,7 +18217,7 @@ function ConnectedWorkspaceList({
|
|
|
18270
18217
|
}
|
|
18271
18218
|
);
|
|
18272
18219
|
}
|
|
18273
|
-
if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(
|
|
18220
|
+
if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(chunkHJHDKS4V_cjs.LoadingIndicator, { message: "Loading workspaces..." });
|
|
18274
18221
|
if (list.error) {
|
|
18275
18222
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
18276
18223
|
chunkDSLMJ24E_cjs.HomeLoadError,
|
|
@@ -18343,7 +18290,7 @@ function ConnectedWorkspaceList({
|
|
|
18343
18290
|
workspaceState
|
|
18344
18291
|
}
|
|
18345
18292
|
) })
|
|
18346
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(react.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
18293
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(react.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkHJHDKS4V_cjs.LoadingIndicator, { message: "Loading grid..." }), children: /* @__PURE__ */ jsxRuntime.jsx(chunkDSLMJ24E_cjs.HomeCenteredColumn, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
18347
18294
|
WorkspaceTableView,
|
|
18348
18295
|
{
|
|
18349
18296
|
list,
|
|
@@ -18545,7 +18492,7 @@ function ConnectedProjectsListPage({
|
|
|
18545
18492
|
};
|
|
18546
18493
|
const { openProject } = chunk46LX6EQT_cjs.useBlocksEnvironment();
|
|
18547
18494
|
const [search, setSearch] = react.useState("");
|
|
18548
|
-
const { projects, isLoading } =
|
|
18495
|
+
const { projects, isLoading } = chunkV4B2GSC6_cjs.useProjectSummaries();
|
|
18549
18496
|
const rows = react.useMemo(() => {
|
|
18550
18497
|
const q = search.trim().toLowerCase();
|
|
18551
18498
|
if (!q) return projects;
|
|
@@ -18616,7 +18563,7 @@ function ConnectedProjectsListPage({
|
|
|
18616
18563
|
}
|
|
18617
18564
|
),
|
|
18618
18565
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18619
|
-
|
|
18566
|
+
chunkHJHDKS4V_cjs.Toolbar,
|
|
18620
18567
|
{
|
|
18621
18568
|
search,
|
|
18622
18569
|
onSearch: setSearch,
|
|
@@ -18678,7 +18625,7 @@ function ProjectDetailsForm({
|
|
|
18678
18625
|
const labels = { ...DEFAULT_PROJECT_DETAILS_LABELS, ...given };
|
|
18679
18626
|
const { notify: notify19 } = chunk46LX6EQT_cjs.useBlocksEnvironment();
|
|
18680
18627
|
const update = react$1.useUpdateProjectFields();
|
|
18681
|
-
const workspace =
|
|
18628
|
+
const workspace = chunkV4B2GSC6_cjs.primaryProjectWorkspace(project);
|
|
18682
18629
|
const { data: members = [] } = react$1.useWorkspaceUsers(workspace?.id);
|
|
18683
18630
|
const people = members.filter((m) => !m.user.external_id.startsWith("agt-"));
|
|
18684
18631
|
const currency = project.budget?.currency ?? "GBP";
|
|
@@ -18803,7 +18750,7 @@ var COMPACT_BELOW = 132;
|
|
|
18803
18750
|
var NO_DOCUMENTS = [];
|
|
18804
18751
|
function useFilesWorkspace() {
|
|
18805
18752
|
const { workspaceId, userId, live } = chunkGB5MN5FC_cjs.useConnectedWorkspace();
|
|
18806
|
-
const { members, role } =
|
|
18753
|
+
const { members, role } = chunkK7GBHLLY_cjs.useConnectedWorkspaceRole();
|
|
18807
18754
|
const { data: workspaces } = react$1.useWorkspaces({ enabled: live });
|
|
18808
18755
|
const workspaceName = workspaces?.find((w) => w.external_id === workspaceId)?.name;
|
|
18809
18756
|
return {
|
|
@@ -18867,9 +18814,9 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
18867
18814
|
for (const tag of workspaceTags ?? []) map.set(tag.external_id, tag.name);
|
|
18868
18815
|
return map;
|
|
18869
18816
|
}, [workspaceTags]);
|
|
18870
|
-
const pendingFolders =
|
|
18871
|
-
const addPendingFolder =
|
|
18872
|
-
const removePendingFolder =
|
|
18817
|
+
const pendingFolders = chunkHGD4B7GO_cjs.usePendingFolders(wsId);
|
|
18818
|
+
const addPendingFolder = chunkHGD4B7GO_cjs.useFilesStore((state) => state.addPendingFolder);
|
|
18819
|
+
const removePendingFolder = chunkHGD4B7GO_cjs.useFilesStore((state) => state.removePendingFolder);
|
|
18873
18820
|
const [editingFolderPath, setEditingFolderPath] = react.useState(null);
|
|
18874
18821
|
const isSearching = search.trim().length > 0;
|
|
18875
18822
|
const selectedSet = react.useMemo(() => new Set(selectedIds), [selectedIds]);
|
|
@@ -18878,8 +18825,8 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
18878
18825
|
const { folders, files: files2 } = react.useMemo(() => {
|
|
18879
18826
|
const result = isSearching ? {
|
|
18880
18827
|
folders: [],
|
|
18881
|
-
files:
|
|
18882
|
-
} :
|
|
18828
|
+
files: chunk44M4FI2N_cjs.searchExplorerDocuments(documents, search, sort)
|
|
18829
|
+
} : chunk44M4FI2N_cjs.buildExplorerEntries(documents, currentPath, sort, [...pendingFolders]);
|
|
18883
18830
|
if (sortReversed) result.files = [...result.files].reverse();
|
|
18884
18831
|
return result;
|
|
18885
18832
|
}, [documents, currentPath, sort, isSearching, search, sortReversed, pendingFolders]);
|
|
@@ -18890,7 +18837,7 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
18890
18837
|
const orderedFileIds = react.useMemo(() => files2.map((d) => d.external_id), [files2]);
|
|
18891
18838
|
const folderDocs = react.useMemo(() => {
|
|
18892
18839
|
const map = /* @__PURE__ */ new Map();
|
|
18893
|
-
for (const f of folders) map.set(f.path.join("/"),
|
|
18840
|
+
for (const f of folders) map.set(f.path.join("/"), chunk44M4FI2N_cjs.collectFolderDocs(documents, f.path));
|
|
18894
18841
|
return map;
|
|
18895
18842
|
}, [folders, documents]);
|
|
18896
18843
|
const folderSelection = react.useMemo(() => {
|
|
@@ -19038,7 +18985,7 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
19038
18985
|
let name = base;
|
|
19039
18986
|
let i = 2;
|
|
19040
18987
|
while (siblings.has(name.toLowerCase())) name = `${base} ${i++}`;
|
|
19041
|
-
const path =
|
|
18988
|
+
const path = chunk44M4FI2N_cjs.joinFolderPath([...currentPath, name]);
|
|
19042
18989
|
if (!path) return;
|
|
19043
18990
|
addPendingFolder(wsId, path);
|
|
19044
18991
|
setEditingFolderPath(path);
|
|
@@ -19074,10 +19021,10 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
19074
19021
|
notify19(`A folder named "${name}" already exists here.`, "error");
|
|
19075
19022
|
return;
|
|
19076
19023
|
}
|
|
19077
|
-
const oldPath =
|
|
19024
|
+
const oldPath = chunk44M4FI2N_cjs.joinFolderPath(folder.path);
|
|
19078
19025
|
const newPrefix = [...folder.path.slice(0, -1), name];
|
|
19079
|
-
const newPath =
|
|
19080
|
-
const docs =
|
|
19026
|
+
const newPath = chunk44M4FI2N_cjs.joinFolderPath(newPrefix);
|
|
19027
|
+
const docs = chunk44M4FI2N_cjs.collectFolderDocs(documents, folder.path);
|
|
19081
19028
|
try {
|
|
19082
19029
|
if (await renameFolder(docs, folder.path, newPrefix) > 0) {
|
|
19083
19030
|
notify19(`Renamed folder to "${name}"`, "success");
|
|
@@ -19136,7 +19083,7 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
19136
19083
|
const handleToggleFolder = react.useCallback(
|
|
19137
19084
|
(folder, e) => {
|
|
19138
19085
|
e.stopPropagation();
|
|
19139
|
-
const ids =
|
|
19086
|
+
const ids = chunk44M4FI2N_cjs.collectFolderDocs(documents, folder.path).map((d) => d.external_id);
|
|
19140
19087
|
if (ids.length === 0) return;
|
|
19141
19088
|
if (ids.every((id) => selectedSet.has(id))) {
|
|
19142
19089
|
const remove = new Set(ids);
|
|
@@ -19197,9 +19144,9 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
19197
19144
|
);
|
|
19198
19145
|
const handleDelete = react.useCallback(
|
|
19199
19146
|
async (doc) => {
|
|
19200
|
-
const name =
|
|
19147
|
+
const name = chunk44M4FI2N_cjs.getExplorerDisplayName(doc);
|
|
19201
19148
|
const confirmed = await confirm({
|
|
19202
|
-
message: `Delete "${name}"? ${
|
|
19149
|
+
message: `Delete "${name}"? ${chunk44M4FI2N_cjs.RECENTLY_DELETED_HINT}`,
|
|
19203
19150
|
title: "Delete file"
|
|
19204
19151
|
});
|
|
19205
19152
|
if (!confirmed) return;
|
|
@@ -19219,7 +19166,7 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
19219
19166
|
);
|
|
19220
19167
|
const handleFolderDownload = react.useCallback(
|
|
19221
19168
|
(folder) => {
|
|
19222
|
-
const docs =
|
|
19169
|
+
const docs = chunk44M4FI2N_cjs.collectFolderDocs(documents, folder.path);
|
|
19223
19170
|
if (docs.length > 0) void downloadDocuments(docs);
|
|
19224
19171
|
},
|
|
19225
19172
|
[documents, downloadDocuments]
|
|
@@ -19228,7 +19175,7 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
19228
19175
|
if (onFolderMove) return onFolderMove;
|
|
19229
19176
|
if (!onMoveSelected) return void 0;
|
|
19230
19177
|
return (folder) => {
|
|
19231
|
-
const ids =
|
|
19178
|
+
const ids = chunk44M4FI2N_cjs.collectFolderDocs(documents, folder.path).map((d) => d.external_id);
|
|
19232
19179
|
if (ids.length === 0) return;
|
|
19233
19180
|
onSelectionChange(ids);
|
|
19234
19181
|
onMoveSelected();
|
|
@@ -19236,14 +19183,14 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
19236
19183
|
}, [documents, onFolderMove, onMoveSelected, onSelectionChange]);
|
|
19237
19184
|
const handleFolderDelete = react.useCallback(
|
|
19238
19185
|
async (folder) => {
|
|
19239
|
-
const docs =
|
|
19186
|
+
const docs = chunk44M4FI2N_cjs.collectFolderDocs(documents, folder.path);
|
|
19240
19187
|
if (docs.length === 0) {
|
|
19241
|
-
const path =
|
|
19188
|
+
const path = chunk44M4FI2N_cjs.joinFolderPath(folder.path);
|
|
19242
19189
|
if (wsId && path) removePendingFolder(wsId, path);
|
|
19243
19190
|
return;
|
|
19244
19191
|
}
|
|
19245
19192
|
const confirmed = await confirm({
|
|
19246
|
-
message: `Delete folder "${folder.name}" and its ${docs.length} item${docs.length === 1 ? "" : "s"}? ${
|
|
19193
|
+
message: `Delete folder "${folder.name}" and its ${docs.length} item${docs.length === 1 ? "" : "s"}? ${chunk44M4FI2N_cjs.RECENTLY_DELETED_HINT_PLURAL}`,
|
|
19247
19194
|
title: "Delete folder"
|
|
19248
19195
|
});
|
|
19249
19196
|
if (!confirmed) return;
|
|
@@ -19260,8 +19207,8 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
19260
19207
|
[confirm, documents, deleteDocuments, onSelectionChange, removePendingFolder, wsId, notify19]
|
|
19261
19208
|
);
|
|
19262
19209
|
const canDeleteFolder = react.useCallback(
|
|
19263
|
-
(folder) => canUpload &&
|
|
19264
|
-
(doc) =>
|
|
19210
|
+
(folder) => canUpload && chunk44M4FI2N_cjs.collectFolderDocs(documents, folder.path).every(
|
|
19211
|
+
(doc) => chunk44M4FI2N_cjs.canDeleteDocument(doc, userId, role)
|
|
19265
19212
|
),
|
|
19266
19213
|
[canUpload, documents, userId, role]
|
|
19267
19214
|
);
|
|
@@ -19320,7 +19267,7 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
19320
19267
|
setActiveDragId(null);
|
|
19321
19268
|
const data = event.over?.data.current;
|
|
19322
19269
|
if (data?.type === "folder" && data.path) {
|
|
19323
|
-
const targetFolder =
|
|
19270
|
+
const targetFolder = chunk44M4FI2N_cjs.joinFolderPath(data.path);
|
|
19324
19271
|
const moving = dragIdsRef.current.filter((id) => {
|
|
19325
19272
|
const doc = documents.find((d) => d.external_id === id);
|
|
19326
19273
|
return doc && (doc.folder ?? null) !== targetFolder;
|
|
@@ -19360,7 +19307,7 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
19360
19307
|
const dropped = Array.from(e.dataTransfer.files ?? []);
|
|
19361
19308
|
if (dropped.length > 0) {
|
|
19362
19309
|
e.preventDefault();
|
|
19363
|
-
onUploadFiles(dropped,
|
|
19310
|
+
onUploadFiles(dropped, chunk44M4FI2N_cjs.joinFolderPath(currentPath));
|
|
19364
19311
|
}
|
|
19365
19312
|
},
|
|
19366
19313
|
[canUpload, currentPath, onUploadFiles]
|
|
@@ -19377,9 +19324,9 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
19377
19324
|
onDragEnd: handleDragEnd,
|
|
19378
19325
|
onDragCancel: () => setActiveDragId(null),
|
|
19379
19326
|
children: [
|
|
19380
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19327
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.ExplorerFrame, { "data-testid": "documents-explorer", children: /* @__PURE__ */ jsxRuntime.jsxs(chunk44M4FI2N_cjs.ExplorerStage, { children: [
|
|
19381
19328
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19382
|
-
|
|
19329
|
+
chunk44M4FI2N_cjs.ExplorerScroller,
|
|
19383
19330
|
{
|
|
19384
19331
|
ref: scrollRef,
|
|
19385
19332
|
onClick: handleBackgroundClick,
|
|
@@ -19389,15 +19336,15 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
19389
19336
|
onDragLeave: handleNativeDragLeave,
|
|
19390
19337
|
onDrop: handleNativeDrop,
|
|
19391
19338
|
"data-testid": "explorer-scroll",
|
|
19392
|
-
children: isLoading && documents.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
19393
|
-
|
|
19339
|
+
children: isLoading && documents.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.ExplorerLoadingTiles, {}) : entries.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
19340
|
+
chunk44M4FI2N_cjs.ExplorerEmpty,
|
|
19394
19341
|
{
|
|
19395
19342
|
title: isSearching ? `No files match "${search.trim()}"` : "This folder is empty",
|
|
19396
19343
|
description: isSearching ? "Try a different search." : canUpload ? "Drop files here or use Upload to add documents." : "No documents here yet."
|
|
19397
19344
|
}
|
|
19398
19345
|
) : containerWidth === 0 ? (
|
|
19399
19346
|
// Not measured yet: rendering now would flash one stretched column.
|
|
19400
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19347
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.ExplorerLoadingTiles, {})
|
|
19401
19348
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
19402
19349
|
"div",
|
|
19403
19350
|
{
|
|
@@ -19427,7 +19374,7 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
19427
19374
|
if (entry.kind === "folder") {
|
|
19428
19375
|
const key = entry.path.join("/");
|
|
19429
19376
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
19430
|
-
|
|
19377
|
+
chunkBNHFDXJI_cjs.FolderTile,
|
|
19431
19378
|
{
|
|
19432
19379
|
folder: entry,
|
|
19433
19380
|
density,
|
|
@@ -19450,7 +19397,7 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
19450
19397
|
}
|
|
19451
19398
|
const doc = entry.doc;
|
|
19452
19399
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
19453
|
-
|
|
19400
|
+
chunkBNHFDXJI_cjs.FileTile,
|
|
19454
19401
|
{
|
|
19455
19402
|
doc,
|
|
19456
19403
|
density,
|
|
@@ -19458,7 +19405,7 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
19458
19405
|
dragging: activeDragId === doc.external_id,
|
|
19459
19406
|
dndActive: activeDragId !== null,
|
|
19460
19407
|
renaming: renamingId === doc.external_id,
|
|
19461
|
-
canDelete:
|
|
19408
|
+
canDelete: chunk44M4FI2N_cjs.canDeleteDocument(doc, userId, role),
|
|
19462
19409
|
thumbnailUrl: thumbnailsById.get(doc.external_id),
|
|
19463
19410
|
modifiedBy: userById.get(
|
|
19464
19411
|
doc.updated_by_ext_id ?? doc.created_by_ext_id
|
|
@@ -19487,9 +19434,9 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
19487
19434
|
)
|
|
19488
19435
|
}
|
|
19489
19436
|
),
|
|
19490
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19437
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.ExplorerMarquee, { ref: marqueeOverlayRef, "data-testid": "explorer-marquee" }),
|
|
19491
19438
|
isFileDragOver && /* @__PURE__ */ jsxRuntime.jsx(
|
|
19492
|
-
|
|
19439
|
+
chunk44M4FI2N_cjs.ExplorerDropOverlay,
|
|
19493
19440
|
{
|
|
19494
19441
|
label: `Drop to upload${currentPath.length > 0 ? ` to "${currentPath[currentPath.length - 1]}"` : ""}`
|
|
19495
19442
|
}
|
|
@@ -19503,7 +19450,7 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
19503
19450
|
function DragPreview({ doc, count: count2 }) {
|
|
19504
19451
|
const Icon = ui.getFileTypeIcon(doc.file_name, { mime: doc.file_type, folder: doc.folder });
|
|
19505
19452
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
19506
|
-
|
|
19453
|
+
chunk44M4FI2N_cjs.ExplorerDragPreview,
|
|
19507
19454
|
{
|
|
19508
19455
|
icon: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: 20 }),
|
|
19509
19456
|
title: ui.getDocumentTitle(doc, doc.file_name ?? "Untitled"),
|
|
@@ -19563,7 +19510,7 @@ function ProjectChronology({
|
|
|
19563
19510
|
})),
|
|
19564
19511
|
[facts2]
|
|
19565
19512
|
);
|
|
19566
|
-
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(
|
|
19513
|
+
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(chunkYHXJWYOF_cjs.FactsGanttPane, { items, testId: `${testId}-gantt`, labels: { ganttEmpty: empty } }) });
|
|
19567
19514
|
}
|
|
19568
19515
|
function ProjectThreads({
|
|
19569
19516
|
projectId,
|
|
@@ -19740,11 +19687,11 @@ function ConnectedProjectPage({
|
|
|
19740
19687
|
figures: { ...DEFAULT_PROJECT_PAGE_LABELS.figures, ...given?.figures },
|
|
19741
19688
|
threads: { ...DEFAULT_PROJECT_PAGE_LABELS.threads, ...given?.threads }
|
|
19742
19689
|
};
|
|
19743
|
-
const { project, usage, isLoading } =
|
|
19690
|
+
const { project, usage, isLoading } = chunkV4B2GSC6_cjs.useProjectSummary(projectId);
|
|
19744
19691
|
const { workspaceId } = chunkGB5MN5FC_cjs.useConnectedWorkspace();
|
|
19745
19692
|
const { notify: notify19 } = chunk46LX6EQT_cjs.useBlocksEnvironment();
|
|
19746
|
-
const selectWorkspace =
|
|
19747
|
-
const workspace = project ?
|
|
19693
|
+
const selectWorkspace = chunkFNBUFKHE_cjs.useSelectWorkspace();
|
|
19694
|
+
const workspace = project ? chunkV4B2GSC6_cjs.primaryProjectWorkspace(project) : void 0;
|
|
19748
19695
|
const open = !!workspace && workspace.id === workspaceId;
|
|
19749
19696
|
react.useEffect(() => {
|
|
19750
19697
|
if (!workspace || workspace.id === workspaceId) return;
|
|
@@ -20008,10 +19955,10 @@ function ConnectedContactCardForm({
|
|
|
20008
19955
|
const [errors, setErrors] = react.useState({});
|
|
20009
19956
|
const [serverError, setServerError] = react.useState(null);
|
|
20010
19957
|
const [duplicateOf, setDuplicateOf] = react.useState(null);
|
|
20011
|
-
const
|
|
19958
|
+
const create2 = react$1.useCreateContact();
|
|
20012
19959
|
const update = react$1.useUpdateContact();
|
|
20013
19960
|
const link = react$1.useLinkContact();
|
|
20014
|
-
const saving =
|
|
19961
|
+
const saving = create2.isPending || update.isPending || link.isPending;
|
|
20015
19962
|
const linked = !!contact?.email;
|
|
20016
19963
|
const locked = !!contact && !contact.card;
|
|
20017
19964
|
const set = (key, value) => setForm((f) => ({ ...f, [key]: value }));
|
|
@@ -20039,7 +19986,7 @@ function ConnectedContactCardForm({
|
|
|
20039
19986
|
};
|
|
20040
19987
|
if (invite && email) {
|
|
20041
19988
|
if (contact) link.mutate({ contact, email, card }, { onSuccess: onInvited, onError });
|
|
20042
|
-
else
|
|
19989
|
+
else create2.mutate({ email, card, invite: true }, { onSuccess: onInvited, onError });
|
|
20043
19990
|
return;
|
|
20044
19991
|
}
|
|
20045
19992
|
const onSuccess = () => {
|
|
@@ -20048,7 +19995,7 @@ function ConnectedContactCardForm({
|
|
|
20048
19995
|
};
|
|
20049
19996
|
if (contact?.external_id)
|
|
20050
19997
|
update.mutate({ id: contact.external_id, card }, { onSuccess, onError });
|
|
20051
|
-
else
|
|
19998
|
+
else create2.mutate({ card, invite: false }, { onSuccess, onError });
|
|
20052
19999
|
};
|
|
20053
20000
|
if (locked)
|
|
20054
20001
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-3", "data-testid": "contact-card-locked", children: [
|
|
@@ -20524,7 +20471,7 @@ function ConnectedContactMenu({
|
|
|
20524
20471
|
const updateUserSettings = react$1.useUpdateUserSettings();
|
|
20525
20472
|
const deleteContact = react$1.useDeleteContact();
|
|
20526
20473
|
const name = ui.getUserDisplayName(peer);
|
|
20527
|
-
const
|
|
20474
|
+
const isAgent7 = peer.external_id.startsWith("agt-");
|
|
20528
20475
|
const isMuted = react.useMemo(
|
|
20529
20476
|
() => (userSettings?.muted_users || []).includes(peer.external_id),
|
|
20530
20477
|
[userSettings, peer.external_id]
|
|
@@ -20599,7 +20546,7 @@ Your conversation is not deleted \u2014 you can add them again.`,
|
|
|
20599
20546
|
},
|
|
20600
20547
|
// An agent is not a contact you can remove — it belongs to your account, and is managed from
|
|
20601
20548
|
// the agents panel.
|
|
20602
|
-
...!
|
|
20549
|
+
...!isAgent7 && contactId ? [
|
|
20603
20550
|
{
|
|
20604
20551
|
id: "remove",
|
|
20605
20552
|
label: "Remove contact",
|
|
@@ -22203,7 +22150,7 @@ function MeetingAvatar() {
|
|
|
22203
22150
|
);
|
|
22204
22151
|
}
|
|
22205
22152
|
var isGroupChat = (chat) => !!chat && chat.kind !== "direct";
|
|
22206
|
-
var
|
|
22153
|
+
var isAgent4 = (user) => browser.chats.isAgentExtId(user.external_id);
|
|
22207
22154
|
function useMessengerHost(host) {
|
|
22208
22155
|
const { arbi, presence } = useFullMessengerHostInputs();
|
|
22209
22156
|
return react.useMemo(() => ({ ...fullMessengerHost(arbi, presence), ...host }), [arbi, presence, host]);
|
|
@@ -22249,7 +22196,7 @@ function ConnectedMessengerList({
|
|
|
22249
22196
|
// Presence rides on the row's avatar.
|
|
22250
22197
|
renderMessengerUser(c.peer, "avatar")
|
|
22251
22198
|
),
|
|
22252
|
-
badge: !isGroupChat(c.chat) &&
|
|
22199
|
+
badge: !isGroupChat(c.chat) && isAgent4(c.peer) ? /* @__PURE__ */ jsxRuntime.jsx(ui.AgentBadge, {}) : void 0
|
|
22253
22200
|
}));
|
|
22254
22201
|
const all = [...decorated, ...invitationRows];
|
|
22255
22202
|
if (!filters?.size) return all;
|
|
@@ -22257,7 +22204,7 @@ function ConnectedMessengerList({
|
|
|
22257
22204
|
unread: (row2) => row2.unreadCount > 0,
|
|
22258
22205
|
// A person is muted, not a group that happens to list them first.
|
|
22259
22206
|
muted: (row2) => !isGroupChat(row2.chat) && mutedUsers.has(row2.peer.external_id),
|
|
22260
|
-
agents: (row2) => !isGroupChat(row2.chat) &&
|
|
22207
|
+
agents: (row2) => !isGroupChat(row2.chat) && isAgent4(row2.peer),
|
|
22261
22208
|
meetings: (row2) => row2.chat?.kind === "meeting",
|
|
22262
22209
|
...INVITATION_ROW_FILTERS
|
|
22263
22210
|
};
|
|
@@ -22356,12 +22303,12 @@ function ConnectedMessengerThread({
|
|
|
22356
22303
|
{
|
|
22357
22304
|
avatar: activePeer ? renderMessengerUser(activePeer, "avatar") : void 0,
|
|
22358
22305
|
name: activePeer ? react$1.userDisplayName(activePeer) : "Conversation",
|
|
22359
|
-
badge: activePeer &&
|
|
22306
|
+
badge: activePeer && isAgent4(activePeer) ? /* @__PURE__ */ jsxRuntime.jsx(ui.AgentBadge, {}) : void 0,
|
|
22360
22307
|
presence: presence ? /* @__PURE__ */ jsxRuntime.jsx(ui.PresenceLabel, { status: presence }) : void 0,
|
|
22361
22308
|
email: activePeer?.email,
|
|
22362
22309
|
menu: activePeer ? fullDirectActions(activePeer, {
|
|
22363
22310
|
// A personal agent never carries over into a group, and a self-chat has no peer.
|
|
22364
|
-
addPeople:
|
|
22311
|
+
addPeople: isAgent4(activePeer) || activeIsSelf || !picker.available ? void 0 : () => picker.open({ mode: "from-direct", fixed: [activePeer] })
|
|
22365
22312
|
}) : void 0
|
|
22366
22313
|
}
|
|
22367
22314
|
),
|
|
@@ -22651,10 +22598,10 @@ function ConnectedContactsPanel({
|
|
|
22651
22598
|
function ConnectedConfigForm({ availableModels, ...rest }) {
|
|
22652
22599
|
const hasModels = !!availableModels && availableModels.length > 0;
|
|
22653
22600
|
const renderModelSelect = react.useCallback(
|
|
22654
|
-
({ value, onChange }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
22601
|
+
({ value, onChange }) => /* @__PURE__ */ jsxRuntime.jsx(chunkPTT5MZ7O_cjs.ConnectedModelSelector, { value, onValueChange: onChange, className: "w-full" }),
|
|
22655
22602
|
[]
|
|
22656
22603
|
);
|
|
22657
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
22604
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkU6JUIJTP_cjs.ConfigForm, { ...rest, renderModelSelect: hasModels ? renderModelSelect : void 0 });
|
|
22658
22605
|
}
|
|
22659
22606
|
function ConnectedAgentConfigForm({ agentExtId, agentName, onSaved }) {
|
|
22660
22607
|
const { notify: notify19 } = chunk46LX6EQT_cjs.useBlocksEnvironment();
|
|
@@ -22771,7 +22718,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
22771
22718
|
}, [name, selectedWorkspaces, role, createAgent, addWorkspaceUsers, arbi, notify19]);
|
|
22772
22719
|
if (editAgent) {
|
|
22773
22720
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
22774
|
-
|
|
22721
|
+
chunkU6JUIJTP_cjs.AgentEditView,
|
|
22775
22722
|
{
|
|
22776
22723
|
agentName: editAgent.name,
|
|
22777
22724
|
config: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -22787,7 +22734,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
22787
22734
|
}
|
|
22788
22735
|
if (view === "main") {
|
|
22789
22736
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
22790
|
-
|
|
22737
|
+
chunkU6JUIJTP_cjs.AgentMainView,
|
|
22791
22738
|
{
|
|
22792
22739
|
onConnectExternal: () => setView("connect"),
|
|
22793
22740
|
config: mainAgent ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -22803,11 +22750,11 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
22803
22750
|
}
|
|
22804
22751
|
if (result) {
|
|
22805
22752
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
22806
|
-
|
|
22753
|
+
chunkU6JUIJTP_cjs.AgentCreatedView,
|
|
22807
22754
|
{
|
|
22808
22755
|
email: result.email,
|
|
22809
22756
|
signingKey: result.signingKey,
|
|
22810
|
-
instructions: /* @__PURE__ */ jsxRuntime.jsx(
|
|
22757
|
+
instructions: /* @__PURE__ */ jsxRuntime.jsx(chunkU6JUIJTP_cjs.AgentConnectInstructions, { email: result.email, signingKey: result.signingKey }),
|
|
22811
22758
|
config: /* @__PURE__ */ jsxRuntime.jsx(ConnectedAgentConfigForm, { agentExtId: result.extId, agentName: result.name }),
|
|
22812
22759
|
isConfigOpen: configOpen,
|
|
22813
22760
|
onToggleConfig: () => setConfigOpen((v) => !v),
|
|
@@ -22816,7 +22763,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
22816
22763
|
);
|
|
22817
22764
|
}
|
|
22818
22765
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
22819
|
-
|
|
22766
|
+
chunkU6JUIJTP_cjs.AgentCreateView,
|
|
22820
22767
|
{
|
|
22821
22768
|
name,
|
|
22822
22769
|
onNameChange: setName,
|
|
@@ -22903,7 +22850,7 @@ function ConnectedInviteContactsDialog({
|
|
|
22903
22850
|
] })
|
|
22904
22851
|
] }) });
|
|
22905
22852
|
}
|
|
22906
|
-
var { files, threads, facts, agenda } =
|
|
22853
|
+
var { files, threads, facts, agenda } = chunkYO7GDNEW_cjs.WORKSPACE_DASHBOARD_LAYOUT;
|
|
22907
22854
|
function ConnectedWorkspaceDashboard({
|
|
22908
22855
|
start,
|
|
22909
22856
|
addFilesAction,
|
|
@@ -22912,14 +22859,14 @@ function ConnectedWorkspaceDashboard({
|
|
|
22912
22859
|
onTakePhoto,
|
|
22913
22860
|
testId = "workspace-dashboard"
|
|
22914
22861
|
}) {
|
|
22915
|
-
const startBand = start === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
22862
|
+
const startBand = start === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(chunkYO7GDNEW_cjs.ConnectedStartBlock, { onCreateNew, onTakePhoto }) : start;
|
|
22916
22863
|
return /* @__PURE__ */ jsxRuntime.jsxs(chunkSGYURQ23_cjs.DashboardRoot, { testId, children: [
|
|
22917
22864
|
startBand && /* @__PURE__ */ jsxRuntime.jsx(chunkSGYURQ23_cjs.DashboardBand, { kind: "start", children: startBand }),
|
|
22918
22865
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkSGYURQ23_cjs.DashboardBand, { kind: "recent", children: [
|
|
22919
22866
|
/* @__PURE__ */ jsxRuntime.jsx(chunkSLCH5JRI_cjs.SectionLabel, { testId: `${testId}-recent-caption`, children: "Recent" }),
|
|
22920
22867
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkSGYURQ23_cjs.DashboardColumns, { children: [
|
|
22921
22868
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
22922
|
-
|
|
22869
|
+
chunkYO7GDNEW_cjs.ConnectedListBlock,
|
|
22923
22870
|
{
|
|
22924
22871
|
config: files.config,
|
|
22925
22872
|
addFilesAction,
|
|
@@ -22930,7 +22877,7 @@ function ConnectedWorkspaceDashboard({
|
|
|
22930
22877
|
}
|
|
22931
22878
|
),
|
|
22932
22879
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
22933
|
-
|
|
22880
|
+
chunkYO7GDNEW_cjs.ConnectedListBlock,
|
|
22934
22881
|
{
|
|
22935
22882
|
config: threads.config,
|
|
22936
22883
|
showLoading: false,
|
|
@@ -22940,8 +22887,8 @@ function ConnectedWorkspaceDashboard({
|
|
|
22940
22887
|
] })
|
|
22941
22888
|
] }),
|
|
22942
22889
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkSGYURQ23_cjs.DashboardColumns, { children: [
|
|
22943
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
22944
|
-
aside === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
22890
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkYO7GDNEW_cjs.ConnectedListBlock, { config: facts.config, showLoading: false, testId: `${testId}-facts` }),
|
|
22891
|
+
aside === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(chunkYO7GDNEW_cjs.ConnectedAgendaBlock, { config: agenda.config }) : aside
|
|
22945
22892
|
] })
|
|
22946
22893
|
] });
|
|
22947
22894
|
}
|
|
@@ -23019,7 +22966,7 @@ var inWorkspace = ({ workspaceId }) => !!workspaceId;
|
|
|
23019
22966
|
var canWrite = ({ isMember, role }) => isMember && role !== "guest";
|
|
23020
22967
|
var notTemporary = ({ isTemporaryAccess }) => !isTemporaryAccess;
|
|
23021
22968
|
function setDocumentSourceFilter(source) {
|
|
23022
|
-
const { documentFilters, setDocumentFilters } =
|
|
22969
|
+
const { documentFilters, setDocumentFilters } = chunkHGD4B7GO_cjs.useFilesPrefs.getState();
|
|
23023
22970
|
setDocumentFilters({
|
|
23024
22971
|
...documentFilters,
|
|
23025
22972
|
source_uploaded: source === "uploaded" ? "include" : null,
|
|
@@ -23031,9 +22978,9 @@ function createBuiltinActions(environment, session) {
|
|
|
23031
22978
|
const startWorkflowOnDocuments = (workflowId) => {
|
|
23032
22979
|
const { viewingDocument, selectedDocumentIds } = session.getState();
|
|
23033
22980
|
const documents = viewingDocument ? [viewingDocument.id] : [...selectedDocumentIds];
|
|
23034
|
-
|
|
22981
|
+
chunkU6JUIJTP_cjs.openWorkflowLaunch({ workflowId, context: { documents } });
|
|
23035
22982
|
};
|
|
23036
|
-
const setFilesView = (mode) => () =>
|
|
22983
|
+
const setFilesView = (mode) => () => chunkHGD4B7GO_cjs.useFilesPrefs.getState().setViewMode(mode);
|
|
23037
22984
|
const actions = [
|
|
23038
22985
|
{
|
|
23039
22986
|
id: "goto-user-settings",
|
|
@@ -23098,7 +23045,7 @@ function createBuiltinActions(environment, session) {
|
|
|
23098
23045
|
icon: "Files",
|
|
23099
23046
|
keywords: ["download", "csv", "excel"],
|
|
23100
23047
|
available: inWorkspace,
|
|
23101
|
-
run: () =>
|
|
23048
|
+
run: () => chunkHGD4B7GO_cjs.useFilesDialogs.getState().setExportOpen(true)
|
|
23102
23049
|
},
|
|
23103
23050
|
{
|
|
23104
23051
|
id: "bulk-tag-documents",
|
|
@@ -23107,7 +23054,7 @@ function createBuiltinActions(environment, session) {
|
|
|
23107
23054
|
icon: "Tags",
|
|
23108
23055
|
keywords: ["labels", "categorize", "bulk tag"],
|
|
23109
23056
|
available: inWorkspace,
|
|
23110
|
-
run: () =>
|
|
23057
|
+
run: () => chunkHGD4B7GO_cjs.useFilesDialogs.getState().setBulkTagsOpen(true)
|
|
23111
23058
|
},
|
|
23112
23059
|
{
|
|
23113
23060
|
id: "move-to-folder",
|
|
@@ -23116,7 +23063,7 @@ function createBuiltinActions(environment, session) {
|
|
|
23116
23063
|
icon: "FolderInput",
|
|
23117
23064
|
keywords: ["organize", "relocate"],
|
|
23118
23065
|
available: inWorkspace,
|
|
23119
|
-
run: () =>
|
|
23066
|
+
run: () => chunkHGD4B7GO_cjs.useFilesDialogs.getState().openMove()
|
|
23120
23067
|
},
|
|
23121
23068
|
{
|
|
23122
23069
|
id: "ai-review-documents",
|
|
@@ -23125,7 +23072,7 @@ function createBuiltinActions(environment, session) {
|
|
|
23125
23072
|
icon: "Sparkles",
|
|
23126
23073
|
keywords: ["auto tag", "analyze", "suggest tags"],
|
|
23127
23074
|
available: inWorkspace,
|
|
23128
|
-
run: () =>
|
|
23075
|
+
run: () => chunkHGD4B7GO_cjs.useAiReviewStore.getState().setOpen(true)
|
|
23129
23076
|
},
|
|
23130
23077
|
{
|
|
23131
23078
|
id: "docs-grid-view",
|
|
@@ -23593,7 +23540,7 @@ function ConnectedRemoteControlConsent() {
|
|
|
23593
23540
|
}
|
|
23594
23541
|
function ConsentPrompt() {
|
|
23595
23542
|
const pending = react$1.useRemoteControl((s) => s.pending);
|
|
23596
|
-
const remote =
|
|
23543
|
+
const remote = chunkPTT5MZ7O_cjs.useRemoteControlActions();
|
|
23597
23544
|
const onceRef = react.useRef(null);
|
|
23598
23545
|
chunkNZNBJF3M_cjs.useMountedSurface("consent");
|
|
23599
23546
|
const handleOpenChange = (next) => {
|
|
@@ -23686,7 +23633,7 @@ function Indicator() {
|
|
|
23686
23633
|
const enabled = react$1.useRemoteControl((s) => s.enabled);
|
|
23687
23634
|
const sharing = react$1.useRemoteControl((s) => !!s.sharing);
|
|
23688
23635
|
const controllingAgent = react$1.useRemoteControl((s) => s.controllingAgent);
|
|
23689
|
-
const remote =
|
|
23636
|
+
const remote = chunkPTT5MZ7O_cjs.useRemoteControlActions();
|
|
23690
23637
|
if (!enabled && !controllingAgent) return null;
|
|
23691
23638
|
const isActive = controllingAgent !== null;
|
|
23692
23639
|
const label = sharing ? controllingAgent ? `${controllingAgent.name} \xB7 screen sharing and control on` : "Sharing screen \xB7 remote control on" : isActive ? `${controllingAgent.name} is controlling your screen` : "Remote control on";
|
|
@@ -23732,7 +23679,7 @@ function AddFromAccountsButton({
|
|
|
23732
23679
|
className: "gap-2",
|
|
23733
23680
|
"data-testid": dataTestId,
|
|
23734
23681
|
children: [
|
|
23735
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex items-center gap-1", children: marks.map((m) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
23682
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex items-center gap-1", children: marks.map((m) => /* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.VendorLogo, { vendorKey: m.vendorKey, product: m.product, className: "h-4 w-4" }, m.key)) }),
|
|
23736
23683
|
"Add from accounts"
|
|
23737
23684
|
]
|
|
23738
23685
|
}
|
|
@@ -23816,7 +23763,7 @@ function ConnectedUploadDropzone({
|
|
|
23816
23763
|
const onFiles = browse(fileInputRef);
|
|
23817
23764
|
const onFolder = browse(folderInputRef);
|
|
23818
23765
|
const dropTarget = /* @__PURE__ */ jsxRuntime.jsx(
|
|
23819
|
-
|
|
23766
|
+
chunk44M4FI2N_cjs.UploadDropArea,
|
|
23820
23767
|
{
|
|
23821
23768
|
isActive: dragActive,
|
|
23822
23769
|
isDisabled: disabled,
|
|
@@ -23830,11 +23777,11 @@ function ConnectedUploadDropzone({
|
|
|
23830
23777
|
onClick: (e) => {
|
|
23831
23778
|
if (e.target === e.currentTarget) onFiles();
|
|
23832
23779
|
},
|
|
23833
|
-
actions: compact ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
23780
|
+
actions: compact ? /* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.UploadBrowseButtons, { onFiles, onFolder, isDisabled: disabled }) : void 0
|
|
23834
23781
|
}
|
|
23835
23782
|
);
|
|
23836
23783
|
const urlDialog = (trigger) => onUrlsSubmit ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
23837
|
-
|
|
23784
|
+
chunk44M4FI2N_cjs.UrlInputDialog,
|
|
23838
23785
|
{
|
|
23839
23786
|
onUrlsSubmit,
|
|
23840
23787
|
processing: disabled,
|
|
@@ -23847,12 +23794,12 @@ function ConnectedUploadDropzone({
|
|
|
23847
23794
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
23848
23795
|
dropTarget,
|
|
23849
23796
|
compactLeadingAction,
|
|
23850
|
-
onUrlsSubmit && /* @__PURE__ */ jsxRuntime.jsx(
|
|
23797
|
+
onUrlsSubmit && /* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.UploadSourceSection, { isIsolated: true, className: "flex flex-wrap justify-center gap-2", children: urlDialog(/* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.UploadUrlButton, { isDisabled: disabled, isCompact: true })) })
|
|
23851
23798
|
] });
|
|
23852
23799
|
}
|
|
23853
23800
|
if (!source) {
|
|
23854
23801
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
23855
|
-
|
|
23802
|
+
chunk44M4FI2N_cjs.UploadSourcePicker,
|
|
23856
23803
|
{
|
|
23857
23804
|
isDisabled: disabled,
|
|
23858
23805
|
options: [
|
|
@@ -23888,14 +23835,14 @@ function ConnectedUploadDropzone({
|
|
|
23888
23835
|
}
|
|
23889
23836
|
if (source === "computer") {
|
|
23890
23837
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
23891
|
-
|
|
23838
|
+
chunk44M4FI2N_cjs.UploadSourceSection,
|
|
23892
23839
|
{
|
|
23893
23840
|
testId: "upload-source-computer",
|
|
23894
23841
|
className: "flex w-full flex-col gap-3 pointer-coarse:flex-col-reverse",
|
|
23895
23842
|
children: [
|
|
23896
23843
|
dropTarget,
|
|
23897
23844
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
23898
|
-
|
|
23845
|
+
chunk44M4FI2N_cjs.UploadBrowseButtons,
|
|
23899
23846
|
{
|
|
23900
23847
|
layout: "grid",
|
|
23901
23848
|
onFiles,
|
|
@@ -23908,15 +23855,15 @@ function ConnectedUploadDropzone({
|
|
|
23908
23855
|
);
|
|
23909
23856
|
}
|
|
23910
23857
|
if (source === "internet" && onUrlsSubmit) {
|
|
23911
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
23858
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.UploadSourceSection, { testId: "upload-source-internet", className: "flex flex-wrap gap-2", children: /* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.UploadSourceSection, { isIsolated: true, children: urlDialog(/* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.UploadUrlButton, { isDisabled: disabled })) }) });
|
|
23912
23859
|
}
|
|
23913
23860
|
if (source === "email" && accounts) {
|
|
23914
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
23861
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.UploadSourceSection, { testId: "upload-source-email", isIsolated: true, children: accounts });
|
|
23915
23862
|
}
|
|
23916
23863
|
return null;
|
|
23917
23864
|
})();
|
|
23918
23865
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
23919
|
-
|
|
23866
|
+
chunk44M4FI2N_cjs.UploadFrame,
|
|
23920
23867
|
{
|
|
23921
23868
|
isCompact: compact,
|
|
23922
23869
|
isDimmed: disabled || processingMessage !== null,
|
|
@@ -23977,7 +23924,7 @@ function EmptyWorkspaceUpload({
|
|
|
23977
23924
|
compactLeadingAction: onImportFromEmail && /* @__PURE__ */ jsxRuntime.jsx(AddFromAccountsButton, { onImportFromEmail })
|
|
23978
23925
|
}
|
|
23979
23926
|
),
|
|
23980
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
23927
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.PrivacyExplainerModal, {})
|
|
23981
23928
|
] })
|
|
23982
23929
|
}
|
|
23983
23930
|
);
|
|
@@ -24084,9 +24031,9 @@ function useDocumentFilters({
|
|
|
24084
24031
|
const { data: members = [] } = react$1.useWorkspaceUsers();
|
|
24085
24032
|
const user = members.find((m) => m.user.external_id === currentUserId)?.user;
|
|
24086
24033
|
const offlineIds = react$1.useOfflineDocumentIds();
|
|
24087
|
-
const pendingFolders =
|
|
24088
|
-
const persistedDocumentFilters =
|
|
24089
|
-
const setPersistedDocumentFilters =
|
|
24034
|
+
const pendingFolders = chunkHGD4B7GO_cjs.usePendingFolders(selectedWorkspaceId);
|
|
24035
|
+
const persistedDocumentFilters = chunkHGD4B7GO_cjs.useFilesPrefs((state) => state.documentFilters);
|
|
24036
|
+
const setPersistedDocumentFilters = chunkHGD4B7GO_cjs.useFilesPrefs((state) => state.setDocumentFilters);
|
|
24090
24037
|
const folderTree = react.useMemo(() => {
|
|
24091
24038
|
const allPaths = /* @__PURE__ */ new Set();
|
|
24092
24039
|
let hasUnfiled = false;
|
|
@@ -24307,7 +24254,7 @@ function useDocumentFilters({
|
|
|
24307
24254
|
{
|
|
24308
24255
|
id: "uploaded_by_me",
|
|
24309
24256
|
label: "Uploaded by me",
|
|
24310
|
-
icon: user ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
24257
|
+
icon: user ? /* @__PURE__ */ jsxRuntime.jsx(chunkBNHFDXJI_cjs.UserAvatar, { user, isMe: true }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.User, { className: "h-4 w-4" }),
|
|
24311
24258
|
count: docs.filter((doc) => doc.created_by_ext_id === currentUserId).length
|
|
24312
24259
|
},
|
|
24313
24260
|
{
|
|
@@ -24428,7 +24375,7 @@ function useDocumentFilters({
|
|
|
24428
24375
|
const folderPath = react.useMemo(() => {
|
|
24429
24376
|
for (const [key, state] of documentFilters) {
|
|
24430
24377
|
if (key.startsWith("folder:") && key !== "folder:none" && state === "include") {
|
|
24431
|
-
return
|
|
24378
|
+
return chunk44M4FI2N_cjs.parseFolderSegments(key.slice("folder:".length));
|
|
24432
24379
|
}
|
|
24433
24380
|
}
|
|
24434
24381
|
return [];
|
|
@@ -24437,7 +24384,7 @@ function useDocumentFilters({
|
|
|
24437
24384
|
(path) => {
|
|
24438
24385
|
const next = new Map(documentFilters);
|
|
24439
24386
|
for (const key of next.keys()) if (key.startsWith("folder:")) next.set(key, null);
|
|
24440
|
-
const joined =
|
|
24387
|
+
const joined = chunk44M4FI2N_cjs.joinFolderPath(path);
|
|
24441
24388
|
if (joined) next.set(`folder:${joined}`, "include");
|
|
24442
24389
|
setDocumentFilters(next);
|
|
24443
24390
|
},
|
|
@@ -24664,7 +24611,7 @@ function ConnectedSearchPage({ embedded = false, labels }) {
|
|
|
24664
24611
|
const scopeCount = scope.count;
|
|
24665
24612
|
const tooMany = !!scopeDocIds && scopeDocIds.length > react$1.MAX_RETRIEVE_DOC_IDS;
|
|
24666
24613
|
const tooManyMessage = tooMany ? l.tooManyDocuments(scopeCount, react$1.MAX_RETRIEVE_DOC_IDS) : void 0;
|
|
24667
|
-
const uploadUrls =
|
|
24614
|
+
const uploadUrls = chunkYO7GDNEW_cjs.useAddFromUrls({
|
|
24668
24615
|
onZipFiles: (files2) => openUpload?.(files2, { source: "computer" })
|
|
24669
24616
|
});
|
|
24670
24617
|
const search = react$1.useSemanticSearch(scopeDocIds ?? [], {
|
|
@@ -27020,7 +26967,7 @@ function ConnectedMailbox({
|
|
|
27020
26967
|
onTabChange: () => {
|
|
27021
26968
|
},
|
|
27022
26969
|
compactBreakpoint: 360,
|
|
27023
|
-
firstTabContent: account ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
26970
|
+
firstTabContent: account ? /* @__PURE__ */ jsxRuntime.jsxs(chunk44M4FI2N_cjs.FilesFilterBar, { children: [
|
|
27024
26971
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
27025
26972
|
chunk6UZC4XVV_cjs.FilterInput,
|
|
27026
26973
|
{
|
|
@@ -27055,7 +27002,7 @@ function ConnectedMailbox({
|
|
|
27055
27002
|
}
|
|
27056
27003
|
),
|
|
27057
27004
|
folderList && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex shrink-0 items-center gap-2", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
27058
|
-
|
|
27005
|
+
chunk44M4FI2N_cjs.FolderFilterButton,
|
|
27059
27006
|
{
|
|
27060
27007
|
label: folderList.find((f) => f.id === folderId)?.name ?? "Folders",
|
|
27061
27008
|
isActive: false,
|
|
@@ -27063,7 +27010,7 @@ function ConnectedMailbox({
|
|
|
27063
27010
|
onOpenChange: setFolderMenuOpen,
|
|
27064
27011
|
testId: "mail-folder-button",
|
|
27065
27012
|
children: folderList.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
27066
|
-
|
|
27013
|
+
chunk44M4FI2N_cjs.FolderPickerRow,
|
|
27067
27014
|
{
|
|
27068
27015
|
label: item.name,
|
|
27069
27016
|
count: item.unread > 0 ? item.unread : void 0,
|
|
@@ -27577,7 +27524,7 @@ function ConnectedSecureMailClaimPage({
|
|
|
27577
27524
|
}) {
|
|
27578
27525
|
const authenticated = react$1.useArbiSession().status === "signed-in";
|
|
27579
27526
|
const { openMail } = chunk46LX6EQT_cjs.useBlocksEnvironment();
|
|
27580
|
-
const { loading } =
|
|
27527
|
+
const { loading } = chunkPTT5MZ7O_cjs.useAuthPages();
|
|
27581
27528
|
const claim = react$1.useClaimSecureMail();
|
|
27582
27529
|
const [, setFirstLoginWorkspaces] = react$1.useTransientView(FIRST_LOGIN_WORKSPACES_VIEW, null);
|
|
27583
27530
|
const [failure, setFailure] = react.useState(null);
|
|
@@ -27617,7 +27564,7 @@ function ConnectedSecureMailClaimPage({
|
|
|
27617
27564
|
}
|
|
27618
27565
|
})();
|
|
27619
27566
|
}, [authenticated, claimId, key]);
|
|
27620
|
-
if (!error) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: loading ?? /* @__PURE__ */ jsxRuntime.jsx(
|
|
27567
|
+
if (!error) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: loading ?? /* @__PURE__ */ jsxRuntime.jsx(chunkHJHDKS4V_cjs.LoadingIndicator, { variant: "splash" }) });
|
|
27621
27568
|
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: [
|
|
27622
27569
|
/* @__PURE__ */ jsxRuntime.jsx("p", { role: "alert", className: "mb-4 text-sm text-destructive", children: error }),
|
|
27623
27570
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -28490,7 +28437,7 @@ function BookingPagesPanel({ defaultTimeZone, className }) {
|
|
|
28490
28437
|
var selectClass4 = "h-9 w-full rounded-md border border-input bg-background px-2 text-sm text-foreground shadow-sm";
|
|
28491
28438
|
function CreateRoomForm({ zone, onDone }) {
|
|
28492
28439
|
const { notify: notify19 } = chunk46LX6EQT_cjs.useBlocksEnvironment();
|
|
28493
|
-
const
|
|
28440
|
+
const create2 = react$1.useCreateRoom();
|
|
28494
28441
|
const [name, setName] = react.useState("");
|
|
28495
28442
|
const [type, setType] = react.useState("room");
|
|
28496
28443
|
const [capacity, setCapacity] = react.useState("");
|
|
@@ -28510,7 +28457,7 @@ function CreateRoomForm({ zone, onDone }) {
|
|
|
28510
28457
|
const cap = capacity.trim() ? Number(capacity) : null;
|
|
28511
28458
|
if (cap !== null && (!Number.isInteger(cap) || cap < 1))
|
|
28512
28459
|
return setError("Capacity must be a whole number");
|
|
28513
|
-
|
|
28460
|
+
create2.mutate(
|
|
28514
28461
|
{
|
|
28515
28462
|
name: name.trim(),
|
|
28516
28463
|
type,
|
|
@@ -28601,8 +28548,8 @@ function CreateRoomForm({ zone, onDone }) {
|
|
|
28601
28548
|
error && /* @__PURE__ */ jsxRuntime.jsx("p", { role: "alert", className: "text-sm text-destructive", children: error }),
|
|
28602
28549
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-end gap-2", children: [
|
|
28603
28550
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Button, { type: "button", variant: "ghost", onClick: onDone, children: "Cancel" }),
|
|
28604
|
-
/* @__PURE__ */ jsxRuntime.jsxs(ui.Button, { type: "submit", disabled:
|
|
28605
|
-
|
|
28551
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ui.Button, { type: "submit", disabled: create2.isPending, children: [
|
|
28552
|
+
create2.isPending && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "mr-1 size-4 animate-spin" }),
|
|
28606
28553
|
"Create"
|
|
28607
28554
|
] })
|
|
28608
28555
|
] })
|
|
@@ -29562,42 +29509,42 @@ function useConnectedCalendarCalls() {
|
|
|
29562
29509
|
[knownUsers]
|
|
29563
29510
|
);
|
|
29564
29511
|
return react.useMemo(() => {
|
|
29565
|
-
const users = (attendees) =>
|
|
29512
|
+
const users = (attendees) => chunkYO7GDNEW_cjs.resolveAttendeeUsersRemote(arbi, attendees, known, me);
|
|
29566
29513
|
return {
|
|
29567
29514
|
canSchedule,
|
|
29568
29515
|
async create(draft, webinarRoles) {
|
|
29569
29516
|
const resolved = await users(draft.attendees ?? []);
|
|
29570
|
-
return
|
|
29517
|
+
return chunkYO7GDNEW_cjs.createEventCall(arbi, {
|
|
29571
29518
|
title: draft.title,
|
|
29572
|
-
peers:
|
|
29573
|
-
webinar: webinarRoles ? { roles:
|
|
29519
|
+
peers: chunkYO7GDNEW_cjs.distinctPeers(resolved),
|
|
29520
|
+
webinar: webinarRoles ? { roles: chunkYO7GDNEW_cjs.webinarRolesByUser(webinarRoles, resolved) } : null
|
|
29574
29521
|
});
|
|
29575
29522
|
},
|
|
29576
29523
|
async share(draft) {
|
|
29577
|
-
await
|
|
29524
|
+
await chunkYO7GDNEW_cjs.shareEventCall(
|
|
29578
29525
|
arbi,
|
|
29579
29526
|
draft.conference,
|
|
29580
|
-
await
|
|
29527
|
+
await chunkYO7GDNEW_cjs.resolveCallPeersRemote(arbi, draft.attendees ?? [], known, me)
|
|
29581
29528
|
);
|
|
29582
29529
|
},
|
|
29583
|
-
loadWebinarRoles: (url, attendees) =>
|
|
29530
|
+
loadWebinarRoles: (url, attendees) => chunkYO7GDNEW_cjs.loadEventWebinar(arbi, url, attendees),
|
|
29584
29531
|
async saveWebinarRoles(url, roles, attendees) {
|
|
29585
29532
|
const resolved = await users(attendees);
|
|
29586
|
-
await
|
|
29533
|
+
await chunkYO7GDNEW_cjs.updateEventWebinarRoles(
|
|
29587
29534
|
arbi,
|
|
29588
29535
|
url,
|
|
29589
|
-
|
|
29590
|
-
|
|
29536
|
+
chunkYO7GDNEW_cjs.webinarRolesByUser(roles, resolved),
|
|
29537
|
+
chunkYO7GDNEW_cjs.distinctPeers(resolved)
|
|
29591
29538
|
);
|
|
29592
29539
|
},
|
|
29593
29540
|
async arbiAttendees(attendees) {
|
|
29594
29541
|
return new Set((await users(attendees)).keys());
|
|
29595
29542
|
},
|
|
29596
29543
|
join(url) {
|
|
29597
|
-
void
|
|
29544
|
+
void chunkYO7GDNEW_cjs.joinEventMeeting(arbi, url);
|
|
29598
29545
|
},
|
|
29599
29546
|
openChat(url) {
|
|
29600
|
-
const parsed =
|
|
29547
|
+
const parsed = chunkYO7GDNEW_cjs.parseArbiCallUrl(url);
|
|
29601
29548
|
if (parsed) void openCallMeetingChat({ callExtId: parsed.callId, callKey: parsed.key });
|
|
29602
29549
|
}
|
|
29603
29550
|
};
|
|
@@ -30136,7 +30083,7 @@ function ConnectedCalendar({
|
|
|
30136
30083
|
}
|
|
30137
30084
|
),
|
|
30138
30085
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
30139
|
-
|
|
30086
|
+
chunkYO7GDNEW_cjs.ConnectedUpcomingEvents,
|
|
30140
30087
|
{
|
|
30141
30088
|
timeZone: zone,
|
|
30142
30089
|
showDeclined: !!settings.show_declined,
|
|
@@ -30772,7 +30719,7 @@ function ProcessingSettingsFooter({
|
|
|
30772
30719
|
[configField]
|
|
30773
30720
|
);
|
|
30774
30721
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30775
|
-
|
|
30722
|
+
chunk44M4FI2N_cjs.UploadFooterBar,
|
|
30776
30723
|
{
|
|
30777
30724
|
skipDuplicates,
|
|
30778
30725
|
onSkipDuplicatesChange: (value) => handleConfigChange("Parser", "SKIP_DUPLICATES", value),
|
|
@@ -30781,7 +30728,7 @@ function ProcessingSettingsFooter({
|
|
|
30781
30728
|
autoRenameInstruction,
|
|
30782
30729
|
onAutoRenameInstructionChange: (value) => handleConfigChange("DoctagLLM", "AUTO_RENAME_INSTRUCTION", value),
|
|
30783
30730
|
shareToggle: /* @__PURE__ */ jsxRuntime.jsx(
|
|
30784
|
-
|
|
30731
|
+
chunk44M4FI2N_cjs.ShareToggle,
|
|
30785
30732
|
{
|
|
30786
30733
|
isVisible: isShared,
|
|
30787
30734
|
onToggle: onSharedChange,
|
|
@@ -30911,7 +30858,7 @@ ${summary}`,
|
|
|
30911
30858
|
fail2
|
|
30912
30859
|
]);
|
|
30913
30860
|
const zipFilesAdded = react.useRef(false);
|
|
30914
|
-
const addFromUrls =
|
|
30861
|
+
const addFromUrls = chunkYO7GDNEW_cjs.useAddFromUrls({
|
|
30915
30862
|
shared,
|
|
30916
30863
|
configExtId,
|
|
30917
30864
|
onZipFiles: (zipFiles) => {
|
|
@@ -30958,7 +30905,7 @@ ${summary}`,
|
|
|
30958
30905
|
}
|
|
30959
30906
|
);
|
|
30960
30907
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-0 flex-1 flex-col", "data-testid": "upload-documents", children: [
|
|
30961
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-h-0 flex-1 overflow-y-auto pb-2", children: uploading === null ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
30908
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-h-0 flex-1 overflow-y-auto pb-2", children: uploading === null ? /* @__PURE__ */ jsxRuntime.jsxs(chunk44M4FI2N_cjs.UploadContainer, { className: "w-full px-4 pb-4 pt-2 sm:px-6", children: [
|
|
30962
30909
|
files2.length === 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
30963
30910
|
ConnectedUploadDropzone,
|
|
30964
30911
|
{
|
|
@@ -30974,7 +30921,7 @@ ${summary}`,
|
|
|
30974
30921
|
}
|
|
30975
30922
|
),
|
|
30976
30923
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
30977
|
-
|
|
30924
|
+
chunk44M4FI2N_cjs.SelectedFilesList,
|
|
30978
30925
|
{
|
|
30979
30926
|
renderFileIcon,
|
|
30980
30927
|
files: files2,
|
|
@@ -30983,10 +30930,10 @@ ${summary}`,
|
|
|
30983
30930
|
formatFileSize: formatFileSize4
|
|
30984
30931
|
}
|
|
30985
30932
|
),
|
|
30986
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
30987
|
-
error && /* @__PURE__ */ jsxRuntime.jsx(
|
|
30988
|
-
] }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
30989
|
-
|
|
30933
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.RejectedFilesList, { files: refused, onClear: () => setRefused([]) }),
|
|
30934
|
+
error && /* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.UploadErrorMessage, { message: error })
|
|
30935
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.UploadContainer, { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
30936
|
+
chunk44M4FI2N_cjs.UploadProgress,
|
|
30990
30937
|
{
|
|
30991
30938
|
fileCount: count2,
|
|
30992
30939
|
entityLabel: plural4(count2),
|
|
@@ -31148,14 +31095,14 @@ function NativeMailImportSection({
|
|
|
31148
31095
|
),
|
|
31149
31096
|
onError: (e) => notify19(e instanceof Error ? e.message : "Could not add mail", "error")
|
|
31150
31097
|
});
|
|
31151
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
31152
|
-
|
|
31098
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.ImportFamilySection, { label: "Mail", identity: native.email, testId: "import-family-native", children: /* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.ImportList, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
31099
|
+
chunk44M4FI2N_cjs.ImportRow,
|
|
31153
31100
|
{
|
|
31154
31101
|
testId: "email-provider-row-native",
|
|
31155
31102
|
logo: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Mail, { className: "h-7 w-7 text-primary", "aria-hidden": "true" }),
|
|
31156
31103
|
name: NATIVE_MAILBOX_SOURCE.display_name,
|
|
31157
31104
|
actions: /* @__PURE__ */ jsxRuntime.jsx(
|
|
31158
|
-
|
|
31105
|
+
chunk44M4FI2N_cjs.ImportRunActions,
|
|
31159
31106
|
{
|
|
31160
31107
|
isRunning: false,
|
|
31161
31108
|
isBusy: fileNow.isPending,
|
|
@@ -31169,10 +31116,10 @@ function NativeMailImportSection({
|
|
|
31169
31116
|
),
|
|
31170
31117
|
children: [
|
|
31171
31118
|
here && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
31172
|
-
|
|
31119
|
+
chunk44M4FI2N_cjs.ImportSummary,
|
|
31173
31120
|
{
|
|
31174
|
-
aside: /* @__PURE__ */ jsxRuntime.jsx(
|
|
31175
|
-
|
|
31121
|
+
aside: /* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.ImportAside, { children: here.folders.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
31122
|
+
chunk44M4FI2N_cjs.FolderSummary,
|
|
31176
31123
|
{
|
|
31177
31124
|
names: here.folders.map(
|
|
31178
31125
|
(id) => NATIVE_MAILBOX_FOLDERS.find((f) => f.id === id)?.name
|
|
@@ -31214,7 +31161,7 @@ var PROVIDER_FAMILIES = [
|
|
|
31214
31161
|
{ key: "google", label: "Google", vendors: ["gmail"] }
|
|
31215
31162
|
];
|
|
31216
31163
|
function VendorGlyph({ catalog }) {
|
|
31217
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
31164
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.VendorLogo, { vendorKey: catalog.vendor_key, className: "h-7 w-7" });
|
|
31218
31165
|
}
|
|
31219
31166
|
function mailboxProductName(catalog) {
|
|
31220
31167
|
if (catalog.vendor_key === "microsoft") return "Outlook";
|
|
@@ -31282,7 +31229,7 @@ function EmailProviderRow({
|
|
|
31282
31229
|
const emailNoun = (n) => n === 1 ? "email" : "emails";
|
|
31283
31230
|
const syncedCount = thisSync?.synced_count ?? 0;
|
|
31284
31231
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
31285
|
-
|
|
31232
|
+
chunk44M4FI2N_cjs.ImportRow,
|
|
31286
31233
|
{
|
|
31287
31234
|
testId: `email-provider-row-${catalog.vendor_key}`,
|
|
31288
31235
|
logo: /* @__PURE__ */ jsxRuntime.jsx(VendorGlyph, { catalog }),
|
|
@@ -31291,7 +31238,7 @@ function EmailProviderRow({
|
|
|
31291
31238
|
// Connecting AND reconnecting are owned by the family header, so a
|
|
31292
31239
|
// not-connected or needs-reconnect row shows no button of its own.
|
|
31293
31240
|
!isConnected || needsReconnect ? null : /* @__PURE__ */ jsxRuntime.jsx(
|
|
31294
|
-
|
|
31241
|
+
chunk44M4FI2N_cjs.ImportRunActions,
|
|
31295
31242
|
{
|
|
31296
31243
|
isRunning: running,
|
|
31297
31244
|
isStopping: cancelSync.isPending,
|
|
@@ -31307,10 +31254,10 @@ function EmailProviderRow({
|
|
|
31307
31254
|
),
|
|
31308
31255
|
children: [
|
|
31309
31256
|
isConnected && !needsReconnect && !running && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
31310
|
-
|
|
31257
|
+
chunk44M4FI2N_cjs.ImportSummary,
|
|
31311
31258
|
{
|
|
31312
|
-
aside: /* @__PURE__ */ jsxRuntime.jsx(
|
|
31313
|
-
|
|
31259
|
+
aside: /* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.ImportAside, { children: thisSync && thisSync.folders.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
31260
|
+
chunk44M4FI2N_cjs.FolderSummary,
|
|
31314
31261
|
{
|
|
31315
31262
|
names: thisSync.folders.map(
|
|
31316
31263
|
(id) => mailboxFolders?.find((f) => f.id === id)?.name
|
|
@@ -31334,7 +31281,7 @@ function EmailProviderRow({
|
|
|
31334
31281
|
}
|
|
31335
31282
|
),
|
|
31336
31283
|
running && /* @__PURE__ */ jsxRuntime.jsx(
|
|
31337
|
-
|
|
31284
|
+
chunk44M4FI2N_cjs.ImportProgress,
|
|
31338
31285
|
{
|
|
31339
31286
|
processed: progress?.processed ?? 0,
|
|
31340
31287
|
total: progress?.total,
|
|
@@ -31452,11 +31399,11 @@ function EmailImportPanel({
|
|
|
31452
31399
|
return { family, entries, extra, identity, connectVendor, connected, needsReconnect };
|
|
31453
31400
|
}).filter((g) => g.entries.length > 0 || g.extra);
|
|
31454
31401
|
if (!ownMailbox && groups.length === 0) return null;
|
|
31455
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
31402
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunk44M4FI2N_cjs.ImportPanel, { "data-testid": "email-import-panel", children: [
|
|
31456
31403
|
ownMailbox && /* @__PURE__ */ jsxRuntime.jsx(NativeMailImportSection, { workspaceExtId, native: ownMailbox }),
|
|
31457
31404
|
groups.map(
|
|
31458
31405
|
({ family, entries, extra, identity, connectVendor, connected, needsReconnect }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
31459
|
-
|
|
31406
|
+
chunk44M4FI2N_cjs.ImportFamilySection,
|
|
31460
31407
|
{
|
|
31461
31408
|
label: family.label,
|
|
31462
31409
|
identity,
|
|
@@ -31465,7 +31412,7 @@ function EmailImportPanel({
|
|
|
31465
31412
|
onAction: () => void (!connected ? connectFamily(connectVendor) : needsReconnect ? reconnectFamily(connectVendor) : disconnectFamily(family, connectVendor, identity)),
|
|
31466
31413
|
testId: `import-family-${family.key}`,
|
|
31467
31414
|
actionButton: !connected ? { testId: `import-family-connect-${family.key}` } : needsReconnect ? { testId: `import-family-reconnect-${family.key}` } : { testId: `import-family-disconnect-${family.key}` },
|
|
31468
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
31415
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(chunk44M4FI2N_cjs.ImportList, { children: [
|
|
31469
31416
|
entries.map((entry) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
31470
31417
|
EmailProviderRow,
|
|
31471
31418
|
{
|
|
@@ -31550,7 +31497,7 @@ function driveProduct(vendorKey) {
|
|
|
31550
31497
|
}
|
|
31551
31498
|
function VendorGlyph2({ catalog }) {
|
|
31552
31499
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
31553
|
-
|
|
31500
|
+
chunk44M4FI2N_cjs.VendorLogo,
|
|
31554
31501
|
{
|
|
31555
31502
|
vendorKey: catalog.vendor_key,
|
|
31556
31503
|
product: driveProduct(catalog.vendor_key).glyph,
|
|
@@ -31673,7 +31620,7 @@ function OneDriveProviderRow({
|
|
|
31673
31620
|
const driveNoun = (n) => n === 1 ? "document" : "documents";
|
|
31674
31621
|
const showRunActions = isConnected && !needsReconnect;
|
|
31675
31622
|
const reconnectAction = ownsAuth && needsReconnect ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
31676
|
-
|
|
31623
|
+
chunk44M4FI2N_cjs.ImportActionButton,
|
|
31677
31624
|
{
|
|
31678
31625
|
onClick: () => void reconnectSelf(),
|
|
31679
31626
|
disabled: reauthPending,
|
|
@@ -31682,7 +31629,7 @@ function OneDriveProviderRow({
|
|
|
31682
31629
|
}
|
|
31683
31630
|
) : null;
|
|
31684
31631
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
31685
|
-
|
|
31632
|
+
chunk44M4FI2N_cjs.ImportRow,
|
|
31686
31633
|
{
|
|
31687
31634
|
testId: `onedrive-provider-row-${catalog.vendor_key}`,
|
|
31688
31635
|
logo: /* @__PURE__ */ jsxRuntime.jsx(VendorGlyph2, { catalog }),
|
|
@@ -31694,7 +31641,7 @@ function OneDriveProviderRow({
|
|
|
31694
31641
|
// Until folders are configured here (or when nothing new is pending), Import now
|
|
31695
31642
|
// stays disabled; the gear opens the folder picker.
|
|
31696
31643
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31697
|
-
|
|
31644
|
+
chunk44M4FI2N_cjs.ImportRunActions,
|
|
31698
31645
|
{
|
|
31699
31646
|
isRunning: running,
|
|
31700
31647
|
isStopping: cancelSync.isPending,
|
|
@@ -31713,16 +31660,16 @@ function OneDriveProviderRow({
|
|
|
31713
31660
|
) : reconnectAction
|
|
31714
31661
|
),
|
|
31715
31662
|
children: [
|
|
31716
|
-
ownsAuth && needsReconnect && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
31663
|
+
ownsAuth && needsReconnect && /* @__PURE__ */ jsxRuntime.jsxs(chunk44M4FI2N_cjs.ImportHint, { "data-testid": `onedrive-reconnect-hint-${catalog.vendor_key}`, children: [
|
|
31717
31664
|
"Couldn\u2019t reach SharePoint. Click ",
|
|
31718
31665
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium", children: "Reconnect" }),
|
|
31719
31666
|
" \u2014 if it keeps happening, log out and back in to refresh the connection."
|
|
31720
31667
|
] }),
|
|
31721
31668
|
configuredHere && !needsReconnect && !running && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
31722
|
-
|
|
31669
|
+
chunk44M4FI2N_cjs.ImportSummary,
|
|
31723
31670
|
{
|
|
31724
31671
|
className: "mt-2",
|
|
31725
|
-
aside: typeof pendingCount === "number" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
31672
|
+
aside: typeof pendingCount === "number" ? /* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_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,
|
|
31726
31673
|
children: [
|
|
31727
31674
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
31728
31675
|
"Syncing ",
|
|
@@ -31750,7 +31697,7 @@ function OneDriveProviderRow({
|
|
|
31750
31697
|
}
|
|
31751
31698
|
),
|
|
31752
31699
|
running && /* @__PURE__ */ jsxRuntime.jsx(
|
|
31753
|
-
|
|
31700
|
+
chunk44M4FI2N_cjs.ImportProgress,
|
|
31754
31701
|
{
|
|
31755
31702
|
processed: progress?.processed ?? 0,
|
|
31756
31703
|
total: progress?.total,
|
|
@@ -31814,13 +31761,13 @@ function SharePointEnableRow({
|
|
|
31814
31761
|
}
|
|
31815
31762
|
};
|
|
31816
31763
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
31817
|
-
|
|
31764
|
+
chunk44M4FI2N_cjs.ImportRow,
|
|
31818
31765
|
{
|
|
31819
31766
|
testId: `onedrive-provider-row-${catalog.vendor_key}`,
|
|
31820
|
-
logo: /* @__PURE__ */ jsxRuntime.jsx(
|
|
31767
|
+
logo: /* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.VendorLogo, { vendorKey: catalog.vendor_key, product: product.glyph, className: "h-7 w-7" }),
|
|
31821
31768
|
name: product.name,
|
|
31822
31769
|
actions: /* @__PURE__ */ jsxRuntime.jsx(
|
|
31823
|
-
|
|
31770
|
+
chunk44M4FI2N_cjs.ImportActionButton,
|
|
31824
31771
|
{
|
|
31825
31772
|
onClick: () => void enable(),
|
|
31826
31773
|
disabled: pending,
|
|
@@ -31828,7 +31775,7 @@ function SharePointEnableRow({
|
|
|
31828
31775
|
children: pending ? "Enabling\u2026" : `Enable ${product.name}`
|
|
31829
31776
|
}
|
|
31830
31777
|
),
|
|
31831
|
-
children: sharePointAdminUrl && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
31778
|
+
children: sharePointAdminUrl && /* @__PURE__ */ jsxRuntime.jsxs(chunk44M4FI2N_cjs.ImportHint, { children: [
|
|
31832
31779
|
"Does your organization require admin approval?",
|
|
31833
31780
|
" ",
|
|
31834
31781
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -31877,11 +31824,11 @@ function DriveImportPanel({
|
|
|
31877
31824
|
}
|
|
31878
31825
|
const product = driveProduct(entry.vendor_key);
|
|
31879
31826
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
31880
|
-
|
|
31827
|
+
chunk44M4FI2N_cjs.ImportRow,
|
|
31881
31828
|
{
|
|
31882
31829
|
testId: `onedrive-provider-row-${entry.vendor_key}`,
|
|
31883
31830
|
logo: /* @__PURE__ */ jsxRuntime.jsx(
|
|
31884
|
-
|
|
31831
|
+
chunk44M4FI2N_cjs.VendorLogo,
|
|
31885
31832
|
{
|
|
31886
31833
|
vendorKey: entry.vendor_key,
|
|
31887
31834
|
product: product.glyph,
|
|
@@ -31906,7 +31853,7 @@ function DriveImportPanel({
|
|
|
31906
31853
|
);
|
|
31907
31854
|
}).filter(Boolean);
|
|
31908
31855
|
if (rows.length === 0) return null;
|
|
31909
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
31856
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.ImportList, { "data-testid": "onedrive-import-panel", children: rows });
|
|
31910
31857
|
}
|
|
31911
31858
|
function useHasAccountsImport() {
|
|
31912
31859
|
const isVendorVisible = react$1.useConnectorVendorVisibility();
|
|
@@ -32008,7 +31955,7 @@ function ConnectedUploadDialog({ props, onClose }) {
|
|
|
32008
31955
|
title: source ? TITLES[source] : `Add ${ui.getEntityLabel("DOCUMENT", "PLURAL")}`,
|
|
32009
31956
|
description: `Upload documents to ${workspace.name}`,
|
|
32010
31957
|
workspaceName: workspace.name,
|
|
32011
|
-
workspaceIcon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
31958
|
+
workspaceIcon: /* @__PURE__ */ jsxRuntime.jsx(chunkYO7GDNEW_cjs.ConnectedWorkspaceEntity, { workspace, size: 16, variant: "icon" })
|
|
32012
31959
|
}
|
|
32013
31960
|
),
|
|
32014
31961
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-h-0 flex-1 flex-col", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -32051,7 +31998,7 @@ function ConnectedBulkTagCrumbs() {
|
|
|
32051
31998
|
{
|
|
32052
31999
|
items: [
|
|
32053
32000
|
{
|
|
32054
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
32001
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkYO7GDNEW_cjs.ConnectedWorkspaceEntity, { workspace, size: 16, variant: "icon" }),
|
|
32055
32002
|
label: workspace.name
|
|
32056
32003
|
},
|
|
32057
32004
|
...pageLabel ? [{ icon: /* @__PURE__ */ jsxRuntime.jsx(ui.EntityIcon, { entityType: "DOCUMENT", className: "size-4" }), label: pageLabel }] : []
|
|
@@ -32078,7 +32025,7 @@ function DocumentNameCellRenderer(params) {
|
|
|
32078
32025
|
if (!doc) return null;
|
|
32079
32026
|
const context = params.context;
|
|
32080
32027
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
32081
|
-
|
|
32028
|
+
chunkBNHFDXJI_cjs.DocumentNameCell,
|
|
32082
32029
|
{
|
|
32083
32030
|
doc,
|
|
32084
32031
|
canEdit: canEdit(params),
|
|
@@ -32096,7 +32043,7 @@ function DocumentNameCellRenderer(params) {
|
|
|
32096
32043
|
function SharedCellRenderer(params) {
|
|
32097
32044
|
if (!params.data) return null;
|
|
32098
32045
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
32099
|
-
|
|
32046
|
+
chunkBNHFDXJI_cjs.DocumentSharedCell,
|
|
32100
32047
|
{
|
|
32101
32048
|
document: params.data,
|
|
32102
32049
|
disabled: !params.canToggle(params),
|
|
@@ -32109,7 +32056,7 @@ function StatusCellRenderer(params) {
|
|
|
32109
32056
|
if (!params.data) return null;
|
|
32110
32057
|
const context = params.context;
|
|
32111
32058
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
32112
|
-
|
|
32059
|
+
chunkBNHFDXJI_cjs.StatusCell,
|
|
32113
32060
|
{
|
|
32114
32061
|
doc: params.data,
|
|
32115
32062
|
onStatusClick: params.onStatusClick,
|
|
@@ -32121,7 +32068,7 @@ function LabelsCellRenderer(params) {
|
|
|
32121
32068
|
if (!params.data) return null;
|
|
32122
32069
|
const context = params.context;
|
|
32123
32070
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
32124
|
-
|
|
32071
|
+
chunkBNHFDXJI_cjs.DocumentLabelsCell,
|
|
32125
32072
|
{
|
|
32126
32073
|
doc: params.data,
|
|
32127
32074
|
labels: params.labels,
|
|
@@ -32141,7 +32088,7 @@ function RelatedDocsCellRenderer(params) {
|
|
|
32141
32088
|
if (!related || react$1.getRelatedTotal(related) === 0) return null;
|
|
32142
32089
|
const { onOpenDocument, onDeleteDocument } = params;
|
|
32143
32090
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
32144
|
-
|
|
32091
|
+
chunkBNHFDXJI_cjs.RelatedDocumentsCell,
|
|
32145
32092
|
{
|
|
32146
32093
|
currentDoc: params.data,
|
|
32147
32094
|
related,
|
|
@@ -32156,7 +32103,7 @@ function FolderCellRenderer(params) {
|
|
|
32156
32103
|
if (!params.data) return null;
|
|
32157
32104
|
const context = params.context;
|
|
32158
32105
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
32159
|
-
|
|
32106
|
+
chunkBNHFDXJI_cjs.DocumentFolderCell,
|
|
32160
32107
|
{
|
|
32161
32108
|
document: params.data,
|
|
32162
32109
|
isEditable: params.canEdit(params),
|
|
@@ -32170,7 +32117,7 @@ function CreatedByCellRenderer(params) {
|
|
|
32170
32117
|
const context = params.context;
|
|
32171
32118
|
const creator = context?.getWorkspaceUsers?.().find((u) => u.external_id === params.data.created_by_ext_id);
|
|
32172
32119
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center h-full", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
32173
|
-
|
|
32120
|
+
chunkBNHFDXJI_cjs.UserAvatar,
|
|
32174
32121
|
{
|
|
32175
32122
|
user: creator,
|
|
32176
32123
|
isMe: !!creator && creator.external_id === context?.getCurrentUserId?.(),
|
|
@@ -32183,7 +32130,7 @@ function CheckboxCellRenderer(params) {
|
|
|
32183
32130
|
if (!params.data) return null;
|
|
32184
32131
|
const isChecked = params.value === true;
|
|
32185
32132
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
32186
|
-
|
|
32133
|
+
chunk44M4FI2N_cjs.CheckboxCell,
|
|
32187
32134
|
{
|
|
32188
32135
|
isChecked,
|
|
32189
32136
|
color: tagColor,
|
|
@@ -32203,13 +32150,13 @@ function TagHeaderComponent(params) {
|
|
|
32203
32150
|
return () => params.column.removeEventListener("sortChanged", updateSort);
|
|
32204
32151
|
}, [params.column]);
|
|
32205
32152
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
32206
|
-
|
|
32153
|
+
chunk44M4FI2N_cjs.TagColumnHeader,
|
|
32207
32154
|
{
|
|
32208
32155
|
isCentered: isCheckbox,
|
|
32209
32156
|
sort,
|
|
32210
32157
|
onSort: params.enableSorting ? (additive) => params.progressSort(additive) : void 0,
|
|
32211
|
-
filter: /* @__PURE__ */ jsxRuntime.jsx(
|
|
32212
|
-
label: /* @__PURE__ */ jsxRuntime.jsx(
|
|
32158
|
+
filter: /* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.FilterButton, { params, colId: tag.external_id }),
|
|
32159
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(chunkDCD4OHDF_cjs.ConnectedTagEntity, { tag, size: "sm" })
|
|
32213
32160
|
}
|
|
32214
32161
|
);
|
|
32215
32162
|
}
|
|
@@ -32294,7 +32241,7 @@ function createTagColumn({
|
|
|
32294
32241
|
tagColor,
|
|
32295
32242
|
isMember
|
|
32296
32243
|
} : void 0,
|
|
32297
|
-
cellEditor: isSelect ?
|
|
32244
|
+
cellEditor: isSelect ? chunk44M4FI2N_cjs.MultiSelectCellEditor : isText ? "agLargeTextCellEditor" : void 0,
|
|
32298
32245
|
cellEditorParams: isSelect ? createMultiSelectCellEditorParams(tag.tag_type.options || []) : isText ? { rows: 8, cols: 50 } : void 0,
|
|
32299
32246
|
cellEditorPopup: isText || isSelect,
|
|
32300
32247
|
// Text and Select tags use popup editor for better UX
|
|
@@ -32414,8 +32361,8 @@ function createDocumentColumns({
|
|
|
32414
32361
|
onShareDocument,
|
|
32415
32362
|
notify: notify19
|
|
32416
32363
|
}) {
|
|
32417
|
-
const isRowEditableByOwner = (params) =>
|
|
32418
|
-
const isRowEditableByMember = (params) =>
|
|
32364
|
+
const isRowEditableByOwner = (params) => chunk44M4FI2N_cjs.canChangeVisibility(params.data, currentUserExtId);
|
|
32365
|
+
const isRowEditableByMember = (params) => chunk44M4FI2N_cjs.canEditDocumentFields(params.data, currentUserExtId, workspaceRole);
|
|
32419
32366
|
const checkboxTags = availableTags.filter(browser.isLabelTag);
|
|
32420
32367
|
const allColumns = [];
|
|
32421
32368
|
allColumns.push({
|
|
@@ -32507,7 +32454,7 @@ function createDocumentColumns({
|
|
|
32507
32454
|
cellRenderer: DocumentNameCellRenderer,
|
|
32508
32455
|
cellRendererParams: {
|
|
32509
32456
|
canEdit: isRowEditableByMember,
|
|
32510
|
-
canDelete: (params) =>
|
|
32457
|
+
canDelete: (params) => chunk44M4FI2N_cjs.canDeleteDocument(params.data, currentUserExtId, workspaceRole),
|
|
32511
32458
|
onOpenDocument: handleToggleDocumentViewer,
|
|
32512
32459
|
onReviewDocument,
|
|
32513
32460
|
onDocumentChat,
|
|
@@ -32539,7 +32486,7 @@ function createDocumentColumns({
|
|
|
32539
32486
|
singleClickEdit: true,
|
|
32540
32487
|
cellEditor: "agSelectCellEditor",
|
|
32541
32488
|
cellEditorParams: {
|
|
32542
|
-
values: [...
|
|
32489
|
+
values: [...chunk44M4FI2N_cjs.DOCUMENT_TYPE_OPTIONS]
|
|
32543
32490
|
},
|
|
32544
32491
|
context: { icon: lucideReact.Sparkles },
|
|
32545
32492
|
valueGetter: (params) => ui.getDocumentNature(params.data) || "",
|
|
@@ -33077,7 +33024,7 @@ function useDocumentTable({
|
|
|
33077
33024
|
}
|
|
33078
33025
|
const stabilizedTagIds = prevTagIdsRef.current;
|
|
33079
33026
|
const stabilizedTagNames = prevTagNamesRef.current;
|
|
33080
|
-
const defaultVisibleColumns = react.useMemo(() => [...
|
|
33027
|
+
const defaultVisibleColumns = react.useMemo(() => [...chunk44M4FI2N_cjs.DEFAULT_DOCUMENT_COLUMNS], []);
|
|
33081
33028
|
const confirmRef = react.useRef(confirm);
|
|
33082
33029
|
confirmRef.current = confirm;
|
|
33083
33030
|
const shareDocument = react.useCallback(async (docId) => {
|
|
@@ -33325,7 +33272,7 @@ function ConnectedFilesBulkActions({
|
|
|
33325
33272
|
const actions = react$1.useDocumentHostActions();
|
|
33326
33273
|
const isOnline = documentTools.useIsOnline();
|
|
33327
33274
|
const { userId } = chunkGB5MN5FC_cjs.useConnectedWorkspace();
|
|
33328
|
-
const { role } =
|
|
33275
|
+
const { role } = chunkK7GBHLLY_cjs.useConnectedWorkspaceRole();
|
|
33329
33276
|
const offlineIds = react$1.useOfflineDocumentIds();
|
|
33330
33277
|
const keepOffline = react$1.useKeepDocumentsOffline();
|
|
33331
33278
|
const removeOffline = react$1.useRemoveDocumentsOffline();
|
|
@@ -33334,9 +33281,9 @@ function ConnectedFilesBulkActions({
|
|
|
33334
33281
|
const bulk = useDocumentBulkActions(selectedDocuments);
|
|
33335
33282
|
const count2 = selectedDocuments.length;
|
|
33336
33283
|
const noun = ui.getEntityLabel("DOCUMENT", count2 === 1 ? "SINGULAR" : "PLURAL");
|
|
33337
|
-
const shareState =
|
|
33284
|
+
const shareState = chunk44M4FI2N_cjs.shareStateOf(bulk.freshSelectedDocuments);
|
|
33338
33285
|
const canDelete = bulk.freshSelectedDocuments.every(
|
|
33339
|
-
(doc) =>
|
|
33286
|
+
(doc) => chunk44M4FI2N_cjs.canDeleteDocument(doc, userId ?? void 0, role ?? null)
|
|
33340
33287
|
);
|
|
33341
33288
|
const [confirming, setConfirming] = react.useState(null);
|
|
33342
33289
|
const allOffline = count2 > 0 && selectedDocuments.every((doc) => offlineIds.has(doc.external_id));
|
|
@@ -33348,7 +33295,7 @@ function ConnectedFilesBulkActions({
|
|
|
33348
33295
|
const { openDocumentsChat, openFieldsManager } = actions;
|
|
33349
33296
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
33350
33297
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
33351
|
-
|
|
33298
|
+
chunk44M4FI2N_cjs.BulkActionsBar,
|
|
33352
33299
|
{
|
|
33353
33300
|
count: count2,
|
|
33354
33301
|
onClear: onClearSelection,
|
|
@@ -33373,7 +33320,7 @@ function ConnectedFilesBulkActions({
|
|
|
33373
33320
|
isOfflinePending: offlinePending,
|
|
33374
33321
|
onDelete: canDelete ? () => setConfirming("delete") : void 0,
|
|
33375
33322
|
shareState,
|
|
33376
|
-
shareTooltip:
|
|
33323
|
+
shareTooltip: chunk44M4FI2N_cjs.shareTooltipFor(shareState, bulk.freshSelectedDocuments.length === 1),
|
|
33377
33324
|
onShare: () => void bulk.share()
|
|
33378
33325
|
}
|
|
33379
33326
|
),
|
|
@@ -33388,7 +33335,7 @@ function ConnectedFilesBulkActions({
|
|
|
33388
33335
|
onClearSelection();
|
|
33389
33336
|
},
|
|
33390
33337
|
title: `Delete ${count2} ${noun}`,
|
|
33391
|
-
description: `Delete ${namedTargets(selectedDocuments)}? ${count2 === 1 ?
|
|
33338
|
+
description: `Delete ${namedTargets(selectedDocuments)}? ${count2 === 1 ? chunk44M4FI2N_cjs.RECENTLY_DELETED_HINT : chunk44M4FI2N_cjs.RECENTLY_DELETED_HINT_PLURAL}`,
|
|
33392
33339
|
confirmText: "Delete",
|
|
33393
33340
|
variant: "destructive"
|
|
33394
33341
|
}
|
|
@@ -33636,7 +33583,7 @@ function useAiReviewLiveUpdates() {
|
|
|
33636
33583
|
if (message.batch_type !== "doctag_generate") return;
|
|
33637
33584
|
const docIds = message.doc_ext_ids ?? [];
|
|
33638
33585
|
if (!docIds.length) return;
|
|
33639
|
-
void refreshDocuments(docIds).then(() =>
|
|
33586
|
+
void refreshDocuments(docIds).then(() => chunkHGD4B7GO_cjs.useAiReviewStore.getState().markFinished(docIds));
|
|
33640
33587
|
dropQueuedRows(docIds);
|
|
33641
33588
|
});
|
|
33642
33589
|
}
|
|
@@ -33671,7 +33618,7 @@ function useBatchCompleteToasts() {
|
|
|
33671
33618
|
const workspaceId = message.workspace_ext_id;
|
|
33672
33619
|
const docIds = message.doc_ext_ids ?? [];
|
|
33673
33620
|
const workspace = workspacesRef.current?.find((w) => w.external_id === workspaceId);
|
|
33674
|
-
const icon2 = workspace ? react.createElement(
|
|
33621
|
+
const icon2 = workspace ? react.createElement(chunkYO7GDNEW_cjs.ConnectedWorkspaceEntity, { workspace, variant: "icon", size: 20 }) : void 0;
|
|
33675
33622
|
const say = (text, kind, options = {}) => notify19(text, kind, { workspaceId, icon: icon2, ...options, ambient: false });
|
|
33676
33623
|
if (message.batch_type === "doctag_generate") {
|
|
33677
33624
|
const run = pending.current.get(workspaceId) ?? { docIds: /* @__PURE__ */ new Set(), icon: icon2 };
|
|
@@ -33682,7 +33629,7 @@ function useBatchCompleteToasts() {
|
|
|
33682
33629
|
timer.current = null;
|
|
33683
33630
|
const runs = pending.current;
|
|
33684
33631
|
pending.current = /* @__PURE__ */ new Map();
|
|
33685
|
-
const hasReview = !!
|
|
33632
|
+
const hasReview = !!chunkHGD4B7GO_cjs.useAiReviewStore.getState().run;
|
|
33686
33633
|
for (const [id, entry] of runs) {
|
|
33687
33634
|
const n = entry.docIds.size;
|
|
33688
33635
|
notify19(
|
|
@@ -33695,7 +33642,7 @@ function useBatchCompleteToasts() {
|
|
|
33695
33642
|
...hasReview && {
|
|
33696
33643
|
action: {
|
|
33697
33644
|
label: "View results",
|
|
33698
|
-
onClick: () =>
|
|
33645
|
+
onClick: () => chunkHGD4B7GO_cjs.useAiReviewStore.getState().setOpen(true)
|
|
33699
33646
|
}
|
|
33700
33647
|
}
|
|
33701
33648
|
}
|
|
@@ -33703,7 +33650,7 @@ function useBatchCompleteToasts() {
|
|
|
33703
33650
|
}
|
|
33704
33651
|
}, AI_FIELDS_NOTICE_WINDOW_MS);
|
|
33705
33652
|
} else if (message.batch_type === "entity_extract") {
|
|
33706
|
-
say(`${
|
|
33653
|
+
say(`${chunkHJHDKS4V_cjs.entitiesPhrase()} extracted from ${chunkHJHDKS4V_cjs.documentCount(docIds.length)}`, "success", {
|
|
33707
33654
|
...openTags && { action: { label: "View", onClick: openTags } }
|
|
33708
33655
|
});
|
|
33709
33656
|
} else if (message.batch_type === "upload") {
|
|
@@ -33742,12 +33689,12 @@ function ConnectedMoveToFolder({
|
|
|
33742
33689
|
setIsSubmitting(true);
|
|
33743
33690
|
try {
|
|
33744
33691
|
if (folderToMove) {
|
|
33745
|
-
const docsInFolder =
|
|
33692
|
+
const docsInFolder = chunk44M4FI2N_cjs.collectFolderDocs(allDocs, folderToMove.path);
|
|
33746
33693
|
if (docsInFolder.length === 0) {
|
|
33747
33694
|
onClose();
|
|
33748
33695
|
return;
|
|
33749
33696
|
}
|
|
33750
|
-
const newPrefixSegments = targetFolder ? [...
|
|
33697
|
+
const newPrefixSegments = targetFolder ? [...chunk44M4FI2N_cjs.parseFolderSegments(targetFolder), folderToMove.name] : [folderToMove.name];
|
|
33751
33698
|
await renameFolder(docsInFolder, folderToMove.path, newPrefixSegments);
|
|
33752
33699
|
const dest = targetFolder ? `"${targetFolder}/${folderToMove.name}"` : `"${folderToMove.name}" (root)`;
|
|
33753
33700
|
notify19(`Moved folder to ${dest}`, "success");
|
|
@@ -33772,9 +33719,9 @@ function ConnectedMoveToFolder({
|
|
|
33772
33719
|
}
|
|
33773
33720
|
};
|
|
33774
33721
|
const isFolderMode = !!folderToMove;
|
|
33775
|
-
const folders =
|
|
33722
|
+
const folders = chunkBNHFDXJI_cjs.useDocumentFolders(allDocs, targetFolder);
|
|
33776
33723
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
33777
|
-
|
|
33724
|
+
chunk44M4FI2N_cjs.MoveToFolderDialog,
|
|
33778
33725
|
{
|
|
33779
33726
|
open: isOpen,
|
|
33780
33727
|
onClose,
|
|
@@ -33784,7 +33731,7 @@ function ConnectedMoveToFolder({
|
|
|
33784
33731
|
isSubmitting,
|
|
33785
33732
|
onConfirm: handleMove,
|
|
33786
33733
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
33787
|
-
|
|
33734
|
+
chunk44M4FI2N_cjs.FolderCommandList,
|
|
33788
33735
|
{
|
|
33789
33736
|
folders,
|
|
33790
33737
|
value: targetFolder,
|
|
@@ -34012,7 +33959,7 @@ function ConnectedBulkTagEditor({
|
|
|
34012
33959
|
const isClearing = change?.action === "remove";
|
|
34013
33960
|
return {
|
|
34014
33961
|
id: tag.external_id,
|
|
34015
|
-
badge: /* @__PURE__ */ jsxRuntime.jsx(
|
|
33962
|
+
badge: /* @__PURE__ */ jsxRuntime.jsx(chunkDCD4OHDF_cjs.ConnectedTagEntity, { tag, size: "md" }),
|
|
34016
33963
|
type: tag.tag_type.type,
|
|
34017
33964
|
color: ui.getEntityColor(tag.external_id, "medium"),
|
|
34018
33965
|
options: tag.tag_type.type === "select" ? tag.tag_type.options : void 0,
|
|
@@ -34044,7 +33991,7 @@ function ConnectedBulkTagEditor({
|
|
|
34044
33991
|
const documentsLabel = ui.getEntityLabel("DOCUMENT", "PLURAL").toLowerCase();
|
|
34045
33992
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
34046
33993
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
34047
|
-
|
|
33994
|
+
chunk44M4FI2N_cjs.BulkTagEditorDialog,
|
|
34048
33995
|
{
|
|
34049
33996
|
open,
|
|
34050
33997
|
onClose,
|
|
@@ -34102,7 +34049,7 @@ function ConnectedBulkTagEditor({
|
|
|
34102
34049
|
}
|
|
34103
34050
|
),
|
|
34104
34051
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
34105
|
-
|
|
34052
|
+
chunk44M4FI2N_cjs.BulkReplaceDialog,
|
|
34106
34053
|
{
|
|
34107
34054
|
open: showGenerateConfirmation,
|
|
34108
34055
|
onClose: () => setShowGenerateConfirmation(false),
|
|
@@ -34157,7 +34104,7 @@ function toSpec(view) {
|
|
|
34157
34104
|
}
|
|
34158
34105
|
function useTableViews(table) {
|
|
34159
34106
|
const query = react$1.useTableViewsQuery(table);
|
|
34160
|
-
const
|
|
34107
|
+
const create2 = react$1.useCreateTableView();
|
|
34161
34108
|
const update = react$1.useUpdateTableView();
|
|
34162
34109
|
const share = react$1.useShareTableView();
|
|
34163
34110
|
const remove = react$1.useDeleteTableView();
|
|
@@ -34167,9 +34114,9 @@ function useTableViews(table) {
|
|
|
34167
34114
|
async (view) => {
|
|
34168
34115
|
const own = (records ?? []).find((r) => r.mine && r.spec.name === view.name);
|
|
34169
34116
|
if (own) await update.mutateAsync({ viewId: own.id, spec: toSpec(view) });
|
|
34170
|
-
else await
|
|
34117
|
+
else await create2.mutateAsync({ table, spec: toSpec(view) });
|
|
34171
34118
|
},
|
|
34172
|
-
[records, table,
|
|
34119
|
+
[records, table, create2, update]
|
|
34173
34120
|
);
|
|
34174
34121
|
const deleteView = react.useCallback((key) => remove.mutateAsync(key), [remove]);
|
|
34175
34122
|
const shareView = react.useCallback((key) => share.mutateAsync(key), [share]);
|
|
@@ -34179,10 +34126,10 @@ function useTableViews(table) {
|
|
|
34179
34126
|
for (const view of views) {
|
|
34180
34127
|
if (taken.has(view.name)) continue;
|
|
34181
34128
|
taken.add(view.name);
|
|
34182
|
-
await
|
|
34129
|
+
await create2.mutateAsync({ table, spec: toSpec(view) });
|
|
34183
34130
|
}
|
|
34184
34131
|
},
|
|
34185
|
-
[records, table,
|
|
34132
|
+
[records, table, create2]
|
|
34186
34133
|
);
|
|
34187
34134
|
return {
|
|
34188
34135
|
savedViews,
|
|
@@ -34192,13 +34139,13 @@ function useTableViews(table) {
|
|
|
34192
34139
|
deleteView,
|
|
34193
34140
|
shareView,
|
|
34194
34141
|
importViews,
|
|
34195
|
-
isSaving:
|
|
34142
|
+
isSaving: create2.isPending || update.isPending
|
|
34196
34143
|
};
|
|
34197
34144
|
}
|
|
34198
34145
|
function useViewWrites(savedViews, saveView, deleteView, shareView) {
|
|
34199
34146
|
const { confirm, notify: notify19 } = chunk46LX6EQT_cjs.useBlocksEnvironment();
|
|
34200
34147
|
const nameOf = react.useCallback(
|
|
34201
|
-
(key) => savedViews.find((v) =>
|
|
34148
|
+
(key) => savedViews.find((v) => chunk44M4FI2N_cjs.viewKey(v) === key)?.name ?? key,
|
|
34202
34149
|
[savedViews]
|
|
34203
34150
|
);
|
|
34204
34151
|
const onSaveView = react.useCallback(
|
|
@@ -34270,7 +34217,7 @@ function ViewSelector({
|
|
|
34270
34217
|
columns: defaultColumns,
|
|
34271
34218
|
icon: lucideReact.Table,
|
|
34272
34219
|
// Both built-ins load at the minimal (compact) row height.
|
|
34273
|
-
rowHeight:
|
|
34220
|
+
rowHeight: chunk44M4FI2N_cjs.DOCUMENTS_ROW_HEIGHT_INITIAL,
|
|
34274
34221
|
// [] = loading this view unpins everything.
|
|
34275
34222
|
pinnedLeft: []
|
|
34276
34223
|
},
|
|
@@ -34281,15 +34228,15 @@ function ViewSelector({
|
|
|
34281
34228
|
// batch-select checkbox and Title stay fixed left while scrolling.
|
|
34282
34229
|
columns: defaultColumns,
|
|
34283
34230
|
icon: lucideReact.Columns3,
|
|
34284
|
-
rowHeight:
|
|
34231
|
+
rowHeight: chunk44M4FI2N_cjs.DOCUMENTS_ROW_HEIGHT_INITIAL,
|
|
34285
34232
|
pinnedLeft: DOCUMENT_VIEW_PINNED
|
|
34286
34233
|
},
|
|
34287
34234
|
{
|
|
34288
34235
|
key: "email-default",
|
|
34289
34236
|
label: "Email view",
|
|
34290
|
-
columns: [...
|
|
34237
|
+
columns: [...chunk44M4FI2N_cjs.EMAIL_VIEW_COLUMNS],
|
|
34291
34238
|
icon: lucideReact.Mail,
|
|
34292
|
-
rowHeight:
|
|
34239
|
+
rowHeight: chunk44M4FI2N_cjs.DOCUMENTS_ROW_HEIGHT_INITIAL,
|
|
34293
34240
|
pinnedLeft: []
|
|
34294
34241
|
}
|
|
34295
34242
|
],
|
|
@@ -34301,7 +34248,7 @@ function ViewSelector({
|
|
|
34301
34248
|
deleteView,
|
|
34302
34249
|
shareView
|
|
34303
34250
|
);
|
|
34304
|
-
const menu =
|
|
34251
|
+
const menu = chunk44M4FI2N_cjs.useGridViews({
|
|
34305
34252
|
getGridApi,
|
|
34306
34253
|
defaultColumns,
|
|
34307
34254
|
builtins,
|
|
@@ -34317,7 +34264,7 @@ function ViewSelector({
|
|
|
34317
34264
|
onShareView,
|
|
34318
34265
|
isSaving
|
|
34319
34266
|
});
|
|
34320
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
34267
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.ViewSelectorMenu, { ...menu });
|
|
34321
34268
|
}
|
|
34322
34269
|
function DocumentsFilterBarActions({
|
|
34323
34270
|
isModal,
|
|
@@ -34357,7 +34304,7 @@ function DocumentsFilterBarActions({
|
|
|
34357
34304
|
),
|
|
34358
34305
|
documentsViewMode === "grid" && // The phone list is a fixed two-line layout, so row density only applies from sm up.
|
|
34359
34306
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "hidden sm:block", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
34360
|
-
|
|
34307
|
+
chunk44M4FI2N_cjs.RowDensityControl,
|
|
34361
34308
|
{
|
|
34362
34309
|
rowHeight: documentsRowHeight,
|
|
34363
34310
|
onRowHeightChange: onDocumentsRowHeightChange
|
|
@@ -34454,8 +34401,8 @@ function DocumentsFilterBarActions({
|
|
|
34454
34401
|
}
|
|
34455
34402
|
function PersistedGridView(props) {
|
|
34456
34403
|
const { persistState, gridId } = props;
|
|
34457
|
-
const setGridState =
|
|
34458
|
-
const gridState = persistState && gridId ?
|
|
34404
|
+
const setGridState = chunkHGD4B7GO_cjs.useFilesGridStates((state) => state.setGridState);
|
|
34405
|
+
const gridState = persistState && gridId ? chunkHGD4B7GO_cjs.useFilesGridStates.getState().gridStates[gridId] : void 0;
|
|
34459
34406
|
const onGridStateChange = react.useCallback(
|
|
34460
34407
|
(state) => {
|
|
34461
34408
|
if (persistState && gridId) setGridState(gridId, state);
|
|
@@ -34557,13 +34504,13 @@ var TABLET_TABLE_BELOW = 860;
|
|
|
34557
34504
|
var TABLET_VIEWPORT_BELOW = 1100;
|
|
34558
34505
|
var NO_CONVERSATION_DOCUMENTS2 = [];
|
|
34559
34506
|
var DocumentReviewCard = react.lazy(
|
|
34560
|
-
() => import('../DocumentReviewCard-
|
|
34507
|
+
() => import('../DocumentReviewCard-7ZH575KX.cjs').then((module) => ({ default: module.DocumentReviewCard }))
|
|
34561
34508
|
);
|
|
34562
34509
|
var FilesViewerDialog = react.lazy(
|
|
34563
|
-
() => import('../FilesViewerDialog-
|
|
34510
|
+
() => import('../FilesViewerDialog-6RWJSZZV.cjs').then((module) => ({ default: module.FilesViewerDialog }))
|
|
34564
34511
|
);
|
|
34565
34512
|
function defaultReviewCard(props) {
|
|
34566
|
-
return /* @__PURE__ */ jsxRuntime.jsx(react.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
34513
|
+
return /* @__PURE__ */ jsxRuntime.jsx(react.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkHJHDKS4V_cjs.LoadingIndicator, { message: "Loading document viewer..." }), children: /* @__PURE__ */ jsxRuntime.jsx(DocumentReviewCard, { ...props }, `navigator-${props.currentDocument.external_id}`) });
|
|
34567
34514
|
}
|
|
34568
34515
|
function ConnectedFilesPage({
|
|
34569
34516
|
isModal = false,
|
|
@@ -34585,7 +34532,7 @@ function ConnectedFilesPage({
|
|
|
34585
34532
|
GridComponent = PersistedGridView,
|
|
34586
34533
|
gridStateVersion,
|
|
34587
34534
|
onGridApi,
|
|
34588
|
-
prefsKey =
|
|
34535
|
+
prefsKey = chunkHGD4B7GO_cjs.FILES_PREFS_KEY,
|
|
34589
34536
|
defaultViewMode
|
|
34590
34537
|
}) {
|
|
34591
34538
|
const { openDocument, openDialog: openDialog2, openProcessing, openTags } = chunk46LX6EQT_cjs.useBlocksEnvironment();
|
|
@@ -34606,7 +34553,7 @@ function ConnectedFilesPage({
|
|
|
34606
34553
|
const deleteDocuments = react$1.useDeleteDocuments();
|
|
34607
34554
|
const isDocumentsPending = isLoading && documents.length === 0;
|
|
34608
34555
|
const { workspaceId, userId, live } = chunkGB5MN5FC_cjs.useConnectedWorkspace();
|
|
34609
|
-
const { role, members } =
|
|
34556
|
+
const { role, members } = chunkK7GBHLLY_cjs.useConnectedWorkspaceRole();
|
|
34610
34557
|
const { data: workspaces } = react$1.useWorkspaces({ enabled: live });
|
|
34611
34558
|
const workspace = workspaces?.find((w) => w.external_id === workspaceId);
|
|
34612
34559
|
const workspaceName = workspace?.name;
|
|
@@ -34631,8 +34578,8 @@ function ConnectedFilesPage({
|
|
|
34631
34578
|
const inConversationDocuments = react$1.useArbiSessionState(
|
|
34632
34579
|
(s) => s.conversationDocuments[s.conversationId ?? "new"] ?? NO_CONVERSATION_DOCUMENTS2
|
|
34633
34580
|
);
|
|
34634
|
-
const viewMode =
|
|
34635
|
-
const setPrefsViewMode =
|
|
34581
|
+
const viewMode = chunkHGD4B7GO_cjs.useFilesPrefs((s) => chunkHGD4B7GO_cjs.filesViewMode(s, prefsKey, defaultViewMode));
|
|
34582
|
+
const setPrefsViewMode = chunkHGD4B7GO_cjs.useFilesPrefs((s) => s.setViewMode);
|
|
34636
34583
|
const setViewMode = react.useCallback(
|
|
34637
34584
|
(mode) => setPrefsViewMode(mode, prefsKey),
|
|
34638
34585
|
[setPrefsViewMode, prefsKey]
|
|
@@ -34662,7 +34609,7 @@ function ConnectedFilesPage({
|
|
|
34662
34609
|
shownPlaceRef.current = null;
|
|
34663
34610
|
if (session.getState().documentViewer.compareId)
|
|
34664
34611
|
session.setDocumentViewer({ compareId: null });
|
|
34665
|
-
if (
|
|
34612
|
+
if (chunkHGD4B7GO_cjs.filesViewMode(chunkHGD4B7GO_cjs.useFilesPrefs.getState(), prefsKey, defaultViewMode) !== "navigator")
|
|
34666
34613
|
session.setViewingDocument(null);
|
|
34667
34614
|
if (!fromLink) latest.current.onDocumentChange?.(null);
|
|
34668
34615
|
},
|
|
@@ -34751,9 +34698,9 @@ function ConnectedFilesPage({
|
|
|
34751
34698
|
else if (linkedPlaceKey !== shownPlaceRef.current) showInDialog(place, true);
|
|
34752
34699
|
} else if (previous && ownsViewer && shownPlaceRef.current) closeDialog2(true);
|
|
34753
34700
|
}, [linkedPlaceKey]);
|
|
34754
|
-
const rowHeight =
|
|
34755
|
-
const setRowHeight =
|
|
34756
|
-
const ownGridStates =
|
|
34701
|
+
const rowHeight = chunkHGD4B7GO_cjs.useFilesPrefs((s) => s.rowHeight);
|
|
34702
|
+
const setRowHeight = chunkHGD4B7GO_cjs.useFilesPrefs((s) => s.setRowHeight);
|
|
34703
|
+
const ownGridStates = chunkHGD4B7GO_cjs.useFilesGridStates((s) => s.gridStates);
|
|
34757
34704
|
const stateVersion = gridStateVersion ?? ownGridStates;
|
|
34758
34705
|
const [pageEl, setPageEl] = react.useState(null);
|
|
34759
34706
|
const [isTabletWidth, setIsTabletWidth] = react.useState(false);
|
|
@@ -34783,15 +34730,15 @@ function ConnectedFilesPage({
|
|
|
34783
34730
|
const [explorerSortReversed, setExplorerSortReversed] = react.useState(false);
|
|
34784
34731
|
const [explorerTileSize, setExplorerTileSize] = react.useState(TILE_DEFAULT);
|
|
34785
34732
|
const [urlDialogOpen, setUrlDialogOpen] = react.useState(false);
|
|
34786
|
-
const move =
|
|
34787
|
-
const openMove =
|
|
34788
|
-
const closeMove =
|
|
34789
|
-
const bulkTagsOpen =
|
|
34790
|
-
const setBulkTagsOpen =
|
|
34791
|
-
const deleteRequest =
|
|
34792
|
-
const requestDelete =
|
|
34793
|
-
const exportOpen =
|
|
34794
|
-
const setExportOpen =
|
|
34733
|
+
const move = chunkHGD4B7GO_cjs.useFilesDialogs((s) => s.move);
|
|
34734
|
+
const openMove = chunkHGD4B7GO_cjs.useFilesDialogs((s) => s.openMove);
|
|
34735
|
+
const closeMove = chunkHGD4B7GO_cjs.useFilesDialogs((s) => s.closeMove);
|
|
34736
|
+
const bulkTagsOpen = chunkHGD4B7GO_cjs.useFilesDialogs((s) => s.bulkTagsOpen);
|
|
34737
|
+
const setBulkTagsOpen = chunkHGD4B7GO_cjs.useFilesDialogs((s) => s.setBulkTagsOpen);
|
|
34738
|
+
const deleteRequest = chunkHGD4B7GO_cjs.useFilesDialogs((s) => s.deleteRequest);
|
|
34739
|
+
const requestDelete = chunkHGD4B7GO_cjs.useFilesDialogs((s) => s.requestDelete);
|
|
34740
|
+
const exportOpen = chunkHGD4B7GO_cjs.useFilesDialogs((s) => s.exportOpen);
|
|
34741
|
+
const setExportOpen = chunkHGD4B7GO_cjs.useFilesDialogs((s) => s.setExportOpen);
|
|
34795
34742
|
const openOwnExport = react.useCallback(() => setExportOpen(true), [setExportOpen]);
|
|
34796
34743
|
const exportItems = react.useMemo(
|
|
34797
34744
|
() => selectedDocuments.map((doc) => ({
|
|
@@ -34806,7 +34753,7 @@ function ConnectedFilesPage({
|
|
|
34806
34753
|
);
|
|
34807
34754
|
const explorerRef = react.useRef(null);
|
|
34808
34755
|
const [explorerFileIds, setExplorerFileIds] = react.useState([]);
|
|
34809
|
-
const uploadUrls =
|
|
34756
|
+
const uploadUrls = chunkYO7GDNEW_cjs.useAddFromUrls({
|
|
34810
34757
|
onZipFiles: (files2) => onUpload({ source: "computer", files: files2 })
|
|
34811
34758
|
});
|
|
34812
34759
|
const { data: workspaceTags = [] } = react$1.useTags();
|
|
@@ -34834,17 +34781,17 @@ function ConnectedFilesPage({
|
|
|
34834
34781
|
const relatedDocsMap = useFilesPageSession(documents, workspaceId);
|
|
34835
34782
|
const defaultVisibleColumns = react.useMemo(
|
|
34836
34783
|
() => [
|
|
34837
|
-
...
|
|
34784
|
+
...chunk44M4FI2N_cjs.DEFAULT_DOCUMENT_COLUMNS,
|
|
34838
34785
|
...allTags.filter(browser.isAnnotationTag).map((tag) => tag.external_id)
|
|
34839
34786
|
],
|
|
34840
34787
|
[allTags]
|
|
34841
34788
|
);
|
|
34842
34789
|
const handleReorderColumns = react.useCallback((ids, gridApi2) => {
|
|
34843
|
-
if (gridApi2)
|
|
34790
|
+
if (gridApi2) chunk44M4FI2N_cjs.applyColumnLayout(gridApi2, ids);
|
|
34844
34791
|
}, []);
|
|
34845
34792
|
const handleLoadView = react.useCallback(
|
|
34846
34793
|
(view, gridApi2) => {
|
|
34847
|
-
|
|
34794
|
+
chunk44M4FI2N_cjs.applyViewColumns(gridApi2, view, handleReorderColumns);
|
|
34848
34795
|
if (typeof view.tile_size === "number") setExplorerTileSize(view.tile_size);
|
|
34849
34796
|
if (typeof view.row_height === "number") setRowHeight(view.row_height);
|
|
34850
34797
|
},
|
|
@@ -34936,7 +34883,7 @@ function ConnectedFilesPage({
|
|
|
34936
34883
|
);
|
|
34937
34884
|
const currentDocument = viewingDocumentId ? filteredDocuments.find((d) => d.external_id === viewingDocumentId) ?? documents.find((d) => d.external_id === viewingDocumentId) ?? null : null;
|
|
34938
34885
|
const navigatorDocuments = react.useMemo(
|
|
34939
|
-
() =>
|
|
34886
|
+
() => chunk44M4FI2N_cjs.sortExplorerFiles(filteredDocuments, explorerSort, explorerSortReversed),
|
|
34940
34887
|
[filteredDocuments, explorerSort, explorerSortReversed]
|
|
34941
34888
|
);
|
|
34942
34889
|
const navigatorOnNavigate = react.useCallback(
|
|
@@ -35006,7 +34953,7 @@ function ConnectedFilesPage({
|
|
|
35006
34953
|
},
|
|
35007
34954
|
rowHeight
|
|
35008
34955
|
};
|
|
35009
|
-
const documentsTabActions = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
34956
|
+
const documentsTabActions = /* @__PURE__ */ jsxRuntime.jsxs(chunk44M4FI2N_cjs.FilesFilterBar, { children: [
|
|
35010
34957
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
35011
34958
|
chunk6UZC4XVV_cjs.FilterInput,
|
|
35012
34959
|
{
|
|
@@ -35041,7 +34988,7 @@ function ConnectedFilesPage({
|
|
|
35041
34988
|
),
|
|
35042
34989
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex shrink-0 items-center gap-2", children: [
|
|
35043
34990
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
35044
|
-
|
|
34991
|
+
chunk44M4FI2N_cjs.DocumentsFolderButton,
|
|
35045
34992
|
{
|
|
35046
34993
|
documents,
|
|
35047
34994
|
documentFilters,
|
|
@@ -35049,7 +34996,7 @@ function ConnectedFilesPage({
|
|
|
35049
34996
|
onNewFolder: canUpload ? handleNewFolder : void 0
|
|
35050
34997
|
}
|
|
35051
34998
|
),
|
|
35052
|
-
openTags && /* @__PURE__ */ jsxRuntime.jsx(
|
|
34999
|
+
openTags && /* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.FilesTagsButton, { onClick: openTags }),
|
|
35053
35000
|
workspaceId && /* @__PURE__ */ jsxRuntime.jsx(ConnectedRecentlyDeletedButton, { workspaceExtId: workspaceId })
|
|
35054
35001
|
] })
|
|
35055
35002
|
] });
|
|
@@ -35072,18 +35019,29 @@ function ConnectedFilesPage({
|
|
|
35072
35019
|
);
|
|
35073
35020
|
const reviewGridId = isModal ? "documents-modal-grid-v6" : "documents-main-grid-v6";
|
|
35074
35021
|
const showBulkBar = (viewMode === "grid" || viewMode === "explorer" || viewMode === "navigator") && documents.length > 0;
|
|
35075
|
-
|
|
35022
|
+
const bulkBar = showBulkBar && /* @__PURE__ */ jsxRuntime.jsx(
|
|
35023
|
+
ConnectedFilesBulkActions,
|
|
35024
|
+
{
|
|
35025
|
+
selectedDocuments,
|
|
35026
|
+
onClearSelection: handleClearSelection,
|
|
35027
|
+
isMember,
|
|
35028
|
+
onMoveToFolder: () => openMove(),
|
|
35029
|
+
onExport: onExport ?? openOwnExport,
|
|
35030
|
+
onProduce: () => openDialog2("productionSet")
|
|
35031
|
+
}
|
|
35032
|
+
);
|
|
35033
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunk44M4FI2N_cjs.FilesPage, { isModal, ref: setPageEl, children: [
|
|
35076
35034
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
35077
|
-
|
|
35035
|
+
chunk44M4FI2N_cjs.UrlInputDialog,
|
|
35078
35036
|
{
|
|
35079
35037
|
open: urlDialogOpen,
|
|
35080
35038
|
onOpenChange: setUrlDialogOpen,
|
|
35081
35039
|
onUrlsSubmit: uploadUrls,
|
|
35082
35040
|
titleWorkspaceName: workspaceName,
|
|
35083
|
-
titleIcon: workspace && /* @__PURE__ */ jsxRuntime.jsx(
|
|
35041
|
+
titleIcon: workspace && /* @__PURE__ */ jsxRuntime.jsx(chunkYO7GDNEW_cjs.ConnectedWorkspaceEntity, { workspace, size: 24, variant: "icon" })
|
|
35084
35042
|
}
|
|
35085
35043
|
),
|
|
35086
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
35044
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk44M4FI2N_cjs.FilesPageHeader, { className: isModal ? "static" : void 0, children: [
|
|
35087
35045
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
35088
35046
|
chunkSJSGSHIT_cjs.TabHeader,
|
|
35089
35047
|
{
|
|
@@ -35104,12 +35062,12 @@ function ConnectedFilesPage({
|
|
|
35104
35062
|
activeTabId: "documents",
|
|
35105
35063
|
onTabChange: () => handleViewModeChange(lastDocsViewRef.current),
|
|
35106
35064
|
firstTabContent: isNarrowFilterRow ? null : documentsTabActions,
|
|
35107
|
-
centerContent: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
35065
|
+
centerContent: /* @__PURE__ */ jsxRuntime.jsxs(chunk44M4FI2N_cjs.FilesViewCenter, { className: isNarrowFilterRow ? "min-w-0" : void 0, children: [
|
|
35108
35066
|
!isNarrowFilterRow && viewToggle,
|
|
35109
35067
|
/* @__PURE__ */ jsxRuntime.jsx(ProgressiveLoadingChip, {})
|
|
35110
35068
|
] }),
|
|
35111
35069
|
rightContent: /* @__PURE__ */ jsxRuntime.jsx(
|
|
35112
|
-
|
|
35070
|
+
chunkYO7GDNEW_cjs.DocumentsUploadButton,
|
|
35113
35071
|
{
|
|
35114
35072
|
isCompact: isNarrowFilterRow,
|
|
35115
35073
|
canUpload,
|
|
@@ -35134,14 +35092,14 @@ function ConnectedFilesPage({
|
|
|
35134
35092
|
}
|
|
35135
35093
|
),
|
|
35136
35094
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
35137
|
-
|
|
35095
|
+
chunk44M4FI2N_cjs.FilesToolbar,
|
|
35138
35096
|
{
|
|
35139
35097
|
className: "px-3 pb-2",
|
|
35140
35098
|
rightActions: viewMode === "grid" || viewMode === "explorer" || viewMode === "navigator" ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
35141
35099
|
viewMode === "grid" ? (
|
|
35142
35100
|
// ‹ n / N › over the table's displayed rows; a step opens the document.
|
|
35143
35101
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
35144
|
-
|
|
35102
|
+
chunkHJHDKS4V_cjs.GridRowNavigator,
|
|
35145
35103
|
{
|
|
35146
35104
|
gridApi,
|
|
35147
35105
|
selectedId: viewingDocumentId ?? selectedDocumentIds[0] ?? null,
|
|
@@ -35156,7 +35114,7 @@ function ConnectedFilesPage({
|
|
|
35156
35114
|
) : viewMode === "explorer" ? (
|
|
35157
35115
|
// The same over the explorer's tiles.
|
|
35158
35116
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
35159
|
-
|
|
35117
|
+
chunk44M4FI2N_cjs.ExplorerFileNavigator,
|
|
35160
35118
|
{
|
|
35161
35119
|
fileIds: explorerFileIds,
|
|
35162
35120
|
selectedId: viewingDocumentId ?? selectedDocumentIds[0] ?? null,
|
|
@@ -35195,7 +35153,7 @@ function ConnectedFilesPage({
|
|
|
35195
35153
|
}
|
|
35196
35154
|
),
|
|
35197
35155
|
viewMode === "navigator" && currentDocument && /* @__PURE__ */ jsxRuntime.jsx(
|
|
35198
|
-
|
|
35156
|
+
chunk44M4FI2N_cjs.NavigatorPickerBar,
|
|
35199
35157
|
{
|
|
35200
35158
|
currentDocument,
|
|
35201
35159
|
documents: navigatorDocuments,
|
|
@@ -35222,11 +35180,11 @@ function ConnectedFilesPage({
|
|
|
35222
35180
|
}
|
|
35223
35181
|
}
|
|
35224
35182
|
) }),
|
|
35225
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
35183
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk44M4FI2N_cjs.FilesPageMain, { children: [
|
|
35226
35184
|
viewMode === "grid" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
35227
|
-
|
|
35185
|
+
chunk44M4FI2N_cjs.DocumentGrid,
|
|
35228
35186
|
{
|
|
35229
|
-
layout:
|
|
35187
|
+
layout: chunk44M4FI2N_cjs.resolveDocumentGridLayout(isNarrowFilterRow, isModal, isTabletWidth),
|
|
35230
35188
|
presets: gridPresets,
|
|
35231
35189
|
GridComponent,
|
|
35232
35190
|
showEmptyWorkspace: documents.length === 0 && !isLoading && isMember,
|
|
@@ -35309,18 +35267,10 @@ function ConnectedFilesPage({
|
|
|
35309
35267
|
) }),
|
|
35310
35268
|
viewMode === "search" && renderSearch && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-full overflow-hidden", children: renderSearch() })
|
|
35311
35269
|
] }),
|
|
35312
|
-
|
|
35313
|
-
|
|
35314
|
-
{
|
|
35315
|
-
|
|
35316
|
-
onClearSelection: handleClearSelection,
|
|
35317
|
-
isMember,
|
|
35318
|
-
onMoveToFolder: () => openMove(),
|
|
35319
|
-
onExport: onExport ?? openOwnExport,
|
|
35320
|
-
onProduce: () => openDialog2("productionSet")
|
|
35321
|
-
}
|
|
35322
|
-
),
|
|
35323
|
-
isModal && onClose && /* @__PURE__ */ jsxRuntime.jsx(chunkNRGLF4J4_cjs.FilesModalFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { variant: "outline", onClick: onClose, children: "Close" }) }),
|
|
35270
|
+
isModal && onClose ? /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "files-modal-bottom", className: "sticky bottom-0 z-40", children: [
|
|
35271
|
+
bulkBar,
|
|
35272
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.FilesModalFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { variant: "outline", onClick: onClose, children: "Close" }) })
|
|
35273
|
+
] }) : bulkBar,
|
|
35324
35274
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
35325
35275
|
chunkK67VMSOX_cjs.ConfirmDialog,
|
|
35326
35276
|
{
|
|
@@ -35331,7 +35281,7 @@ function ConnectedFilesPage({
|
|
|
35331
35281
|
requestDelete(null);
|
|
35332
35282
|
},
|
|
35333
35283
|
title: "Delete Document",
|
|
35334
|
-
description: deleteRequest ? `Delete "${ui.getDocumentTitle(deleteRequest, "this document")}"? ${
|
|
35284
|
+
description: deleteRequest ? `Delete "${ui.getDocumentTitle(deleteRequest, "this document")}"? ${chunk44M4FI2N_cjs.RECENTLY_DELETED_HINT}` : "",
|
|
35335
35285
|
confirmText: "Delete",
|
|
35336
35286
|
variant: "destructive"
|
|
35337
35287
|
}
|
|
@@ -35393,7 +35343,7 @@ function ConnectedFilesPage({
|
|
|
35393
35343
|
dialog.seq
|
|
35394
35344
|
) }),
|
|
35395
35345
|
workspace && /* @__PURE__ */ jsxRuntime.jsx(
|
|
35396
|
-
|
|
35346
|
+
chunkYO7GDNEW_cjs.ConnectedEmailWorkspaceDialog,
|
|
35397
35347
|
{
|
|
35398
35348
|
open: emailWorkspaceOpen,
|
|
35399
35349
|
onOpenChange: setEmailWorkspaceOpen,
|
|
@@ -35401,14 +35351,14 @@ function ConnectedFilesPage({
|
|
|
35401
35351
|
isMember
|
|
35402
35352
|
}
|
|
35403
35353
|
),
|
|
35404
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
35354
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkYO7GDNEW_cjs.ConnectedNewFileMenu, { open: newFileOpen, onOpenChange: setNewFileOpen }),
|
|
35405
35355
|
dialogs
|
|
35406
35356
|
] });
|
|
35407
35357
|
}
|
|
35408
35358
|
var NO_DOCUMENTS3 = [];
|
|
35409
35359
|
function ConnectedAiReviewHost(props) {
|
|
35410
|
-
const open =
|
|
35411
|
-
const setOpen =
|
|
35360
|
+
const open = chunkHGD4B7GO_cjs.useAiReviewStore((s) => s.open);
|
|
35361
|
+
const setOpen = chunkHGD4B7GO_cjs.useAiReviewStore((s) => s.setOpen);
|
|
35412
35362
|
return /* @__PURE__ */ jsxRuntime.jsx(ConnectedAiReview, { open, onOpenChange: setOpen, ...props });
|
|
35413
35363
|
}
|
|
35414
35364
|
function ConnectedGridView(props) {
|
|
@@ -35444,7 +35394,7 @@ function ProcessingSection({
|
|
|
35444
35394
|
tasks,
|
|
35445
35395
|
onDelete
|
|
35446
35396
|
}) {
|
|
35447
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
35397
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.TaskSection, { title, count: count2, status, tooltip: SECTION_TOOLTIPS[status], children: /* @__PURE__ */ jsxRuntime.jsx(chunkU6JUIJTP_cjs.UploadTaskList, { tasks, title: "", onDelete, renderFileIcon: renderFileIcon2 }) });
|
|
35448
35398
|
}
|
|
35449
35399
|
function ConnectedDocumentProcessingPanel({
|
|
35450
35400
|
workspaceId,
|
|
@@ -35657,7 +35607,7 @@ function ConnectedProcessingPanel({ headerActions }) {
|
|
|
35657
35607
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
35658
35608
|
chunkSJSGSHIT_cjs.TabHeader,
|
|
35659
35609
|
{
|
|
35660
|
-
leading: /* @__PURE__ */ jsxRuntime.jsx(
|
|
35610
|
+
leading: /* @__PURE__ */ jsxRuntime.jsx(chunkYO7GDNEW_cjs.ConnectedWorkspaceEntity, { workspace, variant: "icon", size: 20 }),
|
|
35661
35611
|
tabs: [
|
|
35662
35612
|
{
|
|
35663
35613
|
id: "processing",
|
|
@@ -35800,7 +35750,7 @@ var MENU_LABELS = {
|
|
|
35800
35750
|
};
|
|
35801
35751
|
function applyDatabaseColumns(columns, api) {
|
|
35802
35752
|
const kept = (id) => api.getColumn(id) ? [id] : [];
|
|
35803
|
-
|
|
35753
|
+
chunk44M4FI2N_cjs.applyColumnLayout(api, [...kept(chunkQ25CZLK6_cjs.OPEN_ROW_COL_ID), ...columns, ...kept(chunkQ25CZLK6_cjs.ADD_COLUMN_COL_ID)]);
|
|
35804
35754
|
}
|
|
35805
35755
|
function DatabaseViewsMenu({
|
|
35806
35756
|
databaseId,
|
|
@@ -35821,7 +35771,7 @@ function DatabaseViewsMenu({
|
|
|
35821
35771
|
);
|
|
35822
35772
|
const onLoadView = react.useCallback(
|
|
35823
35773
|
(view, api) => {
|
|
35824
|
-
|
|
35774
|
+
chunk44M4FI2N_cjs.applyViewColumns(api, view, applyDatabaseColumns);
|
|
35825
35775
|
onFiltersChange([...view.filters ?? []]);
|
|
35826
35776
|
},
|
|
35827
35777
|
[onFiltersChange]
|
|
@@ -35832,7 +35782,7 @@ function DatabaseViewsMenu({
|
|
|
35832
35782
|
deleteView,
|
|
35833
35783
|
shareView
|
|
35834
35784
|
);
|
|
35835
|
-
const menu =
|
|
35785
|
+
const menu = chunk44M4FI2N_cjs.useGridViews({
|
|
35836
35786
|
getGridApi,
|
|
35837
35787
|
defaultColumns,
|
|
35838
35788
|
builtins,
|
|
@@ -35847,7 +35797,7 @@ function DatabaseViewsMenu({
|
|
|
35847
35797
|
onShareView,
|
|
35848
35798
|
isSaving
|
|
35849
35799
|
});
|
|
35850
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
35800
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.ViewSelectorMenu, { ...menu, labels: MENU_LABELS });
|
|
35851
35801
|
}
|
|
35852
35802
|
function useMoveLocalViews(gridId, ready, importViews) {
|
|
35853
35803
|
const localViews = react$1.useArbiSessionState((state) => state.grid.savedViews[gridId]);
|
|
@@ -36321,7 +36271,7 @@ function WatchOne({ transferId }) {
|
|
|
36321
36271
|
const { data: job } = react$1.useWorkspaceTransfer(transferId);
|
|
36322
36272
|
const { data: workspaces = [] } = react$1.useWorkspaces();
|
|
36323
36273
|
const { notify: notify19 } = chunk46LX6EQT_cjs.useBlocksEnvironment();
|
|
36324
|
-
const untrack = useExportStore((state) => state.untrackTransfer);
|
|
36274
|
+
const untrack = chunkYO7GDNEW_cjs.useExportStore((state) => state.untrackTransfer);
|
|
36325
36275
|
const invalidateAfterTransfer = react$1.useInvalidateAfterTransfer();
|
|
36326
36276
|
react.useEffect(() => {
|
|
36327
36277
|
if (!job || !react$1.isTransferFinished(job)) return;
|
|
@@ -36334,7 +36284,7 @@ function WatchOne({ transferId }) {
|
|
|
36334
36284
|
return null;
|
|
36335
36285
|
}
|
|
36336
36286
|
function ConnectedTransferWatcher() {
|
|
36337
|
-
const active = useExportStore((state) => state.activeTransfers);
|
|
36287
|
+
const active = chunkYO7GDNEW_cjs.useExportStore((state) => state.activeTransfers);
|
|
36338
36288
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: active.map((id) => /* @__PURE__ */ jsxRuntime.jsx(WatchOne, { transferId: id }, id)) });
|
|
36339
36289
|
}
|
|
36340
36290
|
function useChatMessageToasts() {
|
|
@@ -37673,10 +37623,10 @@ var FreshChatModel = () => (useFreshChatModel(), null);
|
|
|
37673
37623
|
var WorkspaceOpenMetrics = ({ measure }) => (useWorkspaceOpenMetrics(measure), null);
|
|
37674
37624
|
var Prefetch = ({ loaders }) => (usePrefetchChunks(loaders), null);
|
|
37675
37625
|
function GuidedRuns() {
|
|
37676
|
-
|
|
37626
|
+
chunkPTT5MZ7O_cjs.useRemoteControlSessionReset();
|
|
37677
37627
|
const { cursorMark } = chunkNZNBJF3M_cjs.useGuidedRuns();
|
|
37678
37628
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
37679
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
37629
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkHJHDKS4V_cjs.GuidedCursor, { markSrc: cursorMark }),
|
|
37680
37630
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedRemoteControlConsent, {})
|
|
37681
37631
|
] });
|
|
37682
37632
|
}
|
|
@@ -37710,7 +37660,7 @@ function ConnectedAppRuntime({
|
|
|
37710
37660
|
on("pageTransition") && /* @__PURE__ */ jsxRuntime.jsx(PageTransition, {}),
|
|
37711
37661
|
on("freshChatModel") && /* @__PURE__ */ jsxRuntime.jsx(FreshChatModel, {}),
|
|
37712
37662
|
on("workspaceOpenMetrics") && measure && /* @__PURE__ */ jsxRuntime.jsx(WorkspaceOpenMetrics, { measure }),
|
|
37713
|
-
on("prefetch") && /* @__PURE__ */ jsxRuntime.jsx(Prefetch, { loaders: [...prefetch ?? [], ...
|
|
37663
|
+
on("prefetch") && /* @__PURE__ */ jsxRuntime.jsx(Prefetch, { loaders: [...prefetch ?? [], ...chunkHJHDKS4V_cjs.KIT_CHUNK_LOADERS] }),
|
|
37714
37664
|
on("guidedRuns") && /* @__PURE__ */ jsxRuntime.jsx(GuidedRuns, {})
|
|
37715
37665
|
] });
|
|
37716
37666
|
}
|
|
@@ -38175,7 +38125,7 @@ async function renderAnnotatedScreenshot(image, marks, text) {
|
|
|
38175
38125
|
)
|
|
38176
38126
|
);
|
|
38177
38127
|
}
|
|
38178
|
-
return
|
|
38128
|
+
return chunkPTT5MZ7O_cjs.canvasToBlob(canvas);
|
|
38179
38129
|
}
|
|
38180
38130
|
function ReportProblemDialog({
|
|
38181
38131
|
open,
|
|
@@ -38469,7 +38419,7 @@ function ReportProblemDialog({
|
|
|
38469
38419
|
hidden: ticketId !== null,
|
|
38470
38420
|
children: [
|
|
38471
38421
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground", children: "No screenshot attached." }),
|
|
38472
|
-
|
|
38422
|
+
chunkPTT5MZ7O_cjs.canCaptureScreen() ? /* @__PURE__ */ jsxRuntime.jsxs(ui.Button, { size: "sm", variant: "outline", onClick: onRetake, "data-testid": "report-retake", children: [
|
|
38473
38423
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Camera, { className: "mr-1 size-4" }),
|
|
38474
38424
|
" Take a screenshot"
|
|
38475
38425
|
] }) : /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "inline-flex cursor-pointer items-center gap-1 font-medium text-primary", children: [
|
|
@@ -38533,10 +38483,10 @@ function useReportProblem(options = {}) {
|
|
|
38533
38483
|
setPhase("capturing");
|
|
38534
38484
|
await new Promise((resolve) => window.setTimeout(resolve, 200));
|
|
38535
38485
|
try {
|
|
38536
|
-
setFrame(await
|
|
38486
|
+
setFrame(await chunkPTT5MZ7O_cjs.captureCurrentTab());
|
|
38537
38487
|
setImage(null);
|
|
38538
38488
|
} catch (error) {
|
|
38539
|
-
const code = error instanceof
|
|
38489
|
+
const code = error instanceof chunkPTT5MZ7O_cjs.ScreenCaptureError ? error.code : "failed";
|
|
38540
38490
|
if (code === "failed") {
|
|
38541
38491
|
notify19("Couldn't capture the screen. You can still describe the problem.", "error");
|
|
38542
38492
|
}
|
|
@@ -39476,7 +39426,7 @@ function resolveLaunchInputs(workflow, request) {
|
|
|
39476
39426
|
function useWorkflowLaunch() {
|
|
39477
39427
|
const { skills } = chunkV27WLYTG_cjs.useWorkflowDefinitions();
|
|
39478
39428
|
const launch = react.useCallback(
|
|
39479
|
-
(workflowId, options = {}) =>
|
|
39429
|
+
(workflowId, options = {}) => chunkU6JUIJTP_cjs.openWorkflowLaunch({ workflowId, ...options }),
|
|
39480
39430
|
[]
|
|
39481
39431
|
);
|
|
39482
39432
|
const itemsFor = react.useCallback(
|
|
@@ -39505,8 +39455,8 @@ function useWorkflowLaunch() {
|
|
|
39505
39455
|
return { launch, itemsFor, scopeItemsFor };
|
|
39506
39456
|
}
|
|
39507
39457
|
function Inner() {
|
|
39508
|
-
const request =
|
|
39509
|
-
const close =
|
|
39458
|
+
const request = chunkU6JUIJTP_cjs.useWorkflowLaunchRequest();
|
|
39459
|
+
const close = chunkU6JUIJTP_cjs.closeWorkflowLaunch;
|
|
39510
39460
|
const { skills } = chunkV27WLYTG_cjs.useWorkflowDefinitions();
|
|
39511
39461
|
const run = chunk7UPEFZCV_cjs.useLaunchWorkflow({ landing: request?.landing });
|
|
39512
39462
|
const workflow = skills.find((w) => w.id === request?.workflowId);
|
|
@@ -39544,7 +39494,7 @@ function Inner() {
|
|
|
39544
39494
|
);
|
|
39545
39495
|
}
|
|
39546
39496
|
function WorkflowLaunchHost() {
|
|
39547
|
-
return
|
|
39497
|
+
return chunkU6JUIJTP_cjs.useWorkflowLaunchRequest() ? /* @__PURE__ */ jsxRuntime.jsx(Inner, {}) : null;
|
|
39548
39498
|
}
|
|
39549
39499
|
function isNeedsConfirmationDetail(detail) {
|
|
39550
39500
|
return typeof detail === "object" && detail !== null && detail.needs_confirmation === "resource_private";
|
|
@@ -39849,7 +39799,7 @@ function ConnectedConversationSettings() {
|
|
|
39849
39799
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
39850
39800
|
chunkAHUEBRLX_cjs.ModelSelectionSection,
|
|
39851
39801
|
{
|
|
39852
|
-
selector: /* @__PURE__ */ jsxRuntime.jsx(
|
|
39802
|
+
selector: /* @__PURE__ */ jsxRuntime.jsx(chunkPTT5MZ7O_cjs.ConnectedModelSelector, {}),
|
|
39853
39803
|
onUseDefaults: settings.resetToDefaults
|
|
39854
39804
|
}
|
|
39855
39805
|
)
|
|
@@ -39955,7 +39905,7 @@ var BUILTIN_GLOBAL_DIALOGS = {
|
|
|
39955
39905
|
testId: "workspace-transfer-modal"
|
|
39956
39906
|
}
|
|
39957
39907
|
),
|
|
39958
|
-
logout: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
39908
|
+
logout: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(chunkPTT5MZ7O_cjs.ConnectedLogoutDialog, { open: props !== null, onClose }),
|
|
39959
39909
|
conversationSettings: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(ConnectedConversationSettingsDialog, { open: props !== null, onClose }),
|
|
39960
39910
|
unarchiveWorkspace: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(ConnectedUnarchiveWorkspaceDialog, { workspaceId: props?.workspaceId ?? null, onClose }),
|
|
39961
39911
|
productionSet: ConnectedProductionSetDialog,
|
|
@@ -40036,7 +39986,7 @@ function WorkflowRunStatusCell({ conversation }) {
|
|
|
40036
39986
|
return person ? ui.getUserDisplayName(person) : void 0;
|
|
40037
39987
|
};
|
|
40038
39988
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
40039
|
-
|
|
39989
|
+
chunkU6JUIJTP_cjs.WorkflowRunStatus,
|
|
40040
39990
|
{
|
|
40041
39991
|
steps,
|
|
40042
39992
|
states,
|
|
@@ -40070,7 +40020,7 @@ function ConversationStatusCell({ conversation }) {
|
|
|
40070
40020
|
if (conversation.plan?.steps?.length && !isLiveGenerating)
|
|
40071
40021
|
return /* @__PURE__ */ jsxRuntime.jsx(WorkflowRunStatusCell, { conversation });
|
|
40072
40022
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
40073
|
-
|
|
40023
|
+
chunkU6JUIJTP_cjs.ThreadStatusLine,
|
|
40074
40024
|
{
|
|
40075
40025
|
state: threadStateOf(conversation, isLiveGenerating),
|
|
40076
40026
|
className: "h-full",
|
|
@@ -40322,7 +40272,7 @@ function useThreadLabels(canEditShared) {
|
|
|
40322
40272
|
if (failed)
|
|
40323
40273
|
notify19(`Could not update labels on ${failed} thread${failed === 1 ? "" : "s"}.`, "error");
|
|
40324
40274
|
};
|
|
40325
|
-
const
|
|
40275
|
+
const create2 = async (rows, name) => {
|
|
40326
40276
|
if (!canEdit(rows) || !name.trim()) return;
|
|
40327
40277
|
try {
|
|
40328
40278
|
const existing = labels.find((tag) => tag.name.toLowerCase() === name.trim().toLowerCase());
|
|
@@ -40339,12 +40289,12 @@ function useThreadLabels(canEditShared) {
|
|
|
40339
40289
|
return {
|
|
40340
40290
|
labelText: (row2) => labels.filter((tag) => row2.label_ext_ids?.includes(tag.external_id)).map((tag) => tag.name).join(" "),
|
|
40341
40291
|
renderLabels: (row2) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
40342
|
-
|
|
40292
|
+
chunk44M4FI2N_cjs.LabelMultiSelectView,
|
|
40343
40293
|
{
|
|
40344
40294
|
options,
|
|
40345
40295
|
appliedIds: new Set(row2.label_ext_ids ?? []),
|
|
40346
40296
|
onToggle: (id) => void apply([row2], id, Boolean(row2.label_ext_ids?.includes(id))),
|
|
40347
|
-
onCreate: (name) => void
|
|
40297
|
+
onCreate: (name) => void create2([row2], name),
|
|
40348
40298
|
rowHeight: 40
|
|
40349
40299
|
}
|
|
40350
40300
|
),
|
|
@@ -40358,7 +40308,7 @@ function useThreadLabels(canEditShared) {
|
|
|
40358
40308
|
).map((label) => label.id)
|
|
40359
40309
|
);
|
|
40360
40310
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
40361
|
-
|
|
40311
|
+
chunk44M4FI2N_cjs.BulkLabelSelectView,
|
|
40362
40312
|
{
|
|
40363
40313
|
options,
|
|
40364
40314
|
appliedIds: all,
|
|
@@ -40366,7 +40316,7 @@ function useThreadLabels(canEditShared) {
|
|
|
40366
40316
|
disabled: !canEdit(rows) || update.isPending || createTag.isPending,
|
|
40367
40317
|
isCompact,
|
|
40368
40318
|
onToggle: (id) => void apply(rows, id, all.has(id)),
|
|
40369
|
-
onCreate: (name) => void
|
|
40319
|
+
onCreate: (name) => void create2(rows, name)
|
|
40370
40320
|
}
|
|
40371
40321
|
);
|
|
40372
40322
|
}
|
|
@@ -40389,7 +40339,7 @@ function ConnectedThreadLauncher({ autoFocus }) {
|
|
|
40389
40339
|
return /* @__PURE__ */ jsxRuntime.jsxs(chunkVHD5DZW4_cjs.ComposerDock, { children: [
|
|
40390
40340
|
slashWorkflows.launcher,
|
|
40391
40341
|
/* @__PURE__ */ jsxRuntime.jsx(chunkVHD5DZW4_cjs.ComposerContainer, { className: "mx-auto max-w-[49rem] px-3 sm:px-6", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
40392
|
-
|
|
40342
|
+
chunkPTT5MZ7O_cjs.ConversationComposer,
|
|
40393
40343
|
{
|
|
40394
40344
|
value: draft,
|
|
40395
40345
|
onValueChange: setDraft,
|
|
@@ -40398,7 +40348,7 @@ function ConnectedThreadLauncher({ autoFocus }) {
|
|
|
40398
40348
|
isConversationEmpty: true,
|
|
40399
40349
|
shouldOfferFollowUp: false,
|
|
40400
40350
|
skills,
|
|
40401
|
-
modelSelector: /* @__PURE__ */ jsxRuntime.jsx(
|
|
40351
|
+
modelSelector: /* @__PURE__ */ jsxRuntime.jsx(chunkPTT5MZ7O_cjs.ConnectedModelSelector, { variant: "compact" }),
|
|
40402
40352
|
rightButton: /* @__PURE__ */ jsxRuntime.jsx(chunkVHD5DZW4_cjs.ComposerSend, { onSend: send, disabled: !draft.trim() })
|
|
40403
40353
|
}
|
|
40404
40354
|
) })
|
|
@@ -40529,7 +40479,7 @@ function AgentBarShell({
|
|
|
40529
40479
|
}, [isStepsExpanded, steps]);
|
|
40530
40480
|
const visibleStepCount = react.useMemo(() => browser.topLevelAgentSteps(steps ?? []).length, [steps]);
|
|
40531
40481
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
40532
|
-
|
|
40482
|
+
chunkU6JUIJTP_cjs.AgentBar,
|
|
40533
40483
|
{
|
|
40534
40484
|
className,
|
|
40535
40485
|
testId,
|
|
@@ -40541,7 +40491,7 @@ function AgentBarShell({
|
|
|
40541
40491
|
drawerRef: scrollRef,
|
|
40542
40492
|
onDrawerScroll: handleDrawerScroll,
|
|
40543
40493
|
drawer: /* @__PURE__ */ jsxRuntime.jsx(
|
|
40544
|
-
|
|
40494
|
+
chunkPTT5MZ7O_cjs.AgentSteps,
|
|
40545
40495
|
{
|
|
40546
40496
|
steps: stepList,
|
|
40547
40497
|
isStreaming,
|
|
@@ -40593,7 +40543,7 @@ function AgentControlBar({
|
|
|
40593
40543
|
const waitingOnChildren = runningLanes.length > 0 && ["sub_agent", "spawn_subagent", "deep_research", "run_skill"].includes(currentTool ?? "");
|
|
40594
40544
|
const waitingLabel = runningLanes.length === 1 ? `Waiting on ${runningLanes[0].job}` : `Waiting on ${runningLanes.length} sub-agents`;
|
|
40595
40545
|
const liveTimerNode = liveTimer && /* @__PURE__ */ jsxRuntime.jsx(
|
|
40596
|
-
|
|
40546
|
+
chunkPTT5MZ7O_cjs.MessageLiveSeconds,
|
|
40597
40547
|
{
|
|
40598
40548
|
...liveTimer,
|
|
40599
40549
|
offsetSeconds: currentStep?.t ?? 0,
|
|
@@ -40602,7 +40552,7 @@ function AgentControlBar({
|
|
|
40602
40552
|
}
|
|
40603
40553
|
);
|
|
40604
40554
|
const status = /* @__PURE__ */ jsxRuntime.jsx(
|
|
40605
|
-
|
|
40555
|
+
chunkU6JUIJTP_cjs.AgentBarStatus,
|
|
40606
40556
|
{
|
|
40607
40557
|
state: showState ? controlState : void 0,
|
|
40608
40558
|
stateLabel: STATE_LABEL[controlState],
|
|
@@ -40644,7 +40594,7 @@ function AgentControlBar({
|
|
|
40644
40594
|
];
|
|
40645
40595
|
const controls = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
40646
40596
|
onStop && /* @__PURE__ */ jsxRuntime.jsx(
|
|
40647
|
-
|
|
40597
|
+
chunkU6JUIJTP_cjs.AgentBarIconButton,
|
|
40648
40598
|
{
|
|
40649
40599
|
onClick: onStop,
|
|
40650
40600
|
title: "Stop",
|
|
@@ -40653,22 +40603,22 @@ function AgentControlBar({
|
|
|
40653
40603
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Square, { className: "h-3 w-3", fill: "currentColor" })
|
|
40654
40604
|
}
|
|
40655
40605
|
),
|
|
40656
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
40606
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkU6JUIJTP_cjs.AgentBarMenu, { items: menuItems })
|
|
40657
40607
|
] });
|
|
40658
40608
|
const displayedQueuedMessages = (transientQueuedMessages ?? []).filter(
|
|
40659
40609
|
(message) => !message.serverId || !queuedMessages.some((queued) => queued.external_id === message.serverId)
|
|
40660
40610
|
);
|
|
40661
40611
|
const queuedNotes = displayedQueuedMessages.filter((message) => message.content);
|
|
40662
|
-
const below = probeAnswer || queuedNotes.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
40612
|
+
const below = probeAnswer || queuedNotes.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(chunkU6JUIJTP_cjs.AgentBarNotes, { children: [
|
|
40663
40613
|
queuedNotes.map((message, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
40664
|
-
|
|
40614
|
+
chunkU6JUIJTP_cjs.AgentBarQueuedNote,
|
|
40665
40615
|
{
|
|
40666
40616
|
text: message.content ?? "",
|
|
40667
40617
|
isAcknowledged: message.acknowledged
|
|
40668
40618
|
},
|
|
40669
40619
|
index
|
|
40670
40620
|
)),
|
|
40671
|
-
probeAnswer && /* @__PURE__ */ jsxRuntime.jsx(
|
|
40621
|
+
probeAnswer && /* @__PURE__ */ jsxRuntime.jsx(chunkU6JUIJTP_cjs.AgentBarProbeAnswer, { answer: probeAnswer.answer })
|
|
40672
40622
|
] }) : null;
|
|
40673
40623
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
40674
40624
|
AgentBarShell,
|
|
@@ -40818,7 +40768,7 @@ function ConnectedConversationEmpty({
|
|
|
40818
40768
|
compactLeadingAction: onImportFromEmail && /* @__PURE__ */ jsxRuntime.jsx(AddFromAccountsButton, { onImportFromEmail })
|
|
40819
40769
|
}
|
|
40820
40770
|
),
|
|
40821
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
40771
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk44M4FI2N_cjs.PrivacyExplainerModal, {})
|
|
40822
40772
|
] })
|
|
40823
40773
|
}
|
|
40824
40774
|
);
|
|
@@ -41533,7 +41483,7 @@ function ConversationThread({
|
|
|
41533
41483
|
() => firstTurnPrompt ? react$1.buildPendingFirstTurn(firstTurnPrompt, currentUserExtId) : null,
|
|
41534
41484
|
[firstTurnPrompt, currentUserExtId]
|
|
41535
41485
|
);
|
|
41536
|
-
const uploadUrls =
|
|
41486
|
+
const uploadUrls = chunkYO7GDNEW_cjs.useAddFromUrls({
|
|
41537
41487
|
onZipFiles: (files2) => openUpload?.(files2, { source: "computer" })
|
|
41538
41488
|
});
|
|
41539
41489
|
const {
|
|
@@ -41783,7 +41733,7 @@ function ConversationThread({
|
|
|
41783
41733
|
useStartRequestedDraft();
|
|
41784
41734
|
const orphanedMessage = react$1.getOrphanedLastMessage(messageHistory, isGenerating, assistantMode);
|
|
41785
41735
|
return /* @__PURE__ */ jsxRuntime.jsxs(chunkKLMNCBLY_cjs.ConversationBody, { children: [
|
|
41786
|
-
/* @__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(
|
|
41736
|
+
/* @__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(chunkPTT5MZ7O_cjs.AskAgainContext.Provider, { value: handleAskAgain, children: /* @__PURE__ */ jsxRuntime.jsxs(chunk3GQQUR27_cjs.TranscriptRunsContext.Provider, { value: transcriptRunInfo, children: [
|
|
41787
41737
|
meetingCallExtId && transcriptLineCount > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center py-2", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
41788
41738
|
chunkZBP4ZSAJ_cjs.ConversationFilter,
|
|
41789
41739
|
{
|
|
@@ -41801,7 +41751,7 @@ function ConversationThread({
|
|
|
41801
41751
|
]
|
|
41802
41752
|
}
|
|
41803
41753
|
) }),
|
|
41804
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
41754
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkPTT5MZ7O_cjs.ConnectedMessageArea, { ref: containerRef, messages: visibleMessages }),
|
|
41805
41755
|
showProvisional && /* @__PURE__ */ jsxRuntime.jsx(chunkWOVNXJK5_cjs.ProvisionalSpeakers, { ids: provisionalSpeakers })
|
|
41806
41756
|
] }) }) : meetingCallExtId ? (
|
|
41807
41757
|
// A meeting thread with nothing yet: call-aware, not the upload prompt.
|
|
@@ -41809,7 +41759,7 @@ function ConversationThread({
|
|
|
41809
41759
|
/* @__PURE__ */ jsxRuntime.jsx(chunkWOVNXJK5_cjs.CallConversationEmpty, { callExtId: meetingCallExtId }),
|
|
41810
41760
|
/* @__PURE__ */ jsxRuntime.jsx(chunkWOVNXJK5_cjs.ProvisionalSpeakers, { ids: provisionalSpeakers })
|
|
41811
41761
|
] })
|
|
41812
|
-
) : currentTask && currentTask.status != null ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
41762
|
+
) : currentTask && currentTask.status != null ? /* @__PURE__ */ jsxRuntime.jsx(chunkU6JUIJTP_cjs.TaskEmptyState, { task: currentTask }) : pendingFirstTurn && isGenerating ? /* @__PURE__ */ jsxRuntime.jsx(chunkPTT5MZ7O_cjs.ConnectedMessageArea, { ref: containerRef, messages: pendingFirstTurn }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
41813
41763
|
ConnectedConversationEmpty,
|
|
41814
41764
|
{
|
|
41815
41765
|
hasDocuments: allWorkspaceDocuments.length > 0,
|
|
@@ -41907,7 +41857,7 @@ function ConversationThread({
|
|
|
41907
41857
|
}
|
|
41908
41858
|
),
|
|
41909
41859
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
41910
|
-
|
|
41860
|
+
chunkPTT5MZ7O_cjs.ConversationComposer,
|
|
41911
41861
|
{
|
|
41912
41862
|
handleSendMessage: handleUserSend,
|
|
41913
41863
|
placeholder: pendingAnswer ? assistant.answerPlaceholder : void 0,
|
|
@@ -42198,7 +42148,7 @@ function ConnectedThreadsPage({
|
|
|
42198
42148
|
const mine = selected.every((c) => c.created_by_ext_id === currentUserExtId);
|
|
42199
42149
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
42200
42150
|
selected.every((row2) => row2.is_owner || row2.is_shared && canEditShared) && selected.some((row2) => row2.status !== "done") && !selected.some((row2) => row2.in_progress || row2.status === "generating") && /* @__PURE__ */ jsxRuntime.jsx(
|
|
42201
|
-
|
|
42151
|
+
chunkS3GVFAFB_cjs.SelectionBarAction,
|
|
42202
42152
|
{
|
|
42203
42153
|
icon: lucideReact.CheckCheck,
|
|
42204
42154
|
label: "Mark Done",
|
|
@@ -42221,7 +42171,7 @@ function ConnectedThreadsPage({
|
|
|
42221
42171
|
}
|
|
42222
42172
|
),
|
|
42223
42173
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
42224
|
-
|
|
42174
|
+
chunkS3GVFAFB_cjs.SelectionBarAction,
|
|
42225
42175
|
{
|
|
42226
42176
|
icon: lucideReact.FolderUp,
|
|
42227
42177
|
label: "Export",
|
|
@@ -42235,7 +42185,7 @@ function ConnectedThreadsPage({
|
|
|
42235
42185
|
}
|
|
42236
42186
|
),
|
|
42237
42187
|
selected.every((row2) => chunkDKY67DA6_cjs.canDeleteThread(row2, isWorkspaceOwner)) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
42238
|
-
|
|
42188
|
+
chunkS3GVFAFB_cjs.SelectionBarAction,
|
|
42239
42189
|
{
|
|
42240
42190
|
icon: lucideReact.Trash2,
|
|
42241
42191
|
label: "Delete",
|
|
@@ -42249,7 +42199,7 @@ function ConnectedThreadsPage({
|
|
|
42249
42199
|
};
|
|
42250
42200
|
const page = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full min-h-0 flex-col", "data-testid": "threads-page", children: [
|
|
42251
42201
|
/* @__PURE__ */ jsxRuntime.jsx("main", { className: "flex min-h-0 flex-1 flex-col bg-background", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
42252
|
-
|
|
42202
|
+
chunkU6JUIJTP_cjs.ConversationListView,
|
|
42253
42203
|
{
|
|
42254
42204
|
showHeader,
|
|
42255
42205
|
conversations: tasks,
|
|
@@ -42268,7 +42218,7 @@ function ConnectedThreadsPage({
|
|
|
42268
42218
|
renderLabels: threadLabels.renderLabels,
|
|
42269
42219
|
labelText: threadLabels.labelText,
|
|
42270
42220
|
renderBy: (row2) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
42271
|
-
|
|
42221
|
+
chunkU6JUIJTP_cjs.ConversationTurnSpeaker,
|
|
42272
42222
|
{
|
|
42273
42223
|
variant: "icon",
|
|
42274
42224
|
role: row2.last_message_role,
|
|
@@ -42655,7 +42605,7 @@ function ConnectedChatDocumentsTab({
|
|
|
42655
42605
|
testId: `document-hover-toggle-${doc.external_id}`
|
|
42656
42606
|
},
|
|
42657
42607
|
status: /* @__PURE__ */ jsxRuntime.jsx(
|
|
42658
|
-
|
|
42608
|
+
chunk44M4FI2N_cjs.DocStatusIcon,
|
|
42659
42609
|
{
|
|
42660
42610
|
status: doc.status,
|
|
42661
42611
|
onClick: onStatusClick,
|
|
@@ -43069,7 +43019,7 @@ function ConnectedConversationPage({
|
|
|
43069
43019
|
const isGuest = workspaceRole === "guest";
|
|
43070
43020
|
const canUpload = workspaceRole !== null && !isGuest;
|
|
43071
43021
|
const [urlDialogOpen, setUrlDialogOpen] = react.useState(false);
|
|
43072
|
-
const uploadUrls =
|
|
43022
|
+
const uploadUrls = chunkYO7GDNEW_cjs.useAddFromUrls({
|
|
43073
43023
|
onZipFiles: (files2) => chunkK67VMSOX_cjs.openDialog("upload", { tab: "upload", files: files2, source: "computer" })
|
|
43074
43024
|
});
|
|
43075
43025
|
const uploadDisabledReason = isGuest ? "Viewers cannot upload documents in this workspace" : "You cannot upload to this workspace";
|
|
@@ -43149,7 +43099,7 @@ function ConnectedConversationPage({
|
|
|
43149
43099
|
);
|
|
43150
43100
|
const { data: workspaceTags = [] } = react$1.useTags();
|
|
43151
43101
|
const { tagId: threadTagId, clear: clearThreadTag } = useThreadTagFilter();
|
|
43152
|
-
const historyCount =
|
|
43102
|
+
const historyCount = chunkU6JUIJTP_cjs.filterConversationRows(
|
|
43153
43103
|
threadTagId ? conversations.filter((row2) => row2.label_ext_ids?.includes(threadTagId)) : conversations,
|
|
43154
43104
|
threadFilter,
|
|
43155
43105
|
(row2) => workspaceTags.filter((tag) => row2.label_ext_ids?.includes(tag.external_id)).map((tag) => tag.name).join(" "),
|
|
@@ -43231,7 +43181,7 @@ function ConnectedConversationPage({
|
|
|
43231
43181
|
] })
|
|
43232
43182
|
}
|
|
43233
43183
|
),
|
|
43234
|
-
isInChat && /* @__PURE__ */ jsxRuntime.jsx(
|
|
43184
|
+
isInChat && /* @__PURE__ */ jsxRuntime.jsx(chunkV4B2GSC6_cjs.ConnectedThreadTaskBar, { conversationId: currentConversationId })
|
|
43235
43185
|
] }),
|
|
43236
43186
|
isInChat && /* @__PURE__ */ jsxRuntime.jsx(
|
|
43237
43187
|
ConversationThread,
|
|
@@ -43261,13 +43211,13 @@ function ConnectedConversationPage({
|
|
|
43261
43211
|
!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 }) })
|
|
43262
43212
|
] }),
|
|
43263
43213
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
43264
|
-
|
|
43214
|
+
chunk44M4FI2N_cjs.UrlInputDialog,
|
|
43265
43215
|
{
|
|
43266
43216
|
open: urlDialogOpen,
|
|
43267
43217
|
onOpenChange: setUrlDialogOpen,
|
|
43268
43218
|
onUrlsSubmit: uploadUrls,
|
|
43269
43219
|
titleWorkspaceName: workspace?.name,
|
|
43270
|
-
titleIcon: workspace && /* @__PURE__ */ jsxRuntime.jsx(
|
|
43220
|
+
titleIcon: workspace && /* @__PURE__ */ jsxRuntime.jsx(chunkYO7GDNEW_cjs.ConnectedWorkspaceEntity, { workspace, size: 24, variant: "icon" })
|
|
43271
43221
|
}
|
|
43272
43222
|
)
|
|
43273
43223
|
] });
|
|
@@ -43440,7 +43390,7 @@ function SsoResendVerificationButton({
|
|
|
43440
43390
|
onClick: async () => handleResendEmailVerification(),
|
|
43441
43391
|
disabled: loading || disabled,
|
|
43442
43392
|
"aria-label": "Resend verification email",
|
|
43443
|
-
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
43393
|
+
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(chunkHJHDKS4V_cjs.LoadingIndicator, {}) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
43444
43394
|
"Didn't get a verification email? ",
|
|
43445
43395
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold", children: "Resend" })
|
|
43446
43396
|
] })
|
|
@@ -43451,9 +43401,9 @@ function SsoResendVerificationButton({
|
|
|
43451
43401
|
}
|
|
43452
43402
|
var NO_RECOVERY_KEY_WARNING = "Without your password or a recovery key, we cannot recover your account or data.";
|
|
43453
43403
|
function ConnectedSsoCallback() {
|
|
43454
|
-
const sso =
|
|
43404
|
+
const sso = chunkPTT5MZ7O_cjs.useSsoSignIn();
|
|
43455
43405
|
const { isAuthenticated: isAuthenticated2, isLoading, user } = sso;
|
|
43456
|
-
const auth =
|
|
43406
|
+
const auth = chunkPTT5MZ7O_cjs.useAuthPages();
|
|
43457
43407
|
const { notify: notify19, navigate } = chunk46LX6EQT_cjs.useBlocksEnvironment();
|
|
43458
43408
|
const passwordRules = auth.passwordRules;
|
|
43459
43409
|
const isProcessing = react.useRef(false);
|
|
@@ -43461,7 +43411,7 @@ function ConnectedSsoCallback() {
|
|
|
43461
43411
|
const [statusAttempt, setStatusAttempt] = react.useState(0);
|
|
43462
43412
|
const [accessToken, setAccessToken] = react.useState(null);
|
|
43463
43413
|
const [ssoStatus, setSsoStatus] = react.useState(null);
|
|
43464
|
-
const ssoName = react.useMemo(() =>
|
|
43414
|
+
const ssoName = react.useMemo(() => chunkPTT5MZ7O_cjs.resolveSsoName(user ?? {}, ssoStatus ?? {}), [user, ssoStatus]);
|
|
43465
43415
|
const [password, setPassword] = react.useState("");
|
|
43466
43416
|
const [confirmPassword, setConfirmPassword] = react.useState("");
|
|
43467
43417
|
const [error, setError] = react.useState(null);
|
|
@@ -43639,7 +43589,7 @@ function ConnectedSsoCallback() {
|
|
|
43639
43589
|
setIsCheckingStatus(true);
|
|
43640
43590
|
try {
|
|
43641
43591
|
console.info("[SSO] Checking user status...");
|
|
43642
|
-
const response = await
|
|
43592
|
+
const response = await chunkPTT5MZ7O_cjs.ssoAccountStatus(arbi, accessToken, user);
|
|
43643
43593
|
console.info("[SSO] User status:", response.status);
|
|
43644
43594
|
setSsoStatus(response);
|
|
43645
43595
|
} catch (error2) {
|
|
@@ -43680,7 +43630,7 @@ function ConnectedSsoCallback() {
|
|
|
43680
43630
|
setIsSubmitting(true);
|
|
43681
43631
|
setError(null);
|
|
43682
43632
|
try {
|
|
43683
|
-
const { login, registered, linked } = await
|
|
43633
|
+
const { login, registered, linked } = await chunkPTT5MZ7O_cjs.completeSsoSignIn(arbi, {
|
|
43684
43634
|
token: accessToken,
|
|
43685
43635
|
user,
|
|
43686
43636
|
status: ssoStatus,
|
|
@@ -43980,7 +43930,7 @@ function ConnectedSsoCallback() {
|
|
|
43980
43930
|
ssoStatus.status !== "new_user" && auth.footer
|
|
43981
43931
|
] }),
|
|
43982
43932
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
43983
|
-
|
|
43933
|
+
chunkPTT5MZ7O_cjs.ConnectedForgotPassword,
|
|
43984
43934
|
{
|
|
43985
43935
|
open: showForgotPasswordModal,
|
|
43986
43936
|
onOpenChange: setShowForgotPasswordModal,
|
|
@@ -43988,7 +43938,7 @@ function ConnectedSsoCallback() {
|
|
|
43988
43938
|
}
|
|
43989
43939
|
),
|
|
43990
43940
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
43991
|
-
|
|
43941
|
+
chunkPTT5MZ7O_cjs.ConnectedPasswordChangeDialog,
|
|
43992
43942
|
{
|
|
43993
43943
|
open: showChangePasswordModal,
|
|
43994
43944
|
onClose: () => setShowChangePasswordModal(false),
|
|
@@ -44147,27 +44097,27 @@ function ConnectedOAuthConsentPage({
|
|
|
44147
44097
|
oauthErrorRedirect(params.redirectUri, params.state, "access_denied");
|
|
44148
44098
|
}
|
|
44149
44099
|
if (error && !params) {
|
|
44150
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
44100
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkU6JUIJTP_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkU6JUIJTP_cjs.ConsentMessage, { tone: "error", title: "Invalid Request", children: error }) });
|
|
44151
44101
|
}
|
|
44152
44102
|
if (!params) {
|
|
44153
44103
|
return null;
|
|
44154
44104
|
}
|
|
44155
44105
|
if (clientInfo?.isLocalAgentFlow) {
|
|
44156
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
44106
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkU6JUIJTP_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkU6JUIJTP_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." }) });
|
|
44157
44107
|
}
|
|
44158
44108
|
if (!isAuthenticated2) {
|
|
44159
44109
|
return null;
|
|
44160
44110
|
}
|
|
44161
44111
|
if (callbackUrl) {
|
|
44162
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
44163
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
44112
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkU6JUIJTP_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkU6JUIJTP_cjs.ConsentCard, { size: "md", children: [
|
|
44113
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkU6JUIJTP_cjs.ConsentHeader, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ClipboardList, {}), title: "Almost there", children: [
|
|
44164
44114
|
"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",
|
|
44165
44115
|
" ",
|
|
44166
44116
|
copied ? "it's already copied to your clipboard." : "copy it first."
|
|
44167
44117
|
] }),
|
|
44168
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
44169
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
44170
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
44118
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkU6JUIJTP_cjs.ConsentSection, { title: "Callback URL", children: [
|
|
44119
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkU6JUIJTP_cjs.CopyableUrl, { url: callbackUrl, copied, onCopy: handleCopy }),
|
|
44120
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkU6JUIJTP_cjs.ConsentText, { variant: "hint", children: [
|
|
44171
44121
|
"In Claude Code, paste the URL at the prompt that says",
|
|
44172
44122
|
" ",
|
|
44173
44123
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-mono text-foreground", children: '"paste the full redirect URL here"' }),
|
|
@@ -44176,17 +44126,17 @@ function ConnectedOAuthConsentPage({
|
|
|
44176
44126
|
] })
|
|
44177
44127
|
] }) });
|
|
44178
44128
|
}
|
|
44179
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
44180
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
44181
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
44129
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkU6JUIJTP_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkU6JUIJTP_cjs.ConsentCard, { children: [
|
|
44130
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkU6JUIJTP_cjs.ConsentHeader, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Link2, {}), title: `Connect to ${appName}`, children: [
|
|
44131
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkU6JUIJTP_cjs.ConsentStrong, { children: clientInfo?.name ?? params.clientId }),
|
|
44182
44132
|
" is requesting access to your ",
|
|
44183
44133
|
appName,
|
|
44184
44134
|
" workspace."
|
|
44185
44135
|
] }),
|
|
44186
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
44187
|
-
error && /* @__PURE__ */ jsxRuntime.jsx(
|
|
44188
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
44189
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
44136
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkU6JUIJTP_cjs.ConsentSection, { title: "This will allow", children: /* @__PURE__ */ jsxRuntime.jsx(chunkU6JUIJTP_cjs.ConsentPermissionList, { items: permissions }) }),
|
|
44137
|
+
error && /* @__PURE__ */ jsxRuntime.jsx(chunkU6JUIJTP_cjs.ConsentNotice, { tone: "error", children: error }),
|
|
44138
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkU6JUIJTP_cjs.ConsentActions, { isLoading: loading, onDeny: handleDeny, onAllow: handleAllow }),
|
|
44139
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkU6JUIJTP_cjs.ConsentFootnote, { children: footnote })
|
|
44190
44140
|
] }) });
|
|
44191
44141
|
}
|
|
44192
44142
|
function ConnectedSharedFilesPage({
|
|
@@ -44886,7 +44836,7 @@ function ConnectedTipBar({
|
|
|
44886
44836
|
className,
|
|
44887
44837
|
revealOnHover = false
|
|
44888
44838
|
}) {
|
|
44889
|
-
const { showHints, settingsLoaded, setShowHintsPersisted, setShowHints } =
|
|
44839
|
+
const { showHints, settingsLoaded, setShowHintsPersisted, setShowHints } = chunkPTT5MZ7O_cjs.useContextualHints();
|
|
44890
44840
|
const { dismissed, dismissTip } = react$1.useDismissedTips();
|
|
44891
44841
|
const { notify: notify19 } = chunk46LX6EQT_cjs.useBlocksEnvironment();
|
|
44892
44842
|
const { data: workspaces } = react$1.useWorkspaces();
|
|
@@ -44897,7 +44847,7 @@ function ConnectedTipBar({
|
|
|
44897
44847
|
workspaceOpen,
|
|
44898
44848
|
...state
|
|
44899
44849
|
};
|
|
44900
|
-
const { tip, index, count: count2, previous, next, onHoverChange } =
|
|
44850
|
+
const { tip, index, count: count2, previous, next, onHoverChange } = chunkHJHDKS4V_cjs.useTipsPlacement({
|
|
44901
44851
|
registry,
|
|
44902
44852
|
context,
|
|
44903
44853
|
state: situation,
|
|
@@ -44975,7 +44925,7 @@ function useGettingStarted({
|
|
|
44975
44925
|
const { user } = react$1.useArbiSession();
|
|
44976
44926
|
const userExtId = user?.external_id;
|
|
44977
44927
|
const temporaryOnly = user?.temporary_access_only === true;
|
|
44978
|
-
const { showHints, settingsLoaded, setShowHints, setShowHintsPersisted } =
|
|
44928
|
+
const { showHints, settingsLoaded, setShowHints, setShowHintsPersisted } = chunkPTT5MZ7O_cjs.useContextualHints();
|
|
44979
44929
|
const { dismissed, loaded: dismissedLoaded, dismissTip } = react$1.useDismissedTips();
|
|
44980
44930
|
const welcomeJourneyEnabled = react$1.useFeature("welcomeJourney");
|
|
44981
44931
|
const session = react$1.useArbiSessionStore();
|
|
@@ -45197,15 +45147,15 @@ function ChromeInstallDialog({
|
|
|
45197
45147
|
|
|
45198
45148
|
Object.defineProperty(exports, "ConnectedTagEntity", {
|
|
45199
45149
|
enumerable: true,
|
|
45200
|
-
get: function () { return
|
|
45150
|
+
get: function () { return chunkDCD4OHDF_cjs.ConnectedTagEntity; }
|
|
45201
45151
|
});
|
|
45202
45152
|
Object.defineProperty(exports, "documentFieldContent", {
|
|
45203
45153
|
enumerable: true,
|
|
45204
|
-
get: function () { return
|
|
45154
|
+
get: function () { return chunkDCD4OHDF_cjs.documentFieldContent; }
|
|
45205
45155
|
});
|
|
45206
45156
|
Object.defineProperty(exports, "useMemberLookup", {
|
|
45207
45157
|
enumerable: true,
|
|
45208
|
-
get: function () { return
|
|
45158
|
+
get: function () { return chunkDCD4OHDF_cjs.useMemberLookup; }
|
|
45209
45159
|
});
|
|
45210
45160
|
Object.defineProperty(exports, "DEFAULT_ASK_SUGGESTIONS", {
|
|
45211
45161
|
enumerable: true,
|
|
@@ -45317,279 +45267,279 @@ Object.defineProperty(exports, "useWorkspaceDocs", {
|
|
|
45317
45267
|
});
|
|
45318
45268
|
Object.defineProperty(exports, "ConnectedTaskActivityDialog", {
|
|
45319
45269
|
enumerable: true,
|
|
45320
|
-
get: function () { return
|
|
45270
|
+
get: function () { return chunkV4B2GSC6_cjs.ConnectedTaskActivityDialog; }
|
|
45321
45271
|
});
|
|
45322
45272
|
Object.defineProperty(exports, "ConnectedTaskComposer", {
|
|
45323
45273
|
enumerable: true,
|
|
45324
|
-
get: function () { return
|
|
45274
|
+
get: function () { return chunkV4B2GSC6_cjs.ConnectedTaskComposer; }
|
|
45325
45275
|
});
|
|
45326
45276
|
Object.defineProperty(exports, "ConnectedThreadTaskBar", {
|
|
45327
45277
|
enumerable: true,
|
|
45328
|
-
get: function () { return
|
|
45278
|
+
get: function () { return chunkV4B2GSC6_cjs.ConnectedThreadTaskBar; }
|
|
45329
45279
|
});
|
|
45330
45280
|
Object.defineProperty(exports, "ConnectedWorkflowHistory", {
|
|
45331
45281
|
enumerable: true,
|
|
45332
|
-
get: function () { return
|
|
45282
|
+
get: function () { return chunkV4B2GSC6_cjs.ConnectedWorkflowHistory; }
|
|
45333
45283
|
});
|
|
45334
45284
|
Object.defineProperty(exports, "ConnectedWorkflowRunPage", {
|
|
45335
45285
|
enumerable: true,
|
|
45336
|
-
get: function () { return
|
|
45286
|
+
get: function () { return chunkV4B2GSC6_cjs.ConnectedWorkflowRunPage; }
|
|
45337
45287
|
});
|
|
45338
45288
|
Object.defineProperty(exports, "ConnectedWorkflowRunner", {
|
|
45339
45289
|
enumerable: true,
|
|
45340
|
-
get: function () { return
|
|
45290
|
+
get: function () { return chunkV4B2GSC6_cjs.ConnectedWorkflowRunner; }
|
|
45341
45291
|
});
|
|
45342
45292
|
Object.defineProperty(exports, "DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS", {
|
|
45343
45293
|
enumerable: true,
|
|
45344
|
-
get: function () { return
|
|
45294
|
+
get: function () { return chunkV4B2GSC6_cjs.DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS; }
|
|
45345
45295
|
});
|
|
45346
45296
|
Object.defineProperty(exports, "DEFAULT_WORKFLOW_RUN_PAGE_LABELS", {
|
|
45347
45297
|
enumerable: true,
|
|
45348
|
-
get: function () { return
|
|
45298
|
+
get: function () { return chunkV4B2GSC6_cjs.DEFAULT_WORKFLOW_RUN_PAGE_LABELS; }
|
|
45349
45299
|
});
|
|
45350
45300
|
Object.defineProperty(exports, "WorkflowRunThread", {
|
|
45351
45301
|
enumerable: true,
|
|
45352
|
-
get: function () { return
|
|
45302
|
+
get: function () { return chunkV4B2GSC6_cjs.WorkflowRunThread; }
|
|
45353
45303
|
});
|
|
45354
45304
|
Object.defineProperty(exports, "WorkflowRunWorkspaceChangedError", {
|
|
45355
45305
|
enumerable: true,
|
|
45356
|
-
get: function () { return
|
|
45306
|
+
get: function () { return chunkV4B2GSC6_cjs.WorkflowRunWorkspaceChangedError; }
|
|
45357
45307
|
});
|
|
45358
45308
|
Object.defineProperty(exports, "buildProjectSummaries", {
|
|
45359
45309
|
enumerable: true,
|
|
45360
|
-
get: function () { return
|
|
45310
|
+
get: function () { return chunkV4B2GSC6_cjs.buildProjectSummaries; }
|
|
45361
45311
|
});
|
|
45362
45312
|
Object.defineProperty(exports, "primaryProjectWorkspace", {
|
|
45363
45313
|
enumerable: true,
|
|
45364
|
-
get: function () { return
|
|
45314
|
+
get: function () { return chunkV4B2GSC6_cjs.primaryProjectWorkspace; }
|
|
45365
45315
|
});
|
|
45366
45316
|
Object.defineProperty(exports, "useEnsureRequiredLabels", {
|
|
45367
45317
|
enumerable: true,
|
|
45368
|
-
get: function () { return
|
|
45318
|
+
get: function () { return chunkV4B2GSC6_cjs.useEnsureRequiredLabels; }
|
|
45369
45319
|
});
|
|
45370
45320
|
Object.defineProperty(exports, "useProjectSummaries", {
|
|
45371
45321
|
enumerable: true,
|
|
45372
|
-
get: function () { return
|
|
45322
|
+
get: function () { return chunkV4B2GSC6_cjs.useProjectSummaries; }
|
|
45373
45323
|
});
|
|
45374
45324
|
Object.defineProperty(exports, "useProjectSummary", {
|
|
45375
45325
|
enumerable: true,
|
|
45376
|
-
get: function () { return
|
|
45326
|
+
get: function () { return chunkV4B2GSC6_cjs.useProjectSummary; }
|
|
45377
45327
|
});
|
|
45378
45328
|
Object.defineProperty(exports, "useRenderTaskPerson", {
|
|
45379
45329
|
enumerable: true,
|
|
45380
|
-
get: function () { return
|
|
45330
|
+
get: function () { return chunkV4B2GSC6_cjs.useRenderTaskPerson; }
|
|
45381
45331
|
});
|
|
45382
45332
|
Object.defineProperty(exports, "useRequiredLabels", {
|
|
45383
45333
|
enumerable: true,
|
|
45384
|
-
get: function () { return
|
|
45334
|
+
get: function () { return chunkV4B2GSC6_cjs.useRequiredLabels; }
|
|
45385
45335
|
});
|
|
45386
45336
|
Object.defineProperty(exports, "useTaskPeople", {
|
|
45387
45337
|
enumerable: true,
|
|
45388
|
-
get: function () { return
|
|
45338
|
+
get: function () { return chunkV4B2GSC6_cjs.useTaskPeople; }
|
|
45389
45339
|
});
|
|
45390
45340
|
Object.defineProperty(exports, "useWorkflowsPageState", {
|
|
45391
45341
|
enumerable: true,
|
|
45392
|
-
get: function () { return
|
|
45342
|
+
get: function () { return chunkV4B2GSC6_cjs.useWorkflowsPageState; }
|
|
45393
45343
|
});
|
|
45394
45344
|
Object.defineProperty(exports, "workflowRunView", {
|
|
45395
45345
|
enumerable: true,
|
|
45396
|
-
get: function () { return
|
|
45346
|
+
get: function () { return chunkV4B2GSC6_cjs.workflowRunView; }
|
|
45397
45347
|
});
|
|
45398
45348
|
Object.defineProperty(exports, "AgentSteps", {
|
|
45399
45349
|
enumerable: true,
|
|
45400
|
-
get: function () { return
|
|
45350
|
+
get: function () { return chunkPTT5MZ7O_cjs.AgentSteps; }
|
|
45401
45351
|
});
|
|
45402
45352
|
Object.defineProperty(exports, "AnswerTable", {
|
|
45403
45353
|
enumerable: true,
|
|
45404
|
-
get: function () { return
|
|
45354
|
+
get: function () { return chunkPTT5MZ7O_cjs.AnswerTable; }
|
|
45405
45355
|
});
|
|
45406
45356
|
Object.defineProperty(exports, "ArbiChat", {
|
|
45407
45357
|
enumerable: true,
|
|
45408
|
-
get: function () { return
|
|
45358
|
+
get: function () { return chunkPTT5MZ7O_cjs.ArbiChat; }
|
|
45409
45359
|
});
|
|
45410
45360
|
Object.defineProperty(exports, "AskAgainContext", {
|
|
45411
45361
|
enumerable: true,
|
|
45412
|
-
get: function () { return
|
|
45362
|
+
get: function () { return chunkPTT5MZ7O_cjs.AskAgainContext; }
|
|
45413
45363
|
});
|
|
45414
45364
|
Object.defineProperty(exports, "ConnectedBranchControls", {
|
|
45415
45365
|
enumerable: true,
|
|
45416
|
-
get: function () { return
|
|
45366
|
+
get: function () { return chunkPTT5MZ7O_cjs.ConnectedBranchControls; }
|
|
45417
45367
|
});
|
|
45418
45368
|
Object.defineProperty(exports, "ConnectedCitationRenderer", {
|
|
45419
45369
|
enumerable: true,
|
|
45420
|
-
get: function () { return
|
|
45370
|
+
get: function () { return chunkPTT5MZ7O_cjs.ConnectedCitationRenderer; }
|
|
45421
45371
|
});
|
|
45422
45372
|
Object.defineProperty(exports, "ConnectedCompactConversation", {
|
|
45423
45373
|
enumerable: true,
|
|
45424
|
-
get: function () { return
|
|
45374
|
+
get: function () { return chunkPTT5MZ7O_cjs.ConnectedCompactConversation; }
|
|
45425
45375
|
});
|
|
45426
45376
|
Object.defineProperty(exports, "ConnectedCompactLogin", {
|
|
45427
45377
|
enumerable: true,
|
|
45428
|
-
get: function () { return
|
|
45378
|
+
get: function () { return chunkPTT5MZ7O_cjs.ConnectedCompactLogin; }
|
|
45429
45379
|
});
|
|
45430
45380
|
Object.defineProperty(exports, "ConnectedConversationDocumentPicker", {
|
|
45431
45381
|
enumerable: true,
|
|
45432
|
-
get: function () { return
|
|
45382
|
+
get: function () { return chunkPTT5MZ7O_cjs.ConnectedConversationDocumentPicker; }
|
|
45433
45383
|
});
|
|
45434
45384
|
Object.defineProperty(exports, "ConnectedDangerZone", {
|
|
45435
45385
|
enumerable: true,
|
|
45436
|
-
get: function () { return
|
|
45386
|
+
get: function () { return chunkPTT5MZ7O_cjs.ConnectedDangerZone; }
|
|
45437
45387
|
});
|
|
45438
45388
|
Object.defineProperty(exports, "ConnectedEmbeddedChat", {
|
|
45439
45389
|
enumerable: true,
|
|
45440
|
-
get: function () { return
|
|
45390
|
+
get: function () { return chunkPTT5MZ7O_cjs.ConnectedEmbeddedChat; }
|
|
45441
45391
|
});
|
|
45442
45392
|
Object.defineProperty(exports, "ConnectedForgotPassword", {
|
|
45443
45393
|
enumerable: true,
|
|
45444
|
-
get: function () { return
|
|
45394
|
+
get: function () { return chunkPTT5MZ7O_cjs.ConnectedForgotPassword; }
|
|
45445
45395
|
});
|
|
45446
45396
|
Object.defineProperty(exports, "ConnectedIdentityVerification", {
|
|
45447
45397
|
enumerable: true,
|
|
45448
|
-
get: function () { return
|
|
45398
|
+
get: function () { return chunkPTT5MZ7O_cjs.ConnectedIdentityVerification; }
|
|
45449
45399
|
});
|
|
45450
45400
|
Object.defineProperty(exports, "ConnectedLoginPage", {
|
|
45451
45401
|
enumerable: true,
|
|
45452
|
-
get: function () { return
|
|
45402
|
+
get: function () { return chunkPTT5MZ7O_cjs.ConnectedLoginPage; }
|
|
45453
45403
|
});
|
|
45454
45404
|
Object.defineProperty(exports, "ConnectedLogoutDialog", {
|
|
45455
45405
|
enumerable: true,
|
|
45456
|
-
get: function () { return
|
|
45406
|
+
get: function () { return chunkPTT5MZ7O_cjs.ConnectedLogoutDialog; }
|
|
45457
45407
|
});
|
|
45458
45408
|
Object.defineProperty(exports, "ConnectedMessage", {
|
|
45459
45409
|
enumerable: true,
|
|
45460
|
-
get: function () { return
|
|
45410
|
+
get: function () { return chunkPTT5MZ7O_cjs.ConnectedMessage; }
|
|
45461
45411
|
});
|
|
45462
45412
|
Object.defineProperty(exports, "ConnectedMessageArea", {
|
|
45463
45413
|
enumerable: true,
|
|
45464
|
-
get: function () { return
|
|
45414
|
+
get: function () { return chunkPTT5MZ7O_cjs.ConnectedMessageArea; }
|
|
45465
45415
|
});
|
|
45466
45416
|
Object.defineProperty(exports, "ConnectedMessageList", {
|
|
45467
45417
|
enumerable: true,
|
|
45468
|
-
get: function () { return
|
|
45418
|
+
get: function () { return chunkPTT5MZ7O_cjs.ConnectedMessageList; }
|
|
45469
45419
|
});
|
|
45470
45420
|
Object.defineProperty(exports, "ConnectedModelSelector", {
|
|
45471
45421
|
enumerable: true,
|
|
45472
|
-
get: function () { return
|
|
45422
|
+
get: function () { return chunkPTT5MZ7O_cjs.ConnectedModelSelector; }
|
|
45473
45423
|
});
|
|
45474
45424
|
Object.defineProperty(exports, "ConnectedNotificationPreferences", {
|
|
45475
45425
|
enumerable: true,
|
|
45476
|
-
get: function () { return
|
|
45426
|
+
get: function () { return chunkPTT5MZ7O_cjs.ConnectedNotificationPreferences; }
|
|
45477
45427
|
});
|
|
45478
45428
|
Object.defineProperty(exports, "ConnectedPasswordChangeDialog", {
|
|
45479
45429
|
enumerable: true,
|
|
45480
|
-
get: function () { return
|
|
45430
|
+
get: function () { return chunkPTT5MZ7O_cjs.ConnectedPasswordChangeDialog; }
|
|
45481
45431
|
});
|
|
45482
45432
|
Object.defineProperty(exports, "ConnectedProfileCard", {
|
|
45483
45433
|
enumerable: true,
|
|
45484
|
-
get: function () { return
|
|
45434
|
+
get: function () { return chunkPTT5MZ7O_cjs.ConnectedProfileCard; }
|
|
45485
45435
|
});
|
|
45486
45436
|
Object.defineProperty(exports, "ConnectedSecuritySection", {
|
|
45487
45437
|
enumerable: true,
|
|
45488
|
-
get: function () { return
|
|
45438
|
+
get: function () { return chunkPTT5MZ7O_cjs.ConnectedSecuritySection; }
|
|
45489
45439
|
});
|
|
45490
45440
|
Object.defineProperty(exports, "ConnectedSessionsRow", {
|
|
45491
45441
|
enumerable: true,
|
|
45492
|
-
get: function () { return
|
|
45442
|
+
get: function () { return chunkPTT5MZ7O_cjs.ConnectedSessionsRow; }
|
|
45493
45443
|
});
|
|
45494
45444
|
Object.defineProperty(exports, "ConnectedThreadsPreview", {
|
|
45495
45445
|
enumerable: true,
|
|
45496
|
-
get: function () { return
|
|
45446
|
+
get: function () { return chunkPTT5MZ7O_cjs.ConnectedThreadsPreview; }
|
|
45497
45447
|
});
|
|
45498
45448
|
Object.defineProperty(exports, "ConversationComposer", {
|
|
45499
45449
|
enumerable: true,
|
|
45500
|
-
get: function () { return
|
|
45450
|
+
get: function () { return chunkPTT5MZ7O_cjs.ConversationComposer; }
|
|
45501
45451
|
});
|
|
45502
45452
|
Object.defineProperty(exports, "EmbeddedChatPanel", {
|
|
45503
45453
|
enumerable: true,
|
|
45504
|
-
get: function () { return
|
|
45454
|
+
get: function () { return chunkPTT5MZ7O_cjs.EmbeddedChatPanel; }
|
|
45505
45455
|
});
|
|
45506
45456
|
Object.defineProperty(exports, "MessageDetailsModal", {
|
|
45507
45457
|
enumerable: true,
|
|
45508
|
-
get: function () { return
|
|
45458
|
+
get: function () { return chunkPTT5MZ7O_cjs.MessageDetailsModal; }
|
|
45509
45459
|
});
|
|
45510
45460
|
Object.defineProperty(exports, "MessageLiveSeconds", {
|
|
45511
45461
|
enumerable: true,
|
|
45512
|
-
get: function () { return
|
|
45462
|
+
get: function () { return chunkPTT5MZ7O_cjs.MessageLiveSeconds; }
|
|
45513
45463
|
});
|
|
45514
45464
|
Object.defineProperty(exports, "PENDING_RECOVERY_KEY", {
|
|
45515
45465
|
enumerable: true,
|
|
45516
|
-
get: function () { return
|
|
45466
|
+
get: function () { return chunkPTT5MZ7O_cjs.PENDING_RECOVERY_KEY; }
|
|
45517
45467
|
});
|
|
45518
45468
|
Object.defineProperty(exports, "PREMIUM_TIER_TAG", {
|
|
45519
45469
|
enumerable: true,
|
|
45520
|
-
get: function () { return
|
|
45470
|
+
get: function () { return chunkPTT5MZ7O_cjs.PREMIUM_TIER_TAG; }
|
|
45521
45471
|
});
|
|
45522
45472
|
Object.defineProperty(exports, "RunningSubagents", {
|
|
45523
45473
|
enumerable: true,
|
|
45524
|
-
get: function () { return
|
|
45474
|
+
get: function () { return chunkPTT5MZ7O_cjs.RunningSubagents; }
|
|
45525
45475
|
});
|
|
45526
45476
|
Object.defineProperty(exports, "STANDARD_TIER_TAG", {
|
|
45527
45477
|
enumerable: true,
|
|
45528
|
-
get: function () { return
|
|
45478
|
+
get: function () { return chunkPTT5MZ7O_cjs.STANDARD_TIER_TAG; }
|
|
45529
45479
|
});
|
|
45530
45480
|
Object.defineProperty(exports, "WorkflowStepMessage", {
|
|
45531
45481
|
enumerable: true,
|
|
45532
|
-
get: function () { return
|
|
45482
|
+
get: function () { return chunkPTT5MZ7O_cjs.WorkflowStepMessage; }
|
|
45533
45483
|
});
|
|
45534
45484
|
Object.defineProperty(exports, "backUpOnSignup", {
|
|
45535
45485
|
enumerable: true,
|
|
45536
|
-
get: function () { return
|
|
45486
|
+
get: function () { return chunkPTT5MZ7O_cjs.backUpOnSignup; }
|
|
45537
45487
|
});
|
|
45538
45488
|
Object.defineProperty(exports, "createRemoteControl", {
|
|
45539
45489
|
enumerable: true,
|
|
45540
|
-
get: function () { return
|
|
45490
|
+
get: function () { return chunkPTT5MZ7O_cjs.createRemoteControl; }
|
|
45541
45491
|
});
|
|
45542
45492
|
Object.defineProperty(exports, "defaultHost", {
|
|
45543
45493
|
enumerable: true,
|
|
45544
|
-
get: function () { return
|
|
45494
|
+
get: function () { return chunkPTT5MZ7O_cjs.defaultHost; }
|
|
45545
45495
|
});
|
|
45546
45496
|
Object.defineProperty(exports, "renderConnectedUser", {
|
|
45547
45497
|
enumerable: true,
|
|
45548
|
-
get: function () { return
|
|
45498
|
+
get: function () { return chunkPTT5MZ7O_cjs.renderConnectedUser; }
|
|
45549
45499
|
});
|
|
45550
45500
|
Object.defineProperty(exports, "renderSessionStatusIcon", {
|
|
45551
45501
|
enumerable: true,
|
|
45552
|
-
get: function () { return
|
|
45502
|
+
get: function () { return chunkPTT5MZ7O_cjs.renderSessionStatusIcon; }
|
|
45553
45503
|
});
|
|
45554
45504
|
Object.defineProperty(exports, "resolveSsoName", {
|
|
45555
45505
|
enumerable: true,
|
|
45556
|
-
get: function () { return
|
|
45506
|
+
get: function () { return chunkPTT5MZ7O_cjs.resolveSsoName; }
|
|
45557
45507
|
});
|
|
45558
45508
|
Object.defineProperty(exports, "useAuthPages", {
|
|
45559
45509
|
enumerable: true,
|
|
45560
|
-
get: function () { return
|
|
45510
|
+
get: function () { return chunkPTT5MZ7O_cjs.useAuthPages; }
|
|
45561
45511
|
});
|
|
45562
45512
|
Object.defineProperty(exports, "useContextualHints", {
|
|
45563
45513
|
enumerable: true,
|
|
45564
|
-
get: function () { return
|
|
45514
|
+
get: function () { return chunkPTT5MZ7O_cjs.useContextualHints; }
|
|
45565
45515
|
});
|
|
45566
45516
|
Object.defineProperty(exports, "useModelPicker", {
|
|
45567
45517
|
enumerable: true,
|
|
45568
|
-
get: function () { return
|
|
45518
|
+
get: function () { return chunkPTT5MZ7O_cjs.useModelPicker; }
|
|
45569
45519
|
});
|
|
45570
45520
|
Object.defineProperty(exports, "useOpenChunk", {
|
|
45571
45521
|
enumerable: true,
|
|
45572
|
-
get: function () { return
|
|
45522
|
+
get: function () { return chunkPTT5MZ7O_cjs.useOpenChunk; }
|
|
45573
45523
|
});
|
|
45574
45524
|
Object.defineProperty(exports, "useOpenWorkspaceIcon", {
|
|
45575
45525
|
enumerable: true,
|
|
45576
|
-
get: function () { return
|
|
45526
|
+
get: function () { return chunkPTT5MZ7O_cjs.useOpenWorkspaceIcon; }
|
|
45577
45527
|
});
|
|
45578
45528
|
Object.defineProperty(exports, "useRemoteControlActions", {
|
|
45579
45529
|
enumerable: true,
|
|
45580
|
-
get: function () { return
|
|
45530
|
+
get: function () { return chunkPTT5MZ7O_cjs.useRemoteControlActions; }
|
|
45581
45531
|
});
|
|
45582
45532
|
Object.defineProperty(exports, "useRemoteControlHandlers", {
|
|
45583
45533
|
enumerable: true,
|
|
45584
|
-
get: function () { return
|
|
45534
|
+
get: function () { return chunkPTT5MZ7O_cjs.useRemoteControlHandlers; }
|
|
45585
45535
|
});
|
|
45586
45536
|
Object.defineProperty(exports, "useSsoSignIn", {
|
|
45587
45537
|
enumerable: true,
|
|
45588
|
-
get: function () { return
|
|
45538
|
+
get: function () { return chunkPTT5MZ7O_cjs.useSsoSignIn; }
|
|
45589
45539
|
});
|
|
45590
45540
|
Object.defineProperty(exports, "useWorkspaceDocTitles", {
|
|
45591
45541
|
enumerable: true,
|
|
45592
|
-
get: function () { return
|
|
45542
|
+
get: function () { return chunkPTT5MZ7O_cjs.useWorkspaceDocTitles; }
|
|
45593
45543
|
});
|
|
45594
45544
|
Object.defineProperty(exports, "parseTypedSkill", {
|
|
45595
45545
|
enumerable: true,
|
|
@@ -45609,11 +45559,11 @@ Object.defineProperty(exports, "useSlashSkillWorkflows", {
|
|
|
45609
45559
|
});
|
|
45610
45560
|
Object.defineProperty(exports, "useConnectedThreadActivity", {
|
|
45611
45561
|
enumerable: true,
|
|
45612
|
-
get: function () { return
|
|
45562
|
+
get: function () { return chunkFNBUFKHE_cjs.useConnectedThreadActivity; }
|
|
45613
45563
|
});
|
|
45614
45564
|
Object.defineProperty(exports, "DocumentUser", {
|
|
45615
45565
|
enumerable: true,
|
|
45616
|
-
get: function () { return
|
|
45566
|
+
get: function () { return chunkM24FBUAP_cjs.DocumentUser; }
|
|
45617
45567
|
});
|
|
45618
45568
|
Object.defineProperty(exports, "EMBEDDED_SELECTED_DOCS_KEY", {
|
|
45619
45569
|
enumerable: true,
|
|
@@ -45625,123 +45575,127 @@ Object.defineProperty(exports, "SELECTED_WORKSPACE_KEY", {
|
|
|
45625
45575
|
});
|
|
45626
45576
|
Object.defineProperty(exports, "ConnectedAgendaBlock", {
|
|
45627
45577
|
enumerable: true,
|
|
45628
|
-
get: function () { return
|
|
45578
|
+
get: function () { return chunkYO7GDNEW_cjs.ConnectedAgendaBlock; }
|
|
45629
45579
|
});
|
|
45630
45580
|
Object.defineProperty(exports, "ConnectedCarouselBlock", {
|
|
45631
45581
|
enumerable: true,
|
|
45632
|
-
get: function () { return
|
|
45582
|
+
get: function () { return chunkYO7GDNEW_cjs.ConnectedCarouselBlock; }
|
|
45633
45583
|
});
|
|
45634
45584
|
Object.defineProperty(exports, "ConnectedEmailWorkspaceDialog", {
|
|
45635
45585
|
enumerable: true,
|
|
45636
|
-
get: function () { return
|
|
45586
|
+
get: function () { return chunkYO7GDNEW_cjs.ConnectedEmailWorkspaceDialog; }
|
|
45637
45587
|
});
|
|
45638
45588
|
Object.defineProperty(exports, "ConnectedListBlock", {
|
|
45639
45589
|
enumerable: true,
|
|
45640
|
-
get: function () { return
|
|
45590
|
+
get: function () { return chunkYO7GDNEW_cjs.ConnectedListBlock; }
|
|
45641
45591
|
});
|
|
45642
45592
|
Object.defineProperty(exports, "ConnectedNewFileMenu", {
|
|
45643
45593
|
enumerable: true,
|
|
45644
|
-
get: function () { return
|
|
45594
|
+
get: function () { return chunkYO7GDNEW_cjs.ConnectedNewFileMenu; }
|
|
45645
45595
|
});
|
|
45646
45596
|
Object.defineProperty(exports, "ConnectedNewThreadDialog", {
|
|
45647
45597
|
enumerable: true,
|
|
45648
|
-
get: function () { return
|
|
45598
|
+
get: function () { return chunkYO7GDNEW_cjs.ConnectedNewThreadDialog; }
|
|
45649
45599
|
});
|
|
45650
45600
|
Object.defineProperty(exports, "ConnectedStartBlock", {
|
|
45651
45601
|
enumerable: true,
|
|
45652
|
-
get: function () { return
|
|
45602
|
+
get: function () { return chunkYO7GDNEW_cjs.ConnectedStartBlock; }
|
|
45653
45603
|
});
|
|
45654
45604
|
Object.defineProperty(exports, "ConnectedUpcomingEvents", {
|
|
45655
45605
|
enumerable: true,
|
|
45656
|
-
get: function () { return
|
|
45606
|
+
get: function () { return chunkYO7GDNEW_cjs.ConnectedUpcomingEvents; }
|
|
45657
45607
|
});
|
|
45658
45608
|
Object.defineProperty(exports, "ConnectedWorkspaceEntity", {
|
|
45659
45609
|
enumerable: true,
|
|
45660
|
-
get: function () { return
|
|
45610
|
+
get: function () { return chunkYO7GDNEW_cjs.ConnectedWorkspaceEntity; }
|
|
45661
45611
|
});
|
|
45662
45612
|
Object.defineProperty(exports, "DocumentsUploadButton", {
|
|
45663
45613
|
enumerable: true,
|
|
45664
|
-
get: function () { return
|
|
45614
|
+
get: function () { return chunkYO7GDNEW_cjs.DocumentsUploadButton; }
|
|
45665
45615
|
});
|
|
45666
45616
|
Object.defineProperty(exports, "LOOK_AGAIN_LABEL", {
|
|
45667
45617
|
enumerable: true,
|
|
45668
|
-
get: function () { return
|
|
45618
|
+
get: function () { return chunkYO7GDNEW_cjs.LOOK_AGAIN_LABEL; }
|
|
45669
45619
|
});
|
|
45670
45620
|
Object.defineProperty(exports, "PENDING_LOOKUP_MS", {
|
|
45671
45621
|
enumerable: true,
|
|
45672
|
-
get: function () { return
|
|
45622
|
+
get: function () { return chunkYO7GDNEW_cjs.PENDING_LOOKUP_MS; }
|
|
45673
45623
|
});
|
|
45674
45624
|
Object.defineProperty(exports, "PENDING_TASK_MESSAGE", {
|
|
45675
45625
|
enumerable: true,
|
|
45676
|
-
get: function () { return
|
|
45626
|
+
get: function () { return chunkYO7GDNEW_cjs.PENDING_TASK_MESSAGE; }
|
|
45677
45627
|
});
|
|
45678
45628
|
Object.defineProperty(exports, "WORKSPACE_DASHBOARD_BLOCKS", {
|
|
45679
45629
|
enumerable: true,
|
|
45680
|
-
get: function () { return
|
|
45630
|
+
get: function () { return chunkYO7GDNEW_cjs.WORKSPACE_DASHBOARD_BLOCKS; }
|
|
45681
45631
|
});
|
|
45682
45632
|
Object.defineProperty(exports, "WORKSPACE_DASHBOARD_LAYOUT", {
|
|
45683
45633
|
enumerable: true,
|
|
45684
|
-
get: function () { return
|
|
45634
|
+
get: function () { return chunkYO7GDNEW_cjs.WORKSPACE_DASHBOARD_LAYOUT; }
|
|
45685
45635
|
});
|
|
45686
45636
|
Object.defineProperty(exports, "WORKSPACE_DASHBOARD_PAGE", {
|
|
45687
45637
|
enumerable: true,
|
|
45688
|
-
get: function () { return
|
|
45638
|
+
get: function () { return chunkYO7GDNEW_cjs.WORKSPACE_DASHBOARD_PAGE; }
|
|
45689
45639
|
});
|
|
45690
45640
|
Object.defineProperty(exports, "createEventCall", {
|
|
45691
45641
|
enumerable: true,
|
|
45692
|
-
get: function () { return
|
|
45642
|
+
get: function () { return chunkYO7GDNEW_cjs.createEventCall; }
|
|
45693
45643
|
});
|
|
45694
45644
|
Object.defineProperty(exports, "distinctPeers", {
|
|
45695
45645
|
enumerable: true,
|
|
45696
|
-
get: function () { return
|
|
45646
|
+
get: function () { return chunkYO7GDNEW_cjs.distinctPeers; }
|
|
45697
45647
|
});
|
|
45698
45648
|
Object.defineProperty(exports, "joinEventMeeting", {
|
|
45699
45649
|
enumerable: true,
|
|
45700
|
-
get: function () { return
|
|
45650
|
+
get: function () { return chunkYO7GDNEW_cjs.joinEventMeeting; }
|
|
45701
45651
|
});
|
|
45702
45652
|
Object.defineProperty(exports, "loadEventWebinar", {
|
|
45703
45653
|
enumerable: true,
|
|
45704
|
-
get: function () { return
|
|
45654
|
+
get: function () { return chunkYO7GDNEW_cjs.loadEventWebinar; }
|
|
45705
45655
|
});
|
|
45706
45656
|
Object.defineProperty(exports, "parseArbiCallUrl", {
|
|
45707
45657
|
enumerable: true,
|
|
45708
|
-
get: function () { return
|
|
45658
|
+
get: function () { return chunkYO7GDNEW_cjs.parseArbiCallUrl; }
|
|
45709
45659
|
});
|
|
45710
45660
|
Object.defineProperty(exports, "resolveAttendeeUsers", {
|
|
45711
45661
|
enumerable: true,
|
|
45712
|
-
get: function () { return
|
|
45662
|
+
get: function () { return chunkYO7GDNEW_cjs.resolveAttendeeUsers; }
|
|
45713
45663
|
});
|
|
45714
45664
|
Object.defineProperty(exports, "resolveAttendeeUsersRemote", {
|
|
45715
45665
|
enumerable: true,
|
|
45716
|
-
get: function () { return
|
|
45666
|
+
get: function () { return chunkYO7GDNEW_cjs.resolveAttendeeUsersRemote; }
|
|
45717
45667
|
});
|
|
45718
45668
|
Object.defineProperty(exports, "resolveCallPeers", {
|
|
45719
45669
|
enumerable: true,
|
|
45720
|
-
get: function () { return
|
|
45670
|
+
get: function () { return chunkYO7GDNEW_cjs.resolveCallPeers; }
|
|
45721
45671
|
});
|
|
45722
45672
|
Object.defineProperty(exports, "resolveCallPeersRemote", {
|
|
45723
45673
|
enumerable: true,
|
|
45724
|
-
get: function () { return
|
|
45674
|
+
get: function () { return chunkYO7GDNEW_cjs.resolveCallPeersRemote; }
|
|
45725
45675
|
});
|
|
45726
45676
|
Object.defineProperty(exports, "shareEventCall", {
|
|
45727
45677
|
enumerable: true,
|
|
45728
|
-
get: function () { return
|
|
45678
|
+
get: function () { return chunkYO7GDNEW_cjs.shareEventCall; }
|
|
45729
45679
|
});
|
|
45730
45680
|
Object.defineProperty(exports, "updateEventWebinarRoles", {
|
|
45731
45681
|
enumerable: true,
|
|
45732
|
-
get: function () { return
|
|
45682
|
+
get: function () { return chunkYO7GDNEW_cjs.updateEventWebinarRoles; }
|
|
45733
45683
|
});
|
|
45734
45684
|
Object.defineProperty(exports, "useAddFromUrls", {
|
|
45735
45685
|
enumerable: true,
|
|
45736
|
-
get: function () { return
|
|
45686
|
+
get: function () { return chunkYO7GDNEW_cjs.useAddFromUrls; }
|
|
45687
|
+
});
|
|
45688
|
+
Object.defineProperty(exports, "useExportStore", {
|
|
45689
|
+
enumerable: true,
|
|
45690
|
+
get: function () { return chunkYO7GDNEW_cjs.useExportStore; }
|
|
45737
45691
|
});
|
|
45738
45692
|
Object.defineProperty(exports, "usePendingTaskThread", {
|
|
45739
45693
|
enumerable: true,
|
|
45740
|
-
get: function () { return
|
|
45694
|
+
get: function () { return chunkYO7GDNEW_cjs.usePendingTaskThread; }
|
|
45741
45695
|
});
|
|
45742
45696
|
Object.defineProperty(exports, "webinarRolesByUser", {
|
|
45743
45697
|
enumerable: true,
|
|
45744
|
-
get: function () { return
|
|
45698
|
+
get: function () { return chunkYO7GDNEW_cjs.webinarRolesByUser; }
|
|
45745
45699
|
});
|
|
45746
45700
|
Object.defineProperty(exports, "ConnectedWorkflowStart", {
|
|
45747
45701
|
enumerable: true,
|
|
@@ -45797,35 +45751,35 @@ Object.defineProperty(exports, "useViewerStreamingDocument", {
|
|
|
45797
45751
|
});
|
|
45798
45752
|
Object.defineProperty(exports, "FILES_PREFS_KEY", {
|
|
45799
45753
|
enumerable: true,
|
|
45800
|
-
get: function () { return
|
|
45754
|
+
get: function () { return chunkHGD4B7GO_cjs.FILES_PREFS_KEY; }
|
|
45801
45755
|
});
|
|
45802
45756
|
Object.defineProperty(exports, "filesViewMode", {
|
|
45803
45757
|
enumerable: true,
|
|
45804
|
-
get: function () { return
|
|
45758
|
+
get: function () { return chunkHGD4B7GO_cjs.filesViewMode; }
|
|
45805
45759
|
});
|
|
45806
45760
|
Object.defineProperty(exports, "useAiReviewStore", {
|
|
45807
45761
|
enumerable: true,
|
|
45808
|
-
get: function () { return
|
|
45762
|
+
get: function () { return chunkHGD4B7GO_cjs.useAiReviewStore; }
|
|
45809
45763
|
});
|
|
45810
45764
|
Object.defineProperty(exports, "useFilesDialogs", {
|
|
45811
45765
|
enumerable: true,
|
|
45812
|
-
get: function () { return
|
|
45766
|
+
get: function () { return chunkHGD4B7GO_cjs.useFilesDialogs; }
|
|
45813
45767
|
});
|
|
45814
45768
|
Object.defineProperty(exports, "useFilesGridStates", {
|
|
45815
45769
|
enumerable: true,
|
|
45816
|
-
get: function () { return
|
|
45770
|
+
get: function () { return chunkHGD4B7GO_cjs.useFilesGridStates; }
|
|
45817
45771
|
});
|
|
45818
45772
|
Object.defineProperty(exports, "useFilesPrefs", {
|
|
45819
45773
|
enumerable: true,
|
|
45820
|
-
get: function () { return
|
|
45774
|
+
get: function () { return chunkHGD4B7GO_cjs.useFilesPrefs; }
|
|
45821
45775
|
});
|
|
45822
45776
|
Object.defineProperty(exports, "useFilesStore", {
|
|
45823
45777
|
enumerable: true,
|
|
45824
|
-
get: function () { return
|
|
45778
|
+
get: function () { return chunkHGD4B7GO_cjs.useFilesStore; }
|
|
45825
45779
|
});
|
|
45826
45780
|
Object.defineProperty(exports, "usePendingFolders", {
|
|
45827
45781
|
enumerable: true,
|
|
45828
|
-
get: function () { return
|
|
45782
|
+
get: function () { return chunkHGD4B7GO_cjs.usePendingFolders; }
|
|
45829
45783
|
});
|
|
45830
45784
|
Object.defineProperty(exports, "ConnectedMarkdown", {
|
|
45831
45785
|
enumerable: true,
|
|
@@ -45857,67 +45811,67 @@ Object.defineProperty(exports, "useDocumentWorkspace", {
|
|
|
45857
45811
|
});
|
|
45858
45812
|
Object.defineProperty(exports, "ConnectedPendingSyncDialog", {
|
|
45859
45813
|
enumerable: true,
|
|
45860
|
-
get: function () { return
|
|
45814
|
+
get: function () { return chunkBNHFDXJI_cjs.ConnectedPendingSyncDialog; }
|
|
45861
45815
|
});
|
|
45862
45816
|
Object.defineProperty(exports, "DocumentFolderCell", {
|
|
45863
45817
|
enumerable: true,
|
|
45864
|
-
get: function () { return
|
|
45818
|
+
get: function () { return chunkBNHFDXJI_cjs.DocumentFolderCell; }
|
|
45865
45819
|
});
|
|
45866
45820
|
Object.defineProperty(exports, "DocumentLabelsCell", {
|
|
45867
45821
|
enumerable: true,
|
|
45868
|
-
get: function () { return
|
|
45822
|
+
get: function () { return chunkBNHFDXJI_cjs.DocumentLabelsCell; }
|
|
45869
45823
|
});
|
|
45870
45824
|
Object.defineProperty(exports, "DocumentNameCell", {
|
|
45871
45825
|
enumerable: true,
|
|
45872
|
-
get: function () { return
|
|
45826
|
+
get: function () { return chunkBNHFDXJI_cjs.DocumentNameCell; }
|
|
45873
45827
|
});
|
|
45874
45828
|
Object.defineProperty(exports, "DocumentSharedCell", {
|
|
45875
45829
|
enumerable: true,
|
|
45876
|
-
get: function () { return
|
|
45830
|
+
get: function () { return chunkBNHFDXJI_cjs.DocumentSharedCell; }
|
|
45877
45831
|
});
|
|
45878
45832
|
Object.defineProperty(exports, "DocumentStatusGlyph", {
|
|
45879
45833
|
enumerable: true,
|
|
45880
|
-
get: function () { return
|
|
45834
|
+
get: function () { return chunkBNHFDXJI_cjs.DocumentStatusGlyph; }
|
|
45881
45835
|
});
|
|
45882
45836
|
Object.defineProperty(exports, "DocumentSyncGlyph", {
|
|
45883
45837
|
enumerable: true,
|
|
45884
|
-
get: function () { return
|
|
45838
|
+
get: function () { return chunkBNHFDXJI_cjs.DocumentSyncGlyph; }
|
|
45885
45839
|
});
|
|
45886
45840
|
Object.defineProperty(exports, "FileTooltipContent", {
|
|
45887
45841
|
enumerable: true,
|
|
45888
|
-
get: function () { return
|
|
45842
|
+
get: function () { return chunkBNHFDXJI_cjs.FileTooltipContent; }
|
|
45889
45843
|
});
|
|
45890
45844
|
Object.defineProperty(exports, "RelatedDocumentsCell", {
|
|
45891
45845
|
enumerable: true,
|
|
45892
|
-
get: function () { return
|
|
45846
|
+
get: function () { return chunkBNHFDXJI_cjs.RelatedDocumentsCell; }
|
|
45893
45847
|
});
|
|
45894
45848
|
Object.defineProperty(exports, "StatusCell", {
|
|
45895
45849
|
enumerable: true,
|
|
45896
|
-
get: function () { return
|
|
45850
|
+
get: function () { return chunkBNHFDXJI_cjs.StatusCell; }
|
|
45897
45851
|
});
|
|
45898
45852
|
Object.defineProperty(exports, "UserAvatar", {
|
|
45899
45853
|
enumerable: true,
|
|
45900
|
-
get: function () { return
|
|
45854
|
+
get: function () { return chunkBNHFDXJI_cjs.UserAvatar; }
|
|
45901
45855
|
});
|
|
45902
45856
|
Object.defineProperty(exports, "isActiveDocumentStatus", {
|
|
45903
45857
|
enumerable: true,
|
|
45904
|
-
get: function () { return
|
|
45858
|
+
get: function () { return chunkBNHFDXJI_cjs.isActiveDocumentStatus; }
|
|
45905
45859
|
});
|
|
45906
45860
|
Object.defineProperty(exports, "openPendingSyncDialog", {
|
|
45907
45861
|
enumerable: true,
|
|
45908
|
-
get: function () { return
|
|
45862
|
+
get: function () { return chunkBNHFDXJI_cjs.openPendingSyncDialog; }
|
|
45909
45863
|
});
|
|
45910
45864
|
Object.defineProperty(exports, "parseQuotaError", {
|
|
45911
45865
|
enumerable: true,
|
|
45912
|
-
get: function () { return
|
|
45866
|
+
get: function () { return chunkBNHFDXJI_cjs.parseQuotaError; }
|
|
45913
45867
|
});
|
|
45914
45868
|
Object.defineProperty(exports, "startMenuItem", {
|
|
45915
45869
|
enumerable: true,
|
|
45916
|
-
get: function () { return
|
|
45870
|
+
get: function () { return chunkBNHFDXJI_cjs.startMenuItem; }
|
|
45917
45871
|
});
|
|
45918
45872
|
Object.defineProperty(exports, "useDocumentFolders", {
|
|
45919
45873
|
enumerable: true,
|
|
45920
|
-
get: function () { return
|
|
45874
|
+
get: function () { return chunkBNHFDXJI_cjs.useDocumentFolders; }
|
|
45921
45875
|
});
|
|
45922
45876
|
Object.defineProperty(exports, "ConnectedDocumentToolsProvider", {
|
|
45923
45877
|
enumerable: true,
|
|
@@ -45925,23 +45879,23 @@ Object.defineProperty(exports, "ConnectedDocumentToolsProvider", {
|
|
|
45925
45879
|
});
|
|
45926
45880
|
Object.defineProperty(exports, "ConnectedWorkflowsTable", {
|
|
45927
45881
|
enumerable: true,
|
|
45928
|
-
get: function () { return
|
|
45882
|
+
get: function () { return chunkK7GBHLLY_cjs.ConnectedWorkflowsTable; }
|
|
45929
45883
|
});
|
|
45930
45884
|
Object.defineProperty(exports, "DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS", {
|
|
45931
45885
|
enumerable: true,
|
|
45932
|
-
get: function () { return
|
|
45886
|
+
get: function () { return chunkK7GBHLLY_cjs.DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS; }
|
|
45933
45887
|
});
|
|
45934
45888
|
Object.defineProperty(exports, "useConnectedWorkspaceRole", {
|
|
45935
45889
|
enumerable: true,
|
|
45936
|
-
get: function () { return
|
|
45890
|
+
get: function () { return chunkK7GBHLLY_cjs.useConnectedWorkspaceRole; }
|
|
45937
45891
|
});
|
|
45938
45892
|
Object.defineProperty(exports, "useDocxCommentTarget", {
|
|
45939
45893
|
enumerable: true,
|
|
45940
|
-
get: function () { return
|
|
45894
|
+
get: function () { return chunkK7GBHLLY_cjs.useDocxCommentTarget; }
|
|
45941
45895
|
});
|
|
45942
45896
|
Object.defineProperty(exports, "useNativeDocxSupport", {
|
|
45943
45897
|
enumerable: true,
|
|
45944
|
-
get: function () { return
|
|
45898
|
+
get: function () { return chunkK7GBHLLY_cjs.useNativeDocxSupport; }
|
|
45945
45899
|
});
|
|
45946
45900
|
Object.defineProperty(exports, "useOpenWorkflow", {
|
|
45947
45901
|
enumerable: true,
|
|
@@ -46369,7 +46323,6 @@ exports.useDocumentFilters = useDocumentFilters;
|
|
|
46369
46323
|
exports.useDocumentGridSync = useDocumentGridSync;
|
|
46370
46324
|
exports.useDocumentNavigation = useDocumentNavigation;
|
|
46371
46325
|
exports.useDocumentTable = useDocumentTable;
|
|
46372
|
-
exports.useExportStore = useExportStore;
|
|
46373
46326
|
exports.useGettingStarted = useGettingStarted;
|
|
46374
46327
|
exports.useHasAccountsImport = useHasAccountsImport;
|
|
46375
46328
|
exports.useInstallSkillPackOnSignIn = useInstallSkillPackOnSignIn;
|