@arbidocs/blocks 0.5.190 → 0.5.192
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/bin/arbidocs-mix-take.mjs +34 -0
- package/bin/arbidocs-record-take.mjs +77 -11
- package/bin/arbidocs-voice-take.mjs +32 -0
- package/dist/{ConnectedNativeDocxComparison-XE5NMZMY.cjs → ConnectedNativeDocxComparison-PPVXDQY3.cjs} +7 -7
- package/dist/{ConnectedNativeDocxComparison-XE5NMZMY.cjs.map → ConnectedNativeDocxComparison-PPVXDQY3.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-EY3YWYDD.cjs → ConnectedStreamedWordArtifact-GAACBGTY.cjs} +7 -7
- package/dist/{ConnectedStreamedWordArtifact-EY3YWYDD.cjs.map → ConnectedStreamedWordArtifact-GAACBGTY.cjs.map} +1 -1
- package/dist/{DocumentReviewCard-RFE4THHR.cjs → DocumentReviewCard-Q3NKJLSM.cjs} +14 -14
- package/dist/{DocumentReviewCard-RFE4THHR.cjs.map → DocumentReviewCard-Q3NKJLSM.cjs.map} +1 -1
- package/dist/{FilesViewerDialog-VO247UEI.cjs → FilesViewerDialog-4JWDTDO7.cjs} +11 -11
- package/dist/{FilesViewerDialog-VO247UEI.cjs.map → FilesViewerDialog-4JWDTDO7.cjs.map} +1 -1
- package/dist/agents/index.cjs +172 -172
- package/dist/{chunk-PGKCL6YA.cjs → chunk-33236Q7Y.cjs} +8 -8
- package/dist/{chunk-PGKCL6YA.cjs.map → chunk-33236Q7Y.cjs.map} +1 -1
- package/dist/{chunk-E7BSG5IS.cjs → chunk-633ZCYVN.cjs} +37 -37
- package/dist/{chunk-E7BSG5IS.cjs.map → chunk-633ZCYVN.cjs.map} +1 -1
- package/dist/{chunk-U4MJIYGD.cjs → chunk-65NQW4RR.cjs} +4 -4
- package/dist/{chunk-U4MJIYGD.cjs.map → chunk-65NQW4RR.cjs.map} +1 -1
- package/dist/{chunk-JAKLLNLL.cjs → chunk-AWQEN6WW.cjs} +9 -7
- package/dist/chunk-AWQEN6WW.cjs.map +1 -0
- package/dist/{chunk-GENUGV6V.cjs → chunk-AZUPMHZI.cjs} +4 -4
- package/dist/{chunk-GENUGV6V.cjs.map → chunk-AZUPMHZI.cjs.map} +1 -1
- package/dist/{chunk-72O4YH5M.cjs → chunk-EAH7LFJN.cjs} +5 -5
- package/dist/{chunk-72O4YH5M.cjs.map → chunk-EAH7LFJN.cjs.map} +1 -1
- package/dist/{chunk-UNT2VY3B.cjs → chunk-EFV52SZ6.cjs} +4 -4
- package/dist/{chunk-UNT2VY3B.cjs.map → chunk-EFV52SZ6.cjs.map} +1 -1
- package/dist/{chunk-IXSOSISW.cjs → chunk-ELN3YOXF.cjs} +28 -28
- package/dist/{chunk-IXSOSISW.cjs.map → chunk-ELN3YOXF.cjs.map} +1 -1
- package/dist/{chunk-NAEBNQTO.cjs → chunk-GLNL5AL5.cjs} +29 -29
- package/dist/{chunk-NAEBNQTO.cjs.map → chunk-GLNL5AL5.cjs.map} +1 -1
- package/dist/{chunk-HTH3XIFF.cjs → chunk-GZPNBSRE.cjs} +8 -8
- package/dist/{chunk-HTH3XIFF.cjs.map → chunk-GZPNBSRE.cjs.map} +1 -1
- package/dist/chunk-HME72RFP.cjs +145 -0
- package/dist/chunk-HME72RFP.cjs.map +1 -0
- package/dist/{chunk-GW5LTX66.cjs → chunk-J46Y2L26.cjs} +4 -4
- package/dist/{chunk-GW5LTX66.cjs.map → chunk-J46Y2L26.cjs.map} +1 -1
- package/dist/{chunk-LHWFSXM5.cjs → chunk-KD37PODE.cjs} +3 -3
- package/dist/{chunk-LHWFSXM5.cjs.map → chunk-KD37PODE.cjs.map} +1 -1
- package/dist/{chunk-VCCAG4GQ.cjs → chunk-KZH6HMJL.cjs} +4 -4
- package/dist/{chunk-VCCAG4GQ.cjs.map → chunk-KZH6HMJL.cjs.map} +1 -1
- package/dist/{chunk-AQYCL2IJ.cjs → chunk-QDIIOZBP.cjs} +5 -5
- package/dist/{chunk-AQYCL2IJ.cjs.map → chunk-QDIIOZBP.cjs.map} +1 -1
- package/dist/{chunk-USYCBTKK.cjs → chunk-R6HGMPF4.cjs} +41 -7
- package/dist/chunk-R6HGMPF4.cjs.map +1 -0
- package/dist/{chunk-QSVYI72E.cjs → chunk-RNQ3MDTR.cjs} +4 -4
- package/dist/{chunk-QSVYI72E.cjs.map → chunk-RNQ3MDTR.cjs.map} +1 -1
- package/dist/{chunk-HZ35LMO3.cjs → chunk-VJHDCYKE.cjs} +4 -4
- package/dist/{chunk-HZ35LMO3.cjs.map → chunk-VJHDCYKE.cjs.map} +1 -1
- package/dist/{chunk-3GWYFQSI.cjs → chunk-Z6M2CI63.cjs} +84 -79
- package/dist/chunk-Z6M2CI63.cjs.map +1 -0
- package/dist/collaboration/index.cjs +3 -3
- package/dist/collaboration/sharing/ShareControl.d.ts +10 -1
- package/dist/collaboration/sharing/ShareControl.js +64 -4
- package/dist/collaboration/sharing/ShareControl.js.map +2 -2
- package/dist/components/GridRowNavigator.d.ts +8 -1
- package/dist/components/GridRowNavigator.js +4 -2
- package/dist/components/GridRowNavigator.js.map +2 -2
- package/dist/connect/docx.cjs +10 -10
- package/dist/connect/index.cjs +816 -767
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/viewer.cjs +9 -9
- package/dist/connection/billing/ProjectDetail.d.ts +5 -1
- package/dist/connection/billing/ProjectDetail.js +82 -69
- package/dist/connection/billing/ProjectDetail.js.map +2 -2
- package/dist/connection/databases/ConnectedDatabasesPage.d.ts +7 -1
- package/dist/connection/databases/ConnectedDatabasesPage.js +18 -9
- package/dist/connection/databases/ConnectedDatabasesPage.js.map +2 -2
- package/dist/connection/databases/DatabaseWorkbench.d.ts +6 -1
- package/dist/connection/databases/DatabaseWorkbench.js +20 -15
- package/dist/connection/databases/DatabaseWorkbench.js.map +2 -2
- package/dist/connection/facts/factsSource.d.ts +2 -0
- package/dist/connection/facts/factsSource.js +10 -3
- package/dist/connection/facts/factsSource.js.map +2 -2
- package/dist/connection/files/page/ConnectedFilesPage.js +2 -1
- package/dist/connection/files/page/ConnectedFilesPage.js.map +2 -2
- package/dist/connection/projects/ConnectedProjectPage.d.ts +8 -1
- package/dist/connection/projects/ConnectedProjectPage.js +15 -1
- package/dist/connection/projects/ConnectedProjectPage.js.map +2 -2
- package/dist/connection/viewer/ConnectedDocumentViewer.d.ts +7 -0
- package/dist/connection/viewer/ConnectedDocumentViewer.js +28 -23
- package/dist/connection/viewer/ConnectedDocumentViewer.js.map +2 -2
- package/dist/databases/DatabaseFilterMenu.d.ts +6 -1
- package/dist/databases/DatabaseFilterMenu.js +13 -4
- package/dist/databases/DatabaseFilterMenu.js.map +2 -2
- package/dist/databases/DatabaseToolbar.d.ts +11 -1
- package/dist/databases/DatabaseToolbar.js +26 -1
- package/dist/databases/DatabaseToolbar.js.map +2 -2
- package/dist/databases/index.cjs +70 -69
- package/dist/embed/index.cjs +13 -13
- package/dist/files/index.cjs +221 -221
- package/dist/index.cjs +242 -242
- package/dist/pages/index.cjs +21 -21
- package/dist/record/band.d.ts +95 -0
- package/dist/record/index.cjs +414 -13
- package/dist/record/index.cjs.map +1 -1
- package/dist/record/index.d.ts +35 -2
- package/dist/record/index.js +402 -15
- package/dist/record/index.js.map +1 -1
- package/dist/record/narration.d.ts +71 -0
- package/dist/shell/index.cjs +1 -1
- package/dist/styles.css +1 -1
- package/dist/workflow-canvas/index.cjs +24 -24
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +11 -6
- package/record/SKILL.md +178 -26
- package/record/mix-take.py +320 -0
- package/record/recap-slide.mjs +118 -0
- package/record/voice-take.py +129 -0
- package/dist/chunk-3GWYFQSI.cjs.map +0 -1
- package/dist/chunk-JAKLLNLL.cjs.map +0 -1
- package/dist/chunk-USYCBTKK.cjs.map +0 -1
- package/dist/chunk-WCT6FT2K.cjs +0 -87
- package/dist/chunk-WCT6FT2K.cjs.map +0 -1
package/dist/connect/index.cjs
CHANGED
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
|
|
4
4
|
var chunkL3MYUPSH_cjs = require('../chunk-L3MYUPSH.cjs');
|
|
5
5
|
var chunkHHZDURXN_cjs = require('../chunk-HHZDURXN.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkELN3YOXF_cjs = require('../chunk-ELN3YOXF.cjs');
|
|
7
7
|
var chunkXKXKEVHH_cjs = require('../chunk-XKXKEVHH.cjs');
|
|
8
8
|
var chunkTAGA6LNP_cjs = require('../chunk-TAGA6LNP.cjs');
|
|
9
9
|
var chunk5GCCUXMT_cjs = require('../chunk-5GCCUXMT.cjs');
|
|
10
10
|
var chunkWHHBEV4G_cjs = require('../chunk-WHHBEV4G.cjs');
|
|
11
11
|
var chunkXYN3RP5W_cjs = require('../chunk-XYN3RP5W.cjs');
|
|
12
|
-
var
|
|
12
|
+
var chunkGZPNBSRE_cjs = require('../chunk-GZPNBSRE.cjs');
|
|
13
13
|
require('../chunk-DWRUGOTQ.cjs');
|
|
14
14
|
var chunk5RUY5THD_cjs = require('../chunk-5RUY5THD.cjs');
|
|
15
|
-
var
|
|
15
|
+
var chunkGLNL5AL5_cjs = require('../chunk-GLNL5AL5.cjs');
|
|
16
16
|
var chunk32W2S6DE_cjs = require('../chunk-32W2S6DE.cjs');
|
|
17
17
|
var chunk6OPDKROP_cjs = require('../chunk-6OPDKROP.cjs');
|
|
18
18
|
require('../chunk-KD66CBYO.cjs');
|
|
19
|
-
var
|
|
19
|
+
var chunk33236Q7Y_cjs = require('../chunk-33236Q7Y.cjs');
|
|
20
20
|
var chunk7GVKG3G4_cjs = require('../chunk-7GVKG3G4.cjs');
|
|
21
21
|
var chunkOHWYQI3B_cjs = require('../chunk-OHWYQI3B.cjs');
|
|
22
|
-
var
|
|
23
|
-
var
|
|
22
|
+
var chunk65NQW4RR_cjs = require('../chunk-65NQW4RR.cjs');
|
|
23
|
+
var chunkEFV52SZ6_cjs = require('../chunk-EFV52SZ6.cjs');
|
|
24
24
|
var chunkER2MRSLT_cjs = require('../chunk-ER2MRSLT.cjs');
|
|
25
25
|
var chunkVD3HI5RF_cjs = require('../chunk-VD3HI5RF.cjs');
|
|
26
26
|
var chunkCWECDS4I_cjs = require('../chunk-CWECDS4I.cjs');
|
|
@@ -37,19 +37,19 @@ 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
39
|
var chunkJ5CBCUQE_cjs = require('../chunk-J5CBCUQE.cjs');
|
|
40
|
-
var
|
|
40
|
+
var chunkAZUPMHZI_cjs = require('../chunk-AZUPMHZI.cjs');
|
|
41
41
|
var chunkD4SJT3NG_cjs = require('../chunk-D4SJT3NG.cjs');
|
|
42
42
|
require('../chunk-OUYBYZ7Y.cjs');
|
|
43
43
|
var chunkA7MGQMOV_cjs = require('../chunk-A7MGQMOV.cjs');
|
|
44
|
-
var
|
|
44
|
+
var chunk633ZCYVN_cjs = require('../chunk-633ZCYVN.cjs');
|
|
45
45
|
var chunkLYDSETR7_cjs = require('../chunk-LYDSETR7.cjs');
|
|
46
46
|
require('../chunk-WJIAA6G3.cjs');
|
|
47
47
|
require('../chunk-JWCVA4LC.cjs');
|
|
48
48
|
var chunkQQMMCXBP_cjs = require('../chunk-QQMMCXBP.cjs');
|
|
49
|
-
var
|
|
49
|
+
var chunkEAH7LFJN_cjs = require('../chunk-EAH7LFJN.cjs');
|
|
50
50
|
var chunk223D4727_cjs = require('../chunk-223D4727.cjs');
|
|
51
51
|
require('../chunk-DTMBAFIL.cjs');
|
|
52
|
-
var
|
|
52
|
+
var chunkVJHDCYKE_cjs = require('../chunk-VJHDCYKE.cjs');
|
|
53
53
|
var chunk4ONPEVTP_cjs = require('../chunk-4ONPEVTP.cjs');
|
|
54
54
|
require('../chunk-V3KLUWQQ.cjs');
|
|
55
55
|
require('../chunk-7NJKDJVO.cjs');
|
|
@@ -59,13 +59,13 @@ require('../chunk-76S6WTEC.cjs');
|
|
|
59
59
|
var chunkYSAUOJA7_cjs = require('../chunk-YSAUOJA7.cjs');
|
|
60
60
|
var chunkJ37DOAGN_cjs = require('../chunk-J37DOAGN.cjs');
|
|
61
61
|
require('../chunk-QEMGGJB6.cjs');
|
|
62
|
-
var
|
|
62
|
+
var chunkR6HGMPF4_cjs = require('../chunk-R6HGMPF4.cjs');
|
|
63
63
|
var chunkHUAABZ2C_cjs = require('../chunk-HUAABZ2C.cjs');
|
|
64
64
|
var chunkGISMY7J7_cjs = require('../chunk-GISMY7J7.cjs');
|
|
65
65
|
var chunkV5P5MRSR_cjs = require('../chunk-V5P5MRSR.cjs');
|
|
66
66
|
var chunkSNUBQMIS_cjs = require('../chunk-SNUBQMIS.cjs');
|
|
67
67
|
require('../chunk-LIJB6XOR.cjs');
|
|
68
|
-
var
|
|
68
|
+
var chunkAWQEN6WW_cjs = require('../chunk-AWQEN6WW.cjs');
|
|
69
69
|
var chunkI6GEQWIV_cjs = require('../chunk-I6GEQWIV.cjs');
|
|
70
70
|
var chunkNX56DIG3_cjs = require('../chunk-NX56DIG3.cjs');
|
|
71
71
|
var chunkTLIZD6DV_cjs = require('../chunk-TLIZD6DV.cjs');
|
|
@@ -103,9 +103,9 @@ var chunkXJEXFEWG_cjs = require('../chunk-XJEXFEWG.cjs');
|
|
|
103
103
|
require('../chunk-E23H6FJR.cjs');
|
|
104
104
|
require('../chunk-YZSQ7F5K.cjs');
|
|
105
105
|
require('../chunk-KQF7POTG.cjs');
|
|
106
|
+
require('../chunk-HME72RFP.cjs');
|
|
106
107
|
var chunkMNIQDXM6_cjs = require('../chunk-MNIQDXM6.cjs');
|
|
107
108
|
var chunkVJNJ4G6Y_cjs = require('../chunk-VJNJ4G6Y.cjs');
|
|
108
|
-
require('../chunk-WCT6FT2K.cjs');
|
|
109
109
|
var chunkHQ6SK34T_cjs = require('../chunk-HQ6SK34T.cjs');
|
|
110
110
|
require('../chunk-75BNMCUX.cjs');
|
|
111
111
|
var chunkC25KF2TM_cjs = require('../chunk-C25KF2TM.cjs');
|
|
@@ -113,7 +113,7 @@ var chunkZU2B2RZK_cjs = require('../chunk-ZU2B2RZK.cjs');
|
|
|
113
113
|
require('../chunk-OEJQFPWO.cjs');
|
|
114
114
|
var chunkU46OGRCO_cjs = require('../chunk-U46OGRCO.cjs');
|
|
115
115
|
var chunk66IOCKWS_cjs = require('../chunk-66IOCKWS.cjs');
|
|
116
|
-
var
|
|
116
|
+
var chunkQDIIOZBP_cjs = require('../chunk-QDIIOZBP.cjs');
|
|
117
117
|
var chunkCYN66TBO_cjs = require('../chunk-CYN66TBO.cjs');
|
|
118
118
|
var chunkBH322H5B_cjs = require('../chunk-BH322H5B.cjs');
|
|
119
119
|
var chunk2K5DLB7B_cjs = require('../chunk-2K5DLB7B.cjs');
|
|
@@ -126,13 +126,12 @@ var chunkOYXWQTHF_cjs = require('../chunk-OYXWQTHF.cjs');
|
|
|
126
126
|
require('../chunk-S237ORM3.cjs');
|
|
127
127
|
require('../chunk-II2OEXHW.cjs');
|
|
128
128
|
var chunkFX3K6LNZ_cjs = require('../chunk-FX3K6LNZ.cjs');
|
|
129
|
-
require('../chunk-
|
|
129
|
+
require('../chunk-KD37PODE.cjs');
|
|
130
130
|
require('../chunk-3YEXZX4H.cjs');
|
|
131
131
|
var chunk4PA6VCCR_cjs = require('../chunk-4PA6VCCR.cjs');
|
|
132
132
|
require('../chunk-5FSULBPE.cjs');
|
|
133
133
|
require('../chunk-AHDJXIUB.cjs');
|
|
134
134
|
var chunkS3GVFAFB_cjs = require('../chunk-S3GVFAFB.cjs');
|
|
135
|
-
var chunk6UZC4XVV_cjs = require('../chunk-6UZC4XVV.cjs');
|
|
136
135
|
var chunkIXCWZ4HC_cjs = require('../chunk-IXCWZ4HC.cjs');
|
|
137
136
|
var chunkY3GJBLAI_cjs = require('../chunk-Y3GJBLAI.cjs');
|
|
138
137
|
var chunkSQCCQU3K_cjs = require('../chunk-SQCCQU3K.cjs');
|
|
@@ -140,6 +139,7 @@ require('../chunk-UDSHVNU3.cjs');
|
|
|
140
139
|
var chunkDKY67DA6_cjs = require('../chunk-DKY67DA6.cjs');
|
|
141
140
|
var chunkZQQVXRYZ_cjs = require('../chunk-ZQQVXRYZ.cjs');
|
|
142
141
|
var chunkIPSHAMO2_cjs = require('../chunk-IPSHAMO2.cjs');
|
|
142
|
+
var chunk6UZC4XVV_cjs = require('../chunk-6UZC4XVV.cjs');
|
|
143
143
|
var chunkZVEW3JBT_cjs = require('../chunk-ZVEW3JBT.cjs');
|
|
144
144
|
var chunkU2FFG2B3_cjs = require('../chunk-U2FFG2B3.cjs');
|
|
145
145
|
var chunkV6C2MBFY_cjs = require('../chunk-V6C2MBFY.cjs');
|
|
@@ -280,7 +280,7 @@ function ConnectedWorkspaceActivity({
|
|
|
280
280
|
[feed.data]
|
|
281
281
|
);
|
|
282
282
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
283
|
-
|
|
283
|
+
chunkAWQEN6WW_cjs.WorkspaceActivityList,
|
|
284
284
|
{
|
|
285
285
|
...listProps,
|
|
286
286
|
items,
|
|
@@ -339,7 +339,7 @@ async function joinEvent({ arbi, environment }, eventId, recurrenceId) {
|
|
|
339
339
|
const event = await arbi.calendar.getEvent(eventId, recurrenceId);
|
|
340
340
|
const url = event.conference?.url;
|
|
341
341
|
if (url && /^https?:\/\//i.test(url)) {
|
|
342
|
-
await
|
|
342
|
+
await chunkGZPNBSRE_cjs.joinEventMeeting(arbi, url);
|
|
343
343
|
return;
|
|
344
344
|
}
|
|
345
345
|
} catch {
|
|
@@ -1071,7 +1071,7 @@ function ConnectedNotificationCenter({ headerRight }) {
|
|
|
1071
1071
|
renderWorkspace: (workspaceId) => {
|
|
1072
1072
|
const workspace = byId.get(workspaceId);
|
|
1073
1073
|
return workspace ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1074
|
-
|
|
1074
|
+
chunkGZPNBSRE_cjs.ConnectedWorkspaceEntity,
|
|
1075
1075
|
{
|
|
1076
1076
|
workspace,
|
|
1077
1077
|
size: 16,
|
|
@@ -1200,14 +1200,14 @@ function ConnectedOfflineStatus({ compact = false }) {
|
|
|
1200
1200
|
const openOutbox = () => openMail?.(outbox.length > 0 ? { folder: outboxFolder } : void 0);
|
|
1201
1201
|
let tone;
|
|
1202
1202
|
let label;
|
|
1203
|
-
let onOpen = pending === 0 && outbox.length + mailChanges > 0 ? openOutbox :
|
|
1203
|
+
let onOpen = pending === 0 && outbox.length + mailChanges > 0 ? openOutbox : chunk633ZCYVN_cjs.openPendingSyncDialog;
|
|
1204
1204
|
if (!isOnline) {
|
|
1205
1205
|
tone = "offline";
|
|
1206
1206
|
label = waiting > 0 ? `Offline \xB7 ${waiting} pending` : "Offline";
|
|
1207
1207
|
} else if (failed > 0) {
|
|
1208
1208
|
tone = "failed";
|
|
1209
1209
|
label = `${plural2(failed, "change", "changes")} didn\u2019t sync`;
|
|
1210
|
-
onOpen =
|
|
1210
|
+
onOpen = chunk633ZCYVN_cjs.openPendingSyncDialog;
|
|
1211
1211
|
} else if (outboxFailed > 0) {
|
|
1212
1212
|
tone = "failed";
|
|
1213
1213
|
label = `${plural2(outboxFailed, "email", "emails")} not sent`;
|
|
@@ -1339,7 +1339,7 @@ function ConnectedSkillUpload({ onDone, labels, className }) {
|
|
|
1339
1339
|
onChange: (e) => {
|
|
1340
1340
|
const file = e.target.files?.[0];
|
|
1341
1341
|
e.target.value = "";
|
|
1342
|
-
if (file) void add(() =>
|
|
1342
|
+
if (file) void add(() => chunkQDIIOZBP_cjs.importSkillFile(file));
|
|
1343
1343
|
}
|
|
1344
1344
|
}
|
|
1345
1345
|
),
|
|
@@ -1364,7 +1364,7 @@ function ConnectedSkillUpload({ onDone, labels, className }) {
|
|
|
1364
1364
|
className: "space-y-2",
|
|
1365
1365
|
onSubmit: (e) => {
|
|
1366
1366
|
e.preventDefault();
|
|
1367
|
-
if (url.trim()) void add(() =>
|
|
1367
|
+
if (url.trim()) void add(() => chunkQDIIOZBP_cjs.importSkillFromUrl(url));
|
|
1368
1368
|
},
|
|
1369
1369
|
children: [
|
|
1370
1370
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "skills-add-url", children: l.fromLink }),
|
|
@@ -1432,9 +1432,9 @@ function ConnectedSkillsLibrary({
|
|
|
1432
1432
|
const [type, setType] = react.useState("all");
|
|
1433
1433
|
const [view, setView] = react.useState("gallery");
|
|
1434
1434
|
const [isBusy, setIsBusy] = react.useState(false);
|
|
1435
|
-
const all = react.useMemo(() =>
|
|
1435
|
+
const all = react.useMemo(() => chunkQDIIOZBP_cjs.buildLibrarySkills(builtins, listings ?? []), [builtins, listings]);
|
|
1436
1436
|
const shown = react.useMemo(
|
|
1437
|
-
() =>
|
|
1437
|
+
() => chunkQDIIOZBP_cjs.filterLibrarySkills(all, { query, source, type }),
|
|
1438
1438
|
[all, query, source, type]
|
|
1439
1439
|
);
|
|
1440
1440
|
const current = all.find((s) => s.slug === selected) ?? null;
|
|
@@ -1445,21 +1445,21 @@ function ConnectedSkillsLibrary({
|
|
|
1445
1445
|
const count2 = (s) => all.filter((x) => x.source === s).length;
|
|
1446
1446
|
const sourceOptions = [
|
|
1447
1447
|
{ id: "all", label: "All", count: all.length },
|
|
1448
|
-
{ id: "builtin", label:
|
|
1449
|
-
{ id: "mine", label:
|
|
1450
|
-
{ id: "shared", label:
|
|
1448
|
+
{ id: "builtin", label: chunkQDIIOZBP_cjs.SKILL_SOURCE_LABELS.builtin, count: count2("builtin") },
|
|
1449
|
+
{ id: "mine", label: chunkQDIIOZBP_cjs.SKILL_SOURCE_LABELS.mine, count: count2("mine") },
|
|
1450
|
+
{ id: "shared", label: chunkQDIIOZBP_cjs.SKILL_SOURCE_LABELS.shared, count: count2("shared") }
|
|
1451
1451
|
];
|
|
1452
1452
|
const types = [...new Set(all.map((s) => s.type))];
|
|
1453
1453
|
const typeOptions = [
|
|
1454
1454
|
{ id: "all", label: "Any kind" },
|
|
1455
|
-
...types.map((t) => ({ id: t, label:
|
|
1455
|
+
...types.map((t) => ({ id: t, label: chunkQDIIOZBP_cjs.SKILL_TYPE_LABELS[t] ?? t }))
|
|
1456
1456
|
];
|
|
1457
1457
|
const pick = (slug) => {
|
|
1458
1458
|
setSelected(slug);
|
|
1459
1459
|
setMode("detail");
|
|
1460
1460
|
};
|
|
1461
1461
|
const markdownOf = async (skill) => {
|
|
1462
|
-
if (!skill.docExtId) return
|
|
1462
|
+
if (!skill.docExtId) return chunkQDIIOZBP_cjs.workflowToSkillMarkdown(skill.workflow);
|
|
1463
1463
|
const response = await arbi.documents.download(skill.docExtId);
|
|
1464
1464
|
if (!response.ok) throw new Error(`Could not read the skill (${response.status})`);
|
|
1465
1465
|
return response.text();
|
|
@@ -1523,7 +1523,7 @@ function ConnectedSkillsLibrary({
|
|
|
1523
1523
|
try {
|
|
1524
1524
|
documentTools.downloadBlob(
|
|
1525
1525
|
new Blob([await markdownOf(skill)], { type: "text/markdown" }),
|
|
1526
|
-
|
|
1526
|
+
chunkQDIIOZBP_cjs.SKILL_MAIN_FILENAME
|
|
1527
1527
|
);
|
|
1528
1528
|
} catch (error) {
|
|
1529
1529
|
notify19(errorText(error, "Could not export the skill"), "error");
|
|
@@ -1564,10 +1564,10 @@ function ConnectedSkillsLibrary({
|
|
|
1564
1564
|
}
|
|
1565
1565
|
)
|
|
1566
1566
|
] }),
|
|
1567
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1567
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQDIIOZBP_cjs.SkillViewToggle, { value: view, onChange: setView })
|
|
1568
1568
|
] }),
|
|
1569
1569
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1570
|
-
|
|
1570
|
+
chunkQDIIOZBP_cjs.SkillFilterChips,
|
|
1571
1571
|
{
|
|
1572
1572
|
label: "Show",
|
|
1573
1573
|
value: source,
|
|
@@ -1576,7 +1576,7 @@ function ConnectedSkillsLibrary({
|
|
|
1576
1576
|
}
|
|
1577
1577
|
),
|
|
1578
1578
|
types.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1579
|
-
|
|
1579
|
+
chunkQDIIOZBP_cjs.SkillFilterChips,
|
|
1580
1580
|
{
|
|
1581
1581
|
label: "Kind",
|
|
1582
1582
|
value: type,
|
|
@@ -1623,12 +1623,12 @@ function ConnectedSkillsLibrary({
|
|
|
1623
1623
|
view === "gallery" ? "grid grid-cols-[repeat(auto-fill,minmax(9.5rem,1fr))]" : "flex flex-col"
|
|
1624
1624
|
),
|
|
1625
1625
|
children: shown.map((skill) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1626
|
-
|
|
1626
|
+
chunkQDIIOZBP_cjs.SkillTile,
|
|
1627
1627
|
{
|
|
1628
1628
|
name: skill.title,
|
|
1629
1629
|
testId: `skill-tile-${skill.slug}`,
|
|
1630
1630
|
description: skill.description,
|
|
1631
|
-
sourceLabel: skill.isShared ? `${
|
|
1631
|
+
sourceLabel: skill.isShared ? `${chunkQDIIOZBP_cjs.SKILL_SOURCE_LABELS.mine}, shared` : chunkQDIIOZBP_cjs.SKILL_SOURCE_LABELS[skill.source],
|
|
1632
1632
|
type: skill.type,
|
|
1633
1633
|
icon,
|
|
1634
1634
|
layout: view,
|
|
@@ -1663,7 +1663,7 @@ function ConnectedSkillsLibrary({
|
|
|
1663
1663
|
}
|
|
1664
1664
|
),
|
|
1665
1665
|
mode === "new" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1666
|
-
|
|
1666
|
+
chunkQDIIOZBP_cjs.SkillGenerateForm,
|
|
1667
1667
|
{
|
|
1668
1668
|
icon,
|
|
1669
1669
|
onGenerate: (desc) => {
|
|
@@ -1690,11 +1690,11 @@ function ConnectedSkillsLibrary({
|
|
|
1690
1690
|
),
|
|
1691
1691
|
mode === "add" && /* @__PURE__ */ jsxRuntime.jsx(ConnectedSkillUpload, { onDone: done }),
|
|
1692
1692
|
mode === "detail" && current && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1693
|
-
|
|
1693
|
+
chunkQDIIOZBP_cjs.SkillLibraryDetail,
|
|
1694
1694
|
{
|
|
1695
1695
|
skill: current,
|
|
1696
1696
|
icon,
|
|
1697
|
-
instructions: current.docExtId ? currentText ?
|
|
1697
|
+
instructions: current.docExtId ? currentText ? chunkQDIIOZBP_cjs.parseSkillFrontmatter(currentText, chunkQDIIOZBP_cjs.SKILL_MAIN_FILENAME).content : "" : current.workflow.run.kind === "prompt" ? current.workflow.run.promptTemplate : "",
|
|
1698
1698
|
isLoading: !!current.docExtId && textLoading,
|
|
1699
1699
|
actions: {
|
|
1700
1700
|
onRun: () => onRun(current.slug),
|
|
@@ -1729,7 +1729,7 @@ function SkillEditor({
|
|
|
1729
1729
|
const [seeded, setSeeded] = react.useState(!isEditing);
|
|
1730
1730
|
const [nameError, setNameError] = react.useState(null);
|
|
1731
1731
|
if (isEditing && !seeded && text2 !== void 0) {
|
|
1732
|
-
const parsed =
|
|
1732
|
+
const parsed = chunkQDIIOZBP_cjs.parseSkillFrontmatter(text2, chunkQDIIOZBP_cjs.SKILL_MAIN_FILENAME);
|
|
1733
1733
|
setDescription(parsed.description ?? "");
|
|
1734
1734
|
setBody(parsed.content ?? "");
|
|
1735
1735
|
setSeeded(true);
|
|
@@ -1743,15 +1743,15 @@ function SkillEditor({
|
|
|
1743
1743
|
notify19("Add a short description.", "error");
|
|
1744
1744
|
return;
|
|
1745
1745
|
}
|
|
1746
|
-
const slug =
|
|
1746
|
+
const slug = chunkQDIIOZBP_cjs.skillSlug(name);
|
|
1747
1747
|
try {
|
|
1748
|
-
await onSave(slug,
|
|
1748
|
+
await onSave(slug, chunkQDIIOZBP_cjs.serializeSkill({ name: slug, description, body }), isEditing);
|
|
1749
1749
|
} catch (err) {
|
|
1750
1750
|
notify19(errorText(err, "Could not save the skill"), "error");
|
|
1751
1751
|
}
|
|
1752
1752
|
};
|
|
1753
1753
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1754
|
-
|
|
1754
|
+
chunkQDIIOZBP_cjs.SkillEditForm,
|
|
1755
1755
|
{
|
|
1756
1756
|
name,
|
|
1757
1757
|
onNameChange: setName,
|
|
@@ -1844,7 +1844,7 @@ function ConnectedSkillsBrowser({
|
|
|
1844
1844
|
}
|
|
1845
1845
|
) }),
|
|
1846
1846
|
runSkillId && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1847
|
-
|
|
1847
|
+
chunkGLNL5AL5_cjs.ConnectedTaskComposer,
|
|
1848
1848
|
{
|
|
1849
1849
|
kind: "workflow",
|
|
1850
1850
|
open: true,
|
|
@@ -1868,9 +1868,9 @@ function ConnectedAgentCreator({
|
|
|
1868
1868
|
agent,
|
|
1869
1869
|
initialName,
|
|
1870
1870
|
onSaved,
|
|
1871
|
-
capabilities =
|
|
1872
|
-
templates =
|
|
1873
|
-
types =
|
|
1871
|
+
capabilities = chunkQDIIOZBP_cjs.DEFAULT_AGENT_CAPABILITIES,
|
|
1872
|
+
templates = chunkQDIIOZBP_cjs.DEFAULT_AGENT_TEMPLATES,
|
|
1873
|
+
types = chunkQDIIOZBP_cjs.DEFAULT_AGENT_TYPES,
|
|
1874
1874
|
canRevokeWorkspaces = false,
|
|
1875
1875
|
labels
|
|
1876
1876
|
}) {
|
|
@@ -1922,7 +1922,7 @@ function ConnectedAgentCreator({
|
|
|
1922
1922
|
const initialValues = react.useMemo(
|
|
1923
1923
|
() => ({
|
|
1924
1924
|
name: agent?.given_name ?? initialName ?? "",
|
|
1925
|
-
persona: isEdit ?
|
|
1925
|
+
persona: isEdit ? chunkQDIIOZBP_cjs.stripPersonaPreamble(String(agents.PERSONA ?? "")) : "",
|
|
1926
1926
|
modelName: String(agents.AGENT_MODEL_NAME ?? ""),
|
|
1927
1927
|
capabilities: Object.fromEntries(capabilities.map(({ key }) => [key, Boolean(agents[key])])),
|
|
1928
1928
|
type: "builtin",
|
|
@@ -1942,7 +1942,7 @@ function ConnectedAgentCreator({
|
|
|
1942
1942
|
try {
|
|
1943
1943
|
let agentExtId = agent?.external_id ?? early?.id ?? "";
|
|
1944
1944
|
if (!agentExtId) {
|
|
1945
|
-
if (!
|
|
1945
|
+
if (!chunkQDIIOZBP_cjs.isValidAgentName(values.name)) {
|
|
1946
1946
|
notify19("Give the agent a name first.", "error");
|
|
1947
1947
|
return;
|
|
1948
1948
|
}
|
|
@@ -1978,7 +1978,7 @@ function ConnectedAgentCreator({
|
|
|
1978
1978
|
title: `agent-${name}`,
|
|
1979
1979
|
sections: {
|
|
1980
1980
|
Agents: {
|
|
1981
|
-
PERSONA:
|
|
1981
|
+
PERSONA: chunkQDIIOZBP_cjs.composePersona(name, values.persona),
|
|
1982
1982
|
...values.modelName ? { AGENT_MODEL_NAME: values.modelName } : {},
|
|
1983
1983
|
...Object.fromEntries(capabilities.map(({ key }) => [key, !!values.capabilities[key]])),
|
|
1984
1984
|
ENABLED_SKILLS: values.capabilities.SKILLS_ENABLED && skills.length ? skills : null,
|
|
@@ -2002,7 +2002,7 @@ function ConnectedAgentCreator({
|
|
|
2002
2002
|
};
|
|
2003
2003
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2004
2004
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2005
|
-
|
|
2005
|
+
chunkQDIIOZBP_cjs.AgentCreator,
|
|
2006
2006
|
{
|
|
2007
2007
|
callAvatars: callAvatarsEnabled ? [
|
|
2008
2008
|
{
|
|
@@ -2035,11 +2035,11 @@ function ConnectedAgentCreator({
|
|
|
2035
2035
|
) : void 0,
|
|
2036
2036
|
revokingWorkspaceId: revokeAccess.isPending ? revokeAccess.variables?.workspaceId : void 0,
|
|
2037
2037
|
avatar: (values) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2038
|
-
|
|
2038
|
+
chunkQDIIOZBP_cjs.AgentAvatarField,
|
|
2039
2039
|
{
|
|
2040
2040
|
picture,
|
|
2041
2041
|
isBusy: avatarBusy,
|
|
2042
|
-
canGenerate: isEdit ||
|
|
2042
|
+
canGenerate: isEdit || chunkQDIIOZBP_cjs.isValidAgentName(values.name),
|
|
2043
2043
|
onGenerate: () => handleGenerateAvatar(values)
|
|
2044
2044
|
}
|
|
2045
2045
|
),
|
|
@@ -2091,7 +2091,7 @@ function ConnectedAgentCreator({
|
|
|
2091
2091
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { children: "Connect your agent" }),
|
|
2092
2092
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogDescription, { children: "This key is shown once. Run the script on the machine that will host the agent." })
|
|
2093
2093
|
] }),
|
|
2094
|
-
connect && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2094
|
+
connect && /* @__PURE__ */ jsxRuntime.jsx(chunkQDIIOZBP_cjs.AgentConnectInstructions, { email: connect.email, signingKey: connect.signingKey })
|
|
2095
2095
|
]
|
|
2096
2096
|
}
|
|
2097
2097
|
) })
|
|
@@ -2489,7 +2489,7 @@ function useMemoryCount(enabled) {
|
|
|
2489
2489
|
}
|
|
2490
2490
|
function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
|
|
2491
2491
|
const { notify: notify19, confirm, openConversation, openDocument } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
2492
|
-
const people =
|
|
2492
|
+
const people = chunkGLNL5AL5_cjs.useTaskPeople();
|
|
2493
2493
|
const canEditShared = react$1.useCanEditShared();
|
|
2494
2494
|
const isWorkspaceOwner = react$1.useIsWorkspaceOwner();
|
|
2495
2495
|
const { data: workflows = [] } = react$1.useWorkflows({ live: true });
|
|
@@ -2515,7 +2515,7 @@ function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
|
|
|
2515
2515
|
}, [documents]);
|
|
2516
2516
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2517
2517
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2518
|
-
|
|
2518
|
+
chunkQDIIOZBP_cjs.TaskTable,
|
|
2519
2519
|
{
|
|
2520
2520
|
tasks,
|
|
2521
2521
|
isLoading,
|
|
@@ -2545,7 +2545,7 @@ function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
|
|
|
2545
2545
|
}
|
|
2546
2546
|
),
|
|
2547
2547
|
activityFor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2548
|
-
|
|
2548
|
+
chunkGLNL5AL5_cjs.ConnectedTaskActivityDialog,
|
|
2549
2549
|
{
|
|
2550
2550
|
conversationId: activityFor.external_id,
|
|
2551
2551
|
taskName: activityFor.title || l.untitledTask,
|
|
@@ -2584,7 +2584,7 @@ function AgentsLauncher({ workflows, renderIcon, labels: l, testId }) {
|
|
|
2584
2584
|
[workflows, skills, l.skillFiles]
|
|
2585
2585
|
);
|
|
2586
2586
|
const launch = async ({ workflow, inputs, agentId }) => {
|
|
2587
|
-
const values =
|
|
2587
|
+
const values = chunkQDIIOZBP_cjs.defaultTaskComposerValues(launchable, {
|
|
2588
2588
|
workflowId: workflow.id,
|
|
2589
2589
|
assignee: "agent",
|
|
2590
2590
|
inputs,
|
|
@@ -2704,7 +2704,7 @@ function ConnectedAgentsPageScope(props) {
|
|
|
2704
2704
|
children,
|
|
2705
2705
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedAgentCreator, { ...management.editorProps, ...agentOptions.creator }),
|
|
2706
2706
|
taskDialog && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2707
|
-
|
|
2707
|
+
chunkGLNL5AL5_cjs.ConnectedTaskComposer,
|
|
2708
2708
|
{
|
|
2709
2709
|
open: true,
|
|
2710
2710
|
onOpenChange: (open) => !open && setTaskDialog(null),
|
|
@@ -2727,7 +2727,7 @@ function AgentsGallery() {
|
|
|
2727
2727
|
} = agentOptions;
|
|
2728
2728
|
const { openConversation } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
2729
2729
|
const { user } = react$1.useArbiSession();
|
|
2730
|
-
const tasksByAgent = react.useMemo(() =>
|
|
2730
|
+
const tasksByAgent = react.useMemo(() => chunkQDIIOZBP_cjs.groupAgentTasks(tasks), [tasks]);
|
|
2731
2731
|
const behaviour = useAgentBehaviour(l.defaultBehaviour, details.includes("behaviour"));
|
|
2732
2732
|
const { agents } = management;
|
|
2733
2733
|
const cardDetails = (agent) => details.map(
|
|
@@ -2743,7 +2743,7 @@ function AgentsGallery() {
|
|
|
2743
2743
|
) : 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)
|
|
2744
2744
|
);
|
|
2745
2745
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2746
|
-
|
|
2746
|
+
chunkQDIIOZBP_cjs.AgentGallery,
|
|
2747
2747
|
{
|
|
2748
2748
|
count: agents.length,
|
|
2749
2749
|
onCreate: management.create,
|
|
@@ -2755,7 +2755,7 @@ function AgentsGallery() {
|
|
|
2755
2755
|
const watchConversationId = running[0]?.external_id ?? null;
|
|
2756
2756
|
const progress = agentTasks[0] ? chunkBH322H5B_cjs.goalProgress(agentTasks[0]) : null;
|
|
2757
2757
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2758
|
-
|
|
2758
|
+
chunkQDIIOZBP_cjs.AgentCard,
|
|
2759
2759
|
{
|
|
2760
2760
|
name: displayName(agent),
|
|
2761
2761
|
avatar: /* @__PURE__ */ jsxRuntime.jsx(AgentInitialsAvatar, { agent }),
|
|
@@ -2863,7 +2863,7 @@ function AgentsSectionBody({ id }) {
|
|
|
2863
2863
|
) });
|
|
2864
2864
|
case "scheduled":
|
|
2865
2865
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-[min(32rem,70dvh)] min-h-64 flex-col", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2866
|
-
|
|
2866
|
+
chunkVJHDCYKE_cjs.ConnectedWorkflowsTable,
|
|
2867
2867
|
{
|
|
2868
2868
|
filter: "scheduled",
|
|
2869
2869
|
onEdit: (w) => openWorkflow?.(w.external_id),
|
|
@@ -3167,7 +3167,7 @@ function ConnectedTagTable({
|
|
|
3167
3167
|
const fail2 = (fallback) => (e) => notify19(browser.refusalReason(e, fallback), "error");
|
|
3168
3168
|
const snapshot2 = (data) => {
|
|
3169
3169
|
const title = exportTitle ?? ui.tagKindTitle(kind, { plural: true });
|
|
3170
|
-
const bytes =
|
|
3170
|
+
const bytes = chunkAWQEN6WW_cjs.tagTableDocx(data, {
|
|
3171
3171
|
title,
|
|
3172
3172
|
nameOf: (id) => people.find((p) => p.value === id)?.label
|
|
3173
3173
|
});
|
|
@@ -3176,7 +3176,7 @@ function ConnectedTagTable({
|
|
|
3176
3176
|
return { blob: new Blob([bytes], { type: chunkUKOYN2WD_cjs.DOCX_MIME_TYPE }), name };
|
|
3177
3177
|
};
|
|
3178
3178
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3179
|
-
|
|
3179
|
+
chunkAWQEN6WW_cjs.TagTable,
|
|
3180
3180
|
{
|
|
3181
3181
|
...props,
|
|
3182
3182
|
table,
|
|
@@ -4014,8 +4014,8 @@ function ConnectedAiReview({
|
|
|
4014
4014
|
const generate = react$1.useGenerateDocTags();
|
|
4015
4015
|
const { data: liveDocs = [] } = react$1.useDocuments();
|
|
4016
4016
|
const { data: tags = [] } = react$1.useTags();
|
|
4017
|
-
const result =
|
|
4018
|
-
const setResult =
|
|
4017
|
+
const result = chunkAZUPMHZI_cjs.useAiReviewStore((s) => s.run);
|
|
4018
|
+
const setResult = chunkAZUPMHZI_cjs.useAiReviewStore((s) => s.setRun);
|
|
4019
4019
|
const phase = result ? "review" : "ask";
|
|
4020
4020
|
const docCount = documents.length;
|
|
4021
4021
|
const scope = allDocuments ? "processed" : "selected";
|
|
@@ -4250,7 +4250,7 @@ function ConnectedAiReview({
|
|
|
4250
4250
|
}, [kind]);
|
|
4251
4251
|
const description = phase === "ask" ? assistant.reviewEach(docCount, scope) : aiCellsTotal > 0 ? reviewProgress(aiCellsDone, aiCellsEmpty, aiCellsTotal) : `Applied to ${rows.length} document${plural3(rows.length)}`;
|
|
4252
4252
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4253
|
-
|
|
4253
|
+
chunkEAH7LFJN_cjs.AiReviewDialogView,
|
|
4254
4254
|
{
|
|
4255
4255
|
open,
|
|
4256
4256
|
onOpenChange: handleOpenChange,
|
|
@@ -4301,9 +4301,9 @@ function GlossaryExport({ labelId, nameOf }) {
|
|
|
4301
4301
|
const narrowed = agreements.find((a) => a.id === narrowTo);
|
|
4302
4302
|
const title = narrowed ? `Glossary - ${narrowed.name}` : "Glossary";
|
|
4303
4303
|
const download = (format) => {
|
|
4304
|
-
const entries =
|
|
4305
|
-
const blob = format === "docx" ? new Blob([
|
|
4306
|
-
documentTools.downloadBlob(blob,
|
|
4304
|
+
const entries = chunkAWQEN6WW_cjs.glossaryEntries(sources, { labelId: narrowed?.id });
|
|
4305
|
+
const blob = format === "docx" ? new Blob([chunkAWQEN6WW_cjs.glossaryDocx(entries, { title })], { type: chunkUKOYN2WD_cjs.DOCX_MIME_TYPE }) : new Blob([chunkAWQEN6WW_cjs.glossaryMarkdown(entries, { title })], { type: "text/markdown" });
|
|
4306
|
+
documentTools.downloadBlob(blob, chunkAWQEN6WW_cjs.glossaryFileName(title, format));
|
|
4307
4307
|
};
|
|
4308
4308
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", "data-testid": "tags-glossary", children: [
|
|
4309
4309
|
agreements.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -4368,8 +4368,8 @@ function useOpenTaggedContent() {
|
|
|
4368
4368
|
if (!workspaceId) return;
|
|
4369
4369
|
session.setTransientView("topbar.filter", "");
|
|
4370
4370
|
if (kind === "documents") {
|
|
4371
|
-
|
|
4372
|
-
|
|
4371
|
+
chunkAZUPMHZI_cjs.useFilesPrefs.getState().setDocumentFilters({ [tagId]: "include" });
|
|
4372
|
+
chunkAZUPMHZI_cjs.useFilesPrefs.getState().setViewMode("grid");
|
|
4373
4373
|
session.setPage("documents");
|
|
4374
4374
|
} else if (kind === "facts") {
|
|
4375
4375
|
session.setViewFilter(FACTS_FILTER_KEY, { [tagId]: "include" });
|
|
@@ -4408,7 +4408,7 @@ function ConnectedTagForm({
|
|
|
4408
4408
|
nameByKind = false
|
|
4409
4409
|
}) {
|
|
4410
4410
|
const isCreate = !tag;
|
|
4411
|
-
const memberById =
|
|
4411
|
+
const memberById = chunkELN3YOXF_cjs.useMemberLookup();
|
|
4412
4412
|
const creator = memberById(tag?.created_by_ext_id);
|
|
4413
4413
|
const updater = memberById(tag?.updated_by_ext_id);
|
|
4414
4414
|
const fieldLabel = ui.getEntityLabel("TAG", "SINGULAR");
|
|
@@ -4487,19 +4487,19 @@ function ConnectedTagForm({
|
|
|
4487
4487
|
metaLines.push({
|
|
4488
4488
|
text: `Created ${ui.formatFriendlyDate(tag.created_at)}`,
|
|
4489
4489
|
byLabel: "by",
|
|
4490
|
-
by: creator ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
4490
|
+
by: creator ? /* @__PURE__ */ jsxRuntime.jsx(chunkEFV52SZ6_cjs.DocumentUser, { user: creator }) : void 0
|
|
4491
4491
|
});
|
|
4492
4492
|
if (tag.updated_at && tag.updated_at !== tag.created_at) {
|
|
4493
4493
|
metaLines.push({
|
|
4494
4494
|
text: `Updated ${ui.formatFriendlyDate(tag.updated_at)}`,
|
|
4495
4495
|
byLabel: "by",
|
|
4496
|
-
by: updater ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
4496
|
+
by: updater ? /* @__PURE__ */ jsxRuntime.jsx(chunkEFV52SZ6_cjs.DocumentUser, { user: updater }) : void 0
|
|
4497
4497
|
});
|
|
4498
4498
|
}
|
|
4499
4499
|
}
|
|
4500
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4500
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkEAH7LFJN_cjs.TagFormRoot, { children: [
|
|
4501
4501
|
!nameOnRow && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4502
|
-
|
|
4502
|
+
chunkEAH7LFJN_cjs.TagFormNameField,
|
|
4503
4503
|
{
|
|
4504
4504
|
label: group || nameByKind ? `${ui.tagKindTitle(kind)} Name` : `${columnLabel} Name`,
|
|
4505
4505
|
placeholder: `Enter ${kindNoun ?? columnLabel.toLowerCase()} name...`,
|
|
@@ -4509,7 +4509,7 @@ function ConnectedTagForm({
|
|
|
4509
4509
|
}
|
|
4510
4510
|
),
|
|
4511
4511
|
kinds2.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4512
|
-
|
|
4512
|
+
chunkEAH7LFJN_cjs.TagFormSelectField,
|
|
4513
4513
|
{
|
|
4514
4514
|
label: "Kind",
|
|
4515
4515
|
testId: "inline-tag-form-kind-field",
|
|
@@ -4524,7 +4524,7 @@ function ConnectedTagForm({
|
|
|
4524
4524
|
}
|
|
4525
4525
|
),
|
|
4526
4526
|
kind === "annotation" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4527
|
-
|
|
4527
|
+
chunkEAH7LFJN_cjs.TagFormSelectField,
|
|
4528
4528
|
{
|
|
4529
4529
|
label: group === "annotation" ? "Value type" : "Field Type",
|
|
4530
4530
|
testId: "inline-tag-form-type-field",
|
|
@@ -4536,7 +4536,7 @@ function ConnectedTagForm({
|
|
|
4536
4536
|
}
|
|
4537
4537
|
),
|
|
4538
4538
|
showParentPicker && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4539
|
-
|
|
4539
|
+
chunkEAH7LFJN_cjs.TagFormSelectField,
|
|
4540
4540
|
{
|
|
4541
4541
|
label: "Nested Under",
|
|
4542
4542
|
value: parentId,
|
|
@@ -4558,14 +4558,14 @@ function ConnectedTagForm({
|
|
|
4558
4558
|
]
|
|
4559
4559
|
}
|
|
4560
4560
|
),
|
|
4561
|
-
nestingEnabled && hasChildren && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4561
|
+
nestingEnabled && hasChildren && /* @__PURE__ */ jsxRuntime.jsxs(chunkEAH7LFJN_cjs.TagFormNote, { testId: "inline-tag-form-parent-locked", children: [
|
|
4562
4562
|
"Other fields are nested under this one, so it cannot itself be nested \u2014 fields nest",
|
|
4563
4563
|
" ",
|
|
4564
4564
|
browser.TAG_NESTING_MAX_DEPTH,
|
|
4565
4565
|
" levels deep."
|
|
4566
4566
|
] }),
|
|
4567
4567
|
tagType === "select" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4568
|
-
|
|
4568
|
+
chunkEAH7LFJN_cjs.TagFormOptionsEditor,
|
|
4569
4569
|
{
|
|
4570
4570
|
label: "Options",
|
|
4571
4571
|
options,
|
|
@@ -4578,7 +4578,7 @@ function ConnectedTagForm({
|
|
|
4578
4578
|
}
|
|
4579
4579
|
),
|
|
4580
4580
|
tagType === "text" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4581
|
-
|
|
4581
|
+
chunkEAH7LFJN_cjs.TagFormInstructionField,
|
|
4582
4582
|
{
|
|
4583
4583
|
label: "AI Instruction",
|
|
4584
4584
|
optionalLabel: "(optional)",
|
|
@@ -4588,12 +4588,12 @@ function ConnectedTagForm({
|
|
|
4588
4588
|
onChange: setInstruction
|
|
4589
4589
|
}
|
|
4590
4590
|
),
|
|
4591
|
-
metaLines.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4591
|
+
metaLines.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.TagFormMeta, { lines: metaLines }),
|
|
4592
4592
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4593
|
-
|
|
4593
|
+
chunkEAH7LFJN_cjs.TagFormFooter,
|
|
4594
4594
|
{
|
|
4595
4595
|
sharedToggle: isCreate || !group ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
4596
|
-
|
|
4596
|
+
chunkEAH7LFJN_cjs.TagFormSharedToggle,
|
|
4597
4597
|
{
|
|
4598
4598
|
label: "Shared with workspace",
|
|
4599
4599
|
toggle: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4833,7 +4833,7 @@ function KindSection({
|
|
|
4833
4833
|
{
|
|
4834
4834
|
testId: `tags-kind-${kind}`,
|
|
4835
4835
|
title: ui.tagKindTitle(kind, { plural: true }),
|
|
4836
|
-
description:
|
|
4836
|
+
description: chunkAWQEN6WW_cjs.tagKindDescription(kind),
|
|
4837
4837
|
children: [
|
|
4838
4838
|
browser.isEntityTag({ kind }) && extractingCount > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4839
4839
|
"p",
|
|
@@ -4843,9 +4843,9 @@ function KindSection({
|
|
|
4843
4843
|
children: [
|
|
4844
4844
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-4 animate-spin" }),
|
|
4845
4845
|
"Extracting ",
|
|
4846
|
-
|
|
4846
|
+
chunkAWQEN6WW_cjs.entitiesPhrase().toLowerCase(),
|
|
4847
4847
|
" from ",
|
|
4848
|
-
|
|
4848
|
+
chunkAWQEN6WW_cjs.documentCount(extractingCount),
|
|
4849
4849
|
"\u2026"
|
|
4850
4850
|
]
|
|
4851
4851
|
}
|
|
@@ -4863,7 +4863,7 @@ function KindSection({
|
|
|
4863
4863
|
onOpenTag: ctx.onOpenTag,
|
|
4864
4864
|
onOpenRow: ctx.onOpenTag,
|
|
4865
4865
|
onOpenTaggedItems: ctx.onOpenTaggedItems,
|
|
4866
|
-
labels:
|
|
4866
|
+
labels: chunkAWQEN6WW_cjs.tagTableLabels(kind),
|
|
4867
4867
|
testId: `tags-table-${kind}`
|
|
4868
4868
|
}
|
|
4869
4869
|
)
|
|
@@ -4971,15 +4971,15 @@ function TagSection({
|
|
|
4971
4971
|
onOpenTag: ctx.onOpenTag,
|
|
4972
4972
|
onOpenRow: ctx.onOpenTag,
|
|
4973
4973
|
onOpenTaggedItems: ctx.onOpenTaggedItems,
|
|
4974
|
-
labels:
|
|
4974
|
+
labels: chunkAWQEN6WW_cjs.tagTableLabels(tag.kind),
|
|
4975
4975
|
testId: "tags-rows"
|
|
4976
4976
|
}
|
|
4977
4977
|
),
|
|
4978
4978
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4979
|
-
|
|
4979
|
+
chunkAWQEN6WW_cjs.TagDetail,
|
|
4980
4980
|
{
|
|
4981
4981
|
onOpenTaggedItems: ctx.onOpenTaggedItems,
|
|
4982
|
-
fieldLabels:
|
|
4982
|
+
fieldLabels: chunkAWQEN6WW_cjs.tagTableLabels(tag.kind),
|
|
4983
4983
|
row: detailRow,
|
|
4984
4984
|
fields: schema.data?.fields ?? [],
|
|
4985
4985
|
isLoading: detail.isLoading,
|
|
@@ -4993,7 +4993,7 @@ function TagSection({
|
|
|
4993
4993
|
throw e;
|
|
4994
4994
|
})
|
|
4995
4995
|
),
|
|
4996
|
-
labels:
|
|
4996
|
+
labels: chunkAWQEN6WW_cjs.tagDetailLabels(),
|
|
4997
4997
|
testId: "tags-detail"
|
|
4998
4998
|
}
|
|
4999
4999
|
)
|
|
@@ -5016,9 +5016,9 @@ var TAG_FILTER_FIELDS = [
|
|
|
5016
5016
|
function ConnectedTagsPage() {
|
|
5017
5017
|
const { confirm, notify: notify19, openSmartSearch } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
5018
5018
|
const onOpenTaggedItems = useOpenTaggedContent();
|
|
5019
|
-
const setReviewOpen =
|
|
5020
|
-
const setReviewRun =
|
|
5021
|
-
const reviewOpen =
|
|
5019
|
+
const setReviewOpen = chunkAZUPMHZI_cjs.useAiReviewStore((state) => state.setOpen);
|
|
5020
|
+
const setReviewRun = chunkAZUPMHZI_cjs.useAiReviewStore((state) => state.setRun);
|
|
5021
|
+
const reviewOpen = chunkAZUPMHZI_cjs.useAiReviewStore((state) => state.open);
|
|
5022
5022
|
const [review, setReview] = react.useState(null);
|
|
5023
5023
|
const { data: tags } = chunkGD5OYIOV_cjs.useConnectedTags();
|
|
5024
5024
|
const { data: documents } = chunkGD5OYIOV_cjs.useConnectedDocuments();
|
|
@@ -5077,7 +5077,7 @@ function ConnectedTagsPage() {
|
|
|
5077
5077
|
const nested = browser.getChildTags([...tags], t.external_id);
|
|
5078
5078
|
const uses = browser.tagUseCount(t);
|
|
5079
5079
|
const dbRows = t.dbrow_count ?? 0;
|
|
5080
|
-
const n2 =
|
|
5080
|
+
const n2 = chunkAWQEN6WW_cjs.tagsPageNouns();
|
|
5081
5081
|
const tagNoun = (count2) => (count2 === 1 ? n2.tag : n2.tags).toLowerCase();
|
|
5082
5082
|
const carriers = uses === 1 ? `${n2.document}, ${n2.fact} or ${n2.thread}` : `${n2.documents}, ${n2.facts} and ${n2.threads}`;
|
|
5083
5083
|
const message = `Delete ${ui.tagKindNouns(t.kind).singular} "${t.name}"?` + (uses > 0 ? `
|
|
@@ -5100,11 +5100,11 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
5100
5100
|
try {
|
|
5101
5101
|
await extract.mutateAsync(docIds);
|
|
5102
5102
|
notify19(
|
|
5103
|
-
`Extracting ${
|
|
5103
|
+
`Extracting ${chunkAWQEN6WW_cjs.entitiesPhrase().toLowerCase()} from ${chunkAWQEN6WW_cjs.documentCount(docIds.length)}. You will be notified when it is done.`,
|
|
5104
5104
|
"info"
|
|
5105
5105
|
);
|
|
5106
5106
|
} catch (error) {
|
|
5107
|
-
notify19(browser.refusalReason(error, `Could not extract ${
|
|
5107
|
+
notify19(browser.refusalReason(error, `Could not extract ${chunkAWQEN6WW_cjs.entitiesPhrase().toLowerCase()}`), "error");
|
|
5108
5108
|
throw error;
|
|
5109
5109
|
}
|
|
5110
5110
|
};
|
|
@@ -5118,10 +5118,10 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
5118
5118
|
onOpenTag: openTag,
|
|
5119
5119
|
onOpenTaggedItems
|
|
5120
5120
|
};
|
|
5121
|
-
const n =
|
|
5121
|
+
const n = chunkAWQEN6WW_cjs.tagsPageNouns();
|
|
5122
5122
|
const action = view === "person" || view === "organisation" ? {
|
|
5123
5123
|
label: "Extract",
|
|
5124
|
-
title: `Extract ${
|
|
5124
|
+
title: `Extract ${chunkAWQEN6WW_cjs.entitiesPhrase().toLowerCase()} from ${n.documents.toLowerCase()}`,
|
|
5125
5125
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { className: "h-4 w-4" }),
|
|
5126
5126
|
run: () => setExtracting(true),
|
|
5127
5127
|
testId: "tags-extract-entities"
|
|
@@ -5175,7 +5175,7 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
5175
5175
|
onTabChange: () => {
|
|
5176
5176
|
},
|
|
5177
5177
|
variant: "underline",
|
|
5178
|
-
firstTabContent: tag ? void 0 : /* @__PURE__ */ jsxRuntime.jsx(
|
|
5178
|
+
firstTabContent: tag ? void 0 : /* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.FilesFilterBar, { className: "flex-none", "data-testid": "tags-header-actions", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5179
5179
|
chunk6UZC4XVV_cjs.FilterInput,
|
|
5180
5180
|
{
|
|
5181
5181
|
value: filterText,
|
|
@@ -5197,7 +5197,7 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
5197
5197
|
filter: tagFilter
|
|
5198
5198
|
}
|
|
5199
5199
|
) }),
|
|
5200
|
-
centerContent: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5200
|
+
centerContent: /* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.FilesViewCenter, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5201
5201
|
chunkSNUBQMIS_cjs.ViewToggle,
|
|
5202
5202
|
{
|
|
5203
5203
|
options: browser.TAG_KINDS.map((k) => ({
|
|
@@ -5290,7 +5290,7 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
5290
5290
|
}
|
|
5291
5291
|
),
|
|
5292
5292
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5293
|
-
|
|
5293
|
+
chunkAWQEN6WW_cjs.ExtractEntitiesDialog,
|
|
5294
5294
|
{
|
|
5295
5295
|
open: extracting,
|
|
5296
5296
|
onOpenChange: setExtracting,
|
|
@@ -5514,12 +5514,12 @@ function ConnectedExportPanel({
|
|
|
5514
5514
|
current: workspace,
|
|
5515
5515
|
currentRole,
|
|
5516
5516
|
nameOf
|
|
5517
|
-
} =
|
|
5517
|
+
} = chunkGZPNBSRE_cjs.useTransferTargets();
|
|
5518
5518
|
const { data: workspaceTags = [] } = react$1.useTags(currentWorkspaceId ?? void 0);
|
|
5519
5519
|
const { data: workspaceDocuments = [] } = react$1.useDocuments(currentWorkspaceId ?? void 0);
|
|
5520
|
-
const columnsMode =
|
|
5521
|
-
const setColumnsMode =
|
|
5522
|
-
const trackTransfer =
|
|
5520
|
+
const columnsMode = chunkGZPNBSRE_cjs.useExportStore((state) => state.columnsMode);
|
|
5521
|
+
const setColumnsMode = chunkGZPNBSRE_cjs.useExportStore((state) => state.setColumnsMode);
|
|
5522
|
+
const trackTransfer = chunkGZPNBSRE_cjs.useExportStore((state) => state.trackTransfer);
|
|
5523
5523
|
const [scopeChoice, setScopeChoice] = react.useState(
|
|
5524
5524
|
items.length > 0 ? "selection" : "all"
|
|
5525
5525
|
);
|
|
@@ -5564,7 +5564,7 @@ function ConnectedExportPanel({
|
|
|
5564
5564
|
enabled: scopeReady && !jobId
|
|
5565
5565
|
});
|
|
5566
5566
|
const summary = react.useMemo(
|
|
5567
|
-
() => plan ?
|
|
5567
|
+
() => plan ? chunkGZPNBSRE_cjs.describePlan(plan, mode) : { lines: [], warnings: [] },
|
|
5568
5568
|
[plan, mode]
|
|
5569
5569
|
);
|
|
5570
5570
|
const targetName = nameOf;
|
|
@@ -5651,7 +5651,7 @@ function ConnectedExportPanel({
|
|
|
5651
5651
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col h-full", "data-testid": "export-documents", children: [
|
|
5652
5652
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 overflow-auto space-y-6 p-6", children: [
|
|
5653
5653
|
jobRunning && job && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5654
|
-
|
|
5654
|
+
chunkEAH7LFJN_cjs.TransferProgressView,
|
|
5655
5655
|
{
|
|
5656
5656
|
title: `${job.mode === "move" ? "Moving" : "Copying"} to ${targetName(job.target_workspace_ext_id)}`,
|
|
5657
5657
|
processed: job.processed ?? 0,
|
|
@@ -5664,7 +5664,7 @@ function ConnectedExportPanel({
|
|
|
5664
5664
|
),
|
|
5665
5665
|
jobDone && job && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
5666
5666
|
react$1.isTransferResumable(job) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5667
|
-
|
|
5667
|
+
chunkEAH7LFJN_cjs.TransferResumeBanner,
|
|
5668
5668
|
{
|
|
5669
5669
|
message: `Stopped at ${job.processed} of ${job.total}. Resume to finish \u2014 nothing is copied twice.`,
|
|
5670
5670
|
onResume: () => handleResume(job),
|
|
@@ -5672,9 +5672,9 @@ function ConnectedExportPanel({
|
|
|
5672
5672
|
}
|
|
5673
5673
|
),
|
|
5674
5674
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5675
|
-
|
|
5675
|
+
chunkEAH7LFJN_cjs.ExportResultsReport,
|
|
5676
5676
|
{
|
|
5677
|
-
summary: `${job.mode === "move" ? "Moved" : "Copied"} ${
|
|
5677
|
+
summary: `${job.mode === "move" ? "Moved" : "Copied"} ${chunkGZPNBSRE_cjs.plural(
|
|
5678
5678
|
Number(job.counts?.copied ?? 0) + Number(job.counts?.removed ?? 0),
|
|
5679
5679
|
"item"
|
|
5680
5680
|
)} to ${targetName(job.target_workspace_ext_id)}.${job.counts?.failed ? ` ${job.counts.failed} failed.` : ""}`,
|
|
@@ -5685,7 +5685,7 @@ function ConnectedExportPanel({
|
|
|
5685
5685
|
] }),
|
|
5686
5686
|
!jobId && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
5687
5687
|
resumable && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5688
|
-
|
|
5688
|
+
chunkEAH7LFJN_cjs.TransferResumeBanner,
|
|
5689
5689
|
{
|
|
5690
5690
|
message: `A ${resumable.mode} to ${targetName(resumable.target_workspace_ext_id)} stopped at ${resumable.processed} of ${resumable.total}.`,
|
|
5691
5691
|
onResume: () => handleResume(resumable),
|
|
@@ -5693,7 +5693,7 @@ function ConnectedExportPanel({
|
|
|
5693
5693
|
}
|
|
5694
5694
|
),
|
|
5695
5695
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5696
|
-
|
|
5696
|
+
chunkEAH7LFJN_cjs.TransferScopeChooser,
|
|
5697
5697
|
{
|
|
5698
5698
|
scope: scopeChoice,
|
|
5699
5699
|
onScopeChange: setScopeChoice,
|
|
@@ -5704,7 +5704,7 @@ function ConnectedExportPanel({
|
|
|
5704
5704
|
}
|
|
5705
5705
|
),
|
|
5706
5706
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5707
|
-
|
|
5707
|
+
chunkEAH7LFJN_cjs.TransferKindsPicker,
|
|
5708
5708
|
{
|
|
5709
5709
|
options: ALL_KINDS.map((kind) => ({
|
|
5710
5710
|
kind,
|
|
@@ -5717,9 +5717,9 @@ function ConnectedExportPanel({
|
|
|
5717
5717
|
)
|
|
5718
5718
|
}
|
|
5719
5719
|
),
|
|
5720
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5720
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.TransferReferencesChooser, { value: references, onChange: setReferences }),
|
|
5721
5721
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5722
|
-
|
|
5722
|
+
chunkEAH7LFJN_cjs.ExportMethodChooser,
|
|
5723
5723
|
{
|
|
5724
5724
|
mode,
|
|
5725
5725
|
onModeChange: setMode,
|
|
@@ -5731,22 +5731,22 @@ function ConnectedExportPanel({
|
|
|
5731
5731
|
),
|
|
5732
5732
|
mode !== "download" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
5733
5733
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5734
|
-
|
|
5734
|
+
chunkEAH7LFJN_cjs.ExportWorkspacePicker,
|
|
5735
5735
|
{
|
|
5736
5736
|
workspaces: workspaceOptions,
|
|
5737
5737
|
selectedId: targetId,
|
|
5738
5738
|
onSelect: setTargetId
|
|
5739
5739
|
}
|
|
5740
5740
|
),
|
|
5741
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5741
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.TransferConflictChooser, { value: conflict, onChange: setConflict })
|
|
5742
5742
|
] }),
|
|
5743
5743
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5744
|
-
|
|
5744
|
+
chunkEAH7LFJN_cjs.TransferPlanSummary,
|
|
5745
5745
|
{
|
|
5746
5746
|
lines: summary.lines,
|
|
5747
5747
|
warnings: summary.warnings,
|
|
5748
5748
|
isLoading: isPlanning,
|
|
5749
|
-
error:
|
|
5749
|
+
error: chunkGZPNBSRE_cjs.planFailure(planError),
|
|
5750
5750
|
onRetry: () => void refetchPlan()
|
|
5751
5751
|
}
|
|
5752
5752
|
),
|
|
@@ -5760,7 +5760,7 @@ function ConnectedExportPanel({
|
|
|
5760
5760
|
] })
|
|
5761
5761
|
] }),
|
|
5762
5762
|
!jobId && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5763
|
-
|
|
5763
|
+
chunkEAH7LFJN_cjs.ExportFooter,
|
|
5764
5764
|
{
|
|
5765
5765
|
onCancel: onClose,
|
|
5766
5766
|
onSubmit: handleSubmit,
|
|
@@ -5801,7 +5801,7 @@ function OpenExportDialog({
|
|
|
5801
5801
|
children: [
|
|
5802
5802
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkCVPV4I7Z_cjs.ModalHeader, { children: [
|
|
5803
5803
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5804
|
-
|
|
5804
|
+
chunkEAH7LFJN_cjs.ExportModalTitle,
|
|
5805
5805
|
{
|
|
5806
5806
|
workspace: workspace ? {
|
|
5807
5807
|
icon: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "touch-hit inline-flex", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -6218,7 +6218,7 @@ function ConnectedFieldsEditor({
|
|
|
6218
6218
|
const [sortBy, setSortBy] = react.useState("name-asc");
|
|
6219
6219
|
const [filterText, setFilterText] = react.useState("");
|
|
6220
6220
|
const fieldRows = react.useMemo(
|
|
6221
|
-
() => browser.flattenTagTree(
|
|
6221
|
+
() => browser.flattenTagTree(chunkEAH7LFJN_cjs.sortFields(chunkEAH7LFJN_cjs.filterFieldsByName(tags, filterText), sortBy)),
|
|
6222
6222
|
[tags, filterText, sortBy]
|
|
6223
6223
|
);
|
|
6224
6224
|
const exportItems = react.useMemo(
|
|
@@ -6238,7 +6238,7 @@ function ConnectedFieldsEditor({
|
|
|
6238
6238
|
setIsDeleting(false);
|
|
6239
6239
|
}
|
|
6240
6240
|
};
|
|
6241
|
-
const copy =
|
|
6241
|
+
const copy = chunkEAH7LFJN_cjs.fieldsApplyBarCopy({
|
|
6242
6242
|
nouns,
|
|
6243
6243
|
targetNoun,
|
|
6244
6244
|
fieldCount,
|
|
@@ -6247,9 +6247,9 @@ function ConnectedFieldsEditor({
|
|
|
6247
6247
|
isApplying,
|
|
6248
6248
|
isClearing
|
|
6249
6249
|
});
|
|
6250
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6250
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkEAH7LFJN_cjs.FieldsEditorRoot, { children: [
|
|
6251
6251
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6252
|
-
|
|
6252
|
+
chunkEAH7LFJN_cjs.FieldsEditorToolbar,
|
|
6253
6253
|
{
|
|
6254
6254
|
nouns,
|
|
6255
6255
|
onNew: () => {
|
|
@@ -6277,11 +6277,11 @@ function ConnectedFieldsEditor({
|
|
|
6277
6277
|
onSortByChange: setSortBy
|
|
6278
6278
|
}
|
|
6279
6279
|
),
|
|
6280
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
6280
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkEAH7LFJN_cjs.FieldsEditorList, { children: [
|
|
6281
6281
|
fieldRows.map(({ tag, depth, childCount }) => {
|
|
6282
6282
|
const isEditingThis = editingTagId === tag.external_id;
|
|
6283
6283
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6284
|
-
|
|
6284
|
+
chunkEAH7LFJN_cjs.FieldRow,
|
|
6285
6285
|
{
|
|
6286
6286
|
tagId: tag.external_id,
|
|
6287
6287
|
name: tag.name,
|
|
@@ -6334,10 +6334,10 @@ function ConnectedFieldsEditor({
|
|
|
6334
6334
|
tag.external_id
|
|
6335
6335
|
);
|
|
6336
6336
|
}),
|
|
6337
|
-
fieldRows.length === 0 && !isCreatingTag && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6337
|
+
fieldRows.length === 0 && !isCreatingTag && /* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.FieldsEmptyState, { children: chunkEAH7LFJN_cjs.fieldsEmptyText({ nouns, filterText, hasKind: !!kind }) })
|
|
6338
6338
|
] }),
|
|
6339
6339
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6340
|
-
|
|
6340
|
+
chunkEAH7LFJN_cjs.FieldsApplyBar,
|
|
6341
6341
|
{
|
|
6342
6342
|
hint: copy.hint,
|
|
6343
6343
|
applyLabel: copy.applyLabel,
|
|
@@ -6413,8 +6413,8 @@ function ConnectedFieldsManager({
|
|
|
6413
6413
|
}
|
|
6414
6414
|
);
|
|
6415
6415
|
const body = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
6416
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6417
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6416
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.FieldsManagerDefinition, { children: DEFINITIONS[activeKind] }),
|
|
6417
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.FieldsManagerBody, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6418
6418
|
ConnectedFieldsEditor,
|
|
6419
6419
|
{
|
|
6420
6420
|
group: activeKind,
|
|
@@ -6426,7 +6426,7 @@ function ConnectedFieldsManager({
|
|
|
6426
6426
|
] });
|
|
6427
6427
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col h-full", children: [
|
|
6428
6428
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkLYDSETR7_cjs.DraggableHeader, { children: [
|
|
6429
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6429
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.FieldsManagerTitle, { title, className: "px-4 pt-3.5 pb-2" }),
|
|
6430
6430
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-3", children: tabHeader })
|
|
6431
6431
|
] }),
|
|
6432
6432
|
body
|
|
@@ -6455,7 +6455,7 @@ function ConnectedFieldsManagerPanel({
|
|
|
6455
6455
|
const [createRequest, setCreateRequest] = react$1.useTransientView(FIELDS_MANAGER_CREATE_VIEW, 0);
|
|
6456
6456
|
const [kind, setKind] = react$1.useTransientView(FIELDS_MANAGER_KIND_VIEW, "label");
|
|
6457
6457
|
const documentIds = react$1.useArbiSessionState((s) => s.selectedDocumentIds);
|
|
6458
|
-
const reviewing =
|
|
6458
|
+
const reviewing = chunkAZUPMHZI_cjs.useFilesPrefs((state) => chunkAZUPMHZI_cjs.filesViewMode(state) === "navigator");
|
|
6459
6459
|
const viewingId = react$1.useArbiSessionState((s) => s.viewingDocument?.id ?? null);
|
|
6460
6460
|
const reviewingId = reviewing ? viewingId : null;
|
|
6461
6461
|
const handleClose = react.useCallback(() => {
|
|
@@ -6496,7 +6496,7 @@ function ConnectedFieldsManagerPanel({
|
|
|
6496
6496
|
onAnnotationCreated,
|
|
6497
6497
|
onAiFieldsApplied: (result) => {
|
|
6498
6498
|
session.closePanel(FIELDS_MANAGER_PANEL);
|
|
6499
|
-
const review =
|
|
6499
|
+
const review = chunkAZUPMHZI_cjs.useAiReviewStore.getState();
|
|
6500
6500
|
review.setRun(result);
|
|
6501
6501
|
review.setOpen(true);
|
|
6502
6502
|
}
|
|
@@ -6899,7 +6899,7 @@ var factNouns = () => ({
|
|
|
6899
6899
|
function useWorkspaceAsk() {
|
|
6900
6900
|
const { openNewConversation, openFiles } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
6901
6901
|
const { workspaceId } = chunkVWSOHZK2_cjs.useConnectedWorkspace();
|
|
6902
|
-
const setFilesViewMode =
|
|
6902
|
+
const setFilesViewMode = chunkAZUPMHZI_cjs.useFilesPrefs((state) => state.setViewMode);
|
|
6903
6903
|
const ask = react.useCallback(
|
|
6904
6904
|
(text2) => openNewConversation({ prompt: text2, keepDocumentOpen: true }),
|
|
6905
6905
|
[openNewConversation]
|
|
@@ -7465,7 +7465,7 @@ function useFactFilters(notes, view, chat) {
|
|
|
7465
7465
|
(selected, setSelected, opts) => {
|
|
7466
7466
|
const applied = new Set(selected);
|
|
7467
7467
|
return /* @__PURE__ */ jsxRuntime.jsx(chunkVD3HI5RF_cjs.FactFieldRow, { label: "Labels", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7468
|
-
|
|
7468
|
+
chunkEAH7LFJN_cjs.FieldLabelsSelect,
|
|
7469
7469
|
{
|
|
7470
7470
|
options: labelOptions,
|
|
7471
7471
|
appliedIds: applied,
|
|
@@ -7692,7 +7692,7 @@ var FactHeader = react.memo(function FactHeader2({
|
|
|
7692
7692
|
if (params.enableSorting) params.progressSort(e.shiftKey);
|
|
7693
7693
|
},
|
|
7694
7694
|
children: [
|
|
7695
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7695
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.FilterButton, { params, colId }),
|
|
7696
7696
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "order-2 min-w-0 flex-1 truncate", children: params.displayName }),
|
|
7697
7697
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "ag-sort-indicator-container order-2 flex-shrink-0", "aria-hidden": "true", children: [
|
|
7698
7698
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -8279,7 +8279,7 @@ function ConnectedFactsPage({ scope = null, onScopeChange } = {}) {
|
|
|
8279
8279
|
onNewFact: composing && !editingId ? () => void 0 : composer.startNewFact,
|
|
8280
8280
|
navSlotRef: setNavSlot,
|
|
8281
8281
|
navigator: view === "table" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
8282
|
-
|
|
8282
|
+
chunkAWQEN6WW_cjs.GridRowNavigator,
|
|
8283
8283
|
{
|
|
8284
8284
|
gridApi,
|
|
8285
8285
|
selectedId: editingId,
|
|
@@ -8301,7 +8301,7 @@ function ConnectedFactsPage({ scope = null, onScopeChange } = {}) {
|
|
|
8301
8301
|
),
|
|
8302
8302
|
view === "table" && /* @__PURE__ */ jsxRuntime.jsx(chunkVD3HI5RF_cjs.FactsFieldsButton, { getGridApi: () => gridApiRef.current }),
|
|
8303
8303
|
view === "table" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8304
|
-
|
|
8304
|
+
chunkEAH7LFJN_cjs.RowDensityControl,
|
|
8305
8305
|
{
|
|
8306
8306
|
rowHeight: factsRowHeight,
|
|
8307
8307
|
onRowHeightChange: pageView.setRowHeight,
|
|
@@ -8562,7 +8562,7 @@ var LIST_TYPES = /* @__PURE__ */ new Set(["person", "document", "relation"]);
|
|
|
8562
8562
|
var isBlank = (v) => v === null || v === void 0 || typeof v === "string" && v.trim() === "" || Array.isArray(v) && v.length === 0;
|
|
8563
8563
|
var needsValue = (op) => op !== "empty" && op !== "not_empty";
|
|
8564
8564
|
var hasUsableValue = (value) => typeof value === "number" || typeof value === "boolean" || typeof value === "string" && value !== "";
|
|
8565
|
-
var text = (row2, column) =>
|
|
8565
|
+
var text = (row2, column) => chunkR6HGMPF4_cjs.formatCell(row2.values[column.id], column.type, void 0, row2.titles);
|
|
8566
8566
|
function matchesSearch(row2, columns, needle) {
|
|
8567
8567
|
return columns.some((column) => {
|
|
8568
8568
|
if (text(row2, column).toLowerCase().includes(needle)) return true;
|
|
@@ -8572,20 +8572,20 @@ function matchesSearch(row2, columns, needle) {
|
|
|
8572
8572
|
}
|
|
8573
8573
|
function matchesFilter(row2, column, op, wanted) {
|
|
8574
8574
|
const raw = row2.values[column.id];
|
|
8575
|
-
const kit =
|
|
8575
|
+
const kit = chunkR6HGMPF4_cjs.kitOf(column.type);
|
|
8576
8576
|
if (op === "empty") return kit ? kit.empty(raw) : isBlank(raw);
|
|
8577
8577
|
if (op === "not_empty") return !(kit ? kit.empty(raw) : isBlank(raw));
|
|
8578
8578
|
if (kit) {
|
|
8579
8579
|
if (op !== "contains" && op !== "eq" && op !== "neq") return false;
|
|
8580
|
-
const has = column.type === "label" ?
|
|
8580
|
+
const has = column.type === "label" ? chunkR6HGMPF4_cjs.cellIds(raw).includes(wanted) : (Array.isArray(raw) ? raw : []).some(
|
|
8581
8581
|
(c) => c?.doc_ext_id === wanted
|
|
8582
8582
|
);
|
|
8583
8583
|
return op === "neq" ? !has : has;
|
|
8584
8584
|
}
|
|
8585
8585
|
const lower = wanted.toLowerCase();
|
|
8586
8586
|
if (LIST_TYPES.has(column.type)) {
|
|
8587
|
-
const has =
|
|
8588
|
-
(id) => id === wanted ||
|
|
8587
|
+
const has = chunkR6HGMPF4_cjs.cellIds(raw).some(
|
|
8588
|
+
(id) => id === wanted || chunkR6HGMPF4_cjs.titleOf(id, row2.titles).toLowerCase() === lower
|
|
8589
8589
|
);
|
|
8590
8590
|
return op === "neq" ? !has : has;
|
|
8591
8591
|
}
|
|
@@ -8900,7 +8900,7 @@ var SEARCHED_COLUMNS = /* @__PURE__ */ new Set([
|
|
|
8900
8900
|
FACT_COLUMN.labels,
|
|
8901
8901
|
FACT_COLUMN.sources
|
|
8902
8902
|
]);
|
|
8903
|
-
var LAYOUT_LABELS = [
|
|
8903
|
+
var LAYOUT_LABELS = [chunkR6HGMPF4_cjs.TABLE_LAYOUT, chunkR6HGMPF4_cjs.CALENDAR_LAYOUT, chunkR6HGMPF4_cjs.GANTT_LAYOUT].map((l) => l.label);
|
|
8904
8904
|
var CHARS_PER_TOKEN2 = 4;
|
|
8905
8905
|
var INLINE_DATE_RE2 = /^\d{4}(-\d{2})?(-\d{2})?$/;
|
|
8906
8906
|
var DEFAULT_COLUMNS = [
|
|
@@ -9021,10 +9021,17 @@ function createFactsSource(options = {}) {
|
|
|
9021
9021
|
const { workspaceId } = chunkVWSOHZK2_cjs.useConnectedWorkspace();
|
|
9022
9022
|
const { data: facts } = react$1.useFacts(workspaceId);
|
|
9023
9023
|
const count2 = facts ? `${facts.length} ${facts.length === 1 ? "row" : "rows"}` : void 0;
|
|
9024
|
-
const { name = "Facts", description, icon: icon2 = lucideReact.Milestone } = options;
|
|
9024
|
+
const { name = "Facts", description, icon: icon2 = lucideReact.Milestone, showViews = true } = options;
|
|
9025
9025
|
return react.useMemo(
|
|
9026
|
-
() => ({
|
|
9027
|
-
|
|
9026
|
+
() => ({
|
|
9027
|
+
id: SOURCE_ID,
|
|
9028
|
+
name,
|
|
9029
|
+
description,
|
|
9030
|
+
icon: icon2,
|
|
9031
|
+
count: count2,
|
|
9032
|
+
...showViews ? { views: LAYOUT_LABELS } : {}
|
|
9033
|
+
}),
|
|
9034
|
+
[name, description, icon2, count2, showViews]
|
|
9028
9035
|
);
|
|
9029
9036
|
};
|
|
9030
9037
|
const useOpen = (request) => useFactsOpen(options, request);
|
|
@@ -9474,9 +9481,9 @@ function useFactsOpen(options, request) {
|
|
|
9474
9481
|
);
|
|
9475
9482
|
const layouts = react.useMemo(
|
|
9476
9483
|
() => [
|
|
9477
|
-
|
|
9478
|
-
|
|
9479
|
-
|
|
9484
|
+
chunkR6HGMPF4_cjs.TABLE_LAYOUT,
|
|
9485
|
+
chunkR6HGMPF4_cjs.CALENDAR_LAYOUT,
|
|
9486
|
+
chunkR6HGMPF4_cjs.GANTT_LAYOUT,
|
|
9480
9487
|
{
|
|
9481
9488
|
id: "smart_search",
|
|
9482
9489
|
label: "Smart Search",
|
|
@@ -9504,7 +9511,7 @@ function useFactsOpen(options, request) {
|
|
|
9504
9511
|
const lines = [
|
|
9505
9512
|
picked.map((c) => csvCell(c.name)).join(","),
|
|
9506
9513
|
...shown.map(
|
|
9507
|
-
(row2) => picked.map((c) => csvCell(
|
|
9514
|
+
(row2) => picked.map((c) => csvCell(chunkR6HGMPF4_cjs.formatCell(row2.values[c.id], c.type, void 0, row2.titles))).join(",")
|
|
9508
9515
|
)
|
|
9509
9516
|
];
|
|
9510
9517
|
core$1.downloadBlob(new Blob([lines.join("\n")], { type: "text/csv;charset=utf-8" }), "facts.csv");
|
|
@@ -10080,7 +10087,7 @@ function FactsRowPage({
|
|
|
10080
10087
|
) })
|
|
10081
10088
|
] }),
|
|
10082
10089
|
layout: (parts) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
10083
|
-
|
|
10090
|
+
chunkR6HGMPF4_cjs.DatabaseRowDetail,
|
|
10084
10091
|
{
|
|
10085
10092
|
row: pageRow,
|
|
10086
10093
|
columns: pageColumns,
|
|
@@ -10128,7 +10135,7 @@ function useConnectedShellWorkspaces(options = {}) {
|
|
|
10128
10135
|
function ConnectedSsoDisconnect() {
|
|
10129
10136
|
const { client } = react$1.useAccountClient();
|
|
10130
10137
|
const { data: profile } = react$1.useProfile();
|
|
10131
|
-
const auth =
|
|
10138
|
+
const auth = chunk33236Q7Y_cjs.useAuthPages();
|
|
10132
10139
|
const { notify: notify19 } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
10133
10140
|
const [open, setOpen] = react.useState(false);
|
|
10134
10141
|
const [step, setStep] = react.useState("email");
|
|
@@ -10306,14 +10313,14 @@ function ConnectedAccountSettings({
|
|
|
10306
10313
|
}) {
|
|
10307
10314
|
const [logoutOpen, setLogoutOpen] = react.useState(false);
|
|
10308
10315
|
return /* @__PURE__ */ jsxRuntime.jsxs(chunkQQMMCXBP_cjs.SettingsPanel, { className: "max-w-2xl", children: [
|
|
10309
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
10316
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk33236Q7Y_cjs.ConnectedProfileCard, { avatarClassName, nameBadge: profileBadge }),
|
|
10310
10317
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedBoxPortalSection, {}),
|
|
10311
10318
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkQQMMCXBP_cjs.SettingsDisclosure, { title: "More", testId: "account-more-settings", children: [
|
|
10312
10319
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedSsoDisconnect, {}),
|
|
10313
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
10320
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk33236Q7Y_cjs.ConnectedSecuritySection, { children: securityRows }),
|
|
10314
10321
|
moreSettings,
|
|
10315
10322
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
10316
|
-
|
|
10323
|
+
chunk33236Q7Y_cjs.ConnectedIdentityVerification,
|
|
10317
10324
|
{
|
|
10318
10325
|
collapsible: true,
|
|
10319
10326
|
onManageBilling,
|
|
@@ -10323,7 +10330,7 @@ function ConnectedAccountSettings({
|
|
|
10323
10330
|
] }),
|
|
10324
10331
|
/* @__PURE__ */ jsxRuntime.jsx(chunkQQMMCXBP_cjs.SettingsSection, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Wifi, {}), title: "Session", children: /* @__PURE__ */ jsxRuntime.jsxs(chunkQQMMCXBP_cjs.SettingsCard, { children: [
|
|
10325
10332
|
connection && /* @__PURE__ */ jsxRuntime.jsx(ServerConnectionRow, { ...connection }),
|
|
10326
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
10333
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk33236Q7Y_cjs.ConnectedSessionsRow, { renderSessionIcon }),
|
|
10327
10334
|
/* @__PURE__ */ jsxRuntime.jsx(chunkQQMMCXBP_cjs.SettingsRow, { label: "Logout", description: "Sign out of your account on this device.", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
10328
10335
|
ui.Button,
|
|
10329
10336
|
{
|
|
@@ -10340,9 +10347,9 @@ function ConnectedAccountSettings({
|
|
|
10340
10347
|
}
|
|
10341
10348
|
) })
|
|
10342
10349
|
] }) }),
|
|
10343
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
10350
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk33236Q7Y_cjs.ConnectedDangerZone, { renderSubscriptionLink }),
|
|
10344
10351
|
!onLogout && /* @__PURE__ */ jsxRuntime.jsx(
|
|
10345
|
-
|
|
10352
|
+
chunk33236Q7Y_cjs.ConnectedLogoutDialog,
|
|
10346
10353
|
{
|
|
10347
10354
|
open: logoutOpen,
|
|
10348
10355
|
onClose: () => setLogoutOpen(false),
|
|
@@ -10685,7 +10692,7 @@ function ConnectedPrivacySettings({
|
|
|
10685
10692
|
}
|
|
10686
10693
|
)
|
|
10687
10694
|
] }) }),
|
|
10688
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
10695
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk33236Q7Y_cjs.ConnectedNotificationPreferences, {})
|
|
10689
10696
|
] });
|
|
10690
10697
|
}
|
|
10691
10698
|
var PROVIDER_NAMES = {
|
|
@@ -12711,7 +12718,7 @@ function ConnectedRecoveryKeyDialog({
|
|
|
12711
12718
|
const arbi = react$1.useArbi();
|
|
12712
12719
|
const { user, isSso: isSsoMode } = react$1.useArbiSession();
|
|
12713
12720
|
const userEmail = user?.email;
|
|
12714
|
-
const sso =
|
|
12721
|
+
const sso = chunk33236Q7Y_cjs.useSsoSignIn();
|
|
12715
12722
|
const handleVerify = async () => {
|
|
12716
12723
|
setError(null);
|
|
12717
12724
|
if (!password) {
|
|
@@ -12872,7 +12879,7 @@ function ConnectedRemoteControlSwitch() {
|
|
|
12872
12879
|
}
|
|
12873
12880
|
function RemoteControlSwitch() {
|
|
12874
12881
|
const enabled = react$1.useRemoteControl((state) => state.enabled);
|
|
12875
|
-
const remote =
|
|
12882
|
+
const remote = chunk33236Q7Y_cjs.useRemoteControlActions();
|
|
12876
12883
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12877
12884
|
chunkQQMMCXBP_cjs.SettingsRow,
|
|
12878
12885
|
{
|
|
@@ -14094,7 +14101,7 @@ function ConnectedWorkspaceShareDialog({
|
|
|
14094
14101
|
chunk223D4727_cjs.ModalBreadcrumbHeader,
|
|
14095
14102
|
{
|
|
14096
14103
|
workspaceName: workspace.name,
|
|
14097
|
-
workspaceIcon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
14104
|
+
workspaceIcon: /* @__PURE__ */ jsxRuntime.jsx(chunkGZPNBSRE_cjs.ConnectedWorkspaceEntity, { workspace, size: 20, variant: "icon" }),
|
|
14098
14105
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.UserPlus, { className: "w-4 h-4" }),
|
|
14099
14106
|
title: labels.title
|
|
14100
14107
|
}
|
|
@@ -15177,13 +15184,13 @@ function ConnectedWorkspaceSettings({
|
|
|
15177
15184
|
const [membersExpanded, setMembersExpanded] = react.useState(false);
|
|
15178
15185
|
const [shareOpen, setShareOpen] = react.useState(false);
|
|
15179
15186
|
if (!workspace) {
|
|
15180
|
-
return /* @__PURE__ */ jsxRuntime.jsx(chunkWHHBEV4G_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
15187
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkWHHBEV4G_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkAWQEN6WW_cjs.LoadingIndicator, { message: "Loading workspace..." }) });
|
|
15181
15188
|
}
|
|
15182
15189
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
15183
15190
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkWHHBEV4G_cjs.WorkspacePageFrame, { testId, children: [
|
|
15184
15191
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkWHHBEV4G_cjs.WorkspaceIdentityPanel, { children: [
|
|
15185
15192
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
15186
|
-
|
|
15193
|
+
chunkAWQEN6WW_cjs.EntityIdentityBar,
|
|
15187
15194
|
{
|
|
15188
15195
|
testId: "workspace-identity-bar",
|
|
15189
15196
|
canEdit: isOwner,
|
|
@@ -15200,7 +15207,7 @@ function ConnectedWorkspaceSettings({
|
|
|
15200
15207
|
label: "Name",
|
|
15201
15208
|
value: workspace.name,
|
|
15202
15209
|
placeholder: "Untitled",
|
|
15203
|
-
maxLength:
|
|
15210
|
+
maxLength: chunkAWQEN6WW_cjs.IDENTITY_NAME_MAX_LENGTH,
|
|
15204
15211
|
valueClassName: "truncate text-base font-semibold",
|
|
15205
15212
|
testId: "workspace-home-title",
|
|
15206
15213
|
hideLabel: true,
|
|
@@ -16699,36 +16706,36 @@ function ConnectedSharePointAdminConsentPage({
|
|
|
16699
16706
|
const result = givenResult === void 0 ? queryResult : givenResult;
|
|
16700
16707
|
const { apiBaseUrl } = chunkHN56WWBR_cjs.useBlocksEnvironment().runtimeConfig;
|
|
16701
16708
|
const consentUrl = `${apiBaseUrl}/v1/connectors/microsoft_sharepoint/admin-consent`;
|
|
16702
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
16709
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkQDIIOZBP_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkQDIIOZBP_cjs.ConsentCard, { size: "md", children: [
|
|
16703
16710
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16704
|
-
|
|
16711
|
+
chunkQDIIOZBP_cjs.ConsentHeader,
|
|
16705
16712
|
{
|
|
16706
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
16713
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.VendorLogo, { vendorKey: "microsoft_sharepoint", product: "sharepoint" }),
|
|
16707
16714
|
title: "Approve ARBI for SharePoint access",
|
|
16708
16715
|
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."
|
|
16709
16716
|
}
|
|
16710
16717
|
),
|
|
16711
|
-
result === "granted" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
16712
|
-
result === "declined" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
16713
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
16718
|
+
result === "granted" && /* @__PURE__ */ jsxRuntime.jsx(chunkQDIIOZBP_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." }),
|
|
16719
|
+
result === "declined" && /* @__PURE__ */ jsxRuntime.jsx(chunkQDIIOZBP_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." }),
|
|
16720
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkQDIIOZBP_cjs.ConsentSection, { title: "What you are approving", children: [
|
|
16714
16721
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16715
|
-
|
|
16722
|
+
chunkQDIIOZBP_cjs.ConsentBulletList,
|
|
16716
16723
|
{
|
|
16717
16724
|
items: [
|
|
16718
16725
|
/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
16719
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16726
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQDIIOZBP_cjs.ConsentStrong, { children: "Read SharePoint sites and files" }),
|
|
16720
16727
|
" \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."
|
|
16721
16728
|
] }),
|
|
16722
16729
|
/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
16723
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16730
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQDIIOZBP_cjs.ConsentStrong, { children: "Sign users in and keep access" }),
|
|
16724
16731
|
" \u2014 standard sign-in (openid, profile, email) and offline access so syncs keep working between sessions."
|
|
16725
16732
|
] })
|
|
16726
16733
|
]
|
|
16727
16734
|
}
|
|
16728
16735
|
),
|
|
16729
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16736
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQDIIOZBP_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." }),
|
|
16730
16737
|
/* @__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" }) }),
|
|
16731
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16738
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQDIIOZBP_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." })
|
|
16732
16739
|
] })
|
|
16733
16740
|
] }) });
|
|
16734
16741
|
}
|
|
@@ -18896,7 +18903,12 @@ function ProjectUsagePanels({
|
|
|
18896
18903
|
) })
|
|
18897
18904
|
] });
|
|
18898
18905
|
}
|
|
18899
|
-
function ProjectDetail({
|
|
18906
|
+
function ProjectDetail({
|
|
18907
|
+
projectExtId,
|
|
18908
|
+
storage,
|
|
18909
|
+
hideNotOwnerNotice = false,
|
|
18910
|
+
className
|
|
18911
|
+
}) {
|
|
18900
18912
|
const { stripeEnabled } = chunkL3MYUPSH_cjs.useBillingSupport();
|
|
18901
18913
|
const { openDialog: openDialog2 } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
18902
18914
|
const [planOpen, setPlanOpen] = react.useState(false);
|
|
@@ -18938,77 +18950,85 @@ function ProjectDetail({ projectExtId, storage }) {
|
|
|
18938
18950
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm text-muted-foreground p-6", "data-testid": "project-detail-missing", children: "This project is no longer available." });
|
|
18939
18951
|
}
|
|
18940
18952
|
if (project.created_by !== currentUserExtId) {
|
|
18953
|
+
if (hideNotOwnerNotice) return null;
|
|
18941
18954
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm text-muted-foreground p-6", "data-testid": "project-detail-not-owner", children: "Only the project owner can see usage detail." });
|
|
18942
18955
|
}
|
|
18943
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
18944
|
-
|
|
18945
|
-
|
|
18946
|
-
|
|
18947
|
-
|
|
18948
|
-
|
|
18949
|
-
{
|
|
18950
|
-
|
|
18951
|
-
|
|
18952
|
-
|
|
18953
|
-
|
|
18954
|
-
|
|
18955
|
-
|
|
18956
|
-
|
|
18957
|
-
|
|
18958
|
-
|
|
18959
|
-
|
|
18960
|
-
|
|
18961
|
-
|
|
18962
|
-
|
|
18963
|
-
|
|
18964
|
-
setRenameOpen(true);
|
|
18965
|
-
},
|
|
18966
|
-
badge: stripeEnabled ? /* @__PURE__ */ jsxRuntime.jsx(chunkLYDSETR7_cjs.PlanBadge, { ...chunkL3MYUPSH_cjs.planBadgeView(project), size: "md" }) : void 0
|
|
18967
|
-
}
|
|
18968
|
-
),
|
|
18969
|
-
hasBilling && project.subscription === "suspended" ? /* @__PURE__ */ jsxRuntime.jsx(SuspendedProjectRecovery, { project, onResubscribe: () => setPlanOpen(true) }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
18970
|
-
hasBilling && /* @__PURE__ */ jsxRuntime.jsx(ProjectBilling, { project, onChangePlan: () => setPlanOpen(true) }),
|
|
18971
|
-
/* @__PURE__ */ jsxRuntime.jsxs(chunkLYDSETR7_cjs.ProjectDetailSection, { title: hasBilling ? "Collaborator limits" : "Subscription limits", children: [
|
|
18972
|
-
!hasBilling && /* @__PURE__ */ jsxRuntime.jsx(SubscriptionStatus, { project }),
|
|
18973
|
-
hasBilling && project.addons && /* @__PURE__ */ jsxRuntime.jsx(CollaboratorPlan, { project }),
|
|
18974
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
18975
|
-
"div",
|
|
18956
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
18957
|
+
"div",
|
|
18958
|
+
{
|
|
18959
|
+
className: ui.cn("p-6 space-y-6 max-w-4xl", className),
|
|
18960
|
+
"data-testid": `project-detail-${project.external_id}`,
|
|
18961
|
+
children: [
|
|
18962
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-xl font-semibold", children: "Subscription details" }),
|
|
18963
|
+
project.spend_limits_confirmation_required && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rounded-lg border border-amber-200 bg-amber-50 p-4 text-sm", children: [
|
|
18964
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { children: "Your subscription is active. Confirm your project and collaborator limits to enable extra spending." }),
|
|
18965
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18966
|
+
"button",
|
|
18967
|
+
{
|
|
18968
|
+
type: "button",
|
|
18969
|
+
className: "mt-2 font-semibold text-primary underline",
|
|
18970
|
+
onClick: () => openDialog2("subscriptionSetup", { projectId: project.external_id }),
|
|
18971
|
+
children: "Confirm spending limits"
|
|
18972
|
+
}
|
|
18973
|
+
)
|
|
18974
|
+
] }),
|
|
18975
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18976
|
+
chunkLYDSETR7_cjs.ProjectDetailHeader,
|
|
18976
18977
|
{
|
|
18977
|
-
|
|
18978
|
-
|
|
18979
|
-
|
|
18980
|
-
|
|
18981
|
-
|
|
18982
|
-
|
|
18983
|
-
|
|
18984
|
-
]
|
|
18978
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(ui.EntityIcon, { entityType: "PROJECT" }),
|
|
18979
|
+
name: project.name,
|
|
18980
|
+
onRename: () => {
|
|
18981
|
+
setRenameValue(project.name);
|
|
18982
|
+
setRenameOpen(true);
|
|
18983
|
+
},
|
|
18984
|
+
badge: stripeEnabled ? /* @__PURE__ */ jsxRuntime.jsx(chunkLYDSETR7_cjs.PlanBadge, { ...chunkL3MYUPSH_cjs.planBadgeView(project), size: "md" }) : void 0
|
|
18985
18985
|
}
|
|
18986
|
-
)
|
|
18987
|
-
|
|
18988
|
-
|
|
18989
|
-
|
|
18990
|
-
|
|
18991
|
-
|
|
18992
|
-
|
|
18993
|
-
|
|
18994
|
-
|
|
18995
|
-
|
|
18996
|
-
|
|
18997
|
-
|
|
18998
|
-
|
|
18999
|
-
|
|
19000
|
-
|
|
19001
|
-
|
|
19002
|
-
|
|
19003
|
-
|
|
19004
|
-
|
|
19005
|
-
|
|
19006
|
-
|
|
19007
|
-
|
|
19008
|
-
|
|
19009
|
-
|
|
19010
|
-
|
|
19011
|
-
|
|
18986
|
+
),
|
|
18987
|
+
hasBilling && project.subscription === "suspended" ? /* @__PURE__ */ jsxRuntime.jsx(SuspendedProjectRecovery, { project, onResubscribe: () => setPlanOpen(true) }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
18988
|
+
hasBilling && /* @__PURE__ */ jsxRuntime.jsx(ProjectBilling, { project, onChangePlan: () => setPlanOpen(true) }),
|
|
18989
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkLYDSETR7_cjs.ProjectDetailSection, { title: hasBilling ? "Collaborator limits" : "Subscription limits", children: [
|
|
18990
|
+
!hasBilling && /* @__PURE__ */ jsxRuntime.jsx(SubscriptionStatus, { project }),
|
|
18991
|
+
hasBilling && project.addons && /* @__PURE__ */ jsxRuntime.jsx(CollaboratorPlan, { project }),
|
|
18992
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
18993
|
+
"div",
|
|
18994
|
+
{
|
|
18995
|
+
className: hasBilling ? "flex flex-wrap items-center justify-between gap-x-6 gap-y-3" : "mt-5 flex flex-wrap items-center justify-between gap-x-6 gap-y-3 border-t border-border pt-5",
|
|
18996
|
+
children: [
|
|
18997
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
|
|
18998
|
+
/* @__PURE__ */ jsxRuntime.jsx("h4", { className: "text-sm font-semibold text-foreground", children: "Daily limit per collaborator" }),
|
|
18999
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-0.5 text-sm text-muted-foreground", children: "Limit the AI Credits each collaborator on this project can use." })
|
|
19000
|
+
] }),
|
|
19001
|
+
/* @__PURE__ */ jsxRuntime.jsx(DailyCapEditor, { project })
|
|
19002
|
+
]
|
|
19003
|
+
}
|
|
19004
|
+
)
|
|
19005
|
+
] }),
|
|
19006
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkLYDSETR7_cjs.ProjectDetailSection, { title: "Usage", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
19007
|
+
ProjectUsageContent,
|
|
19008
|
+
{
|
|
19009
|
+
projectExtId: project.external_id,
|
|
19010
|
+
projectName: project.name,
|
|
19011
|
+
aiUsageLimit: project.quotas?.ai_usage?.limit
|
|
19012
|
+
}
|
|
19013
|
+
) }),
|
|
19014
|
+
storage
|
|
19015
|
+
] }),
|
|
19016
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19017
|
+
chunkLYDSETR7_cjs.RenameDialog,
|
|
19018
|
+
{
|
|
19019
|
+
open: renameOpen,
|
|
19020
|
+
onClose: () => setRenameOpen(false),
|
|
19021
|
+
value: renameValue,
|
|
19022
|
+
onChange: setRenameValue,
|
|
19023
|
+
onSave: handleSaveRename,
|
|
19024
|
+
isSaving: updateProject.isPending,
|
|
19025
|
+
testId: "project-detail-rename-input"
|
|
19026
|
+
}
|
|
19027
|
+
),
|
|
19028
|
+
/* @__PURE__ */ jsxRuntime.jsx(ChangePlanDialog, { project, open: planOpen, onOpenChange: setPlanOpen })
|
|
19029
|
+
]
|
|
19030
|
+
}
|
|
19031
|
+
);
|
|
19012
19032
|
}
|
|
19013
19033
|
function useAutoRefreshPendingProjects() {
|
|
19014
19034
|
const { data: projects } = react$1.useProjects();
|
|
@@ -19941,7 +19961,7 @@ function ConnectedWorkspaceList({
|
|
|
19941
19961
|
}
|
|
19942
19962
|
);
|
|
19943
19963
|
}
|
|
19944
|
-
if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(
|
|
19964
|
+
if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(chunkAWQEN6WW_cjs.LoadingIndicator, { message: "Loading workspaces..." });
|
|
19945
19965
|
if (list.error) {
|
|
19946
19966
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
19947
19967
|
chunkDSLMJ24E_cjs.HomeLoadError,
|
|
@@ -20014,7 +20034,7 @@ function ConnectedWorkspaceList({
|
|
|
20014
20034
|
workspaceState
|
|
20015
20035
|
}
|
|
20016
20036
|
) })
|
|
20017
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(react.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
20037
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(react.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkAWQEN6WW_cjs.LoadingIndicator, { message: "Loading grid..." }), children: /* @__PURE__ */ jsxRuntime.jsx(chunkDSLMJ24E_cjs.HomeCenteredColumn, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
20018
20038
|
WorkspaceTableView,
|
|
20019
20039
|
{
|
|
20020
20040
|
list,
|
|
@@ -20216,7 +20236,7 @@ function ConnectedProjectsListPage({
|
|
|
20216
20236
|
};
|
|
20217
20237
|
const { openProject } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
20218
20238
|
const [search, setSearch] = react.useState("");
|
|
20219
|
-
const { projects, isLoading } =
|
|
20239
|
+
const { projects, isLoading } = chunkGLNL5AL5_cjs.useProjectSummaries();
|
|
20220
20240
|
const rows = react.useMemo(() => {
|
|
20221
20241
|
const q = search.trim().toLowerCase();
|
|
20222
20242
|
if (!q) return projects;
|
|
@@ -20287,7 +20307,7 @@ function ConnectedProjectsListPage({
|
|
|
20287
20307
|
}
|
|
20288
20308
|
),
|
|
20289
20309
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
20290
|
-
|
|
20310
|
+
chunkAWQEN6WW_cjs.Toolbar,
|
|
20291
20311
|
{
|
|
20292
20312
|
search,
|
|
20293
20313
|
onSearch: setSearch,
|
|
@@ -20349,7 +20369,7 @@ function ProjectDetailsForm({
|
|
|
20349
20369
|
const labels = { ...DEFAULT_PROJECT_DETAILS_LABELS, ...given };
|
|
20350
20370
|
const { notify: notify19 } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
20351
20371
|
const update = react$1.useUpdateProjectFields();
|
|
20352
|
-
const workspace =
|
|
20372
|
+
const workspace = chunkGLNL5AL5_cjs.primaryProjectWorkspace(project);
|
|
20353
20373
|
const { data: members = [] } = react$1.useWorkspaceUsers(workspace?.id);
|
|
20354
20374
|
const people = members.filter((m) => !m.user.external_id.startsWith("agt-"));
|
|
20355
20375
|
const currency = project.budget?.currency ?? "GBP";
|
|
@@ -20474,7 +20494,7 @@ var COMPACT_BELOW = 132;
|
|
|
20474
20494
|
var NO_DOCUMENTS = [];
|
|
20475
20495
|
function useFilesWorkspace() {
|
|
20476
20496
|
const { workspaceId, userId, live } = chunkVWSOHZK2_cjs.useConnectedWorkspace();
|
|
20477
|
-
const { members, role } =
|
|
20497
|
+
const { members, role } = chunkVJHDCYKE_cjs.useConnectedWorkspaceRole();
|
|
20478
20498
|
const { data: workspaces } = react$1.useWorkspaces({ enabled: live });
|
|
20479
20499
|
const workspaceName = workspaces?.find((w) => w.external_id === workspaceId)?.name;
|
|
20480
20500
|
return {
|
|
@@ -20538,9 +20558,9 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
20538
20558
|
for (const tag of workspaceTags ?? []) map.set(tag.external_id, tag.name);
|
|
20539
20559
|
return map;
|
|
20540
20560
|
}, [workspaceTags]);
|
|
20541
|
-
const pendingFolders =
|
|
20542
|
-
const addPendingFolder =
|
|
20543
|
-
const removePendingFolder =
|
|
20561
|
+
const pendingFolders = chunkAZUPMHZI_cjs.usePendingFolders(wsId);
|
|
20562
|
+
const addPendingFolder = chunkAZUPMHZI_cjs.useFilesStore((state) => state.addPendingFolder);
|
|
20563
|
+
const removePendingFolder = chunkAZUPMHZI_cjs.useFilesStore((state) => state.removePendingFolder);
|
|
20544
20564
|
const [editingFolderPath, setEditingFolderPath] = react.useState(null);
|
|
20545
20565
|
const isSearching = search.trim().length > 0;
|
|
20546
20566
|
const selectedSet = react.useMemo(() => new Set(selectedIds), [selectedIds]);
|
|
@@ -20549,8 +20569,8 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
20549
20569
|
const { folders, files } = react.useMemo(() => {
|
|
20550
20570
|
const result = isSearching ? {
|
|
20551
20571
|
folders: [],
|
|
20552
|
-
files:
|
|
20553
|
-
} :
|
|
20572
|
+
files: chunkEAH7LFJN_cjs.searchExplorerDocuments(documents, search, sort)
|
|
20573
|
+
} : chunkEAH7LFJN_cjs.buildExplorerEntries(documents, currentPath, sort, [...pendingFolders]);
|
|
20554
20574
|
if (sortReversed) result.files = [...result.files].reverse();
|
|
20555
20575
|
return result;
|
|
20556
20576
|
}, [documents, currentPath, sort, isSearching, search, sortReversed, pendingFolders]);
|
|
@@ -20561,7 +20581,7 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
20561
20581
|
const orderedFileIds = react.useMemo(() => files.map((d) => d.external_id), [files]);
|
|
20562
20582
|
const folderDocs = react.useMemo(() => {
|
|
20563
20583
|
const map = /* @__PURE__ */ new Map();
|
|
20564
|
-
for (const f of folders) map.set(f.path.join("/"),
|
|
20584
|
+
for (const f of folders) map.set(f.path.join("/"), chunkEAH7LFJN_cjs.collectFolderDocs(documents, f.path));
|
|
20565
20585
|
return map;
|
|
20566
20586
|
}, [folders, documents]);
|
|
20567
20587
|
const folderSelection = react.useMemo(() => {
|
|
@@ -20709,7 +20729,7 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
20709
20729
|
let name = base;
|
|
20710
20730
|
let i = 2;
|
|
20711
20731
|
while (siblings.has(name.toLowerCase())) name = `${base} ${i++}`;
|
|
20712
|
-
const path =
|
|
20732
|
+
const path = chunkEAH7LFJN_cjs.joinFolderPath([...currentPath, name]);
|
|
20713
20733
|
if (!path) return;
|
|
20714
20734
|
addPendingFolder(wsId, path);
|
|
20715
20735
|
setEditingFolderPath(path);
|
|
@@ -20745,10 +20765,10 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
20745
20765
|
notify19(`A folder named "${name}" already exists here.`, "error");
|
|
20746
20766
|
return;
|
|
20747
20767
|
}
|
|
20748
|
-
const oldPath =
|
|
20768
|
+
const oldPath = chunkEAH7LFJN_cjs.joinFolderPath(folder.path);
|
|
20749
20769
|
const newPrefix = [...folder.path.slice(0, -1), name];
|
|
20750
|
-
const newPath =
|
|
20751
|
-
const docs =
|
|
20770
|
+
const newPath = chunkEAH7LFJN_cjs.joinFolderPath(newPrefix);
|
|
20771
|
+
const docs = chunkEAH7LFJN_cjs.collectFolderDocs(documents, folder.path);
|
|
20752
20772
|
try {
|
|
20753
20773
|
if (await renameFolder(docs, folder.path, newPrefix) > 0) {
|
|
20754
20774
|
notify19(`Renamed folder to "${name}"`, "success");
|
|
@@ -20807,7 +20827,7 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
20807
20827
|
const handleToggleFolder = react.useCallback(
|
|
20808
20828
|
(folder, e) => {
|
|
20809
20829
|
e.stopPropagation();
|
|
20810
|
-
const ids =
|
|
20830
|
+
const ids = chunkEAH7LFJN_cjs.collectFolderDocs(documents, folder.path).map((d) => d.external_id);
|
|
20811
20831
|
if (ids.length === 0) return;
|
|
20812
20832
|
if (ids.every((id) => selectedSet.has(id))) {
|
|
20813
20833
|
const remove = new Set(ids);
|
|
@@ -20868,9 +20888,9 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
20868
20888
|
);
|
|
20869
20889
|
const handleDelete = react.useCallback(
|
|
20870
20890
|
async (doc) => {
|
|
20871
|
-
const name =
|
|
20891
|
+
const name = chunkEAH7LFJN_cjs.getExplorerDisplayName(doc);
|
|
20872
20892
|
const confirmed = await confirm({
|
|
20873
|
-
message: `Delete "${name}"? ${
|
|
20893
|
+
message: `Delete "${name}"? ${chunkEAH7LFJN_cjs.RECENTLY_DELETED_HINT}`,
|
|
20874
20894
|
title: "Delete file"
|
|
20875
20895
|
});
|
|
20876
20896
|
if (!confirmed) return;
|
|
@@ -20890,7 +20910,7 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
20890
20910
|
);
|
|
20891
20911
|
const handleFolderDownload = react.useCallback(
|
|
20892
20912
|
(folder) => {
|
|
20893
|
-
const docs =
|
|
20913
|
+
const docs = chunkEAH7LFJN_cjs.collectFolderDocs(documents, folder.path);
|
|
20894
20914
|
if (docs.length > 0) void downloadDocuments(docs);
|
|
20895
20915
|
},
|
|
20896
20916
|
[documents, downloadDocuments]
|
|
@@ -20899,7 +20919,7 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
20899
20919
|
if (onFolderMove) return onFolderMove;
|
|
20900
20920
|
if (!onMoveSelected) return void 0;
|
|
20901
20921
|
return (folder) => {
|
|
20902
|
-
const ids =
|
|
20922
|
+
const ids = chunkEAH7LFJN_cjs.collectFolderDocs(documents, folder.path).map((d) => d.external_id);
|
|
20903
20923
|
if (ids.length === 0) return;
|
|
20904
20924
|
onSelectionChange(ids);
|
|
20905
20925
|
onMoveSelected();
|
|
@@ -20907,14 +20927,14 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
20907
20927
|
}, [documents, onFolderMove, onMoveSelected, onSelectionChange]);
|
|
20908
20928
|
const handleFolderDelete = react.useCallback(
|
|
20909
20929
|
async (folder) => {
|
|
20910
|
-
const docs =
|
|
20930
|
+
const docs = chunkEAH7LFJN_cjs.collectFolderDocs(documents, folder.path);
|
|
20911
20931
|
if (docs.length === 0) {
|
|
20912
|
-
const path =
|
|
20932
|
+
const path = chunkEAH7LFJN_cjs.joinFolderPath(folder.path);
|
|
20913
20933
|
if (wsId && path) removePendingFolder(wsId, path);
|
|
20914
20934
|
return;
|
|
20915
20935
|
}
|
|
20916
20936
|
const confirmed = await confirm({
|
|
20917
|
-
message: `Delete folder "${folder.name}" and its ${docs.length} item${docs.length === 1 ? "" : "s"}? ${
|
|
20937
|
+
message: `Delete folder "${folder.name}" and its ${docs.length} item${docs.length === 1 ? "" : "s"}? ${chunkEAH7LFJN_cjs.RECENTLY_DELETED_HINT_PLURAL}`,
|
|
20918
20938
|
title: "Delete folder"
|
|
20919
20939
|
});
|
|
20920
20940
|
if (!confirmed) return;
|
|
@@ -20931,8 +20951,8 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
20931
20951
|
[confirm, documents, deleteDocuments, onSelectionChange, removePendingFolder, wsId, notify19]
|
|
20932
20952
|
);
|
|
20933
20953
|
const canDeleteFolder = react.useCallback(
|
|
20934
|
-
(folder) => canUpload &&
|
|
20935
|
-
(doc) =>
|
|
20954
|
+
(folder) => canUpload && chunkEAH7LFJN_cjs.collectFolderDocs(documents, folder.path).every(
|
|
20955
|
+
(doc) => chunkEAH7LFJN_cjs.canDeleteDocument(doc, userId, role)
|
|
20936
20956
|
),
|
|
20937
20957
|
[canUpload, documents, userId, role]
|
|
20938
20958
|
);
|
|
@@ -20991,7 +21011,7 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
20991
21011
|
setActiveDragId(null);
|
|
20992
21012
|
const data = event.over?.data.current;
|
|
20993
21013
|
if (data?.type === "folder" && data.path) {
|
|
20994
|
-
const targetFolder =
|
|
21014
|
+
const targetFolder = chunkEAH7LFJN_cjs.joinFolderPath(data.path);
|
|
20995
21015
|
const moving = dragIdsRef.current.filter((id) => {
|
|
20996
21016
|
const doc = documents.find((d) => d.external_id === id);
|
|
20997
21017
|
return doc && (doc.folder ?? null) !== targetFolder;
|
|
@@ -21031,7 +21051,7 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
21031
21051
|
const dropped = Array.from(e.dataTransfer.files ?? []);
|
|
21032
21052
|
if (dropped.length > 0) {
|
|
21033
21053
|
e.preventDefault();
|
|
21034
|
-
onUploadFiles(dropped,
|
|
21054
|
+
onUploadFiles(dropped, chunkEAH7LFJN_cjs.joinFolderPath(currentPath));
|
|
21035
21055
|
}
|
|
21036
21056
|
},
|
|
21037
21057
|
[canUpload, currentPath, onUploadFiles]
|
|
@@ -21048,9 +21068,9 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
21048
21068
|
onDragEnd: handleDragEnd,
|
|
21049
21069
|
onDragCancel: () => setActiveDragId(null),
|
|
21050
21070
|
children: [
|
|
21051
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21071
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.ExplorerFrame, { "data-testid": "documents-explorer", children: /* @__PURE__ */ jsxRuntime.jsxs(chunkEAH7LFJN_cjs.ExplorerStage, { children: [
|
|
21052
21072
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21053
|
-
|
|
21073
|
+
chunkEAH7LFJN_cjs.ExplorerScroller,
|
|
21054
21074
|
{
|
|
21055
21075
|
ref: scrollRef,
|
|
21056
21076
|
onClick: handleBackgroundClick,
|
|
@@ -21060,15 +21080,15 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
21060
21080
|
onDragLeave: handleNativeDragLeave,
|
|
21061
21081
|
onDrop: handleNativeDrop,
|
|
21062
21082
|
"data-testid": "explorer-scroll",
|
|
21063
|
-
children: isLoading && documents.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
21064
|
-
|
|
21083
|
+
children: isLoading && documents.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.ExplorerLoadingTiles, {}) : entries.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
21084
|
+
chunkEAH7LFJN_cjs.ExplorerEmpty,
|
|
21065
21085
|
{
|
|
21066
21086
|
title: isSearching ? `No files match "${search.trim()}"` : "This folder is empty",
|
|
21067
21087
|
description: isSearching ? "Try a different search." : canUpload ? "Drop files here or use Upload to add documents." : "No documents here yet."
|
|
21068
21088
|
}
|
|
21069
21089
|
) : containerWidth === 0 ? (
|
|
21070
21090
|
// Not measured yet: rendering now would flash one stretched column.
|
|
21071
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21091
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.ExplorerLoadingTiles, {})
|
|
21072
21092
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
21073
21093
|
"div",
|
|
21074
21094
|
{
|
|
@@ -21098,7 +21118,7 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
21098
21118
|
if (entry.kind === "folder") {
|
|
21099
21119
|
const key = entry.path.join("/");
|
|
21100
21120
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21101
|
-
|
|
21121
|
+
chunk633ZCYVN_cjs.FolderTile,
|
|
21102
21122
|
{
|
|
21103
21123
|
folder: entry,
|
|
21104
21124
|
density,
|
|
@@ -21121,7 +21141,7 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
21121
21141
|
}
|
|
21122
21142
|
const doc = entry.doc;
|
|
21123
21143
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21124
|
-
|
|
21144
|
+
chunk633ZCYVN_cjs.FileTile,
|
|
21125
21145
|
{
|
|
21126
21146
|
doc,
|
|
21127
21147
|
density,
|
|
@@ -21129,7 +21149,7 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
21129
21149
|
dragging: activeDragId === doc.external_id,
|
|
21130
21150
|
dndActive: activeDragId !== null,
|
|
21131
21151
|
renaming: renamingId === doc.external_id,
|
|
21132
|
-
canDelete:
|
|
21152
|
+
canDelete: chunkEAH7LFJN_cjs.canDeleteDocument(doc, userId, role),
|
|
21133
21153
|
thumbnailUrl: thumbnailsById.get(doc.external_id),
|
|
21134
21154
|
modifiedBy: userById.get(
|
|
21135
21155
|
doc.updated_by_ext_id ?? doc.created_by_ext_id
|
|
@@ -21158,9 +21178,9 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
21158
21178
|
)
|
|
21159
21179
|
}
|
|
21160
21180
|
),
|
|
21161
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21181
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.ExplorerMarquee, { ref: marqueeOverlayRef, "data-testid": "explorer-marquee" }),
|
|
21162
21182
|
isFileDragOver && /* @__PURE__ */ jsxRuntime.jsx(
|
|
21163
|
-
|
|
21183
|
+
chunkEAH7LFJN_cjs.ExplorerDropOverlay,
|
|
21164
21184
|
{
|
|
21165
21185
|
label: `Drop to upload${currentPath.length > 0 ? ` to "${currentPath[currentPath.length - 1]}"` : ""}`
|
|
21166
21186
|
}
|
|
@@ -21174,7 +21194,7 @@ var ConnectedFilesExplorer = react.forwardRef(function ConnectedFilesExplorer2({
|
|
|
21174
21194
|
function DragPreview({ doc, count: count2 }) {
|
|
21175
21195
|
const Icon = ui.getFileTypeIcon(doc.file_name, { mime: doc.file_type, folder: doc.folder });
|
|
21176
21196
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21177
|
-
|
|
21197
|
+
chunkEAH7LFJN_cjs.ExplorerDragPreview,
|
|
21178
21198
|
{
|
|
21179
21199
|
icon: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: 20 }),
|
|
21180
21200
|
title: ui.getDocumentTitle(doc, doc.file_name ?? "Untitled"),
|
|
@@ -21356,7 +21376,8 @@ var DEFAULT_PROJECT_PAGE_LABELS = {
|
|
|
21356
21376
|
documents: "Documents",
|
|
21357
21377
|
activity: "Activity",
|
|
21358
21378
|
usage: "Usage",
|
|
21359
|
-
billing: "Billing"
|
|
21379
|
+
billing: "Billing",
|
|
21380
|
+
"billing-usage": "Billing & Usage"
|
|
21360
21381
|
},
|
|
21361
21382
|
figures: {
|
|
21362
21383
|
documents: "Documents",
|
|
@@ -21414,12 +21435,12 @@ function ConnectedProjectPage({
|
|
|
21414
21435
|
figures: { ...DEFAULT_PROJECT_PAGE_LABELS.figures, ...given?.figures },
|
|
21415
21436
|
threads: { ...DEFAULT_PROJECT_PAGE_LABELS.threads, ...given?.threads }
|
|
21416
21437
|
};
|
|
21417
|
-
const { project, usage, isLoading } =
|
|
21438
|
+
const { project, usage, isLoading } = chunkGLNL5AL5_cjs.useProjectSummary(projectId);
|
|
21418
21439
|
const { workspaceId } = chunkVWSOHZK2_cjs.useConnectedWorkspace();
|
|
21419
21440
|
const { notify: notify19 } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
21420
|
-
const selectWorkspace =
|
|
21441
|
+
const selectWorkspace = chunk65NQW4RR_cjs.useSelectWorkspace();
|
|
21421
21442
|
const openOne = project?.workspaces.find((w) => w.id === workspaceId);
|
|
21422
|
-
const workspace = openOne ?? (project ?
|
|
21443
|
+
const workspace = openOne ?? (project ? chunkGLNL5AL5_cjs.primaryProjectWorkspace(project) : void 0);
|
|
21423
21444
|
const open = !!workspace && workspace.id === workspaceId;
|
|
21424
21445
|
const switching = react$1.useArbiSessionState((s) => s.workspaceStatus) === "opening";
|
|
21425
21446
|
react.useEffect(() => {
|
|
@@ -21467,6 +21488,19 @@ function ConnectedProjectPage({
|
|
|
21467
21488
|
);
|
|
21468
21489
|
case "billing":
|
|
21469
21490
|
return /* @__PURE__ */ jsxRuntime.jsx(ProjectDetail, { projectExtId: project.id });
|
|
21491
|
+
case "billing-usage":
|
|
21492
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-6", "data-testid": `${testId}-billing-usage`, children: [
|
|
21493
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
21494
|
+
ProjectUsageContent,
|
|
21495
|
+
{
|
|
21496
|
+
projectExtId: project.id,
|
|
21497
|
+
projectName: project.name,
|
|
21498
|
+
aiUsageLimit: project.aiUsageLimit || void 0,
|
|
21499
|
+
breakdowns: t.breakdowns
|
|
21500
|
+
}
|
|
21501
|
+
),
|
|
21502
|
+
/* @__PURE__ */ jsxRuntime.jsx(ProjectDetail, { projectExtId: project.id, hideNotOwnerNotice: true, className: "p-0" })
|
|
21503
|
+
] });
|
|
21470
21504
|
case "usage":
|
|
21471
21505
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21472
21506
|
ProjectUsageContent,
|
|
@@ -22374,7 +22408,7 @@ function AgentBarShell({
|
|
|
22374
22408
|
}, [isStepsExpanded, steps]);
|
|
22375
22409
|
const visibleStepCount = react.useMemo(() => browser.topLevelAgentSteps(steps ?? []).length, [steps]);
|
|
22376
22410
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
22377
|
-
|
|
22411
|
+
chunkQDIIOZBP_cjs.AgentBar,
|
|
22378
22412
|
{
|
|
22379
22413
|
className,
|
|
22380
22414
|
testId,
|
|
@@ -22386,7 +22420,7 @@ function AgentBarShell({
|
|
|
22386
22420
|
drawerRef: scrollRef,
|
|
22387
22421
|
onDrawerScroll: handleDrawerScroll,
|
|
22388
22422
|
drawer: /* @__PURE__ */ jsxRuntime.jsx(
|
|
22389
|
-
|
|
22423
|
+
chunk33236Q7Y_cjs.AgentSteps,
|
|
22390
22424
|
{
|
|
22391
22425
|
steps: stepList,
|
|
22392
22426
|
isStreaming,
|
|
@@ -22421,12 +22455,12 @@ function DmAgentProgress({
|
|
|
22421
22455
|
steps,
|
|
22422
22456
|
className: compact ? "mx-4 my-2 rounded-none bg-transparent" : void 0,
|
|
22423
22457
|
status: /* @__PURE__ */ jsxRuntime.jsx(
|
|
22424
|
-
|
|
22458
|
+
chunkQDIIOZBP_cjs.AgentBarStatus,
|
|
22425
22459
|
{
|
|
22426
22460
|
stepLabel: label,
|
|
22427
22461
|
stepIcon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { "aria-label": "Working", className: "size-4 shrink-0 animate-spin text-primary" }),
|
|
22428
22462
|
timer: /* @__PURE__ */ jsxRuntime.jsx("span", { "data-testid": "dm-agent-elapsed", className: "inline-block min-w-[5ch] text-right", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
22429
|
-
|
|
22463
|
+
chunk33236Q7Y_cjs.MessageLiveSeconds,
|
|
22430
22464
|
{
|
|
22431
22465
|
conversationId: status?.conversation_ext_id ?? void 0,
|
|
22432
22466
|
messageId: status?.response_id ?? status?.message_ext_id,
|
|
@@ -24569,10 +24603,10 @@ function ConnectedContactsPanel({
|
|
|
24569
24603
|
function ConnectedConfigForm({ availableModels, ...rest }) {
|
|
24570
24604
|
const hasModels = !!availableModels && availableModels.length > 0;
|
|
24571
24605
|
const renderModelSelect = react.useCallback(
|
|
24572
|
-
({ value, onChange }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
24606
|
+
({ value, onChange }) => /* @__PURE__ */ jsxRuntime.jsx(chunk33236Q7Y_cjs.ConnectedModelSelector, { value, onValueChange: onChange, className: "w-full" }),
|
|
24573
24607
|
[]
|
|
24574
24608
|
);
|
|
24575
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
24609
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkQDIIOZBP_cjs.ConfigForm, { ...rest, renderModelSelect: hasModels ? renderModelSelect : void 0 });
|
|
24576
24610
|
}
|
|
24577
24611
|
function ConnectedAgentConfigForm({ agentExtId, agentName, onSaved }) {
|
|
24578
24612
|
const { notify: notify19 } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
@@ -24689,7 +24723,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
24689
24723
|
}, [name, selectedWorkspaces, role, createAgent, addWorkspaceUsers, arbi, notify19]);
|
|
24690
24724
|
if (editAgent) {
|
|
24691
24725
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
24692
|
-
|
|
24726
|
+
chunkQDIIOZBP_cjs.AgentEditView,
|
|
24693
24727
|
{
|
|
24694
24728
|
agentName: editAgent.name,
|
|
24695
24729
|
config: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -24705,7 +24739,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
24705
24739
|
}
|
|
24706
24740
|
if (view === "main") {
|
|
24707
24741
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
24708
|
-
|
|
24742
|
+
chunkQDIIOZBP_cjs.AgentMainView,
|
|
24709
24743
|
{
|
|
24710
24744
|
onConnectExternal: () => setView("connect"),
|
|
24711
24745
|
config: mainAgent ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -24721,11 +24755,11 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
24721
24755
|
}
|
|
24722
24756
|
if (result) {
|
|
24723
24757
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
24724
|
-
|
|
24758
|
+
chunkQDIIOZBP_cjs.AgentCreatedView,
|
|
24725
24759
|
{
|
|
24726
24760
|
email: result.email,
|
|
24727
24761
|
signingKey: result.signingKey,
|
|
24728
|
-
instructions: /* @__PURE__ */ jsxRuntime.jsx(
|
|
24762
|
+
instructions: /* @__PURE__ */ jsxRuntime.jsx(chunkQDIIOZBP_cjs.AgentConnectInstructions, { email: result.email, signingKey: result.signingKey }),
|
|
24729
24763
|
config: /* @__PURE__ */ jsxRuntime.jsx(ConnectedAgentConfigForm, { agentExtId: result.extId, agentName: result.name }),
|
|
24730
24764
|
isConfigOpen: configOpen,
|
|
24731
24765
|
onToggleConfig: () => setConfigOpen((v) => !v),
|
|
@@ -24734,7 +24768,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
24734
24768
|
);
|
|
24735
24769
|
}
|
|
24736
24770
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
24737
|
-
|
|
24771
|
+
chunkQDIIOZBP_cjs.AgentCreateView,
|
|
24738
24772
|
{
|
|
24739
24773
|
name,
|
|
24740
24774
|
onNameChange: setName,
|
|
@@ -24821,7 +24855,7 @@ function ConnectedInviteContactsDialog({
|
|
|
24821
24855
|
] })
|
|
24822
24856
|
] }) });
|
|
24823
24857
|
}
|
|
24824
|
-
var LAYOUT =
|
|
24858
|
+
var LAYOUT = chunkGZPNBSRE_cjs.WORKSPACE_DASHBOARD_LAYOUT;
|
|
24825
24859
|
function ConnectedWorkspaceDashboard({
|
|
24826
24860
|
start,
|
|
24827
24861
|
addFilesAction,
|
|
@@ -24831,23 +24865,23 @@ function ConnectedWorkspaceDashboard({
|
|
|
24831
24865
|
onTakePhoto,
|
|
24832
24866
|
testId = "workspace-dashboard"
|
|
24833
24867
|
}) {
|
|
24834
|
-
const startBand = start === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
24868
|
+
const startBand = start === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(chunkGZPNBSRE_cjs.ConnectedStartBlock, { onCreateNew, onTakePhoto }) : start;
|
|
24835
24869
|
const factsSection = facts === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
24836
|
-
|
|
24870
|
+
chunkGZPNBSRE_cjs.ConnectedListBlock,
|
|
24837
24871
|
{
|
|
24838
24872
|
config: LAYOUT.facts.config,
|
|
24839
24873
|
showLoading: false,
|
|
24840
24874
|
testId: `${testId}-facts`
|
|
24841
24875
|
}
|
|
24842
24876
|
) : facts;
|
|
24843
|
-
const asideSection = aside === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
24877
|
+
const asideSection = aside === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(chunkGZPNBSRE_cjs.ConnectedAgendaBlock, { config: LAYOUT.agenda.config }) : aside;
|
|
24844
24878
|
return /* @__PURE__ */ jsxRuntime.jsxs(chunkUNSZLNA4_cjs.DashboardRoot, { testId, children: [
|
|
24845
24879
|
startBand && /* @__PURE__ */ jsxRuntime.jsx(chunkUNSZLNA4_cjs.DashboardBand, { kind: "start", children: startBand }),
|
|
24846
24880
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkUNSZLNA4_cjs.DashboardBand, { kind: "recent", children: [
|
|
24847
24881
|
/* @__PURE__ */ jsxRuntime.jsx(chunkIXCWZ4HC_cjs.SectionLabel, { testId: `${testId}-recent-caption`, children: "Recent" }),
|
|
24848
24882
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkUNSZLNA4_cjs.DashboardColumns, { children: [
|
|
24849
24883
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
24850
|
-
|
|
24884
|
+
chunkGZPNBSRE_cjs.ConnectedListBlock,
|
|
24851
24885
|
{
|
|
24852
24886
|
config: LAYOUT.files.config,
|
|
24853
24887
|
addFilesAction,
|
|
@@ -24858,7 +24892,7 @@ function ConnectedWorkspaceDashboard({
|
|
|
24858
24892
|
}
|
|
24859
24893
|
),
|
|
24860
24894
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
24861
|
-
|
|
24895
|
+
chunkGZPNBSRE_cjs.ConnectedListBlock,
|
|
24862
24896
|
{
|
|
24863
24897
|
config: LAYOUT.threads.config,
|
|
24864
24898
|
showLoading: false,
|
|
@@ -24947,7 +24981,7 @@ var inWorkspace = ({ workspaceId }) => !!workspaceId;
|
|
|
24947
24981
|
var canWrite = ({ isMember, role }) => isMember && role !== "guest";
|
|
24948
24982
|
var notTemporary = ({ isTemporaryAccess }) => !isTemporaryAccess;
|
|
24949
24983
|
function setDocumentSourceFilter(source) {
|
|
24950
|
-
const { documentFilters, setDocumentFilters } =
|
|
24984
|
+
const { documentFilters, setDocumentFilters } = chunkAZUPMHZI_cjs.useFilesPrefs.getState();
|
|
24951
24985
|
setDocumentFilters({
|
|
24952
24986
|
...documentFilters,
|
|
24953
24987
|
source_uploaded: source === "uploaded" ? "include" : null,
|
|
@@ -24959,9 +24993,9 @@ function createBuiltinActions(environment, session) {
|
|
|
24959
24993
|
const startWorkflowOnDocuments = (workflowId) => {
|
|
24960
24994
|
const { viewingDocument, selectedDocumentIds } = session.getState();
|
|
24961
24995
|
const documents = viewingDocument ? [viewingDocument.id] : [...selectedDocumentIds];
|
|
24962
|
-
|
|
24996
|
+
chunkQDIIOZBP_cjs.openWorkflowLaunch({ workflowId, context: { documents } });
|
|
24963
24997
|
};
|
|
24964
|
-
const setFilesView = (mode) => () =>
|
|
24998
|
+
const setFilesView = (mode) => () => chunkAZUPMHZI_cjs.useFilesPrefs.getState().setViewMode(mode);
|
|
24965
24999
|
const actions = [
|
|
24966
25000
|
{
|
|
24967
25001
|
id: "goto-user-settings",
|
|
@@ -25026,7 +25060,7 @@ function createBuiltinActions(environment, session) {
|
|
|
25026
25060
|
icon: "Files",
|
|
25027
25061
|
keywords: ["download", "csv", "excel"],
|
|
25028
25062
|
available: inWorkspace,
|
|
25029
|
-
run: () =>
|
|
25063
|
+
run: () => chunkAZUPMHZI_cjs.useFilesDialogs.getState().setExportOpen(true)
|
|
25030
25064
|
},
|
|
25031
25065
|
{
|
|
25032
25066
|
id: "bulk-tag-documents",
|
|
@@ -25035,7 +25069,7 @@ function createBuiltinActions(environment, session) {
|
|
|
25035
25069
|
icon: "Tags",
|
|
25036
25070
|
keywords: ["labels", "categorize", "bulk tag"],
|
|
25037
25071
|
available: inWorkspace,
|
|
25038
|
-
run: () =>
|
|
25072
|
+
run: () => chunkAZUPMHZI_cjs.useFilesDialogs.getState().setBulkTagsOpen(true)
|
|
25039
25073
|
},
|
|
25040
25074
|
{
|
|
25041
25075
|
id: "move-to-folder",
|
|
@@ -25044,7 +25078,7 @@ function createBuiltinActions(environment, session) {
|
|
|
25044
25078
|
icon: "FolderInput",
|
|
25045
25079
|
keywords: ["organize", "relocate"],
|
|
25046
25080
|
available: inWorkspace,
|
|
25047
|
-
run: () =>
|
|
25081
|
+
run: () => chunkAZUPMHZI_cjs.useFilesDialogs.getState().openMove()
|
|
25048
25082
|
},
|
|
25049
25083
|
{
|
|
25050
25084
|
id: "ai-review-documents",
|
|
@@ -25053,7 +25087,7 @@ function createBuiltinActions(environment, session) {
|
|
|
25053
25087
|
icon: "Sparkles",
|
|
25054
25088
|
keywords: ["auto tag", "analyze", "suggest tags"],
|
|
25055
25089
|
available: inWorkspace,
|
|
25056
|
-
run: () =>
|
|
25090
|
+
run: () => chunkAZUPMHZI_cjs.useAiReviewStore.getState().setOpen(true)
|
|
25057
25091
|
},
|
|
25058
25092
|
{
|
|
25059
25093
|
id: "docs-grid-view",
|
|
@@ -25521,7 +25555,7 @@ function ConnectedRemoteControlConsent() {
|
|
|
25521
25555
|
}
|
|
25522
25556
|
function ConsentPrompt() {
|
|
25523
25557
|
const pending = react$1.useRemoteControl((s) => s.pending);
|
|
25524
|
-
const remote =
|
|
25558
|
+
const remote = chunk33236Q7Y_cjs.useRemoteControlActions();
|
|
25525
25559
|
const onceRef = react.useRef(null);
|
|
25526
25560
|
chunkNZNBJF3M_cjs.useMountedSurface("consent");
|
|
25527
25561
|
const handleOpenChange = (next) => {
|
|
@@ -25614,7 +25648,7 @@ function Indicator() {
|
|
|
25614
25648
|
const enabled = react$1.useRemoteControl((s) => s.enabled);
|
|
25615
25649
|
const sharing = react$1.useRemoteControl((s) => !!s.sharing);
|
|
25616
25650
|
const controllingAgent = react$1.useRemoteControl((s) => s.controllingAgent);
|
|
25617
|
-
const remote =
|
|
25651
|
+
const remote = chunk33236Q7Y_cjs.useRemoteControlActions();
|
|
25618
25652
|
if (!enabled && !controllingAgent) return null;
|
|
25619
25653
|
const isActive = controllingAgent !== null;
|
|
25620
25654
|
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";
|
|
@@ -25660,7 +25694,7 @@ function AddFromAccountsButton({
|
|
|
25660
25694
|
className: "gap-2",
|
|
25661
25695
|
"data-testid": dataTestId,
|
|
25662
25696
|
children: [
|
|
25663
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex items-center gap-1", children: marks.map((m) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
25697
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex items-center gap-1", children: marks.map((m) => /* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.VendorLogo, { vendorKey: m.vendorKey, product: m.product, className: "h-4 w-4" }, m.key)) }),
|
|
25664
25698
|
"Add from accounts"
|
|
25665
25699
|
]
|
|
25666
25700
|
}
|
|
@@ -25744,7 +25778,7 @@ function ConnectedUploadDropzone({
|
|
|
25744
25778
|
const onFiles = browse(fileInputRef);
|
|
25745
25779
|
const onFolder = browse(folderInputRef);
|
|
25746
25780
|
const dropTarget = /* @__PURE__ */ jsxRuntime.jsx(
|
|
25747
|
-
|
|
25781
|
+
chunkEAH7LFJN_cjs.UploadDropArea,
|
|
25748
25782
|
{
|
|
25749
25783
|
isActive: dragActive,
|
|
25750
25784
|
isDisabled: disabled,
|
|
@@ -25758,11 +25792,11 @@ function ConnectedUploadDropzone({
|
|
|
25758
25792
|
onClick: (e) => {
|
|
25759
25793
|
if (e.target === e.currentTarget) onFiles();
|
|
25760
25794
|
},
|
|
25761
|
-
actions: compact ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
25795
|
+
actions: compact ? /* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.UploadBrowseButtons, { onFiles, onFolder, isDisabled: disabled }) : void 0
|
|
25762
25796
|
}
|
|
25763
25797
|
);
|
|
25764
25798
|
const urlDialog = (trigger) => onUrlsSubmit ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
25765
|
-
|
|
25799
|
+
chunkEAH7LFJN_cjs.UrlInputDialog,
|
|
25766
25800
|
{
|
|
25767
25801
|
onUrlsSubmit,
|
|
25768
25802
|
processing: disabled,
|
|
@@ -25775,12 +25809,12 @@ function ConnectedUploadDropzone({
|
|
|
25775
25809
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
25776
25810
|
dropTarget,
|
|
25777
25811
|
compactLeadingAction,
|
|
25778
|
-
onUrlsSubmit && /* @__PURE__ */ jsxRuntime.jsx(
|
|
25812
|
+
onUrlsSubmit && /* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.UploadSourceSection, { isIsolated: true, className: "flex flex-wrap justify-center gap-2", children: urlDialog(/* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.UploadUrlButton, { isDisabled: disabled, isCompact: true })) })
|
|
25779
25813
|
] });
|
|
25780
25814
|
}
|
|
25781
25815
|
if (!source) {
|
|
25782
25816
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
25783
|
-
|
|
25817
|
+
chunkEAH7LFJN_cjs.UploadSourcePicker,
|
|
25784
25818
|
{
|
|
25785
25819
|
isDisabled: disabled,
|
|
25786
25820
|
options: [
|
|
@@ -25816,14 +25850,14 @@ function ConnectedUploadDropzone({
|
|
|
25816
25850
|
}
|
|
25817
25851
|
if (source === "computer") {
|
|
25818
25852
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
25819
|
-
|
|
25853
|
+
chunkEAH7LFJN_cjs.UploadSourceSection,
|
|
25820
25854
|
{
|
|
25821
25855
|
testId: "upload-source-computer",
|
|
25822
25856
|
className: "flex w-full flex-col gap-3 pointer-coarse:flex-col-reverse",
|
|
25823
25857
|
children: [
|
|
25824
25858
|
dropTarget,
|
|
25825
25859
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
25826
|
-
|
|
25860
|
+
chunkEAH7LFJN_cjs.UploadBrowseButtons,
|
|
25827
25861
|
{
|
|
25828
25862
|
layout: "grid",
|
|
25829
25863
|
onFiles,
|
|
@@ -25836,15 +25870,15 @@ function ConnectedUploadDropzone({
|
|
|
25836
25870
|
);
|
|
25837
25871
|
}
|
|
25838
25872
|
if (source === "internet" && onUrlsSubmit) {
|
|
25839
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
25873
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.UploadSourceSection, { testId: "upload-source-internet", className: "flex flex-wrap gap-2", children: /* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.UploadSourceSection, { isIsolated: true, children: urlDialog(/* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.UploadUrlButton, { isDisabled: disabled })) }) });
|
|
25840
25874
|
}
|
|
25841
25875
|
if (source === "email" && accounts) {
|
|
25842
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
25876
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.UploadSourceSection, { testId: "upload-source-email", isIsolated: true, children: accounts });
|
|
25843
25877
|
}
|
|
25844
25878
|
return null;
|
|
25845
25879
|
})();
|
|
25846
25880
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
25847
|
-
|
|
25881
|
+
chunkEAH7LFJN_cjs.UploadFrame,
|
|
25848
25882
|
{
|
|
25849
25883
|
isCompact: compact,
|
|
25850
25884
|
isDimmed: disabled || processingMessage !== null,
|
|
@@ -25905,7 +25939,7 @@ function EmptyWorkspaceUpload({
|
|
|
25905
25939
|
compactLeadingAction: onImportFromEmail && /* @__PURE__ */ jsxRuntime.jsx(AddFromAccountsButton, { onImportFromEmail })
|
|
25906
25940
|
}
|
|
25907
25941
|
),
|
|
25908
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
25942
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.PrivacyExplainerModal, {})
|
|
25909
25943
|
] })
|
|
25910
25944
|
}
|
|
25911
25945
|
);
|
|
@@ -26012,9 +26046,9 @@ function useDocumentFilters({
|
|
|
26012
26046
|
const { data: members = [] } = react$1.useWorkspaceUsers();
|
|
26013
26047
|
const user = members.find((m) => m.user.external_id === currentUserId)?.user;
|
|
26014
26048
|
const offlineIds = react$1.useOfflineDocumentIds();
|
|
26015
|
-
const pendingFolders =
|
|
26016
|
-
const persistedDocumentFilters =
|
|
26017
|
-
const setPersistedDocumentFilters =
|
|
26049
|
+
const pendingFolders = chunkAZUPMHZI_cjs.usePendingFolders(selectedWorkspaceId);
|
|
26050
|
+
const persistedDocumentFilters = chunkAZUPMHZI_cjs.useFilesPrefs((state) => state.documentFilters);
|
|
26051
|
+
const setPersistedDocumentFilters = chunkAZUPMHZI_cjs.useFilesPrefs((state) => state.setDocumentFilters);
|
|
26018
26052
|
const folderTree = react.useMemo(() => {
|
|
26019
26053
|
const allPaths = /* @__PURE__ */ new Set();
|
|
26020
26054
|
let hasUnfiled = false;
|
|
@@ -26235,7 +26269,7 @@ function useDocumentFilters({
|
|
|
26235
26269
|
{
|
|
26236
26270
|
id: "uploaded_by_me",
|
|
26237
26271
|
label: "Uploaded by me",
|
|
26238
|
-
icon: user ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
26272
|
+
icon: user ? /* @__PURE__ */ jsxRuntime.jsx(chunk633ZCYVN_cjs.UserAvatar, { user, isMe: true }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.User, { className: "h-4 w-4" }),
|
|
26239
26273
|
count: docs.filter((doc) => doc.created_by_ext_id === currentUserId).length
|
|
26240
26274
|
},
|
|
26241
26275
|
{
|
|
@@ -26356,7 +26390,7 @@ function useDocumentFilters({
|
|
|
26356
26390
|
const folderPath = react.useMemo(() => {
|
|
26357
26391
|
for (const [key, state] of documentFilters) {
|
|
26358
26392
|
if (key.startsWith("folder:") && key !== "folder:none" && state === "include") {
|
|
26359
|
-
return
|
|
26393
|
+
return chunkEAH7LFJN_cjs.parseFolderSegments(key.slice("folder:".length));
|
|
26360
26394
|
}
|
|
26361
26395
|
}
|
|
26362
26396
|
return [];
|
|
@@ -26365,7 +26399,7 @@ function useDocumentFilters({
|
|
|
26365
26399
|
(path) => {
|
|
26366
26400
|
const next = new Map(documentFilters);
|
|
26367
26401
|
for (const key of next.keys()) if (key.startsWith("folder:")) next.set(key, null);
|
|
26368
|
-
const joined =
|
|
26402
|
+
const joined = chunkEAH7LFJN_cjs.joinFolderPath(path);
|
|
26369
26403
|
if (joined) next.set(`folder:${joined}`, "include");
|
|
26370
26404
|
setDocumentFilters(next);
|
|
26371
26405
|
},
|
|
@@ -26592,7 +26626,7 @@ function ConnectedSearchPage({ embedded = false, labels }) {
|
|
|
26592
26626
|
const scopeCount = scope.count;
|
|
26593
26627
|
const tooMany = !!scopeDocIds && scopeDocIds.length > react$1.MAX_RETRIEVE_DOC_IDS;
|
|
26594
26628
|
const tooManyMessage = tooMany ? l.tooManyDocuments(scopeCount, react$1.MAX_RETRIEVE_DOC_IDS) : void 0;
|
|
26595
|
-
const uploadUrls =
|
|
26629
|
+
const uploadUrls = chunkGZPNBSRE_cjs.useAddFromUrls({
|
|
26596
26630
|
onZipFiles: (files) => openUpload?.(files, { source: "computer" })
|
|
26597
26631
|
});
|
|
26598
26632
|
const search = react$1.useSemanticSearch(scopeDocIds ?? [], {
|
|
@@ -28948,7 +28982,7 @@ function ConnectedMailbox({
|
|
|
28948
28982
|
onTabChange: () => {
|
|
28949
28983
|
},
|
|
28950
28984
|
compactBreakpoint: 360,
|
|
28951
|
-
firstTabContent: account ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
28985
|
+
firstTabContent: account ? /* @__PURE__ */ jsxRuntime.jsxs(chunkEAH7LFJN_cjs.FilesFilterBar, { children: [
|
|
28952
28986
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
28953
28987
|
chunk6UZC4XVV_cjs.FilterInput,
|
|
28954
28988
|
{
|
|
@@ -28983,7 +29017,7 @@ function ConnectedMailbox({
|
|
|
28983
29017
|
}
|
|
28984
29018
|
),
|
|
28985
29019
|
folderList && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex shrink-0 items-center gap-2", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
28986
|
-
|
|
29020
|
+
chunkEAH7LFJN_cjs.FolderFilterButton,
|
|
28987
29021
|
{
|
|
28988
29022
|
label: folderList.find((f) => f.id === folderId)?.name ?? "Folders",
|
|
28989
29023
|
isActive: false,
|
|
@@ -28991,7 +29025,7 @@ function ConnectedMailbox({
|
|
|
28991
29025
|
onOpenChange: setFolderMenuOpen,
|
|
28992
29026
|
testId: "mail-folder-button",
|
|
28993
29027
|
children: folderList.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
28994
|
-
|
|
29028
|
+
chunkEAH7LFJN_cjs.FolderPickerRow,
|
|
28995
29029
|
{
|
|
28996
29030
|
label: item.name,
|
|
28997
29031
|
count: item.unread > 0 ? item.unread : void 0,
|
|
@@ -29505,7 +29539,7 @@ function ConnectedSecureMailClaimPage({
|
|
|
29505
29539
|
}) {
|
|
29506
29540
|
const authenticated = react$1.useArbiSession().status === "signed-in";
|
|
29507
29541
|
const { openMail } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
29508
|
-
const { loading } =
|
|
29542
|
+
const { loading } = chunk33236Q7Y_cjs.useAuthPages();
|
|
29509
29543
|
const claim = react$1.useClaimSecureMail();
|
|
29510
29544
|
const [, setFirstLoginWorkspaces] = react$1.useTransientView(FIRST_LOGIN_WORKSPACES_VIEW, null);
|
|
29511
29545
|
const [failure, setFailure] = react.useState(null);
|
|
@@ -29545,7 +29579,7 @@ function ConnectedSecureMailClaimPage({
|
|
|
29545
29579
|
}
|
|
29546
29580
|
})();
|
|
29547
29581
|
}, [authenticated, claimId, key]);
|
|
29548
|
-
if (!error) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: loading ?? /* @__PURE__ */ jsxRuntime.jsx(
|
|
29582
|
+
if (!error) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: loading ?? /* @__PURE__ */ jsxRuntime.jsx(chunkAWQEN6WW_cjs.LoadingIndicator, { variant: "splash" }) });
|
|
29549
29583
|
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: [
|
|
29550
29584
|
/* @__PURE__ */ jsxRuntime.jsx("p", { role: "alert", className: "mb-4 text-sm text-destructive", children: error }),
|
|
29551
29585
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -31515,42 +31549,42 @@ function useConnectedCalendarCalls() {
|
|
|
31515
31549
|
[knownUsers]
|
|
31516
31550
|
);
|
|
31517
31551
|
return react.useMemo(() => {
|
|
31518
|
-
const users = (attendees) =>
|
|
31552
|
+
const users = (attendees) => chunkGZPNBSRE_cjs.resolveAttendeeUsersRemote(arbi, attendees, known, me);
|
|
31519
31553
|
return {
|
|
31520
31554
|
canSchedule,
|
|
31521
31555
|
async create(draft, webinarRoles) {
|
|
31522
31556
|
const resolved = await users(draft.attendees ?? []);
|
|
31523
|
-
return
|
|
31557
|
+
return chunkGZPNBSRE_cjs.createEventCall(arbi, {
|
|
31524
31558
|
title: draft.title,
|
|
31525
|
-
peers:
|
|
31526
|
-
webinar: webinarRoles ? { roles:
|
|
31559
|
+
peers: chunkGZPNBSRE_cjs.distinctPeers(resolved),
|
|
31560
|
+
webinar: webinarRoles ? { roles: chunkGZPNBSRE_cjs.webinarRolesByUser(webinarRoles, resolved) } : null
|
|
31527
31561
|
});
|
|
31528
31562
|
},
|
|
31529
31563
|
async share(draft) {
|
|
31530
|
-
await
|
|
31564
|
+
await chunkGZPNBSRE_cjs.shareEventCall(
|
|
31531
31565
|
arbi,
|
|
31532
31566
|
draft.conference,
|
|
31533
|
-
await
|
|
31567
|
+
await chunkGZPNBSRE_cjs.resolveCallPeersRemote(arbi, draft.attendees ?? [], known, me)
|
|
31534
31568
|
);
|
|
31535
31569
|
},
|
|
31536
|
-
loadWebinarRoles: (url, attendees) =>
|
|
31570
|
+
loadWebinarRoles: (url, attendees) => chunkGZPNBSRE_cjs.loadEventWebinar(arbi, url, attendees),
|
|
31537
31571
|
async saveWebinarRoles(url, roles, attendees) {
|
|
31538
31572
|
const resolved = await users(attendees);
|
|
31539
|
-
await
|
|
31573
|
+
await chunkGZPNBSRE_cjs.updateEventWebinarRoles(
|
|
31540
31574
|
arbi,
|
|
31541
31575
|
url,
|
|
31542
|
-
|
|
31543
|
-
|
|
31576
|
+
chunkGZPNBSRE_cjs.webinarRolesByUser(roles, resolved),
|
|
31577
|
+
chunkGZPNBSRE_cjs.distinctPeers(resolved)
|
|
31544
31578
|
);
|
|
31545
31579
|
},
|
|
31546
31580
|
async arbiAttendees(attendees) {
|
|
31547
31581
|
return new Set((await users(attendees)).keys());
|
|
31548
31582
|
},
|
|
31549
31583
|
join(url) {
|
|
31550
|
-
void
|
|
31584
|
+
void chunkGZPNBSRE_cjs.joinEventMeeting(arbi, url);
|
|
31551
31585
|
},
|
|
31552
31586
|
openChat(url) {
|
|
31553
|
-
const parsed =
|
|
31587
|
+
const parsed = chunkGZPNBSRE_cjs.parseArbiCallUrlForClient(arbi, url);
|
|
31554
31588
|
if (parsed) void openCallMeetingChat({ callExtId: parsed.callId, callKey: parsed.key });
|
|
31555
31589
|
}
|
|
31556
31590
|
};
|
|
@@ -32090,7 +32124,7 @@ function ConnectedCalendar({
|
|
|
32090
32124
|
}
|
|
32091
32125
|
),
|
|
32092
32126
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
32093
|
-
|
|
32127
|
+
chunkGZPNBSRE_cjs.ConnectedUpcomingEvents,
|
|
32094
32128
|
{
|
|
32095
32129
|
timeZone: zone,
|
|
32096
32130
|
showDeclined: !!settings.show_declined,
|
|
@@ -32726,7 +32760,7 @@ function ProcessingSettingsFooter({
|
|
|
32726
32760
|
[configField]
|
|
32727
32761
|
);
|
|
32728
32762
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
32729
|
-
|
|
32763
|
+
chunkEAH7LFJN_cjs.UploadFooterBar,
|
|
32730
32764
|
{
|
|
32731
32765
|
skipDuplicates,
|
|
32732
32766
|
onSkipDuplicatesChange: (value) => handleConfigChange("Parser", "SKIP_DUPLICATES", value),
|
|
@@ -32735,7 +32769,7 @@ function ProcessingSettingsFooter({
|
|
|
32735
32769
|
autoRenameInstruction,
|
|
32736
32770
|
onAutoRenameInstructionChange: (value) => handleConfigChange("DoctagLLM", "AUTO_RENAME_INSTRUCTION", value),
|
|
32737
32771
|
shareToggle: /* @__PURE__ */ jsxRuntime.jsx(
|
|
32738
|
-
|
|
32772
|
+
chunkEAH7LFJN_cjs.ShareToggle,
|
|
32739
32773
|
{
|
|
32740
32774
|
isVisible: isShared,
|
|
32741
32775
|
onToggle: onSharedChange,
|
|
@@ -32865,7 +32899,7 @@ ${summary}`,
|
|
|
32865
32899
|
fail2
|
|
32866
32900
|
]);
|
|
32867
32901
|
const zipFilesAdded = react.useRef(false);
|
|
32868
|
-
const addFromUrls =
|
|
32902
|
+
const addFromUrls = chunkGZPNBSRE_cjs.useAddFromUrls({
|
|
32869
32903
|
shared,
|
|
32870
32904
|
configExtId,
|
|
32871
32905
|
onZipFiles: (zipFiles) => {
|
|
@@ -32912,7 +32946,7 @@ ${summary}`,
|
|
|
32912
32946
|
}
|
|
32913
32947
|
);
|
|
32914
32948
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-0 flex-1 flex-col", "data-testid": "upload-documents", children: [
|
|
32915
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-h-0 flex-1 overflow-y-auto pb-2", children: uploading === null ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
32949
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-h-0 flex-1 overflow-y-auto pb-2", children: uploading === null ? /* @__PURE__ */ jsxRuntime.jsxs(chunkEAH7LFJN_cjs.UploadContainer, { className: "w-full px-4 pb-4 pt-2 sm:px-6", children: [
|
|
32916
32950
|
files.length === 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
32917
32951
|
ConnectedUploadDropzone,
|
|
32918
32952
|
{
|
|
@@ -32928,7 +32962,7 @@ ${summary}`,
|
|
|
32928
32962
|
}
|
|
32929
32963
|
),
|
|
32930
32964
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
32931
|
-
|
|
32965
|
+
chunkEAH7LFJN_cjs.SelectedFilesList,
|
|
32932
32966
|
{
|
|
32933
32967
|
renderFileIcon,
|
|
32934
32968
|
files,
|
|
@@ -32937,10 +32971,10 @@ ${summary}`,
|
|
|
32937
32971
|
formatFileSize: formatFileSize3
|
|
32938
32972
|
}
|
|
32939
32973
|
),
|
|
32940
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
32941
|
-
error && /* @__PURE__ */ jsxRuntime.jsx(
|
|
32942
|
-
] }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
32943
|
-
|
|
32974
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.RejectedFilesList, { files: refused, onClear: () => setRefused([]) }),
|
|
32975
|
+
error && /* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.UploadErrorMessage, { message: error })
|
|
32976
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.UploadContainer, { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
32977
|
+
chunkEAH7LFJN_cjs.UploadProgress,
|
|
32944
32978
|
{
|
|
32945
32979
|
fileCount: count2,
|
|
32946
32980
|
entityLabel: plural4(count2),
|
|
@@ -33102,14 +33136,14 @@ function NativeMailImportSection({
|
|
|
33102
33136
|
),
|
|
33103
33137
|
onError: (e) => notify19(e instanceof Error ? e.message : "Could not add mail", "error")
|
|
33104
33138
|
});
|
|
33105
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
33106
|
-
|
|
33139
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.ImportFamilySection, { label: "Mail", identity: native.email, testId: "import-family-native", children: /* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.ImportList, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
33140
|
+
chunkEAH7LFJN_cjs.ImportRow,
|
|
33107
33141
|
{
|
|
33108
33142
|
testId: "email-provider-row-native",
|
|
33109
33143
|
logo: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Mail, { className: "h-7 w-7 text-primary", "aria-hidden": "true" }),
|
|
33110
33144
|
name: NATIVE_MAILBOX_SOURCE.display_name,
|
|
33111
33145
|
actions: /* @__PURE__ */ jsxRuntime.jsx(
|
|
33112
|
-
|
|
33146
|
+
chunkEAH7LFJN_cjs.ImportRunActions,
|
|
33113
33147
|
{
|
|
33114
33148
|
isRunning: false,
|
|
33115
33149
|
isBusy: fileNow.isPending,
|
|
@@ -33123,10 +33157,10 @@ function NativeMailImportSection({
|
|
|
33123
33157
|
),
|
|
33124
33158
|
children: [
|
|
33125
33159
|
here && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
33126
|
-
|
|
33160
|
+
chunkEAH7LFJN_cjs.ImportSummary,
|
|
33127
33161
|
{
|
|
33128
|
-
aside: /* @__PURE__ */ jsxRuntime.jsx(
|
|
33129
|
-
|
|
33162
|
+
aside: /* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.ImportAside, { children: here.folders.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
33163
|
+
chunkEAH7LFJN_cjs.FolderSummary,
|
|
33130
33164
|
{
|
|
33131
33165
|
names: here.folders.map(
|
|
33132
33166
|
(id) => NATIVE_MAILBOX_FOLDERS.find((f) => f.id === id)?.name
|
|
@@ -33168,7 +33202,7 @@ var PROVIDER_FAMILIES = [
|
|
|
33168
33202
|
{ key: "google", label: "Google", vendors: ["gmail"] }
|
|
33169
33203
|
];
|
|
33170
33204
|
function VendorGlyph({ catalog }) {
|
|
33171
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
33205
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.VendorLogo, { vendorKey: catalog.vendor_key, className: "h-7 w-7" });
|
|
33172
33206
|
}
|
|
33173
33207
|
function mailboxProductName(catalog) {
|
|
33174
33208
|
if (catalog.vendor_key === "microsoft") return "Outlook";
|
|
@@ -33236,7 +33270,7 @@ function EmailProviderRow({
|
|
|
33236
33270
|
const emailNoun = (n) => n === 1 ? "email" : "emails";
|
|
33237
33271
|
const syncedCount = thisSync?.synced_count ?? 0;
|
|
33238
33272
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
33239
|
-
|
|
33273
|
+
chunkEAH7LFJN_cjs.ImportRow,
|
|
33240
33274
|
{
|
|
33241
33275
|
testId: `email-provider-row-${catalog.vendor_key}`,
|
|
33242
33276
|
logo: /* @__PURE__ */ jsxRuntime.jsx(VendorGlyph, { catalog }),
|
|
@@ -33245,7 +33279,7 @@ function EmailProviderRow({
|
|
|
33245
33279
|
// Connecting AND reconnecting are owned by the family header, so a
|
|
33246
33280
|
// not-connected or needs-reconnect row shows no button of its own.
|
|
33247
33281
|
!isConnected || needsReconnect ? null : /* @__PURE__ */ jsxRuntime.jsx(
|
|
33248
|
-
|
|
33282
|
+
chunkEAH7LFJN_cjs.ImportRunActions,
|
|
33249
33283
|
{
|
|
33250
33284
|
isRunning: running,
|
|
33251
33285
|
isStopping: cancelSync.isPending,
|
|
@@ -33261,10 +33295,10 @@ function EmailProviderRow({
|
|
|
33261
33295
|
),
|
|
33262
33296
|
children: [
|
|
33263
33297
|
isConnected && !needsReconnect && !running && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
33264
|
-
|
|
33298
|
+
chunkEAH7LFJN_cjs.ImportSummary,
|
|
33265
33299
|
{
|
|
33266
|
-
aside: /* @__PURE__ */ jsxRuntime.jsx(
|
|
33267
|
-
|
|
33300
|
+
aside: /* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.ImportAside, { children: thisSync && thisSync.folders.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
33301
|
+
chunkEAH7LFJN_cjs.FolderSummary,
|
|
33268
33302
|
{
|
|
33269
33303
|
names: thisSync.folders.map(
|
|
33270
33304
|
(id) => mailboxFolders?.find((f) => f.id === id)?.name
|
|
@@ -33288,7 +33322,7 @@ function EmailProviderRow({
|
|
|
33288
33322
|
}
|
|
33289
33323
|
),
|
|
33290
33324
|
running && /* @__PURE__ */ jsxRuntime.jsx(
|
|
33291
|
-
|
|
33325
|
+
chunkEAH7LFJN_cjs.ImportProgress,
|
|
33292
33326
|
{
|
|
33293
33327
|
processed: progress?.processed ?? 0,
|
|
33294
33328
|
total: progress?.total,
|
|
@@ -33406,11 +33440,11 @@ function EmailImportPanel({
|
|
|
33406
33440
|
return { family, entries, extra, identity, connectVendor, connected, needsReconnect };
|
|
33407
33441
|
}).filter((g) => g.entries.length > 0 || g.extra);
|
|
33408
33442
|
if (!ownMailbox && groups.length === 0) return null;
|
|
33409
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
33443
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkEAH7LFJN_cjs.ImportPanel, { "data-testid": "email-import-panel", children: [
|
|
33410
33444
|
ownMailbox && /* @__PURE__ */ jsxRuntime.jsx(NativeMailImportSection, { workspaceExtId, native: ownMailbox }),
|
|
33411
33445
|
groups.map(
|
|
33412
33446
|
({ family, entries, extra, identity, connectVendor, connected, needsReconnect }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
33413
|
-
|
|
33447
|
+
chunkEAH7LFJN_cjs.ImportFamilySection,
|
|
33414
33448
|
{
|
|
33415
33449
|
label: family.label,
|
|
33416
33450
|
identity,
|
|
@@ -33419,7 +33453,7 @@ function EmailImportPanel({
|
|
|
33419
33453
|
onAction: () => void (!connected ? connectFamily(connectVendor) : needsReconnect ? reconnectFamily(connectVendor) : disconnectFamily(family, connectVendor, identity)),
|
|
33420
33454
|
testId: `import-family-${family.key}`,
|
|
33421
33455
|
actionButton: !connected ? { testId: `import-family-connect-${family.key}` } : needsReconnect ? { testId: `import-family-reconnect-${family.key}` } : { testId: `import-family-disconnect-${family.key}` },
|
|
33422
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
33456
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(chunkEAH7LFJN_cjs.ImportList, { children: [
|
|
33423
33457
|
entries.map((entry) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
33424
33458
|
EmailProviderRow,
|
|
33425
33459
|
{
|
|
@@ -33504,7 +33538,7 @@ function driveProduct(vendorKey) {
|
|
|
33504
33538
|
}
|
|
33505
33539
|
function VendorGlyph2({ catalog }) {
|
|
33506
33540
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
33507
|
-
|
|
33541
|
+
chunkEAH7LFJN_cjs.VendorLogo,
|
|
33508
33542
|
{
|
|
33509
33543
|
vendorKey: catalog.vendor_key,
|
|
33510
33544
|
product: driveProduct(catalog.vendor_key).glyph,
|
|
@@ -33627,7 +33661,7 @@ function OneDriveProviderRow({
|
|
|
33627
33661
|
const driveNoun = (n) => n === 1 ? "document" : "documents";
|
|
33628
33662
|
const showRunActions = isConnected && !needsReconnect;
|
|
33629
33663
|
const reconnectAction = ownsAuth && needsReconnect ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
33630
|
-
|
|
33664
|
+
chunkEAH7LFJN_cjs.ImportActionButton,
|
|
33631
33665
|
{
|
|
33632
33666
|
onClick: () => void reconnectSelf(),
|
|
33633
33667
|
disabled: reauthPending,
|
|
@@ -33636,7 +33670,7 @@ function OneDriveProviderRow({
|
|
|
33636
33670
|
}
|
|
33637
33671
|
) : null;
|
|
33638
33672
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
33639
|
-
|
|
33673
|
+
chunkEAH7LFJN_cjs.ImportRow,
|
|
33640
33674
|
{
|
|
33641
33675
|
testId: `onedrive-provider-row-${catalog.vendor_key}`,
|
|
33642
33676
|
logo: /* @__PURE__ */ jsxRuntime.jsx(VendorGlyph2, { catalog }),
|
|
@@ -33648,7 +33682,7 @@ function OneDriveProviderRow({
|
|
|
33648
33682
|
// Until folders are configured here (or when nothing new is pending), Import now
|
|
33649
33683
|
// stays disabled; the gear opens the folder picker.
|
|
33650
33684
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
33651
|
-
|
|
33685
|
+
chunkEAH7LFJN_cjs.ImportRunActions,
|
|
33652
33686
|
{
|
|
33653
33687
|
isRunning: running,
|
|
33654
33688
|
isStopping: cancelSync.isPending,
|
|
@@ -33667,16 +33701,16 @@ function OneDriveProviderRow({
|
|
|
33667
33701
|
) : reconnectAction
|
|
33668
33702
|
),
|
|
33669
33703
|
children: [
|
|
33670
|
-
ownsAuth && needsReconnect && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
33704
|
+
ownsAuth && needsReconnect && /* @__PURE__ */ jsxRuntime.jsxs(chunkEAH7LFJN_cjs.ImportHint, { "data-testid": `onedrive-reconnect-hint-${catalog.vendor_key}`, children: [
|
|
33671
33705
|
"Couldn\u2019t reach SharePoint. Click ",
|
|
33672
33706
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium", children: "Reconnect" }),
|
|
33673
33707
|
" \u2014 if it keeps happening, log out and back in to refresh the connection."
|
|
33674
33708
|
] }),
|
|
33675
33709
|
configuredHere && !needsReconnect && !running && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
33676
|
-
|
|
33710
|
+
chunkEAH7LFJN_cjs.ImportSummary,
|
|
33677
33711
|
{
|
|
33678
33712
|
className: "mt-2",
|
|
33679
|
-
aside: typeof pendingCount === "number" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
33713
|
+
aside: typeof pendingCount === "number" ? /* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_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,
|
|
33680
33714
|
children: [
|
|
33681
33715
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
33682
33716
|
"Syncing ",
|
|
@@ -33704,7 +33738,7 @@ function OneDriveProviderRow({
|
|
|
33704
33738
|
}
|
|
33705
33739
|
),
|
|
33706
33740
|
running && /* @__PURE__ */ jsxRuntime.jsx(
|
|
33707
|
-
|
|
33741
|
+
chunkEAH7LFJN_cjs.ImportProgress,
|
|
33708
33742
|
{
|
|
33709
33743
|
processed: progress?.processed ?? 0,
|
|
33710
33744
|
total: progress?.total,
|
|
@@ -33768,13 +33802,13 @@ function SharePointEnableRow({
|
|
|
33768
33802
|
}
|
|
33769
33803
|
};
|
|
33770
33804
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
33771
|
-
|
|
33805
|
+
chunkEAH7LFJN_cjs.ImportRow,
|
|
33772
33806
|
{
|
|
33773
33807
|
testId: `onedrive-provider-row-${catalog.vendor_key}`,
|
|
33774
|
-
logo: /* @__PURE__ */ jsxRuntime.jsx(
|
|
33808
|
+
logo: /* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.VendorLogo, { vendorKey: catalog.vendor_key, product: product.glyph, className: "h-7 w-7" }),
|
|
33775
33809
|
name: product.name,
|
|
33776
33810
|
actions: /* @__PURE__ */ jsxRuntime.jsx(
|
|
33777
|
-
|
|
33811
|
+
chunkEAH7LFJN_cjs.ImportActionButton,
|
|
33778
33812
|
{
|
|
33779
33813
|
onClick: () => void enable(),
|
|
33780
33814
|
disabled: pending,
|
|
@@ -33782,7 +33816,7 @@ function SharePointEnableRow({
|
|
|
33782
33816
|
children: pending ? "Enabling\u2026" : `Enable ${product.name}`
|
|
33783
33817
|
}
|
|
33784
33818
|
),
|
|
33785
|
-
children: sharePointAdminUrl && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
33819
|
+
children: sharePointAdminUrl && /* @__PURE__ */ jsxRuntime.jsxs(chunkEAH7LFJN_cjs.ImportHint, { children: [
|
|
33786
33820
|
"Does your organization require admin approval?",
|
|
33787
33821
|
" ",
|
|
33788
33822
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -33831,11 +33865,11 @@ function DriveImportPanel({
|
|
|
33831
33865
|
}
|
|
33832
33866
|
const product = driveProduct(entry.vendor_key);
|
|
33833
33867
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
33834
|
-
|
|
33868
|
+
chunkEAH7LFJN_cjs.ImportRow,
|
|
33835
33869
|
{
|
|
33836
33870
|
testId: `onedrive-provider-row-${entry.vendor_key}`,
|
|
33837
33871
|
logo: /* @__PURE__ */ jsxRuntime.jsx(
|
|
33838
|
-
|
|
33872
|
+
chunkEAH7LFJN_cjs.VendorLogo,
|
|
33839
33873
|
{
|
|
33840
33874
|
vendorKey: entry.vendor_key,
|
|
33841
33875
|
product: product.glyph,
|
|
@@ -33860,7 +33894,7 @@ function DriveImportPanel({
|
|
|
33860
33894
|
);
|
|
33861
33895
|
}).filter(Boolean);
|
|
33862
33896
|
if (rows.length === 0) return null;
|
|
33863
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
33897
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.ImportList, { "data-testid": "onedrive-import-panel", children: rows });
|
|
33864
33898
|
}
|
|
33865
33899
|
function useHasAccountsImport() {
|
|
33866
33900
|
const isVendorVisible = react$1.useConnectorVendorVisibility();
|
|
@@ -33962,7 +33996,7 @@ function ConnectedUploadDialog({ props, onClose }) {
|
|
|
33962
33996
|
title: source ? TITLES[source] : `Add ${ui.getEntityLabel("DOCUMENT", "PLURAL")}`,
|
|
33963
33997
|
description: `Upload documents to ${workspace.name}`,
|
|
33964
33998
|
workspaceName: workspace.name,
|
|
33965
|
-
workspaceIcon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
33999
|
+
workspaceIcon: /* @__PURE__ */ jsxRuntime.jsx(chunkGZPNBSRE_cjs.ConnectedWorkspaceEntity, { workspace, size: 16, variant: "icon" })
|
|
33966
34000
|
}
|
|
33967
34001
|
),
|
|
33968
34002
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-h-0 flex-1 flex-col", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -34005,7 +34039,7 @@ function ConnectedBulkTagCrumbs() {
|
|
|
34005
34039
|
{
|
|
34006
34040
|
items: [
|
|
34007
34041
|
{
|
|
34008
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
34042
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkGZPNBSRE_cjs.ConnectedWorkspaceEntity, { workspace, size: 16, variant: "icon" }),
|
|
34009
34043
|
label: workspace.name
|
|
34010
34044
|
},
|
|
34011
34045
|
...pageLabel ? [{ icon: /* @__PURE__ */ jsxRuntime.jsx(ui.EntityIcon, { entityType: "DOCUMENT", className: "size-4" }), label: pageLabel }] : []
|
|
@@ -34032,7 +34066,7 @@ function DocumentNameCellRenderer(params) {
|
|
|
34032
34066
|
if (!doc) return null;
|
|
34033
34067
|
const context = params.context;
|
|
34034
34068
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
34035
|
-
|
|
34069
|
+
chunk633ZCYVN_cjs.DocumentNameCell,
|
|
34036
34070
|
{
|
|
34037
34071
|
doc,
|
|
34038
34072
|
canEdit: canEdit(params),
|
|
@@ -34050,7 +34084,7 @@ function DocumentNameCellRenderer(params) {
|
|
|
34050
34084
|
function SharedCellRenderer(params) {
|
|
34051
34085
|
if (!params.data) return null;
|
|
34052
34086
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
34053
|
-
|
|
34087
|
+
chunk633ZCYVN_cjs.DocumentSharedCell,
|
|
34054
34088
|
{
|
|
34055
34089
|
document: params.data,
|
|
34056
34090
|
disabled: !params.canToggle(params),
|
|
@@ -34063,7 +34097,7 @@ function StatusCellRenderer(params) {
|
|
|
34063
34097
|
if (!params.data) return null;
|
|
34064
34098
|
const context = params.context;
|
|
34065
34099
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
34066
|
-
|
|
34100
|
+
chunk633ZCYVN_cjs.StatusCell,
|
|
34067
34101
|
{
|
|
34068
34102
|
doc: params.data,
|
|
34069
34103
|
onStatusClick: params.onStatusClick,
|
|
@@ -34075,7 +34109,7 @@ function LabelsCellRenderer(params) {
|
|
|
34075
34109
|
if (!params.data) return null;
|
|
34076
34110
|
const context = params.context;
|
|
34077
34111
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
34078
|
-
|
|
34112
|
+
chunk633ZCYVN_cjs.DocumentLabelsCell,
|
|
34079
34113
|
{
|
|
34080
34114
|
doc: params.data,
|
|
34081
34115
|
labels: params.labels,
|
|
@@ -34095,7 +34129,7 @@ function RelatedDocsCellRenderer(params) {
|
|
|
34095
34129
|
if (!related || react$1.getRelatedTotal(related) === 0) return null;
|
|
34096
34130
|
const { onOpenDocument, onDeleteDocument } = params;
|
|
34097
34131
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
34098
|
-
|
|
34132
|
+
chunk633ZCYVN_cjs.RelatedDocumentsCell,
|
|
34099
34133
|
{
|
|
34100
34134
|
currentDoc: params.data,
|
|
34101
34135
|
related,
|
|
@@ -34110,7 +34144,7 @@ function FolderCellRenderer(params) {
|
|
|
34110
34144
|
if (!params.data) return null;
|
|
34111
34145
|
const context = params.context;
|
|
34112
34146
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
34113
|
-
|
|
34147
|
+
chunk633ZCYVN_cjs.DocumentFolderCell,
|
|
34114
34148
|
{
|
|
34115
34149
|
document: params.data,
|
|
34116
34150
|
isEditable: params.canEdit(params),
|
|
@@ -34124,7 +34158,7 @@ function CreatedByCellRenderer(params) {
|
|
|
34124
34158
|
const context = params.context;
|
|
34125
34159
|
const creator = context?.getWorkspaceUsers?.().find((u) => u.external_id === params.data.created_by_ext_id);
|
|
34126
34160
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center h-full", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
34127
|
-
|
|
34161
|
+
chunk633ZCYVN_cjs.UserAvatar,
|
|
34128
34162
|
{
|
|
34129
34163
|
user: creator,
|
|
34130
34164
|
isMe: !!creator && creator.external_id === context?.getCurrentUserId?.(),
|
|
@@ -34137,7 +34171,7 @@ function CheckboxCellRenderer(params) {
|
|
|
34137
34171
|
if (!params.data) return null;
|
|
34138
34172
|
const isChecked = params.value === true;
|
|
34139
34173
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
34140
|
-
|
|
34174
|
+
chunkEAH7LFJN_cjs.CheckboxCell,
|
|
34141
34175
|
{
|
|
34142
34176
|
isChecked,
|
|
34143
34177
|
color: tagColor,
|
|
@@ -34157,13 +34191,13 @@ function TagHeaderComponent(params) {
|
|
|
34157
34191
|
return () => params.column.removeEventListener("sortChanged", updateSort);
|
|
34158
34192
|
}, [params.column]);
|
|
34159
34193
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
34160
|
-
|
|
34194
|
+
chunkEAH7LFJN_cjs.TagColumnHeader,
|
|
34161
34195
|
{
|
|
34162
34196
|
isCentered: isCheckbox,
|
|
34163
34197
|
sort,
|
|
34164
34198
|
onSort: params.enableSorting ? (additive) => params.progressSort(additive) : void 0,
|
|
34165
|
-
filter: /* @__PURE__ */ jsxRuntime.jsx(
|
|
34166
|
-
label: /* @__PURE__ */ jsxRuntime.jsx(
|
|
34199
|
+
filter: /* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.FilterButton, { params, colId: tag.external_id }),
|
|
34200
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(chunkELN3YOXF_cjs.ConnectedTagEntity, { tag, size: "sm" })
|
|
34167
34201
|
}
|
|
34168
34202
|
);
|
|
34169
34203
|
}
|
|
@@ -34248,7 +34282,7 @@ function createTagColumn({
|
|
|
34248
34282
|
tagColor,
|
|
34249
34283
|
isMember
|
|
34250
34284
|
} : void 0,
|
|
34251
|
-
cellEditor: isSelect ?
|
|
34285
|
+
cellEditor: isSelect ? chunkEAH7LFJN_cjs.MultiSelectCellEditor : isText ? "agLargeTextCellEditor" : void 0,
|
|
34252
34286
|
cellEditorParams: isSelect ? createMultiSelectCellEditorParams(tag.tag_type.options || []) : isText ? { rows: 8, cols: 50 } : void 0,
|
|
34253
34287
|
cellEditorPopup: isText || isSelect,
|
|
34254
34288
|
// Text and Select tags use popup editor for better UX
|
|
@@ -34368,8 +34402,8 @@ function createDocumentColumns({
|
|
|
34368
34402
|
onShareDocument,
|
|
34369
34403
|
notify: notify19
|
|
34370
34404
|
}) {
|
|
34371
|
-
const isRowEditableByOwner = (params) =>
|
|
34372
|
-
const isRowEditableByMember = (params) =>
|
|
34405
|
+
const isRowEditableByOwner = (params) => chunkEAH7LFJN_cjs.canChangeVisibility(params.data, currentUserExtId);
|
|
34406
|
+
const isRowEditableByMember = (params) => chunkEAH7LFJN_cjs.canEditDocumentFields(params.data, currentUserExtId, workspaceRole);
|
|
34373
34407
|
const checkboxTags = availableTags.filter(browser.isLabelTag);
|
|
34374
34408
|
const allColumns = [];
|
|
34375
34409
|
allColumns.push({
|
|
@@ -34461,7 +34495,7 @@ function createDocumentColumns({
|
|
|
34461
34495
|
cellRenderer: DocumentNameCellRenderer,
|
|
34462
34496
|
cellRendererParams: {
|
|
34463
34497
|
canEdit: isRowEditableByMember,
|
|
34464
|
-
canDelete: (params) =>
|
|
34498
|
+
canDelete: (params) => chunkEAH7LFJN_cjs.canDeleteDocument(params.data, currentUserExtId, workspaceRole),
|
|
34465
34499
|
onOpenDocument: handleToggleDocumentViewer,
|
|
34466
34500
|
onReviewDocument,
|
|
34467
34501
|
onDocumentChat,
|
|
@@ -34493,7 +34527,7 @@ function createDocumentColumns({
|
|
|
34493
34527
|
singleClickEdit: true,
|
|
34494
34528
|
cellEditor: "agSelectCellEditor",
|
|
34495
34529
|
cellEditorParams: {
|
|
34496
|
-
values: [...
|
|
34530
|
+
values: [...chunkEAH7LFJN_cjs.DOCUMENT_TYPE_OPTIONS]
|
|
34497
34531
|
},
|
|
34498
34532
|
context: { icon: lucideReact.Sparkles },
|
|
34499
34533
|
valueGetter: (params) => ui.getDocumentNature(params.data) || "",
|
|
@@ -35031,7 +35065,7 @@ function useDocumentTable({
|
|
|
35031
35065
|
}
|
|
35032
35066
|
const stabilizedTagIds = prevTagIdsRef.current;
|
|
35033
35067
|
const stabilizedTagNames = prevTagNamesRef.current;
|
|
35034
|
-
const defaultVisibleColumns = react.useMemo(() => [...
|
|
35068
|
+
const defaultVisibleColumns = react.useMemo(() => [...chunkEAH7LFJN_cjs.DEFAULT_DOCUMENT_COLUMNS], []);
|
|
35035
35069
|
const confirmRef = react.useRef(confirm);
|
|
35036
35070
|
confirmRef.current = confirm;
|
|
35037
35071
|
const shareDocument = react.useCallback(async (docId) => {
|
|
@@ -35279,7 +35313,7 @@ function ConnectedFilesBulkActions({
|
|
|
35279
35313
|
const actions = react$1.useDocumentHostActions();
|
|
35280
35314
|
const isOnline = documentTools.useIsOnline();
|
|
35281
35315
|
const { userId } = chunkVWSOHZK2_cjs.useConnectedWorkspace();
|
|
35282
|
-
const { role } =
|
|
35316
|
+
const { role } = chunkVJHDCYKE_cjs.useConnectedWorkspaceRole();
|
|
35283
35317
|
const offlineIds = react$1.useOfflineDocumentIds();
|
|
35284
35318
|
const keepOffline = react$1.useKeepDocumentsOffline();
|
|
35285
35319
|
const removeOffline = react$1.useRemoveDocumentsOffline();
|
|
@@ -35288,9 +35322,9 @@ function ConnectedFilesBulkActions({
|
|
|
35288
35322
|
const bulk = useDocumentBulkActions(selectedDocuments);
|
|
35289
35323
|
const count2 = selectedDocuments.length;
|
|
35290
35324
|
const noun = ui.getEntityLabel("DOCUMENT", count2 === 1 ? "SINGULAR" : "PLURAL");
|
|
35291
|
-
const shareState =
|
|
35325
|
+
const shareState = chunkEAH7LFJN_cjs.shareStateOf(bulk.freshSelectedDocuments);
|
|
35292
35326
|
const canDelete = bulk.freshSelectedDocuments.every(
|
|
35293
|
-
(doc) =>
|
|
35327
|
+
(doc) => chunkEAH7LFJN_cjs.canDeleteDocument(doc, userId ?? void 0, role ?? null)
|
|
35294
35328
|
);
|
|
35295
35329
|
const [confirming, setConfirming] = react.useState(null);
|
|
35296
35330
|
const allOffline = count2 > 0 && selectedDocuments.every((doc) => offlineIds.has(doc.external_id));
|
|
@@ -35302,7 +35336,7 @@ function ConnectedFilesBulkActions({
|
|
|
35302
35336
|
const { openDocumentsChat, openFieldsManager } = actions;
|
|
35303
35337
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
35304
35338
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
35305
|
-
|
|
35339
|
+
chunkEAH7LFJN_cjs.BulkActionsBar,
|
|
35306
35340
|
{
|
|
35307
35341
|
count: count2,
|
|
35308
35342
|
onClear: onClearSelection,
|
|
@@ -35327,7 +35361,7 @@ function ConnectedFilesBulkActions({
|
|
|
35327
35361
|
isOfflinePending: offlinePending,
|
|
35328
35362
|
onDelete: canDelete ? () => setConfirming("delete") : void 0,
|
|
35329
35363
|
shareState,
|
|
35330
|
-
shareTooltip:
|
|
35364
|
+
shareTooltip: chunkEAH7LFJN_cjs.shareTooltipFor(shareState, bulk.freshSelectedDocuments.length === 1),
|
|
35331
35365
|
onShare: () => void bulk.share()
|
|
35332
35366
|
}
|
|
35333
35367
|
),
|
|
@@ -35342,7 +35376,7 @@ function ConnectedFilesBulkActions({
|
|
|
35342
35376
|
onClearSelection();
|
|
35343
35377
|
},
|
|
35344
35378
|
title: `Delete ${count2} ${noun}`,
|
|
35345
|
-
description: `Delete ${namedTargets(selectedDocuments)}? ${count2 === 1 ?
|
|
35379
|
+
description: `Delete ${namedTargets(selectedDocuments)}? ${count2 === 1 ? chunkEAH7LFJN_cjs.RECENTLY_DELETED_HINT : chunkEAH7LFJN_cjs.RECENTLY_DELETED_HINT_PLURAL}`,
|
|
35346
35380
|
confirmText: "Delete",
|
|
35347
35381
|
variant: "destructive"
|
|
35348
35382
|
}
|
|
@@ -35590,7 +35624,7 @@ function useAiReviewLiveUpdates() {
|
|
|
35590
35624
|
if (message.batch_type !== "doctag_generate") return;
|
|
35591
35625
|
const docIds = message.doc_ext_ids ?? [];
|
|
35592
35626
|
if (!docIds.length) return;
|
|
35593
|
-
void refreshDocuments(docIds).then(() =>
|
|
35627
|
+
void refreshDocuments(docIds).then(() => chunkAZUPMHZI_cjs.useAiReviewStore.getState().markFinished(docIds));
|
|
35594
35628
|
dropQueuedRows(docIds);
|
|
35595
35629
|
});
|
|
35596
35630
|
}
|
|
@@ -35625,7 +35659,7 @@ function useBatchCompleteToasts() {
|
|
|
35625
35659
|
const workspaceId = message.workspace_ext_id;
|
|
35626
35660
|
const docIds = message.doc_ext_ids ?? [];
|
|
35627
35661
|
const workspace = workspacesRef.current?.find((w) => w.external_id === workspaceId);
|
|
35628
|
-
const icon2 = workspace ? react.createElement(
|
|
35662
|
+
const icon2 = workspace ? react.createElement(chunkGZPNBSRE_cjs.ConnectedWorkspaceEntity, { workspace, variant: "icon", size: 20 }) : void 0;
|
|
35629
35663
|
const say = (text2, kind, options = {}) => notify19(text2, kind, { workspaceId, icon: icon2, ...options, ambient: false });
|
|
35630
35664
|
if (message.batch_type === "doctag_generate") {
|
|
35631
35665
|
const run = pending.current.get(workspaceId) ?? { docIds: /* @__PURE__ */ new Set(), icon: icon2 };
|
|
@@ -35636,7 +35670,7 @@ function useBatchCompleteToasts() {
|
|
|
35636
35670
|
timer.current = null;
|
|
35637
35671
|
const runs = pending.current;
|
|
35638
35672
|
pending.current = /* @__PURE__ */ new Map();
|
|
35639
|
-
const hasReview = !!
|
|
35673
|
+
const hasReview = !!chunkAZUPMHZI_cjs.useAiReviewStore.getState().run;
|
|
35640
35674
|
for (const [id, entry] of runs) {
|
|
35641
35675
|
const n = entry.docIds.size;
|
|
35642
35676
|
notify19(
|
|
@@ -35649,7 +35683,7 @@ function useBatchCompleteToasts() {
|
|
|
35649
35683
|
...hasReview && {
|
|
35650
35684
|
action: {
|
|
35651
35685
|
label: "View results",
|
|
35652
|
-
onClick: () =>
|
|
35686
|
+
onClick: () => chunkAZUPMHZI_cjs.useAiReviewStore.getState().setOpen(true)
|
|
35653
35687
|
}
|
|
35654
35688
|
}
|
|
35655
35689
|
}
|
|
@@ -35657,7 +35691,7 @@ function useBatchCompleteToasts() {
|
|
|
35657
35691
|
}
|
|
35658
35692
|
}, AI_FIELDS_NOTICE_WINDOW_MS);
|
|
35659
35693
|
} else if (message.batch_type === "entity_extract") {
|
|
35660
|
-
say(`${
|
|
35694
|
+
say(`${chunkAWQEN6WW_cjs.entitiesPhrase()} extracted from ${chunkAWQEN6WW_cjs.documentCount(docIds.length)}`, "success", {
|
|
35661
35695
|
...openTags && { action: { label: "View", onClick: openTags } }
|
|
35662
35696
|
});
|
|
35663
35697
|
} else if (message.batch_type === "upload") {
|
|
@@ -35696,12 +35730,12 @@ function ConnectedMoveToFolder({
|
|
|
35696
35730
|
setIsSubmitting(true);
|
|
35697
35731
|
try {
|
|
35698
35732
|
if (folderToMove) {
|
|
35699
|
-
const docsInFolder =
|
|
35733
|
+
const docsInFolder = chunkEAH7LFJN_cjs.collectFolderDocs(allDocs, folderToMove.path);
|
|
35700
35734
|
if (docsInFolder.length === 0) {
|
|
35701
35735
|
onClose();
|
|
35702
35736
|
return;
|
|
35703
35737
|
}
|
|
35704
|
-
const newPrefixSegments = targetFolder ? [...
|
|
35738
|
+
const newPrefixSegments = targetFolder ? [...chunkEAH7LFJN_cjs.parseFolderSegments(targetFolder), folderToMove.name] : [folderToMove.name];
|
|
35705
35739
|
await renameFolder(docsInFolder, folderToMove.path, newPrefixSegments);
|
|
35706
35740
|
const dest = targetFolder ? `"${targetFolder}/${folderToMove.name}"` : `"${folderToMove.name}" (root)`;
|
|
35707
35741
|
notify19(`Moved folder to ${dest}`, "success");
|
|
@@ -35726,9 +35760,9 @@ function ConnectedMoveToFolder({
|
|
|
35726
35760
|
}
|
|
35727
35761
|
};
|
|
35728
35762
|
const isFolderMode = !!folderToMove;
|
|
35729
|
-
const folders =
|
|
35763
|
+
const folders = chunk633ZCYVN_cjs.useDocumentFolders(allDocs, targetFolder);
|
|
35730
35764
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
35731
|
-
|
|
35765
|
+
chunkEAH7LFJN_cjs.MoveToFolderDialog,
|
|
35732
35766
|
{
|
|
35733
35767
|
open: isOpen,
|
|
35734
35768
|
onClose,
|
|
@@ -35738,7 +35772,7 @@ function ConnectedMoveToFolder({
|
|
|
35738
35772
|
isSubmitting,
|
|
35739
35773
|
onConfirm: handleMove,
|
|
35740
35774
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
35741
|
-
|
|
35775
|
+
chunkEAH7LFJN_cjs.FolderCommandList,
|
|
35742
35776
|
{
|
|
35743
35777
|
folders,
|
|
35744
35778
|
value: targetFolder,
|
|
@@ -35966,7 +36000,7 @@ function ConnectedBulkTagEditor({
|
|
|
35966
36000
|
const isClearing = change?.action === "remove";
|
|
35967
36001
|
return {
|
|
35968
36002
|
id: tag.external_id,
|
|
35969
|
-
badge: /* @__PURE__ */ jsxRuntime.jsx(
|
|
36003
|
+
badge: /* @__PURE__ */ jsxRuntime.jsx(chunkELN3YOXF_cjs.ConnectedTagEntity, { tag, size: "md" }),
|
|
35970
36004
|
type: tag.tag_type.type,
|
|
35971
36005
|
color: ui.getEntityColor(tag.external_id, "medium"),
|
|
35972
36006
|
options: tag.tag_type.type === "select" ? tag.tag_type.options : void 0,
|
|
@@ -35998,7 +36032,7 @@ function ConnectedBulkTagEditor({
|
|
|
35998
36032
|
const documentsLabel = ui.getEntityLabel("DOCUMENT", "PLURAL").toLowerCase();
|
|
35999
36033
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
36000
36034
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
36001
|
-
|
|
36035
|
+
chunkEAH7LFJN_cjs.BulkTagEditorDialog,
|
|
36002
36036
|
{
|
|
36003
36037
|
open,
|
|
36004
36038
|
onClose,
|
|
@@ -36056,7 +36090,7 @@ function ConnectedBulkTagEditor({
|
|
|
36056
36090
|
}
|
|
36057
36091
|
),
|
|
36058
36092
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
36059
|
-
|
|
36093
|
+
chunkEAH7LFJN_cjs.BulkReplaceDialog,
|
|
36060
36094
|
{
|
|
36061
36095
|
open: showGenerateConfirmation,
|
|
36062
36096
|
onClose: () => setShowGenerateConfirmation(false),
|
|
@@ -36160,7 +36194,7 @@ function useTableViews(table) {
|
|
|
36160
36194
|
function useViewWrites(savedViews, saveView, deleteView, shareView) {
|
|
36161
36195
|
const { confirm, notify: notify19 } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
36162
36196
|
const nameOf = react.useCallback(
|
|
36163
|
-
(key) => savedViews.find((v) =>
|
|
36197
|
+
(key) => savedViews.find((v) => chunkEAH7LFJN_cjs.viewKey(v) === key)?.name ?? key,
|
|
36164
36198
|
[savedViews]
|
|
36165
36199
|
);
|
|
36166
36200
|
const onSaveView = react.useCallback(
|
|
@@ -36232,7 +36266,7 @@ function ViewSelector({
|
|
|
36232
36266
|
columns: defaultColumns,
|
|
36233
36267
|
icon: lucideReact.Table,
|
|
36234
36268
|
// Both built-ins load at the minimal (compact) row height.
|
|
36235
|
-
rowHeight:
|
|
36269
|
+
rowHeight: chunkEAH7LFJN_cjs.DOCUMENTS_ROW_HEIGHT_INITIAL,
|
|
36236
36270
|
// [] = loading this view unpins everything.
|
|
36237
36271
|
pinnedLeft: []
|
|
36238
36272
|
},
|
|
@@ -36243,15 +36277,15 @@ function ViewSelector({
|
|
|
36243
36277
|
// batch-select checkbox and Title stay fixed left while scrolling.
|
|
36244
36278
|
columns: defaultColumns,
|
|
36245
36279
|
icon: lucideReact.Columns3,
|
|
36246
|
-
rowHeight:
|
|
36280
|
+
rowHeight: chunkEAH7LFJN_cjs.DOCUMENTS_ROW_HEIGHT_INITIAL,
|
|
36247
36281
|
pinnedLeft: DOCUMENT_VIEW_PINNED
|
|
36248
36282
|
},
|
|
36249
36283
|
{
|
|
36250
36284
|
key: "email-default",
|
|
36251
36285
|
label: "Email view",
|
|
36252
|
-
columns: [...
|
|
36286
|
+
columns: [...chunkEAH7LFJN_cjs.EMAIL_VIEW_COLUMNS],
|
|
36253
36287
|
icon: lucideReact.Mail,
|
|
36254
|
-
rowHeight:
|
|
36288
|
+
rowHeight: chunkEAH7LFJN_cjs.DOCUMENTS_ROW_HEIGHT_INITIAL,
|
|
36255
36289
|
pinnedLeft: []
|
|
36256
36290
|
}
|
|
36257
36291
|
],
|
|
@@ -36263,7 +36297,7 @@ function ViewSelector({
|
|
|
36263
36297
|
deleteView,
|
|
36264
36298
|
shareView
|
|
36265
36299
|
);
|
|
36266
|
-
const menu =
|
|
36300
|
+
const menu = chunkEAH7LFJN_cjs.useGridViews({
|
|
36267
36301
|
getGridApi,
|
|
36268
36302
|
defaultColumns,
|
|
36269
36303
|
builtins,
|
|
@@ -36290,7 +36324,7 @@ function ViewSelector({
|
|
|
36290
36324
|
onSelectView(requestedView);
|
|
36291
36325
|
clearRequestedView(void 0);
|
|
36292
36326
|
}, [requestedView, savedViews, getGridApi, stateVersion, onSelectView, clearRequestedView]);
|
|
36293
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
36327
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.ViewSelectorMenu, { ...menu });
|
|
36294
36328
|
}
|
|
36295
36329
|
function DocumentsFilterBarActions({
|
|
36296
36330
|
isModal,
|
|
@@ -36330,7 +36364,7 @@ function DocumentsFilterBarActions({
|
|
|
36330
36364
|
),
|
|
36331
36365
|
documentsViewMode === "grid" && // The phone list is a fixed two-line layout, so row density only applies from sm up.
|
|
36332
36366
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "hidden sm:block", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
36333
|
-
|
|
36367
|
+
chunkEAH7LFJN_cjs.RowDensityControl,
|
|
36334
36368
|
{
|
|
36335
36369
|
rowHeight: documentsRowHeight,
|
|
36336
36370
|
onRowHeightChange: onDocumentsRowHeightChange
|
|
@@ -36427,8 +36461,8 @@ function DocumentsFilterBarActions({
|
|
|
36427
36461
|
}
|
|
36428
36462
|
function PersistedGridView(props) {
|
|
36429
36463
|
const { persistState, gridId } = props;
|
|
36430
|
-
const setGridState =
|
|
36431
|
-
const gridState = persistState && gridId ?
|
|
36464
|
+
const setGridState = chunkAZUPMHZI_cjs.useFilesGridStates((state) => state.setGridState);
|
|
36465
|
+
const gridState = persistState && gridId ? chunkAZUPMHZI_cjs.useFilesGridStates.getState().gridStates[gridId] : void 0;
|
|
36432
36466
|
const onGridStateChange = react.useCallback(
|
|
36433
36467
|
(state) => {
|
|
36434
36468
|
if (persistState && gridId) setGridState(gridId, state);
|
|
@@ -36530,13 +36564,13 @@ var TABLET_TABLE_BELOW = 860;
|
|
|
36530
36564
|
var TABLET_VIEWPORT_BELOW = 1100;
|
|
36531
36565
|
var NO_CONVERSATION_DOCUMENTS2 = [];
|
|
36532
36566
|
var DocumentReviewCard = react.lazy(
|
|
36533
|
-
() => import('../DocumentReviewCard-
|
|
36567
|
+
() => import('../DocumentReviewCard-Q3NKJLSM.cjs').then((module) => ({ default: module.DocumentReviewCard }))
|
|
36534
36568
|
);
|
|
36535
36569
|
var FilesViewerDialog = react.lazy(
|
|
36536
|
-
() => import('../FilesViewerDialog-
|
|
36570
|
+
() => import('../FilesViewerDialog-4JWDTDO7.cjs').then((module) => ({ default: module.FilesViewerDialog }))
|
|
36537
36571
|
);
|
|
36538
36572
|
function defaultReviewCard(props) {
|
|
36539
|
-
return /* @__PURE__ */ jsxRuntime.jsx(react.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
36573
|
+
return /* @__PURE__ */ jsxRuntime.jsx(react.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkAWQEN6WW_cjs.LoadingIndicator, { message: "Loading document viewer..." }), children: /* @__PURE__ */ jsxRuntime.jsx(DocumentReviewCard, { ...props }, `navigator-${props.currentDocument.external_id}`) });
|
|
36540
36574
|
}
|
|
36541
36575
|
function ConnectedFilesPage({
|
|
36542
36576
|
isModal = false,
|
|
@@ -36558,7 +36592,7 @@ function ConnectedFilesPage({
|
|
|
36558
36592
|
GridComponent = PersistedGridView,
|
|
36559
36593
|
gridStateVersion,
|
|
36560
36594
|
onGridApi,
|
|
36561
|
-
prefsKey =
|
|
36595
|
+
prefsKey = chunkAZUPMHZI_cjs.FILES_PREFS_KEY,
|
|
36562
36596
|
defaultViewMode
|
|
36563
36597
|
}) {
|
|
36564
36598
|
const { openDocument, openDialog: openDialog2, openProcessing, openTags } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
@@ -36579,7 +36613,7 @@ function ConnectedFilesPage({
|
|
|
36579
36613
|
const deleteDocuments = react$1.useDeleteDocuments();
|
|
36580
36614
|
const isDocumentsPending = isLoading && documents.length === 0;
|
|
36581
36615
|
const { workspaceId, userId, live } = chunkVWSOHZK2_cjs.useConnectedWorkspace();
|
|
36582
|
-
const { role, members } =
|
|
36616
|
+
const { role, members } = chunkVJHDCYKE_cjs.useConnectedWorkspaceRole();
|
|
36583
36617
|
const { data: workspaces } = react$1.useWorkspaces({ enabled: live });
|
|
36584
36618
|
const workspace = workspaces?.find((w) => w.external_id === workspaceId);
|
|
36585
36619
|
const workspaceName = workspace?.name;
|
|
@@ -36604,8 +36638,8 @@ function ConnectedFilesPage({
|
|
|
36604
36638
|
const inConversationDocuments = react$1.useArbiSessionState(
|
|
36605
36639
|
(s) => s.conversationDocuments[s.conversationId ?? "new"] ?? NO_CONVERSATION_DOCUMENTS2
|
|
36606
36640
|
);
|
|
36607
|
-
const viewMode =
|
|
36608
|
-
const setPrefsViewMode =
|
|
36641
|
+
const viewMode = chunkAZUPMHZI_cjs.useFilesPrefs((s) => chunkAZUPMHZI_cjs.filesViewMode(s, prefsKey, defaultViewMode));
|
|
36642
|
+
const setPrefsViewMode = chunkAZUPMHZI_cjs.useFilesPrefs((s) => s.setViewMode);
|
|
36609
36643
|
const setViewMode = react.useCallback(
|
|
36610
36644
|
(mode) => setPrefsViewMode(mode, prefsKey),
|
|
36611
36645
|
[setPrefsViewMode, prefsKey]
|
|
@@ -36635,7 +36669,7 @@ function ConnectedFilesPage({
|
|
|
36635
36669
|
shownPlaceRef.current = null;
|
|
36636
36670
|
if (session.getState().documentViewer.compareId)
|
|
36637
36671
|
session.setDocumentViewer({ compareId: null });
|
|
36638
|
-
if (
|
|
36672
|
+
if (chunkAZUPMHZI_cjs.filesViewMode(chunkAZUPMHZI_cjs.useFilesPrefs.getState(), prefsKey, defaultViewMode) !== "navigator")
|
|
36639
36673
|
session.setViewingDocument(null);
|
|
36640
36674
|
if (!fromLink) latest.current.onDocumentChange?.(null);
|
|
36641
36675
|
},
|
|
@@ -36724,9 +36758,9 @@ function ConnectedFilesPage({
|
|
|
36724
36758
|
else if (linkedPlaceKey !== shownPlaceRef.current) showInDialog(place, true);
|
|
36725
36759
|
} else if (previous && ownsViewer && shownPlaceRef.current) closeDialog2(true);
|
|
36726
36760
|
}, [linkedPlaceKey]);
|
|
36727
|
-
const rowHeight =
|
|
36728
|
-
const setRowHeight =
|
|
36729
|
-
const ownGridStates =
|
|
36761
|
+
const rowHeight = chunkAZUPMHZI_cjs.useFilesPrefs((s) => s.rowHeight);
|
|
36762
|
+
const setRowHeight = chunkAZUPMHZI_cjs.useFilesPrefs((s) => s.setRowHeight);
|
|
36763
|
+
const ownGridStates = chunkAZUPMHZI_cjs.useFilesGridStates((s) => s.gridStates);
|
|
36730
36764
|
const stateVersion = gridStateVersion ?? ownGridStates;
|
|
36731
36765
|
const [pageEl, setPageEl] = react.useState(null);
|
|
36732
36766
|
const [isTabletWidth, setIsTabletWidth] = react.useState(false);
|
|
@@ -36756,15 +36790,15 @@ function ConnectedFilesPage({
|
|
|
36756
36790
|
const [explorerSortReversed, setExplorerSortReversed] = react.useState(false);
|
|
36757
36791
|
const [explorerTileSize, setExplorerTileSize] = react.useState(TILE_DEFAULT);
|
|
36758
36792
|
const [urlDialogOpen, setUrlDialogOpen] = react.useState(false);
|
|
36759
|
-
const move =
|
|
36760
|
-
const openMove =
|
|
36761
|
-
const closeMove =
|
|
36762
|
-
const bulkTagsOpen =
|
|
36763
|
-
const setBulkTagsOpen =
|
|
36764
|
-
const deleteRequest =
|
|
36765
|
-
const requestDelete =
|
|
36766
|
-
const exportOpen =
|
|
36767
|
-
const setExportOpen =
|
|
36793
|
+
const move = chunkAZUPMHZI_cjs.useFilesDialogs((s) => s.move);
|
|
36794
|
+
const openMove = chunkAZUPMHZI_cjs.useFilesDialogs((s) => s.openMove);
|
|
36795
|
+
const closeMove = chunkAZUPMHZI_cjs.useFilesDialogs((s) => s.closeMove);
|
|
36796
|
+
const bulkTagsOpen = chunkAZUPMHZI_cjs.useFilesDialogs((s) => s.bulkTagsOpen);
|
|
36797
|
+
const setBulkTagsOpen = chunkAZUPMHZI_cjs.useFilesDialogs((s) => s.setBulkTagsOpen);
|
|
36798
|
+
const deleteRequest = chunkAZUPMHZI_cjs.useFilesDialogs((s) => s.deleteRequest);
|
|
36799
|
+
const requestDelete = chunkAZUPMHZI_cjs.useFilesDialogs((s) => s.requestDelete);
|
|
36800
|
+
const exportOpen = chunkAZUPMHZI_cjs.useFilesDialogs((s) => s.exportOpen);
|
|
36801
|
+
const setExportOpen = chunkAZUPMHZI_cjs.useFilesDialogs((s) => s.setExportOpen);
|
|
36768
36802
|
const openOwnExport = react.useCallback(() => setExportOpen(true), [setExportOpen]);
|
|
36769
36803
|
const exportItems = react.useMemo(
|
|
36770
36804
|
() => selectedDocuments.map((doc) => ({
|
|
@@ -36779,7 +36813,7 @@ function ConnectedFilesPage({
|
|
|
36779
36813
|
);
|
|
36780
36814
|
const explorerRef = react.useRef(null);
|
|
36781
36815
|
const [explorerFileIds, setExplorerFileIds] = react.useState([]);
|
|
36782
|
-
const uploadUrls =
|
|
36816
|
+
const uploadUrls = chunkGZPNBSRE_cjs.useAddFromUrls({
|
|
36783
36817
|
onZipFiles: (files) => onUpload({ source: "computer", files })
|
|
36784
36818
|
});
|
|
36785
36819
|
const { data: workspaceTags = [] } = react$1.useTags();
|
|
@@ -36805,20 +36839,20 @@ function ConnectedFilesPage({
|
|
|
36805
36839
|
searchFields
|
|
36806
36840
|
});
|
|
36807
36841
|
const relatedDocsMap = useFilesPageSession(documents, workspaceId);
|
|
36808
|
-
const pendingFolders =
|
|
36842
|
+
const pendingFolders = chunkAZUPMHZI_cjs.usePendingFolders(workspaceId);
|
|
36809
36843
|
const defaultVisibleColumns = react.useMemo(
|
|
36810
36844
|
() => [
|
|
36811
|
-
...
|
|
36845
|
+
...chunkEAH7LFJN_cjs.DEFAULT_DOCUMENT_COLUMNS,
|
|
36812
36846
|
...allTags.filter(browser.isAnnotationTag).map((tag) => tag.external_id)
|
|
36813
36847
|
],
|
|
36814
36848
|
[allTags]
|
|
36815
36849
|
);
|
|
36816
36850
|
const handleReorderColumns = react.useCallback((ids, gridApi2) => {
|
|
36817
|
-
if (gridApi2)
|
|
36851
|
+
if (gridApi2) chunkEAH7LFJN_cjs.applyColumnLayout(gridApi2, ids);
|
|
36818
36852
|
}, []);
|
|
36819
36853
|
const handleLoadView = react.useCallback(
|
|
36820
36854
|
(view, gridApi2) => {
|
|
36821
|
-
|
|
36855
|
+
chunkEAH7LFJN_cjs.applyViewColumns(gridApi2, view, handleReorderColumns);
|
|
36822
36856
|
if (typeof view.tile_size === "number") setExplorerTileSize(view.tile_size);
|
|
36823
36857
|
if (typeof view.row_height === "number") setRowHeight(view.row_height);
|
|
36824
36858
|
},
|
|
@@ -36910,7 +36944,7 @@ function ConnectedFilesPage({
|
|
|
36910
36944
|
);
|
|
36911
36945
|
const currentDocument = viewingDocumentId ? filteredDocuments.find((d) => d.external_id === viewingDocumentId) ?? documents.find((d) => d.external_id === viewingDocumentId) ?? null : null;
|
|
36912
36946
|
const navigatorDocuments = react.useMemo(
|
|
36913
|
-
() =>
|
|
36947
|
+
() => chunkEAH7LFJN_cjs.sortExplorerFiles(filteredDocuments, explorerSort, explorerSortReversed),
|
|
36914
36948
|
[filteredDocuments, explorerSort, explorerSortReversed]
|
|
36915
36949
|
);
|
|
36916
36950
|
const navigatorOnNavigate = react.useCallback(
|
|
@@ -36980,7 +37014,7 @@ function ConnectedFilesPage({
|
|
|
36980
37014
|
},
|
|
36981
37015
|
rowHeight
|
|
36982
37016
|
};
|
|
36983
|
-
const documentsTabActions = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
37017
|
+
const documentsTabActions = /* @__PURE__ */ jsxRuntime.jsxs(chunkEAH7LFJN_cjs.FilesFilterBar, { children: [
|
|
36984
37018
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
36985
37019
|
chunk6UZC4XVV_cjs.FilterInput,
|
|
36986
37020
|
{
|
|
@@ -37015,7 +37049,7 @@ function ConnectedFilesPage({
|
|
|
37015
37049
|
),
|
|
37016
37050
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex shrink-0 items-center gap-2", children: [
|
|
37017
37051
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
37018
|
-
|
|
37052
|
+
chunkEAH7LFJN_cjs.DocumentsFolderButton,
|
|
37019
37053
|
{
|
|
37020
37054
|
documents,
|
|
37021
37055
|
documentFilters,
|
|
@@ -37024,7 +37058,7 @@ function ConnectedFilesPage({
|
|
|
37024
37058
|
emptyFolders: pendingFolders
|
|
37025
37059
|
}
|
|
37026
37060
|
),
|
|
37027
|
-
openTags && /* @__PURE__ */ jsxRuntime.jsx(
|
|
37061
|
+
openTags && /* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.FilesTagsButton, { onClick: openTags }),
|
|
37028
37062
|
workspaceId && /* @__PURE__ */ jsxRuntime.jsx(ConnectedRecentlyDeletedButton, { workspaceExtId: workspaceId })
|
|
37029
37063
|
] })
|
|
37030
37064
|
] });
|
|
@@ -37058,18 +37092,18 @@ function ConnectedFilesPage({
|
|
|
37058
37092
|
onProduce: () => openDialog2("productionSet")
|
|
37059
37093
|
}
|
|
37060
37094
|
);
|
|
37061
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
37095
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkEAH7LFJN_cjs.FilesPage, { isModal, ref: setPageEl, children: [
|
|
37062
37096
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
37063
|
-
|
|
37097
|
+
chunkEAH7LFJN_cjs.UrlInputDialog,
|
|
37064
37098
|
{
|
|
37065
37099
|
open: urlDialogOpen,
|
|
37066
37100
|
onOpenChange: setUrlDialogOpen,
|
|
37067
37101
|
onUrlsSubmit: uploadUrls,
|
|
37068
37102
|
titleWorkspaceName: workspaceName,
|
|
37069
|
-
titleIcon: workspace && /* @__PURE__ */ jsxRuntime.jsx(
|
|
37103
|
+
titleIcon: workspace && /* @__PURE__ */ jsxRuntime.jsx(chunkGZPNBSRE_cjs.ConnectedWorkspaceEntity, { workspace, size: 24, variant: "icon" })
|
|
37070
37104
|
}
|
|
37071
37105
|
),
|
|
37072
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
37106
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkEAH7LFJN_cjs.FilesPageHeader, { className: isModal ? "static" : void 0, children: [
|
|
37073
37107
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
37074
37108
|
chunkSJSGSHIT_cjs.TabHeader,
|
|
37075
37109
|
{
|
|
@@ -37090,12 +37124,12 @@ function ConnectedFilesPage({
|
|
|
37090
37124
|
activeTabId: "documents",
|
|
37091
37125
|
onTabChange: () => handleViewModeChange(lastDocsViewRef.current),
|
|
37092
37126
|
firstTabContent: isNarrowFilterRow ? null : documentsTabActions,
|
|
37093
|
-
centerContent: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
37127
|
+
centerContent: /* @__PURE__ */ jsxRuntime.jsxs(chunkEAH7LFJN_cjs.FilesViewCenter, { className: isNarrowFilterRow ? "min-w-0" : void 0, children: [
|
|
37094
37128
|
!isNarrowFilterRow && viewToggle,
|
|
37095
37129
|
/* @__PURE__ */ jsxRuntime.jsx(ProgressiveLoadingChip, {})
|
|
37096
37130
|
] }),
|
|
37097
37131
|
rightContent: /* @__PURE__ */ jsxRuntime.jsx(
|
|
37098
|
-
|
|
37132
|
+
chunkGZPNBSRE_cjs.DocumentsUploadButton,
|
|
37099
37133
|
{
|
|
37100
37134
|
isCompact: isNarrowFilterRow,
|
|
37101
37135
|
canUpload,
|
|
@@ -37120,14 +37154,14 @@ function ConnectedFilesPage({
|
|
|
37120
37154
|
}
|
|
37121
37155
|
),
|
|
37122
37156
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
37123
|
-
|
|
37157
|
+
chunkEAH7LFJN_cjs.FilesToolbar,
|
|
37124
37158
|
{
|
|
37125
37159
|
className: "px-3 pb-2",
|
|
37126
37160
|
rightActions: viewMode === "grid" || viewMode === "explorer" || viewMode === "navigator" ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
37127
37161
|
viewMode === "grid" ? (
|
|
37128
37162
|
// ‹ n / N › over the table's displayed rows; a step opens the document.
|
|
37129
37163
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
37130
|
-
|
|
37164
|
+
chunkAWQEN6WW_cjs.GridRowNavigator,
|
|
37131
37165
|
{
|
|
37132
37166
|
gridApi,
|
|
37133
37167
|
selectedId: viewingDocumentId ?? selectedDocumentIds[0] ?? null,
|
|
@@ -37136,13 +37170,14 @@ function ConnectedFilesPage({
|
|
|
37136
37170
|
showDocument(doc.external_id);
|
|
37137
37171
|
},
|
|
37138
37172
|
testId: "documents-table",
|
|
37139
|
-
itemLabel: "document"
|
|
37173
|
+
itemLabel: "document",
|
|
37174
|
+
keepWhenEmpty: documents.length > 0
|
|
37140
37175
|
}
|
|
37141
37176
|
)
|
|
37142
37177
|
) : viewMode === "explorer" ? (
|
|
37143
37178
|
// The same over the explorer's tiles.
|
|
37144
37179
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
37145
|
-
|
|
37180
|
+
chunkEAH7LFJN_cjs.ExplorerFileNavigator,
|
|
37146
37181
|
{
|
|
37147
37182
|
fileIds: explorerFileIds,
|
|
37148
37183
|
selectedId: viewingDocumentId ?? selectedDocumentIds[0] ?? null,
|
|
@@ -37181,7 +37216,7 @@ function ConnectedFilesPage({
|
|
|
37181
37216
|
}
|
|
37182
37217
|
),
|
|
37183
37218
|
viewMode === "navigator" && currentDocument && /* @__PURE__ */ jsxRuntime.jsx(
|
|
37184
|
-
|
|
37219
|
+
chunkEAH7LFJN_cjs.NavigatorPickerBar,
|
|
37185
37220
|
{
|
|
37186
37221
|
currentDocument,
|
|
37187
37222
|
documents: navigatorDocuments,
|
|
@@ -37208,11 +37243,11 @@ function ConnectedFilesPage({
|
|
|
37208
37243
|
}
|
|
37209
37244
|
}
|
|
37210
37245
|
) }),
|
|
37211
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
37246
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkEAH7LFJN_cjs.FilesPageMain, { children: [
|
|
37212
37247
|
viewMode === "grid" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
37213
|
-
|
|
37248
|
+
chunkEAH7LFJN_cjs.DocumentGrid,
|
|
37214
37249
|
{
|
|
37215
|
-
layout:
|
|
37250
|
+
layout: chunkEAH7LFJN_cjs.resolveDocumentGridLayout(isNarrowFilterRow, isModal, isTabletWidth),
|
|
37216
37251
|
presets: gridPresets,
|
|
37217
37252
|
GridComponent,
|
|
37218
37253
|
showEmptyWorkspace: documents.length === 0 && !isLoading && isMember,
|
|
@@ -37297,7 +37332,7 @@ function ConnectedFilesPage({
|
|
|
37297
37332
|
] }),
|
|
37298
37333
|
isModal && onClose ? /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "files-modal-bottom", className: "sticky bottom-0 z-40", children: [
|
|
37299
37334
|
bulkBar,
|
|
37300
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
37335
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.FilesModalFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { variant: "outline", onClick: onClose, children: "Close" }) })
|
|
37301
37336
|
] }) : bulkBar,
|
|
37302
37337
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
37303
37338
|
chunkK67VMSOX_cjs.ConfirmDialog,
|
|
@@ -37309,7 +37344,7 @@ function ConnectedFilesPage({
|
|
|
37309
37344
|
requestDelete(null);
|
|
37310
37345
|
},
|
|
37311
37346
|
title: "Delete Document",
|
|
37312
|
-
description: deleteRequest ? `Delete "${ui.getDocumentTitle(deleteRequest, "this document")}"? ${
|
|
37347
|
+
description: deleteRequest ? `Delete "${ui.getDocumentTitle(deleteRequest, "this document")}"? ${chunkEAH7LFJN_cjs.RECENTLY_DELETED_HINT}` : "",
|
|
37313
37348
|
confirmText: "Delete",
|
|
37314
37349
|
variant: "destructive"
|
|
37315
37350
|
}
|
|
@@ -37371,7 +37406,7 @@ function ConnectedFilesPage({
|
|
|
37371
37406
|
dialog.seq
|
|
37372
37407
|
) }),
|
|
37373
37408
|
workspace && /* @__PURE__ */ jsxRuntime.jsx(
|
|
37374
|
-
|
|
37409
|
+
chunkGZPNBSRE_cjs.ConnectedEmailWorkspaceDialog,
|
|
37375
37410
|
{
|
|
37376
37411
|
open: emailWorkspaceOpen,
|
|
37377
37412
|
onOpenChange: setEmailWorkspaceOpen,
|
|
@@ -37379,14 +37414,14 @@ function ConnectedFilesPage({
|
|
|
37379
37414
|
isMember
|
|
37380
37415
|
}
|
|
37381
37416
|
),
|
|
37382
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
37417
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkGZPNBSRE_cjs.ConnectedNewFileMenu, { open: newFileOpen, onOpenChange: setNewFileOpen }),
|
|
37383
37418
|
dialogs
|
|
37384
37419
|
] });
|
|
37385
37420
|
}
|
|
37386
37421
|
var NO_DOCUMENTS3 = [];
|
|
37387
37422
|
function ConnectedAiReviewHost(props) {
|
|
37388
|
-
const open =
|
|
37389
|
-
const setOpen =
|
|
37423
|
+
const open = chunkAZUPMHZI_cjs.useAiReviewStore((s) => s.open);
|
|
37424
|
+
const setOpen = chunkAZUPMHZI_cjs.useAiReviewStore((s) => s.setOpen);
|
|
37390
37425
|
return /* @__PURE__ */ jsxRuntime.jsx(ConnectedAiReview, { open, onOpenChange: setOpen, ...props });
|
|
37391
37426
|
}
|
|
37392
37427
|
function ConnectedGridView(props) {
|
|
@@ -37422,7 +37457,7 @@ function ProcessingSection({
|
|
|
37422
37457
|
tasks,
|
|
37423
37458
|
onDelete
|
|
37424
37459
|
}) {
|
|
37425
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
37460
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.TaskSection, { title, count: count2, status, tooltip: SECTION_TOOLTIPS[status], children: /* @__PURE__ */ jsxRuntime.jsx(chunkQDIIOZBP_cjs.UploadTaskList, { tasks, title: "", onDelete, renderFileIcon: renderFileIcon2 }) });
|
|
37426
37461
|
}
|
|
37427
37462
|
function ConnectedDocumentProcessingPanel({
|
|
37428
37463
|
workspaceId,
|
|
@@ -37635,7 +37670,7 @@ function ConnectedProcessingPanel({ headerActions }) {
|
|
|
37635
37670
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
37636
37671
|
chunkSJSGSHIT_cjs.TabHeader,
|
|
37637
37672
|
{
|
|
37638
|
-
leading: /* @__PURE__ */ jsxRuntime.jsx(
|
|
37673
|
+
leading: /* @__PURE__ */ jsxRuntime.jsx(chunkGZPNBSRE_cjs.ConnectedWorkspaceEntity, { workspace, variant: "icon", size: 20 }),
|
|
37639
37674
|
tabs: [
|
|
37640
37675
|
{
|
|
37641
37676
|
id: "processing",
|
|
@@ -37904,7 +37939,7 @@ function useDatabaseCellSources(databases, needs = {}) {
|
|
|
37904
37939
|
return async (databaseId, q) => {
|
|
37905
37940
|
const columns = columnsOf.get(databaseId) ?? [];
|
|
37906
37941
|
const rows = await searchDatabaseRows(databaseId, q);
|
|
37907
|
-
return rows.map((row2) => ({ id: row2.id, label:
|
|
37942
|
+
return rows.map((row2) => ({ id: row2.id, label: chunkR6HGMPF4_cjs.rowTitle(row2, columns) || UNTITLED }));
|
|
37908
37943
|
};
|
|
37909
37944
|
}, [databases, searchDatabaseRows]);
|
|
37910
37945
|
const wantLabels = needs.labels === true;
|
|
@@ -38135,10 +38170,10 @@ function useLayoutRows({
|
|
|
38135
38170
|
]);
|
|
38136
38171
|
}
|
|
38137
38172
|
var SEARCH_DEBOUNCE_MS = 250;
|
|
38138
|
-
var API_LAYOUTS_OFF = [
|
|
38139
|
-
var API_LAYOUTS_ON = [
|
|
38173
|
+
var API_LAYOUTS_OFF = [chunkR6HGMPF4_cjs.TABLE_LAYOUT];
|
|
38174
|
+
var API_LAYOUTS_ON = [chunkR6HGMPF4_cjs.TABLE_LAYOUT, chunkR6HGMPF4_cjs.CALENDAR_LAYOUT, chunkR6HGMPF4_cjs.GANTT_LAYOUT];
|
|
38140
38175
|
var toView = (c) => {
|
|
38141
|
-
const type =
|
|
38176
|
+
const type = chunkGZPNBSRE_cjs.kitTypeOf(c.type);
|
|
38142
38177
|
return type ? { ...c, type } : { ...c, type: "text", locked: true };
|
|
38143
38178
|
};
|
|
38144
38179
|
var NOT_ENABLED_MESSAGE = "This workspace\u2019s server does not support this column type yet.";
|
|
@@ -38178,7 +38213,7 @@ function useApiDatabaseSource(databaseId, request, options) {
|
|
|
38178
38213
|
react.useEffect(() => {
|
|
38179
38214
|
const t = setTimeout(() => {
|
|
38180
38215
|
setQuery(search);
|
|
38181
|
-
setApplied(
|
|
38216
|
+
setApplied(chunkR6HGMPF4_cjs.completeFilters(filters));
|
|
38182
38217
|
}, SEARCH_DEBOUNCE_MS);
|
|
38183
38218
|
return () => clearTimeout(t);
|
|
38184
38219
|
}, [search, filters]);
|
|
@@ -38227,7 +38262,7 @@ function useApiDatabaseSource(databaseId, request, options) {
|
|
|
38227
38262
|
sources: columns.some((c) => c.type === "source")
|
|
38228
38263
|
});
|
|
38229
38264
|
const supported = capabilities.columnTypes;
|
|
38230
|
-
const columnTypes = react.useMemo(() =>
|
|
38265
|
+
const columnTypes = react.useMemo(() => chunkGZPNBSRE_cjs.offeredColumnTypes(supported), [supported]);
|
|
38231
38266
|
const isQueue = columns.some((c) => c.edit_by?.kind === "listed");
|
|
38232
38267
|
const isWorkspaceOwner = react$1.useIsWorkspaceOwner();
|
|
38233
38268
|
const canDeleteRow = react.useCallback(
|
|
@@ -38363,7 +38398,7 @@ function useApiDatabaseSource(databaseId, request, options) {
|
|
|
38363
38398
|
...columns.map(keepColumn),
|
|
38364
38399
|
{
|
|
38365
38400
|
name: draft.name,
|
|
38366
|
-
type:
|
|
38401
|
+
type: chunkGZPNBSRE_cjs.wireTypeFor(draft.type),
|
|
38367
38402
|
options: draft.options,
|
|
38368
38403
|
...config
|
|
38369
38404
|
}
|
|
@@ -38564,11 +38599,11 @@ function useApiDatabaseSource(databaseId, request, options) {
|
|
|
38564
38599
|
gridId
|
|
38565
38600
|
]);
|
|
38566
38601
|
}
|
|
38567
|
-
var FIXED_COLUMNS = [
|
|
38602
|
+
var FIXED_COLUMNS = [chunkR6HGMPF4_cjs.OPEN_ROW_COL_ID, chunkR6HGMPF4_cjs.ROW_ACTIONS_COL_ID, chunkR6HGMPF4_cjs.ADD_COLUMN_COL_ID];
|
|
38568
38603
|
var FIXED_PINS = [
|
|
38569
|
-
{ colId:
|
|
38570
|
-
{ colId:
|
|
38571
|
-
{ colId:
|
|
38604
|
+
{ colId: chunkR6HGMPF4_cjs.OPEN_ROW_COL_ID, pinned: "left" },
|
|
38605
|
+
{ colId: chunkR6HGMPF4_cjs.ROW_ACTIONS_COL_ID, pinned: "right" },
|
|
38606
|
+
{ colId: chunkR6HGMPF4_cjs.ADD_COLUMN_COL_ID, pinned: "right" }
|
|
38572
38607
|
];
|
|
38573
38608
|
var MENU_LABELS = {
|
|
38574
38609
|
trigger: "Columns",
|
|
@@ -38593,11 +38628,11 @@ function restoreGrowingColumns(api, columns, view) {
|
|
|
38593
38628
|
}
|
|
38594
38629
|
function applyDatabaseColumns(columns, api) {
|
|
38595
38630
|
const kept = (id) => api.getColumn(id) ? [id] : [];
|
|
38596
|
-
|
|
38597
|
-
...kept(
|
|
38631
|
+
chunkEAH7LFJN_cjs.applyColumnLayout(api, [
|
|
38632
|
+
...kept(chunkR6HGMPF4_cjs.OPEN_ROW_COL_ID),
|
|
38598
38633
|
...columns,
|
|
38599
|
-
...kept(
|
|
38600
|
-
...kept(
|
|
38634
|
+
...kept(chunkR6HGMPF4_cjs.ROW_ACTIONS_COL_ID),
|
|
38635
|
+
...kept(chunkR6HGMPF4_cjs.ADD_COLUMN_COL_ID)
|
|
38601
38636
|
]);
|
|
38602
38637
|
pinFixedColumns(api);
|
|
38603
38638
|
}
|
|
@@ -38629,7 +38664,7 @@ function DatabaseViewsMenu({
|
|
|
38629
38664
|
latestColumns.current = columns;
|
|
38630
38665
|
const onLoadView = react.useCallback(
|
|
38631
38666
|
(view, api) => {
|
|
38632
|
-
|
|
38667
|
+
chunkEAH7LFJN_cjs.applyViewColumns(api, view, applyDatabaseColumns);
|
|
38633
38668
|
pinFixedColumns(api);
|
|
38634
38669
|
restoreGrowingColumns(api, latestColumns.current, view);
|
|
38635
38670
|
onFiltersChange([...view.filters ?? []]);
|
|
@@ -38642,7 +38677,7 @@ function DatabaseViewsMenu({
|
|
|
38642
38677
|
store.remove,
|
|
38643
38678
|
store.share ?? noShare
|
|
38644
38679
|
);
|
|
38645
|
-
const menu =
|
|
38680
|
+
const menu = chunkEAH7LFJN_cjs.useGridViews({
|
|
38646
38681
|
getGridApi,
|
|
38647
38682
|
defaultColumns,
|
|
38648
38683
|
builtins,
|
|
@@ -38671,7 +38706,7 @@ function DatabaseViewsMenu({
|
|
|
38671
38706
|
onSelectView(initialViewId);
|
|
38672
38707
|
loadedView.current = initialViewId;
|
|
38673
38708
|
}, [initialViewId, gridApi, ready, savedViews, onSelectView]);
|
|
38674
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
38709
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.ViewSelectorMenu, { ...menu, labels: MENU_LABELS });
|
|
38675
38710
|
}
|
|
38676
38711
|
|
|
38677
38712
|
// src/connection/databases/fixedPins.ts
|
|
@@ -38748,7 +38783,8 @@ function DatabaseWorkbench({
|
|
|
38748
38783
|
source,
|
|
38749
38784
|
onBack,
|
|
38750
38785
|
initialRowId,
|
|
38751
|
-
initialViewId
|
|
38786
|
+
initialViewId,
|
|
38787
|
+
combinedSearch = false
|
|
38752
38788
|
}) {
|
|
38753
38789
|
const { confirm } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
38754
38790
|
const session = react$1.useArbiSessionStore();
|
|
@@ -38796,7 +38832,7 @@ function DatabaseWorkbench({
|
|
|
38796
38832
|
gridId: source.gridId
|
|
38797
38833
|
});
|
|
38798
38834
|
const settings = react.useMemo(
|
|
38799
|
-
() =>
|
|
38835
|
+
() => chunkR6HGMPF4_cjs.resolveLayoutSettings(storedLayout, source.layouts, columns),
|
|
38800
38836
|
[storedLayout, source.layouts, columns]
|
|
38801
38837
|
);
|
|
38802
38838
|
const layoutsOffered = source.layouts.filter((l) => !l.defaults || l.defaults(columns) !== null).length > 1;
|
|
@@ -38827,13 +38863,13 @@ function DatabaseWorkbench({
|
|
|
38827
38863
|
if (rest.length !== filters2.length) setQuery({ filters: rest });
|
|
38828
38864
|
}
|
|
38829
38865
|
setStoredLayout(
|
|
38830
|
-
|
|
38866
|
+
chunkR6HGMPF4_cjs.storedLayoutAfter(latestLayout.current.storedLayout, latestLayout.current.settings, next)
|
|
38831
38867
|
);
|
|
38832
38868
|
},
|
|
38833
38869
|
[setStoredLayout]
|
|
38834
38870
|
);
|
|
38835
38871
|
const showUndated = () => {
|
|
38836
|
-
const filters2 =
|
|
38872
|
+
const filters2 = chunkR6HGMPF4_cjs.withUndatedFilter(query.filters, settings.dateColumn);
|
|
38837
38873
|
if (filters2 !== query.filters) undatedAdded.current = settings.dateColumn ?? null;
|
|
38838
38874
|
source.setQuery({ filters: filters2 });
|
|
38839
38875
|
changeLayout({ ...settings, layout: "table" });
|
|
@@ -38856,10 +38892,10 @@ function DatabaseWorkbench({
|
|
|
38856
38892
|
// A state saved while the fixed columns were unpinned would keep them so.
|
|
38857
38893
|
withFixedPins(
|
|
38858
38894
|
stored,
|
|
38859
|
-
[
|
|
38895
|
+
[chunkR6HGMPF4_cjs.OPEN_ROW_COL_ID],
|
|
38860
38896
|
[
|
|
38861
|
-
...hasRowActions ? [
|
|
38862
|
-
...canEditColumns ? [
|
|
38897
|
+
...hasRowActions ? [chunkR6HGMPF4_cjs.ROW_ACTIONS_COL_ID] : [],
|
|
38898
|
+
...canEditColumns ? [chunkR6HGMPF4_cjs.ADD_COLUMN_COL_ID] : []
|
|
38863
38899
|
]
|
|
38864
38900
|
)
|
|
38865
38901
|
) : defaultColumns && !initialViewId ? {
|
|
@@ -39002,9 +39038,23 @@ function DatabaseWorkbench({
|
|
|
39002
39038
|
react.useEffect(() => {
|
|
39003
39039
|
if (!tableOnScreen && revealDone) revealDone();
|
|
39004
39040
|
}, [tableOnScreen, revealDone]);
|
|
39041
|
+
const filterMenu = /* @__PURE__ */ jsxRuntime.jsx(
|
|
39042
|
+
chunkR6HGMPF4_cjs.DatabaseFilterMenu,
|
|
39043
|
+
{
|
|
39044
|
+
columns,
|
|
39045
|
+
filters,
|
|
39046
|
+
onChange: (next) => source.setQuery({ filters: next }),
|
|
39047
|
+
sources: source.cellSources,
|
|
39048
|
+
extra: slots?.filterMenu?.content,
|
|
39049
|
+
extraCount: slots?.filterMenu?.activeCount,
|
|
39050
|
+
onClearExtra: slots?.filterMenu?.clear,
|
|
39051
|
+
extraSummary: slots?.filterMenu?.summary,
|
|
39052
|
+
compact: combinedSearch
|
|
39053
|
+
}
|
|
39054
|
+
);
|
|
39005
39055
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full min-h-0 flex-col", "data-testid": testIds.page, children: [
|
|
39006
39056
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
39007
|
-
|
|
39057
|
+
chunkR6HGMPF4_cjs.DatabaseToolbar,
|
|
39008
39058
|
{
|
|
39009
39059
|
name: meta.name,
|
|
39010
39060
|
icon: meta.icon,
|
|
@@ -39021,7 +39071,7 @@ function DatabaseWorkbench({
|
|
|
39021
39071
|
bulk: isTable && selected.length > 0 && !slots?.selectionBar ? slots?.bulk?.(selected, clearSelection) : void 0,
|
|
39022
39072
|
hideControls: layout?.hidesToolbarRow,
|
|
39023
39073
|
layoutSwitcher: layoutsOffered && /* @__PURE__ */ jsxRuntime.jsx(
|
|
39024
|
-
|
|
39074
|
+
chunkR6HGMPF4_cjs.DatabaseLayoutSwitcher,
|
|
39025
39075
|
{
|
|
39026
39076
|
parts: "layouts",
|
|
39027
39077
|
layouts: source.layouts,
|
|
@@ -39034,7 +39084,7 @@ function DatabaseWorkbench({
|
|
|
39034
39084
|
),
|
|
39035
39085
|
layoutTools: layoutsOffered && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
39036
39086
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
39037
|
-
|
|
39087
|
+
chunkR6HGMPF4_cjs.DatabaseLayoutSwitcher,
|
|
39038
39088
|
{
|
|
39039
39089
|
parts: "tools",
|
|
39040
39090
|
layouts: source.layouts,
|
|
@@ -39046,7 +39096,7 @@ function DatabaseWorkbench({
|
|
|
39046
39096
|
tableSettings: rowHeight === void 0 ? void 0 : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-3 text-sm", children: [
|
|
39047
39097
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground", children: "Row height" }),
|
|
39048
39098
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
39049
|
-
|
|
39099
|
+
chunkEAH7LFJN_cjs.RowDensityControl,
|
|
39050
39100
|
{
|
|
39051
39101
|
rowHeight,
|
|
39052
39102
|
onRowHeightChange: (height) => session.setGridRowHeight(gridId, height),
|
|
@@ -39077,20 +39127,10 @@ function DatabaseWorkbench({
|
|
|
39077
39127
|
onDeleteDatabase: capabilities.remove && source.remove ? () => void deleteDatabase() : void 0,
|
|
39078
39128
|
readOnly,
|
|
39079
39129
|
labels: toolbarLabels,
|
|
39080
|
-
|
|
39081
|
-
|
|
39082
|
-
|
|
39083
|
-
|
|
39084
|
-
columns,
|
|
39085
|
-
filters,
|
|
39086
|
-
onChange: (next) => source.setQuery({ filters: next }),
|
|
39087
|
-
sources: source.cellSources,
|
|
39088
|
-
extra: slots?.filterMenu?.content,
|
|
39089
|
-
extraCount: slots?.filterMenu?.activeCount,
|
|
39090
|
-
onClearExtra: slots?.filterMenu?.clear,
|
|
39091
|
-
extraSummary: slots?.filterMenu?.summary
|
|
39092
|
-
}
|
|
39093
|
-
),
|
|
39130
|
+
combinedSearch,
|
|
39131
|
+
filterMenu: combinedSearch ? filterMenu : void 0,
|
|
39132
|
+
filters: combinedSearch ? slots?.filters : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
39133
|
+
filterMenu,
|
|
39094
39134
|
slots?.filters
|
|
39095
39135
|
] }),
|
|
39096
39136
|
views: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -39140,13 +39180,13 @@ function DatabaseWorkbench({
|
|
|
39140
39180
|
]
|
|
39141
39181
|
}
|
|
39142
39182
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
39143
|
-
|
|
39183
|
+
chunkR6HGMPF4_cjs.DatabaseTable,
|
|
39144
39184
|
{
|
|
39145
39185
|
columns,
|
|
39146
39186
|
rows: data.rows,
|
|
39147
39187
|
readOnly,
|
|
39148
39188
|
isLoading: data.isLoading,
|
|
39149
|
-
isFiltered: Boolean(query.search.trim()) ||
|
|
39189
|
+
isFiltered: Boolean(query.search.trim()) || chunkR6HGMPF4_cjs.completeFilters(filters).length > 0 || (slots?.filterMenu?.activeCount ?? 0) > 0,
|
|
39150
39190
|
gridId,
|
|
39151
39191
|
...rowHeight === void 0 ? {} : { rowHeight },
|
|
39152
39192
|
gridProps,
|
|
@@ -39199,7 +39239,7 @@ function DatabaseWorkbench({
|
|
|
39199
39239
|
),
|
|
39200
39240
|
slots?.renderRowPage ? rowPage : openRow && // Beside the grid on a wide screen; over it on a narrow one.
|
|
39201
39241
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
39202
|
-
|
|
39242
|
+
chunkR6HGMPF4_cjs.DatabaseRowDetail,
|
|
39203
39243
|
{
|
|
39204
39244
|
row: openRow,
|
|
39205
39245
|
columns,
|
|
@@ -39218,7 +39258,7 @@ function DatabaseWorkbench({
|
|
|
39218
39258
|
}
|
|
39219
39259
|
),
|
|
39220
39260
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
39221
|
-
|
|
39261
|
+
chunkR6HGMPF4_cjs.DatabaseColumnDialog,
|
|
39222
39262
|
{
|
|
39223
39263
|
open: columnDialog !== null,
|
|
39224
39264
|
onOpenChange: (open) => !open && setColumnDialog(null),
|
|
@@ -39282,7 +39322,7 @@ function LayoutBody({
|
|
|
39282
39322
|
onShowUndated
|
|
39283
39323
|
}) {
|
|
39284
39324
|
const placed = react.useMemo(
|
|
39285
|
-
() =>
|
|
39325
|
+
() => chunkR6HGMPF4_cjs.rowsToTimelineItems(rows, columns, settings),
|
|
39286
39326
|
[rows, columns, settings]
|
|
39287
39327
|
);
|
|
39288
39328
|
const open = openRowId ? rows.find((r) => r.id === openRowId) : void 0;
|
|
@@ -39295,7 +39335,7 @@ function LayoutBody({
|
|
|
39295
39335
|
const dateColumn = settings.dateColumn;
|
|
39296
39336
|
const first = dateColumn ? rows[0]?.values[dateColumn] : void 0;
|
|
39297
39337
|
const last = dateColumn ? rows[rows.length - 1]?.values[dateColumn] : void 0;
|
|
39298
|
-
const range = typeof first === "string" && typeof last === "string" ? `, from ${
|
|
39338
|
+
const range = typeof first === "string" && typeof last === "string" ? `, from ${chunkR6HGMPF4_cjs.formatDateValue(first)} to ${chunkR6HGMPF4_cjs.formatDateValue(last)}` : "";
|
|
39299
39339
|
const view = settings.layout === "gantt" ? "timeline" : "calendar";
|
|
39300
39340
|
const failed = server?.isError === true;
|
|
39301
39341
|
const loading = !failed && server?.isLoading === true;
|
|
@@ -39346,7 +39386,7 @@ function LayoutBody({
|
|
|
39346
39386
|
children: `Loading the ${view}\u2026`
|
|
39347
39387
|
}
|
|
39348
39388
|
) : settings.layout === "calendar" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
39349
|
-
|
|
39389
|
+
chunkR6HGMPF4_cjs.DatabaseCalendar,
|
|
39350
39390
|
{
|
|
39351
39391
|
rows,
|
|
39352
39392
|
columns,
|
|
@@ -39359,7 +39399,7 @@ function LayoutBody({
|
|
|
39359
39399
|
testId: testIds.calendar
|
|
39360
39400
|
}
|
|
39361
39401
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
39362
|
-
|
|
39402
|
+
chunkR6HGMPF4_cjs.DatabaseGantt,
|
|
39363
39403
|
{
|
|
39364
39404
|
rows,
|
|
39365
39405
|
columns,
|
|
@@ -39379,7 +39419,8 @@ function OpenedSource({
|
|
|
39379
39419
|
state,
|
|
39380
39420
|
onClose,
|
|
39381
39421
|
initialRowId,
|
|
39382
|
-
initialViewId
|
|
39422
|
+
initialViewId,
|
|
39423
|
+
combinedSearch
|
|
39383
39424
|
}) {
|
|
39384
39425
|
const { notify: notify19 } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
39385
39426
|
const error = state.status === "error" ? state.error : null;
|
|
@@ -39405,7 +39446,8 @@ function OpenedSource({
|
|
|
39405
39446
|
source: state.source,
|
|
39406
39447
|
onBack: onClose,
|
|
39407
39448
|
initialRowId,
|
|
39408
|
-
initialViewId
|
|
39449
|
+
initialViewId,
|
|
39450
|
+
combinedSearch
|
|
39409
39451
|
}
|
|
39410
39452
|
);
|
|
39411
39453
|
}
|
|
@@ -39413,7 +39455,8 @@ function OpenHostSource({
|
|
|
39413
39455
|
definition,
|
|
39414
39456
|
onClose,
|
|
39415
39457
|
initialRowId,
|
|
39416
|
-
initialViewId
|
|
39458
|
+
initialViewId,
|
|
39459
|
+
combinedSearch
|
|
39417
39460
|
}) {
|
|
39418
39461
|
const state = definition.useOpen({ rowId: initialRowId, viewId: initialViewId });
|
|
39419
39462
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -39422,7 +39465,8 @@ function OpenHostSource({
|
|
|
39422
39465
|
state,
|
|
39423
39466
|
onClose,
|
|
39424
39467
|
initialRowId,
|
|
39425
|
-
initialViewId
|
|
39468
|
+
initialViewId,
|
|
39469
|
+
combinedSearch
|
|
39426
39470
|
}
|
|
39427
39471
|
);
|
|
39428
39472
|
}
|
|
@@ -39431,7 +39475,8 @@ function OpenApiDatabase({
|
|
|
39431
39475
|
layouts,
|
|
39432
39476
|
onClose,
|
|
39433
39477
|
initialRowId,
|
|
39434
|
-
initialViewId
|
|
39478
|
+
initialViewId,
|
|
39479
|
+
combinedSearch
|
|
39435
39480
|
}) {
|
|
39436
39481
|
const state = useApiDatabaseSource(
|
|
39437
39482
|
databaseId,
|
|
@@ -39444,7 +39489,8 @@ function OpenApiDatabase({
|
|
|
39444
39489
|
state,
|
|
39445
39490
|
onClose,
|
|
39446
39491
|
initialRowId,
|
|
39447
|
-
initialViewId
|
|
39492
|
+
initialViewId,
|
|
39493
|
+
combinedSearch
|
|
39448
39494
|
}
|
|
39449
39495
|
);
|
|
39450
39496
|
}
|
|
@@ -39470,7 +39516,7 @@ function DatabasesListView({
|
|
|
39470
39516
|
}));
|
|
39471
39517
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "h-full min-h-0 overflow-y-auto", "data-testid": "databases-page", children: [
|
|
39472
39518
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
39473
|
-
|
|
39519
|
+
chunkR6HGMPF4_cjs.DatabaseList,
|
|
39474
39520
|
{
|
|
39475
39521
|
databases,
|
|
39476
39522
|
entries: listed.length > 0 ? listed : void 0,
|
|
@@ -39488,7 +39534,8 @@ function ConnectedDatabasesPage({
|
|
|
39488
39534
|
sources,
|
|
39489
39535
|
openId: controlledOpenId,
|
|
39490
39536
|
onOpenChange,
|
|
39491
|
-
layouts
|
|
39537
|
+
layouts,
|
|
39538
|
+
combinedSearch
|
|
39492
39539
|
} = {}) {
|
|
39493
39540
|
const { notify: notify19 } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
39494
39541
|
const selectedWorkspaceId = react$1.useArbiSessionState((state) => state.workspaceId);
|
|
@@ -39575,7 +39622,7 @@ function ConnectedDatabasesPage({
|
|
|
39575
39622
|
}
|
|
39576
39623
|
);
|
|
39577
39624
|
if (!selectedWorkspaceId) {
|
|
39578
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-full min-h-0 overflow-y-auto", "data-testid": "databases-page", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
39625
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-full min-h-0 overflow-y-auto", "data-testid": "databases-page", children: /* @__PURE__ */ jsxRuntime.jsx(chunkR6HGMPF4_cjs.DatabaseList, { databases: [], onOpen: () => {
|
|
39579
39626
|
}, labels: NO_WORKSPACE_LABELS }) });
|
|
39580
39627
|
}
|
|
39581
39628
|
if (openId) {
|
|
@@ -39587,7 +39634,8 @@ function ConnectedDatabasesPage({
|
|
|
39587
39634
|
definition,
|
|
39588
39635
|
onClose: close,
|
|
39589
39636
|
initialRowId,
|
|
39590
|
-
initialViewId
|
|
39637
|
+
initialViewId,
|
|
39638
|
+
combinedSearch
|
|
39591
39639
|
},
|
|
39592
39640
|
key
|
|
39593
39641
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -39597,7 +39645,8 @@ function ConnectedDatabasesPage({
|
|
|
39597
39645
|
layouts,
|
|
39598
39646
|
onClose: close,
|
|
39599
39647
|
initialRowId,
|
|
39600
|
-
initialViewId
|
|
39648
|
+
initialViewId,
|
|
39649
|
+
combinedSearch
|
|
39601
39650
|
},
|
|
39602
39651
|
key
|
|
39603
39652
|
);
|
|
@@ -39617,7 +39666,7 @@ function ConnectedDatabasesPage({
|
|
|
39617
39666
|
onImport,
|
|
39618
39667
|
isImporting: importDatabase.isPending,
|
|
39619
39668
|
newDialog: /* @__PURE__ */ jsxRuntime.jsx(
|
|
39620
|
-
|
|
39669
|
+
chunkR6HGMPF4_cjs.NewDatabaseDialog,
|
|
39621
39670
|
{
|
|
39622
39671
|
open: creating,
|
|
39623
39672
|
onOpenChange: setCreating,
|
|
@@ -39646,7 +39695,7 @@ function ConnectedRecentDatabases({
|
|
|
39646
39695
|
}
|
|
39647
39696
|
function RecentDatabasesSection({
|
|
39648
39697
|
sources = NO_SOURCES2,
|
|
39649
|
-
limit =
|
|
39698
|
+
limit = chunkGZPNBSRE_cjs.RECENT_ROWS,
|
|
39650
39699
|
showLoading = true,
|
|
39651
39700
|
testId = "recent-databases"
|
|
39652
39701
|
}) {
|
|
@@ -39669,7 +39718,7 @@ function RecentDatabasesSection({
|
|
|
39669
39718
|
onSelect: open(e.id)
|
|
39670
39719
|
};
|
|
39671
39720
|
});
|
|
39672
|
-
const rest =
|
|
39721
|
+
const rest = chunkGZPNBSRE_cjs.recentDatabases(databases, Math.max(0, limit - own.length)).map((row2) => ({
|
|
39673
39722
|
...row2,
|
|
39674
39723
|
leading: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.FileSpreadsheet, { className: "mt-0.5 size-5 shrink-0 text-muted-foreground", "aria-hidden": true }),
|
|
39675
39724
|
onSelect: open(row2.id)
|
|
@@ -39701,20 +39750,20 @@ function WatchOne({ transferId }) {
|
|
|
39701
39750
|
const { data: job } = react$1.useWorkspaceTransfer(transferId);
|
|
39702
39751
|
const { data: workspaces = [] } = react$1.useWorkspaces();
|
|
39703
39752
|
const { notify: notify19 } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
39704
|
-
const untrack =
|
|
39753
|
+
const untrack = chunkGZPNBSRE_cjs.useExportStore((state) => state.untrackTransfer);
|
|
39705
39754
|
const invalidateAfterTransfer = react$1.useInvalidateAfterTransfer();
|
|
39706
39755
|
react.useEffect(() => {
|
|
39707
39756
|
if (!job || !react$1.isTransferFinished(job)) return;
|
|
39708
39757
|
invalidateAfterTransfer(job.mode);
|
|
39709
39758
|
const target = workspaces.find((w) => w.external_id === job.target_workspace_ext_id);
|
|
39710
|
-
const outcome =
|
|
39759
|
+
const outcome = chunkGZPNBSRE_cjs.transferOutcome(job, target?.name ?? "the other workspace");
|
|
39711
39760
|
if (outcome) notify19(outcome.message, outcome.tone);
|
|
39712
39761
|
untrack(transferId);
|
|
39713
39762
|
}, [job?.status, job?.external_id]);
|
|
39714
39763
|
return null;
|
|
39715
39764
|
}
|
|
39716
39765
|
function ConnectedTransferWatcher() {
|
|
39717
|
-
const active =
|
|
39766
|
+
const active = chunkGZPNBSRE_cjs.useExportStore((state) => state.activeTransfers);
|
|
39718
39767
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: active.map((id) => /* @__PURE__ */ jsxRuntime.jsx(WatchOne, { transferId: id }, id)) });
|
|
39719
39768
|
}
|
|
39720
39769
|
function useChatMessageToasts() {
|
|
@@ -41092,10 +41141,10 @@ var FreshChatModel = () => (useFreshChatModel(), null);
|
|
|
41092
41141
|
var WorkspaceOpenMetrics = ({ measure }) => (useWorkspaceOpenMetrics(measure), null);
|
|
41093
41142
|
var Prefetch = ({ loaders }) => (usePrefetchChunks(loaders), null);
|
|
41094
41143
|
function GuidedRuns() {
|
|
41095
|
-
|
|
41144
|
+
chunk33236Q7Y_cjs.useRemoteControlSessionReset();
|
|
41096
41145
|
const { cursorMark } = chunkNZNBJF3M_cjs.useGuidedRuns();
|
|
41097
41146
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
41098
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
41147
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkAWQEN6WW_cjs.GuidedCursor, { markSrc: cursorMark }),
|
|
41099
41148
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedRemoteControlConsent, {})
|
|
41100
41149
|
] });
|
|
41101
41150
|
}
|
|
@@ -41129,7 +41178,7 @@ function ConnectedAppRuntime({
|
|
|
41129
41178
|
on("pageTransition") && /* @__PURE__ */ jsxRuntime.jsx(PageTransition, {}),
|
|
41130
41179
|
on("freshChatModel") && /* @__PURE__ */ jsxRuntime.jsx(FreshChatModel, {}),
|
|
41131
41180
|
on("workspaceOpenMetrics") && measure && /* @__PURE__ */ jsxRuntime.jsx(WorkspaceOpenMetrics, { measure }),
|
|
41132
|
-
on("prefetch") && /* @__PURE__ */ jsxRuntime.jsx(Prefetch, { loaders: [...prefetch ?? [], ...
|
|
41181
|
+
on("prefetch") && /* @__PURE__ */ jsxRuntime.jsx(Prefetch, { loaders: [...prefetch ?? [], ...chunkAWQEN6WW_cjs.KIT_CHUNK_LOADERS] }),
|
|
41133
41182
|
on("guidedRuns") && /* @__PURE__ */ jsxRuntime.jsx(GuidedRuns, {})
|
|
41134
41183
|
] });
|
|
41135
41184
|
}
|
|
@@ -41670,7 +41719,7 @@ async function renderAnnotatedScreenshot(image, marks, text2) {
|
|
|
41670
41719
|
)
|
|
41671
41720
|
);
|
|
41672
41721
|
}
|
|
41673
|
-
return
|
|
41722
|
+
return chunk33236Q7Y_cjs.canvasToBlob(canvas);
|
|
41674
41723
|
}
|
|
41675
41724
|
function SupportVideoEvidence({
|
|
41676
41725
|
capture,
|
|
@@ -42092,7 +42141,7 @@ function ReportProblemDialog({
|
|
|
42092
42141
|
hidden: ticketId !== null,
|
|
42093
42142
|
children: [
|
|
42094
42143
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground", children: "Add a screenshot or video (optional)." }),
|
|
42095
|
-
|
|
42144
|
+
chunk33236Q7Y_cjs.canCaptureScreen() ? /* @__PURE__ */ jsxRuntime.jsxs(ui.Button, { size: "sm", variant: "outline", onClick: onRetake, "data-testid": "report-retake", children: [
|
|
42096
42145
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Camera, { className: "mr-1 size-4" }),
|
|
42097
42146
|
" Create screenshot",
|
|
42098
42147
|
videoCapture ? " or recording" : ""
|
|
@@ -42210,7 +42259,7 @@ function useSupportVideo() {
|
|
|
42210
42259
|
};
|
|
42211
42260
|
stopRef.current = release;
|
|
42212
42261
|
try {
|
|
42213
|
-
const screen = await
|
|
42262
|
+
const screen = await chunk33236Q7Y_cjs.requestScreenCapture();
|
|
42214
42263
|
streams.push(screen);
|
|
42215
42264
|
if (!active()) {
|
|
42216
42265
|
release();
|
|
@@ -42333,10 +42382,10 @@ function useReportProblem(options = {}) {
|
|
|
42333
42382
|
setPhase("capturing");
|
|
42334
42383
|
await new Promise((resolve) => window.setTimeout(resolve, 200));
|
|
42335
42384
|
try {
|
|
42336
|
-
setFrame(await
|
|
42385
|
+
setFrame(await chunk33236Q7Y_cjs.captureCurrentTab());
|
|
42337
42386
|
setImage(null);
|
|
42338
42387
|
} catch (error) {
|
|
42339
|
-
const code = error instanceof
|
|
42388
|
+
const code = error instanceof chunk33236Q7Y_cjs.ScreenCaptureError ? error.code : "failed";
|
|
42340
42389
|
if (code === "failed") {
|
|
42341
42390
|
notify19("Couldn't capture the screen. You can still describe the problem.", "error");
|
|
42342
42391
|
}
|
|
@@ -43297,7 +43346,7 @@ function resolveLaunchInputs(workflow, request) {
|
|
|
43297
43346
|
function useWorkflowLaunch() {
|
|
43298
43347
|
const { skills } = chunkER2MRSLT_cjs.useWorkflowDefinitions();
|
|
43299
43348
|
const launch = react.useCallback(
|
|
43300
|
-
(workflowId, options = {}) =>
|
|
43349
|
+
(workflowId, options = {}) => chunkQDIIOZBP_cjs.openWorkflowLaunch({ workflowId, ...options }),
|
|
43301
43350
|
[]
|
|
43302
43351
|
);
|
|
43303
43352
|
const itemsFor = react.useCallback(
|
|
@@ -43326,8 +43375,8 @@ function useWorkflowLaunch() {
|
|
|
43326
43375
|
return { launch, itemsFor, scopeItemsFor };
|
|
43327
43376
|
}
|
|
43328
43377
|
function Inner() {
|
|
43329
|
-
const request =
|
|
43330
|
-
const close =
|
|
43378
|
+
const request = chunkQDIIOZBP_cjs.useWorkflowLaunchRequest();
|
|
43379
|
+
const close = chunkQDIIOZBP_cjs.closeWorkflowLaunch;
|
|
43331
43380
|
const { skills } = chunkER2MRSLT_cjs.useWorkflowDefinitions();
|
|
43332
43381
|
const run = chunkOHWYQI3B_cjs.useLaunchWorkflow({ landing: request?.landing });
|
|
43333
43382
|
const workflow = skills.find((w) => w.id === request?.workflowId);
|
|
@@ -43365,7 +43414,7 @@ function Inner() {
|
|
|
43365
43414
|
);
|
|
43366
43415
|
}
|
|
43367
43416
|
function WorkflowLaunchHost() {
|
|
43368
|
-
return
|
|
43417
|
+
return chunkQDIIOZBP_cjs.useWorkflowLaunchRequest() ? /* @__PURE__ */ jsxRuntime.jsx(Inner, {}) : null;
|
|
43369
43418
|
}
|
|
43370
43419
|
function isNeedsConfirmationDetail(detail) {
|
|
43371
43420
|
return typeof detail === "object" && detail !== null && detail.needs_confirmation === "resource_private";
|
|
@@ -43670,7 +43719,7 @@ function ConnectedConversationSettings() {
|
|
|
43670
43719
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
43671
43720
|
chunkLYDSETR7_cjs.ModelSelectionSection,
|
|
43672
43721
|
{
|
|
43673
|
-
selector: /* @__PURE__ */ jsxRuntime.jsx(
|
|
43722
|
+
selector: /* @__PURE__ */ jsxRuntime.jsx(chunk33236Q7Y_cjs.ConnectedModelSelector, {}),
|
|
43674
43723
|
onUseDefaults: settings.resetToDefaults
|
|
43675
43724
|
}
|
|
43676
43725
|
)
|
|
@@ -43776,7 +43825,7 @@ var BUILTIN_GLOBAL_DIALOGS = {
|
|
|
43776
43825
|
testId: "workspace-transfer-modal"
|
|
43777
43826
|
}
|
|
43778
43827
|
),
|
|
43779
|
-
logout: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
43828
|
+
logout: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(chunk33236Q7Y_cjs.ConnectedLogoutDialog, { open: props !== null, onClose }),
|
|
43780
43829
|
conversationSettings: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(ConnectedConversationSettingsDialog, { open: props !== null, onClose }),
|
|
43781
43830
|
unarchiveWorkspace: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(ConnectedUnarchiveWorkspaceDialog, { workspaceId: props?.workspaceId ?? null, onClose }),
|
|
43782
43831
|
productionSet: ConnectedProductionSetDialog,
|
|
@@ -43863,7 +43912,7 @@ function WorkflowRunStatusCell({ conversation }) {
|
|
|
43863
43912
|
return person ? ui.getUserDisplayName(person) : void 0;
|
|
43864
43913
|
};
|
|
43865
43914
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
43866
|
-
|
|
43915
|
+
chunkQDIIOZBP_cjs.WorkflowRunStatus,
|
|
43867
43916
|
{
|
|
43868
43917
|
steps,
|
|
43869
43918
|
states,
|
|
@@ -43897,7 +43946,7 @@ function ConversationStatusCell({ conversation }) {
|
|
|
43897
43946
|
if (conversation.plan?.steps?.length && !isLiveGenerating)
|
|
43898
43947
|
return /* @__PURE__ */ jsxRuntime.jsx(WorkflowRunStatusCell, { conversation });
|
|
43899
43948
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
43900
|
-
|
|
43949
|
+
chunkQDIIOZBP_cjs.ThreadStatusLine,
|
|
43901
43950
|
{
|
|
43902
43951
|
state: threadStateOf(conversation, isLiveGenerating),
|
|
43903
43952
|
className: "h-full",
|
|
@@ -44166,7 +44215,7 @@ function useThreadLabels(canEditShared) {
|
|
|
44166
44215
|
return {
|
|
44167
44216
|
labelText: (row2) => labels.filter((tag) => row2.label_ext_ids?.includes(tag.external_id)).map((tag) => tag.name).join(" "),
|
|
44168
44217
|
renderLabels: (row2) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
44169
|
-
|
|
44218
|
+
chunkEAH7LFJN_cjs.LabelMultiSelectView,
|
|
44170
44219
|
{
|
|
44171
44220
|
options,
|
|
44172
44221
|
appliedIds: new Set(row2.label_ext_ids ?? []),
|
|
@@ -44185,7 +44234,7 @@ function useThreadLabels(canEditShared) {
|
|
|
44185
44234
|
).map((label) => label.id)
|
|
44186
44235
|
);
|
|
44187
44236
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
44188
|
-
|
|
44237
|
+
chunkEAH7LFJN_cjs.BulkLabelSelectView,
|
|
44189
44238
|
{
|
|
44190
44239
|
options,
|
|
44191
44240
|
appliedIds: all,
|
|
@@ -44216,7 +44265,7 @@ function ConnectedThreadLauncher({ autoFocus }) {
|
|
|
44216
44265
|
return /* @__PURE__ */ jsxRuntime.jsxs(chunkHS7TUDEM_cjs.ComposerDock, { children: [
|
|
44217
44266
|
slashWorkflows.launcher,
|
|
44218
44267
|
/* @__PURE__ */ jsxRuntime.jsx(chunkHS7TUDEM_cjs.ComposerContainer, { className: "mx-auto max-w-[49rem] px-3 sm:px-6", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
44219
|
-
|
|
44268
|
+
chunk33236Q7Y_cjs.ConversationComposer,
|
|
44220
44269
|
{
|
|
44221
44270
|
value: draft,
|
|
44222
44271
|
onValueChange: setDraft,
|
|
@@ -44225,7 +44274,7 @@ function ConnectedThreadLauncher({ autoFocus }) {
|
|
|
44225
44274
|
isConversationEmpty: true,
|
|
44226
44275
|
shouldOfferFollowUp: false,
|
|
44227
44276
|
skills,
|
|
44228
|
-
modelSelector: /* @__PURE__ */ jsxRuntime.jsx(
|
|
44277
|
+
modelSelector: /* @__PURE__ */ jsxRuntime.jsx(chunk33236Q7Y_cjs.ConnectedModelSelector, { variant: "compact" }),
|
|
44229
44278
|
rightButton: /* @__PURE__ */ jsxRuntime.jsx(chunkHS7TUDEM_cjs.ComposerSend, { onSend: send, disabled: !draft.trim() })
|
|
44230
44279
|
}
|
|
44231
44280
|
) })
|
|
@@ -44323,7 +44372,7 @@ function AgentControlBar({
|
|
|
44323
44372
|
const waitingOnChildren = runningLanes.length > 0 && ["sub_agent", "spawn_subagent", "deep_research", "run_skill"].includes(currentTool ?? "");
|
|
44324
44373
|
const waitingLabel = runningLanes.length === 1 ? `Waiting on ${runningLanes[0].job}` : `Waiting on ${runningLanes.length} sub-agents`;
|
|
44325
44374
|
const liveTimerNode = liveTimer && /* @__PURE__ */ jsxRuntime.jsx(
|
|
44326
|
-
|
|
44375
|
+
chunk33236Q7Y_cjs.MessageLiveSeconds,
|
|
44327
44376
|
{
|
|
44328
44377
|
...liveTimer,
|
|
44329
44378
|
offsetSeconds: currentStep?.t ?? 0,
|
|
@@ -44332,7 +44381,7 @@ function AgentControlBar({
|
|
|
44332
44381
|
}
|
|
44333
44382
|
);
|
|
44334
44383
|
const status = /* @__PURE__ */ jsxRuntime.jsx(
|
|
44335
|
-
|
|
44384
|
+
chunkQDIIOZBP_cjs.AgentBarStatus,
|
|
44336
44385
|
{
|
|
44337
44386
|
state: showState ? controlState : void 0,
|
|
44338
44387
|
stateLabel: STATE_LABEL[controlState],
|
|
@@ -44373,7 +44422,7 @@ function AgentControlBar({
|
|
|
44373
44422
|
];
|
|
44374
44423
|
const controls = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
44375
44424
|
onStop && /* @__PURE__ */ jsxRuntime.jsx(
|
|
44376
|
-
|
|
44425
|
+
chunkQDIIOZBP_cjs.AgentBarIconButton,
|
|
44377
44426
|
{
|
|
44378
44427
|
onClick: onStop,
|
|
44379
44428
|
title: "Stop",
|
|
@@ -44382,23 +44431,23 @@ function AgentControlBar({
|
|
|
44382
44431
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Square, { className: "h-3 w-3", fill: "currentColor" })
|
|
44383
44432
|
}
|
|
44384
44433
|
),
|
|
44385
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
44434
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQDIIOZBP_cjs.AgentBarMenu, { items: menuItems })
|
|
44386
44435
|
] });
|
|
44387
44436
|
const displayedQueuedMessages = (transientQueuedMessages ?? []).filter(
|
|
44388
44437
|
(message) => !message.serverId || !queuedMessages.some((queued) => queued.external_id === message.serverId)
|
|
44389
44438
|
);
|
|
44390
44439
|
const queuedNotes = displayedQueuedMessages.filter((message) => message.content);
|
|
44391
|
-
const below = probePending || probeAnswer || queuedNotes.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
44392
|
-
probePending && /* @__PURE__ */ jsxRuntime.jsx(
|
|
44440
|
+
const below = probePending || probeAnswer || queuedNotes.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(chunkQDIIOZBP_cjs.AgentBarNotes, { children: [
|
|
44441
|
+
probePending && /* @__PURE__ */ jsxRuntime.jsx(chunkQDIIOZBP_cjs.AgentBarStatus, { isProbing: true }),
|
|
44393
44442
|
queuedNotes.map((message, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
44394
|
-
|
|
44443
|
+
chunkQDIIOZBP_cjs.AgentBarQueuedNote,
|
|
44395
44444
|
{
|
|
44396
44445
|
text: message.content ?? "",
|
|
44397
44446
|
isAcknowledged: message.acknowledged
|
|
44398
44447
|
},
|
|
44399
44448
|
index
|
|
44400
44449
|
)),
|
|
44401
|
-
probeAnswer && /* @__PURE__ */ jsxRuntime.jsx(
|
|
44450
|
+
probeAnswer && /* @__PURE__ */ jsxRuntime.jsx(chunkQDIIOZBP_cjs.AgentBarProbeAnswer, { answer: probeAnswer.answer })
|
|
44402
44451
|
] }) : null;
|
|
44403
44452
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
44404
44453
|
AgentBarShell,
|
|
@@ -44548,7 +44597,7 @@ function ConnectedConversationEmpty({
|
|
|
44548
44597
|
compactLeadingAction: onImportFromEmail && /* @__PURE__ */ jsxRuntime.jsx(AddFromAccountsButton, { onImportFromEmail })
|
|
44549
44598
|
}
|
|
44550
44599
|
),
|
|
44551
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
44600
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkEAH7LFJN_cjs.PrivacyExplainerModal, {})
|
|
44552
44601
|
] })
|
|
44553
44602
|
}
|
|
44554
44603
|
);
|
|
@@ -45263,7 +45312,7 @@ function ConversationThread({
|
|
|
45263
45312
|
() => firstTurnPrompt ? react$1.buildPendingFirstTurn(firstTurnPrompt, currentUserExtId) : null,
|
|
45264
45313
|
[firstTurnPrompt, currentUserExtId]
|
|
45265
45314
|
);
|
|
45266
|
-
const uploadUrls =
|
|
45315
|
+
const uploadUrls = chunkGZPNBSRE_cjs.useAddFromUrls({
|
|
45267
45316
|
onZipFiles: (files) => openUpload?.(files, { source: "computer" })
|
|
45268
45317
|
});
|
|
45269
45318
|
const {
|
|
@@ -45513,7 +45562,7 @@ function ConversationThread({
|
|
|
45513
45562
|
useStartRequestedDraft();
|
|
45514
45563
|
const orphanedMessage = react$1.getOrphanedLastMessage(messageHistory, isGenerating, assistantMode);
|
|
45515
45564
|
return /* @__PURE__ */ jsxRuntime.jsxs(chunkKLMNCBLY_cjs.ConversationBody, { children: [
|
|
45516
|
-
/* @__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(
|
|
45565
|
+
/* @__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(chunk33236Q7Y_cjs.AskAgainContext.Provider, { value: handleAskAgain, children: /* @__PURE__ */ jsxRuntime.jsxs(chunk7VUO4QZH_cjs.TranscriptRunsContext.Provider, { value: transcriptRunInfo, children: [
|
|
45517
45566
|
meetingCallExtId && transcriptLineCount > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center py-2", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
45518
45567
|
chunkZBP4ZSAJ_cjs.ConversationFilter,
|
|
45519
45568
|
{
|
|
@@ -45531,7 +45580,7 @@ function ConversationThread({
|
|
|
45531
45580
|
]
|
|
45532
45581
|
}
|
|
45533
45582
|
) }),
|
|
45534
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
45583
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk33236Q7Y_cjs.ConnectedMessageArea, { ref: containerRef, messages: visibleMessages }),
|
|
45535
45584
|
showProvisional && /* @__PURE__ */ jsxRuntime.jsx(chunkSXC4ZIN4_cjs.ProvisionalSpeakers, { ids: provisionalSpeakers })
|
|
45536
45585
|
] }) }) : meetingCallExtId ? (
|
|
45537
45586
|
// A meeting thread with nothing yet: call-aware, not the upload prompt.
|
|
@@ -45539,7 +45588,7 @@ function ConversationThread({
|
|
|
45539
45588
|
/* @__PURE__ */ jsxRuntime.jsx(chunkSXC4ZIN4_cjs.CallConversationEmpty, { callExtId: meetingCallExtId }),
|
|
45540
45589
|
/* @__PURE__ */ jsxRuntime.jsx(chunkSXC4ZIN4_cjs.ProvisionalSpeakers, { ids: provisionalSpeakers })
|
|
45541
45590
|
] })
|
|
45542
|
-
) : currentTask && currentTask.status != null ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
45591
|
+
) : currentTask && currentTask.status != null ? /* @__PURE__ */ jsxRuntime.jsx(chunkQDIIOZBP_cjs.TaskEmptyState, { task: currentTask }) : pendingFirstTurn && isGenerating ? /* @__PURE__ */ jsxRuntime.jsx(chunk33236Q7Y_cjs.ConnectedMessageArea, { ref: containerRef, messages: pendingFirstTurn }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
45543
45592
|
ConnectedConversationEmpty,
|
|
45544
45593
|
{
|
|
45545
45594
|
hasDocuments: allWorkspaceDocuments.length > 0,
|
|
@@ -45637,7 +45686,7 @@ function ConversationThread({
|
|
|
45637
45686
|
}
|
|
45638
45687
|
),
|
|
45639
45688
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
45640
|
-
|
|
45689
|
+
chunk33236Q7Y_cjs.ConversationComposer,
|
|
45641
45690
|
{
|
|
45642
45691
|
handleSendMessage: handleUserSend,
|
|
45643
45692
|
placeholder: pendingAnswer ? assistant.answerPlaceholder : void 0,
|
|
@@ -45979,7 +46028,7 @@ function ConnectedThreadsPage({
|
|
|
45979
46028
|
};
|
|
45980
46029
|
const page = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full min-h-0 flex-col", "data-testid": "threads-page", children: [
|
|
45981
46030
|
/* @__PURE__ */ jsxRuntime.jsx("main", { className: "flex min-h-0 flex-1 flex-col bg-background", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
45982
|
-
|
|
46031
|
+
chunkQDIIOZBP_cjs.ConversationListView,
|
|
45983
46032
|
{
|
|
45984
46033
|
showHeader,
|
|
45985
46034
|
conversations: tasks,
|
|
@@ -45998,7 +46047,7 @@ function ConnectedThreadsPage({
|
|
|
45998
46047
|
renderLabels: threadLabels.renderLabels,
|
|
45999
46048
|
labelText: threadLabels.labelText,
|
|
46000
46049
|
renderBy: (row2) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
46001
|
-
|
|
46050
|
+
chunkQDIIOZBP_cjs.ConversationTurnSpeaker,
|
|
46002
46051
|
{
|
|
46003
46052
|
variant: "icon",
|
|
46004
46053
|
role: row2.last_message_role,
|
|
@@ -46385,7 +46434,7 @@ function ConnectedChatDocumentsTab({
|
|
|
46385
46434
|
testId: `document-hover-toggle-${doc.external_id}`
|
|
46386
46435
|
},
|
|
46387
46436
|
status: /* @__PURE__ */ jsxRuntime.jsx(
|
|
46388
|
-
|
|
46437
|
+
chunkEAH7LFJN_cjs.DocStatusIcon,
|
|
46389
46438
|
{
|
|
46390
46439
|
status: doc.status,
|
|
46391
46440
|
onClick: onStatusClick,
|
|
@@ -46799,7 +46848,7 @@ function ConnectedConversationPage({
|
|
|
46799
46848
|
const isGuest = workspaceRole === "guest";
|
|
46800
46849
|
const canUpload = workspaceRole !== null && !isGuest;
|
|
46801
46850
|
const [urlDialogOpen, setUrlDialogOpen] = react.useState(false);
|
|
46802
|
-
const uploadUrls =
|
|
46851
|
+
const uploadUrls = chunkGZPNBSRE_cjs.useAddFromUrls({
|
|
46803
46852
|
onZipFiles: (files) => chunkK67VMSOX_cjs.openDialog("upload", { tab: "upload", files, source: "computer" })
|
|
46804
46853
|
});
|
|
46805
46854
|
const uploadDisabledReason = isGuest ? "Viewers cannot upload documents in this workspace" : "You cannot upload to this workspace";
|
|
@@ -46879,7 +46928,7 @@ function ConnectedConversationPage({
|
|
|
46879
46928
|
);
|
|
46880
46929
|
const { data: workspaceTags = [] } = react$1.useTags();
|
|
46881
46930
|
const { tagId: threadTagId, clear: clearThreadTag } = useThreadTagFilter();
|
|
46882
|
-
const historyCount =
|
|
46931
|
+
const historyCount = chunkQDIIOZBP_cjs.filterConversationRows(
|
|
46883
46932
|
threadTagId ? conversations.filter((row2) => row2.label_ext_ids?.includes(threadTagId)) : conversations,
|
|
46884
46933
|
threadFilter,
|
|
46885
46934
|
(row2) => workspaceTags.filter((tag) => row2.label_ext_ids?.includes(tag.external_id)).map((tag) => tag.name).join(" "),
|
|
@@ -46961,7 +47010,7 @@ function ConnectedConversationPage({
|
|
|
46961
47010
|
] })
|
|
46962
47011
|
}
|
|
46963
47012
|
),
|
|
46964
|
-
isInChat && /* @__PURE__ */ jsxRuntime.jsx(
|
|
47013
|
+
isInChat && /* @__PURE__ */ jsxRuntime.jsx(chunkGLNL5AL5_cjs.ConnectedThreadTaskBar, { conversationId: currentConversationId })
|
|
46965
47014
|
] }),
|
|
46966
47015
|
isInChat && /* @__PURE__ */ jsxRuntime.jsx(
|
|
46967
47016
|
ConversationThread,
|
|
@@ -46991,13 +47040,13 @@ function ConnectedConversationPage({
|
|
|
46991
47040
|
!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 }) })
|
|
46992
47041
|
] }),
|
|
46993
47042
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
46994
|
-
|
|
47043
|
+
chunkEAH7LFJN_cjs.UrlInputDialog,
|
|
46995
47044
|
{
|
|
46996
47045
|
open: urlDialogOpen,
|
|
46997
47046
|
onOpenChange: setUrlDialogOpen,
|
|
46998
47047
|
onUrlsSubmit: uploadUrls,
|
|
46999
47048
|
titleWorkspaceName: workspace?.name,
|
|
47000
|
-
titleIcon: workspace && /* @__PURE__ */ jsxRuntime.jsx(
|
|
47049
|
+
titleIcon: workspace && /* @__PURE__ */ jsxRuntime.jsx(chunkGZPNBSRE_cjs.ConnectedWorkspaceEntity, { workspace, size: 24, variant: "icon" })
|
|
47001
47050
|
}
|
|
47002
47051
|
)
|
|
47003
47052
|
] });
|
|
@@ -47170,7 +47219,7 @@ function SsoResendVerificationButton({
|
|
|
47170
47219
|
onClick: async () => handleResendEmailVerification(),
|
|
47171
47220
|
disabled: loading || disabled,
|
|
47172
47221
|
"aria-label": "Resend verification email",
|
|
47173
|
-
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
47222
|
+
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(chunkAWQEN6WW_cjs.LoadingIndicator, {}) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
47174
47223
|
"Didn't get a verification email? ",
|
|
47175
47224
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold", children: "Resend" })
|
|
47176
47225
|
] })
|
|
@@ -47181,9 +47230,9 @@ function SsoResendVerificationButton({
|
|
|
47181
47230
|
}
|
|
47182
47231
|
var NO_RECOVERY_KEY_WARNING = "Without your password or a recovery key, we cannot recover your account or data.";
|
|
47183
47232
|
function ConnectedSsoCallback() {
|
|
47184
|
-
const sso =
|
|
47233
|
+
const sso = chunk33236Q7Y_cjs.useSsoSignIn();
|
|
47185
47234
|
const { isAuthenticated: isAuthenticated2, isLoading, user } = sso;
|
|
47186
|
-
const auth =
|
|
47235
|
+
const auth = chunk33236Q7Y_cjs.useAuthPages();
|
|
47187
47236
|
const { notify: notify19, navigate } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
47188
47237
|
const passwordRules = auth.passwordRules;
|
|
47189
47238
|
const isProcessing = react.useRef(false);
|
|
@@ -47191,7 +47240,7 @@ function ConnectedSsoCallback() {
|
|
|
47191
47240
|
const [statusAttempt, setStatusAttempt] = react.useState(0);
|
|
47192
47241
|
const [accessToken, setAccessToken] = react.useState(null);
|
|
47193
47242
|
const [ssoStatus, setSsoStatus] = react.useState(null);
|
|
47194
|
-
const ssoName = react.useMemo(() =>
|
|
47243
|
+
const ssoName = react.useMemo(() => chunk33236Q7Y_cjs.resolveSsoName(user ?? {}, ssoStatus ?? {}), [user, ssoStatus]);
|
|
47195
47244
|
const [password, setPassword] = react.useState("");
|
|
47196
47245
|
const [confirmPassword, setConfirmPassword] = react.useState("");
|
|
47197
47246
|
const [error, setError] = react.useState(null);
|
|
@@ -47369,7 +47418,7 @@ function ConnectedSsoCallback() {
|
|
|
47369
47418
|
setIsCheckingStatus(true);
|
|
47370
47419
|
try {
|
|
47371
47420
|
console.info("[SSO] Checking user status...");
|
|
47372
|
-
const response = await
|
|
47421
|
+
const response = await chunk33236Q7Y_cjs.ssoAccountStatus(arbi, accessToken, user);
|
|
47373
47422
|
console.info("[SSO] User status:", response.status);
|
|
47374
47423
|
setSsoStatus(response);
|
|
47375
47424
|
} catch (error2) {
|
|
@@ -47410,7 +47459,7 @@ function ConnectedSsoCallback() {
|
|
|
47410
47459
|
setIsSubmitting(true);
|
|
47411
47460
|
setError(null);
|
|
47412
47461
|
try {
|
|
47413
|
-
const { login, registered, linked } = await
|
|
47462
|
+
const { login, registered, linked } = await chunk33236Q7Y_cjs.completeSsoSignIn(arbi, {
|
|
47414
47463
|
token: accessToken,
|
|
47415
47464
|
user,
|
|
47416
47465
|
status: ssoStatus,
|
|
@@ -47710,7 +47759,7 @@ function ConnectedSsoCallback() {
|
|
|
47710
47759
|
ssoStatus.status !== "new_user" && auth.footer
|
|
47711
47760
|
] }),
|
|
47712
47761
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
47713
|
-
|
|
47762
|
+
chunk33236Q7Y_cjs.ConnectedForgotPassword,
|
|
47714
47763
|
{
|
|
47715
47764
|
open: showForgotPasswordModal,
|
|
47716
47765
|
onOpenChange: setShowForgotPasswordModal,
|
|
@@ -47718,7 +47767,7 @@ function ConnectedSsoCallback() {
|
|
|
47718
47767
|
}
|
|
47719
47768
|
),
|
|
47720
47769
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
47721
|
-
|
|
47770
|
+
chunk33236Q7Y_cjs.ConnectedPasswordChangeDialog,
|
|
47722
47771
|
{
|
|
47723
47772
|
open: showChangePasswordModal,
|
|
47724
47773
|
onClose: () => setShowChangePasswordModal(false),
|
|
@@ -47877,27 +47926,27 @@ function ConnectedOAuthConsentPage({
|
|
|
47877
47926
|
oauthErrorRedirect(params.redirectUri, params.state, "access_denied");
|
|
47878
47927
|
}
|
|
47879
47928
|
if (error && !params) {
|
|
47880
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
47929
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkQDIIOZBP_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkQDIIOZBP_cjs.ConsentMessage, { tone: "error", title: "Invalid Request", children: error }) });
|
|
47881
47930
|
}
|
|
47882
47931
|
if (!params) {
|
|
47883
47932
|
return null;
|
|
47884
47933
|
}
|
|
47885
47934
|
if (clientInfo?.isLocalAgentFlow) {
|
|
47886
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
47935
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkQDIIOZBP_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkQDIIOZBP_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." }) });
|
|
47887
47936
|
}
|
|
47888
47937
|
if (!isAuthenticated2) {
|
|
47889
47938
|
return null;
|
|
47890
47939
|
}
|
|
47891
47940
|
if (callbackUrl) {
|
|
47892
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
47893
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
47941
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkQDIIOZBP_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkQDIIOZBP_cjs.ConsentCard, { size: "md", children: [
|
|
47942
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkQDIIOZBP_cjs.ConsentHeader, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ClipboardList, {}), title: "Almost there", children: [
|
|
47894
47943
|
"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",
|
|
47895
47944
|
" ",
|
|
47896
47945
|
copied ? "it's already copied to your clipboard." : "copy it first."
|
|
47897
47946
|
] }),
|
|
47898
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
47899
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
47900
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
47947
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkQDIIOZBP_cjs.ConsentSection, { title: "Callback URL", children: [
|
|
47948
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQDIIOZBP_cjs.CopyableUrl, { url: callbackUrl, copied, onCopy: handleCopy }),
|
|
47949
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkQDIIOZBP_cjs.ConsentText, { variant: "hint", children: [
|
|
47901
47950
|
"In Claude Code, paste the URL at the prompt that says",
|
|
47902
47951
|
" ",
|
|
47903
47952
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-mono text-foreground", children: '"paste the full redirect URL here"' }),
|
|
@@ -47906,17 +47955,17 @@ function ConnectedOAuthConsentPage({
|
|
|
47906
47955
|
] })
|
|
47907
47956
|
] }) });
|
|
47908
47957
|
}
|
|
47909
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
47910
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
47911
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
47958
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkQDIIOZBP_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkQDIIOZBP_cjs.ConsentCard, { children: [
|
|
47959
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkQDIIOZBP_cjs.ConsentHeader, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Link2, {}), title: `Connect to ${appName}`, children: [
|
|
47960
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQDIIOZBP_cjs.ConsentStrong, { children: clientInfo?.name ?? params.clientId }),
|
|
47912
47961
|
" is requesting access to your ",
|
|
47913
47962
|
appName,
|
|
47914
47963
|
" workspace."
|
|
47915
47964
|
] }),
|
|
47916
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
47917
|
-
error && /* @__PURE__ */ jsxRuntime.jsx(
|
|
47918
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
47919
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
47965
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQDIIOZBP_cjs.ConsentSection, { title: "This will allow", children: /* @__PURE__ */ jsxRuntime.jsx(chunkQDIIOZBP_cjs.ConsentPermissionList, { items: permissions }) }),
|
|
47966
|
+
error && /* @__PURE__ */ jsxRuntime.jsx(chunkQDIIOZBP_cjs.ConsentNotice, { tone: "error", children: error }),
|
|
47967
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQDIIOZBP_cjs.ConsentActions, { isLoading: loading, onDeny: handleDeny, onAllow: handleAllow }),
|
|
47968
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkQDIIOZBP_cjs.ConsentFootnote, { children: footnote })
|
|
47920
47969
|
] }) });
|
|
47921
47970
|
}
|
|
47922
47971
|
function ConnectedSharedFilesPage({
|
|
@@ -48617,7 +48666,7 @@ function ConnectedTipBar({
|
|
|
48617
48666
|
className,
|
|
48618
48667
|
revealOnHover = false
|
|
48619
48668
|
}) {
|
|
48620
|
-
const { showHints, settingsLoaded, setShowHintsPersisted, setShowHints } =
|
|
48669
|
+
const { showHints, settingsLoaded, setShowHintsPersisted, setShowHints } = chunk33236Q7Y_cjs.useContextualHints();
|
|
48621
48670
|
const { dismissed, dismissTip } = react$1.useDismissedTips();
|
|
48622
48671
|
const { notify: notify19 } = chunkHN56WWBR_cjs.useBlocksEnvironment();
|
|
48623
48672
|
const { data: workspaces } = react$1.useWorkspaces();
|
|
@@ -48628,7 +48677,7 @@ function ConnectedTipBar({
|
|
|
48628
48677
|
workspaceOpen,
|
|
48629
48678
|
...state
|
|
48630
48679
|
};
|
|
48631
|
-
const { tip, index, count: count2, previous, next, onHoverChange } =
|
|
48680
|
+
const { tip, index, count: count2, previous, next, onHoverChange } = chunkAWQEN6WW_cjs.useTipsPlacement({
|
|
48632
48681
|
registry,
|
|
48633
48682
|
context,
|
|
48634
48683
|
state: situation,
|
|
@@ -48706,7 +48755,7 @@ function useGettingStarted({
|
|
|
48706
48755
|
const { user } = react$1.useArbiSession();
|
|
48707
48756
|
const userExtId = user?.external_id;
|
|
48708
48757
|
const temporaryOnly = user?.temporary_access_only === true;
|
|
48709
|
-
const { showHints, settingsLoaded, setShowHints, setShowHintsPersisted } =
|
|
48758
|
+
const { showHints, settingsLoaded, setShowHints, setShowHintsPersisted } = chunk33236Q7Y_cjs.useContextualHints();
|
|
48710
48759
|
const { dismissed, loaded: dismissedLoaded, dismissTip } = react$1.useDismissedTips();
|
|
48711
48760
|
const welcomeJourneyEnabled = react$1.useFeature("welcomeJourney");
|
|
48712
48761
|
const session = react$1.useArbiSessionStore();
|
|
@@ -48984,15 +49033,15 @@ Object.defineProperty(exports, "ConnectedMailInviteCard", {
|
|
|
48984
49033
|
});
|
|
48985
49034
|
Object.defineProperty(exports, "ConnectedTagEntity", {
|
|
48986
49035
|
enumerable: true,
|
|
48987
|
-
get: function () { return
|
|
49036
|
+
get: function () { return chunkELN3YOXF_cjs.ConnectedTagEntity; }
|
|
48988
49037
|
});
|
|
48989
49038
|
Object.defineProperty(exports, "documentFieldContent", {
|
|
48990
49039
|
enumerable: true,
|
|
48991
|
-
get: function () { return
|
|
49040
|
+
get: function () { return chunkELN3YOXF_cjs.documentFieldContent; }
|
|
48992
49041
|
});
|
|
48993
49042
|
Object.defineProperty(exports, "useMemberLookup", {
|
|
48994
49043
|
enumerable: true,
|
|
48995
|
-
get: function () { return
|
|
49044
|
+
get: function () { return chunkELN3YOXF_cjs.useMemberLookup; }
|
|
48996
49045
|
});
|
|
48997
49046
|
Object.defineProperty(exports, "DEFAULT_ASK_SUGGESTIONS", {
|
|
48998
49047
|
enumerable: true,
|
|
@@ -49016,135 +49065,135 @@ Object.defineProperty(exports, "useSessionPanelMode", {
|
|
|
49016
49065
|
});
|
|
49017
49066
|
Object.defineProperty(exports, "ConnectedAgendaBlock", {
|
|
49018
49067
|
enumerable: true,
|
|
49019
|
-
get: function () { return
|
|
49068
|
+
get: function () { return chunkGZPNBSRE_cjs.ConnectedAgendaBlock; }
|
|
49020
49069
|
});
|
|
49021
49070
|
Object.defineProperty(exports, "ConnectedCarouselBlock", {
|
|
49022
49071
|
enumerable: true,
|
|
49023
|
-
get: function () { return
|
|
49072
|
+
get: function () { return chunkGZPNBSRE_cjs.ConnectedCarouselBlock; }
|
|
49024
49073
|
});
|
|
49025
49074
|
Object.defineProperty(exports, "ConnectedEmailWorkspaceDialog", {
|
|
49026
49075
|
enumerable: true,
|
|
49027
|
-
get: function () { return
|
|
49076
|
+
get: function () { return chunkGZPNBSRE_cjs.ConnectedEmailWorkspaceDialog; }
|
|
49028
49077
|
});
|
|
49029
49078
|
Object.defineProperty(exports, "ConnectedListBlock", {
|
|
49030
49079
|
enumerable: true,
|
|
49031
|
-
get: function () { return
|
|
49080
|
+
get: function () { return chunkGZPNBSRE_cjs.ConnectedListBlock; }
|
|
49032
49081
|
});
|
|
49033
49082
|
Object.defineProperty(exports, "ConnectedNewFileMenu", {
|
|
49034
49083
|
enumerable: true,
|
|
49035
|
-
get: function () { return
|
|
49084
|
+
get: function () { return chunkGZPNBSRE_cjs.ConnectedNewFileMenu; }
|
|
49036
49085
|
});
|
|
49037
49086
|
Object.defineProperty(exports, "ConnectedNewThreadDialog", {
|
|
49038
49087
|
enumerable: true,
|
|
49039
|
-
get: function () { return
|
|
49088
|
+
get: function () { return chunkGZPNBSRE_cjs.ConnectedNewThreadDialog; }
|
|
49040
49089
|
});
|
|
49041
49090
|
Object.defineProperty(exports, "ConnectedStartBlock", {
|
|
49042
49091
|
enumerable: true,
|
|
49043
|
-
get: function () { return
|
|
49092
|
+
get: function () { return chunkGZPNBSRE_cjs.ConnectedStartBlock; }
|
|
49044
49093
|
});
|
|
49045
49094
|
Object.defineProperty(exports, "ConnectedUpcomingEvents", {
|
|
49046
49095
|
enumerable: true,
|
|
49047
|
-
get: function () { return
|
|
49096
|
+
get: function () { return chunkGZPNBSRE_cjs.ConnectedUpcomingEvents; }
|
|
49048
49097
|
});
|
|
49049
49098
|
Object.defineProperty(exports, "ConnectedWorkspaceEntity", {
|
|
49050
49099
|
enumerable: true,
|
|
49051
|
-
get: function () { return
|
|
49100
|
+
get: function () { return chunkGZPNBSRE_cjs.ConnectedWorkspaceEntity; }
|
|
49052
49101
|
});
|
|
49053
49102
|
Object.defineProperty(exports, "DocumentsUploadButton", {
|
|
49054
49103
|
enumerable: true,
|
|
49055
|
-
get: function () { return
|
|
49104
|
+
get: function () { return chunkGZPNBSRE_cjs.DocumentsUploadButton; }
|
|
49056
49105
|
});
|
|
49057
49106
|
Object.defineProperty(exports, "LOOK_AGAIN_LABEL", {
|
|
49058
49107
|
enumerable: true,
|
|
49059
|
-
get: function () { return
|
|
49108
|
+
get: function () { return chunkGZPNBSRE_cjs.LOOK_AGAIN_LABEL; }
|
|
49060
49109
|
});
|
|
49061
49110
|
Object.defineProperty(exports, "PENDING_LOOKUP_MS", {
|
|
49062
49111
|
enumerable: true,
|
|
49063
|
-
get: function () { return
|
|
49112
|
+
get: function () { return chunkGZPNBSRE_cjs.PENDING_LOOKUP_MS; }
|
|
49064
49113
|
});
|
|
49065
49114
|
Object.defineProperty(exports, "PENDING_TASK_MESSAGE", {
|
|
49066
49115
|
enumerable: true,
|
|
49067
|
-
get: function () { return
|
|
49116
|
+
get: function () { return chunkGZPNBSRE_cjs.PENDING_TASK_MESSAGE; }
|
|
49068
49117
|
});
|
|
49069
49118
|
Object.defineProperty(exports, "WORKSPACE_DASHBOARD_BLOCKS", {
|
|
49070
49119
|
enumerable: true,
|
|
49071
|
-
get: function () { return
|
|
49120
|
+
get: function () { return chunkGZPNBSRE_cjs.WORKSPACE_DASHBOARD_BLOCKS; }
|
|
49072
49121
|
});
|
|
49073
49122
|
Object.defineProperty(exports, "WORKSPACE_DASHBOARD_LAYOUT", {
|
|
49074
49123
|
enumerable: true,
|
|
49075
|
-
get: function () { return
|
|
49124
|
+
get: function () { return chunkGZPNBSRE_cjs.WORKSPACE_DASHBOARD_LAYOUT; }
|
|
49076
49125
|
});
|
|
49077
49126
|
Object.defineProperty(exports, "WORKSPACE_DASHBOARD_PAGE", {
|
|
49078
49127
|
enumerable: true,
|
|
49079
|
-
get: function () { return
|
|
49128
|
+
get: function () { return chunkGZPNBSRE_cjs.WORKSPACE_DASHBOARD_PAGE; }
|
|
49080
49129
|
});
|
|
49081
49130
|
Object.defineProperty(exports, "createEventCall", {
|
|
49082
49131
|
enumerable: true,
|
|
49083
|
-
get: function () { return
|
|
49132
|
+
get: function () { return chunkGZPNBSRE_cjs.createEventCall; }
|
|
49084
49133
|
});
|
|
49085
49134
|
Object.defineProperty(exports, "describePlan", {
|
|
49086
49135
|
enumerable: true,
|
|
49087
|
-
get: function () { return
|
|
49136
|
+
get: function () { return chunkGZPNBSRE_cjs.describePlan; }
|
|
49088
49137
|
});
|
|
49089
49138
|
Object.defineProperty(exports, "distinctPeers", {
|
|
49090
49139
|
enumerable: true,
|
|
49091
|
-
get: function () { return
|
|
49140
|
+
get: function () { return chunkGZPNBSRE_cjs.distinctPeers; }
|
|
49092
49141
|
});
|
|
49093
49142
|
Object.defineProperty(exports, "joinEventMeeting", {
|
|
49094
49143
|
enumerable: true,
|
|
49095
|
-
get: function () { return
|
|
49144
|
+
get: function () { return chunkGZPNBSRE_cjs.joinEventMeeting; }
|
|
49096
49145
|
});
|
|
49097
49146
|
Object.defineProperty(exports, "loadEventWebinar", {
|
|
49098
49147
|
enumerable: true,
|
|
49099
|
-
get: function () { return
|
|
49148
|
+
get: function () { return chunkGZPNBSRE_cjs.loadEventWebinar; }
|
|
49100
49149
|
});
|
|
49101
49150
|
Object.defineProperty(exports, "parseArbiCallUrl", {
|
|
49102
49151
|
enumerable: true,
|
|
49103
|
-
get: function () { return
|
|
49152
|
+
get: function () { return chunkGZPNBSRE_cjs.parseArbiCallUrl; }
|
|
49104
49153
|
});
|
|
49105
49154
|
Object.defineProperty(exports, "resolveAttendeeUsers", {
|
|
49106
49155
|
enumerable: true,
|
|
49107
|
-
get: function () { return
|
|
49156
|
+
get: function () { return chunkGZPNBSRE_cjs.resolveAttendeeUsers; }
|
|
49108
49157
|
});
|
|
49109
49158
|
Object.defineProperty(exports, "resolveAttendeeUsersRemote", {
|
|
49110
49159
|
enumerable: true,
|
|
49111
|
-
get: function () { return
|
|
49160
|
+
get: function () { return chunkGZPNBSRE_cjs.resolveAttendeeUsersRemote; }
|
|
49112
49161
|
});
|
|
49113
49162
|
Object.defineProperty(exports, "resolveCallPeers", {
|
|
49114
49163
|
enumerable: true,
|
|
49115
|
-
get: function () { return
|
|
49164
|
+
get: function () { return chunkGZPNBSRE_cjs.resolveCallPeers; }
|
|
49116
49165
|
});
|
|
49117
49166
|
Object.defineProperty(exports, "resolveCallPeersRemote", {
|
|
49118
49167
|
enumerable: true,
|
|
49119
|
-
get: function () { return
|
|
49168
|
+
get: function () { return chunkGZPNBSRE_cjs.resolveCallPeersRemote; }
|
|
49120
49169
|
});
|
|
49121
49170
|
Object.defineProperty(exports, "shareEventCall", {
|
|
49122
49171
|
enumerable: true,
|
|
49123
|
-
get: function () { return
|
|
49172
|
+
get: function () { return chunkGZPNBSRE_cjs.shareEventCall; }
|
|
49124
49173
|
});
|
|
49125
49174
|
Object.defineProperty(exports, "transferOutcome", {
|
|
49126
49175
|
enumerable: true,
|
|
49127
|
-
get: function () { return
|
|
49176
|
+
get: function () { return chunkGZPNBSRE_cjs.transferOutcome; }
|
|
49128
49177
|
});
|
|
49129
49178
|
Object.defineProperty(exports, "updateEventWebinarRoles", {
|
|
49130
49179
|
enumerable: true,
|
|
49131
|
-
get: function () { return
|
|
49180
|
+
get: function () { return chunkGZPNBSRE_cjs.updateEventWebinarRoles; }
|
|
49132
49181
|
});
|
|
49133
49182
|
Object.defineProperty(exports, "useAddFromUrls", {
|
|
49134
49183
|
enumerable: true,
|
|
49135
|
-
get: function () { return
|
|
49184
|
+
get: function () { return chunkGZPNBSRE_cjs.useAddFromUrls; }
|
|
49136
49185
|
});
|
|
49137
49186
|
Object.defineProperty(exports, "useExportStore", {
|
|
49138
49187
|
enumerable: true,
|
|
49139
|
-
get: function () { return
|
|
49188
|
+
get: function () { return chunkGZPNBSRE_cjs.useExportStore; }
|
|
49140
49189
|
});
|
|
49141
49190
|
Object.defineProperty(exports, "usePendingTaskThread", {
|
|
49142
49191
|
enumerable: true,
|
|
49143
|
-
get: function () { return
|
|
49192
|
+
get: function () { return chunkGZPNBSRE_cjs.usePendingTaskThread; }
|
|
49144
49193
|
});
|
|
49145
49194
|
Object.defineProperty(exports, "webinarRolesByUser", {
|
|
49146
49195
|
enumerable: true,
|
|
49147
|
-
get: function () { return
|
|
49196
|
+
get: function () { return chunkGZPNBSRE_cjs.webinarRolesByUser; }
|
|
49148
49197
|
});
|
|
49149
49198
|
Object.defineProperty(exports, "ConnectedAssistantDock", {
|
|
49150
49199
|
enumerable: true,
|
|
@@ -49180,279 +49229,279 @@ Object.defineProperty(exports, "useWorkspaceDocs", {
|
|
|
49180
49229
|
});
|
|
49181
49230
|
Object.defineProperty(exports, "ConnectedTaskActivityDialog", {
|
|
49182
49231
|
enumerable: true,
|
|
49183
|
-
get: function () { return
|
|
49232
|
+
get: function () { return chunkGLNL5AL5_cjs.ConnectedTaskActivityDialog; }
|
|
49184
49233
|
});
|
|
49185
49234
|
Object.defineProperty(exports, "ConnectedTaskComposer", {
|
|
49186
49235
|
enumerable: true,
|
|
49187
|
-
get: function () { return
|
|
49236
|
+
get: function () { return chunkGLNL5AL5_cjs.ConnectedTaskComposer; }
|
|
49188
49237
|
});
|
|
49189
49238
|
Object.defineProperty(exports, "ConnectedThreadTaskBar", {
|
|
49190
49239
|
enumerable: true,
|
|
49191
|
-
get: function () { return
|
|
49240
|
+
get: function () { return chunkGLNL5AL5_cjs.ConnectedThreadTaskBar; }
|
|
49192
49241
|
});
|
|
49193
49242
|
Object.defineProperty(exports, "ConnectedWorkflowHistory", {
|
|
49194
49243
|
enumerable: true,
|
|
49195
|
-
get: function () { return
|
|
49244
|
+
get: function () { return chunkGLNL5AL5_cjs.ConnectedWorkflowHistory; }
|
|
49196
49245
|
});
|
|
49197
49246
|
Object.defineProperty(exports, "ConnectedWorkflowRunPage", {
|
|
49198
49247
|
enumerable: true,
|
|
49199
|
-
get: function () { return
|
|
49248
|
+
get: function () { return chunkGLNL5AL5_cjs.ConnectedWorkflowRunPage; }
|
|
49200
49249
|
});
|
|
49201
49250
|
Object.defineProperty(exports, "ConnectedWorkflowRunner", {
|
|
49202
49251
|
enumerable: true,
|
|
49203
|
-
get: function () { return
|
|
49252
|
+
get: function () { return chunkGLNL5AL5_cjs.ConnectedWorkflowRunner; }
|
|
49204
49253
|
});
|
|
49205
49254
|
Object.defineProperty(exports, "DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS", {
|
|
49206
49255
|
enumerable: true,
|
|
49207
|
-
get: function () { return
|
|
49256
|
+
get: function () { return chunkGLNL5AL5_cjs.DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS; }
|
|
49208
49257
|
});
|
|
49209
49258
|
Object.defineProperty(exports, "DEFAULT_WORKFLOW_RUN_PAGE_LABELS", {
|
|
49210
49259
|
enumerable: true,
|
|
49211
|
-
get: function () { return
|
|
49260
|
+
get: function () { return chunkGLNL5AL5_cjs.DEFAULT_WORKFLOW_RUN_PAGE_LABELS; }
|
|
49212
49261
|
});
|
|
49213
49262
|
Object.defineProperty(exports, "WorkflowRunThread", {
|
|
49214
49263
|
enumerable: true,
|
|
49215
|
-
get: function () { return
|
|
49264
|
+
get: function () { return chunkGLNL5AL5_cjs.WorkflowRunThread; }
|
|
49216
49265
|
});
|
|
49217
49266
|
Object.defineProperty(exports, "WorkflowRunWorkspaceChangedError", {
|
|
49218
49267
|
enumerable: true,
|
|
49219
|
-
get: function () { return
|
|
49268
|
+
get: function () { return chunkGLNL5AL5_cjs.WorkflowRunWorkspaceChangedError; }
|
|
49220
49269
|
});
|
|
49221
49270
|
Object.defineProperty(exports, "buildProjectSummaries", {
|
|
49222
49271
|
enumerable: true,
|
|
49223
|
-
get: function () { return
|
|
49272
|
+
get: function () { return chunkGLNL5AL5_cjs.buildProjectSummaries; }
|
|
49224
49273
|
});
|
|
49225
49274
|
Object.defineProperty(exports, "primaryProjectWorkspace", {
|
|
49226
49275
|
enumerable: true,
|
|
49227
|
-
get: function () { return
|
|
49276
|
+
get: function () { return chunkGLNL5AL5_cjs.primaryProjectWorkspace; }
|
|
49228
49277
|
});
|
|
49229
49278
|
Object.defineProperty(exports, "useEnsureRequiredLabels", {
|
|
49230
49279
|
enumerable: true,
|
|
49231
|
-
get: function () { return
|
|
49280
|
+
get: function () { return chunkGLNL5AL5_cjs.useEnsureRequiredLabels; }
|
|
49232
49281
|
});
|
|
49233
49282
|
Object.defineProperty(exports, "useProjectSummaries", {
|
|
49234
49283
|
enumerable: true,
|
|
49235
|
-
get: function () { return
|
|
49284
|
+
get: function () { return chunkGLNL5AL5_cjs.useProjectSummaries; }
|
|
49236
49285
|
});
|
|
49237
49286
|
Object.defineProperty(exports, "useProjectSummary", {
|
|
49238
49287
|
enumerable: true,
|
|
49239
|
-
get: function () { return
|
|
49288
|
+
get: function () { return chunkGLNL5AL5_cjs.useProjectSummary; }
|
|
49240
49289
|
});
|
|
49241
49290
|
Object.defineProperty(exports, "useRenderTaskPerson", {
|
|
49242
49291
|
enumerable: true,
|
|
49243
|
-
get: function () { return
|
|
49292
|
+
get: function () { return chunkGLNL5AL5_cjs.useRenderTaskPerson; }
|
|
49244
49293
|
});
|
|
49245
49294
|
Object.defineProperty(exports, "useRequiredLabels", {
|
|
49246
49295
|
enumerable: true,
|
|
49247
|
-
get: function () { return
|
|
49296
|
+
get: function () { return chunkGLNL5AL5_cjs.useRequiredLabels; }
|
|
49248
49297
|
});
|
|
49249
49298
|
Object.defineProperty(exports, "useTaskPeople", {
|
|
49250
49299
|
enumerable: true,
|
|
49251
|
-
get: function () { return
|
|
49300
|
+
get: function () { return chunkGLNL5AL5_cjs.useTaskPeople; }
|
|
49252
49301
|
});
|
|
49253
49302
|
Object.defineProperty(exports, "useWorkflowsPageState", {
|
|
49254
49303
|
enumerable: true,
|
|
49255
|
-
get: function () { return
|
|
49304
|
+
get: function () { return chunkGLNL5AL5_cjs.useWorkflowsPageState; }
|
|
49256
49305
|
});
|
|
49257
49306
|
Object.defineProperty(exports, "workflowRunView", {
|
|
49258
49307
|
enumerable: true,
|
|
49259
|
-
get: function () { return
|
|
49308
|
+
get: function () { return chunkGLNL5AL5_cjs.workflowRunView; }
|
|
49260
49309
|
});
|
|
49261
49310
|
Object.defineProperty(exports, "AgentSteps", {
|
|
49262
49311
|
enumerable: true,
|
|
49263
|
-
get: function () { return
|
|
49312
|
+
get: function () { return chunk33236Q7Y_cjs.AgentSteps; }
|
|
49264
49313
|
});
|
|
49265
49314
|
Object.defineProperty(exports, "AnswerTable", {
|
|
49266
49315
|
enumerable: true,
|
|
49267
|
-
get: function () { return
|
|
49316
|
+
get: function () { return chunk33236Q7Y_cjs.AnswerTable; }
|
|
49268
49317
|
});
|
|
49269
49318
|
Object.defineProperty(exports, "ArbiChat", {
|
|
49270
49319
|
enumerable: true,
|
|
49271
|
-
get: function () { return
|
|
49320
|
+
get: function () { return chunk33236Q7Y_cjs.ArbiChat; }
|
|
49272
49321
|
});
|
|
49273
49322
|
Object.defineProperty(exports, "AskAgainContext", {
|
|
49274
49323
|
enumerable: true,
|
|
49275
|
-
get: function () { return
|
|
49324
|
+
get: function () { return chunk33236Q7Y_cjs.AskAgainContext; }
|
|
49276
49325
|
});
|
|
49277
49326
|
Object.defineProperty(exports, "ConnectedBranchControls", {
|
|
49278
49327
|
enumerable: true,
|
|
49279
|
-
get: function () { return
|
|
49328
|
+
get: function () { return chunk33236Q7Y_cjs.ConnectedBranchControls; }
|
|
49280
49329
|
});
|
|
49281
49330
|
Object.defineProperty(exports, "ConnectedCitationRenderer", {
|
|
49282
49331
|
enumerable: true,
|
|
49283
|
-
get: function () { return
|
|
49332
|
+
get: function () { return chunk33236Q7Y_cjs.ConnectedCitationRenderer; }
|
|
49284
49333
|
});
|
|
49285
49334
|
Object.defineProperty(exports, "ConnectedCompactConversation", {
|
|
49286
49335
|
enumerable: true,
|
|
49287
|
-
get: function () { return
|
|
49336
|
+
get: function () { return chunk33236Q7Y_cjs.ConnectedCompactConversation; }
|
|
49288
49337
|
});
|
|
49289
49338
|
Object.defineProperty(exports, "ConnectedCompactLogin", {
|
|
49290
49339
|
enumerable: true,
|
|
49291
|
-
get: function () { return
|
|
49340
|
+
get: function () { return chunk33236Q7Y_cjs.ConnectedCompactLogin; }
|
|
49292
49341
|
});
|
|
49293
49342
|
Object.defineProperty(exports, "ConnectedConversationDocumentPicker", {
|
|
49294
49343
|
enumerable: true,
|
|
49295
|
-
get: function () { return
|
|
49344
|
+
get: function () { return chunk33236Q7Y_cjs.ConnectedConversationDocumentPicker; }
|
|
49296
49345
|
});
|
|
49297
49346
|
Object.defineProperty(exports, "ConnectedDangerZone", {
|
|
49298
49347
|
enumerable: true,
|
|
49299
|
-
get: function () { return
|
|
49348
|
+
get: function () { return chunk33236Q7Y_cjs.ConnectedDangerZone; }
|
|
49300
49349
|
});
|
|
49301
49350
|
Object.defineProperty(exports, "ConnectedEmbeddedChat", {
|
|
49302
49351
|
enumerable: true,
|
|
49303
|
-
get: function () { return
|
|
49352
|
+
get: function () { return chunk33236Q7Y_cjs.ConnectedEmbeddedChat; }
|
|
49304
49353
|
});
|
|
49305
49354
|
Object.defineProperty(exports, "ConnectedForgotPassword", {
|
|
49306
49355
|
enumerable: true,
|
|
49307
|
-
get: function () { return
|
|
49356
|
+
get: function () { return chunk33236Q7Y_cjs.ConnectedForgotPassword; }
|
|
49308
49357
|
});
|
|
49309
49358
|
Object.defineProperty(exports, "ConnectedIdentityVerification", {
|
|
49310
49359
|
enumerable: true,
|
|
49311
|
-
get: function () { return
|
|
49360
|
+
get: function () { return chunk33236Q7Y_cjs.ConnectedIdentityVerification; }
|
|
49312
49361
|
});
|
|
49313
49362
|
Object.defineProperty(exports, "ConnectedLoginPage", {
|
|
49314
49363
|
enumerable: true,
|
|
49315
|
-
get: function () { return
|
|
49364
|
+
get: function () { return chunk33236Q7Y_cjs.ConnectedLoginPage; }
|
|
49316
49365
|
});
|
|
49317
49366
|
Object.defineProperty(exports, "ConnectedLogoutDialog", {
|
|
49318
49367
|
enumerable: true,
|
|
49319
|
-
get: function () { return
|
|
49368
|
+
get: function () { return chunk33236Q7Y_cjs.ConnectedLogoutDialog; }
|
|
49320
49369
|
});
|
|
49321
49370
|
Object.defineProperty(exports, "ConnectedMessage", {
|
|
49322
49371
|
enumerable: true,
|
|
49323
|
-
get: function () { return
|
|
49372
|
+
get: function () { return chunk33236Q7Y_cjs.ConnectedMessage; }
|
|
49324
49373
|
});
|
|
49325
49374
|
Object.defineProperty(exports, "ConnectedMessageArea", {
|
|
49326
49375
|
enumerable: true,
|
|
49327
|
-
get: function () { return
|
|
49376
|
+
get: function () { return chunk33236Q7Y_cjs.ConnectedMessageArea; }
|
|
49328
49377
|
});
|
|
49329
49378
|
Object.defineProperty(exports, "ConnectedMessageList", {
|
|
49330
49379
|
enumerable: true,
|
|
49331
|
-
get: function () { return
|
|
49380
|
+
get: function () { return chunk33236Q7Y_cjs.ConnectedMessageList; }
|
|
49332
49381
|
});
|
|
49333
49382
|
Object.defineProperty(exports, "ConnectedModelSelector", {
|
|
49334
49383
|
enumerable: true,
|
|
49335
|
-
get: function () { return
|
|
49384
|
+
get: function () { return chunk33236Q7Y_cjs.ConnectedModelSelector; }
|
|
49336
49385
|
});
|
|
49337
49386
|
Object.defineProperty(exports, "ConnectedNotificationPreferences", {
|
|
49338
49387
|
enumerable: true,
|
|
49339
|
-
get: function () { return
|
|
49388
|
+
get: function () { return chunk33236Q7Y_cjs.ConnectedNotificationPreferences; }
|
|
49340
49389
|
});
|
|
49341
49390
|
Object.defineProperty(exports, "ConnectedPasswordChangeDialog", {
|
|
49342
49391
|
enumerable: true,
|
|
49343
|
-
get: function () { return
|
|
49392
|
+
get: function () { return chunk33236Q7Y_cjs.ConnectedPasswordChangeDialog; }
|
|
49344
49393
|
});
|
|
49345
49394
|
Object.defineProperty(exports, "ConnectedProfileCard", {
|
|
49346
49395
|
enumerable: true,
|
|
49347
|
-
get: function () { return
|
|
49396
|
+
get: function () { return chunk33236Q7Y_cjs.ConnectedProfileCard; }
|
|
49348
49397
|
});
|
|
49349
49398
|
Object.defineProperty(exports, "ConnectedSecuritySection", {
|
|
49350
49399
|
enumerable: true,
|
|
49351
|
-
get: function () { return
|
|
49400
|
+
get: function () { return chunk33236Q7Y_cjs.ConnectedSecuritySection; }
|
|
49352
49401
|
});
|
|
49353
49402
|
Object.defineProperty(exports, "ConnectedSessionsRow", {
|
|
49354
49403
|
enumerable: true,
|
|
49355
|
-
get: function () { return
|
|
49404
|
+
get: function () { return chunk33236Q7Y_cjs.ConnectedSessionsRow; }
|
|
49356
49405
|
});
|
|
49357
49406
|
Object.defineProperty(exports, "ConnectedThreadsPreview", {
|
|
49358
49407
|
enumerable: true,
|
|
49359
|
-
get: function () { return
|
|
49408
|
+
get: function () { return chunk33236Q7Y_cjs.ConnectedThreadsPreview; }
|
|
49360
49409
|
});
|
|
49361
49410
|
Object.defineProperty(exports, "ConversationComposer", {
|
|
49362
49411
|
enumerable: true,
|
|
49363
|
-
get: function () { return
|
|
49412
|
+
get: function () { return chunk33236Q7Y_cjs.ConversationComposer; }
|
|
49364
49413
|
});
|
|
49365
49414
|
Object.defineProperty(exports, "EmbeddedChatPanel", {
|
|
49366
49415
|
enumerable: true,
|
|
49367
|
-
get: function () { return
|
|
49416
|
+
get: function () { return chunk33236Q7Y_cjs.EmbeddedChatPanel; }
|
|
49368
49417
|
});
|
|
49369
49418
|
Object.defineProperty(exports, "MessageDetailsModal", {
|
|
49370
49419
|
enumerable: true,
|
|
49371
|
-
get: function () { return
|
|
49420
|
+
get: function () { return chunk33236Q7Y_cjs.MessageDetailsModal; }
|
|
49372
49421
|
});
|
|
49373
49422
|
Object.defineProperty(exports, "MessageLiveSeconds", {
|
|
49374
49423
|
enumerable: true,
|
|
49375
|
-
get: function () { return
|
|
49424
|
+
get: function () { return chunk33236Q7Y_cjs.MessageLiveSeconds; }
|
|
49376
49425
|
});
|
|
49377
49426
|
Object.defineProperty(exports, "PENDING_RECOVERY_KEY", {
|
|
49378
49427
|
enumerable: true,
|
|
49379
|
-
get: function () { return
|
|
49428
|
+
get: function () { return chunk33236Q7Y_cjs.PENDING_RECOVERY_KEY; }
|
|
49380
49429
|
});
|
|
49381
49430
|
Object.defineProperty(exports, "PREMIUM_TIER_TAG", {
|
|
49382
49431
|
enumerable: true,
|
|
49383
|
-
get: function () { return
|
|
49432
|
+
get: function () { return chunk33236Q7Y_cjs.PREMIUM_TIER_TAG; }
|
|
49384
49433
|
});
|
|
49385
49434
|
Object.defineProperty(exports, "RunningSubagents", {
|
|
49386
49435
|
enumerable: true,
|
|
49387
|
-
get: function () { return
|
|
49436
|
+
get: function () { return chunk33236Q7Y_cjs.RunningSubagents; }
|
|
49388
49437
|
});
|
|
49389
49438
|
Object.defineProperty(exports, "STANDARD_TIER_TAG", {
|
|
49390
49439
|
enumerable: true,
|
|
49391
|
-
get: function () { return
|
|
49440
|
+
get: function () { return chunk33236Q7Y_cjs.STANDARD_TIER_TAG; }
|
|
49392
49441
|
});
|
|
49393
49442
|
Object.defineProperty(exports, "WorkflowStepMessage", {
|
|
49394
49443
|
enumerable: true,
|
|
49395
|
-
get: function () { return
|
|
49444
|
+
get: function () { return chunk33236Q7Y_cjs.WorkflowStepMessage; }
|
|
49396
49445
|
});
|
|
49397
49446
|
Object.defineProperty(exports, "backUpOnSignup", {
|
|
49398
49447
|
enumerable: true,
|
|
49399
|
-
get: function () { return
|
|
49448
|
+
get: function () { return chunk33236Q7Y_cjs.backUpOnSignup; }
|
|
49400
49449
|
});
|
|
49401
49450
|
Object.defineProperty(exports, "createRemoteControl", {
|
|
49402
49451
|
enumerable: true,
|
|
49403
|
-
get: function () { return
|
|
49452
|
+
get: function () { return chunk33236Q7Y_cjs.createRemoteControl; }
|
|
49404
49453
|
});
|
|
49405
49454
|
Object.defineProperty(exports, "defaultHost", {
|
|
49406
49455
|
enumerable: true,
|
|
49407
|
-
get: function () { return
|
|
49456
|
+
get: function () { return chunk33236Q7Y_cjs.defaultHost; }
|
|
49408
49457
|
});
|
|
49409
49458
|
Object.defineProperty(exports, "renderConnectedUser", {
|
|
49410
49459
|
enumerable: true,
|
|
49411
|
-
get: function () { return
|
|
49460
|
+
get: function () { return chunk33236Q7Y_cjs.renderConnectedUser; }
|
|
49412
49461
|
});
|
|
49413
49462
|
Object.defineProperty(exports, "renderSessionStatusIcon", {
|
|
49414
49463
|
enumerable: true,
|
|
49415
|
-
get: function () { return
|
|
49464
|
+
get: function () { return chunk33236Q7Y_cjs.renderSessionStatusIcon; }
|
|
49416
49465
|
});
|
|
49417
49466
|
Object.defineProperty(exports, "resolveSsoName", {
|
|
49418
49467
|
enumerable: true,
|
|
49419
|
-
get: function () { return
|
|
49468
|
+
get: function () { return chunk33236Q7Y_cjs.resolveSsoName; }
|
|
49420
49469
|
});
|
|
49421
49470
|
Object.defineProperty(exports, "useAuthPages", {
|
|
49422
49471
|
enumerable: true,
|
|
49423
|
-
get: function () { return
|
|
49472
|
+
get: function () { return chunk33236Q7Y_cjs.useAuthPages; }
|
|
49424
49473
|
});
|
|
49425
49474
|
Object.defineProperty(exports, "useContextualHints", {
|
|
49426
49475
|
enumerable: true,
|
|
49427
|
-
get: function () { return
|
|
49476
|
+
get: function () { return chunk33236Q7Y_cjs.useContextualHints; }
|
|
49428
49477
|
});
|
|
49429
49478
|
Object.defineProperty(exports, "useModelPicker", {
|
|
49430
49479
|
enumerable: true,
|
|
49431
|
-
get: function () { return
|
|
49480
|
+
get: function () { return chunk33236Q7Y_cjs.useModelPicker; }
|
|
49432
49481
|
});
|
|
49433
49482
|
Object.defineProperty(exports, "useOpenChunk", {
|
|
49434
49483
|
enumerable: true,
|
|
49435
|
-
get: function () { return
|
|
49484
|
+
get: function () { return chunk33236Q7Y_cjs.useOpenChunk; }
|
|
49436
49485
|
});
|
|
49437
49486
|
Object.defineProperty(exports, "useOpenWorkspaceIcon", {
|
|
49438
49487
|
enumerable: true,
|
|
49439
|
-
get: function () { return
|
|
49488
|
+
get: function () { return chunk33236Q7Y_cjs.useOpenWorkspaceIcon; }
|
|
49440
49489
|
});
|
|
49441
49490
|
Object.defineProperty(exports, "useRemoteControlActions", {
|
|
49442
49491
|
enumerable: true,
|
|
49443
|
-
get: function () { return
|
|
49492
|
+
get: function () { return chunk33236Q7Y_cjs.useRemoteControlActions; }
|
|
49444
49493
|
});
|
|
49445
49494
|
Object.defineProperty(exports, "useRemoteControlHandlers", {
|
|
49446
49495
|
enumerable: true,
|
|
49447
|
-
get: function () { return
|
|
49496
|
+
get: function () { return chunk33236Q7Y_cjs.useRemoteControlHandlers; }
|
|
49448
49497
|
});
|
|
49449
49498
|
Object.defineProperty(exports, "useSsoSignIn", {
|
|
49450
49499
|
enumerable: true,
|
|
49451
|
-
get: function () { return
|
|
49500
|
+
get: function () { return chunk33236Q7Y_cjs.useSsoSignIn; }
|
|
49452
49501
|
});
|
|
49453
49502
|
Object.defineProperty(exports, "useWorkspaceDocTitles", {
|
|
49454
49503
|
enumerable: true,
|
|
49455
|
-
get: function () { return
|
|
49504
|
+
get: function () { return chunk33236Q7Y_cjs.useWorkspaceDocTitles; }
|
|
49456
49505
|
});
|
|
49457
49506
|
Object.defineProperty(exports, "parseTypedSkill", {
|
|
49458
49507
|
enumerable: true,
|
|
@@ -49484,11 +49533,11 @@ Object.defineProperty(exports, "useLaunchWorkflow", {
|
|
|
49484
49533
|
});
|
|
49485
49534
|
Object.defineProperty(exports, "useConnectedThreadActivity", {
|
|
49486
49535
|
enumerable: true,
|
|
49487
|
-
get: function () { return
|
|
49536
|
+
get: function () { return chunk65NQW4RR_cjs.useConnectedThreadActivity; }
|
|
49488
49537
|
});
|
|
49489
49538
|
Object.defineProperty(exports, "DocumentUser", {
|
|
49490
49539
|
enumerable: true,
|
|
49491
|
-
get: function () { return
|
|
49540
|
+
get: function () { return chunkEFV52SZ6_cjs.DocumentUser; }
|
|
49492
49541
|
});
|
|
49493
49542
|
Object.defineProperty(exports, "useCanBrowseSkills", {
|
|
49494
49543
|
enumerable: true,
|
|
@@ -49544,35 +49593,35 @@ Object.defineProperty(exports, "ConnectedDocumentToolsProvider", {
|
|
|
49544
49593
|
});
|
|
49545
49594
|
Object.defineProperty(exports, "FILES_PREFS_KEY", {
|
|
49546
49595
|
enumerable: true,
|
|
49547
|
-
get: function () { return
|
|
49596
|
+
get: function () { return chunkAZUPMHZI_cjs.FILES_PREFS_KEY; }
|
|
49548
49597
|
});
|
|
49549
49598
|
Object.defineProperty(exports, "filesViewMode", {
|
|
49550
49599
|
enumerable: true,
|
|
49551
|
-
get: function () { return
|
|
49600
|
+
get: function () { return chunkAZUPMHZI_cjs.filesViewMode; }
|
|
49552
49601
|
});
|
|
49553
49602
|
Object.defineProperty(exports, "useAiReviewStore", {
|
|
49554
49603
|
enumerable: true,
|
|
49555
|
-
get: function () { return
|
|
49604
|
+
get: function () { return chunkAZUPMHZI_cjs.useAiReviewStore; }
|
|
49556
49605
|
});
|
|
49557
49606
|
Object.defineProperty(exports, "useFilesDialogs", {
|
|
49558
49607
|
enumerable: true,
|
|
49559
|
-
get: function () { return
|
|
49608
|
+
get: function () { return chunkAZUPMHZI_cjs.useFilesDialogs; }
|
|
49560
49609
|
});
|
|
49561
49610
|
Object.defineProperty(exports, "useFilesGridStates", {
|
|
49562
49611
|
enumerable: true,
|
|
49563
|
-
get: function () { return
|
|
49612
|
+
get: function () { return chunkAZUPMHZI_cjs.useFilesGridStates; }
|
|
49564
49613
|
});
|
|
49565
49614
|
Object.defineProperty(exports, "useFilesPrefs", {
|
|
49566
49615
|
enumerable: true,
|
|
49567
|
-
get: function () { return
|
|
49616
|
+
get: function () { return chunkAZUPMHZI_cjs.useFilesPrefs; }
|
|
49568
49617
|
});
|
|
49569
49618
|
Object.defineProperty(exports, "useFilesStore", {
|
|
49570
49619
|
enumerable: true,
|
|
49571
|
-
get: function () { return
|
|
49620
|
+
get: function () { return chunkAZUPMHZI_cjs.useFilesStore; }
|
|
49572
49621
|
});
|
|
49573
49622
|
Object.defineProperty(exports, "usePendingFolders", {
|
|
49574
49623
|
enumerable: true,
|
|
49575
|
-
get: function () { return
|
|
49624
|
+
get: function () { return chunkAZUPMHZI_cjs.usePendingFolders; }
|
|
49576
49625
|
});
|
|
49577
49626
|
Object.defineProperty(exports, "ConnectedMarkdown", {
|
|
49578
49627
|
enumerable: true,
|
|
@@ -49604,87 +49653,87 @@ Object.defineProperty(exports, "useDocumentWorkspace", {
|
|
|
49604
49653
|
});
|
|
49605
49654
|
Object.defineProperty(exports, "ConnectedPendingSyncDialog", {
|
|
49606
49655
|
enumerable: true,
|
|
49607
|
-
get: function () { return
|
|
49656
|
+
get: function () { return chunk633ZCYVN_cjs.ConnectedPendingSyncDialog; }
|
|
49608
49657
|
});
|
|
49609
49658
|
Object.defineProperty(exports, "DocumentFolderCell", {
|
|
49610
49659
|
enumerable: true,
|
|
49611
|
-
get: function () { return
|
|
49660
|
+
get: function () { return chunk633ZCYVN_cjs.DocumentFolderCell; }
|
|
49612
49661
|
});
|
|
49613
49662
|
Object.defineProperty(exports, "DocumentLabelsCell", {
|
|
49614
49663
|
enumerable: true,
|
|
49615
|
-
get: function () { return
|
|
49664
|
+
get: function () { return chunk633ZCYVN_cjs.DocumentLabelsCell; }
|
|
49616
49665
|
});
|
|
49617
49666
|
Object.defineProperty(exports, "DocumentNameCell", {
|
|
49618
49667
|
enumerable: true,
|
|
49619
|
-
get: function () { return
|
|
49668
|
+
get: function () { return chunk633ZCYVN_cjs.DocumentNameCell; }
|
|
49620
49669
|
});
|
|
49621
49670
|
Object.defineProperty(exports, "DocumentSharedCell", {
|
|
49622
49671
|
enumerable: true,
|
|
49623
|
-
get: function () { return
|
|
49672
|
+
get: function () { return chunk633ZCYVN_cjs.DocumentSharedCell; }
|
|
49624
49673
|
});
|
|
49625
49674
|
Object.defineProperty(exports, "DocumentStatusGlyph", {
|
|
49626
49675
|
enumerable: true,
|
|
49627
|
-
get: function () { return
|
|
49676
|
+
get: function () { return chunk633ZCYVN_cjs.DocumentStatusGlyph; }
|
|
49628
49677
|
});
|
|
49629
49678
|
Object.defineProperty(exports, "DocumentSyncGlyph", {
|
|
49630
49679
|
enumerable: true,
|
|
49631
|
-
get: function () { return
|
|
49680
|
+
get: function () { return chunk633ZCYVN_cjs.DocumentSyncGlyph; }
|
|
49632
49681
|
});
|
|
49633
49682
|
Object.defineProperty(exports, "FileTooltipContent", {
|
|
49634
49683
|
enumerable: true,
|
|
49635
|
-
get: function () { return
|
|
49684
|
+
get: function () { return chunk633ZCYVN_cjs.FileTooltipContent; }
|
|
49636
49685
|
});
|
|
49637
49686
|
Object.defineProperty(exports, "RelatedDocumentsCell", {
|
|
49638
49687
|
enumerable: true,
|
|
49639
|
-
get: function () { return
|
|
49688
|
+
get: function () { return chunk633ZCYVN_cjs.RelatedDocumentsCell; }
|
|
49640
49689
|
});
|
|
49641
49690
|
Object.defineProperty(exports, "StatusCell", {
|
|
49642
49691
|
enumerable: true,
|
|
49643
|
-
get: function () { return
|
|
49692
|
+
get: function () { return chunk633ZCYVN_cjs.StatusCell; }
|
|
49644
49693
|
});
|
|
49645
49694
|
Object.defineProperty(exports, "UserAvatar", {
|
|
49646
49695
|
enumerable: true,
|
|
49647
|
-
get: function () { return
|
|
49696
|
+
get: function () { return chunk633ZCYVN_cjs.UserAvatar; }
|
|
49648
49697
|
});
|
|
49649
49698
|
Object.defineProperty(exports, "isActiveDocumentStatus", {
|
|
49650
49699
|
enumerable: true,
|
|
49651
|
-
get: function () { return
|
|
49700
|
+
get: function () { return chunk633ZCYVN_cjs.isActiveDocumentStatus; }
|
|
49652
49701
|
});
|
|
49653
49702
|
Object.defineProperty(exports, "openPendingSyncDialog", {
|
|
49654
49703
|
enumerable: true,
|
|
49655
|
-
get: function () { return
|
|
49704
|
+
get: function () { return chunk633ZCYVN_cjs.openPendingSyncDialog; }
|
|
49656
49705
|
});
|
|
49657
49706
|
Object.defineProperty(exports, "parseQuotaError", {
|
|
49658
49707
|
enumerable: true,
|
|
49659
|
-
get: function () { return
|
|
49708
|
+
get: function () { return chunk633ZCYVN_cjs.parseQuotaError; }
|
|
49660
49709
|
});
|
|
49661
49710
|
Object.defineProperty(exports, "startMenuItem", {
|
|
49662
49711
|
enumerable: true,
|
|
49663
|
-
get: function () { return
|
|
49712
|
+
get: function () { return chunk633ZCYVN_cjs.startMenuItem; }
|
|
49664
49713
|
});
|
|
49665
49714
|
Object.defineProperty(exports, "useDocumentFolders", {
|
|
49666
49715
|
enumerable: true,
|
|
49667
|
-
get: function () { return
|
|
49716
|
+
get: function () { return chunk633ZCYVN_cjs.useDocumentFolders; }
|
|
49668
49717
|
});
|
|
49669
49718
|
Object.defineProperty(exports, "ConnectedWorkflowsTable", {
|
|
49670
49719
|
enumerable: true,
|
|
49671
|
-
get: function () { return
|
|
49720
|
+
get: function () { return chunkVJHDCYKE_cjs.ConnectedWorkflowsTable; }
|
|
49672
49721
|
});
|
|
49673
49722
|
Object.defineProperty(exports, "DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS", {
|
|
49674
49723
|
enumerable: true,
|
|
49675
|
-
get: function () { return
|
|
49724
|
+
get: function () { return chunkVJHDCYKE_cjs.DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS; }
|
|
49676
49725
|
});
|
|
49677
49726
|
Object.defineProperty(exports, "useConnectedWorkspaceRole", {
|
|
49678
49727
|
enumerable: true,
|
|
49679
|
-
get: function () { return
|
|
49728
|
+
get: function () { return chunkVJHDCYKE_cjs.useConnectedWorkspaceRole; }
|
|
49680
49729
|
});
|
|
49681
49730
|
Object.defineProperty(exports, "useDocxCommentTarget", {
|
|
49682
49731
|
enumerable: true,
|
|
49683
|
-
get: function () { return
|
|
49732
|
+
get: function () { return chunkVJHDCYKE_cjs.useDocxCommentTarget; }
|
|
49684
49733
|
});
|
|
49685
49734
|
Object.defineProperty(exports, "useNativeDocxSupport", {
|
|
49686
49735
|
enumerable: true,
|
|
49687
|
-
get: function () { return
|
|
49736
|
+
get: function () { return chunkVJHDCYKE_cjs.useNativeDocxSupport; }
|
|
49688
49737
|
});
|
|
49689
49738
|
Object.defineProperty(exports, "useOpenWorkflow", {
|
|
49690
49739
|
enumerable: true,
|