@arbidocs/blocks 0.5.56 → 0.5.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ConnectedCallDock-SPG5XOPH.cjs → ConnectedCallDock-PXETJN7A.cjs} +8 -8
- package/dist/{ConnectedCallDock-SPG5XOPH.cjs.map → ConnectedCallDock-PXETJN7A.cjs.map} +1 -1
- package/dist/{ConnectedCallDock-7SQ5MX6C.js → ConnectedCallDock-Q52GHY6G.js} +7 -7
- package/dist/{ConnectedCallDock-7SQ5MX6C.js.map → ConnectedCallDock-Q52GHY6G.js.map} +1 -1
- package/dist/{ConnectedCallRoom-K6QLTTZM.js → ConnectedCallRoom-TUTRI4Y2.js} +7 -7
- package/dist/{ConnectedCallRoom-K6QLTTZM.js.map → ConnectedCallRoom-TUTRI4Y2.js.map} +1 -1
- package/dist/{ConnectedCallRoom-GFZLXFRF.cjs → ConnectedCallRoom-XCD5R4ES.cjs} +8 -8
- package/dist/{ConnectedCallRoom-GFZLXFRF.cjs.map → ConnectedCallRoom-XCD5R4ES.cjs.map} +1 -1
- package/dist/{ConnectedNativeDocxComparison-FRWPDSCF.cjs → ConnectedNativeDocxComparison-5PZ6WSQZ.cjs} +17 -17
- package/dist/{ConnectedNativeDocxComparison-FRWPDSCF.cjs.map → ConnectedNativeDocxComparison-5PZ6WSQZ.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-RBYGJJRG.js → ConnectedNativeDocxComparison-XDXJY7BE.js} +16 -16
- package/dist/{ConnectedNativeDocxComparison-KF66UDAF.js.map → ConnectedNativeDocxComparison-XDXJY7BE.js.map} +1 -1
- package/dist/{ConnectedNativeDocxEditor-56H656VV.js → ConnectedNativeDocxEditor-LCG54CN6.js} +14 -14
- package/dist/{ConnectedNativeDocxEditor-56H656VV.js.map → ConnectedNativeDocxEditor-LCG54CN6.js.map} +1 -1
- package/dist/{ConnectedNativeDocxEditor-SFBUJLCE.cjs → ConnectedNativeDocxEditor-QPIT6V7X.cjs} +16 -16
- package/dist/{ConnectedNativeDocxEditor-SFBUJLCE.cjs.map → ConnectedNativeDocxEditor-QPIT6V7X.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-SC5P4I6K.cjs → ConnectedStreamedWordArtifact-27HU7JG2.cjs} +17 -17
- package/dist/ConnectedStreamedWordArtifact-27HU7JG2.cjs.map +1 -0
- package/dist/{ConnectedNativeDocxComparison-KF66UDAF.js → ConnectedStreamedWordArtifact-DJ2S2U5U.js} +16 -16
- package/dist/ConnectedStreamedWordArtifact-DJ2S2U5U.js.map +1 -0
- package/dist/{DocumentReviewCard-YMBLUCOJ.js → DocumentReviewCard-IOM476M4.js} +9 -9
- package/dist/{DocumentReviewCard-YMBLUCOJ.js.map → DocumentReviewCard-IOM476M4.js.map} +1 -1
- package/dist/{DocumentReviewCard-ZD76R6VW.cjs → DocumentReviewCard-S3ULXYVN.cjs} +14 -14
- package/dist/{DocumentReviewCard-ZD76R6VW.cjs.map → DocumentReviewCard-S3ULXYVN.cjs.map} +1 -1
- package/dist/{NativeDocxEditor-HJTKCPX2.js → NativeDocxEditor-D6Z7BXTA.js} +4 -4
- package/dist/{NativeDocxEditor-HJTKCPX2.js.map → NativeDocxEditor-D6Z7BXTA.js.map} +1 -1
- package/dist/{NativeDocxEditor-TVZ6O6YS.cjs → NativeDocxEditor-HE4PQV5F.cjs} +8 -8
- package/dist/{NativeDocxEditor-TVZ6O6YS.cjs.map → NativeDocxEditor-HE4PQV5F.cjs.map} +1 -1
- package/dist/{WorkspaceTableView-4DZ4YODA.js → WorkspaceTableView-F4PZMXN5.js} +4 -4
- package/dist/{WorkspaceTableView-4DZ4YODA.js.map → WorkspaceTableView-F4PZMXN5.js.map} +1 -1
- package/dist/{WorkspaceTableView-XHEVFCRP.cjs → WorkspaceTableView-OUPRGWRJ.cjs} +4 -4
- package/dist/{WorkspaceTableView-XHEVFCRP.cjs.map → WorkspaceTableView-OUPRGWRJ.cjs.map} +1 -1
- package/dist/agents/index.cjs +340 -340
- package/dist/agents/index.js +10 -10
- package/dist/calls/index.cjs +3 -3
- package/dist/calls/index.js +3 -3
- package/dist/chat/index.cjs +81 -81
- package/dist/chat/index.js +4 -4
- package/dist/{chunk-UF7YJ2N6.js → chunk-32SVMYRM.js} +4 -4
- package/dist/{chunk-UF7YJ2N6.js.map → chunk-32SVMYRM.js.map} +1 -1
- package/dist/{chunk-VFSHI7IX.js → chunk-5TFI4YW2.js} +3 -3
- package/dist/{chunk-VFSHI7IX.js.map → chunk-5TFI4YW2.js.map} +1 -1
- package/dist/{chunk-VM6UCMII.cjs → chunk-77U3DP44.cjs} +5 -5
- package/dist/{chunk-VM6UCMII.cjs.map → chunk-77U3DP44.cjs.map} +1 -1
- package/dist/{chunk-K7ZDC5A2.js → chunk-B2GL46SB.js} +3 -3
- package/dist/{chunk-K7ZDC5A2.js.map → chunk-B2GL46SB.js.map} +1 -1
- package/dist/chunk-BJT4TWWX.cjs +18 -0
- package/dist/{chunk-MVMQWERS.cjs.map → chunk-BJT4TWWX.cjs.map} +1 -1
- package/dist/{chunk-YTB6DLAD.cjs → chunk-BRYHW3OL.cjs} +4 -4
- package/dist/{chunk-YTB6DLAD.cjs.map → chunk-BRYHW3OL.cjs.map} +1 -1
- package/dist/{chunk-PSRMPGQU.js → chunk-C2J6FBLB.js} +3 -3
- package/dist/{chunk-PSRMPGQU.js.map → chunk-C2J6FBLB.js.map} +1 -1
- package/dist/{chunk-QXOB5BV3.cjs → chunk-CPQRQEJL.cjs} +3 -3
- package/dist/{chunk-QXOB5BV3.cjs.map → chunk-CPQRQEJL.cjs.map} +1 -1
- package/dist/{chunk-YXDHJC4P.js → chunk-DK4NN46N.js} +3 -3
- package/dist/{chunk-YXDHJC4P.js.map → chunk-DK4NN46N.js.map} +1 -1
- package/dist/{chunk-GPQDC2DG.js → chunk-FKWQAXG6.js} +4 -4
- package/dist/{chunk-GPQDC2DG.js.map → chunk-FKWQAXG6.js.map} +1 -1
- package/dist/{chunk-MLR3FOS7.js → chunk-GRMMUVQG.js} +4 -4
- package/dist/{chunk-MLR3FOS7.js.map → chunk-GRMMUVQG.js.map} +1 -1
- package/dist/{chunk-Y4B4BJGA.cjs → chunk-I3ITXJRO.cjs} +21 -21
- package/dist/{chunk-Y4B4BJGA.cjs.map → chunk-I3ITXJRO.cjs.map} +1 -1
- package/dist/{chunk-WM4JKQTL.cjs → chunk-I6CGE7RZ.cjs} +10 -10
- package/dist/{chunk-WM4JKQTL.cjs.map → chunk-I6CGE7RZ.cjs.map} +1 -1
- package/dist/{chunk-RXOEQQLW.js → chunk-JIXJR6L2.js} +4 -4
- package/dist/{chunk-RXOEQQLW.js.map → chunk-JIXJR6L2.js.map} +1 -1
- package/dist/{chunk-K4ZKREVK.js → chunk-JV2CJGHV.js} +3 -3
- package/dist/{chunk-K4ZKREVK.js.map → chunk-JV2CJGHV.js.map} +1 -1
- package/dist/{chunk-IVGOB4RW.cjs → chunk-KD6ECCAN.cjs} +3 -3
- package/dist/{chunk-IVGOB4RW.cjs.map → chunk-KD6ECCAN.cjs.map} +1 -1
- package/dist/chunk-KHUWQL2Q.cjs +18 -0
- package/dist/{chunk-NOQ3NSBD.cjs.map → chunk-KHUWQL2Q.cjs.map} +1 -1
- package/dist/{chunk-N4ARBAL6.cjs → chunk-KO3CME7Z.cjs} +9 -9
- package/dist/{chunk-N4ARBAL6.cjs.map → chunk-KO3CME7Z.cjs.map} +1 -1
- package/dist/{chunk-75Z5AUMM.js → chunk-KTC6OVQD.js} +3 -3
- package/dist/{chunk-75Z5AUMM.js.map → chunk-KTC6OVQD.js.map} +1 -1
- package/dist/{chunk-L7KXNEBC.cjs → chunk-L6KTANY2.cjs} +37 -37
- package/dist/{chunk-L7KXNEBC.cjs.map → chunk-L6KTANY2.cjs.map} +1 -1
- package/dist/{chunk-4NI6CVBC.cjs → chunk-L7ROIPS7.cjs} +27 -27
- package/dist/{chunk-4NI6CVBC.cjs.map → chunk-L7ROIPS7.cjs.map} +1 -1
- package/dist/{chunk-R42KJSBH.js → chunk-M24OG3RP.js} +6 -6
- package/dist/{chunk-R42KJSBH.js.map → chunk-M24OG3RP.js.map} +1 -1
- package/dist/{chunk-BTTUZZN3.js → chunk-NIA4H7QN.js} +3 -3
- package/dist/{chunk-BTTUZZN3.js.map → chunk-NIA4H7QN.js.map} +1 -1
- package/dist/{chunk-YQYA2XP3.cjs → chunk-NT2PELCF.cjs} +18 -18
- package/dist/{chunk-YQYA2XP3.cjs.map → chunk-NT2PELCF.cjs.map} +1 -1
- package/dist/{chunk-AEXFUPO7.js → chunk-ORFP3QJQ.js} +3 -3
- package/dist/{chunk-AEXFUPO7.js.map → chunk-ORFP3QJQ.js.map} +1 -1
- package/dist/{chunk-J25HZUGJ.js → chunk-PJJZEDR3.js} +3 -3
- package/dist/{chunk-J25HZUGJ.js.map → chunk-PJJZEDR3.js.map} +1 -1
- package/dist/{chunk-DV725PNE.cjs → chunk-Q6N56ZBF.cjs} +10 -10
- package/dist/{chunk-DV725PNE.cjs.map → chunk-Q6N56ZBF.cjs.map} +1 -1
- package/dist/{chunk-YTLDM4S5.js → chunk-QE7VE7HV.js} +9 -9
- package/dist/{chunk-YTLDM4S5.js.map → chunk-QE7VE7HV.js.map} +1 -1
- package/dist/{chunk-C5Y5AQ5B.js → chunk-QWVZTX2P.js} +3 -3
- package/dist/{chunk-C5Y5AQ5B.js.map → chunk-QWVZTX2P.js.map} +1 -1
- package/dist/{chunk-UIKLUVKV.js → chunk-RAK4EBNU.js} +3 -3
- package/dist/{chunk-UIKLUVKV.js.map → chunk-RAK4EBNU.js.map} +1 -1
- package/dist/{chunk-TTSSW6CH.js → chunk-RK2T6RFL.js} +3 -3
- package/dist/{chunk-TTSSW6CH.js.map → chunk-RK2T6RFL.js.map} +1 -1
- package/dist/{chunk-LMD5WNZB.js → chunk-RLTTVBCT.js} +6 -6
- package/dist/{chunk-LMD5WNZB.js.map → chunk-RLTTVBCT.js.map} +1 -1
- package/dist/{chunk-JBQ4NYDD.cjs → chunk-RZUZBHIH.cjs} +3 -3
- package/dist/{chunk-JBQ4NYDD.cjs.map → chunk-RZUZBHIH.cjs.map} +1 -1
- package/dist/{chunk-43KLNPR5.cjs → chunk-SRD5YJJI.cjs} +3 -3
- package/dist/{chunk-43KLNPR5.cjs.map → chunk-SRD5YJJI.cjs.map} +1 -1
- package/dist/{chunk-2XOTUCZ5.js → chunk-TM6YSWH5.js} +3 -3
- package/dist/{chunk-2XOTUCZ5.js.map → chunk-TM6YSWH5.js.map} +1 -1
- package/dist/{chunk-RXREIA7W.cjs → chunk-TX3JM4EI.cjs} +11 -11
- package/dist/{chunk-RXREIA7W.cjs.map → chunk-TX3JM4EI.cjs.map} +1 -1
- package/dist/{chunk-YD3RN2FY.cjs → chunk-UZCHVJ6L.cjs} +3 -3
- package/dist/{chunk-YD3RN2FY.cjs.map → chunk-UZCHVJ6L.cjs.map} +1 -1
- package/dist/{chunk-IEMN3P5Q.cjs → chunk-VY3JLGRZ.cjs} +7 -7
- package/dist/{chunk-IEMN3P5Q.cjs.map → chunk-VY3JLGRZ.cjs.map} +1 -1
- package/dist/{chunk-H7FV7YSG.js → chunk-WDJRMPRI.js} +3 -3
- package/dist/{chunk-H7FV7YSG.js.map → chunk-WDJRMPRI.js.map} +1 -1
- package/dist/{chunk-GKHIRR5A.cjs → chunk-WDR6FO22.cjs} +5 -5
- package/dist/{chunk-GKHIRR5A.cjs.map → chunk-WDR6FO22.cjs.map} +1 -1
- package/dist/{chunk-WVRAMYDQ.js → chunk-X5QOPSXT.js} +3 -3
- package/dist/{chunk-WVRAMYDQ.js.map → chunk-X5QOPSXT.js.map} +1 -1
- package/dist/{chunk-4ASLRHJC.cjs → chunk-XZVAKOE2.cjs} +4 -4
- package/dist/{chunk-4ASLRHJC.cjs.map → chunk-XZVAKOE2.cjs.map} +1 -1
- package/dist/{chunk-EP4K4YQG.cjs → chunk-YMZAHBFL.cjs} +6 -6
- package/dist/{chunk-EP4K4YQG.cjs.map → chunk-YMZAHBFL.cjs.map} +1 -1
- package/dist/{chunk-KYNWO6EC.js → chunk-YS7MLS4U.js} +4 -4
- package/dist/{chunk-KYNWO6EC.js.map → chunk-YS7MLS4U.js.map} +1 -1
- package/dist/{chunk-PICGTGEB.cjs → chunk-Z6DNYFVM.cjs} +3 -3
- package/dist/{chunk-PICGTGEB.cjs.map → chunk-Z6DNYFVM.cjs.map} +1 -1
- package/dist/{chunk-XTRV2JHZ.cjs → chunk-ZDX7X7R5.cjs} +35 -35
- package/dist/{chunk-XTRV2JHZ.cjs.map → chunk-ZDX7X7R5.cjs.map} +1 -1
- package/dist/connect/docx.cjs +20 -20
- package/dist/connect/docx.js +16 -16
- package/dist/connect/index.cjs +663 -663
- package/dist/connect/index.js +40 -40
- package/dist/connect/viewer.cjs +60 -60
- package/dist/connect/viewer.js +13 -13
- package/dist/docx/index.cjs +51 -51
- package/dist/docx/index.js +4 -4
- package/dist/facts/index.cjs +57 -57
- package/dist/facts/index.js +5 -5
- package/dist/files/index.cjs +236 -236
- package/dist/files/index.js +4 -4
- package/dist/home/index.cjs +29 -29
- package/dist/home/index.js +4 -4
- package/dist/index.cjs +658 -658
- package/dist/index.js +18 -18
- package/dist/settings/index.cjs +2 -2
- package/dist/settings/index.js +2 -2
- package/dist/shell/index.cjs +1 -1
- package/dist/shell/index.js +1 -1
- package/dist/site/index.cjs +21 -21
- package/dist/site/index.js +1 -1
- package/dist/studio/index.cjs +6 -6
- package/dist/studio/index.js +5 -5
- package/dist/workflow-canvas/index.cjs +41 -41
- package/dist/workflow-canvas/index.js +16 -16
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/dist/ConnectedStreamedWordArtifact-RBYGJJRG.js.map +0 -1
- package/dist/ConnectedStreamedWordArtifact-SC5P4I6K.cjs.map +0 -1
- package/dist/chunk-MVMQWERS.cjs +0 -18
- package/dist/chunk-NOQ3NSBD.cjs +0 -18
package/dist/connect/index.cjs
CHANGED
|
@@ -2,95 +2,95 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var chunkRH6HTLVS_cjs = require('../chunk-RH6HTLVS.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
5
|
+
var chunkL7ROIPS7_cjs = require('../chunk-L7ROIPS7.cjs');
|
|
6
|
+
var chunkL6KTANY2_cjs = require('../chunk-L6KTANY2.cjs');
|
|
7
|
+
var chunkZDX7X7R5_cjs = require('../chunk-ZDX7X7R5.cjs');
|
|
8
8
|
var chunkJ4OBIE32_cjs = require('../chunk-J4OBIE32.cjs');
|
|
9
9
|
var chunkKWJW5TMH_cjs = require('../chunk-KWJW5TMH.cjs');
|
|
10
10
|
var chunkPSIKUQYM_cjs = require('../chunk-PSIKUQYM.cjs');
|
|
11
|
-
var
|
|
12
|
-
var chunkIEMN3P5Q_cjs = require('../chunk-IEMN3P5Q.cjs');
|
|
11
|
+
var chunkVY3JLGRZ_cjs = require('../chunk-VY3JLGRZ.cjs');
|
|
13
12
|
var chunkOU3RGQFX_cjs = require('../chunk-OU3RGQFX.cjs');
|
|
14
13
|
require('../chunk-REH7PX3N.cjs');
|
|
15
14
|
require('../chunk-H32DV7XS.cjs');
|
|
16
15
|
var chunkFEVJA4BP_cjs = require('../chunk-FEVJA4BP.cjs');
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
var
|
|
16
|
+
var chunkXZVAKOE2_cjs = require('../chunk-XZVAKOE2.cjs');
|
|
17
|
+
var chunkW3PSIIMN_cjs = require('../chunk-W3PSIIMN.cjs');
|
|
18
|
+
var chunkI6CGE7RZ_cjs = require('../chunk-I6CGE7RZ.cjs');
|
|
19
|
+
var chunkQ6N56ZBF_cjs = require('../chunk-Q6N56ZBF.cjs');
|
|
20
|
+
var chunk464YPRAE_cjs = require('../chunk-464YPRAE.cjs');
|
|
21
|
+
var chunkZ6DNYFVM_cjs = require('../chunk-Z6DNYFVM.cjs');
|
|
22
|
+
var chunkKD6ECCAN_cjs = require('../chunk-KD6ECCAN.cjs');
|
|
23
|
+
var chunkSRD5YJJI_cjs = require('../chunk-SRD5YJJI.cjs');
|
|
23
24
|
var chunk223D4727_cjs = require('../chunk-223D4727.cjs');
|
|
24
25
|
var chunkTQSU3I4C_cjs = require('../chunk-TQSU3I4C.cjs');
|
|
25
26
|
var chunk2XLVE2XD_cjs = require('../chunk-2XLVE2XD.cjs');
|
|
26
27
|
require('../chunk-UWIILWDI.cjs');
|
|
27
28
|
var chunkIRY63R4L_cjs = require('../chunk-IRY63R4L.cjs');
|
|
28
|
-
var chunk464YPRAE_cjs = require('../chunk-464YPRAE.cjs');
|
|
29
|
-
var chunkPICGTGEB_cjs = require('../chunk-PICGTGEB.cjs');
|
|
30
|
-
var chunk5FYU7ZIU_cjs = require('../chunk-5FYU7ZIU.cjs');
|
|
31
29
|
require('../chunk-ZESMRGDV.cjs');
|
|
32
|
-
var
|
|
30
|
+
var chunkUZCHVJ6L_cjs = require('../chunk-UZCHVJ6L.cjs');
|
|
31
|
+
var chunkQUMUAJ2P_cjs = require('../chunk-QUMUAJ2P.cjs');
|
|
32
|
+
var chunk5FYU7ZIU_cjs = require('../chunk-5FYU7ZIU.cjs');
|
|
33
|
+
var chunk2WLXQGWC_cjs = require('../chunk-2WLXQGWC.cjs');
|
|
34
|
+
var chunkYMZAHBFL_cjs = require('../chunk-YMZAHBFL.cjs');
|
|
33
35
|
var chunkTMX7YFVM_cjs = require('../chunk-TMX7YFVM.cjs');
|
|
34
36
|
require('../chunk-QXNEXPUL.cjs');
|
|
35
37
|
var chunkC2ECYOPP_cjs = require('../chunk-C2ECYOPP.cjs');
|
|
36
38
|
var chunkGOWXP5KT_cjs = require('../chunk-GOWXP5KT.cjs');
|
|
37
|
-
var chunkGILSAE7F_cjs = require('../chunk-GILSAE7F.cjs');
|
|
38
39
|
var chunkQZTNTP75_cjs = require('../chunk-QZTNTP75.cjs');
|
|
39
40
|
var chunkGO3LFURQ_cjs = require('../chunk-GO3LFURQ.cjs');
|
|
40
41
|
var chunkNSD37OF5_cjs = require('../chunk-NSD37OF5.cjs');
|
|
41
42
|
var chunkKUQOHPKP_cjs = require('../chunk-KUQOHPKP.cjs');
|
|
42
|
-
var chunkVPPX5XUF_cjs = require('../chunk-VPPX5XUF.cjs');
|
|
43
43
|
require('../chunk-PCB2BPN3.cjs');
|
|
44
44
|
require('../chunk-NWNVWO6L.cjs');
|
|
45
45
|
var chunkXDMIVPJP_cjs = require('../chunk-XDMIVPJP.cjs');
|
|
46
46
|
require('../chunk-7G2LJMUG.cjs');
|
|
47
|
+
var chunkJIOHDVWH_cjs = require('../chunk-JIOHDVWH.cjs');
|
|
47
48
|
var chunkTM2D4XT4_cjs = require('../chunk-TM2D4XT4.cjs');
|
|
48
49
|
var chunk5Y6V7F6W_cjs = require('../chunk-5Y6V7F6W.cjs');
|
|
49
50
|
var chunkRYIIV5YD_cjs = require('../chunk-RYIIV5YD.cjs');
|
|
50
|
-
var chunk773C3BG7_cjs = require('../chunk-773C3BG7.cjs');
|
|
51
51
|
require('../chunk-VLCY46K6.cjs');
|
|
52
52
|
require('../chunk-D54JXTPG.cjs');
|
|
53
|
-
var
|
|
53
|
+
var chunkGILSAE7F_cjs = require('../chunk-GILSAE7F.cjs');
|
|
54
|
+
var chunkVPPX5XUF_cjs = require('../chunk-VPPX5XUF.cjs');
|
|
54
55
|
var chunkRC25WMVB_cjs = require('../chunk-RC25WMVB.cjs');
|
|
55
|
-
var
|
|
56
|
+
var chunkI3ITXJRO_cjs = require('../chunk-I3ITXJRO.cjs');
|
|
56
57
|
var chunkRFIBUWLF_cjs = require('../chunk-RFIBUWLF.cjs');
|
|
57
|
-
var
|
|
58
|
-
var
|
|
58
|
+
var chunkTX3JM4EI_cjs = require('../chunk-TX3JM4EI.cjs');
|
|
59
|
+
var chunkRZUZBHIH_cjs = require('../chunk-RZUZBHIH.cjs');
|
|
59
60
|
var chunkAQPZ4QMV_cjs = require('../chunk-AQPZ4QMV.cjs');
|
|
61
|
+
var chunkVZOOGA47_cjs = require('../chunk-VZOOGA47.cjs');
|
|
60
62
|
require('../chunk-SIB6C7P7.cjs');
|
|
61
63
|
require('../chunk-DVUZTGVL.cjs');
|
|
62
|
-
var chunkV4ISCZJ7_cjs = require('../chunk-V4ISCZJ7.cjs');
|
|
63
64
|
require('../chunk-AHDJXIUB.cjs');
|
|
64
|
-
var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
|
|
65
65
|
require('../chunk-4U7VMABU.cjs');
|
|
66
|
+
var chunkV4ISCZJ7_cjs = require('../chunk-V4ISCZJ7.cjs');
|
|
67
|
+
var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
|
|
66
68
|
var chunkLKK52DEY_cjs = require('../chunk-LKK52DEY.cjs');
|
|
67
69
|
var chunkQVBZESYQ_cjs = require('../chunk-QVBZESYQ.cjs');
|
|
68
70
|
var chunkBYJUI4AT_cjs = require('../chunk-BYJUI4AT.cjs');
|
|
69
71
|
var chunkCG757WKY_cjs = require('../chunk-CG757WKY.cjs');
|
|
70
|
-
var chunkW3PSIIMN_cjs = require('../chunk-W3PSIIMN.cjs');
|
|
71
|
-
var chunkQUMUAJ2P_cjs = require('../chunk-QUMUAJ2P.cjs');
|
|
72
|
-
var chunkVZOOGA47_cjs = require('../chunk-VZOOGA47.cjs');
|
|
73
72
|
var chunkYLDGMWGU_cjs = require('../chunk-YLDGMWGU.cjs');
|
|
74
73
|
var chunkQPZDJVNY_cjs = require('../chunk-QPZDJVNY.cjs');
|
|
75
74
|
var chunkEY2MBIVW_cjs = require('../chunk-EY2MBIVW.cjs');
|
|
76
75
|
var chunkN7RRXCEZ_cjs = require('../chunk-N7RRXCEZ.cjs');
|
|
77
76
|
var chunkMOIZ2R5X_cjs = require('../chunk-MOIZ2R5X.cjs');
|
|
78
77
|
var chunkLUO46ELJ_cjs = require('../chunk-LUO46ELJ.cjs');
|
|
79
|
-
var chunkMEMWZ72Y_cjs = require('../chunk-MEMWZ72Y.cjs');
|
|
80
78
|
var chunkZW6FPIFC_cjs = require('../chunk-ZW6FPIFC.cjs');
|
|
79
|
+
var chunkMEMWZ72Y_cjs = require('../chunk-MEMWZ72Y.cjs');
|
|
81
80
|
var chunkIJKS3T4J_cjs = require('../chunk-IJKS3T4J.cjs');
|
|
82
|
-
var
|
|
81
|
+
var chunkCPQRQEJL_cjs = require('../chunk-CPQRQEJL.cjs');
|
|
83
82
|
var chunkZ2XZ2D4N_cjs = require('../chunk-Z2XZ2D4N.cjs');
|
|
84
83
|
var chunkB6MVQCXW_cjs = require('../chunk-B6MVQCXW.cjs');
|
|
85
84
|
var chunkCVZN2KTP_cjs = require('../chunk-CVZN2KTP.cjs');
|
|
86
85
|
var chunkSMQIYEOL_cjs = require('../chunk-SMQIYEOL.cjs');
|
|
86
|
+
var chunkCQ2YSHIF_cjs = require('../chunk-CQ2YSHIF.cjs');
|
|
87
87
|
require('../chunk-32HW2Q33.cjs');
|
|
88
|
-
var chunkUFEXJIEY_cjs = require('../chunk-UFEXJIEY.cjs');
|
|
89
88
|
var chunkFX3K6LNZ_cjs = require('../chunk-FX3K6LNZ.cjs');
|
|
90
|
-
var chunkCQ2YSHIF_cjs = require('../chunk-CQ2YSHIF.cjs');
|
|
91
89
|
var chunkNXHETIOB_cjs = require('../chunk-NXHETIOB.cjs');
|
|
92
90
|
var chunk725OETK3_cjs = require('../chunk-725OETK3.cjs');
|
|
93
91
|
require('../chunk-PPCATBOY.cjs');
|
|
92
|
+
var chunk773C3BG7_cjs = require('../chunk-773C3BG7.cjs');
|
|
93
|
+
var chunkUFEXJIEY_cjs = require('../chunk-UFEXJIEY.cjs');
|
|
94
94
|
var chunk6K3VOHHL_cjs = require('../chunk-6K3VOHHL.cjs');
|
|
95
95
|
var chunkGMM3RBIB_cjs = require('../chunk-GMM3RBIB.cjs');
|
|
96
96
|
var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
|
|
@@ -395,7 +395,7 @@ function ConnectedWorkspaceActivity({
|
|
|
395
395
|
[feed.data]
|
|
396
396
|
);
|
|
397
397
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
398
|
-
|
|
398
|
+
chunkYMZAHBFL_cjs.WorkspaceActivityList,
|
|
399
399
|
{
|
|
400
400
|
...listProps,
|
|
401
401
|
items,
|
|
@@ -1440,7 +1440,7 @@ function ConnectedWorkspaceNotificationMenu({
|
|
|
1440
1440
|
}, [error, notify18]);
|
|
1441
1441
|
if (!workspaceId) return null;
|
|
1442
1442
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1443
|
-
|
|
1443
|
+
chunkYMZAHBFL_cjs.WorkspaceNotificationMenu,
|
|
1444
1444
|
{
|
|
1445
1445
|
...menuProps,
|
|
1446
1446
|
level,
|
|
@@ -1459,7 +1459,7 @@ function ConnectedThreadFollow({
|
|
|
1459
1459
|
enabled: live
|
|
1460
1460
|
});
|
|
1461
1461
|
if (!conversationId) return null;
|
|
1462
|
-
const Control = as === "menu-item" ?
|
|
1462
|
+
const Control = as === "menu-item" ? chunkYMZAHBFL_cjs.ThreadFollowMenuItem : chunkYMZAHBFL_cjs.ThreadFollowButton;
|
|
1463
1463
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1464
1464
|
Control,
|
|
1465
1465
|
{
|
|
@@ -1532,7 +1532,7 @@ function ConnectedSkillUpload({ onDone, labels, className }) {
|
|
|
1532
1532
|
onChange: (e) => {
|
|
1533
1533
|
const file = e.target.files?.[0];
|
|
1534
1534
|
e.target.value = "";
|
|
1535
|
-
if (file) void add(() =>
|
|
1535
|
+
if (file) void add(() => chunkI3ITXJRO_cjs.importSkillFile(file));
|
|
1536
1536
|
}
|
|
1537
1537
|
}
|
|
1538
1538
|
),
|
|
@@ -1557,7 +1557,7 @@ function ConnectedSkillUpload({ onDone, labels, className }) {
|
|
|
1557
1557
|
className: "space-y-2",
|
|
1558
1558
|
onSubmit: (e) => {
|
|
1559
1559
|
e.preventDefault();
|
|
1560
|
-
if (url.trim()) void add(() =>
|
|
1560
|
+
if (url.trim()) void add(() => chunkI3ITXJRO_cjs.importSkillFromUrl(url));
|
|
1561
1561
|
},
|
|
1562
1562
|
children: [
|
|
1563
1563
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "skills-add-url", children: l.fromLink }),
|
|
@@ -1620,9 +1620,9 @@ function ConnectedSkillsLibrary({
|
|
|
1620
1620
|
const [type, setType] = React9.useState("all");
|
|
1621
1621
|
const [view, setView] = React9.useState("gallery");
|
|
1622
1622
|
const [isBusy, setIsBusy] = React9.useState(false);
|
|
1623
|
-
const all = React9.useMemo(() =>
|
|
1623
|
+
const all = React9.useMemo(() => chunkI3ITXJRO_cjs.buildLibrarySkills(builtins, listings ?? []), [builtins, listings]);
|
|
1624
1624
|
const shown = React9.useMemo(
|
|
1625
|
-
() =>
|
|
1625
|
+
() => chunkI3ITXJRO_cjs.filterLibrarySkills(all, { query, source, type }),
|
|
1626
1626
|
[all, query, source, type]
|
|
1627
1627
|
);
|
|
1628
1628
|
const current = all.find((s) => s.slug === selected) ?? null;
|
|
@@ -1633,21 +1633,21 @@ function ConnectedSkillsLibrary({
|
|
|
1633
1633
|
const count2 = (s) => all.filter((x) => x.source === s).length;
|
|
1634
1634
|
const sourceOptions = [
|
|
1635
1635
|
{ id: "all", label: "All", count: all.length },
|
|
1636
|
-
{ id: "builtin", label:
|
|
1637
|
-
{ id: "mine", label:
|
|
1638
|
-
{ id: "shared", label:
|
|
1636
|
+
{ id: "builtin", label: chunkI3ITXJRO_cjs.SKILL_SOURCE_LABELS.builtin, count: count2("builtin") },
|
|
1637
|
+
{ id: "mine", label: chunkI3ITXJRO_cjs.SKILL_SOURCE_LABELS.mine, count: count2("mine") },
|
|
1638
|
+
{ id: "shared", label: chunkI3ITXJRO_cjs.SKILL_SOURCE_LABELS.shared, count: count2("shared") }
|
|
1639
1639
|
];
|
|
1640
1640
|
const types = [...new Set(all.map((s) => s.type))];
|
|
1641
1641
|
const typeOptions = [
|
|
1642
1642
|
{ id: "all", label: "Any kind" },
|
|
1643
|
-
...types.map((t) => ({ id: t, label:
|
|
1643
|
+
...types.map((t) => ({ id: t, label: chunkI3ITXJRO_cjs.SKILL_TYPE_LABELS[t] ?? t }))
|
|
1644
1644
|
];
|
|
1645
1645
|
const pick = (slug) => {
|
|
1646
1646
|
setSelected(slug);
|
|
1647
1647
|
setMode("detail");
|
|
1648
1648
|
};
|
|
1649
1649
|
const markdownOf = async (skill) => {
|
|
1650
|
-
if (!skill.docExtId) return
|
|
1650
|
+
if (!skill.docExtId) return chunkI3ITXJRO_cjs.workflowToSkillMarkdown(skill.workflow);
|
|
1651
1651
|
const response = await arbi.documents.download(skill.docExtId);
|
|
1652
1652
|
if (!response.ok) throw new Error(`Could not read the skill (${response.status})`);
|
|
1653
1653
|
return response.text();
|
|
@@ -1711,7 +1711,7 @@ function ConnectedSkillsLibrary({
|
|
|
1711
1711
|
try {
|
|
1712
1712
|
documentTools.downloadBlob(
|
|
1713
1713
|
new Blob([await markdownOf(skill)], { type: "text/markdown" }),
|
|
1714
|
-
|
|
1714
|
+
chunkI3ITXJRO_cjs.SKILL_MAIN_FILENAME
|
|
1715
1715
|
);
|
|
1716
1716
|
} catch (error) {
|
|
1717
1717
|
notify18(errorText(error, "Could not export the skill"), "error");
|
|
@@ -1752,10 +1752,10 @@ function ConnectedSkillsLibrary({
|
|
|
1752
1752
|
}
|
|
1753
1753
|
)
|
|
1754
1754
|
] }),
|
|
1755
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1755
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.SkillViewToggle, { value: view, onChange: setView })
|
|
1756
1756
|
] }),
|
|
1757
1757
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1758
|
-
|
|
1758
|
+
chunkI3ITXJRO_cjs.SkillFilterChips,
|
|
1759
1759
|
{
|
|
1760
1760
|
label: "Show",
|
|
1761
1761
|
value: source,
|
|
@@ -1764,7 +1764,7 @@ function ConnectedSkillsLibrary({
|
|
|
1764
1764
|
}
|
|
1765
1765
|
),
|
|
1766
1766
|
types.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1767
|
-
|
|
1767
|
+
chunkI3ITXJRO_cjs.SkillFilterChips,
|
|
1768
1768
|
{
|
|
1769
1769
|
label: "Kind",
|
|
1770
1770
|
value: type,
|
|
@@ -1811,12 +1811,12 @@ function ConnectedSkillsLibrary({
|
|
|
1811
1811
|
view === "gallery" ? "grid grid-cols-[repeat(auto-fill,minmax(9.5rem,1fr))]" : "flex flex-col"
|
|
1812
1812
|
),
|
|
1813
1813
|
children: shown.map((skill) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1814
|
-
|
|
1814
|
+
chunkI3ITXJRO_cjs.SkillTile,
|
|
1815
1815
|
{
|
|
1816
1816
|
name: skill.title,
|
|
1817
1817
|
testId: `skill-tile-${skill.slug}`,
|
|
1818
1818
|
description: skill.description,
|
|
1819
|
-
sourceLabel: skill.isShared ? `${
|
|
1819
|
+
sourceLabel: skill.isShared ? `${chunkI3ITXJRO_cjs.SKILL_SOURCE_LABELS.mine}, shared` : chunkI3ITXJRO_cjs.SKILL_SOURCE_LABELS[skill.source],
|
|
1820
1820
|
type: skill.type,
|
|
1821
1821
|
icon,
|
|
1822
1822
|
layout: view,
|
|
@@ -1851,7 +1851,7 @@ function ConnectedSkillsLibrary({
|
|
|
1851
1851
|
}
|
|
1852
1852
|
),
|
|
1853
1853
|
mode === "new" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1854
|
-
|
|
1854
|
+
chunkI3ITXJRO_cjs.SkillGenerateForm,
|
|
1855
1855
|
{
|
|
1856
1856
|
icon,
|
|
1857
1857
|
onGenerate: (desc) => {
|
|
@@ -1878,11 +1878,11 @@ function ConnectedSkillsLibrary({
|
|
|
1878
1878
|
),
|
|
1879
1879
|
mode === "add" && /* @__PURE__ */ jsxRuntime.jsx(ConnectedSkillUpload, { onDone: done }),
|
|
1880
1880
|
mode === "detail" && current && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1881
|
-
|
|
1881
|
+
chunkI3ITXJRO_cjs.SkillLibraryDetail,
|
|
1882
1882
|
{
|
|
1883
1883
|
skill: current,
|
|
1884
1884
|
icon,
|
|
1885
|
-
instructions: current.docExtId ? currentText ?
|
|
1885
|
+
instructions: current.docExtId ? currentText ? chunkI3ITXJRO_cjs.parseSkillFrontmatter(currentText, chunkI3ITXJRO_cjs.SKILL_MAIN_FILENAME).content : "" : current.workflow.run.kind === "prompt" ? current.workflow.run.promptTemplate : "",
|
|
1886
1886
|
isLoading: !!current.docExtId && textLoading,
|
|
1887
1887
|
actions: {
|
|
1888
1888
|
onRun: () => onRun(current.slug),
|
|
@@ -1917,7 +1917,7 @@ function SkillEditor({
|
|
|
1917
1917
|
const [seeded, setSeeded] = React9.useState(!isEditing);
|
|
1918
1918
|
const [nameError, setNameError] = React9.useState(null);
|
|
1919
1919
|
if (isEditing && !seeded && text2 !== void 0) {
|
|
1920
|
-
const parsed =
|
|
1920
|
+
const parsed = chunkI3ITXJRO_cjs.parseSkillFrontmatter(text2, chunkI3ITXJRO_cjs.SKILL_MAIN_FILENAME);
|
|
1921
1921
|
setDescription(parsed.description ?? "");
|
|
1922
1922
|
setBody(parsed.content ?? "");
|
|
1923
1923
|
setSeeded(true);
|
|
@@ -1931,15 +1931,15 @@ function SkillEditor({
|
|
|
1931
1931
|
notify18("Add a short description.", "error");
|
|
1932
1932
|
return;
|
|
1933
1933
|
}
|
|
1934
|
-
const slug =
|
|
1934
|
+
const slug = chunkI3ITXJRO_cjs.skillSlug(name);
|
|
1935
1935
|
try {
|
|
1936
|
-
await onSave(slug,
|
|
1936
|
+
await onSave(slug, chunkI3ITXJRO_cjs.serializeSkill({ name: slug, description, body }), isEditing);
|
|
1937
1937
|
} catch (err) {
|
|
1938
1938
|
notify18(errorText(err, "Could not save the skill"), "error");
|
|
1939
1939
|
}
|
|
1940
1940
|
};
|
|
1941
1941
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1942
|
-
|
|
1942
|
+
chunkI3ITXJRO_cjs.SkillEditForm,
|
|
1943
1943
|
{
|
|
1944
1944
|
name,
|
|
1945
1945
|
onNameChange: setName,
|
|
@@ -1978,7 +1978,7 @@ var DEFAULT_CONNECTED_SKILLS_BROWSER_LABELS = {
|
|
|
1978
1978
|
function ConnectedSkillsBrowser({
|
|
1979
1979
|
props,
|
|
1980
1980
|
onClose: close,
|
|
1981
|
-
builtins =
|
|
1981
|
+
builtins = chunkI3ITXJRO_cjs.BUILTIN_SKILLS,
|
|
1982
1982
|
renderEditor,
|
|
1983
1983
|
labels
|
|
1984
1984
|
}) {
|
|
@@ -2031,7 +2031,7 @@ function ConnectedSkillsBrowser({
|
|
|
2031
2031
|
}
|
|
2032
2032
|
) }),
|
|
2033
2033
|
runSkillId && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2034
|
-
|
|
2034
|
+
chunkL6KTANY2_cjs.ConnectedTaskComposer,
|
|
2035
2035
|
{
|
|
2036
2036
|
kind: "workflow",
|
|
2037
2037
|
open: true,
|
|
@@ -2055,9 +2055,9 @@ function ConnectedAgentCreator({
|
|
|
2055
2055
|
agent,
|
|
2056
2056
|
initialName,
|
|
2057
2057
|
onSaved,
|
|
2058
|
-
capabilities =
|
|
2059
|
-
templates =
|
|
2060
|
-
types =
|
|
2058
|
+
capabilities = chunkI3ITXJRO_cjs.DEFAULT_AGENT_CAPABILITIES,
|
|
2059
|
+
templates = chunkI3ITXJRO_cjs.DEFAULT_AGENT_TEMPLATES,
|
|
2060
|
+
types = chunkI3ITXJRO_cjs.DEFAULT_AGENT_TYPES,
|
|
2061
2061
|
canRevokeWorkspaces = false,
|
|
2062
2062
|
labels
|
|
2063
2063
|
}) {
|
|
@@ -2099,7 +2099,7 @@ function ConnectedAgentCreator({
|
|
|
2099
2099
|
const initialValues = React9.useMemo(
|
|
2100
2100
|
() => ({
|
|
2101
2101
|
name: agent?.given_name ?? initialName ?? "",
|
|
2102
|
-
persona: isEdit ?
|
|
2102
|
+
persona: isEdit ? chunkI3ITXJRO_cjs.stripPersonaPreamble(String(agents.PERSONA ?? "")) : "",
|
|
2103
2103
|
modelName: String(agents.AGENT_MODEL_NAME ?? ""),
|
|
2104
2104
|
capabilities: Object.fromEntries(capabilities.map(({ key }) => [key, Boolean(agents[key])])),
|
|
2105
2105
|
type: "builtin",
|
|
@@ -2118,7 +2118,7 @@ function ConnectedAgentCreator({
|
|
|
2118
2118
|
try {
|
|
2119
2119
|
let agentExtId = agent?.external_id ?? early?.id ?? "";
|
|
2120
2120
|
if (!agentExtId) {
|
|
2121
|
-
if (!
|
|
2121
|
+
if (!chunkI3ITXJRO_cjs.isValidAgentName(values.name)) {
|
|
2122
2122
|
notify18("Give the agent a name first.", "error");
|
|
2123
2123
|
return;
|
|
2124
2124
|
}
|
|
@@ -2154,7 +2154,7 @@ function ConnectedAgentCreator({
|
|
|
2154
2154
|
title: `agent-${name}`,
|
|
2155
2155
|
sections: {
|
|
2156
2156
|
Agents: {
|
|
2157
|
-
PERSONA:
|
|
2157
|
+
PERSONA: chunkI3ITXJRO_cjs.composePersona(name, values.persona),
|
|
2158
2158
|
...values.modelName ? { AGENT_MODEL_NAME: values.modelName } : {},
|
|
2159
2159
|
...Object.fromEntries(capabilities.map(({ key }) => [key, !!values.capabilities[key]])),
|
|
2160
2160
|
ENABLED_SKILLS: values.capabilities.SKILLS_ENABLED && skills.length ? skills : null,
|
|
@@ -2177,7 +2177,7 @@ function ConnectedAgentCreator({
|
|
|
2177
2177
|
};
|
|
2178
2178
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2179
2179
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2180
|
-
|
|
2180
|
+
chunkI3ITXJRO_cjs.AgentCreator,
|
|
2181
2181
|
{
|
|
2182
2182
|
open: ready,
|
|
2183
2183
|
onOpenChange,
|
|
@@ -2193,11 +2193,11 @@ function ConnectedAgentCreator({
|
|
|
2193
2193
|
) : void 0,
|
|
2194
2194
|
revokingWorkspaceId: revokeAccess.isPending ? revokeAccess.variables?.workspaceId : void 0,
|
|
2195
2195
|
avatar: (values) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2196
|
-
|
|
2196
|
+
chunkI3ITXJRO_cjs.AgentAvatarField,
|
|
2197
2197
|
{
|
|
2198
2198
|
picture,
|
|
2199
2199
|
isBusy: avatarBusy,
|
|
2200
|
-
canGenerate: isEdit ||
|
|
2200
|
+
canGenerate: isEdit || chunkI3ITXJRO_cjs.isValidAgentName(values.name),
|
|
2201
2201
|
onGenerate: () => handleGenerateAvatar(values)
|
|
2202
2202
|
}
|
|
2203
2203
|
),
|
|
@@ -2249,7 +2249,7 @@ function ConnectedAgentCreator({
|
|
|
2249
2249
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { children: "Connect your agent" }),
|
|
2250
2250
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogDescription, { children: "This key is shown once. Run the script on the machine that will host the agent." })
|
|
2251
2251
|
] }),
|
|
2252
|
-
connect && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2252
|
+
connect && /* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.AgentConnectInstructions, { email: connect.email, signingKey: connect.signingKey })
|
|
2253
2253
|
]
|
|
2254
2254
|
}
|
|
2255
2255
|
) })
|
|
@@ -2376,7 +2376,7 @@ function AgentChat({ agentId, workspaceId, onOpenFull }) {
|
|
|
2376
2376
|
/* @__PURE__ */ jsxRuntime.jsx("ol", { className: "mt-2 space-y-1", children: activity.map((name, i) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx("pre", { className: "whitespace-pre-wrap break-all", children: name }) }, i)) })
|
|
2377
2377
|
] }),
|
|
2378
2378
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2379
|
-
|
|
2379
|
+
chunkCPQRQEJL_cjs.ChatPage,
|
|
2380
2380
|
{
|
|
2381
2381
|
chat: { ...chat, assistantMode: void 0, setAssistantMode: void 0 },
|
|
2382
2382
|
surface: "dock",
|
|
@@ -2396,7 +2396,7 @@ function AgentChat({ agentId, workspaceId, onOpenFull }) {
|
|
|
2396
2396
|
placeholder: "Ask your agent\u2026",
|
|
2397
2397
|
conversations: "Agent chats"
|
|
2398
2398
|
},
|
|
2399
|
-
renderContent: (message) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2399
|
+
renderContent: (message) => /* @__PURE__ */ jsxRuntime.jsx(chunkKD6ECCAN_cjs.DocumentWorkspaceContext.Provider, { value: workspaceId, children: /* @__PURE__ */ jsxRuntime.jsx(chunkKD6ECCAN_cjs.ConnectedMarkdown, { isStreaming: message.status === "streaming", children: message.content }) })
|
|
2400
2400
|
}
|
|
2401
2401
|
)
|
|
2402
2402
|
] });
|
|
@@ -2698,7 +2698,7 @@ function useMemoryCount(enabled) {
|
|
|
2698
2698
|
}
|
|
2699
2699
|
function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
|
|
2700
2700
|
const { notify: notify18, openConversation, openDocument } = chunk6K3VOHHL_cjs.useBlocksEnvironment();
|
|
2701
|
-
const people =
|
|
2701
|
+
const people = chunkL6KTANY2_cjs.useTaskPeople();
|
|
2702
2702
|
const canEditShared = react.useCanEditShared();
|
|
2703
2703
|
const isWorkspaceOwner = react.useIsWorkspaceOwner();
|
|
2704
2704
|
const { data: workflows = [] } = react.useWorkflows({ live: true });
|
|
@@ -2724,7 +2724,7 @@ function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
|
|
|
2724
2724
|
}, [documents]);
|
|
2725
2725
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2726
2726
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2727
|
-
|
|
2727
|
+
chunkI3ITXJRO_cjs.TaskTable,
|
|
2728
2728
|
{
|
|
2729
2729
|
tasks,
|
|
2730
2730
|
isLoading,
|
|
@@ -2751,7 +2751,7 @@ function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
|
|
|
2751
2751
|
}
|
|
2752
2752
|
),
|
|
2753
2753
|
activityFor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2754
|
-
|
|
2754
|
+
chunkL6KTANY2_cjs.ConnectedTaskActivityDialog,
|
|
2755
2755
|
{
|
|
2756
2756
|
conversationId: activityFor.external_id,
|
|
2757
2757
|
taskName: activityFor.title || l.untitledTask,
|
|
@@ -2773,7 +2773,7 @@ function AgentsLauncher({
|
|
|
2773
2773
|
const { notify: notify18, openConversation } = chunk6K3VOHHL_cjs.useBlocksEnvironment();
|
|
2774
2774
|
const { workspaceId, ensureWorkspaceOpen } = chunkN7RRXCEZ_cjs.useConnectedWorkspace();
|
|
2775
2775
|
const { data: skills = [] } = react.useSkills({ enabled: includeSkills && !!workspaceId, live: true });
|
|
2776
|
-
const workflowTasks =
|
|
2776
|
+
const workflowTasks = chunkL6KTANY2_cjs.useWorkflowTasks();
|
|
2777
2777
|
const launchable = React9.useMemo(
|
|
2778
2778
|
() => [
|
|
2779
2779
|
...workflows,
|
|
@@ -2796,7 +2796,7 @@ function AgentsLauncher({
|
|
|
2796
2796
|
[workflows, includeSkills, skills, l.skillFiles]
|
|
2797
2797
|
);
|
|
2798
2798
|
const launch = async ({ workflow, inputs, agentId }) => {
|
|
2799
|
-
const values =
|
|
2799
|
+
const values = chunkI3ITXJRO_cjs.defaultTaskComposerValues(launchable, {
|
|
2800
2800
|
workflowId: workflow.id,
|
|
2801
2801
|
assignee: "agent",
|
|
2802
2802
|
inputs,
|
|
@@ -2817,7 +2817,7 @@ function AgentsLauncher({
|
|
|
2817
2817
|
}
|
|
2818
2818
|
};
|
|
2819
2819
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2820
|
-
|
|
2820
|
+
chunkQ6N56ZBF_cjs.ConnectedWorkflowLauncher,
|
|
2821
2821
|
{
|
|
2822
2822
|
workflows: launchable,
|
|
2823
2823
|
onLaunch: launch,
|
|
@@ -2906,7 +2906,7 @@ function ConnectedAgentsPage({
|
|
|
2906
2906
|
cardTestIds
|
|
2907
2907
|
} = agentOptions;
|
|
2908
2908
|
const { confirm, openConversation } = chunk6K3VOHHL_cjs.useBlocksEnvironment();
|
|
2909
|
-
const openWorkflow =
|
|
2909
|
+
const openWorkflow = chunkQ6N56ZBF_cjs.useOpenWorkflow();
|
|
2910
2910
|
const host = chunkLUO46ELJ_cjs.useHost();
|
|
2911
2911
|
const { workspaceId } = chunkN7RRXCEZ_cjs.useConnectedWorkspace();
|
|
2912
2912
|
const { tasks, isLoading: tasksLoading } = react.useWorkItems();
|
|
@@ -2920,7 +2920,7 @@ function ConnectedAgentsPage({
|
|
|
2920
2920
|
labels: agentOptions.managementLabels
|
|
2921
2921
|
});
|
|
2922
2922
|
const { agents, isLoading: agentsLoading } = management;
|
|
2923
|
-
const tasksByAgent = React9.useMemo(() =>
|
|
2923
|
+
const tasksByAgent = React9.useMemo(() => chunkI3ITXJRO_cjs.groupAgentTasks(tasks), [tasks]);
|
|
2924
2924
|
const behaviour = useAgentBehaviour(
|
|
2925
2925
|
l.defaultBehaviour,
|
|
2926
2926
|
details.includes("behaviour") || sections.includes("stats")
|
|
@@ -2945,7 +2945,7 @@ function ConnectedAgentsPage({
|
|
|
2945
2945
|
renderDetails?.(agent)
|
|
2946
2946
|
] });
|
|
2947
2947
|
const gallery = /* @__PURE__ */ jsxRuntime.jsx(
|
|
2948
|
-
|
|
2948
|
+
chunkI3ITXJRO_cjs.AgentGallery,
|
|
2949
2949
|
{
|
|
2950
2950
|
count: agents.length,
|
|
2951
2951
|
onCreate: management.create,
|
|
@@ -2955,10 +2955,10 @@ function ConnectedAgentsPage({
|
|
|
2955
2955
|
const agentTasks = tasksByAgent.get(agent.external_id) ?? [];
|
|
2956
2956
|
const running = agentTasks.filter((t) => t.in_progress);
|
|
2957
2957
|
const watchConversationId = running[0]?.external_id ?? null;
|
|
2958
|
-
const progress = agentTasks[0] ?
|
|
2958
|
+
const progress = agentTasks[0] ? chunkI3ITXJRO_cjs.goalProgress(agentTasks[0]) : null;
|
|
2959
2959
|
const name = displayName(agent);
|
|
2960
2960
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2961
|
-
|
|
2961
|
+
chunkI3ITXJRO_cjs.AgentCard,
|
|
2962
2962
|
{
|
|
2963
2963
|
name,
|
|
2964
2964
|
avatar: avatar === "icon" ? /* @__PURE__ */ jsxRuntime.jsx(AgentIconAvatar, {}) : /* @__PURE__ */ jsxRuntime.jsx(AgentInitialsAvatar, { agent }),
|
|
@@ -3057,7 +3057,7 @@ function ConnectedAgentsPage({
|
|
|
3057
3057
|
) });
|
|
3058
3058
|
case "scheduled":
|
|
3059
3059
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-[min(32rem,70dvh)] min-h-64 flex-col", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3060
|
-
|
|
3060
|
+
chunkQ6N56ZBF_cjs.ConnectedWorkflowsTable,
|
|
3061
3061
|
{
|
|
3062
3062
|
filter: "scheduled",
|
|
3063
3063
|
onEdit: (w) => openWorkflow?.(w.external_id),
|
|
@@ -3085,7 +3085,7 @@ function ConnectedAgentsPage({
|
|
|
3085
3085
|
const dialogs = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3086
3086
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedAgentCreator, { ...management.editorProps, ...agentOptions.creator }),
|
|
3087
3087
|
taskDialog && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3088
|
-
|
|
3088
|
+
chunkL6KTANY2_cjs.ConnectedTaskComposer,
|
|
3089
3089
|
{
|
|
3090
3090
|
open: true,
|
|
3091
3091
|
onOpenChange: (open) => !open && setTaskDialog(null),
|
|
@@ -3307,7 +3307,7 @@ function useWorkflowThread(workflow, options2 = {}) {
|
|
|
3307
3307
|
);
|
|
3308
3308
|
const conversation = conversations.data?.find((c) => c.external_id === threadId);
|
|
3309
3309
|
const steps = React9.useMemo(
|
|
3310
|
-
() => chunkSMQIYEOL_cjs.workflowSteps(workflow).length > 0 ? chunkSMQIYEOL_cjs.workflowSteps(workflow) :
|
|
3310
|
+
() => chunkSMQIYEOL_cjs.workflowSteps(workflow).length > 0 ? chunkSMQIYEOL_cjs.workflowSteps(workflow) : chunkI3ITXJRO_cjs.fromPlanSteps(conversation?.plan?.steps ?? []),
|
|
3311
3311
|
[workflow, conversation?.plan?.steps]
|
|
3312
3312
|
);
|
|
3313
3313
|
const activity = react.useConversationActivity(threadId, { live: !!threadId });
|
|
@@ -3367,7 +3367,7 @@ function useWorkflowThread(workflow, options2 = {}) {
|
|
|
3367
3367
|
criteria: [],
|
|
3368
3368
|
max_passes: 3,
|
|
3369
3369
|
documents: [],
|
|
3370
|
-
steps:
|
|
3370
|
+
steps: chunkI3ITXJRO_cjs.toPlanSteps(workflow, {
|
|
3371
3371
|
inputs: values,
|
|
3372
3372
|
resolveWorkflow: options2.resolveWorkflow,
|
|
3373
3373
|
compose: options2.compose
|
|
@@ -3454,7 +3454,7 @@ function useWorkflowThread(workflow, options2 = {}) {
|
|
|
3454
3454
|
const anyRunning = Object.values(states).some((s) => s.status === "running");
|
|
3455
3455
|
const needsStart = !threadId || idle && !anyRunning;
|
|
3456
3456
|
const runError = idle ? conversation?.last_error ?? null : null;
|
|
3457
|
-
const view =
|
|
3457
|
+
const view = chunkI3ITXJRO_cjs.useWorkflowView({
|
|
3458
3458
|
steps,
|
|
3459
3459
|
states,
|
|
3460
3460
|
inputs,
|
|
@@ -3495,7 +3495,7 @@ function RunThread({
|
|
|
3495
3495
|
}) {
|
|
3496
3496
|
const chat = react.useConversation({ workspaceId });
|
|
3497
3497
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3498
|
-
|
|
3498
|
+
chunkCPQRQEJL_cjs.ChatPage,
|
|
3499
3499
|
{
|
|
3500
3500
|
chat: { ...chat, threads: chat.threads.filter((t) => t.id === conversationId) },
|
|
3501
3501
|
singleThread: true,
|
|
@@ -3620,7 +3620,7 @@ function WorkflowWordDialog({
|
|
|
3620
3620
|
title: title ?? labels.wordTitle,
|
|
3621
3621
|
size: "xl",
|
|
3622
3622
|
testId: "workflow-word-dialog",
|
|
3623
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(chunkULWRNGGE_cjs.ModalScaffold.Body, { className: "h-[70dvh] p-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3623
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkULWRNGGE_cjs.ModalScaffold.Body, { className: "h-[70dvh] p-0", children: /* @__PURE__ */ jsxRuntime.jsx(chunkI6CGE7RZ_cjs.ConnectedNativeDocxEditor, { documentId: id, title: title ?? labels.wordTitle }) })
|
|
3624
3624
|
}
|
|
3625
3625
|
);
|
|
3626
3626
|
}
|
|
@@ -3942,7 +3942,7 @@ function ConnectedWorkflowRunner({
|
|
|
3942
3942
|
);
|
|
3943
3943
|
};
|
|
3944
3944
|
const runner = (compact) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3945
|
-
|
|
3945
|
+
chunkI3ITXJRO_cjs.WorkflowRunner,
|
|
3946
3946
|
{
|
|
3947
3947
|
people,
|
|
3948
3948
|
...runnerProps,
|
|
@@ -3988,7 +3988,7 @@ function ConnectedWorkflowRunner({
|
|
|
3988
3988
|
) }),
|
|
3989
3989
|
inThread && conversationId ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3990
3990
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3991
|
-
|
|
3991
|
+
chunkI3ITXJRO_cjs.WorkflowStepBar,
|
|
3992
3992
|
{
|
|
3993
3993
|
run: view,
|
|
3994
3994
|
levels: chunkSMQIYEOL_cjs.stepLevels(view.steps),
|
|
@@ -4279,7 +4279,7 @@ function ConnectedTagTable({
|
|
|
4279
4279
|
const fail2 = (fallback) => (e) => notify18(browser.refusalReason(e, fallback), "error");
|
|
4280
4280
|
const snapshot2 = (data) => {
|
|
4281
4281
|
const title = exportTitle ?? ui.tagKindTitle(kind, { plural: true });
|
|
4282
|
-
const bytes =
|
|
4282
|
+
const bytes = chunkYMZAHBFL_cjs.tagTableDocx(data, {
|
|
4283
4283
|
title,
|
|
4284
4284
|
nameOf: (id) => people.find((p) => p.value === id)?.label
|
|
4285
4285
|
});
|
|
@@ -4288,7 +4288,7 @@ function ConnectedTagTable({
|
|
|
4288
4288
|
return { blob: new Blob([bytes], { type: chunkJIOHDVWH_cjs.DOCX_MIME_TYPE }), name };
|
|
4289
4289
|
};
|
|
4290
4290
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4291
|
-
|
|
4291
|
+
chunkYMZAHBFL_cjs.TagTable,
|
|
4292
4292
|
{
|
|
4293
4293
|
...props,
|
|
4294
4294
|
table,
|
|
@@ -4329,7 +4329,7 @@ function DocTagPassages({ docId, tagId, label, docOf, testId }) {
|
|
|
4329
4329
|
const [open, setOpen] = React9.useState(false);
|
|
4330
4330
|
const doctag = docOf(docId)?.doctags?.find((dt) => dt.tag_ext_id === tagId);
|
|
4331
4331
|
const citations = React9.useMemo(
|
|
4332
|
-
() =>
|
|
4332
|
+
() => chunkUZCHVJ6L_cjs.toFactCitations(doctag?.citations) ?? [],
|
|
4333
4333
|
[doctag?.citations]
|
|
4334
4334
|
);
|
|
4335
4335
|
const { quoteFor, orderOf } = react.usePassageQuotes(
|
|
@@ -4338,7 +4338,7 @@ function DocTagPassages({ docId, tagId, label, docOf, testId }) {
|
|
|
4338
4338
|
const { openDocument } = chunk6K3VOHHL_cjs.useBlocksEnvironment();
|
|
4339
4339
|
const viewingPassageId = react.useArbiSessionState((s) => s.viewingDocument?.passageId ?? null);
|
|
4340
4340
|
const id = testId ?? `doctag-passages-${docId}`;
|
|
4341
|
-
const refOf = (cited) =>
|
|
4341
|
+
const refOf = (cited) => chunkUZCHVJ6L_cjs.citedVersionRef(cited.doc_ext_id, cited.version, docOf(cited.doc_ext_id)?.current_version);
|
|
4342
4342
|
const ordered = (cited) => [...cited.chunks].sort((a, b) => {
|
|
4343
4343
|
const oa = orderOf(a.chunk_id);
|
|
4344
4344
|
const ob = orderOf(b.chunk_id);
|
|
@@ -4369,7 +4369,7 @@ function DocTagPassages({ docId, tagId, label, docOf, testId }) {
|
|
|
4369
4369
|
const doc = docOf(cited.doc_ext_id);
|
|
4370
4370
|
const passages = ordered(cited);
|
|
4371
4371
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4372
|
-
|
|
4372
|
+
chunkUZCHVJ6L_cjs.FactSourceGroup,
|
|
4373
4373
|
{
|
|
4374
4374
|
docId: cited.doc_ext_id,
|
|
4375
4375
|
hasPassages: passages.length > 0,
|
|
@@ -4426,9 +4426,9 @@ function GlossaryExport({ labelId, nameOf }) {
|
|
|
4426
4426
|
const narrowed = agreements.find((a) => a.id === narrowTo);
|
|
4427
4427
|
const title = narrowed ? `Glossary - ${narrowed.name}` : "Glossary";
|
|
4428
4428
|
const download = (format) => {
|
|
4429
|
-
const entries =
|
|
4430
|
-
const blob = format === "docx" ? new Blob([
|
|
4431
|
-
documentTools.downloadBlob(blob,
|
|
4429
|
+
const entries = chunkYMZAHBFL_cjs.glossaryEntries(sources, { labelId: narrowed?.id });
|
|
4430
|
+
const blob = format === "docx" ? new Blob([chunkYMZAHBFL_cjs.glossaryDocx(entries, { title })], { type: chunkJIOHDVWH_cjs.DOCX_MIME_TYPE }) : new Blob([chunkYMZAHBFL_cjs.glossaryMarkdown(entries, { title })], { type: "text/markdown" });
|
|
4431
|
+
documentTools.downloadBlob(blob, chunkYMZAHBFL_cjs.glossaryFileName(title, format));
|
|
4432
4432
|
};
|
|
4433
4433
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", "data-testid": "tags-glossary", children: [
|
|
4434
4434
|
agreements.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -4487,7 +4487,7 @@ function ConnectedTagForm({
|
|
|
4487
4487
|
nameByKind = false
|
|
4488
4488
|
}) {
|
|
4489
4489
|
const isCreate = !tag;
|
|
4490
|
-
const memberById =
|
|
4490
|
+
const memberById = chunkL7ROIPS7_cjs.useMemberLookup();
|
|
4491
4491
|
const creator = memberById(tag?.created_by_ext_id);
|
|
4492
4492
|
const updater = memberById(tag?.updated_by_ext_id);
|
|
4493
4493
|
const fieldLabel = ui.getEntityLabel("TAG", "SINGULAR");
|
|
@@ -4567,19 +4567,19 @@ function ConnectedTagForm({
|
|
|
4567
4567
|
metaLines.push({
|
|
4568
4568
|
text: `Created ${ui.formatFriendlyDate(tag.created_at)}`,
|
|
4569
4569
|
byLabel: "by",
|
|
4570
|
-
by: creator ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
4570
|
+
by: creator ? /* @__PURE__ */ jsxRuntime.jsx(chunkZDX7X7R5_cjs.DocumentUser, { user: creator }) : void 0
|
|
4571
4571
|
});
|
|
4572
4572
|
if (tag.updated_at && tag.updated_at !== tag.created_at) {
|
|
4573
4573
|
metaLines.push({
|
|
4574
4574
|
text: `Updated ${ui.formatFriendlyDate(tag.updated_at)}`,
|
|
4575
4575
|
byLabel: "by",
|
|
4576
|
-
by: updater ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
4576
|
+
by: updater ? /* @__PURE__ */ jsxRuntime.jsx(chunkZDX7X7R5_cjs.DocumentUser, { user: updater }) : void 0
|
|
4577
4577
|
});
|
|
4578
4578
|
}
|
|
4579
4579
|
}
|
|
4580
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4580
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkSRD5YJJI_cjs.TagFormRoot, { children: [
|
|
4581
4581
|
!nameOnRow && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4582
|
-
|
|
4582
|
+
chunkSRD5YJJI_cjs.TagFormNameField,
|
|
4583
4583
|
{
|
|
4584
4584
|
label: group || nameByKind ? `${ui.tagKindTitle(kind)} Name` : `${columnLabel} Name`,
|
|
4585
4585
|
placeholder: `Enter ${kindNoun ?? columnLabel.toLowerCase()} name...`,
|
|
@@ -4589,7 +4589,7 @@ function ConnectedTagForm({
|
|
|
4589
4589
|
}
|
|
4590
4590
|
),
|
|
4591
4591
|
kinds.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4592
|
-
|
|
4592
|
+
chunkSRD5YJJI_cjs.TagFormSelectField,
|
|
4593
4593
|
{
|
|
4594
4594
|
label: "Kind",
|
|
4595
4595
|
testId: "inline-tag-form-kind-field",
|
|
@@ -4604,7 +4604,7 @@ function ConnectedTagForm({
|
|
|
4604
4604
|
}
|
|
4605
4605
|
),
|
|
4606
4606
|
kind === "annotation" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4607
|
-
|
|
4607
|
+
chunkSRD5YJJI_cjs.TagFormSelectField,
|
|
4608
4608
|
{
|
|
4609
4609
|
label: group === "annotation" ? "Value type" : "Field Type",
|
|
4610
4610
|
testId: "inline-tag-form-type-field",
|
|
@@ -4616,7 +4616,7 @@ function ConnectedTagForm({
|
|
|
4616
4616
|
}
|
|
4617
4617
|
),
|
|
4618
4618
|
showParentPicker && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4619
|
-
|
|
4619
|
+
chunkSRD5YJJI_cjs.TagFormSelectField,
|
|
4620
4620
|
{
|
|
4621
4621
|
label: "Nested Under",
|
|
4622
4622
|
value: parentId,
|
|
@@ -4640,14 +4640,14 @@ function ConnectedTagForm({
|
|
|
4640
4640
|
hint: !canClearParent ? "This field can move to a different parent, but the API has no way to move it back to the top level." : void 0
|
|
4641
4641
|
}
|
|
4642
4642
|
),
|
|
4643
|
-
nestingEnabled && hasChildren && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4643
|
+
nestingEnabled && hasChildren && /* @__PURE__ */ jsxRuntime.jsxs(chunkSRD5YJJI_cjs.TagFormNote, { testId: "inline-tag-form-parent-locked", children: [
|
|
4644
4644
|
"Other fields are nested under this one, so it cannot itself be nested \u2014 fields nest",
|
|
4645
4645
|
" ",
|
|
4646
4646
|
browser.TAG_NESTING_MAX_DEPTH,
|
|
4647
4647
|
" levels deep."
|
|
4648
4648
|
] }),
|
|
4649
4649
|
tagType === "select" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4650
|
-
|
|
4650
|
+
chunkSRD5YJJI_cjs.TagFormOptionsEditor,
|
|
4651
4651
|
{
|
|
4652
4652
|
label: "Options",
|
|
4653
4653
|
options: options2,
|
|
@@ -4660,7 +4660,7 @@ function ConnectedTagForm({
|
|
|
4660
4660
|
}
|
|
4661
4661
|
),
|
|
4662
4662
|
tagType === "text" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4663
|
-
|
|
4663
|
+
chunkSRD5YJJI_cjs.TagFormInstructionField,
|
|
4664
4664
|
{
|
|
4665
4665
|
label: "AI Instruction",
|
|
4666
4666
|
optionalLabel: "(optional)",
|
|
@@ -4670,12 +4670,12 @@ function ConnectedTagForm({
|
|
|
4670
4670
|
onChange: setInstruction
|
|
4671
4671
|
}
|
|
4672
4672
|
),
|
|
4673
|
-
metaLines.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4673
|
+
metaLines.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.TagFormMeta, { lines: metaLines }),
|
|
4674
4674
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4675
|
-
|
|
4675
|
+
chunkSRD5YJJI_cjs.TagFormFooter,
|
|
4676
4676
|
{
|
|
4677
4677
|
sharedToggle: isCreate ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
4678
|
-
|
|
4678
|
+
chunkSRD5YJJI_cjs.TagFormSharedToggle,
|
|
4679
4679
|
{
|
|
4680
4680
|
label: "Shared with workspace",
|
|
4681
4681
|
toggle: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4973,7 +4973,7 @@ function KindSection({
|
|
|
4973
4973
|
{
|
|
4974
4974
|
testId: `tags-kind-${kind}`,
|
|
4975
4975
|
title: ui.tagKindTitle(kind, { plural: true }),
|
|
4976
|
-
description:
|
|
4976
|
+
description: chunkYMZAHBFL_cjs.tagKindDescription(kind),
|
|
4977
4977
|
actions: picker,
|
|
4978
4978
|
children: [
|
|
4979
4979
|
browser.isEntityTag({ kind }) && extractingCount > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -4984,9 +4984,9 @@ function KindSection({
|
|
|
4984
4984
|
children: [
|
|
4985
4985
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-4 animate-spin" }),
|
|
4986
4986
|
"Extracting ",
|
|
4987
|
-
|
|
4987
|
+
chunkYMZAHBFL_cjs.entitiesPhrase().toLowerCase(),
|
|
4988
4988
|
" from ",
|
|
4989
|
-
|
|
4989
|
+
chunkYMZAHBFL_cjs.documentCount(extractingCount),
|
|
4990
4990
|
"\u2026"
|
|
4991
4991
|
]
|
|
4992
4992
|
}
|
|
@@ -5004,7 +5004,7 @@ function KindSection({
|
|
|
5004
5004
|
onOpenDocument: (id) => openDocument(id),
|
|
5005
5005
|
onOpenFact: ctx.onOpenFact,
|
|
5006
5006
|
onOpenThread: (id) => openConversation(id),
|
|
5007
|
-
labels:
|
|
5007
|
+
labels: chunkYMZAHBFL_cjs.tagTableLabels(kind),
|
|
5008
5008
|
testId: `tags-table-${kind}`
|
|
5009
5009
|
}
|
|
5010
5010
|
)
|
|
@@ -5106,12 +5106,12 @@ function TagSection({
|
|
|
5106
5106
|
onOpenDocument: (id) => openDocument(id),
|
|
5107
5107
|
onOpenFact: ctx.onOpenFact,
|
|
5108
5108
|
onOpenThread: (id) => openConversation(id),
|
|
5109
|
-
labels:
|
|
5109
|
+
labels: chunkYMZAHBFL_cjs.tagTableLabels(tag.kind),
|
|
5110
5110
|
testId: "tags-rows"
|
|
5111
5111
|
}
|
|
5112
5112
|
),
|
|
5113
5113
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5114
|
-
|
|
5114
|
+
chunkYMZAHBFL_cjs.TagDetail,
|
|
5115
5115
|
{
|
|
5116
5116
|
row: detailRow && narrowTagRow(detailRow, ctx.filter.matches),
|
|
5117
5117
|
fields: schema.data?.fields ?? [],
|
|
@@ -5123,10 +5123,10 @@ function TagSection({
|
|
|
5123
5123
|
onOpenDocument: (id) => openDocument(id),
|
|
5124
5124
|
onOpenFact: ctx.onOpenFact,
|
|
5125
5125
|
onOpenThread: (id) => openConversation(id),
|
|
5126
|
-
noteLabel:
|
|
5126
|
+
noteLabel: chunkYMZAHBFL_cjs.tagNoteLabel(tag.kind),
|
|
5127
5127
|
noteIsValue: tag.kind === "annotation",
|
|
5128
5128
|
renderPassages: (d, label) => renderPassages(d.doc_ext_id, label),
|
|
5129
|
-
labels:
|
|
5129
|
+
labels: chunkYMZAHBFL_cjs.tagDetailLabels(),
|
|
5130
5130
|
testId: "tags-detail"
|
|
5131
5131
|
}
|
|
5132
5132
|
)
|
|
@@ -5214,7 +5214,7 @@ function ConnectedTagsPage({
|
|
|
5214
5214
|
const onDelete = async (t) => {
|
|
5215
5215
|
const nested = browser.getChildTags([...tags], t.external_id);
|
|
5216
5216
|
const uses = browser.tagUseCount(t);
|
|
5217
|
-
const n2 =
|
|
5217
|
+
const n2 = chunkYMZAHBFL_cjs.tagsPageNouns();
|
|
5218
5218
|
const tagNoun = (count2) => (count2 === 1 ? n2.tag : n2.tags).toLowerCase();
|
|
5219
5219
|
const carriers = uses === 1 ? `${n2.document}, ${n2.fact} or ${n2.thread}` : `${n2.documents}, ${n2.facts} and ${n2.threads}`;
|
|
5220
5220
|
const message = `Delete ${ui.tagKindNouns(t.kind).singular} "${t.name}"?` + (uses > 0 ? `
|
|
@@ -5235,16 +5235,16 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
5235
5235
|
try {
|
|
5236
5236
|
await extract.mutateAsync(docIds);
|
|
5237
5237
|
notify18(
|
|
5238
|
-
`Extracting ${
|
|
5238
|
+
`Extracting ${chunkYMZAHBFL_cjs.entitiesPhrase().toLowerCase()} from ${chunkYMZAHBFL_cjs.documentCount(docIds.length)}. You will be notified when it is done.`,
|
|
5239
5239
|
"info"
|
|
5240
5240
|
);
|
|
5241
5241
|
} catch (error) {
|
|
5242
|
-
notify18(browser.refusalReason(error, `Could not extract ${
|
|
5242
|
+
notify18(browser.refusalReason(error, `Could not extract ${chunkYMZAHBFL_cjs.entitiesPhrase().toLowerCase()}`), "error");
|
|
5243
5243
|
throw error;
|
|
5244
5244
|
}
|
|
5245
5245
|
};
|
|
5246
5246
|
const picker = /* @__PURE__ */ jsxRuntime.jsx(
|
|
5247
|
-
|
|
5247
|
+
chunkYMZAHBFL_cjs.TagPicker,
|
|
5248
5248
|
{
|
|
5249
5249
|
tags: viewTags,
|
|
5250
5250
|
selectedId: tag?.external_id,
|
|
@@ -5258,10 +5258,10 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
5258
5258
|
onOpenTag: openTag,
|
|
5259
5259
|
onOpenFact
|
|
5260
5260
|
};
|
|
5261
|
-
const n =
|
|
5261
|
+
const n = chunkYMZAHBFL_cjs.tagsPageNouns();
|
|
5262
5262
|
const action = view === "person" || view === "organisation" ? {
|
|
5263
5263
|
label: "Extract",
|
|
5264
|
-
title: `Extract ${
|
|
5264
|
+
title: `Extract ${chunkYMZAHBFL_cjs.entitiesPhrase().toLowerCase()} from ${n.documents.toLowerCase()}`,
|
|
5265
5265
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { className: "h-4 w-4" }),
|
|
5266
5266
|
run: () => setExtracting(true),
|
|
5267
5267
|
testId: "tags-extract-entities"
|
|
@@ -5301,7 +5301,7 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
5301
5301
|
onTabChange: () => {
|
|
5302
5302
|
},
|
|
5303
5303
|
variant: "underline",
|
|
5304
|
-
firstTabContent: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5304
|
+
firstTabContent: /* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.FilesFilterBar, { className: "flex-none", "data-testid": "tags-header-actions", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5305
5305
|
chunk2EI7NCUA_cjs.FilterInput,
|
|
5306
5306
|
{
|
|
5307
5307
|
value: filterText,
|
|
@@ -5329,7 +5329,7 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
5329
5329
|
)
|
|
5330
5330
|
}
|
|
5331
5331
|
) }),
|
|
5332
|
-
centerContent: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5332
|
+
centerContent: /* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.FilesViewCenter, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5333
5333
|
chunk2WLXQGWC_cjs.ViewToggle,
|
|
5334
5334
|
{
|
|
5335
5335
|
options: browser.TAG_KINDS.map((k) => ({
|
|
@@ -5411,7 +5411,7 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
5411
5411
|
}
|
|
5412
5412
|
),
|
|
5413
5413
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5414
|
-
|
|
5414
|
+
chunkYMZAHBFL_cjs.ExtractEntitiesDialog,
|
|
5415
5415
|
{
|
|
5416
5416
|
open: extracting,
|
|
5417
5417
|
onOpenChange: setExtracting,
|
|
@@ -5472,7 +5472,7 @@ function FactSourcesPopover({
|
|
|
5472
5472
|
reset();
|
|
5473
5473
|
}
|
|
5474
5474
|
};
|
|
5475
|
-
const refOf = (docId) =>
|
|
5475
|
+
const refOf = (docId) => chunkUZCHVJ6L_cjs.citedVersionRef(
|
|
5476
5476
|
docId,
|
|
5477
5477
|
citations.find((d) => d.doc_ext_id === docId)?.version,
|
|
5478
5478
|
citedDocs?.[docId]?.current_version
|
|
@@ -5502,7 +5502,7 @@ function FactSourcesPopover({
|
|
|
5502
5502
|
const olderVersion = refOf(docId) !== docId ? refOf(docId).split("@v")[1] : null;
|
|
5503
5503
|
const cited = passagesOf(docId);
|
|
5504
5504
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5505
|
-
|
|
5505
|
+
chunkUZCHVJ6L_cjs.FactSourceGroup,
|
|
5506
5506
|
{
|
|
5507
5507
|
docId,
|
|
5508
5508
|
isViewing,
|
|
@@ -5571,8 +5571,8 @@ function FactMarkdownEditor({
|
|
|
5571
5571
|
citationContainer,
|
|
5572
5572
|
"data-testid": dataTestId
|
|
5573
5573
|
}) {
|
|
5574
|
-
const sources = React9.useMemo(() =>
|
|
5575
|
-
const docIds =
|
|
5574
|
+
const sources = React9.useMemo(() => chunkUZCHVJ6L_cjs.toFactCitations(citations) ?? [], [citations]);
|
|
5575
|
+
const docIds = chunkUZCHVJ6L_cjs.docIdsOf(sources);
|
|
5576
5576
|
const hasSources = docIds.length > 0;
|
|
5577
5577
|
const { quoteFor, orderOf } = react.usePassageQuotes(
|
|
5578
5578
|
React9.useMemo(() => sources.filter((d) => d.chunks.length > 0).map((d) => d.doc_ext_id), [sources])
|
|
@@ -5591,7 +5591,7 @@ function FactMarkdownEditor({
|
|
|
5591
5591
|
const editorRef = React9.useRef(null);
|
|
5592
5592
|
React9.useEffect(() => {
|
|
5593
5593
|
if (!editorRef.current) return;
|
|
5594
|
-
return
|
|
5594
|
+
return chunkUZCHVJ6L_cjs.enableFactTableColumnResize(editorRef.current);
|
|
5595
5595
|
}, []);
|
|
5596
5596
|
React9.useEffect(() => {
|
|
5597
5597
|
if (!editing) return;
|
|
@@ -5606,14 +5606,14 @@ function FactMarkdownEditor({
|
|
|
5606
5606
|
return () => document.removeEventListener("pointerdown", onPointerDown, true);
|
|
5607
5607
|
}, [editing]);
|
|
5608
5608
|
const removeDoc = (docExtId) => {
|
|
5609
|
-
const remaining =
|
|
5609
|
+
const remaining = chunkUZCHVJ6L_cjs.withoutDoc(sources, docExtId);
|
|
5610
5610
|
if (!remaining) setSourcesOpen(false);
|
|
5611
5611
|
onChange(value, remaining);
|
|
5612
5612
|
};
|
|
5613
5613
|
const citeDocument = (docExtId) => onCiteDocument(docExtId, { toggle: false });
|
|
5614
5614
|
const handleToggleDoc = (docExtId) => {
|
|
5615
5615
|
if (docIds.includes(docExtId)) removeDoc(docExtId);
|
|
5616
|
-
else onChange(value,
|
|
5616
|
+
else onChange(value, chunkUZCHVJ6L_cjs.withDoc(sources, docExtId));
|
|
5617
5617
|
};
|
|
5618
5618
|
const expandToggle = /* @__PURE__ */ jsxRuntime.jsx(
|
|
5619
5619
|
"button",
|
|
@@ -5832,7 +5832,7 @@ function useFactComposer(notes, remove, gridApiRef, collector, composeRequested,
|
|
|
5832
5832
|
const [composing, setComposing] = React9.useState(false);
|
|
5833
5833
|
const [draft, setDraft] = React9.useState("");
|
|
5834
5834
|
const [baselineText, setBaselineText] = React9.useState("");
|
|
5835
|
-
const [draftDateFields, setDraftDateFields] = React9.useState(
|
|
5835
|
+
const [draftDateFields, setDraftDateFields] = React9.useState(chunkUZCHVJ6L_cjs.EMPTY_FACT_DATE_FIELDS);
|
|
5836
5836
|
const [composerError, setComposerError] = React9.useState(null);
|
|
5837
5837
|
const [editingId, setEditingId] = React9.useState(null);
|
|
5838
5838
|
const [draftShared, setDraftShared] = React9.useState(false);
|
|
@@ -5889,9 +5889,9 @@ function useFactComposer(notes, remove, gridApiRef, collector, composeRequested,
|
|
|
5889
5889
|
if (!collector || !picked?.length || !collectingFor || !docBeingCollected) return;
|
|
5890
5890
|
const docExtId = docBeingCollected;
|
|
5891
5891
|
const apply = (prev) => {
|
|
5892
|
-
let next =
|
|
5892
|
+
let next = chunkUZCHVJ6L_cjs.toFactCitations(prev);
|
|
5893
5893
|
for (const pending of picked) {
|
|
5894
|
-
next =
|
|
5894
|
+
next = chunkUZCHVJ6L_cjs.withChunk(next, docExtId, { chunk_id: pending.chunk_id, page: pending.page ?? null });
|
|
5895
5895
|
}
|
|
5896
5896
|
return next ?? [];
|
|
5897
5897
|
};
|
|
@@ -5902,8 +5902,8 @@ function useFactComposer(notes, remove, gridApiRef, collector, composeRequested,
|
|
|
5902
5902
|
React9.useEffect(() => {
|
|
5903
5903
|
if (!collector || !unpicked?.length || !collectingFor) return;
|
|
5904
5904
|
setDraftCitations((prev) => {
|
|
5905
|
-
let next =
|
|
5906
|
-
for (const chunkId of unpicked) next =
|
|
5905
|
+
let next = chunkUZCHVJ6L_cjs.toFactCitations(prev);
|
|
5906
|
+
for (const chunkId of unpicked) next = chunkUZCHVJ6L_cjs.withoutChunk(next, chunkId);
|
|
5907
5907
|
return next;
|
|
5908
5908
|
});
|
|
5909
5909
|
collector.consumeUnpicked();
|
|
@@ -5913,7 +5913,7 @@ function useFactComposer(notes, remove, gridApiRef, collector, composeRequested,
|
|
|
5913
5913
|
setBaselineText("");
|
|
5914
5914
|
setDraftCitations(null);
|
|
5915
5915
|
setDraftTagIds([]);
|
|
5916
|
-
setDraftDateFields(
|
|
5916
|
+
setDraftDateFields(chunkUZCHVJ6L_cjs.EMPTY_FACT_DATE_FIELDS);
|
|
5917
5917
|
setDraftShared(false);
|
|
5918
5918
|
setDraftConfirmed(true);
|
|
5919
5919
|
setComposerError(null);
|
|
@@ -5927,7 +5927,7 @@ function useFactComposer(notes, remove, gridApiRef, collector, composeRequested,
|
|
|
5927
5927
|
setBaselineText("");
|
|
5928
5928
|
setDraftCitations(null);
|
|
5929
5929
|
setDraftTagIds([]);
|
|
5930
|
-
setDraftDateFields(
|
|
5930
|
+
setDraftDateFields(chunkUZCHVJ6L_cjs.EMPTY_FACT_DATE_FIELDS);
|
|
5931
5931
|
setDraftShared(false);
|
|
5932
5932
|
setDraftConfirmed(true);
|
|
5933
5933
|
setComposerError(null);
|
|
@@ -5938,7 +5938,7 @@ function useFactComposer(notes, remove, gridApiRef, collector, composeRequested,
|
|
|
5938
5938
|
const content = chunkRC25WMVB_cjs.decodeWhitespaceEntities(draft).trim();
|
|
5939
5939
|
if (!content) return;
|
|
5940
5940
|
setComposerError(null);
|
|
5941
|
-
const span =
|
|
5941
|
+
const span = chunkUZCHVJ6L_cjs.factDateFieldsToSpan(draftDateFields);
|
|
5942
5942
|
try {
|
|
5943
5943
|
let saved;
|
|
5944
5944
|
if (editingId) {
|
|
@@ -5976,7 +5976,7 @@ function useFactComposer(notes, remove, gridApiRef, collector, composeRequested,
|
|
|
5976
5976
|
setBaselineText(draft);
|
|
5977
5977
|
setDraftCitations(saved.citations ?? null);
|
|
5978
5978
|
setDraftTagIds(saved.tags.map((t) => t.tag_ext_id));
|
|
5979
|
-
setDraftDateFields(
|
|
5979
|
+
setDraftDateFields(chunkUZCHVJ6L_cjs.factDateSpanToFields(saved.date_start, saved.date_end, saved.timezone));
|
|
5980
5980
|
setDraftShared(saved.shared ?? false);
|
|
5981
5981
|
setDraftConfirmed(saved.confirmed ?? true);
|
|
5982
5982
|
}
|
|
@@ -6001,7 +6001,7 @@ function useFactComposer(notes, remove, gridApiRef, collector, composeRequested,
|
|
|
6001
6001
|
setBaselineText(m.text);
|
|
6002
6002
|
setDraftCitations(m.citations ?? null);
|
|
6003
6003
|
setDraftTagIds(m.tags.map((t) => t.tag_ext_id));
|
|
6004
|
-
setDraftDateFields(
|
|
6004
|
+
setDraftDateFields(chunkUZCHVJ6L_cjs.factDateSpanToFields(m.date_start, m.date_end, m.timezone));
|
|
6005
6005
|
setDraftShared(m.shared ?? false);
|
|
6006
6006
|
setDraftConfirmed(m.confirmed ?? true);
|
|
6007
6007
|
setComposerError(null);
|
|
@@ -6015,7 +6015,7 @@ function useFactComposer(notes, remove, gridApiRef, collector, composeRequested,
|
|
|
6015
6015
|
const textChanged = draft.trim() !== baselineText.trim();
|
|
6016
6016
|
const citationsChanged = JSON.stringify(draftCitations ?? null) !== JSON.stringify(f.citations ?? null);
|
|
6017
6017
|
const tagsChanged = JSON.stringify([...draftTagIds].sort()) !== JSON.stringify(f.tags.map((t) => t.tag_ext_id).sort());
|
|
6018
|
-
const dateChanged = JSON.stringify(draftDateFields) !== JSON.stringify(
|
|
6018
|
+
const dateChanged = JSON.stringify(draftDateFields) !== JSON.stringify(chunkUZCHVJ6L_cjs.factDateSpanToFields(f.date_start, f.date_end, f.timezone));
|
|
6019
6019
|
const sharedChanged = draftShared !== (f.shared ?? false);
|
|
6020
6020
|
const confirmedChanged = draftConfirmed !== (f.confirmed ?? true);
|
|
6021
6021
|
return textChanged || citationsChanged || tagsChanged || dateChanged || sharedChanged || confirmedChanged;
|
|
@@ -6189,8 +6189,8 @@ function useFactFilters(notes, view, chat) {
|
|
|
6189
6189
|
const makeTagPicker = React9.useCallback(
|
|
6190
6190
|
(selected, setSelected, opts) => {
|
|
6191
6191
|
const applied = new Set(selected);
|
|
6192
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6193
|
-
|
|
6192
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkUZCHVJ6L_cjs.FactFieldRow, { label: "Labels", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6193
|
+
chunkSRD5YJJI_cjs.FieldLabelsSelect,
|
|
6194
6194
|
{
|
|
6195
6195
|
options: labelOptions,
|
|
6196
6196
|
appliedIds: applied,
|
|
@@ -6380,14 +6380,14 @@ function useFactSelection(notes, gridApiRef, setFactTags, chat) {
|
|
|
6380
6380
|
}
|
|
6381
6381
|
function renderSourcesCell(params) {
|
|
6382
6382
|
const fact = params.data;
|
|
6383
|
-
const count2 =
|
|
6383
|
+
const count2 = chunkUZCHVJ6L_cjs.sourceDocCount(fact);
|
|
6384
6384
|
if (!fact || count2 === 0) return /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground/40", children: "\u2014" });
|
|
6385
6385
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6386
6386
|
"button",
|
|
6387
6387
|
{
|
|
6388
6388
|
type: "button",
|
|
6389
6389
|
onClick: () => params.context?.openEdit?.(fact),
|
|
6390
|
-
title:
|
|
6390
|
+
title: chunkUZCHVJ6L_cjs.DEFAULT_FACT_COLUMN_LABELS.sourcedFrom(count2),
|
|
6391
6391
|
"data-testid": `facts-grid-sources-${fact.external_id}`,
|
|
6392
6392
|
className: "inline-flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground",
|
|
6393
6393
|
children: [
|
|
@@ -6416,7 +6416,7 @@ var FactHeader = React9.memo(function FactHeader2({
|
|
|
6416
6416
|
if (params.enableSorting) params.progressSort(e.shiftKey);
|
|
6417
6417
|
},
|
|
6418
6418
|
children: [
|
|
6419
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6419
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.FilterButton, { params, colId }),
|
|
6420
6420
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "order-2 min-w-0 flex-1 truncate", children: params.displayName }),
|
|
6421
6421
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "ag-sort-indicator-container order-2 flex-shrink-0", "aria-hidden": "true", children: [
|
|
6422
6422
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -6444,14 +6444,14 @@ function createFactPageColumns({
|
|
|
6444
6444
|
onToggleConfirmed,
|
|
6445
6445
|
onToggleShared
|
|
6446
6446
|
}) {
|
|
6447
|
-
const columns =
|
|
6447
|
+
const columns = chunkUZCHVJ6L_cjs.createFactColumns({
|
|
6448
6448
|
onToggleInChat,
|
|
6449
6449
|
isInChat,
|
|
6450
6450
|
renderHeader: (params, colId) => /* @__PURE__ */ jsxRuntime.jsx(FactHeader, { params, colId }),
|
|
6451
6451
|
renderRowActions: (fact, params) => {
|
|
6452
6452
|
const ctx = params.context;
|
|
6453
6453
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6454
|
-
|
|
6454
|
+
chunkUZCHVJ6L_cjs.FactRowActions,
|
|
6455
6455
|
{
|
|
6456
6456
|
onEdit: () => ctx?.openEdit?.(fact),
|
|
6457
6457
|
canEdit: ctx?.canRewrite?.(fact) !== false,
|
|
@@ -6581,7 +6581,7 @@ function useFactsGrid({
|
|
|
6581
6581
|
);
|
|
6582
6582
|
const renderFactTags = React9.useCallback(
|
|
6583
6583
|
(fact, rowHeight) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6584
|
-
|
|
6584
|
+
chunkUZCHVJ6L_cjs.FactLabelsCell,
|
|
6585
6585
|
{
|
|
6586
6586
|
options: labelOptions,
|
|
6587
6587
|
selectedIds: fact.tags.map((t) => t.tag_ext_id),
|
|
@@ -6680,7 +6680,7 @@ function useFactsGrid({
|
|
|
6680
6680
|
var DEFAULT_TIMELINE_LABEL_WIDTH = 240;
|
|
6681
6681
|
function useFactsPageView() {
|
|
6682
6682
|
const [view, setView] = React9.useState("table");
|
|
6683
|
-
const [rowHeight, setRowHeight] = React9.useState(
|
|
6683
|
+
const [rowHeight, setRowHeight] = React9.useState(chunkSRD5YJJI_cjs.ROW_MIN);
|
|
6684
6684
|
const [labelWidth, setLabelWidth] = React9.useState(DEFAULT_TIMELINE_LABEL_WIDTH);
|
|
6685
6685
|
const [zoom, setZoom] = React9.useState(1);
|
|
6686
6686
|
const [filterText, setFilterText] = React9.useState("");
|
|
@@ -7044,7 +7044,7 @@ function ConnectedExportPanel({
|
|
|
7044
7044
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col h-full", "data-testid": "export-documents", children: [
|
|
7045
7045
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 overflow-auto space-y-6 p-6", children: [
|
|
7046
7046
|
jobRunning && job && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7047
|
-
|
|
7047
|
+
chunkSRD5YJJI_cjs.TransferProgressView,
|
|
7048
7048
|
{
|
|
7049
7049
|
title: `${job.mode === "move" ? "Moving" : "Copying"} to ${targetName(job.target_workspace_ext_id)}`,
|
|
7050
7050
|
processed: job.processed ?? 0,
|
|
@@ -7057,7 +7057,7 @@ function ConnectedExportPanel({
|
|
|
7057
7057
|
),
|
|
7058
7058
|
jobDone && job && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
7059
7059
|
react.isTransferResumable(job) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7060
|
-
|
|
7060
|
+
chunkSRD5YJJI_cjs.TransferResumeBanner,
|
|
7061
7061
|
{
|
|
7062
7062
|
message: `Stopped at ${job.processed} of ${job.total}. Resume to finish \u2014 nothing is copied twice.`,
|
|
7063
7063
|
onResume: () => handleResume(job),
|
|
@@ -7065,7 +7065,7 @@ function ConnectedExportPanel({
|
|
|
7065
7065
|
}
|
|
7066
7066
|
),
|
|
7067
7067
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7068
|
-
|
|
7068
|
+
chunkSRD5YJJI_cjs.ExportResultsReport,
|
|
7069
7069
|
{
|
|
7070
7070
|
summary: `${job.mode === "move" ? "Moved" : "Copied"} ${plural(
|
|
7071
7071
|
Number(job.counts?.copied ?? 0) + Number(job.counts?.removed ?? 0),
|
|
@@ -7078,7 +7078,7 @@ function ConnectedExportPanel({
|
|
|
7078
7078
|
] }),
|
|
7079
7079
|
!jobId && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
7080
7080
|
resumable && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7081
|
-
|
|
7081
|
+
chunkSRD5YJJI_cjs.TransferResumeBanner,
|
|
7082
7082
|
{
|
|
7083
7083
|
message: `A ${resumable.mode} to ${targetName(resumable.target_workspace_ext_id)} stopped at ${resumable.processed} of ${resumable.total}.`,
|
|
7084
7084
|
onResume: () => handleResume(resumable),
|
|
@@ -7086,7 +7086,7 @@ function ConnectedExportPanel({
|
|
|
7086
7086
|
}
|
|
7087
7087
|
),
|
|
7088
7088
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7089
|
-
|
|
7089
|
+
chunkSRD5YJJI_cjs.TransferScopeChooser,
|
|
7090
7090
|
{
|
|
7091
7091
|
scope: scopeChoice,
|
|
7092
7092
|
onScopeChange: setScopeChoice,
|
|
@@ -7097,7 +7097,7 @@ function ConnectedExportPanel({
|
|
|
7097
7097
|
}
|
|
7098
7098
|
),
|
|
7099
7099
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7100
|
-
|
|
7100
|
+
chunkSRD5YJJI_cjs.TransferKindsPicker,
|
|
7101
7101
|
{
|
|
7102
7102
|
options: ALL_KINDS.map((kind) => ({
|
|
7103
7103
|
kind,
|
|
@@ -7110,9 +7110,9 @@ function ConnectedExportPanel({
|
|
|
7110
7110
|
)
|
|
7111
7111
|
}
|
|
7112
7112
|
),
|
|
7113
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7113
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.TransferReferencesChooser, { value: references, onChange: setReferences }),
|
|
7114
7114
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7115
|
-
|
|
7115
|
+
chunkSRD5YJJI_cjs.ExportMethodChooser,
|
|
7116
7116
|
{
|
|
7117
7117
|
mode,
|
|
7118
7118
|
onModeChange: setMode,
|
|
@@ -7124,17 +7124,17 @@ function ConnectedExportPanel({
|
|
|
7124
7124
|
),
|
|
7125
7125
|
mode !== "download" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
7126
7126
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7127
|
-
|
|
7127
|
+
chunkSRD5YJJI_cjs.ExportWorkspacePicker,
|
|
7128
7128
|
{
|
|
7129
7129
|
workspaces: workspaceOptions,
|
|
7130
7130
|
selectedId: targetId,
|
|
7131
7131
|
onSelect: setTargetId
|
|
7132
7132
|
}
|
|
7133
7133
|
),
|
|
7134
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7134
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.TransferConflictChooser, { value: conflict, onChange: setConflict })
|
|
7135
7135
|
] }),
|
|
7136
7136
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7137
|
-
|
|
7137
|
+
chunkSRD5YJJI_cjs.TransferPlanSummary,
|
|
7138
7138
|
{
|
|
7139
7139
|
lines: summary.lines,
|
|
7140
7140
|
warnings: summary.warnings,
|
|
@@ -7151,7 +7151,7 @@ function ConnectedExportPanel({
|
|
|
7151
7151
|
] })
|
|
7152
7152
|
] }),
|
|
7153
7153
|
!jobId && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7154
|
-
|
|
7154
|
+
chunkSRD5YJJI_cjs.ExportFooter,
|
|
7155
7155
|
{
|
|
7156
7156
|
onCancel: onClose,
|
|
7157
7157
|
onSubmit: handleSubmit,
|
|
@@ -7192,7 +7192,7 @@ function OpenExportDialog({
|
|
|
7192
7192
|
children: [
|
|
7193
7193
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkULWRNGGE_cjs.ModalHeader, { children: [
|
|
7194
7194
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7195
|
-
|
|
7195
|
+
chunkSRD5YJJI_cjs.ExportModalTitle,
|
|
7196
7196
|
{
|
|
7197
7197
|
workspace: workspace ? {
|
|
7198
7198
|
icon: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "touch-hit inline-flex", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -7230,7 +7230,7 @@ var citedDocIdsCache = /* @__PURE__ */ new WeakMap();
|
|
|
7230
7230
|
function citedDocIds(m) {
|
|
7231
7231
|
const cached = citedDocIdsCache.get(m);
|
|
7232
7232
|
if (cached) return cached;
|
|
7233
|
-
const ids =
|
|
7233
|
+
const ids = chunkUZCHVJ6L_cjs.docIdsOf(chunkUZCHVJ6L_cjs.toFactCitations(m.citations));
|
|
7234
7234
|
citedDocIdsCache.set(m, ids);
|
|
7235
7235
|
return ids;
|
|
7236
7236
|
}
|
|
@@ -7331,7 +7331,7 @@ function ConnectedFactsPage({
|
|
|
7331
7331
|
const citedDocs = React9.useMemo(() => {
|
|
7332
7332
|
const wanted = /* @__PURE__ */ new Set([
|
|
7333
7333
|
...notes.flatMap((n) => citedDocIds(n)),
|
|
7334
|
-
...
|
|
7334
|
+
...chunkUZCHVJ6L_cjs.docIdsOf(chunkUZCHVJ6L_cjs.toFactCitations(composer.draftCitations))
|
|
7335
7335
|
]);
|
|
7336
7336
|
return Object.fromEntries(
|
|
7337
7337
|
documents.filter((d) => wanted.has(d.external_id)).map((d) => [d.external_id, d])
|
|
@@ -7360,7 +7360,7 @@ function ConnectedFactsPage({
|
|
|
7360
7360
|
setView(request.view === "list" ? "table" : request.view);
|
|
7361
7361
|
onRequestHandled?.("view");
|
|
7362
7362
|
}, [request?.view]);
|
|
7363
|
-
const factsRowHeight = pageView.rowHeight ===
|
|
7363
|
+
const factsRowHeight = pageView.rowHeight === chunkSRD5YJJI_cjs.ROW_MIN ? chunkSRD5YJJI_cjs.ROW_MIN : chunkSRD5YJJI_cjs.rowHeightForLines(chunkSRD5YJJI_cjs.linesForRowHeight(pageView.rowHeight));
|
|
7364
7364
|
const [isExportOpen, setIsExportOpen] = React9.useState(false);
|
|
7365
7365
|
const [filterOpen, setFilterOpen] = React9.useState(false);
|
|
7366
7366
|
const [factSection, setFactSection] = React9.useState(null);
|
|
@@ -7385,7 +7385,7 @@ function ConnectedFactsPage({
|
|
|
7385
7385
|
};
|
|
7386
7386
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: setFactSection, className: "relative flex h-full flex-col", "data-testid": "facts-page", children: [
|
|
7387
7387
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7388
|
-
|
|
7388
|
+
chunkUZCHVJ6L_cjs.FactsToolbar,
|
|
7389
7389
|
{
|
|
7390
7390
|
count: filteredNotes.length,
|
|
7391
7391
|
hasActiveFilters: filters.hasActiveFilters,
|
|
@@ -7414,7 +7414,7 @@ function ConnectedFactsPage({
|
|
|
7414
7414
|
onNewFact: composing && !editingId ? () => void 0 : composer.startNewFact,
|
|
7415
7415
|
navSlotRef: setNavSlot,
|
|
7416
7416
|
navigator: view === "table" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
7417
|
-
|
|
7417
|
+
chunkYMZAHBFL_cjs.GridRowNavigator,
|
|
7418
7418
|
{
|
|
7419
7419
|
gridApi,
|
|
7420
7420
|
selectedId: editingId,
|
|
@@ -7425,9 +7425,9 @@ function ConnectedFactsPage({
|
|
|
7425
7425
|
) : null,
|
|
7426
7426
|
showToolbarRow: view !== "smart_search",
|
|
7427
7427
|
tools: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
7428
|
-
view === "table" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7428
|
+
view === "table" && /* @__PURE__ */ jsxRuntime.jsx(chunkUZCHVJ6L_cjs.FactsFieldsButton, { getGridApi: () => gridApiRef.current }),
|
|
7429
7429
|
view === "table" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7430
|
-
|
|
7430
|
+
chunkSRD5YJJI_cjs.RowDensityControl,
|
|
7431
7431
|
{
|
|
7432
7432
|
rowHeight: factsRowHeight,
|
|
7433
7433
|
onRowHeightChange: pageView.setRowHeight,
|
|
@@ -7446,7 +7446,7 @@ function ConnectedFactsPage({
|
|
|
7446
7446
|
}
|
|
7447
7447
|
),
|
|
7448
7448
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7449
|
-
|
|
7449
|
+
chunkUZCHVJ6L_cjs.FactComposer,
|
|
7450
7450
|
{
|
|
7451
7451
|
isOpen: composing,
|
|
7452
7452
|
isEditing: !!editingId,
|
|
@@ -7479,7 +7479,7 @@ function ConnectedFactsPage({
|
|
|
7479
7479
|
reserveSourcesSpace: view === "gantt" || view === "calendar",
|
|
7480
7480
|
citationContainer: factSection,
|
|
7481
7481
|
renderDocumentPicker: (onSelect, selectedIds, onOpen, sourcesToggle, sourcesOpen) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
7482
|
-
|
|
7482
|
+
chunkUZCHVJ6L_cjs.FactSourcesRow,
|
|
7483
7483
|
{
|
|
7484
7484
|
toggle: sourcesToggle,
|
|
7485
7485
|
picker: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -7525,7 +7525,7 @@ function ConnectedFactsPage({
|
|
|
7525
7525
|
}
|
|
7526
7526
|
),
|
|
7527
7527
|
dateInput: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7528
|
-
|
|
7528
|
+
chunkUZCHVJ6L_cjs.FactDateInput,
|
|
7529
7529
|
{
|
|
7530
7530
|
value: composer.draftDateFields,
|
|
7531
7531
|
onChange: composer.setDraftDateFields,
|
|
@@ -7535,13 +7535,13 @@ function ConnectedFactsPage({
|
|
|
7535
7535
|
}
|
|
7536
7536
|
),
|
|
7537
7537
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "scrollbar-subtle flex-1 overflow-y-auto pb-2", children: [
|
|
7538
|
-
isLoading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
7538
|
+
isLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunkUZCHVJ6L_cjs.FactsLoading, {}) : isError ? /* @__PURE__ */ jsxRuntime.jsx(chunkUZCHVJ6L_cjs.FactsLoadError, { onRetry: () => refetch() }) : smartSearch ? (
|
|
7539
7539
|
// Searches facts only (never documents). Kept before the empty-state guard so the
|
|
7540
7540
|
// search UI is reachable even in an empty workspace.
|
|
7541
7541
|
smartSearch({ selectedFactId: editingId, onOpenFact: openFactById })
|
|
7542
7542
|
) : notes.length === 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-full flex-col items-center justify-center", children: [
|
|
7543
7543
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7544
|
-
|
|
7544
|
+
chunkUZCHVJ6L_cjs.FactsEmptyState,
|
|
7545
7545
|
{
|
|
7546
7546
|
onUseExample: (text2) => {
|
|
7547
7547
|
composer.setDraft(text2);
|
|
@@ -7552,7 +7552,7 @@ function ConnectedFactsPage({
|
|
|
7552
7552
|
),
|
|
7553
7553
|
emptyStateExtra
|
|
7554
7554
|
] }) : view === "calendar" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
7555
|
-
|
|
7555
|
+
chunkUZCHVJ6L_cjs.FactsCalendar,
|
|
7556
7556
|
{
|
|
7557
7557
|
facts: filteredNotes,
|
|
7558
7558
|
onSelect: (n) => openEditIfAllowed(n),
|
|
@@ -7561,7 +7561,7 @@ function ConnectedFactsPage({
|
|
|
7561
7561
|
navigatorTotal: filteredNotes.length
|
|
7562
7562
|
}
|
|
7563
7563
|
) : view === "gantt" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
7564
|
-
|
|
7564
|
+
chunkUZCHVJ6L_cjs.FactsGanttPane,
|
|
7565
7565
|
{
|
|
7566
7566
|
items: ganttItems,
|
|
7567
7567
|
labelWidth: pageView.labelWidth,
|
|
@@ -7611,7 +7611,7 @@ function ConnectedFactsPage({
|
|
|
7611
7611
|
)
|
|
7612
7612
|
] }),
|
|
7613
7613
|
selectable && notes.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7614
|
-
|
|
7614
|
+
chunkUZCHVJ6L_cjs.FactsBulkBar,
|
|
7615
7615
|
{
|
|
7616
7616
|
count: selection.selectedFacts.length,
|
|
7617
7617
|
onClear: selection.clearSelection,
|
|
@@ -11226,13 +11226,13 @@ function ConnectedWorkspaceSettings({
|
|
|
11226
11226
|
const [membersExpanded, setMembersExpanded] = React9.useState(false);
|
|
11227
11227
|
const [shareOpen, setShareOpen] = React9.useState(false);
|
|
11228
11228
|
if (!workspace) {
|
|
11229
|
-
return /* @__PURE__ */ jsxRuntime.jsx(chunkJ4OBIE32_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
11229
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkJ4OBIE32_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkYMZAHBFL_cjs.LoadingIndicator, { message: "Loading workspace..." }) });
|
|
11230
11230
|
}
|
|
11231
11231
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
11232
11232
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkJ4OBIE32_cjs.WorkspacePageFrame, { testId, children: [
|
|
11233
11233
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkJ4OBIE32_cjs.WorkspaceIdentityPanel, { children: [
|
|
11234
11234
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11235
|
-
|
|
11235
|
+
chunkYMZAHBFL_cjs.EntityIdentityBar,
|
|
11236
11236
|
{
|
|
11237
11237
|
testId: "workspace-identity-bar",
|
|
11238
11238
|
canEdit: isOwner,
|
|
@@ -11249,7 +11249,7 @@ function ConnectedWorkspaceSettings({
|
|
|
11249
11249
|
label: "Name",
|
|
11250
11250
|
value: workspace.name,
|
|
11251
11251
|
placeholder: "Untitled",
|
|
11252
|
-
maxLength:
|
|
11252
|
+
maxLength: chunkYMZAHBFL_cjs.IDENTITY_NAME_MAX_LENGTH,
|
|
11253
11253
|
valueClassName: "truncate text-base font-semibold",
|
|
11254
11254
|
testId: "workspace-home-title",
|
|
11255
11255
|
hideLabel: true,
|
|
@@ -11591,10 +11591,10 @@ function defaultHouseTemplateLabels() {
|
|
|
11591
11591
|
}
|
|
11592
11592
|
function downloadBuiltin() {
|
|
11593
11593
|
documentTools.downloadBlob(
|
|
11594
|
-
new Blob([
|
|
11594
|
+
new Blob([chunkZ6DNYFVM_cjs.builtinHouseTemplate().bytes], {
|
|
11595
11595
|
type: "application/vnd.openxmlformats-officedocument.wordprocessingml.template"
|
|
11596
11596
|
}),
|
|
11597
|
-
`${
|
|
11597
|
+
`${chunkZ6DNYFVM_cjs.BUILTIN_TEMPLATE_NAME}.dotx`
|
|
11598
11598
|
);
|
|
11599
11599
|
}
|
|
11600
11600
|
function failureMessage(failure) {
|
|
@@ -11689,7 +11689,7 @@ function ConnectedWorkspaceHouseTemplate({
|
|
|
11689
11689
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Button, { size: "sm", variant: "ghost", onClick: downloadBuiltin, children: [
|
|
11690
11690
|
labels.download,
|
|
11691
11691
|
" ",
|
|
11692
|
-
|
|
11692
|
+
chunkZ6DNYFVM_cjs.BUILTIN_TEMPLATE_NAME
|
|
11693
11693
|
] }),
|
|
11694
11694
|
react.isDeploymentAdmin(user) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
11695
11695
|
ui.Button,
|
|
@@ -13711,36 +13711,36 @@ function ConnectedSharePointAdminConsentPage({
|
|
|
13711
13711
|
const result = givenResult === void 0 ? queryResult : givenResult;
|
|
13712
13712
|
const { apiBaseUrl } = chunk6K3VOHHL_cjs.useBlocksEnvironment().runtimeConfig;
|
|
13713
13713
|
const consentUrl = `${apiBaseUrl}/v1/connectors/microsoft_sharepoint/admin-consent`;
|
|
13714
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
13714
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkI3ITXJRO_cjs.ConsentCard, { size: "md", children: [
|
|
13715
13715
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
13716
|
-
|
|
13716
|
+
chunkI3ITXJRO_cjs.ConsentHeader,
|
|
13717
13717
|
{
|
|
13718
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
13718
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.VendorLogo, { vendorKey: "microsoft_sharepoint", product: "sharepoint" }),
|
|
13719
13719
|
title: "Approve ARBI for SharePoint access",
|
|
13720
13720
|
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."
|
|
13721
13721
|
}
|
|
13722
13722
|
),
|
|
13723
|
-
result === "granted" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
13724
|
-
result === "declined" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
13725
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
13723
|
+
result === "granted" && /* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_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." }),
|
|
13724
|
+
result === "declined" && /* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_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." }),
|
|
13725
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkI3ITXJRO_cjs.ConsentSection, { title: "What you are approving", children: [
|
|
13726
13726
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
13727
|
-
|
|
13727
|
+
chunkI3ITXJRO_cjs.ConsentBulletList,
|
|
13728
13728
|
{
|
|
13729
13729
|
items: [
|
|
13730
13730
|
/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
13731
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
13731
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.ConsentStrong, { children: "Read SharePoint sites and files" }),
|
|
13732
13732
|
" \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."
|
|
13733
13733
|
] }),
|
|
13734
13734
|
/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
13735
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
13735
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.ConsentStrong, { children: "Sign users in and keep access" }),
|
|
13736
13736
|
" \u2014 standard sign-in (openid, profile, email) and offline access so syncs keep working between sessions."
|
|
13737
13737
|
] })
|
|
13738
13738
|
]
|
|
13739
13739
|
}
|
|
13740
13740
|
),
|
|
13741
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
13741
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_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." }),
|
|
13742
13742
|
/* @__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" }) }),
|
|
13743
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
13743
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_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." })
|
|
13744
13744
|
] })
|
|
13745
13745
|
] }) });
|
|
13746
13746
|
}
|
|
@@ -16058,7 +16058,7 @@ function WorkspaceCardsView({
|
|
|
16058
16058
|
const { groups, projects, selfId } = list;
|
|
16059
16059
|
if (groups.length === 0) {
|
|
16060
16060
|
return /* @__PURE__ */ jsxRuntime.jsx(chunkJ4OBIE32_cjs.WorkspaceList, { testId: "workspace-cards-list", className: "gap-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
16061
|
-
|
|
16061
|
+
chunkVY3JLGRZ_cjs.CreateTile,
|
|
16062
16062
|
{
|
|
16063
16063
|
label: `New ${workspaceLabel.toLowerCase()}`,
|
|
16064
16064
|
ariaLabel: `Create ${workspaceLabel}`,
|
|
@@ -16103,7 +16103,7 @@ function WorkspaceCardsView({
|
|
|
16103
16103
|
onToggle: () => list.toggleGroup(group.key),
|
|
16104
16104
|
children: [
|
|
16105
16105
|
group.isOwned && group.projectExtId && /* @__PURE__ */ jsxRuntime.jsx(
|
|
16106
|
-
|
|
16106
|
+
chunkVY3JLGRZ_cjs.CreateTile,
|
|
16107
16107
|
{
|
|
16108
16108
|
label: `New ${workspaceLabel.toLowerCase()}`,
|
|
16109
16109
|
ariaLabel: `Create ${workspaceLabel}`,
|
|
@@ -16300,7 +16300,7 @@ function useConnectedWorkspaceList({
|
|
|
16300
16300
|
};
|
|
16301
16301
|
}
|
|
16302
16302
|
var WorkspaceTableView = React9.lazy(
|
|
16303
|
-
() => import('../WorkspaceTableView-
|
|
16303
|
+
() => import('../WorkspaceTableView-OUPRGWRJ.cjs').then((m) => ({ default: m.WorkspaceTableView }))
|
|
16304
16304
|
);
|
|
16305
16305
|
var WORKSPACES_TAB_ID = "workspaces";
|
|
16306
16306
|
var defaultRenderMember2 = (user, size) => {
|
|
@@ -16353,10 +16353,10 @@ function ConnectedWorkspaceList({
|
|
|
16353
16353
|
else void openWorkspace(workspace.external_id, { name: workspace.name });
|
|
16354
16354
|
};
|
|
16355
16355
|
const createDisabledReason = list.canCreateProjects === false ? react.PROJECT_CREATION_DENIED_REASON : void 0;
|
|
16356
|
-
if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(
|
|
16356
|
+
if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(chunkYMZAHBFL_cjs.LoadingIndicator, { message: "Loading workspaces..." });
|
|
16357
16357
|
if (list.error) {
|
|
16358
16358
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
16359
|
-
|
|
16359
|
+
chunkVY3JLGRZ_cjs.HomeLoadError,
|
|
16360
16360
|
{
|
|
16361
16361
|
title: "Unable to load workspaces",
|
|
16362
16362
|
body: "Failed to connect to the server. Please check your connection and try again."
|
|
@@ -16376,7 +16376,7 @@ function ConnectedWorkspaceList({
|
|
|
16376
16376
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { className: "mr-0.5 size-4" }),
|
|
16377
16377
|
"New"
|
|
16378
16378
|
] });
|
|
16379
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
16379
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkVY3JLGRZ_cjs.HomeFrame, { children: [
|
|
16380
16380
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16381
16381
|
chunkMEMWZ72Y_cjs.TabHeader,
|
|
16382
16382
|
{
|
|
@@ -16412,9 +16412,9 @@ function ConnectedWorkspaceList({
|
|
|
16412
16412
|
),
|
|
16413
16413
|
showList && // Above whichever view shows: both draw the same filtered groups.
|
|
16414
16414
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mx-auto w-full max-w-6xl px-4 pb-3 sm:px-8", children: /* @__PURE__ */ jsxRuntime.jsx(WorkspaceFilterMenu, { list }) }),
|
|
16415
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16415
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkVY3JLGRZ_cjs.HomeMain, { children: !showList ? children : shownView === "cards" ? (
|
|
16416
16416
|
// Full-width scroller (its scrollbar rides the window edge) around a centred column.
|
|
16417
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16417
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkVY3JLGRZ_cjs.HomeCenteredScroll, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
16418
16418
|
WorkspaceCardsView,
|
|
16419
16419
|
{
|
|
16420
16420
|
list,
|
|
@@ -16426,7 +16426,7 @@ function ConnectedWorkspaceList({
|
|
|
16426
16426
|
workspaceState
|
|
16427
16427
|
}
|
|
16428
16428
|
) })
|
|
16429
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(React9.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
16429
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(React9.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkYMZAHBFL_cjs.LoadingIndicator, { message: "Loading grid..." }), children: /* @__PURE__ */ jsxRuntime.jsx(chunkVY3JLGRZ_cjs.HomeCenteredColumn, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
16430
16430
|
WorkspaceTableView,
|
|
16431
16431
|
{
|
|
16432
16432
|
list,
|
|
@@ -16668,7 +16668,7 @@ function ProjectsListPage({
|
|
|
16668
16668
|
}
|
|
16669
16669
|
),
|
|
16670
16670
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16671
|
-
|
|
16671
|
+
chunkYMZAHBFL_cjs.Toolbar,
|
|
16672
16672
|
{
|
|
16673
16673
|
search,
|
|
16674
16674
|
onSearch: setSearch,
|
|
@@ -16981,7 +16981,7 @@ var COMPACT_BELOW = 132;
|
|
|
16981
16981
|
var NO_DOCUMENTS = [];
|
|
16982
16982
|
function useFilesWorkspace() {
|
|
16983
16983
|
const { workspaceId, userId, live } = chunkN7RRXCEZ_cjs.useConnectedWorkspace();
|
|
16984
|
-
const { members, role } =
|
|
16984
|
+
const { members, role } = chunkQ6N56ZBF_cjs.useConnectedWorkspaceRole();
|
|
16985
16985
|
const { data: workspaces } = react.useWorkspaces({ enabled: live });
|
|
16986
16986
|
const workspaceName = workspaces?.find((w) => w.external_id === workspaceId)?.name;
|
|
16987
16987
|
return {
|
|
@@ -17045,9 +17045,9 @@ var ConnectedFilesExplorer = React9.forwardRef(function ConnectedFilesExplorer2(
|
|
|
17045
17045
|
for (const tag of workspaceTags ?? []) map.set(tag.external_id, tag.name);
|
|
17046
17046
|
return map;
|
|
17047
17047
|
}, [workspaceTags]);
|
|
17048
|
-
const pendingFolders =
|
|
17049
|
-
const addPendingFolder =
|
|
17050
|
-
const removePendingFolder =
|
|
17048
|
+
const pendingFolders = chunkZDX7X7R5_cjs.usePendingFolders(wsId);
|
|
17049
|
+
const addPendingFolder = chunkZDX7X7R5_cjs.useFilesStore((state) => state.addPendingFolder);
|
|
17050
|
+
const removePendingFolder = chunkZDX7X7R5_cjs.useFilesStore((state) => state.removePendingFolder);
|
|
17051
17051
|
const [editingFolderPath, setEditingFolderPath] = React9.useState(null);
|
|
17052
17052
|
const isSearching = search.trim().length > 0;
|
|
17053
17053
|
const selectedSet = React9.useMemo(() => new Set(selectedIds), [selectedIds]);
|
|
@@ -17056,8 +17056,8 @@ var ConnectedFilesExplorer = React9.forwardRef(function ConnectedFilesExplorer2(
|
|
|
17056
17056
|
const { folders, files } = React9.useMemo(() => {
|
|
17057
17057
|
const result = isSearching ? {
|
|
17058
17058
|
folders: [],
|
|
17059
|
-
files:
|
|
17060
|
-
} :
|
|
17059
|
+
files: chunkSRD5YJJI_cjs.searchExplorerDocuments(documents, search, sort)
|
|
17060
|
+
} : chunkSRD5YJJI_cjs.buildExplorerEntries(documents, currentPath, sort, [...pendingFolders]);
|
|
17061
17061
|
if (sortReversed) result.files = [...result.files].reverse();
|
|
17062
17062
|
return result;
|
|
17063
17063
|
}, [documents, currentPath, sort, isSearching, search, sortReversed, pendingFolders]);
|
|
@@ -17068,7 +17068,7 @@ var ConnectedFilesExplorer = React9.forwardRef(function ConnectedFilesExplorer2(
|
|
|
17068
17068
|
const orderedFileIds = React9.useMemo(() => files.map((d) => d.external_id), [files]);
|
|
17069
17069
|
const folderDocs = React9.useMemo(() => {
|
|
17070
17070
|
const map = /* @__PURE__ */ new Map();
|
|
17071
|
-
for (const f of folders) map.set(f.path.join("/"),
|
|
17071
|
+
for (const f of folders) map.set(f.path.join("/"), chunkSRD5YJJI_cjs.collectFolderDocs(documents, f.path));
|
|
17072
17072
|
return map;
|
|
17073
17073
|
}, [folders, documents]);
|
|
17074
17074
|
const folderSelection = React9.useMemo(() => {
|
|
@@ -17216,7 +17216,7 @@ var ConnectedFilesExplorer = React9.forwardRef(function ConnectedFilesExplorer2(
|
|
|
17216
17216
|
let name = base;
|
|
17217
17217
|
let i = 2;
|
|
17218
17218
|
while (siblings.has(name.toLowerCase())) name = `${base} ${i++}`;
|
|
17219
|
-
const path =
|
|
17219
|
+
const path = chunkSRD5YJJI_cjs.joinFolderPath([...currentPath, name]);
|
|
17220
17220
|
if (!path) return;
|
|
17221
17221
|
addPendingFolder(wsId, path);
|
|
17222
17222
|
setEditingFolderPath(path);
|
|
@@ -17252,10 +17252,10 @@ var ConnectedFilesExplorer = React9.forwardRef(function ConnectedFilesExplorer2(
|
|
|
17252
17252
|
notify18(`A folder named "${name}" already exists here.`, "error");
|
|
17253
17253
|
return;
|
|
17254
17254
|
}
|
|
17255
|
-
const oldPath =
|
|
17255
|
+
const oldPath = chunkSRD5YJJI_cjs.joinFolderPath(folder.path);
|
|
17256
17256
|
const newPrefix = [...folder.path.slice(0, -1), name];
|
|
17257
|
-
const newPath =
|
|
17258
|
-
const docs =
|
|
17257
|
+
const newPath = chunkSRD5YJJI_cjs.joinFolderPath(newPrefix);
|
|
17258
|
+
const docs = chunkSRD5YJJI_cjs.collectFolderDocs(documents, folder.path);
|
|
17259
17259
|
try {
|
|
17260
17260
|
if (await renameFolder(docs, folder.path, newPrefix) > 0) {
|
|
17261
17261
|
notify18(`Renamed folder to "${name}"`, "success");
|
|
@@ -17314,7 +17314,7 @@ var ConnectedFilesExplorer = React9.forwardRef(function ConnectedFilesExplorer2(
|
|
|
17314
17314
|
const handleToggleFolder = React9.useCallback(
|
|
17315
17315
|
(folder, e) => {
|
|
17316
17316
|
e.stopPropagation();
|
|
17317
|
-
const ids =
|
|
17317
|
+
const ids = chunkSRD5YJJI_cjs.collectFolderDocs(documents, folder.path).map((d) => d.external_id);
|
|
17318
17318
|
if (ids.length === 0) return;
|
|
17319
17319
|
if (ids.every((id) => selectedSet.has(id))) {
|
|
17320
17320
|
const remove = new Set(ids);
|
|
@@ -17375,9 +17375,9 @@ var ConnectedFilesExplorer = React9.forwardRef(function ConnectedFilesExplorer2(
|
|
|
17375
17375
|
);
|
|
17376
17376
|
const handleDelete = React9.useCallback(
|
|
17377
17377
|
async (doc) => {
|
|
17378
|
-
const name =
|
|
17378
|
+
const name = chunkSRD5YJJI_cjs.getExplorerDisplayName(doc);
|
|
17379
17379
|
const confirmed = await confirm({
|
|
17380
|
-
message: `Delete "${name}"? ${
|
|
17380
|
+
message: `Delete "${name}"? ${chunkSRD5YJJI_cjs.RECENTLY_DELETED_HINT}`,
|
|
17381
17381
|
title: "Delete file"
|
|
17382
17382
|
});
|
|
17383
17383
|
if (!confirmed) return;
|
|
@@ -17397,7 +17397,7 @@ var ConnectedFilesExplorer = React9.forwardRef(function ConnectedFilesExplorer2(
|
|
|
17397
17397
|
);
|
|
17398
17398
|
const handleFolderDownload = React9.useCallback(
|
|
17399
17399
|
(folder) => {
|
|
17400
|
-
const docs =
|
|
17400
|
+
const docs = chunkSRD5YJJI_cjs.collectFolderDocs(documents, folder.path);
|
|
17401
17401
|
if (docs.length > 0) void downloadDocuments(docs);
|
|
17402
17402
|
},
|
|
17403
17403
|
[documents, downloadDocuments]
|
|
@@ -17406,7 +17406,7 @@ var ConnectedFilesExplorer = React9.forwardRef(function ConnectedFilesExplorer2(
|
|
|
17406
17406
|
if (onFolderMove) return onFolderMove;
|
|
17407
17407
|
if (!onMoveSelected) return void 0;
|
|
17408
17408
|
return (folder) => {
|
|
17409
|
-
const ids =
|
|
17409
|
+
const ids = chunkSRD5YJJI_cjs.collectFolderDocs(documents, folder.path).map((d) => d.external_id);
|
|
17410
17410
|
if (ids.length === 0) return;
|
|
17411
17411
|
onSelectionChange(ids);
|
|
17412
17412
|
onMoveSelected();
|
|
@@ -17414,14 +17414,14 @@ var ConnectedFilesExplorer = React9.forwardRef(function ConnectedFilesExplorer2(
|
|
|
17414
17414
|
}, [documents, onFolderMove, onMoveSelected, onSelectionChange]);
|
|
17415
17415
|
const handleFolderDelete = React9.useCallback(
|
|
17416
17416
|
async (folder) => {
|
|
17417
|
-
const docs =
|
|
17417
|
+
const docs = chunkSRD5YJJI_cjs.collectFolderDocs(documents, folder.path);
|
|
17418
17418
|
if (docs.length === 0) {
|
|
17419
|
-
const path =
|
|
17419
|
+
const path = chunkSRD5YJJI_cjs.joinFolderPath(folder.path);
|
|
17420
17420
|
if (wsId && path) removePendingFolder(wsId, path);
|
|
17421
17421
|
return;
|
|
17422
17422
|
}
|
|
17423
17423
|
const confirmed = await confirm({
|
|
17424
|
-
message: `Delete folder "${folder.name}" and its ${docs.length} item${docs.length === 1 ? "" : "s"}? ${
|
|
17424
|
+
message: `Delete folder "${folder.name}" and its ${docs.length} item${docs.length === 1 ? "" : "s"}? ${chunkSRD5YJJI_cjs.RECENTLY_DELETED_HINT_PLURAL}`,
|
|
17425
17425
|
title: "Delete folder"
|
|
17426
17426
|
});
|
|
17427
17427
|
if (!confirmed) return;
|
|
@@ -17438,8 +17438,8 @@ var ConnectedFilesExplorer = React9.forwardRef(function ConnectedFilesExplorer2(
|
|
|
17438
17438
|
[confirm, documents, deleteDocuments, onSelectionChange, removePendingFolder, wsId, notify18]
|
|
17439
17439
|
);
|
|
17440
17440
|
const canDeleteFolder = React9.useCallback(
|
|
17441
|
-
(folder) => canUpload &&
|
|
17442
|
-
(doc) =>
|
|
17441
|
+
(folder) => canUpload && chunkSRD5YJJI_cjs.collectFolderDocs(documents, folder.path).every(
|
|
17442
|
+
(doc) => chunkSRD5YJJI_cjs.canDeleteDocument(doc, userId, role)
|
|
17443
17443
|
),
|
|
17444
17444
|
[canUpload, documents, userId, role]
|
|
17445
17445
|
);
|
|
@@ -17498,7 +17498,7 @@ var ConnectedFilesExplorer = React9.forwardRef(function ConnectedFilesExplorer2(
|
|
|
17498
17498
|
setActiveDragId(null);
|
|
17499
17499
|
const data = event.over?.data.current;
|
|
17500
17500
|
if (data?.type === "folder" && data.path) {
|
|
17501
|
-
const targetFolder =
|
|
17501
|
+
const targetFolder = chunkSRD5YJJI_cjs.joinFolderPath(data.path);
|
|
17502
17502
|
const moving = dragIdsRef.current.filter((id) => {
|
|
17503
17503
|
const doc = documents.find((d) => d.external_id === id);
|
|
17504
17504
|
return doc && (doc.folder ?? null) !== targetFolder;
|
|
@@ -17538,7 +17538,7 @@ var ConnectedFilesExplorer = React9.forwardRef(function ConnectedFilesExplorer2(
|
|
|
17538
17538
|
const dropped = Array.from(e.dataTransfer.files ?? []);
|
|
17539
17539
|
if (dropped.length > 0) {
|
|
17540
17540
|
e.preventDefault();
|
|
17541
|
-
onUploadFiles(dropped,
|
|
17541
|
+
onUploadFiles(dropped, chunkSRD5YJJI_cjs.joinFolderPath(currentPath));
|
|
17542
17542
|
}
|
|
17543
17543
|
},
|
|
17544
17544
|
[canUpload, currentPath, onUploadFiles]
|
|
@@ -17555,9 +17555,9 @@ var ConnectedFilesExplorer = React9.forwardRef(function ConnectedFilesExplorer2(
|
|
|
17555
17555
|
onDragEnd: handleDragEnd,
|
|
17556
17556
|
onDragCancel: () => setActiveDragId(null),
|
|
17557
17557
|
children: [
|
|
17558
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
17558
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.ExplorerFrame, { "data-testid": "documents-explorer", children: /* @__PURE__ */ jsxRuntime.jsxs(chunkSRD5YJJI_cjs.ExplorerStage, { children: [
|
|
17559
17559
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
17560
|
-
|
|
17560
|
+
chunkSRD5YJJI_cjs.ExplorerScroller,
|
|
17561
17561
|
{
|
|
17562
17562
|
ref: scrollRef,
|
|
17563
17563
|
onClick: handleBackgroundClick,
|
|
@@ -17567,15 +17567,15 @@ var ConnectedFilesExplorer = React9.forwardRef(function ConnectedFilesExplorer2(
|
|
|
17567
17567
|
onDragLeave: handleNativeDragLeave,
|
|
17568
17568
|
onDrop: handleNativeDrop,
|
|
17569
17569
|
"data-testid": "explorer-scroll",
|
|
17570
|
-
children: isLoading && documents.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
17571
|
-
|
|
17570
|
+
children: isLoading && documents.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.ExplorerLoadingTiles, {}) : entries.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
17571
|
+
chunkSRD5YJJI_cjs.ExplorerEmpty,
|
|
17572
17572
|
{
|
|
17573
17573
|
title: isSearching ? `No files match "${search.trim()}"` : "This folder is empty",
|
|
17574
17574
|
description: isSearching ? "Try a different search." : canUpload ? "Drop files here or use Upload to add documents." : "No documents here yet."
|
|
17575
17575
|
}
|
|
17576
17576
|
) : containerWidth === 0 ? (
|
|
17577
17577
|
// Not measured yet: rendering now would flash one stretched column.
|
|
17578
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
17578
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.ExplorerLoadingTiles, {})
|
|
17579
17579
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
17580
17580
|
"div",
|
|
17581
17581
|
{
|
|
@@ -17605,7 +17605,7 @@ var ConnectedFilesExplorer = React9.forwardRef(function ConnectedFilesExplorer2(
|
|
|
17605
17605
|
if (entry.kind === "folder") {
|
|
17606
17606
|
const key = entry.path.join("/");
|
|
17607
17607
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17608
|
-
|
|
17608
|
+
chunkZDX7X7R5_cjs.FolderTile,
|
|
17609
17609
|
{
|
|
17610
17610
|
folder: entry,
|
|
17611
17611
|
density,
|
|
@@ -17628,7 +17628,7 @@ var ConnectedFilesExplorer = React9.forwardRef(function ConnectedFilesExplorer2(
|
|
|
17628
17628
|
}
|
|
17629
17629
|
const doc = entry.doc;
|
|
17630
17630
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17631
|
-
|
|
17631
|
+
chunkZDX7X7R5_cjs.FileTile,
|
|
17632
17632
|
{
|
|
17633
17633
|
doc,
|
|
17634
17634
|
density,
|
|
@@ -17636,7 +17636,7 @@ var ConnectedFilesExplorer = React9.forwardRef(function ConnectedFilesExplorer2(
|
|
|
17636
17636
|
dragging: activeDragId === doc.external_id,
|
|
17637
17637
|
dndActive: activeDragId !== null,
|
|
17638
17638
|
renaming: renamingId === doc.external_id,
|
|
17639
|
-
canDelete:
|
|
17639
|
+
canDelete: chunkSRD5YJJI_cjs.canDeleteDocument(doc, userId, role),
|
|
17640
17640
|
thumbnailUrl: thumbnailsById.get(doc.external_id),
|
|
17641
17641
|
modifiedBy: userById.get(
|
|
17642
17642
|
doc.updated_by_ext_id ?? doc.created_by_ext_id
|
|
@@ -17665,9 +17665,9 @@ var ConnectedFilesExplorer = React9.forwardRef(function ConnectedFilesExplorer2(
|
|
|
17665
17665
|
)
|
|
17666
17666
|
}
|
|
17667
17667
|
),
|
|
17668
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
17668
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.ExplorerMarquee, { ref: marqueeOverlayRef, "data-testid": "explorer-marquee" }),
|
|
17669
17669
|
isFileDragOver && /* @__PURE__ */ jsxRuntime.jsx(
|
|
17670
|
-
|
|
17670
|
+
chunkSRD5YJJI_cjs.ExplorerDropOverlay,
|
|
17671
17671
|
{
|
|
17672
17672
|
label: `Drop to upload${currentPath.length > 0 ? ` to "${currentPath[currentPath.length - 1]}"` : ""}`
|
|
17673
17673
|
}
|
|
@@ -17681,7 +17681,7 @@ var ConnectedFilesExplorer = React9.forwardRef(function ConnectedFilesExplorer2(
|
|
|
17681
17681
|
function DragPreview({ doc, count: count2 }) {
|
|
17682
17682
|
const Icon = ui.getFileTypeIcon(doc.file_name, { mime: doc.file_type });
|
|
17683
17683
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17684
|
-
|
|
17684
|
+
chunkSRD5YJJI_cjs.ExplorerDragPreview,
|
|
17685
17685
|
{
|
|
17686
17686
|
icon: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: 20 }),
|
|
17687
17687
|
title: ui.getDocumentTitle(doc, doc.file_name ?? "Untitled"),
|
|
@@ -17741,7 +17741,7 @@ function ProjectChronology({
|
|
|
17741
17741
|
})),
|
|
17742
17742
|
[facts]
|
|
17743
17743
|
);
|
|
17744
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ui.Card, { className: "h-[min(70dvh,640px)] overflow-hidden", "data-testid": testId, children: isLoading ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "p-4 text-sm text-muted-foreground", children: loading }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
17744
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ui.Card, { className: "h-[min(70dvh,640px)] overflow-hidden", "data-testid": testId, children: isLoading ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "p-4 text-sm text-muted-foreground", children: loading }) : /* @__PURE__ */ jsxRuntime.jsx(chunkUZCHVJ6L_cjs.FactsGanttPane, { items, testId: `${testId}-gantt`, labels: { ganttEmpty: empty } }) });
|
|
17745
17745
|
}
|
|
17746
17746
|
function ProjectThreads({
|
|
17747
17747
|
projectId,
|
|
@@ -18822,7 +18822,7 @@ function recentConversations(conversations) {
|
|
|
18822
18822
|
return [...conversations].sort((a, b) => time(b.updated_at) - time(a.updated_at)).slice(0, RECENT_ROWS).map((c) => ({
|
|
18823
18823
|
id: c.external_id,
|
|
18824
18824
|
title: c.title?.trim() || "Untitled thread",
|
|
18825
|
-
subtitle: c.status ? [
|
|
18825
|
+
subtitle: c.status ? [chunkI3ITXJRO_cjs.STATUS_LABELS[chunkI3ITXJRO_cjs.asTaskStatus(c.status)], c.due_at ? `due ${shortDate(c.due_at)}` : null].filter(Boolean).join(" \xB7 ") : `${c.message_count} ${c.message_count === 1 ? "message" : "messages"}`,
|
|
18826
18826
|
time: timeAndDate(c.updated_at)
|
|
18827
18827
|
}));
|
|
18828
18828
|
}
|
|
@@ -18888,19 +18888,19 @@ function ConnectedWorkspaceDashboard({
|
|
|
18888
18888
|
const { upcoming: upcoming2, recent: recent2 } = splitFacts(facts);
|
|
18889
18889
|
const toRow = (row2) => ({
|
|
18890
18890
|
...row2,
|
|
18891
|
-
leading: /* @__PURE__ */ jsxRuntime.jsx(
|
|
18891
|
+
leading: /* @__PURE__ */ jsxRuntime.jsx(chunkVY3JLGRZ_cjs.FactMark, {}),
|
|
18892
18892
|
// The item, not the list: the Facts page scrolls to this fact.
|
|
18893
18893
|
onSelect: () => actions.openFact(row2.id)
|
|
18894
18894
|
});
|
|
18895
18895
|
return { upcoming: upcoming2.map(toRow), recent: recent2.map(toRow) };
|
|
18896
18896
|
}, [facts, actions]);
|
|
18897
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
18898
|
-
start && /* @__PURE__ */ jsxRuntime.jsx(
|
|
18899
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
18900
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18901
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
18897
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkVY3JLGRZ_cjs.DashboardRoot, { testId, children: [
|
|
18898
|
+
start && /* @__PURE__ */ jsxRuntime.jsx(chunkVY3JLGRZ_cjs.DashboardBand, { kind: "start", children: start }),
|
|
18899
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkVY3JLGRZ_cjs.DashboardBand, { kind: "recent", children: [
|
|
18900
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkRZUZBHIH_cjs.SectionLabel, { testId: `${testId}-recent-caption`, children: "Recent" }),
|
|
18901
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkVY3JLGRZ_cjs.DashboardColumns, { children: [
|
|
18902
18902
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18903
|
-
|
|
18903
|
+
chunkVY3JLGRZ_cjs.RecentList,
|
|
18904
18904
|
{
|
|
18905
18905
|
testId: `${testId}-docs`,
|
|
18906
18906
|
icon: lucideReact.FileText,
|
|
@@ -18919,7 +18919,7 @@ function ConnectedWorkspaceDashboard({
|
|
|
18919
18919
|
}
|
|
18920
18920
|
),
|
|
18921
18921
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18922
|
-
|
|
18922
|
+
chunkVY3JLGRZ_cjs.RecentList,
|
|
18923
18923
|
{
|
|
18924
18924
|
testId: `${testId}-chats`,
|
|
18925
18925
|
icon: lucideReact.MessagesSquare,
|
|
@@ -18928,7 +18928,7 @@ function ConnectedWorkspaceDashboard({
|
|
|
18928
18928
|
onOpen: () => actions.openSection("threads"),
|
|
18929
18929
|
action: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
18930
18930
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18931
|
-
|
|
18931
|
+
chunkVY3JLGRZ_cjs.DashboardAction,
|
|
18932
18932
|
{
|
|
18933
18933
|
emphasis: "primary",
|
|
18934
18934
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { className: "size-4" }),
|
|
@@ -18938,7 +18938,7 @@ function ConnectedWorkspaceDashboard({
|
|
|
18938
18938
|
}
|
|
18939
18939
|
),
|
|
18940
18940
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18941
|
-
|
|
18941
|
+
chunkVY3JLGRZ_cjs.DashboardAction,
|
|
18942
18942
|
{
|
|
18943
18943
|
emphasis: "quiet",
|
|
18944
18944
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { className: "size-4" }),
|
|
@@ -18960,9 +18960,9 @@ function ConnectedWorkspaceDashboard({
|
|
|
18960
18960
|
)
|
|
18961
18961
|
] })
|
|
18962
18962
|
] }),
|
|
18963
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
18963
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkVY3JLGRZ_cjs.DashboardColumns, { children: [
|
|
18964
18964
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18965
|
-
|
|
18965
|
+
chunkVY3JLGRZ_cjs.FactsStrip,
|
|
18966
18966
|
{
|
|
18967
18967
|
testId: `${testId}-facts`,
|
|
18968
18968
|
icon: lucideReact.Milestone,
|
|
@@ -18970,7 +18970,7 @@ function ConnectedWorkspaceDashboard({
|
|
|
18970
18970
|
count: facts.length,
|
|
18971
18971
|
onOpen: () => actions.openSection("facts"),
|
|
18972
18972
|
action: /* @__PURE__ */ jsxRuntime.jsx(
|
|
18973
|
-
|
|
18973
|
+
chunkVY3JLGRZ_cjs.DashboardAction,
|
|
18974
18974
|
{
|
|
18975
18975
|
emphasis: "quiet",
|
|
18976
18976
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { className: "size-4" }),
|
|
@@ -19624,7 +19624,7 @@ var MailBodyEditor = React9.lazy(
|
|
|
19624
19624
|
}))
|
|
19625
19625
|
);
|
|
19626
19626
|
var NativeDocxEditor = React9.lazy(
|
|
19627
|
-
() => import('../NativeDocxEditor-
|
|
19627
|
+
() => import('../NativeDocxEditor-HE4PQV5F.cjs').then((m) => ({ default: m.NativeDocxEditor }))
|
|
19628
19628
|
);
|
|
19629
19629
|
var NO_WORD = {
|
|
19630
19630
|
adapter: {
|
|
@@ -20803,7 +20803,7 @@ function ConnectedMailbox({
|
|
|
20803
20803
|
onTabChange: () => {
|
|
20804
20804
|
},
|
|
20805
20805
|
compactBreakpoint: 360,
|
|
20806
|
-
firstTabContent: account ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
20806
|
+
firstTabContent: account ? /* @__PURE__ */ jsxRuntime.jsxs(chunkSRD5YJJI_cjs.FilesFilterBar, { children: [
|
|
20807
20807
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
20808
20808
|
chunk2EI7NCUA_cjs.FilterInput,
|
|
20809
20809
|
{
|
|
@@ -20838,7 +20838,7 @@ function ConnectedMailbox({
|
|
|
20838
20838
|
}
|
|
20839
20839
|
),
|
|
20840
20840
|
folderList && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex shrink-0 items-center gap-2", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
20841
|
-
|
|
20841
|
+
chunkSRD5YJJI_cjs.FolderFilterButton,
|
|
20842
20842
|
{
|
|
20843
20843
|
label: folderList.find((f) => f.id === folderId)?.name ?? "Folders",
|
|
20844
20844
|
isActive: false,
|
|
@@ -20846,7 +20846,7 @@ function ConnectedMailbox({
|
|
|
20846
20846
|
onOpenChange: setFolderMenuOpen,
|
|
20847
20847
|
testId: "mail-folder-button",
|
|
20848
20848
|
children: folderList.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
20849
|
-
|
|
20849
|
+
chunkSRD5YJJI_cjs.FolderPickerRow,
|
|
20850
20850
|
{
|
|
20851
20851
|
label: item.name,
|
|
20852
20852
|
count: item.unread > 0 ? item.unread : void 0,
|
|
@@ -22580,7 +22580,7 @@ function EventEditorDialog({
|
|
|
22580
22580
|
const { notify: notify18, runtimeConfig } = chunk6K3VOHHL_cjs.useBlocksEnvironment();
|
|
22581
22581
|
const attachmentDocuments = documents.map((document2) => ({
|
|
22582
22582
|
doc_id: document2.external_id,
|
|
22583
|
-
title:
|
|
22583
|
+
title: chunkQ6N56ZBF_cjs.toWorkflowFieldDocument(document2).title,
|
|
22584
22584
|
url: chunk725OETK3_cjs.buildDeepLinkUrl(
|
|
22585
22585
|
{ workspaceId: workspaceId ?? void 0, documentId: document2.external_id },
|
|
22586
22586
|
runtimeConfig.deploymentDomain
|
|
@@ -24596,7 +24596,7 @@ function ConnectedUploadDropzone({
|
|
|
24596
24596
|
const onFiles = browse(fileInputRef);
|
|
24597
24597
|
const onFolder = browse(folderInputRef);
|
|
24598
24598
|
const dropTarget = /* @__PURE__ */ jsxRuntime.jsx(
|
|
24599
|
-
|
|
24599
|
+
chunkSRD5YJJI_cjs.UploadDropArea,
|
|
24600
24600
|
{
|
|
24601
24601
|
isActive: dragActive,
|
|
24602
24602
|
isDisabled: disabled,
|
|
@@ -24610,11 +24610,11 @@ function ConnectedUploadDropzone({
|
|
|
24610
24610
|
onClick: (e) => {
|
|
24611
24611
|
if (e.target === e.currentTarget) onFiles();
|
|
24612
24612
|
},
|
|
24613
|
-
actions: compact ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
24613
|
+
actions: compact ? /* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.UploadBrowseButtons, { onFiles, onFolder, isDisabled: disabled }) : void 0
|
|
24614
24614
|
}
|
|
24615
24615
|
);
|
|
24616
24616
|
const urlDialog = (trigger) => onUrlsSubmit ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
24617
|
-
|
|
24617
|
+
chunkSRD5YJJI_cjs.UrlInputDialog,
|
|
24618
24618
|
{
|
|
24619
24619
|
onUrlsSubmit,
|
|
24620
24620
|
processing: disabled,
|
|
@@ -24627,12 +24627,12 @@ function ConnectedUploadDropzone({
|
|
|
24627
24627
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
24628
24628
|
dropTarget,
|
|
24629
24629
|
compactLeadingAction,
|
|
24630
|
-
onUrlsSubmit && /* @__PURE__ */ jsxRuntime.jsx(
|
|
24630
|
+
onUrlsSubmit && /* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.UploadSourceSection, { isIsolated: true, className: "flex flex-wrap justify-center gap-2", children: urlDialog(/* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.UploadUrlButton, { isDisabled: disabled, isCompact: true })) })
|
|
24631
24631
|
] });
|
|
24632
24632
|
}
|
|
24633
24633
|
if (!source) {
|
|
24634
24634
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
24635
|
-
|
|
24635
|
+
chunkSRD5YJJI_cjs.UploadSourcePicker,
|
|
24636
24636
|
{
|
|
24637
24637
|
isDisabled: disabled,
|
|
24638
24638
|
options: [
|
|
@@ -24668,14 +24668,14 @@ function ConnectedUploadDropzone({
|
|
|
24668
24668
|
}
|
|
24669
24669
|
if (source === "computer") {
|
|
24670
24670
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
24671
|
-
|
|
24671
|
+
chunkSRD5YJJI_cjs.UploadSourceSection,
|
|
24672
24672
|
{
|
|
24673
24673
|
testId: "upload-source-computer",
|
|
24674
24674
|
className: "flex w-full flex-col gap-3 pointer-coarse:flex-col-reverse",
|
|
24675
24675
|
children: [
|
|
24676
24676
|
dropTarget,
|
|
24677
24677
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
24678
|
-
|
|
24678
|
+
chunkSRD5YJJI_cjs.UploadBrowseButtons,
|
|
24679
24679
|
{
|
|
24680
24680
|
layout: "grid",
|
|
24681
24681
|
onFiles,
|
|
@@ -24688,15 +24688,15 @@ function ConnectedUploadDropzone({
|
|
|
24688
24688
|
);
|
|
24689
24689
|
}
|
|
24690
24690
|
if (source === "internet" && onUrlsSubmit) {
|
|
24691
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
24691
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.UploadSourceSection, { testId: "upload-source-internet", className: "flex flex-wrap gap-2", children: /* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.UploadSourceSection, { isIsolated: true, children: urlDialog(/* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.UploadUrlButton, { isDisabled: disabled })) }) });
|
|
24692
24692
|
}
|
|
24693
24693
|
if (source === "email" && accounts) {
|
|
24694
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
24694
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.UploadSourceSection, { testId: "upload-source-email", isIsolated: true, children: accounts });
|
|
24695
24695
|
}
|
|
24696
24696
|
return null;
|
|
24697
24697
|
})();
|
|
24698
24698
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
24699
|
-
|
|
24699
|
+
chunkSRD5YJJI_cjs.UploadFrame,
|
|
24700
24700
|
{
|
|
24701
24701
|
isCompact: compact,
|
|
24702
24702
|
isDimmed: disabled || processingMessage !== null,
|
|
@@ -24812,7 +24812,7 @@ function ProcessingSettingsFooter({
|
|
|
24812
24812
|
[configField]
|
|
24813
24813
|
);
|
|
24814
24814
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
24815
|
-
|
|
24815
|
+
chunkSRD5YJJI_cjs.UploadFooterBar,
|
|
24816
24816
|
{
|
|
24817
24817
|
skipDuplicates,
|
|
24818
24818
|
onSkipDuplicatesChange: (value) => handleConfigChange("Parser", "SKIP_DUPLICATES", value),
|
|
@@ -24821,7 +24821,7 @@ function ProcessingSettingsFooter({
|
|
|
24821
24821
|
autoRenameInstruction,
|
|
24822
24822
|
onAutoRenameInstructionChange: (value) => handleConfigChange("DoctagLLM", "AUTO_RENAME_INSTRUCTION", value),
|
|
24823
24823
|
shareToggle: /* @__PURE__ */ jsxRuntime.jsx(
|
|
24824
|
-
|
|
24824
|
+
chunkSRD5YJJI_cjs.ShareToggle,
|
|
24825
24825
|
{
|
|
24826
24826
|
isVisible: isShared,
|
|
24827
24827
|
onToggle: onSharedChange,
|
|
@@ -24850,7 +24850,7 @@ function plural3(count2) {
|
|
|
24850
24850
|
function DefaultFooter({ submit, shared, onSharedChange }) {
|
|
24851
24851
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex shrink-0 items-center justify-end gap-4 border-t border-border px-4 py-3 sm:px-6", children: [
|
|
24852
24852
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
24853
|
-
|
|
24853
|
+
chunkSRD5YJJI_cjs.ShareToggle,
|
|
24854
24854
|
{
|
|
24855
24855
|
isVisible: shared,
|
|
24856
24856
|
onToggle: onSharedChange,
|
|
@@ -25016,7 +25016,7 @@ ${summary}`,
|
|
|
25016
25016
|
}
|
|
25017
25017
|
);
|
|
25018
25018
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-0 flex-1 flex-col", "data-testid": "upload-documents", children: [
|
|
25019
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-h-0 flex-1 overflow-y-auto pb-2", children: uploading === null ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
25019
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-h-0 flex-1 overflow-y-auto pb-2", children: uploading === null ? /* @__PURE__ */ jsxRuntime.jsxs(chunkSRD5YJJI_cjs.UploadContainer, { className: "w-full px-4 pb-4 pt-2 sm:px-6", children: [
|
|
25020
25020
|
files.length === 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
25021
25021
|
ConnectedUploadDropzone,
|
|
25022
25022
|
{
|
|
@@ -25032,7 +25032,7 @@ ${summary}`,
|
|
|
25032
25032
|
}
|
|
25033
25033
|
),
|
|
25034
25034
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
25035
|
-
|
|
25035
|
+
chunkSRD5YJJI_cjs.SelectedFilesList,
|
|
25036
25036
|
{
|
|
25037
25037
|
renderFileIcon,
|
|
25038
25038
|
files,
|
|
@@ -25041,10 +25041,10 @@ ${summary}`,
|
|
|
25041
25041
|
formatFileSize: formatFileSize3
|
|
25042
25042
|
}
|
|
25043
25043
|
),
|
|
25044
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
25045
|
-
error && /* @__PURE__ */ jsxRuntime.jsx(
|
|
25046
|
-
] }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
25047
|
-
|
|
25044
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.RejectedFilesList, { files: refused, onClear: () => setRefused([]) }),
|
|
25045
|
+
error && /* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.UploadErrorMessage, { message: error })
|
|
25046
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.UploadContainer, { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
25047
|
+
chunkSRD5YJJI_cjs.UploadProgress,
|
|
25048
25048
|
{
|
|
25049
25049
|
fileCount: count2,
|
|
25050
25050
|
entityLabel: plural3(count2),
|
|
@@ -25095,7 +25095,7 @@ function AddFromAccountsButton({
|
|
|
25095
25095
|
className: "gap-2",
|
|
25096
25096
|
"data-testid": dataTestId,
|
|
25097
25097
|
children: [
|
|
25098
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex items-center gap-1", children: marks.map((m) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
25098
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex items-center gap-1", children: marks.map((m) => /* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.VendorLogo, { vendorKey: m.vendorKey, product: m.product, className: "h-4 w-4" }, m.key)) }),
|
|
25099
25099
|
"Add from accounts"
|
|
25100
25100
|
]
|
|
25101
25101
|
}
|
|
@@ -25125,7 +25125,7 @@ function EmptyWorkspaceUpload({
|
|
|
25125
25125
|
compactLeadingAction: onImportFromEmail && /* @__PURE__ */ jsxRuntime.jsx(AddFromAccountsButton, { onImportFromEmail })
|
|
25126
25126
|
}
|
|
25127
25127
|
),
|
|
25128
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
25128
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.PrivacyExplainerModal, {})
|
|
25129
25129
|
] })
|
|
25130
25130
|
}
|
|
25131
25131
|
);
|
|
@@ -25140,7 +25140,7 @@ var CheckboxCellRenderer = React9.memo(function CheckboxCellRenderer2({
|
|
|
25140
25140
|
if (!params.data) return null;
|
|
25141
25141
|
const isChecked = params.value === true;
|
|
25142
25142
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
25143
|
-
|
|
25143
|
+
chunkSRD5YJJI_cjs.CheckboxCell,
|
|
25144
25144
|
{
|
|
25145
25145
|
isChecked,
|
|
25146
25146
|
color: tagColor,
|
|
@@ -25163,13 +25163,13 @@ var TagHeaderComponent = React9.memo(function TagHeaderComponent2({
|
|
|
25163
25163
|
return () => params.column.removeEventListener("sortChanged", updateSort);
|
|
25164
25164
|
}, [params.column]);
|
|
25165
25165
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
25166
|
-
|
|
25166
|
+
chunkSRD5YJJI_cjs.TagColumnHeader,
|
|
25167
25167
|
{
|
|
25168
25168
|
isCentered: isCheckbox,
|
|
25169
25169
|
sort,
|
|
25170
25170
|
onSort: params.enableSorting ? (additive) => params.progressSort(additive) : void 0,
|
|
25171
|
-
filter: /* @__PURE__ */ jsxRuntime.jsx(
|
|
25172
|
-
label: /* @__PURE__ */ jsxRuntime.jsx(
|
|
25171
|
+
filter: /* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.FilterButton, { params, colId: tag.external_id }),
|
|
25172
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(chunkL7ROIPS7_cjs.ConnectedTagEntity, { tag, size: "sm" })
|
|
25173
25173
|
}
|
|
25174
25174
|
);
|
|
25175
25175
|
});
|
|
@@ -25257,7 +25257,7 @@ function createTagColumn({
|
|
|
25257
25257
|
}
|
|
25258
25258
|
) : void 0,
|
|
25259
25259
|
// Use default rendering for text/number/select - shows value with truncation
|
|
25260
|
-
cellEditor: isSelect ?
|
|
25260
|
+
cellEditor: isSelect ? chunkSRD5YJJI_cjs.MultiSelectCellEditor : isText ? "agLargeTextCellEditor" : void 0,
|
|
25261
25261
|
cellEditorParams: isSelect ? createMultiSelectCellEditorParams(tag.tag_type.options || []) : isText ? { rows: 8, cols: 50 } : void 0,
|
|
25262
25262
|
cellEditorPopup: isText || isSelect,
|
|
25263
25263
|
// Text and Select tags use popup editor for better UX
|
|
@@ -25374,14 +25374,14 @@ function createDocumentColumns({
|
|
|
25374
25374
|
onToggleShared,
|
|
25375
25375
|
notify: notify18
|
|
25376
25376
|
}) {
|
|
25377
|
-
const isRowEditableByOwner = (params) =>
|
|
25378
|
-
const isRowEditableByMember = (params) =>
|
|
25377
|
+
const isRowEditableByOwner = (params) => chunkSRD5YJJI_cjs.canChangeVisibility(params.data, currentUserExtId);
|
|
25378
|
+
const isRowEditableByMember = (params) => chunkSRD5YJJI_cjs.canEditDocumentFields(params.data, currentUserExtId, workspaceRole);
|
|
25379
25379
|
const documentNameCellRenderer = (params) => {
|
|
25380
25380
|
const doc = params.data;
|
|
25381
25381
|
if (!doc) return null;
|
|
25382
25382
|
const context = params.context;
|
|
25383
25383
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
25384
|
-
|
|
25384
|
+
chunkZDX7X7R5_cjs.DocumentNameCell,
|
|
25385
25385
|
{
|
|
25386
25386
|
doc,
|
|
25387
25387
|
canEdit: isRowEditableByMember(params),
|
|
@@ -25400,7 +25400,7 @@ function createDocumentColumns({
|
|
|
25400
25400
|
if (!params.data) return null;
|
|
25401
25401
|
const isOwner = isRowEditableByOwner(params);
|
|
25402
25402
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
25403
|
-
|
|
25403
|
+
chunkZDX7X7R5_cjs.DocumentSharedCell,
|
|
25404
25404
|
{
|
|
25405
25405
|
document: params.data,
|
|
25406
25406
|
disabled: !isOwner,
|
|
@@ -25413,7 +25413,7 @@ function createDocumentColumns({
|
|
|
25413
25413
|
if (!params.data) return null;
|
|
25414
25414
|
const context = params.context;
|
|
25415
25415
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
25416
|
-
|
|
25416
|
+
chunkZDX7X7R5_cjs.StatusCell,
|
|
25417
25417
|
{
|
|
25418
25418
|
doc: params.data,
|
|
25419
25419
|
onStatusClick,
|
|
@@ -25426,7 +25426,7 @@ function createDocumentColumns({
|
|
|
25426
25426
|
if (!params.data) return null;
|
|
25427
25427
|
const context = params.context;
|
|
25428
25428
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
25429
|
-
|
|
25429
|
+
chunkZDX7X7R5_cjs.DocumentLabelsCell,
|
|
25430
25430
|
{
|
|
25431
25431
|
doc: params.data,
|
|
25432
25432
|
labels: checkboxTags,
|
|
@@ -25445,7 +25445,7 @@ function createDocumentColumns({
|
|
|
25445
25445
|
const related = context?.getRelatedDocs?.().get(params.data.external_id);
|
|
25446
25446
|
if (!related || react.getRelatedTotal(related) === 0) return null;
|
|
25447
25447
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
25448
|
-
|
|
25448
|
+
chunkZDX7X7R5_cjs.RelatedDocumentsCell,
|
|
25449
25449
|
{
|
|
25450
25450
|
currentDoc: params.data,
|
|
25451
25451
|
related,
|
|
@@ -25460,7 +25460,7 @@ function createDocumentColumns({
|
|
|
25460
25460
|
if (!params.data) return null;
|
|
25461
25461
|
const context = params.context;
|
|
25462
25462
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
25463
|
-
|
|
25463
|
+
chunkZDX7X7R5_cjs.DocumentFolderCell,
|
|
25464
25464
|
{
|
|
25465
25465
|
document: params.data,
|
|
25466
25466
|
isEditable: isRowEditableByMember(params),
|
|
@@ -25580,7 +25580,7 @@ function createDocumentColumns({
|
|
|
25580
25580
|
singleClickEdit: true,
|
|
25581
25581
|
cellEditor: "agSelectCellEditor",
|
|
25582
25582
|
cellEditorParams: {
|
|
25583
|
-
values: [...
|
|
25583
|
+
values: [...chunkSRD5YJJI_cjs.DOCUMENT_TYPE_OPTIONS]
|
|
25584
25584
|
},
|
|
25585
25585
|
context: { icon: lucideReact.Sparkles },
|
|
25586
25586
|
valueGetter: (params) => ui.getDocumentNature(params.data) || "",
|
|
@@ -25886,7 +25886,7 @@ function createDocumentColumns({
|
|
|
25886
25886
|
const context = params.context;
|
|
25887
25887
|
const creator = context?.getWorkspaceUsers?.().find((u) => u.external_id === params.data.created_by_ext_id);
|
|
25888
25888
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center h-full", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
25889
|
-
|
|
25889
|
+
chunkZDX7X7R5_cjs.UserAvatar,
|
|
25890
25890
|
{
|
|
25891
25891
|
user: creator,
|
|
25892
25892
|
isMe: !!creator && creator.external_id === context?.getCurrentUserId?.(),
|
|
@@ -26118,7 +26118,7 @@ function useDocumentTable({
|
|
|
26118
26118
|
}
|
|
26119
26119
|
const stabilizedTagIds = prevTagIdsRef.current;
|
|
26120
26120
|
const stabilizedTagNames = prevTagNamesRef.current;
|
|
26121
|
-
const defaultVisibleColumns = React9.useMemo(() => [...
|
|
26121
|
+
const defaultVisibleColumns = React9.useMemo(() => [...chunkSRD5YJJI_cjs.DEFAULT_DOCUMENT_COLUMNS], []);
|
|
26122
26122
|
const toggleShared = React9.useCallback((docId, shared) => {
|
|
26123
26123
|
updateDocRef.current.mutate({ documents: [{ external_id: docId, shared }] });
|
|
26124
26124
|
}, []);
|
|
@@ -26383,10 +26383,10 @@ function ConnectedFilesBulkActions({
|
|
|
26383
26383
|
const bulk = useDocumentBulkActions(selectedDocuments);
|
|
26384
26384
|
const count2 = selectedDocuments.length;
|
|
26385
26385
|
const noun = ui.getEntityLabel("DOCUMENT", count2 === 1 ? "SINGULAR" : "PLURAL");
|
|
26386
|
-
const shareState =
|
|
26386
|
+
const shareState = chunkSRD5YJJI_cjs.shareStateOf(bulk.freshSelectedDocuments);
|
|
26387
26387
|
const handleToggleShare = async (shouldShare) => {
|
|
26388
26388
|
if (shouldShare) return bulk.share();
|
|
26389
|
-
const confirmed = await
|
|
26389
|
+
const confirmed = await chunkSRD5YJJI_cjs.confirmHideFromMembers(
|
|
26390
26390
|
confirm,
|
|
26391
26391
|
bulk.freshSelectedDocuments.length,
|
|
26392
26392
|
members
|
|
@@ -26403,7 +26403,7 @@ function ConnectedFilesBulkActions({
|
|
|
26403
26403
|
const { openDocumentsChat, openFieldsManager } = actions;
|
|
26404
26404
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
26405
26405
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
26406
|
-
|
|
26406
|
+
chunkSRD5YJJI_cjs.BulkActionsBar,
|
|
26407
26407
|
{
|
|
26408
26408
|
count: count2,
|
|
26409
26409
|
onClear: onClearSelection,
|
|
@@ -26429,7 +26429,7 @@ function ConnectedFilesBulkActions({
|
|
|
26429
26429
|
onDelete: () => setConfirming("delete"),
|
|
26430
26430
|
shareState,
|
|
26431
26431
|
shareLabels: shareState === "shared" ? { share: "Make private" } : void 0,
|
|
26432
|
-
shareTooltip:
|
|
26432
|
+
shareTooltip: chunkSRD5YJJI_cjs.shareTooltipFor(shareState, bulk.freshSelectedDocuments.length === 1),
|
|
26433
26433
|
onToggleShare: (shouldShare) => void handleToggleShare(shouldShare)
|
|
26434
26434
|
}
|
|
26435
26435
|
),
|
|
@@ -26444,7 +26444,7 @@ function ConnectedFilesBulkActions({
|
|
|
26444
26444
|
onClearSelection();
|
|
26445
26445
|
},
|
|
26446
26446
|
title: `Delete ${count2} ${noun}`,
|
|
26447
|
-
description: `Delete ${namedTargets(selectedDocuments)}? ${count2 === 1 ?
|
|
26447
|
+
description: `Delete ${namedTargets(selectedDocuments)}? ${count2 === 1 ? chunkSRD5YJJI_cjs.RECENTLY_DELETED_HINT : chunkSRD5YJJI_cjs.RECENTLY_DELETED_HINT_PLURAL}`,
|
|
26448
26448
|
confirmText: "Delete",
|
|
26449
26449
|
variant: "destructive"
|
|
26450
26450
|
}
|
|
@@ -26790,9 +26790,9 @@ function useDocumentFilters({
|
|
|
26790
26790
|
const { data: members = [] } = react.useWorkspaceUsers();
|
|
26791
26791
|
const user = members.find((m) => m.user.external_id === currentUserId)?.user;
|
|
26792
26792
|
const offlineIds = react.useOfflineDocumentIds();
|
|
26793
|
-
const pendingFolders =
|
|
26794
|
-
const persistedDocumentFilters =
|
|
26795
|
-
const setPersistedDocumentFilters =
|
|
26793
|
+
const pendingFolders = chunkZDX7X7R5_cjs.usePendingFolders(selectedWorkspaceId);
|
|
26794
|
+
const persistedDocumentFilters = chunkZDX7X7R5_cjs.useFilesPrefs((state) => state.documentFilters);
|
|
26795
|
+
const setPersistedDocumentFilters = chunkZDX7X7R5_cjs.useFilesPrefs((state) => state.setDocumentFilters);
|
|
26796
26796
|
const folderTree = React9.useMemo(() => {
|
|
26797
26797
|
const allPaths = /* @__PURE__ */ new Set();
|
|
26798
26798
|
let hasUnfiled = false;
|
|
@@ -27013,7 +27013,7 @@ function useDocumentFilters({
|
|
|
27013
27013
|
{
|
|
27014
27014
|
id: "uploaded_by_me",
|
|
27015
27015
|
label: "Uploaded by me",
|
|
27016
|
-
icon: user ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
27016
|
+
icon: user ? /* @__PURE__ */ jsxRuntime.jsx(chunkZDX7X7R5_cjs.UserAvatar, { user, isMe: true }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.User, { className: "h-4 w-4" }),
|
|
27017
27017
|
count: docs.filter((doc) => doc.created_by_ext_id === currentUserId).length
|
|
27018
27018
|
},
|
|
27019
27019
|
{
|
|
@@ -27141,7 +27141,7 @@ function useDocumentFilters({
|
|
|
27141
27141
|
const folderPath = React9.useMemo(() => {
|
|
27142
27142
|
for (const [key, state] of documentFilters) {
|
|
27143
27143
|
if (key.startsWith("folder:") && key !== "folder:none" && state === "include") {
|
|
27144
|
-
return
|
|
27144
|
+
return chunkSRD5YJJI_cjs.parseFolderSegments(key.slice("folder:".length));
|
|
27145
27145
|
}
|
|
27146
27146
|
}
|
|
27147
27147
|
return [];
|
|
@@ -27150,7 +27150,7 @@ function useDocumentFilters({
|
|
|
27150
27150
|
(path) => {
|
|
27151
27151
|
const next = new Map(documentFilters);
|
|
27152
27152
|
for (const key of next.keys()) if (key.startsWith("folder:")) next.set(key, null);
|
|
27153
|
-
const joined =
|
|
27153
|
+
const joined = chunkSRD5YJJI_cjs.joinFolderPath(path);
|
|
27154
27154
|
if (joined) next.set(`folder:${joined}`, "include");
|
|
27155
27155
|
setDocumentFilters(next);
|
|
27156
27156
|
},
|
|
@@ -27215,8 +27215,8 @@ function ConnectedAiReview({
|
|
|
27215
27215
|
const generate = react.useGenerateDocTags();
|
|
27216
27216
|
const { data: liveDocs = [] } = react.useDocuments();
|
|
27217
27217
|
const { data: tags = [] } = react.useTags();
|
|
27218
|
-
const result =
|
|
27219
|
-
const setResult =
|
|
27218
|
+
const result = chunkZDX7X7R5_cjs.useAiReviewStore((s) => s.run);
|
|
27219
|
+
const setResult = chunkZDX7X7R5_cjs.useAiReviewStore((s) => s.setRun);
|
|
27220
27220
|
const phase = result ? "review" : "ask";
|
|
27221
27221
|
const docCount = documents.length;
|
|
27222
27222
|
const scope = allDocuments ? "processed" : "selected";
|
|
@@ -27442,7 +27442,7 @@ function ConnectedAiReview({
|
|
|
27442
27442
|
}, [kind]);
|
|
27443
27443
|
const description = phase === "ask" ? `Ask one question \u2014 ARBI answers it for each of the ${docCount} ${scope} document${plural5(docCount)}.` : aiCellsTotal > 0 ? reviewProgress(aiCellsDone, aiCellsEmpty, aiCellsTotal) : `Applied to ${rows.length} document${plural5(rows.length)}`;
|
|
27444
27444
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
27445
|
-
|
|
27445
|
+
chunkSRD5YJJI_cjs.AiReviewDialogView,
|
|
27446
27446
|
{
|
|
27447
27447
|
open,
|
|
27448
27448
|
onOpenChange: handleOpenChange,
|
|
@@ -27488,7 +27488,7 @@ function useAiReviewLiveUpdates() {
|
|
|
27488
27488
|
if (message.batch_type !== "doctag_generate") return;
|
|
27489
27489
|
const docIds = message.doc_ext_ids ?? [];
|
|
27490
27490
|
if (!docIds.length) return;
|
|
27491
|
-
void refreshDocuments(docIds).then(() =>
|
|
27491
|
+
void refreshDocuments(docIds).then(() => chunkZDX7X7R5_cjs.useAiReviewStore.getState().markFinished(docIds));
|
|
27492
27492
|
const { clearTask } = react.useArbiWsStore.getState();
|
|
27493
27493
|
for (const id of docIds) clearTask(id);
|
|
27494
27494
|
});
|
|
@@ -27523,7 +27523,7 @@ function useBatchCompleteToasts() {
|
|
|
27523
27523
|
timer.current = null;
|
|
27524
27524
|
const runs = pending.current;
|
|
27525
27525
|
pending.current = /* @__PURE__ */ new Map();
|
|
27526
|
-
const hasReview = !!
|
|
27526
|
+
const hasReview = !!chunkZDX7X7R5_cjs.useAiReviewStore.getState().run;
|
|
27527
27527
|
for (const [id, entry] of runs) {
|
|
27528
27528
|
const n = entry.docIds.size;
|
|
27529
27529
|
notify18(
|
|
@@ -27536,7 +27536,7 @@ function useBatchCompleteToasts() {
|
|
|
27536
27536
|
...hasReview && {
|
|
27537
27537
|
action: {
|
|
27538
27538
|
label: "View results",
|
|
27539
|
-
onClick: () =>
|
|
27539
|
+
onClick: () => chunkZDX7X7R5_cjs.useAiReviewStore.getState().setOpen(true)
|
|
27540
27540
|
}
|
|
27541
27541
|
}
|
|
27542
27542
|
}
|
|
@@ -27544,7 +27544,7 @@ function useBatchCompleteToasts() {
|
|
|
27544
27544
|
}
|
|
27545
27545
|
}, AI_FIELDS_NOTICE_WINDOW_MS);
|
|
27546
27546
|
} else if (message.batch_type === "entity_extract") {
|
|
27547
|
-
say(`${
|
|
27547
|
+
say(`${chunkYMZAHBFL_cjs.entitiesPhrase()} extracted from ${chunkYMZAHBFL_cjs.documentCount(docIds.length)}`, "success", {
|
|
27548
27548
|
...openTags && { action: { label: "View", onClick: openTags } }
|
|
27549
27549
|
});
|
|
27550
27550
|
} else if (message.batch_type === "upload") {
|
|
@@ -27583,12 +27583,12 @@ function ConnectedMoveToFolder({
|
|
|
27583
27583
|
setIsSubmitting(true);
|
|
27584
27584
|
try {
|
|
27585
27585
|
if (folderToMove) {
|
|
27586
|
-
const docsInFolder =
|
|
27586
|
+
const docsInFolder = chunkSRD5YJJI_cjs.collectFolderDocs(allDocs, folderToMove.path);
|
|
27587
27587
|
if (docsInFolder.length === 0) {
|
|
27588
27588
|
onClose();
|
|
27589
27589
|
return;
|
|
27590
27590
|
}
|
|
27591
|
-
const newPrefixSegments = targetFolder ? [...
|
|
27591
|
+
const newPrefixSegments = targetFolder ? [...chunkSRD5YJJI_cjs.parseFolderSegments(targetFolder), folderToMove.name] : [folderToMove.name];
|
|
27592
27592
|
await renameFolder(docsInFolder, folderToMove.path, newPrefixSegments);
|
|
27593
27593
|
const dest = targetFolder ? `"${targetFolder}/${folderToMove.name}"` : `"${folderToMove.name}" (root)`;
|
|
27594
27594
|
notify18(`Moved folder to ${dest}`, "success");
|
|
@@ -27613,9 +27613,9 @@ function ConnectedMoveToFolder({
|
|
|
27613
27613
|
}
|
|
27614
27614
|
};
|
|
27615
27615
|
const isFolderMode = !!folderToMove;
|
|
27616
|
-
const folders =
|
|
27616
|
+
const folders = chunkZDX7X7R5_cjs.useDocumentFolders(allDocs, targetFolder);
|
|
27617
27617
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
27618
|
-
|
|
27618
|
+
chunkSRD5YJJI_cjs.MoveToFolderDialog,
|
|
27619
27619
|
{
|
|
27620
27620
|
open: isOpen,
|
|
27621
27621
|
onClose,
|
|
@@ -27625,7 +27625,7 @@ function ConnectedMoveToFolder({
|
|
|
27625
27625
|
isSubmitting,
|
|
27626
27626
|
onConfirm: handleMove,
|
|
27627
27627
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
27628
|
-
|
|
27628
|
+
chunkSRD5YJJI_cjs.FolderCommandList,
|
|
27629
27629
|
{
|
|
27630
27630
|
folders,
|
|
27631
27631
|
value: targetFolder,
|
|
@@ -28021,7 +28021,7 @@ function ConnectedFieldsEditor({
|
|
|
28021
28021
|
const [sortBy, setSortBy] = React9.useState("name-asc");
|
|
28022
28022
|
const [filterText, setFilterText] = React9.useState("");
|
|
28023
28023
|
const fieldRows = React9.useMemo(
|
|
28024
|
-
() => browser.flattenTagTree(
|
|
28024
|
+
() => browser.flattenTagTree(chunkSRD5YJJI_cjs.sortFields(chunkSRD5YJJI_cjs.filterFieldsByName(tags, filterText), sortBy)),
|
|
28025
28025
|
[tags, filterText, sortBy]
|
|
28026
28026
|
);
|
|
28027
28027
|
const exportItems = React9.useMemo(
|
|
@@ -28041,7 +28041,7 @@ function ConnectedFieldsEditor({
|
|
|
28041
28041
|
setIsDeleting(false);
|
|
28042
28042
|
}
|
|
28043
28043
|
};
|
|
28044
|
-
const copy =
|
|
28044
|
+
const copy = chunkSRD5YJJI_cjs.fieldsApplyBarCopy({
|
|
28045
28045
|
nouns,
|
|
28046
28046
|
targetNoun,
|
|
28047
28047
|
fieldCount,
|
|
@@ -28050,9 +28050,9 @@ function ConnectedFieldsEditor({
|
|
|
28050
28050
|
isApplying,
|
|
28051
28051
|
isClearing
|
|
28052
28052
|
});
|
|
28053
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
28053
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkSRD5YJJI_cjs.FieldsEditorRoot, { children: [
|
|
28054
28054
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
28055
|
-
|
|
28055
|
+
chunkSRD5YJJI_cjs.FieldsEditorToolbar,
|
|
28056
28056
|
{
|
|
28057
28057
|
nouns,
|
|
28058
28058
|
onNew: () => {
|
|
@@ -28080,11 +28080,11 @@ function ConnectedFieldsEditor({
|
|
|
28080
28080
|
onSortByChange: setSortBy
|
|
28081
28081
|
}
|
|
28082
28082
|
),
|
|
28083
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
28083
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkSRD5YJJI_cjs.FieldsEditorList, { children: [
|
|
28084
28084
|
fieldRows.map(({ tag, depth, childCount }) => {
|
|
28085
28085
|
const isEditingThis = editingTagId === tag.external_id;
|
|
28086
28086
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
28087
|
-
|
|
28087
|
+
chunkSRD5YJJI_cjs.FieldRow,
|
|
28088
28088
|
{
|
|
28089
28089
|
tagId: tag.external_id,
|
|
28090
28090
|
name: tag.name,
|
|
@@ -28137,10 +28137,10 @@ function ConnectedFieldsEditor({
|
|
|
28137
28137
|
tag.external_id
|
|
28138
28138
|
);
|
|
28139
28139
|
}),
|
|
28140
|
-
fieldRows.length === 0 && !isCreatingTag && /* @__PURE__ */ jsxRuntime.jsx(
|
|
28140
|
+
fieldRows.length === 0 && !isCreatingTag && /* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.FieldsEmptyState, { children: chunkSRD5YJJI_cjs.fieldsEmptyText({ nouns, filterText, hasKind: !!kind }) })
|
|
28141
28141
|
] }),
|
|
28142
28142
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
28143
|
-
|
|
28143
|
+
chunkSRD5YJJI_cjs.FieldsApplyBar,
|
|
28144
28144
|
{
|
|
28145
28145
|
hint: copy.hint,
|
|
28146
28146
|
applyLabel: copy.applyLabel,
|
|
@@ -28217,8 +28217,8 @@ function ConnectedFieldsManager({
|
|
|
28217
28217
|
}
|
|
28218
28218
|
);
|
|
28219
28219
|
const body = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
28220
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
28221
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
28220
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.FieldsManagerDefinition, { children: DEFINITIONS[activeKind] }),
|
|
28221
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.FieldsManagerBody, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
28222
28222
|
ConnectedFieldsEditor,
|
|
28223
28223
|
{
|
|
28224
28224
|
group: activeKind,
|
|
@@ -28237,7 +28237,7 @@ function ConnectedFieldsManager({
|
|
|
28237
28237
|
"data-testid": "fields-manager-dialog",
|
|
28238
28238
|
children: [
|
|
28239
28239
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.DialogHeader, { className: "px-4 py-3 border-b", children: [
|
|
28240
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
28240
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.FieldsManagerTitle, { title }) }),
|
|
28241
28241
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogDescription, { className: "sr-only", children: "Create, edit, and delete labels and annotations for your workspace documents." })
|
|
28242
28242
|
] }),
|
|
28243
28243
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-4 py-2 border-b", children: tabHeader }),
|
|
@@ -28248,7 +28248,7 @@ function ConnectedFieldsManager({
|
|
|
28248
28248
|
}
|
|
28249
28249
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col h-full", children: [
|
|
28250
28250
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkFEVJA4BP_cjs.DraggableHeader, { children: [
|
|
28251
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
28251
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.FieldsManagerTitle, { title, className: "px-4 pt-3.5 pb-2" }),
|
|
28252
28252
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-3", children: tabHeader })
|
|
28253
28253
|
] }),
|
|
28254
28254
|
body
|
|
@@ -28469,7 +28469,7 @@ function ConnectedBulkTagEditor({
|
|
|
28469
28469
|
const isClearing = change?.action === "remove";
|
|
28470
28470
|
return {
|
|
28471
28471
|
id: tag.external_id,
|
|
28472
|
-
badge: /* @__PURE__ */ jsxRuntime.jsx(
|
|
28472
|
+
badge: /* @__PURE__ */ jsxRuntime.jsx(chunkL7ROIPS7_cjs.ConnectedTagEntity, { tag, size: "md" }),
|
|
28473
28473
|
type: tag.tag_type.type,
|
|
28474
28474
|
color: ui.getEntityColor(tag.external_id, "medium"),
|
|
28475
28475
|
options: tag.tag_type.type === "select" ? tag.tag_type.options : void 0,
|
|
@@ -28501,7 +28501,7 @@ function ConnectedBulkTagEditor({
|
|
|
28501
28501
|
const documentsLabel = ui.getEntityLabel("DOCUMENT", "PLURAL").toLowerCase();
|
|
28502
28502
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
28503
28503
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
28504
|
-
|
|
28504
|
+
chunkSRD5YJJI_cjs.BulkTagEditorDialog,
|
|
28505
28505
|
{
|
|
28506
28506
|
open,
|
|
28507
28507
|
onClose,
|
|
@@ -28559,7 +28559,7 @@ function ConnectedBulkTagEditor({
|
|
|
28559
28559
|
}
|
|
28560
28560
|
),
|
|
28561
28561
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
28562
|
-
|
|
28562
|
+
chunkSRD5YJJI_cjs.BulkReplaceDialog,
|
|
28563
28563
|
{
|
|
28564
28564
|
open: showGenerateConfirmation,
|
|
28565
28565
|
onClose: () => setShowGenerateConfirmation(false),
|
|
@@ -28683,7 +28683,7 @@ function ViewSelector({
|
|
|
28683
28683
|
columns: defaultColumns,
|
|
28684
28684
|
icon: lucideReact.Table,
|
|
28685
28685
|
// Both built-ins load at the minimal (compact) row height.
|
|
28686
|
-
rowHeight:
|
|
28686
|
+
rowHeight: chunkSRD5YJJI_cjs.DOCUMENTS_ROW_HEIGHT_INITIAL,
|
|
28687
28687
|
// [] = loading this view unpins everything.
|
|
28688
28688
|
pinnedLeft: []
|
|
28689
28689
|
},
|
|
@@ -28694,15 +28694,15 @@ function ViewSelector({
|
|
|
28694
28694
|
// batch-select checkbox and Title stay fixed left while scrolling.
|
|
28695
28695
|
columns: defaultColumns,
|
|
28696
28696
|
icon: lucideReact.Columns3,
|
|
28697
|
-
rowHeight:
|
|
28697
|
+
rowHeight: chunkSRD5YJJI_cjs.DOCUMENTS_ROW_HEIGHT_INITIAL,
|
|
28698
28698
|
pinnedLeft: DOCUMENT_VIEW_PINNED
|
|
28699
28699
|
},
|
|
28700
28700
|
{
|
|
28701
28701
|
key: "email-default",
|
|
28702
28702
|
label: "Email view",
|
|
28703
|
-
columns: [...
|
|
28703
|
+
columns: [...chunkSRD5YJJI_cjs.EMAIL_VIEW_COLUMNS],
|
|
28704
28704
|
icon: lucideReact.Mail,
|
|
28705
|
-
rowHeight:
|
|
28705
|
+
rowHeight: chunkSRD5YJJI_cjs.DOCUMENTS_ROW_HEIGHT_INITIAL,
|
|
28706
28706
|
pinnedLeft: []
|
|
28707
28707
|
}
|
|
28708
28708
|
],
|
|
@@ -28726,7 +28726,7 @@ function ViewSelector({
|
|
|
28726
28726
|
},
|
|
28727
28727
|
[confirm, workspaceId, deleteView, notify18]
|
|
28728
28728
|
);
|
|
28729
|
-
const menu =
|
|
28729
|
+
const menu = chunkSRD5YJJI_cjs.useGridViews({
|
|
28730
28730
|
getGridApi,
|
|
28731
28731
|
defaultColumns,
|
|
28732
28732
|
builtins,
|
|
@@ -28741,7 +28741,7 @@ function ViewSelector({
|
|
|
28741
28741
|
onDeleteView,
|
|
28742
28742
|
isSaving
|
|
28743
28743
|
});
|
|
28744
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
28744
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.ViewSelectorMenu, { ...menu });
|
|
28745
28745
|
}
|
|
28746
28746
|
function DocumentsFilterBarActions({
|
|
28747
28747
|
isModal,
|
|
@@ -28781,7 +28781,7 @@ function DocumentsFilterBarActions({
|
|
|
28781
28781
|
),
|
|
28782
28782
|
documentsViewMode === "grid" && // The phone list is a fixed two-line layout, so row density only applies from sm up.
|
|
28783
28783
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "hidden sm:block", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
28784
|
-
|
|
28784
|
+
chunkSRD5YJJI_cjs.RowDensityControl,
|
|
28785
28785
|
{
|
|
28786
28786
|
rowHeight: documentsRowHeight,
|
|
28787
28787
|
onRowHeightChange: onDocumentsRowHeightChange
|
|
@@ -28949,7 +28949,7 @@ function DocumentsUploadButton({
|
|
|
28949
28949
|
[hasAccountProviders, onSelectSource, onEmailWorkspace, onCreateNew, onTakePhoto]
|
|
28950
28950
|
);
|
|
28951
28951
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
28952
|
-
|
|
28952
|
+
chunkSRD5YJJI_cjs.FilesAddMenu,
|
|
28953
28953
|
{
|
|
28954
28954
|
items,
|
|
28955
28955
|
isCompact,
|
|
@@ -28962,8 +28962,8 @@ function DocumentsUploadButton({
|
|
|
28962
28962
|
}
|
|
28963
28963
|
function PersistedGridView(props) {
|
|
28964
28964
|
const { persistState, gridId } = props;
|
|
28965
|
-
const setGridState =
|
|
28966
|
-
const gridState = persistState && gridId ?
|
|
28965
|
+
const setGridState = chunkZDX7X7R5_cjs.useFilesGridStates((state) => state.setGridState);
|
|
28966
|
+
const gridState = persistState && gridId ? chunkZDX7X7R5_cjs.useFilesGridStates.getState().gridStates[gridId] : void 0;
|
|
28967
28967
|
const onGridStateChange = React9.useCallback(
|
|
28968
28968
|
(state) => {
|
|
28969
28969
|
if (persistState && gridId) setGridState(gridId, state);
|
|
@@ -29031,10 +29031,10 @@ var TABLET_TABLE_BELOW = 860;
|
|
|
29031
29031
|
var TABLET_VIEWPORT_BELOW = 1100;
|
|
29032
29032
|
var NO_CONVERSATION_DOCUMENTS = [];
|
|
29033
29033
|
var DocumentReviewCard = React9.lazy(
|
|
29034
|
-
() => import('../DocumentReviewCard-
|
|
29034
|
+
() => import('../DocumentReviewCard-S3ULXYVN.cjs').then((module) => ({ default: module.DocumentReviewCard }))
|
|
29035
29035
|
);
|
|
29036
29036
|
function defaultReviewCard(props) {
|
|
29037
|
-
return /* @__PURE__ */ jsxRuntime.jsx(React9.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
29037
|
+
return /* @__PURE__ */ jsxRuntime.jsx(React9.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkYMZAHBFL_cjs.LoadingIndicator, { message: "Loading document viewer..." }), children: /* @__PURE__ */ jsxRuntime.jsx(DocumentReviewCard, { ...props }, `navigator-${props.currentDocument.external_id}`) });
|
|
29038
29038
|
}
|
|
29039
29039
|
function ConnectedFilesPage({
|
|
29040
29040
|
isModal = false,
|
|
@@ -29061,7 +29061,7 @@ function ConnectedFilesPage({
|
|
|
29061
29061
|
gridStateVersion,
|
|
29062
29062
|
onGridApi,
|
|
29063
29063
|
onRelatedDocsChange,
|
|
29064
|
-
prefsKey =
|
|
29064
|
+
prefsKey = chunkZDX7X7R5_cjs.FILES_PREFS_KEY,
|
|
29065
29065
|
defaultViewMode
|
|
29066
29066
|
}) {
|
|
29067
29067
|
const { openDocument } = chunk6K3VOHHL_cjs.useBlocksEnvironment();
|
|
@@ -29075,7 +29075,7 @@ function ConnectedFilesPage({
|
|
|
29075
29075
|
const deleteDocuments = react.useDeleteDocuments();
|
|
29076
29076
|
const isDocumentsPending = isLoading && documents.length === 0;
|
|
29077
29077
|
const { workspaceId, userId, live } = chunkN7RRXCEZ_cjs.useConnectedWorkspace();
|
|
29078
|
-
const { role, members } =
|
|
29078
|
+
const { role, members } = chunkQ6N56ZBF_cjs.useConnectedWorkspaceRole();
|
|
29079
29079
|
const { data: workspaces } = react.useWorkspaces({ enabled: live });
|
|
29080
29080
|
const workspaceName = workspaces?.find((w) => w.external_id === workspaceId)?.name;
|
|
29081
29081
|
const isMember = role != null;
|
|
@@ -29093,15 +29093,15 @@ function ConnectedFilesPage({
|
|
|
29093
29093
|
const inConversationDocuments = react.useArbiSessionState(
|
|
29094
29094
|
(s) => s.conversationDocuments[s.conversationId ?? "new"] ?? NO_CONVERSATION_DOCUMENTS
|
|
29095
29095
|
);
|
|
29096
|
-
const viewMode =
|
|
29097
|
-
const setPrefsViewMode =
|
|
29096
|
+
const viewMode = chunkZDX7X7R5_cjs.useFilesPrefs((s) => chunkZDX7X7R5_cjs.filesViewMode(s, prefsKey, defaultViewMode));
|
|
29097
|
+
const setPrefsViewMode = chunkZDX7X7R5_cjs.useFilesPrefs((s) => s.setViewMode);
|
|
29098
29098
|
const setViewMode = React9.useCallback(
|
|
29099
29099
|
(mode) => setPrefsViewMode(mode, prefsKey),
|
|
29100
29100
|
[setPrefsViewMode, prefsKey]
|
|
29101
29101
|
);
|
|
29102
|
-
const rowHeight =
|
|
29103
|
-
const setRowHeight =
|
|
29104
|
-
const ownGridStates =
|
|
29102
|
+
const rowHeight = chunkZDX7X7R5_cjs.useFilesPrefs((s) => s.rowHeight);
|
|
29103
|
+
const setRowHeight = chunkZDX7X7R5_cjs.useFilesPrefs((s) => s.setRowHeight);
|
|
29104
|
+
const ownGridStates = chunkZDX7X7R5_cjs.useFilesGridStates((s) => s.gridStates);
|
|
29105
29105
|
const stateVersion = gridStateVersion ?? ownGridStates;
|
|
29106
29106
|
const [pageEl, setPageEl] = React9.useState(null);
|
|
29107
29107
|
const [isTabletWidth, setIsTabletWidth] = React9.useState(false);
|
|
@@ -29131,15 +29131,15 @@ function ConnectedFilesPage({
|
|
|
29131
29131
|
const [explorerSortReversed, setExplorerSortReversed] = React9.useState(false);
|
|
29132
29132
|
const [explorerTileSize, setExplorerTileSize] = React9.useState(TILE_DEFAULT);
|
|
29133
29133
|
const [urlDialogOpen, setUrlDialogOpen] = React9.useState(false);
|
|
29134
|
-
const move =
|
|
29135
|
-
const openMove =
|
|
29136
|
-
const closeMove =
|
|
29137
|
-
const bulkTagsOpen =
|
|
29138
|
-
const setBulkTagsOpen =
|
|
29139
|
-
const deleteRequest =
|
|
29140
|
-
const requestDelete =
|
|
29141
|
-
const exportOpen =
|
|
29142
|
-
const setExportOpen =
|
|
29134
|
+
const move = chunkZDX7X7R5_cjs.useFilesDialogs((s) => s.move);
|
|
29135
|
+
const openMove = chunkZDX7X7R5_cjs.useFilesDialogs((s) => s.openMove);
|
|
29136
|
+
const closeMove = chunkZDX7X7R5_cjs.useFilesDialogs((s) => s.closeMove);
|
|
29137
|
+
const bulkTagsOpen = chunkZDX7X7R5_cjs.useFilesDialogs((s) => s.bulkTagsOpen);
|
|
29138
|
+
const setBulkTagsOpen = chunkZDX7X7R5_cjs.useFilesDialogs((s) => s.setBulkTagsOpen);
|
|
29139
|
+
const deleteRequest = chunkZDX7X7R5_cjs.useFilesDialogs((s) => s.deleteRequest);
|
|
29140
|
+
const requestDelete = chunkZDX7X7R5_cjs.useFilesDialogs((s) => s.requestDelete);
|
|
29141
|
+
const exportOpen = chunkZDX7X7R5_cjs.useFilesDialogs((s) => s.exportOpen);
|
|
29142
|
+
const setExportOpen = chunkZDX7X7R5_cjs.useFilesDialogs((s) => s.setExportOpen);
|
|
29143
29143
|
const openOwnExport = React9.useCallback(() => setExportOpen(true), [setExportOpen]);
|
|
29144
29144
|
const exportItems = React9.useMemo(
|
|
29145
29145
|
() => selectedDocuments.map((doc) => ({
|
|
@@ -29185,17 +29185,17 @@ function ConnectedFilesPage({
|
|
|
29185
29185
|
}, [relatedDocsMap, onRelatedDocsChange]);
|
|
29186
29186
|
const defaultVisibleColumns = React9.useMemo(
|
|
29187
29187
|
() => [
|
|
29188
|
-
...
|
|
29188
|
+
...chunkSRD5YJJI_cjs.DEFAULT_DOCUMENT_COLUMNS,
|
|
29189
29189
|
...allTags.filter(browser.isAnnotationTag).map((tag) => tag.external_id)
|
|
29190
29190
|
],
|
|
29191
29191
|
[allTags]
|
|
29192
29192
|
);
|
|
29193
29193
|
const handleReorderColumns = React9.useCallback((ids, gridApi2) => {
|
|
29194
|
-
if (gridApi2)
|
|
29194
|
+
if (gridApi2) chunkSRD5YJJI_cjs.applyColumnLayout(gridApi2, ids);
|
|
29195
29195
|
}, []);
|
|
29196
29196
|
const handleLoadView = React9.useCallback(
|
|
29197
29197
|
(view, gridApi2) => {
|
|
29198
|
-
|
|
29198
|
+
chunkSRD5YJJI_cjs.applyViewColumns(gridApi2, view, handleReorderColumns);
|
|
29199
29199
|
if (typeof view.tile_size === "number") setExplorerTileSize(view.tile_size);
|
|
29200
29200
|
if (typeof view.row_height === "number") setRowHeight(view.row_height);
|
|
29201
29201
|
},
|
|
@@ -29288,7 +29288,7 @@ function ConnectedFilesPage({
|
|
|
29288
29288
|
);
|
|
29289
29289
|
const currentDocument = viewingDocumentId ? filteredDocuments.find((d) => d.external_id === viewingDocumentId) ?? documents.find((d) => d.external_id === viewingDocumentId) ?? null : null;
|
|
29290
29290
|
const navigatorDocuments = React9.useMemo(
|
|
29291
|
-
() =>
|
|
29291
|
+
() => chunkSRD5YJJI_cjs.sortExplorerFiles(filteredDocuments, explorerSort, explorerSortReversed),
|
|
29292
29292
|
[filteredDocuments, explorerSort, explorerSortReversed]
|
|
29293
29293
|
);
|
|
29294
29294
|
const navigatorOnNavigate = React9.useCallback(
|
|
@@ -29355,7 +29355,7 @@ function ConnectedFilesPage({
|
|
|
29355
29355
|
},
|
|
29356
29356
|
rowHeight
|
|
29357
29357
|
};
|
|
29358
|
-
const documentsTabActions = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
29358
|
+
const documentsTabActions = /* @__PURE__ */ jsxRuntime.jsxs(chunkSRD5YJJI_cjs.FilesFilterBar, { children: [
|
|
29359
29359
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
29360
29360
|
chunk2EI7NCUA_cjs.FilterInput,
|
|
29361
29361
|
{
|
|
@@ -29390,7 +29390,7 @@ function ConnectedFilesPage({
|
|
|
29390
29390
|
),
|
|
29391
29391
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex shrink-0 items-center gap-2", children: [
|
|
29392
29392
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
29393
|
-
|
|
29393
|
+
chunkSRD5YJJI_cjs.DocumentsFolderButton,
|
|
29394
29394
|
{
|
|
29395
29395
|
documents,
|
|
29396
29396
|
documentFilters,
|
|
@@ -29398,7 +29398,7 @@ function ConnectedFilesPage({
|
|
|
29398
29398
|
onNewFolder: canUpload ? handleNewFolder : void 0
|
|
29399
29399
|
}
|
|
29400
29400
|
),
|
|
29401
|
-
onOpenTags && /* @__PURE__ */ jsxRuntime.jsx(
|
|
29401
|
+
onOpenTags && /* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.FilesTagsButton, { onClick: onOpenTags }),
|
|
29402
29402
|
headerExtras
|
|
29403
29403
|
] })
|
|
29404
29404
|
] });
|
|
@@ -29421,9 +29421,9 @@ function ConnectedFilesPage({
|
|
|
29421
29421
|
);
|
|
29422
29422
|
const reviewGridId = isModal ? "documents-modal-grid-v6" : "documents-main-grid-v6";
|
|
29423
29423
|
const showBulkBar = (viewMode === "grid" || viewMode === "explorer" || viewMode === "navigator") && documents.length > 0;
|
|
29424
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
29424
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkSRD5YJJI_cjs.FilesPage, { isModal, ref: setPageEl, children: [
|
|
29425
29425
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
29426
|
-
|
|
29426
|
+
chunkSRD5YJJI_cjs.UrlInputDialog,
|
|
29427
29427
|
{
|
|
29428
29428
|
open: urlDialogOpen,
|
|
29429
29429
|
onOpenChange: setUrlDialogOpen,
|
|
@@ -29432,7 +29432,7 @@ function ConnectedFilesPage({
|
|
|
29432
29432
|
titleIcon: workspaceIcon
|
|
29433
29433
|
}
|
|
29434
29434
|
),
|
|
29435
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
29435
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkSRD5YJJI_cjs.FilesPageHeader, { children: [
|
|
29436
29436
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
29437
29437
|
chunkMEMWZ72Y_cjs.TabHeader,
|
|
29438
29438
|
{
|
|
@@ -29453,7 +29453,7 @@ function ConnectedFilesPage({
|
|
|
29453
29453
|
activeTabId: "documents",
|
|
29454
29454
|
onTabChange: () => handleViewModeChange(lastDocsViewRef.current),
|
|
29455
29455
|
firstTabContent: isNarrowFilterRow ? null : documentsTabActions,
|
|
29456
|
-
centerContent: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
29456
|
+
centerContent: /* @__PURE__ */ jsxRuntime.jsxs(chunkSRD5YJJI_cjs.FilesViewCenter, { className: isNarrowFilterRow ? "min-w-0" : void 0, children: [
|
|
29457
29457
|
!isNarrowFilterRow && viewToggle,
|
|
29458
29458
|
/* @__PURE__ */ jsxRuntime.jsx(ProgressiveLoadingChip, {})
|
|
29459
29459
|
] }),
|
|
@@ -29483,14 +29483,14 @@ function ConnectedFilesPage({
|
|
|
29483
29483
|
}
|
|
29484
29484
|
),
|
|
29485
29485
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
29486
|
-
|
|
29486
|
+
chunkSRD5YJJI_cjs.FilesToolbar,
|
|
29487
29487
|
{
|
|
29488
29488
|
className: "px-3 pb-2",
|
|
29489
29489
|
rightActions: viewMode === "grid" || viewMode === "explorer" || viewMode === "navigator" ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
29490
29490
|
viewMode === "grid" ? (
|
|
29491
29491
|
// ‹ n / N › over the table's displayed rows; a step opens the document.
|
|
29492
29492
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
29493
|
-
|
|
29493
|
+
chunkYMZAHBFL_cjs.GridRowNavigator,
|
|
29494
29494
|
{
|
|
29495
29495
|
gridApi,
|
|
29496
29496
|
selectedId: viewingDocumentId ?? selectedDocumentIds[0] ?? null,
|
|
@@ -29505,7 +29505,7 @@ function ConnectedFilesPage({
|
|
|
29505
29505
|
) : viewMode === "explorer" ? (
|
|
29506
29506
|
// The same over the explorer's tiles.
|
|
29507
29507
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
29508
|
-
|
|
29508
|
+
chunkSRD5YJJI_cjs.ExplorerFileNavigator,
|
|
29509
29509
|
{
|
|
29510
29510
|
fileIds: explorerFileIds,
|
|
29511
29511
|
selectedId: viewingDocumentId ?? selectedDocumentIds[0] ?? null,
|
|
@@ -29544,7 +29544,7 @@ function ConnectedFilesPage({
|
|
|
29544
29544
|
}
|
|
29545
29545
|
),
|
|
29546
29546
|
viewMode === "navigator" && currentDocument && /* @__PURE__ */ jsxRuntime.jsx(
|
|
29547
|
-
|
|
29547
|
+
chunkSRD5YJJI_cjs.NavigatorPickerBar,
|
|
29548
29548
|
{
|
|
29549
29549
|
currentDocument,
|
|
29550
29550
|
documents: navigatorDocuments,
|
|
@@ -29556,11 +29556,11 @@ function ConnectedFilesPage({
|
|
|
29556
29556
|
}
|
|
29557
29557
|
)
|
|
29558
29558
|
] }),
|
|
29559
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
29559
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkSRD5YJJI_cjs.FilesPageMain, { children: [
|
|
29560
29560
|
viewMode === "grid" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
29561
|
-
|
|
29561
|
+
chunkSRD5YJJI_cjs.DocumentGrid,
|
|
29562
29562
|
{
|
|
29563
|
-
layout:
|
|
29563
|
+
layout: chunkSRD5YJJI_cjs.resolveDocumentGridLayout(isNarrowFilterRow, isModal, isTabletWidth),
|
|
29564
29564
|
presets: gridPresets,
|
|
29565
29565
|
GridComponent,
|
|
29566
29566
|
showEmptyWorkspace: documents.length === 0 && !isLoading && isMember,
|
|
@@ -29654,7 +29654,7 @@ function ConnectedFilesPage({
|
|
|
29654
29654
|
onProduce
|
|
29655
29655
|
}
|
|
29656
29656
|
),
|
|
29657
|
-
isModal && onClose && /* @__PURE__ */ jsxRuntime.jsx(
|
|
29657
|
+
isModal && onClose && /* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.FilesModalFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { variant: "outline", onClick: onClose, children: "Close" }) }),
|
|
29658
29658
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
29659
29659
|
chunkGMM3RBIB_cjs.ConfirmDialog,
|
|
29660
29660
|
{
|
|
@@ -29665,7 +29665,7 @@ function ConnectedFilesPage({
|
|
|
29665
29665
|
requestDelete(null);
|
|
29666
29666
|
},
|
|
29667
29667
|
title: "Delete Document",
|
|
29668
|
-
description: deleteRequest ? `Delete "${ui.getDocumentTitle(deleteRequest, "this document")}"? ${
|
|
29668
|
+
description: deleteRequest ? `Delete "${ui.getDocumentTitle(deleteRequest, "this document")}"? ${chunkSRD5YJJI_cjs.RECENTLY_DELETED_HINT}` : "",
|
|
29669
29669
|
confirmText: "Delete",
|
|
29670
29670
|
variant: "destructive"
|
|
29671
29671
|
}
|
|
@@ -29718,8 +29718,8 @@ function ConnectedFilesPage({
|
|
|
29718
29718
|
}
|
|
29719
29719
|
var NO_DOCUMENTS3 = [];
|
|
29720
29720
|
function ConnectedAiReviewHost(props) {
|
|
29721
|
-
const open =
|
|
29722
|
-
const setOpen =
|
|
29721
|
+
const open = chunkZDX7X7R5_cjs.useAiReviewStore((s) => s.open);
|
|
29722
|
+
const setOpen = chunkZDX7X7R5_cjs.useAiReviewStore((s) => s.setOpen);
|
|
29723
29723
|
return /* @__PURE__ */ jsxRuntime.jsx(ConnectedAiReview, { open, onOpenChange: setOpen, ...props });
|
|
29724
29724
|
}
|
|
29725
29725
|
function ConnectedGridView(props) {
|
|
@@ -29856,7 +29856,7 @@ var PROVIDER_FAMILIES = [
|
|
|
29856
29856
|
{ key: "google", label: "Google", vendors: ["gmail"] }
|
|
29857
29857
|
];
|
|
29858
29858
|
function VendorGlyph({ catalog }) {
|
|
29859
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
29859
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.VendorLogo, { vendorKey: catalog.vendor_key, className: "h-7 w-7" });
|
|
29860
29860
|
}
|
|
29861
29861
|
function mailboxProductName(catalog) {
|
|
29862
29862
|
if (catalog.vendor_key === "microsoft") return "Outlook";
|
|
@@ -29923,7 +29923,7 @@ function EmailProviderRow({
|
|
|
29923
29923
|
const emailNoun = (n) => n === 1 ? "email" : "emails";
|
|
29924
29924
|
const syncedCount = thisSync?.synced_count ?? 0;
|
|
29925
29925
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
29926
|
-
|
|
29926
|
+
chunkSRD5YJJI_cjs.ImportRow,
|
|
29927
29927
|
{
|
|
29928
29928
|
testId: `email-provider-row-${catalog.vendor_key}`,
|
|
29929
29929
|
logo: /* @__PURE__ */ jsxRuntime.jsx(VendorGlyph, { catalog }),
|
|
@@ -29932,7 +29932,7 @@ function EmailProviderRow({
|
|
|
29932
29932
|
// Connecting AND reconnecting are owned by the family header, so a
|
|
29933
29933
|
// not-connected or needs-reconnect row shows no button of its own.
|
|
29934
29934
|
!isConnected || needsReconnect ? null : /* @__PURE__ */ jsxRuntime.jsx(
|
|
29935
|
-
|
|
29935
|
+
chunkSRD5YJJI_cjs.ImportRunActions,
|
|
29936
29936
|
{
|
|
29937
29937
|
isRunning: running,
|
|
29938
29938
|
isStopping: cancelSync.isPending,
|
|
@@ -29947,10 +29947,10 @@ function EmailProviderRow({
|
|
|
29947
29947
|
),
|
|
29948
29948
|
children: [
|
|
29949
29949
|
isConnected && !needsReconnect && !running && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
29950
|
-
|
|
29950
|
+
chunkSRD5YJJI_cjs.ImportSummary,
|
|
29951
29951
|
{
|
|
29952
|
-
aside: /* @__PURE__ */ jsxRuntime.jsx(
|
|
29953
|
-
|
|
29952
|
+
aside: /* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.ImportAside, { children: thisSync && thisSync.folders.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
29953
|
+
chunkSRD5YJJI_cjs.FolderSummary,
|
|
29954
29954
|
{
|
|
29955
29955
|
names: thisSync.folders.map(
|
|
29956
29956
|
(id) => mailboxFolders?.find((f) => f.id === id)?.name
|
|
@@ -29973,7 +29973,7 @@ function EmailProviderRow({
|
|
|
29973
29973
|
}
|
|
29974
29974
|
),
|
|
29975
29975
|
running && /* @__PURE__ */ jsxRuntime.jsx(
|
|
29976
|
-
|
|
29976
|
+
chunkSRD5YJJI_cjs.ImportProgress,
|
|
29977
29977
|
{
|
|
29978
29978
|
processed: progress?.processed ?? 0,
|
|
29979
29979
|
total: progress?.total,
|
|
@@ -30090,9 +30090,9 @@ function EmailImportPanel({
|
|
|
30090
30090
|
return { family, entries, extra, identity, connectVendor, connected, needsReconnect };
|
|
30091
30091
|
}).filter((g) => g.entries.length > 0 || g.extra);
|
|
30092
30092
|
if (groups.length === 0) return null;
|
|
30093
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30093
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.ImportPanel, { "data-testid": "email-import-panel", children: groups.map(
|
|
30094
30094
|
({ family, entries, extra, identity, connectVendor, connected, needsReconnect }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
30095
|
-
|
|
30095
|
+
chunkSRD5YJJI_cjs.ImportFamilySection,
|
|
30096
30096
|
{
|
|
30097
30097
|
label: family.label,
|
|
30098
30098
|
identity,
|
|
@@ -30101,7 +30101,7 @@ function EmailImportPanel({
|
|
|
30101
30101
|
onAction: () => void (!connected ? connectFamily(connectVendor) : needsReconnect ? reconnectFamily(connectVendor) : disconnectFamily(family, connectVendor, identity)),
|
|
30102
30102
|
testId: `import-family-${family.key}`,
|
|
30103
30103
|
actionButton: !connected ? { testId: `import-family-connect-${family.key}` } : needsReconnect ? { testId: `import-family-reconnect-${family.key}` } : { testId: `import-family-disconnect-${family.key}` },
|
|
30104
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
30104
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(chunkSRD5YJJI_cjs.ImportList, { children: [
|
|
30105
30105
|
entries.map((entry) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
30106
30106
|
EmailProviderRow,
|
|
30107
30107
|
{
|
|
@@ -30185,7 +30185,7 @@ function driveProduct(vendorKey) {
|
|
|
30185
30185
|
}
|
|
30186
30186
|
function VendorGlyph2({ catalog }) {
|
|
30187
30187
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30188
|
-
|
|
30188
|
+
chunkSRD5YJJI_cjs.VendorLogo,
|
|
30189
30189
|
{
|
|
30190
30190
|
vendorKey: catalog.vendor_key,
|
|
30191
30191
|
product: driveProduct(catalog.vendor_key).glyph,
|
|
@@ -30308,7 +30308,7 @@ function OneDriveProviderRow({
|
|
|
30308
30308
|
const driveNoun = (n) => n === 1 ? "document" : "documents";
|
|
30309
30309
|
const showRunActions = isConnected && !needsReconnect;
|
|
30310
30310
|
const reconnectAction = ownsAuth && needsReconnect ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
30311
|
-
|
|
30311
|
+
chunkSRD5YJJI_cjs.ImportActionButton,
|
|
30312
30312
|
{
|
|
30313
30313
|
onClick: () => void reconnectSelf(),
|
|
30314
30314
|
disabled: reauthPending,
|
|
@@ -30317,7 +30317,7 @@ function OneDriveProviderRow({
|
|
|
30317
30317
|
}
|
|
30318
30318
|
) : null;
|
|
30319
30319
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
30320
|
-
|
|
30320
|
+
chunkSRD5YJJI_cjs.ImportRow,
|
|
30321
30321
|
{
|
|
30322
30322
|
testId: `onedrive-provider-row-${catalog.vendor_key}`,
|
|
30323
30323
|
logo: /* @__PURE__ */ jsxRuntime.jsx(VendorGlyph2, { catalog }),
|
|
@@ -30329,7 +30329,7 @@ function OneDriveProviderRow({
|
|
|
30329
30329
|
// Until folders are configured here (or when nothing new is pending), Import now
|
|
30330
30330
|
// stays disabled; the gear opens the folder picker.
|
|
30331
30331
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
30332
|
-
|
|
30332
|
+
chunkSRD5YJJI_cjs.ImportRunActions,
|
|
30333
30333
|
{
|
|
30334
30334
|
isRunning: running,
|
|
30335
30335
|
isStopping: cancelSync.isPending,
|
|
@@ -30348,16 +30348,16 @@ function OneDriveProviderRow({
|
|
|
30348
30348
|
) : reconnectAction
|
|
30349
30349
|
),
|
|
30350
30350
|
children: [
|
|
30351
|
-
ownsAuth && needsReconnect && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
30351
|
+
ownsAuth && needsReconnect && /* @__PURE__ */ jsxRuntime.jsxs(chunkSRD5YJJI_cjs.ImportHint, { "data-testid": `onedrive-reconnect-hint-${catalog.vendor_key}`, children: [
|
|
30352
30352
|
"Couldn\u2019t reach SharePoint. Click ",
|
|
30353
30353
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium", children: "Reconnect" }),
|
|
30354
30354
|
" \u2014 if it keeps happening, log out and back in to refresh the connection."
|
|
30355
30355
|
] }),
|
|
30356
30356
|
configuredHere && !needsReconnect && !running && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
30357
|
-
|
|
30357
|
+
chunkSRD5YJJI_cjs.ImportSummary,
|
|
30358
30358
|
{
|
|
30359
30359
|
className: "mt-2",
|
|
30360
|
-
aside: typeof pendingCount === "number" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
30360
|
+
aside: typeof pendingCount === "number" ? /* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_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,
|
|
30361
30361
|
children: [
|
|
30362
30362
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
30363
30363
|
"Syncing ",
|
|
@@ -30385,7 +30385,7 @@ function OneDriveProviderRow({
|
|
|
30385
30385
|
}
|
|
30386
30386
|
),
|
|
30387
30387
|
running && /* @__PURE__ */ jsxRuntime.jsx(
|
|
30388
|
-
|
|
30388
|
+
chunkSRD5YJJI_cjs.ImportProgress,
|
|
30389
30389
|
{
|
|
30390
30390
|
processed: progress?.processed ?? 0,
|
|
30391
30391
|
total: progress?.total,
|
|
@@ -30449,13 +30449,13 @@ function SharePointEnableRow({
|
|
|
30449
30449
|
}
|
|
30450
30450
|
};
|
|
30451
30451
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30452
|
-
|
|
30452
|
+
chunkSRD5YJJI_cjs.ImportRow,
|
|
30453
30453
|
{
|
|
30454
30454
|
testId: `onedrive-provider-row-${catalog.vendor_key}`,
|
|
30455
|
-
logo: /* @__PURE__ */ jsxRuntime.jsx(
|
|
30455
|
+
logo: /* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.VendorLogo, { vendorKey: catalog.vendor_key, product: product.glyph, className: "h-7 w-7" }),
|
|
30456
30456
|
name: product.name,
|
|
30457
30457
|
actions: /* @__PURE__ */ jsxRuntime.jsx(
|
|
30458
|
-
|
|
30458
|
+
chunkSRD5YJJI_cjs.ImportActionButton,
|
|
30459
30459
|
{
|
|
30460
30460
|
onClick: () => void enable(),
|
|
30461
30461
|
disabled: pending,
|
|
@@ -30463,7 +30463,7 @@ function SharePointEnableRow({
|
|
|
30463
30463
|
children: pending ? "Enabling\u2026" : `Enable ${product.name}`
|
|
30464
30464
|
}
|
|
30465
30465
|
),
|
|
30466
|
-
children: sharePointAdminUrl && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
30466
|
+
children: sharePointAdminUrl && /* @__PURE__ */ jsxRuntime.jsxs(chunkSRD5YJJI_cjs.ImportHint, { children: [
|
|
30467
30467
|
"Does your organization require admin approval?",
|
|
30468
30468
|
" ",
|
|
30469
30469
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -30512,11 +30512,11 @@ function DriveImportPanel({
|
|
|
30512
30512
|
}
|
|
30513
30513
|
const product = driveProduct(entry.vendor_key);
|
|
30514
30514
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30515
|
-
|
|
30515
|
+
chunkSRD5YJJI_cjs.ImportRow,
|
|
30516
30516
|
{
|
|
30517
30517
|
testId: `onedrive-provider-row-${entry.vendor_key}`,
|
|
30518
30518
|
logo: /* @__PURE__ */ jsxRuntime.jsx(
|
|
30519
|
-
|
|
30519
|
+
chunkSRD5YJJI_cjs.VendorLogo,
|
|
30520
30520
|
{
|
|
30521
30521
|
vendorKey: entry.vendor_key,
|
|
30522
30522
|
product: product.glyph,
|
|
@@ -30541,7 +30541,7 @@ function DriveImportPanel({
|
|
|
30541
30541
|
);
|
|
30542
30542
|
}).filter(Boolean);
|
|
30543
30543
|
if (rows.length === 0) return null;
|
|
30544
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30544
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.ImportList, { "data-testid": "onedrive-import-panel", children: rows });
|
|
30545
30545
|
}
|
|
30546
30546
|
function useHasAccountsImport() {
|
|
30547
30547
|
const isVendorVisible = react.useConnectorVendorVisibility();
|
|
@@ -30619,8 +30619,8 @@ function ProcessingSection({
|
|
|
30619
30619
|
tasks,
|
|
30620
30620
|
onDelete
|
|
30621
30621
|
}) {
|
|
30622
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30623
|
-
|
|
30622
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.TaskSection, { title, count: count2, status, tooltip: SECTION_TOOLTIPS[status], children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
30623
|
+
chunkI3ITXJRO_cjs.UploadTaskList,
|
|
30624
30624
|
{
|
|
30625
30625
|
tasks,
|
|
30626
30626
|
title: "",
|
|
@@ -30874,7 +30874,7 @@ var MENU_LABELS = {
|
|
|
30874
30874
|
};
|
|
30875
30875
|
function applyDatabaseColumns(columns, api) {
|
|
30876
30876
|
const kept = (id) => api.getColumn(id) ? [id] : [];
|
|
30877
|
-
|
|
30877
|
+
chunkSRD5YJJI_cjs.applyColumnLayout(api, [...kept(chunkTQSU3I4C_cjs.OPEN_ROW_COL_ID), ...columns, ...kept(chunkTQSU3I4C_cjs.ADD_COLUMN_COL_ID)]);
|
|
30878
30878
|
}
|
|
30879
30879
|
function DatabaseViewsMenu({
|
|
30880
30880
|
databaseId,
|
|
@@ -30893,7 +30893,7 @@ function DatabaseViewsMenu({
|
|
|
30893
30893
|
[defaultColumns]
|
|
30894
30894
|
);
|
|
30895
30895
|
const onLoadView = React9.useCallback(
|
|
30896
|
-
(view, api) =>
|
|
30896
|
+
(view, api) => chunkSRD5YJJI_cjs.applyViewColumns(api, view, applyDatabaseColumns),
|
|
30897
30897
|
[]
|
|
30898
30898
|
);
|
|
30899
30899
|
const onSaveView = React9.useCallback(
|
|
@@ -30913,7 +30913,7 @@ function DatabaseViewsMenu({
|
|
|
30913
30913
|
},
|
|
30914
30914
|
[confirm, deleteView, notify18]
|
|
30915
30915
|
);
|
|
30916
|
-
const menu =
|
|
30916
|
+
const menu = chunkSRD5YJJI_cjs.useGridViews({
|
|
30917
30917
|
getGridApi,
|
|
30918
30918
|
defaultColumns,
|
|
30919
30919
|
builtins,
|
|
@@ -30926,7 +30926,7 @@ function DatabaseViewsMenu({
|
|
|
30926
30926
|
onDeleteView,
|
|
30927
30927
|
isSaving
|
|
30928
30928
|
});
|
|
30929
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30929
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.ViewSelectorMenu, { ...menu, labels: MENU_LABELS });
|
|
30930
30930
|
}
|
|
30931
30931
|
function useMoveLocalViews(gridId, ready, importViews) {
|
|
30932
30932
|
const localViews = react.useArbiSessionState((state) => state.grid.savedViews[gridId]);
|
|
@@ -31711,7 +31711,7 @@ function ConnectedChatThread({
|
|
|
31711
31711
|
}
|
|
31712
31712
|
return /* @__PURE__ */ jsxRuntime.jsxs(React9.Fragment, { children: [
|
|
31713
31713
|
isFirstOfDay && /* @__PURE__ */ jsxRuntime.jsx(react.DateSeparator, { children: formatDay(msg.created_at) }),
|
|
31714
|
-
!isSent && startsPeerRun(i) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
31714
|
+
!isSent && startsPeerRun(i) && /* @__PURE__ */ jsxRuntime.jsx(chunkCPQRQEJL_cjs.MessageAuthor, { children: renderUser2(memberById(msg.sender_ext_id) ?? null) }),
|
|
31715
31715
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31716
31716
|
react.ChatBubble,
|
|
31717
31717
|
{
|
|
@@ -32653,7 +32653,7 @@ function ConnectedConfigForm({ availableModels, ...rest }) {
|
|
|
32653
32653
|
({ value, onChange }) => /* @__PURE__ */ jsxRuntime.jsx(ConnectedModelSelector, { value, onValueChange: onChange, className: "w-full" }),
|
|
32654
32654
|
[]
|
|
32655
32655
|
);
|
|
32656
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
32656
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.ConfigForm, { ...rest, renderModelSelect: hasModels ? renderModelSelect : void 0 });
|
|
32657
32657
|
}
|
|
32658
32658
|
function ConnectedAgentConfigForm({ agentExtId, agentName, onSaved }) {
|
|
32659
32659
|
const { notify: notify18 } = chunk6K3VOHHL_cjs.useBlocksEnvironment();
|
|
@@ -32770,7 +32770,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
32770
32770
|
}, [name, selectedWorkspaces, role, createAgent, addWorkspaceUsers, arbi, notify18]);
|
|
32771
32771
|
if (editAgent) {
|
|
32772
32772
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
32773
|
-
|
|
32773
|
+
chunkI3ITXJRO_cjs.AgentEditView,
|
|
32774
32774
|
{
|
|
32775
32775
|
agentName: editAgent.name,
|
|
32776
32776
|
config: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -32786,7 +32786,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
32786
32786
|
}
|
|
32787
32787
|
if (view === "main") {
|
|
32788
32788
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
32789
|
-
|
|
32789
|
+
chunkI3ITXJRO_cjs.AgentMainView,
|
|
32790
32790
|
{
|
|
32791
32791
|
onConnectExternal: () => setView("connect"),
|
|
32792
32792
|
config: mainAgent ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -32802,11 +32802,11 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
32802
32802
|
}
|
|
32803
32803
|
if (result) {
|
|
32804
32804
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
32805
|
-
|
|
32805
|
+
chunkI3ITXJRO_cjs.AgentCreatedView,
|
|
32806
32806
|
{
|
|
32807
32807
|
email: result.email,
|
|
32808
32808
|
signingKey: result.signingKey,
|
|
32809
|
-
instructions: /* @__PURE__ */ jsxRuntime.jsx(
|
|
32809
|
+
instructions: /* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.AgentConnectInstructions, { email: result.email, signingKey: result.signingKey }),
|
|
32810
32810
|
config: /* @__PURE__ */ jsxRuntime.jsx(ConnectedAgentConfigForm, { agentExtId: result.extId, agentName: result.name }),
|
|
32811
32811
|
isConfigOpen: configOpen,
|
|
32812
32812
|
onToggleConfig: () => setConfigOpen((v) => !v),
|
|
@@ -32815,7 +32815,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
32815
32815
|
);
|
|
32816
32816
|
}
|
|
32817
32817
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
32818
|
-
|
|
32818
|
+
chunkI3ITXJRO_cjs.AgentCreateView,
|
|
32819
32819
|
{
|
|
32820
32820
|
name,
|
|
32821
32821
|
onNameChange: setName,
|
|
@@ -34499,14 +34499,14 @@ var referencesOf = (inputs) => {
|
|
|
34499
34499
|
return value?.documents ?? [];
|
|
34500
34500
|
};
|
|
34501
34501
|
var PROMPT_BINDINGS = {
|
|
34502
|
-
[
|
|
34502
|
+
[chunkI3ITXJRO_cjs.GENERATE_IMAGE_ID]: {
|
|
34503
34503
|
attachScope: false,
|
|
34504
34504
|
tools: (inputs) => {
|
|
34505
34505
|
const aspectRatio = typeof inputs.aspect_ratio === "string" ? inputs.aspect_ratio : "";
|
|
34506
34506
|
return {
|
|
34507
34507
|
retrieval_chunk: browser.buildRetrievalChunkTool([]),
|
|
34508
34508
|
retrieval_full_context: browser.buildRetrievalFullContextTool(referencesOf(inputs)),
|
|
34509
|
-
...aspectRatio && aspectRatio !==
|
|
34509
|
+
...aspectRatio && aspectRatio !== chunkI3ITXJRO_cjs.IMAGE_ASPECT_AUTO ? {
|
|
34510
34510
|
image_generation: {
|
|
34511
34511
|
name: "image_generation",
|
|
34512
34512
|
description: "image generation",
|
|
@@ -34527,19 +34527,19 @@ var text = (inputs, name) => {
|
|
|
34527
34527
|
function useLaunchWorkflow({ landing: surfaceLanding } = {}) {
|
|
34528
34528
|
const { data: documents = [] } = react.useDocuments();
|
|
34529
34529
|
const { data: workspaceTags = [] } = react.useTags();
|
|
34530
|
-
const tags = React9.useMemo(() =>
|
|
34530
|
+
const tags = React9.useMemo(() => chunkTX3JM4EI_cjs.documentScopeLabels(workspaceTags), [workspaceTags]);
|
|
34531
34531
|
const createTag = react.useCreateTag();
|
|
34532
34532
|
const updateTag = react.useUpdateTag();
|
|
34533
34533
|
const generate = react.useGenerateDocTags();
|
|
34534
|
-
const { create: createTask } =
|
|
34534
|
+
const { create: createTask } = chunkL6KTANY2_cjs.useWorkflowTasks();
|
|
34535
34535
|
const applyModel = react.useApplyChatModel();
|
|
34536
34536
|
const session = react.useArbiSessionStore();
|
|
34537
34537
|
const { notify: notify18, openFiles, openNewConversation } = chunk6K3VOHHL_cjs.useBlocksEnvironment();
|
|
34538
34538
|
const annotate = React9.useCallback(
|
|
34539
34539
|
async ({ inputs, scope }) => {
|
|
34540
34540
|
const description = text(inputs, "description");
|
|
34541
|
-
const name = text(inputs, "name") ||
|
|
34542
|
-
const matching =
|
|
34541
|
+
const name = text(inputs, "name") || chunkI3ITXJRO_cjs.deriveAnnotationName(description);
|
|
34542
|
+
const matching = chunkTX3JM4EI_cjs.matchWorkflowScope(documents, scope);
|
|
34543
34543
|
if (!name || !description || matching.length === 0) return;
|
|
34544
34544
|
try {
|
|
34545
34545
|
const existing = tags.find((t) => t.name.toLowerCase() === name.toLowerCase());
|
|
@@ -34582,9 +34582,9 @@ function useLaunchWorkflow({ landing: surfaceLanding } = {}) {
|
|
|
34582
34582
|
async (launch) => {
|
|
34583
34583
|
const { workflow, inputs, scope, agentId } = launch;
|
|
34584
34584
|
if (workflow.run.kind === "operation") {
|
|
34585
|
-
if (workflow.id ===
|
|
34585
|
+
if (workflow.id === chunkI3ITXJRO_cjs.ANNOTATE_ID) {
|
|
34586
34586
|
await annotate(launch);
|
|
34587
|
-
|
|
34587
|
+
chunkI3ITXJRO_cjs.recordWorkflowUse(workflow.id);
|
|
34588
34588
|
return;
|
|
34589
34589
|
}
|
|
34590
34590
|
throw new Error(`No host handler for workflow "${workflow.id}"`);
|
|
@@ -34594,7 +34594,7 @@ function useLaunchWorkflow({ landing: surfaceLanding } = {}) {
|
|
|
34594
34594
|
);
|
|
34595
34595
|
const prompt = chunkSMQIYEOL_cjs.composeWorkflowPrompt(workflow, inputs, { documentTitles });
|
|
34596
34596
|
if (!prompt) return;
|
|
34597
|
-
|
|
34597
|
+
chunkI3ITXJRO_cjs.recordWorkflowUse(workflow.id);
|
|
34598
34598
|
if (agentId) {
|
|
34599
34599
|
try {
|
|
34600
34600
|
const created = await createTask({
|
|
@@ -34639,7 +34639,7 @@ function useLaunchWorkflow({ landing: surfaceLanding } = {}) {
|
|
|
34639
34639
|
const binding = PROMPT_BINDINGS[workflow.id];
|
|
34640
34640
|
if (!inPlace) openNewConversation();
|
|
34641
34641
|
if (binding?.attachScope !== false && !chunkSMQIYEOL_cjs.isEmptyWorkflowScope(scope)) {
|
|
34642
|
-
const ids =
|
|
34642
|
+
const ids = chunkTX3JM4EI_cjs.matchWorkflowScope(documents, scope).map((d) => d.external_id);
|
|
34643
34643
|
if (ids.length > 0) {
|
|
34644
34644
|
session.setConversationDocuments(
|
|
34645
34645
|
inPlace ? session.getState().conversationId ?? "new" : "new",
|
|
@@ -34674,30 +34674,30 @@ function ConnectedWorkflowStart({
|
|
|
34674
34674
|
const onLaunch = useLaunchWorkflow({ landing });
|
|
34675
34675
|
const { openUpload } = chunk6K3VOHHL_cjs.useBlocksEnvironment();
|
|
34676
34676
|
const { data: workspaceTags = [] } = react.useTags();
|
|
34677
|
-
const tags = React9.useMemo(() =>
|
|
34677
|
+
const tags = React9.useMemo(() => chunkTX3JM4EI_cjs.documentScopeLabels(workspaceTags), [workspaceTags]);
|
|
34678
34678
|
const fieldPlaceholder = React9.useCallback(
|
|
34679
34679
|
(field, inputs, workflow) => {
|
|
34680
|
-
if (workflow.id !==
|
|
34681
|
-
const derived =
|
|
34680
|
+
if (workflow.id !== chunkI3ITXJRO_cjs.ANNOTATE_ID || field.name !== "name") return void 0;
|
|
34681
|
+
const derived = chunkI3ITXJRO_cjs.deriveAnnotationName(String(inputs.description ?? ""));
|
|
34682
34682
|
return derived ? `Otherwise \u201C${derived}\u201D` : "Taken from the description";
|
|
34683
34683
|
},
|
|
34684
34684
|
[]
|
|
34685
34685
|
);
|
|
34686
34686
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
34687
|
-
|
|
34687
|
+
chunkQ6N56ZBF_cjs.ConnectedWorkflowLauncher,
|
|
34688
34688
|
{
|
|
34689
34689
|
...rest,
|
|
34690
34690
|
workflows,
|
|
34691
34691
|
onLaunch,
|
|
34692
|
-
renderIcon:
|
|
34692
|
+
renderIcon: chunkI3ITXJRO_cjs.renderWorkflowIcon,
|
|
34693
34693
|
onAddFiles: openUpload,
|
|
34694
34694
|
agentLabels: AGENT_LABELS,
|
|
34695
34695
|
addFilesAction,
|
|
34696
34696
|
fieldPlaceholder,
|
|
34697
|
-
submitLabel: ({ workflow, matchedCount }) => workflow.id ===
|
|
34697
|
+
submitLabel: ({ workflow, matchedCount }) => workflow.id === chunkI3ITXJRO_cjs.ANNOTATE_ID && matchedCount !== null ? `Annotate ${matchedCount} document${matchedCount !== 1 ? "s" : ""}` : void 0,
|
|
34698
34698
|
renderNotice: ({ workflow, inputs }) => {
|
|
34699
|
-
if (workflow.id !==
|
|
34700
|
-
const name = String(inputs.name ?? "").trim() ||
|
|
34699
|
+
if (workflow.id !== chunkI3ITXJRO_cjs.ANNOTATE_ID) return null;
|
|
34700
|
+
const name = String(inputs.name ?? "").trim() || chunkI3ITXJRO_cjs.deriveAnnotationName(String(inputs.description ?? ""));
|
|
34701
34701
|
const existing = name ? tags.find((t) => t.name.toLowerCase() === name.toLowerCase()) : void 0;
|
|
34702
34702
|
if (!existing) return null;
|
|
34703
34703
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -34734,9 +34734,9 @@ function resolveLaunchInputs(workflow, request) {
|
|
|
34734
34734
|
return { ...fromContext, ...fromScope, ...request.inputs };
|
|
34735
34735
|
}
|
|
34736
34736
|
function useWorkflowLaunch() {
|
|
34737
|
-
const { skills } =
|
|
34737
|
+
const { skills } = chunkL6KTANY2_cjs.useWorkflowDefinitions();
|
|
34738
34738
|
const launch = React9.useCallback(
|
|
34739
|
-
(workflowId, options2 = {}) =>
|
|
34739
|
+
(workflowId, options2 = {}) => chunkI3ITXJRO_cjs.openWorkflowLaunch({ workflowId, ...options2 }),
|
|
34740
34740
|
[]
|
|
34741
34741
|
);
|
|
34742
34742
|
const itemsFor = React9.useCallback(
|
|
@@ -34765,9 +34765,9 @@ function useWorkflowLaunch() {
|
|
|
34765
34765
|
return { launch, itemsFor, scopeItemsFor };
|
|
34766
34766
|
}
|
|
34767
34767
|
function Inner() {
|
|
34768
|
-
const request =
|
|
34769
|
-
const close =
|
|
34770
|
-
const { skills } =
|
|
34768
|
+
const request = chunkI3ITXJRO_cjs.useWorkflowLaunchRequest();
|
|
34769
|
+
const close = chunkI3ITXJRO_cjs.closeWorkflowLaunch;
|
|
34770
|
+
const { skills } = chunkL6KTANY2_cjs.useWorkflowDefinitions();
|
|
34771
34771
|
const run = useLaunchWorkflow({ landing: request?.landing });
|
|
34772
34772
|
const workflow = skills.find((w) => w.id === request?.workflowId);
|
|
34773
34773
|
const inputs = React9.useMemo(
|
|
@@ -34804,7 +34804,7 @@ function Inner() {
|
|
|
34804
34804
|
);
|
|
34805
34805
|
}
|
|
34806
34806
|
function WorkflowLaunchHost() {
|
|
34807
|
-
return
|
|
34807
|
+
return chunkI3ITXJRO_cjs.useWorkflowLaunchRequest() ? /* @__PURE__ */ jsxRuntime.jsx(Inner, {}) : null;
|
|
34808
34808
|
}
|
|
34809
34809
|
function isNeedsConfirmationDetail(detail) {
|
|
34810
34810
|
return typeof detail === "object" && detail !== null && detail.needs_confirmation === "resource_private";
|
|
@@ -35151,7 +35151,7 @@ var ConversationEntity = React9.memo(function ConversationEntity2({
|
|
|
35151
35151
|
);
|
|
35152
35152
|
const icon2 = /* @__PURE__ */ jsxRuntime.jsx(ui.ThreadVisibilityIcon, { shared: isShared, className: `${iconSizeClass} shrink-0` });
|
|
35153
35153
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
35154
|
-
|
|
35154
|
+
chunkI3ITXJRO_cjs.EntityChip,
|
|
35155
35155
|
{
|
|
35156
35156
|
variant,
|
|
35157
35157
|
icon: icon2,
|
|
@@ -35173,7 +35173,7 @@ function WorkflowRunStatusCell({ conversation }) {
|
|
|
35173
35173
|
});
|
|
35174
35174
|
const { data: members = [] } = react.useWorkspaceUsers();
|
|
35175
35175
|
const me = react.useArbiSession().user?.external_id;
|
|
35176
|
-
const steps =
|
|
35176
|
+
const steps = chunkI3ITXJRO_cjs.fromPlanSteps(conversation.plan?.steps ?? []);
|
|
35177
35177
|
const states = chunkSMQIYEOL_cjs.stepStatesFromActivity(activity.data ?? []);
|
|
35178
35178
|
const nameOf = (id) => {
|
|
35179
35179
|
if (id === me) return "you";
|
|
@@ -35181,7 +35181,7 @@ function WorkflowRunStatusCell({ conversation }) {
|
|
|
35181
35181
|
return person ? ui.getUserDisplayName(person) : void 0;
|
|
35182
35182
|
};
|
|
35183
35183
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
35184
|
-
|
|
35184
|
+
chunkI3ITXJRO_cjs.WorkflowRunStatus,
|
|
35185
35185
|
{
|
|
35186
35186
|
steps,
|
|
35187
35187
|
states,
|
|
@@ -35215,7 +35215,7 @@ function ConversationStatusCell({ conversation }) {
|
|
|
35215
35215
|
if (conversation.plan?.steps?.length && !isLiveGenerating)
|
|
35216
35216
|
return /* @__PURE__ */ jsxRuntime.jsx(WorkflowRunStatusCell, { conversation });
|
|
35217
35217
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
35218
|
-
|
|
35218
|
+
chunkI3ITXJRO_cjs.ThreadStatusLine,
|
|
35219
35219
|
{
|
|
35220
35220
|
state: threadStateOf(conversation, isLiveGenerating),
|
|
35221
35221
|
className: "h-full",
|
|
@@ -35503,7 +35503,7 @@ function useThreadLabels(canEditShared) {
|
|
|
35503
35503
|
).map((label) => label.id)
|
|
35504
35504
|
);
|
|
35505
35505
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
35506
|
-
|
|
35506
|
+
chunkSRD5YJJI_cjs.BulkLabelSelectView,
|
|
35507
35507
|
{
|
|
35508
35508
|
options: options2,
|
|
35509
35509
|
appliedIds: all,
|
|
@@ -35544,19 +35544,19 @@ function useConnectedThreadActivity(conversationId) {
|
|
|
35544
35544
|
const environment = chunk6K3VOHHL_cjs.useBlocksEnvironment();
|
|
35545
35545
|
const { openDocument, openMail } = environment;
|
|
35546
35546
|
const navigateToConversation = (id, messageId) => environment.openConversation(id, messageId ? { messageId } : void 0);
|
|
35547
|
-
const openWorkflow =
|
|
35547
|
+
const openWorkflow = chunkQ6N56ZBF_cjs.useOpenWorkflow();
|
|
35548
35548
|
const workspaceExtId = react.useArbiSessionState((s) => s.workspaceId);
|
|
35549
35549
|
const task = conversations.find((c) => c.external_id === conversationId);
|
|
35550
|
-
const latestMessageAt =
|
|
35550
|
+
const latestMessageAt = chunkI3ITXJRO_cjs.latestMessageTime(messageHistory);
|
|
35551
35551
|
const events = (activity.data ?? []).filter(
|
|
35552
|
-
(event) => !
|
|
35552
|
+
(event) => !chunkI3ITXJRO_cjs.isSupersededStop(event, latestMessageAt)
|
|
35553
35553
|
);
|
|
35554
35554
|
const personName = (extId) => {
|
|
35555
35555
|
const person = members.find((m) => m.user.external_id === extId)?.user;
|
|
35556
35556
|
return person ? ui.getUserDisplayName(person) : "someone";
|
|
35557
35557
|
};
|
|
35558
|
-
const planSteps =
|
|
35559
|
-
const entries =
|
|
35558
|
+
const planSteps = chunkI3ITXJRO_cjs.fromPlanSteps(task?.plan?.steps ?? []);
|
|
35559
|
+
const entries = chunkI3ITXJRO_cjs.compactThreadActivity(events, (id) => planSteps.find((s) => s.id === id)?.title);
|
|
35560
35560
|
const items = entries.map(({ event, label, recipients }) => {
|
|
35561
35561
|
const messageActivity = [
|
|
35562
35562
|
"created",
|
|
@@ -35582,7 +35582,7 @@ function useConnectedThreadActivity(conversationId) {
|
|
|
35582
35582
|
const messageId = sourceMessage ?? [...messageHistory].reverse().find((message) => Date.parse(message.created_at ?? "") <= Date.parse(event.created_at))?.external_id ?? messageHistory[0]?.external_id;
|
|
35583
35583
|
const doc = docId ? docs.find((d) => d.external_id === docId) : void 0;
|
|
35584
35584
|
const mailDraftId = event.kind === "notified" && event.detail?.event === "mail_draft_ready" && typeof event.detail?.mail_id === "string" ? event.detail.mail_id : void 0;
|
|
35585
|
-
const missed = event.kind === "notified" && recipients.length ?
|
|
35585
|
+
const missed = event.kind === "notified" && recipients.length ? chunkI3ITXJRO_cjs.unnotifiedMentions(
|
|
35586
35586
|
messageHistory.find((message) => message.external_id === sourceMessage)?.mentions,
|
|
35587
35587
|
recipients,
|
|
35588
35588
|
event.actor_ext_id
|
|
@@ -35615,7 +35615,7 @@ function useConnectedThreadActivity(conversationId) {
|
|
|
35615
35615
|
) : void 0,
|
|
35616
35616
|
docId,
|
|
35617
35617
|
docTitle: doc ? ui.getDocumentTitle(doc) : void 0,
|
|
35618
|
-
label: mailDraftId ? "Left a draft email" : event.kind === "notified" && recipients.length ?
|
|
35618
|
+
label: mailDraftId ? "Left a draft email" : event.kind === "notified" && recipients.length ? chunkI3ITXJRO_cjs.notifiedLabel(recipients.map(personName), missed.map(personName)) : label,
|
|
35619
35619
|
description: [
|
|
35620
35620
|
name,
|
|
35621
35621
|
label,
|
|
@@ -35629,7 +35629,7 @@ function useConnectedThreadActivity(conversationId) {
|
|
|
35629
35629
|
stepChip: eventStep ? stepChipOf(eventStep, event.kind, stepDocument) : void 0,
|
|
35630
35630
|
// No avatar tooltip: the entry is already a button (or titled row) that carries the same
|
|
35631
35631
|
// details, and a tooltip trigger inside it would be a nested <button>.
|
|
35632
|
-
avatar: assistant ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
35632
|
+
avatar: assistant ? /* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.AssistantEntity, { variant: "icon", size: 20, showTooltip: false }) : member ? /* @__PURE__ */ jsxRuntime.jsx(chunkZDX7X7R5_cjs.DocumentUser, { user: member, tooltip: false }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Clock, { className: "size-4 text-muted-foreground" }),
|
|
35633
35633
|
time: ui.formatRelativeTime(event.created_at, { style: "short" }),
|
|
35634
35634
|
exactTime: ui.formatFriendlyDate(event.created_at),
|
|
35635
35635
|
onOpenDocument: docId && doc ? () => openDocument(docId) : void 0,
|
|
@@ -35678,7 +35678,7 @@ function useConnectedThreadActivity(conversationId) {
|
|
|
35678
35678
|
onSelect: () => navigateToConversation(source)
|
|
35679
35679
|
});
|
|
35680
35680
|
}
|
|
35681
|
-
const links =
|
|
35681
|
+
const links = chunkI3ITXJRO_cjs.linkedRunsFromActivity(activity.data);
|
|
35682
35682
|
const threadName = (id, workflowId) => conversations.find((c) => c.external_id === id)?.title || workflows.find((w) => w.external_id === workflowId)?.name || "Linked thread";
|
|
35683
35683
|
const signals = links.raised.map((raised) => ({
|
|
35684
35684
|
step: raised.step,
|
|
@@ -35693,7 +35693,7 @@ function useConnectedThreadActivity(conversationId) {
|
|
|
35693
35693
|
if (links.startedBy) {
|
|
35694
35694
|
const { conversationId: parentId, step, signal } = links.startedBy;
|
|
35695
35695
|
const parent = conversations.find((c) => c.external_id === parentId);
|
|
35696
|
-
const parentSteps =
|
|
35696
|
+
const parentSteps = chunkI3ITXJRO_cjs.fromPlanSteps(parent?.plan?.steps ?? []);
|
|
35697
35697
|
startedBy = {
|
|
35698
35698
|
stepTitle: parentSteps.find((s) => s.id === step)?.title ?? step ?? "a step",
|
|
35699
35699
|
threadTitle: parent?.title || "another thread",
|
|
@@ -35726,7 +35726,7 @@ function ConnectedThreadTaskBar({
|
|
|
35726
35726
|
const person = members.find((m) => m.user.external_id === id)?.user;
|
|
35727
35727
|
return person ? ui.getUserDisplayName(person) : void 0;
|
|
35728
35728
|
};
|
|
35729
|
-
const steps =
|
|
35729
|
+
const steps = chunkI3ITXJRO_cjs.fromPlanSteps(task?.plan?.steps ?? []);
|
|
35730
35730
|
const states = chunkSMQIYEOL_cjs.stepStatesFromActivity(activity.data ?? []);
|
|
35731
35731
|
const runInputs = task?.skill_inputs ?? {};
|
|
35732
35732
|
const stepCall = (body) => actOnStep.mutateAsync({ conversationId, body });
|
|
@@ -35752,7 +35752,7 @@ function ConnectedThreadTaskBar({
|
|
|
35752
35752
|
task?.plan?.steps?.length ? (
|
|
35753
35753
|
// A workflow run: its named steps, with what happened in the thread under each.
|
|
35754
35754
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
35755
|
-
|
|
35755
|
+
chunkI3ITXJRO_cjs.WorkflowThreadStrip,
|
|
35756
35756
|
{
|
|
35757
35757
|
steps,
|
|
35758
35758
|
states,
|
|
@@ -35779,7 +35779,7 @@ function ConnectedThreadTaskBar({
|
|
|
35779
35779
|
renderStepAction: (step, phase) => (
|
|
35780
35780
|
// A signer or a draft's person acts on their step even on a thread they cannot edit.
|
|
35781
35781
|
canEdit || phase === "waiting" || phase === "done" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
35782
|
-
|
|
35782
|
+
chunkI3ITXJRO_cjs.WorkflowStepAction,
|
|
35783
35783
|
{
|
|
35784
35784
|
step,
|
|
35785
35785
|
phase,
|
|
@@ -35800,8 +35800,8 @@ function ConnectedThreadTaskBar({
|
|
|
35800
35800
|
}
|
|
35801
35801
|
)
|
|
35802
35802
|
) : items.length || startedBy ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
35803
|
-
startedBy && /* @__PURE__ */ jsxRuntime.jsx(
|
|
35804
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
35803
|
+
startedBy && /* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.WorkflowThreadStartedBy, { origin: startedBy }),
|
|
35804
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.TaskFlow, { items: items.filter((item) => !item.step) })
|
|
35805
35805
|
] }) : (
|
|
35806
35806
|
// Ordinary chats record no activity events, so an empty ribbon says nothing rather than
|
|
35807
35807
|
// "No recorded activity yet" while the answer and its steps are right there in the thread.
|
|
@@ -35835,7 +35835,7 @@ function ConnectedThreadTaskBar({
|
|
|
35835
35835
|
) }),
|
|
35836
35836
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.DropdownMenuContent, { align: "end", children: [
|
|
35837
35837
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
35838
|
-
|
|
35838
|
+
chunkYMZAHBFL_cjs.ThreadFollowMenuItem,
|
|
35839
35839
|
{
|
|
35840
35840
|
following: follow.following,
|
|
35841
35841
|
onFollowingChange: (on) => (
|
|
@@ -36091,7 +36091,7 @@ function ConnectedTaskStartDialog({
|
|
|
36091
36091
|
};
|
|
36092
36092
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
36093
36093
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
36094
|
-
|
|
36094
|
+
chunkI3ITXJRO_cjs.TaskStartDialog,
|
|
36095
36095
|
{
|
|
36096
36096
|
open: open && !later,
|
|
36097
36097
|
onOpenChange: (next) => {
|
|
@@ -36116,14 +36116,14 @@ function ConnectedTaskStartDialog({
|
|
|
36116
36116
|
}
|
|
36117
36117
|
),
|
|
36118
36118
|
later && /* @__PURE__ */ jsxRuntime.jsx(
|
|
36119
|
-
|
|
36119
|
+
chunkL6KTANY2_cjs.ConnectedTaskComposer,
|
|
36120
36120
|
{
|
|
36121
36121
|
open: true,
|
|
36122
36122
|
onOpenChange: (next) => !next && setLater(null),
|
|
36123
36123
|
kind: "workflow",
|
|
36124
36124
|
startLater: true,
|
|
36125
36125
|
initialPrompt: later.prompt,
|
|
36126
|
-
initialWorkflowId: later.todo ?
|
|
36126
|
+
initialWorkflowId: later.todo ? chunkI3ITXJRO_cjs.REMIND_TASK_ID : void 0,
|
|
36127
36127
|
initialShared: later.shared,
|
|
36128
36128
|
launchWorkflow: later.workflow
|
|
36129
36129
|
}
|
|
@@ -36137,7 +36137,7 @@ function ConnectedThreadLauncher({ autoFocus }) {
|
|
|
36137
36137
|
const [later, setLater] = React9.useState(null);
|
|
36138
36138
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
36139
36139
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
36140
|
-
|
|
36140
|
+
chunkI3ITXJRO_cjs.ThreadLauncher,
|
|
36141
36141
|
{
|
|
36142
36142
|
workflows: task.workflows,
|
|
36143
36143
|
people: task.people,
|
|
@@ -36167,14 +36167,14 @@ function ConnectedThreadLauncher({ autoFocus }) {
|
|
|
36167
36167
|
}
|
|
36168
36168
|
),
|
|
36169
36169
|
later && /* @__PURE__ */ jsxRuntime.jsx(
|
|
36170
|
-
|
|
36170
|
+
chunkL6KTANY2_cjs.ConnectedTaskComposer,
|
|
36171
36171
|
{
|
|
36172
36172
|
open: true,
|
|
36173
36173
|
onOpenChange: (next) => !next && setLater(null),
|
|
36174
36174
|
kind: "workflow",
|
|
36175
36175
|
startLater: true,
|
|
36176
36176
|
initialPrompt: later.prompt,
|
|
36177
|
-
initialWorkflowId: later.todo ?
|
|
36177
|
+
initialWorkflowId: later.todo ? chunkI3ITXJRO_cjs.REMIND_TASK_ID : void 0,
|
|
36178
36178
|
initialShared: later.shared,
|
|
36179
36179
|
launchWorkflow: later.workflow
|
|
36180
36180
|
}
|
|
@@ -36203,13 +36203,13 @@ function ConnectedNewThreadDialog({
|
|
|
36203
36203
|
});
|
|
36204
36204
|
const parentOptions = React9.useMemo(() => {
|
|
36205
36205
|
const leaf = { external_id: "__new__" };
|
|
36206
|
-
return
|
|
36206
|
+
return chunkI3ITXJRO_cjs.moveTargets([...tasks, leaf], leaf).map((t) => ({
|
|
36207
36207
|
id: t.external_id,
|
|
36208
36208
|
name: t.title?.trim() || "Untitled task"
|
|
36209
36209
|
}));
|
|
36210
36210
|
}, [tasks]);
|
|
36211
36211
|
const submit = async (values) => {
|
|
36212
|
-
const request =
|
|
36212
|
+
const request = chunkI3ITXJRO_cjs.newThreadToRequest(values);
|
|
36213
36213
|
try {
|
|
36214
36214
|
if (!workspaceId) throw new Error("Open a workspace to add a task.");
|
|
36215
36215
|
if (!request.startAssistant && request.todo) {
|
|
@@ -36250,7 +36250,7 @@ function ConnectedNewThreadDialog({
|
|
|
36250
36250
|
}
|
|
36251
36251
|
};
|
|
36252
36252
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
36253
|
-
|
|
36253
|
+
chunkI3ITXJRO_cjs.NewThreadDialog,
|
|
36254
36254
|
{
|
|
36255
36255
|
open,
|
|
36256
36256
|
onOpenChange,
|
|
@@ -36266,7 +36266,7 @@ function ConnectedNewThreadDialog({
|
|
|
36266
36266
|
var START_VISIBLE = 8;
|
|
36267
36267
|
var START_SEARCH_ABOVE = 8;
|
|
36268
36268
|
function ConnectedConversationStart() {
|
|
36269
|
-
const { start } =
|
|
36269
|
+
const { start } = chunkL6KTANY2_cjs.useWorkflowDefinitions();
|
|
36270
36270
|
const { openSkillsBrowser } = chunk6K3VOHHL_cjs.useBlocksEnvironment();
|
|
36271
36271
|
const [query, setQuery] = React9.useState("");
|
|
36272
36272
|
const q = query.trim().toLowerCase();
|
|
@@ -36281,7 +36281,7 @@ function ConnectedConversationStart() {
|
|
|
36281
36281
|
const browse = openSkillsBrowser ? [
|
|
36282
36282
|
{
|
|
36283
36283
|
id: "browse-all",
|
|
36284
|
-
iconNode:
|
|
36284
|
+
iconNode: chunkI3ITXJRO_cjs.renderWorkflowIcon("library"),
|
|
36285
36285
|
title: "Browse all",
|
|
36286
36286
|
description: "See every skill, make a copy, add your own",
|
|
36287
36287
|
onSelect: () => openSkillsBrowser(),
|
|
@@ -36325,7 +36325,7 @@ function parseTypedSkill(draft) {
|
|
|
36325
36325
|
return m ? { slug: m[1].toLowerCase(), text: (m[2] ?? "").trim() } : null;
|
|
36326
36326
|
}
|
|
36327
36327
|
function useSlashSkillWorkflows({ landing }) {
|
|
36328
|
-
const { skills, skillsEnabled } =
|
|
36328
|
+
const { skills, skillsEnabled } = chunkL6KTANY2_cjs.useWorkflowDefinitions();
|
|
36329
36329
|
const { commands } = react.useBuiltinCommands();
|
|
36330
36330
|
const [active, setActive] = React9.useState(null);
|
|
36331
36331
|
const open = (workflow, text2) => {
|
|
@@ -36394,7 +36394,7 @@ function getToolParams(detail) {
|
|
|
36394
36394
|
return params;
|
|
36395
36395
|
}
|
|
36396
36396
|
function StepModelIcon({ modelName, tag }) {
|
|
36397
|
-
const cfg = tag === "Premium" ? null :
|
|
36397
|
+
const cfg = tag === "Premium" ? null : chunkI3ITXJRO_cjs.getModelIcon(modelName, tag);
|
|
36398
36398
|
if (tag !== "Premium" && !cfg) return null;
|
|
36399
36399
|
return /* @__PURE__ */ jsxRuntime.jsxs(ui.Tooltip, { children: [
|
|
36400
36400
|
/* @__PURE__ */ jsxRuntime.jsx(ui.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-shrink-0", children: tag === "Premium" ? /* @__PURE__ */ jsxRuntime.jsx(ui.ProviderIcon, { modelName: modelName ?? void 0, size: 11 }) : cfg && /* @__PURE__ */ jsxRuntime.jsx(cfg.icon, { className: cfg.className, style: { width: 11, height: 11 } }) }) }),
|
|
@@ -36509,15 +36509,15 @@ var AgentStepsComponent = ({
|
|
|
36509
36509
|
const lastStepIndex = mergedSteps[mergedSteps.length - 1].index;
|
|
36510
36510
|
const renderRow = (step, depth, isLastInList) => {
|
|
36511
36511
|
const i = posByIndex.get(step.index);
|
|
36512
|
-
const presentation =
|
|
36512
|
+
const presentation = chunkI3ITXJRO_cjs.getAgentStepPresentation(step, docInfo);
|
|
36513
36513
|
const { tool, Icon } = presentation;
|
|
36514
36514
|
const { label, summary, isMultiLine, details } = browser.getStepDisplay(step, docInfo);
|
|
36515
|
-
const accent =
|
|
36515
|
+
const accent = chunkI3ITXJRO_cjs.stepAccent(step, tool);
|
|
36516
36516
|
const duration = stepDurations[i];
|
|
36517
36517
|
const isLastStep = step.index === lastStepIndex;
|
|
36518
36518
|
const isActive = step.index === currentStepIndex;
|
|
36519
36519
|
const tier = step.step === "goal" ? step.model_recommendation : null;
|
|
36520
|
-
const TierIcon = tier ?
|
|
36520
|
+
const TierIcon = tier ? chunkI3ITXJRO_cjs.MODEL_TIER_ICON_MAP[tier] : null;
|
|
36521
36521
|
const useLiveDuration = isLastStep && liveTimer != null && step.t != null;
|
|
36522
36522
|
const durationNode = useLiveDuration ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
36523
36523
|
MessageLiveSeconds,
|
|
@@ -36541,7 +36541,7 @@ var AgentStepsComponent = ({
|
|
|
36541
36541
|
})) : null;
|
|
36542
36542
|
const folded = childrenByParent.get(step.index);
|
|
36543
36543
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
36544
|
-
|
|
36544
|
+
chunkI3ITXJRO_cjs.StepRow,
|
|
36545
36545
|
{
|
|
36546
36546
|
index: step.index,
|
|
36547
36547
|
number: displayNumber.get(step.index) ?? String(i + 1),
|
|
@@ -36555,7 +36555,7 @@ var AgentStepsComponent = ({
|
|
|
36555
36555
|
titleTestId: isActive ? "agent-expanded-current-step-description" : void 0,
|
|
36556
36556
|
badge: TierIcon ? /* @__PURE__ */ jsxRuntime.jsxs(ui.Tooltip, { children: [
|
|
36557
36557
|
/* @__PURE__ */ jsxRuntime.jsx(ui.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex shrink-0 items-center self-center", children: /* @__PURE__ */ jsxRuntime.jsx(TierIcon, { size: 12, className: accent.fg, "aria-hidden": true }) }) }),
|
|
36558
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui.TooltipContent, { side: "top", children:
|
|
36558
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.TooltipContent, { side: "top", children: chunkI3ITXJRO_cjs.MODEL_TIER_LABELS[tier] ?? tier })
|
|
36559
36559
|
] }) : void 0,
|
|
36560
36560
|
meta: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
36561
36561
|
isDeveloper && /* @__PURE__ */ jsxRuntime.jsx(StepModelIcon, { modelName: step.usage?.model, tag: getModelTag(step.usage?.model) }),
|
|
@@ -36570,14 +36570,14 @@ var AgentStepsComponent = ({
|
|
|
36570
36570
|
summary && !isActive && (step.narration ? (
|
|
36571
36571
|
/* Narration is PROSE (headings, bold, lists): render markdown, not raw asterisks.
|
|
36572
36572
|
Tool summaries stay plain text: one-line headlines where a clamp matters. */
|
|
36573
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
36574
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
36575
|
-
details.map((d, di) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
36576
|
-
showOutcome && /* @__PURE__ */ jsxRuntime.jsx(
|
|
36577
|
-
toolParams.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
36578
|
-
criteriaView && /* @__PURE__ */ jsxRuntime.jsx(
|
|
36573
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.StepNarration, { index: step.index, children: /* @__PURE__ */ jsxRuntime.jsx(chunkKD6ECCAN_cjs.ConnectedMarkdown, { isStreaming: false, children: summary }) })
|
|
36574
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.StepSummary, { index: step.index, multiLine: isMultiLine, children: summary })),
|
|
36575
|
+
details.map((d, di) => /* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.StepDetail, { index: step.index, children: d }, di)),
|
|
36576
|
+
showOutcome && /* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.StepOutcome, { index: step.index, failed: outcomeFailed, children: step.outcome }),
|
|
36577
|
+
toolParams.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.StepParams, { children: toolParams.map((p) => `${p.key}=${p.value}`).join(" ") }),
|
|
36578
|
+
criteriaView && /* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.GoalCriteria, { criteria: criteriaView }),
|
|
36579
36579
|
folded && folded.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
36580
|
-
|
|
36580
|
+
chunkI3ITXJRO_cjs.SubStepGroup,
|
|
36581
36581
|
{
|
|
36582
36582
|
parentIndex: step.index,
|
|
36583
36583
|
summary: summariseSubSteps(folded),
|
|
@@ -36603,7 +36603,7 @@ var AgentStepsComponent = ({
|
|
|
36603
36603
|
leftParts.push(`${browser.formatTokens(totalInputTokens)} in`);
|
|
36604
36604
|
if (totalOutputTokens > 0) leftParts.push(`${browser.formatTokens(totalOutputTokens)} out`);
|
|
36605
36605
|
summaryNode = /* @__PURE__ */ jsxRuntime.jsx(
|
|
36606
|
-
|
|
36606
|
+
chunkI3ITXJRO_cjs.StepTraceSummary,
|
|
36607
36607
|
{
|
|
36608
36608
|
left: leftParts.join(" \xB7 "),
|
|
36609
36609
|
isNearBudget: browser.isNearAiUsageBudget(contextUsage),
|
|
@@ -36611,7 +36611,7 @@ var AgentStepsComponent = ({
|
|
|
36611
36611
|
}
|
|
36612
36612
|
);
|
|
36613
36613
|
}
|
|
36614
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
36614
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.StepTrace, { className, summary: summaryNode, children: displayRows.map((row2, i) => {
|
|
36615
36615
|
if (row2.lane) {
|
|
36616
36616
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
36617
36617
|
LaneBinding,
|
|
@@ -36648,7 +36648,7 @@ function LaneBinding({
|
|
|
36648
36648
|
const running = !closed && isStreaming;
|
|
36649
36649
|
const latest = inner[inner.length - 1];
|
|
36650
36650
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
36651
|
-
|
|
36651
|
+
chunkI3ITXJRO_cjs.SubAgentLane,
|
|
36652
36652
|
{
|
|
36653
36653
|
handle,
|
|
36654
36654
|
number,
|
|
@@ -36771,7 +36771,7 @@ function AgentBarShell({
|
|
|
36771
36771
|
}, [isStepsExpanded, steps]);
|
|
36772
36772
|
const visibleStepCount = React9.useMemo(() => browser.topLevelAgentSteps(steps ?? []).length, [steps]);
|
|
36773
36773
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
36774
|
-
|
|
36774
|
+
chunkI3ITXJRO_cjs.AgentBar,
|
|
36775
36775
|
{
|
|
36776
36776
|
className,
|
|
36777
36777
|
testId,
|
|
@@ -36827,7 +36827,7 @@ function AgentControlBar({
|
|
|
36827
36827
|
const isPaused = controlState === "paused" || controlState === "resuming";
|
|
36828
36828
|
const steps = agentSteps ?? [];
|
|
36829
36829
|
const currentStep = browser.getCurrentStep(steps);
|
|
36830
|
-
const currentPresentation =
|
|
36830
|
+
const currentPresentation = chunkI3ITXJRO_cjs.getCurrentAgentStepPresentation(steps);
|
|
36831
36831
|
const CurrentStepIcon = currentPresentation?.Icon;
|
|
36832
36832
|
const stepLabel2 = currentPresentation?.description ?? "Agent working\u2026";
|
|
36833
36833
|
const runningLanes = browser.extractSubagentLanes(steps).filter((l) => l.status === "running");
|
|
@@ -36844,7 +36844,7 @@ function AgentControlBar({
|
|
|
36844
36844
|
}
|
|
36845
36845
|
);
|
|
36846
36846
|
const status = /* @__PURE__ */ jsxRuntime.jsx(
|
|
36847
|
-
|
|
36847
|
+
chunkI3ITXJRO_cjs.AgentBarStatus,
|
|
36848
36848
|
{
|
|
36849
36849
|
state: showState ? controlState : void 0,
|
|
36850
36850
|
stateLabel: STATE_LABEL[controlState],
|
|
@@ -36886,7 +36886,7 @@ function AgentControlBar({
|
|
|
36886
36886
|
];
|
|
36887
36887
|
const controls = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
36888
36888
|
onStop && /* @__PURE__ */ jsxRuntime.jsx(
|
|
36889
|
-
|
|
36889
|
+
chunkI3ITXJRO_cjs.AgentBarIconButton,
|
|
36890
36890
|
{
|
|
36891
36891
|
onClick: onStop,
|
|
36892
36892
|
title: "Stop",
|
|
@@ -36895,22 +36895,22 @@ function AgentControlBar({
|
|
|
36895
36895
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Square, { className: "h-3 w-3", fill: "currentColor" })
|
|
36896
36896
|
}
|
|
36897
36897
|
),
|
|
36898
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
36898
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.AgentBarMenu, { items: menuItems })
|
|
36899
36899
|
] });
|
|
36900
36900
|
const displayedQueuedMessages = (transientQueuedMessages ?? []).filter(
|
|
36901
36901
|
(message) => !message.serverId || !queuedMessages.some((queued) => queued.external_id === message.serverId)
|
|
36902
36902
|
);
|
|
36903
36903
|
const queuedNotes = displayedQueuedMessages.filter((message) => message.content);
|
|
36904
|
-
const below = probeAnswer || queuedNotes.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
36904
|
+
const below = probeAnswer || queuedNotes.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(chunkI3ITXJRO_cjs.AgentBarNotes, { children: [
|
|
36905
36905
|
queuedNotes.map((message, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
36906
|
-
|
|
36906
|
+
chunkI3ITXJRO_cjs.AgentBarQueuedNote,
|
|
36907
36907
|
{
|
|
36908
36908
|
text: message.content ?? "",
|
|
36909
36909
|
isAcknowledged: message.acknowledged
|
|
36910
36910
|
},
|
|
36911
36911
|
index
|
|
36912
36912
|
)),
|
|
36913
|
-
probeAnswer && /* @__PURE__ */ jsxRuntime.jsx(
|
|
36913
|
+
probeAnswer && /* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.AgentBarProbeAnswer, { answer: probeAnswer.answer })
|
|
36914
36914
|
] }) : null;
|
|
36915
36915
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
36916
36916
|
AgentBarShell,
|
|
@@ -36967,7 +36967,7 @@ function RunningSubagentsRoster({
|
|
|
36967
36967
|
if (leafId) selectThread(leafId);
|
|
36968
36968
|
};
|
|
36969
36969
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
36970
|
-
|
|
36970
|
+
chunkI3ITXJRO_cjs.SubagentRoster,
|
|
36971
36971
|
{
|
|
36972
36972
|
lanes: rosterLanes,
|
|
36973
36973
|
className,
|
|
@@ -37091,7 +37091,7 @@ function useOpenChunk() {
|
|
|
37091
37091
|
const meta = chunk.metadata;
|
|
37092
37092
|
if (!meta?.doc_ext_id) return;
|
|
37093
37093
|
const listed = documents?.find((d) => d.external_id === meta.doc_ext_id);
|
|
37094
|
-
openDocument(
|
|
37094
|
+
openDocument(chunkUZCHVJ6L_cjs.citedVersionRef(meta.doc_ext_id, meta.doc_version, listed?.current_version), {
|
|
37095
37095
|
page: meta.page_number ?? void 0,
|
|
37096
37096
|
passageId: meta.chunk_ext_id ?? void 0
|
|
37097
37097
|
});
|
|
@@ -37130,13 +37130,13 @@ function withAnswerTable(components) {
|
|
|
37130
37130
|
}
|
|
37131
37131
|
return merged;
|
|
37132
37132
|
}
|
|
37133
|
-
var renderMarkdown = ({ components, isStreaming, children }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
37133
|
+
var renderMarkdown = ({ components, isStreaming, children }) => /* @__PURE__ */ jsxRuntime.jsx(chunkKD6ECCAN_cjs.ConnectedMarkdown, { components: withAnswerTable(components), isStreaming, children });
|
|
37134
37134
|
function LinkInAnswer({ href, children, ...props }) {
|
|
37135
37135
|
const docId = chunkZ2XZ2D4N_cjs.workspaceDocIdFromHref(href, chunk6K3VOHHL_cjs.useBlocksEnvironment().runtimeConfig.deploymentDomain);
|
|
37136
37136
|
if (docId) {
|
|
37137
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
37137
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkKD6ECCAN_cjs.InternalDocLink, { docId, href, ...props, children });
|
|
37138
37138
|
}
|
|
37139
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
37139
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkKD6ECCAN_cjs.ExternalLink, { href, ...props, children });
|
|
37140
37140
|
}
|
|
37141
37141
|
var ConnectedCitationRendererComponent = ({
|
|
37142
37142
|
alwaysInteractive,
|
|
@@ -37239,7 +37239,7 @@ var SourceChips = ({ messageId, citations, citationData }) => {
|
|
|
37239
37239
|
session.setActiveCitationKey(`${messageId}-${num}`);
|
|
37240
37240
|
if (source.chunk.metadata.chunk_ext_id) openChunk(source.chunk);
|
|
37241
37241
|
};
|
|
37242
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
37242
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkCPQRQEJL_cjs.MessageSources, { messageId, sources, onOpenSource: open });
|
|
37243
37243
|
};
|
|
37244
37244
|
function MessageDetailsModal({
|
|
37245
37245
|
open,
|
|
@@ -37482,13 +37482,13 @@ var ConversationComposerComponent = function ConversationComposer({
|
|
|
37482
37482
|
if (recipient.hasBody) sendDraft();
|
|
37483
37483
|
};
|
|
37484
37484
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
37485
|
-
|
|
37485
|
+
chunkCPQRQEJL_cjs.Composer.Root,
|
|
37486
37486
|
{
|
|
37487
37487
|
onSubmit: handleSubmit,
|
|
37488
37488
|
formRef,
|
|
37489
37489
|
isBranching,
|
|
37490
|
-
notice: isBranching ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
37491
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
37490
|
+
notice: isBranching ? /* @__PURE__ */ jsxRuntime.jsx(chunkCPQRQEJL_cjs.Composer.Notice, { onCancel: onCancelBranching }) : void 0,
|
|
37491
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(chunkCPQRQEJL_cjs.Composer.Frame, { children: [
|
|
37492
37492
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
37493
37493
|
chunkIJKS3T4J_cjs.SlashMenu,
|
|
37494
37494
|
{
|
|
@@ -37550,7 +37550,7 @@ var ConversationComposerComponent = function ConversationComposer({
|
|
|
37550
37550
|
)
|
|
37551
37551
|
] }),
|
|
37552
37552
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
37553
|
-
|
|
37553
|
+
chunkCPQRQEJL_cjs.Composer.Input,
|
|
37554
37554
|
{
|
|
37555
37555
|
value: newMessage,
|
|
37556
37556
|
onValueChange: (next) => {
|
|
@@ -37574,7 +37574,7 @@ var ConversationComposerComponent = function ConversationComposer({
|
|
|
37574
37574
|
}
|
|
37575
37575
|
),
|
|
37576
37576
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
37577
|
-
|
|
37577
|
+
chunkCPQRQEJL_cjs.Composer.Toolbar,
|
|
37578
37578
|
{
|
|
37579
37579
|
leading: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
37580
37580
|
leftButton,
|
|
@@ -37612,7 +37612,7 @@ var ConversationSendButton = React9.memo(function ConversationSendButton2({
|
|
|
37612
37612
|
const draftMessage = react.useArbiSessionState(react.selectDraft);
|
|
37613
37613
|
const showRetryIcon = hasOrphanedMessage && draftMessage === "";
|
|
37614
37614
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
37615
|
-
|
|
37615
|
+
chunkCPQRQEJL_cjs.ComposerSend,
|
|
37616
37616
|
{
|
|
37617
37617
|
onSend: onClick,
|
|
37618
37618
|
isRetry: showRetryIcon,
|
|
@@ -37674,7 +37674,7 @@ var MicButton = React9.memo(function MicButton2({
|
|
|
37674
37674
|
const isBusy = isTranscribing;
|
|
37675
37675
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
37676
37676
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
37677
|
-
|
|
37677
|
+
chunkCPQRQEJL_cjs.ComposerVoiceButton,
|
|
37678
37678
|
{
|
|
37679
37679
|
isRecording,
|
|
37680
37680
|
isBusy,
|
|
@@ -37709,7 +37709,7 @@ function WorkflowStepMessage({
|
|
|
37709
37709
|
const { conversations } = react.useConversationItems();
|
|
37710
37710
|
const activity = react.useConversationActivity(conversationId ?? void 0, { live: true });
|
|
37711
37711
|
const plan = conversations.find((c) => c.external_id === conversationId)?.plan;
|
|
37712
|
-
const steps =
|
|
37712
|
+
const steps = chunkI3ITXJRO_cjs.fromPlanSteps(plan?.steps ?? []);
|
|
37713
37713
|
const found = steps.find((s) => s.id === step);
|
|
37714
37714
|
const states = chunkSMQIYEOL_cjs.stepStatesFromActivity(activity.data ?? []);
|
|
37715
37715
|
const { data: documents = [] } = react.useDocuments();
|
|
@@ -37718,7 +37718,7 @@ function WorkflowStepMessage({
|
|
|
37718
37718
|
const docId = ref ? chunkSMQIYEOL_cjs.splitDocRef(ref).id : void 0;
|
|
37719
37719
|
const doc = documents.find((d) => d.external_id === docId);
|
|
37720
37720
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
37721
|
-
|
|
37721
|
+
chunkCPQRQEJL_cjs.WorkflowStepChip,
|
|
37722
37722
|
{
|
|
37723
37723
|
step,
|
|
37724
37724
|
title: found?.title,
|
|
@@ -37881,7 +37881,7 @@ var MessageComponent = ({
|
|
|
37881
37881
|
const isQueuedAnswer = !isUser && message.status === "queued" && !isGenerating;
|
|
37882
37882
|
const isAwaitingAnswer = (isGenerating || isRunningOnServer) && !isStopped && !!message.pendingUserInput;
|
|
37883
37883
|
const showWorkingIndicator = (isGenerating || isRunningOnServer) && !isQueuedAnswer && !responseContent.trim() && !linkedArtifact && !isAwaitingAnswer;
|
|
37884
|
-
const workingStepLabel = showWorkingIndicator ?
|
|
37884
|
+
const workingStepLabel = showWorkingIndicator ? chunkI3ITXJRO_cjs.getCurrentAgentStepPresentation(message.agentSteps ?? [])?.description : void 0;
|
|
37885
37885
|
const workingStepStart = showWorkingIndicator ? browser.getCurrentStep(message.agentSteps ?? [])?.t ?? 0 : 0;
|
|
37886
37886
|
const showEmptyAnswer = !isUser && !isGenerating && !isRunningOnServer && !isFailed && !isStopped && !responseContent.trim() && !linkedArtifact;
|
|
37887
37887
|
const isEmptyStopped = isStopped && !responseContent.trim();
|
|
@@ -37901,7 +37901,7 @@ var MessageComponent = ({
|
|
|
37901
37901
|
else session.setDraft(retry.question.content);
|
|
37902
37902
|
};
|
|
37903
37903
|
const factData = React9.useMemo(
|
|
37904
|
-
() =>
|
|
37904
|
+
() => chunkUZCHVJ6L_cjs.buildFactCitations(responseContent, activeCitations, citationData),
|
|
37905
37905
|
[responseContent, activeCitations, citationData]
|
|
37906
37906
|
);
|
|
37907
37907
|
const factText = factData.text;
|
|
@@ -38004,7 +38004,7 @@ var MessageComponent = ({
|
|
|
38004
38004
|
notify18("Cannot create fact: no workspace open", "error");
|
|
38005
38005
|
return;
|
|
38006
38006
|
}
|
|
38007
|
-
const chronology =
|
|
38007
|
+
const chronology = chunkUZCHVJ6L_cjs.chronologyFactBodies(factText, factData.citations);
|
|
38008
38008
|
try {
|
|
38009
38009
|
if (chronology) {
|
|
38010
38010
|
await createFacts.mutateAsync({ facts: chronology });
|
|
@@ -38110,7 +38110,7 @@ var MessageComponent = ({
|
|
|
38110
38110
|
const actions = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
38111
38111
|
branchControl,
|
|
38112
38112
|
isUser ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
38113
|
-
|
|
38113
|
+
chunkCPQRQEJL_cjs.MessageActionMenu,
|
|
38114
38114
|
{
|
|
38115
38115
|
items: menuItems,
|
|
38116
38116
|
heading: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -38121,7 +38121,7 @@ var MessageComponent = ({
|
|
|
38121
38121
|
}
|
|
38122
38122
|
) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
38123
38123
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
38124
|
-
|
|
38124
|
+
chunkCPQRQEJL_cjs.MessageActionButton,
|
|
38125
38125
|
{
|
|
38126
38126
|
onClick: (e) => {
|
|
38127
38127
|
e.stopPropagation();
|
|
@@ -38136,7 +38136,7 @@ var MessageComponent = ({
|
|
|
38136
38136
|
}
|
|
38137
38137
|
),
|
|
38138
38138
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
38139
|
-
|
|
38139
|
+
chunkCPQRQEJL_cjs.MessageActionButton,
|
|
38140
38140
|
{
|
|
38141
38141
|
onClick: (e) => {
|
|
38142
38142
|
e.stopPropagation();
|
|
@@ -38149,7 +38149,7 @@ var MessageComponent = ({
|
|
|
38149
38149
|
}
|
|
38150
38150
|
),
|
|
38151
38151
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
38152
|
-
|
|
38152
|
+
chunkCPQRQEJL_cjs.MessageActionMenu,
|
|
38153
38153
|
{
|
|
38154
38154
|
items: menuItems,
|
|
38155
38155
|
heading: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -38167,14 +38167,14 @@ var MessageComponent = ({
|
|
|
38167
38167
|
] });
|
|
38168
38168
|
const isBareStopped = isEmptyStopped && visibleStepCount === 0;
|
|
38169
38169
|
const footer = settledForHeader && !isBareStopped && /* @__PURE__ */ jsxRuntime.jsx(
|
|
38170
|
-
|
|
38170
|
+
chunkCPQRQEJL_cjs.MessageFooter,
|
|
38171
38171
|
{
|
|
38172
38172
|
role: messageRole,
|
|
38173
38173
|
align: isOtherPerson ? "start" : "end",
|
|
38174
38174
|
revealActionsOnHover: true,
|
|
38175
38175
|
leading: isUser ? (
|
|
38176
38176
|
// Someone else's author is the pill above their run; only mine is marked here.
|
|
38177
|
-
!isOtherPerson && messageAuthorUser && /* @__PURE__ */ jsxRuntime.jsx(
|
|
38177
|
+
!isOtherPerson && messageAuthorUser && /* @__PURE__ */ jsxRuntime.jsx(chunkZDX7X7R5_cjs.DocumentUser, { user: messageAuthorUser })
|
|
38178
38178
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
38179
38179
|
"span",
|
|
38180
38180
|
{
|
|
@@ -38185,7 +38185,7 @@ var MessageComponent = ({
|
|
|
38185
38185
|
},
|
|
38186
38186
|
"data-testid": `message-model-${messageId}`,
|
|
38187
38187
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
38188
|
-
|
|
38188
|
+
chunkI3ITXJRO_cjs.AssistantEntity,
|
|
38189
38189
|
{
|
|
38190
38190
|
name: modelDisplayName,
|
|
38191
38191
|
modelName,
|
|
@@ -38265,7 +38265,7 @@ var MessageComponent = ({
|
|
|
38265
38265
|
);
|
|
38266
38266
|
}
|
|
38267
38267
|
return /* @__PURE__ */ jsxRuntime.jsx(chunkTM2D4XT4_cjs.ErrorBoundary, { testId: "message-error-boundary", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
38268
|
-
|
|
38268
|
+
chunkCPQRQEJL_cjs.MessageRoot,
|
|
38269
38269
|
{
|
|
38270
38270
|
role: messageRole,
|
|
38271
38271
|
messageId,
|
|
@@ -38273,15 +38273,15 @@ var MessageComponent = ({
|
|
|
38273
38273
|
...rest,
|
|
38274
38274
|
children: [
|
|
38275
38275
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
38276
|
-
|
|
38276
|
+
chunkCPQRQEJL_cjs.MessageContent,
|
|
38277
38277
|
{
|
|
38278
38278
|
role: messageRole,
|
|
38279
38279
|
messageId,
|
|
38280
38280
|
align: isOtherPerson ? "start" : "end",
|
|
38281
38281
|
children: [
|
|
38282
|
-
startsAuthorRun && messageAuthorUser && /* @__PURE__ */ jsxRuntime.jsx(
|
|
38282
|
+
startsAuthorRun && messageAuthorUser && /* @__PURE__ */ jsxRuntime.jsx(chunkCPQRQEJL_cjs.MessageAuthor, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkZDX7X7R5_cjs.DocumentUser, { user: messageAuthorUser, variant: "pill" }) }),
|
|
38283
38283
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
38284
|
-
|
|
38284
|
+
chunkCPQRQEJL_cjs.MessageBubble,
|
|
38285
38285
|
{
|
|
38286
38286
|
ref: messageRef,
|
|
38287
38287
|
role: messageRole,
|
|
@@ -38291,14 +38291,14 @@ var MessageComponent = ({
|
|
|
38291
38291
|
className: isOtherPerson ? "border border-border bg-card" : void 0,
|
|
38292
38292
|
children: [
|
|
38293
38293
|
!isUser && isGenerating && /* @__PURE__ */ jsxRuntime.jsx(
|
|
38294
|
-
|
|
38294
|
+
chunkCPQRQEJL_cjs.MessageByline,
|
|
38295
38295
|
{
|
|
38296
38296
|
messageId,
|
|
38297
38297
|
identity: (
|
|
38298
38298
|
// Stays the ARBI identity while streaming: the model name arrives
|
|
38299
38299
|
// with the first step that reports one and would swap the author
|
|
38300
38300
|
// mid-answer. The model is shown in the footer once settled.
|
|
38301
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
38301
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.AssistantEntity, { size: 16, pillSize: "sm" })
|
|
38302
38302
|
),
|
|
38303
38303
|
timeLabel,
|
|
38304
38304
|
isSettled: settledForHeader,
|
|
@@ -38306,9 +38306,9 @@ var MessageComponent = ({
|
|
|
38306
38306
|
statusLabel
|
|
38307
38307
|
}
|
|
38308
38308
|
),
|
|
38309
|
-
subagentTaskRecord && /* @__PURE__ */ jsxRuntime.jsx(
|
|
38310
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
38311
|
-
settledNarration ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
38309
|
+
subagentTaskRecord && /* @__PURE__ */ jsxRuntime.jsx(chunkCPQRQEJL_cjs.MessageSubagentBadge, { messageId }),
|
|
38310
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkCPQRQEJL_cjs.MessageBody, { messageId, children: [
|
|
38311
|
+
settledNarration ? /* @__PURE__ */ jsxRuntime.jsx(chunkCPQRQEJL_cjs.MessageNarration, { messageId, children: /* @__PURE__ */ jsxRuntime.jsx(chunkKD6ECCAN_cjs.ConnectedMarkdown, { isStreaming: false, children: settledNarration }) }) : null,
|
|
38312
38312
|
liveContent ? role === "assistant" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
38313
38313
|
ConnectedCitationRenderer,
|
|
38314
38314
|
{
|
|
@@ -38318,7 +38318,7 @@ var MessageComponent = ({
|
|
|
38318
38318
|
messageId: message.external_id || "unknown",
|
|
38319
38319
|
isStreaming: isGenerating
|
|
38320
38320
|
}
|
|
38321
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
38321
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(chunkKD6ECCAN_cjs.ConnectedMarkdown, { isStreaming: isGenerating, children: shell.linkMentions(
|
|
38322
38322
|
isUser && liveContent.startsWith("/pa ") ? liveContent.slice(4) : liveContent,
|
|
38323
38323
|
message.mentions
|
|
38324
38324
|
) }) : null,
|
|
@@ -38651,7 +38651,7 @@ function ConnectedMessageList({ messages }) {
|
|
|
38651
38651
|
const isGenerating = react.useArbiSessionState((state) => state.generating[currentConversationId || ""]?.isGenerating) ?? false;
|
|
38652
38652
|
const isLiveTurn = isGenerating && messages[messages.length - 1]?.isLoading === true;
|
|
38653
38653
|
const lastMessage = displayMessages[displayMessages.length - 1];
|
|
38654
|
-
const statusMessage =
|
|
38654
|
+
const statusMessage = chunkCPQRQEJL_cjs.useStreamAnnouncement({
|
|
38655
38655
|
isStreaming: isGenerating,
|
|
38656
38656
|
text: lastMessage?.role === "assistant" ? stripThinking(lastMessage.content ?? "") : "",
|
|
38657
38657
|
resetKey: currentConversationId
|
|
@@ -38741,29 +38741,29 @@ function ConnectedMessageList({ messages }) {
|
|
|
38741
38741
|
chunkIJKS3T4J_cjs.flashMessage(target);
|
|
38742
38742
|
session.setDeepLinkMessageId(null);
|
|
38743
38743
|
}, [deepLinkMessageId, virtualItems, session]);
|
|
38744
|
-
const status = /* @__PURE__ */ jsxRuntime.jsx(
|
|
38744
|
+
const status = /* @__PURE__ */ jsxRuntime.jsx(chunkCPQRQEJL_cjs.MessageList.Status, { message: statusMessage });
|
|
38745
38745
|
if (transcript.length === 0) {
|
|
38746
38746
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
38747
38747
|
status,
|
|
38748
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
38748
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkCPQRQEJL_cjs.MessageList.Empty, {})
|
|
38749
38749
|
] });
|
|
38750
38750
|
}
|
|
38751
38751
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
38752
38752
|
status,
|
|
38753
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
38754
|
-
mainSiblingLeaf && /* @__PURE__ */ jsxRuntime.jsx(
|
|
38755
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
38753
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkCPQRQEJL_cjs.MessageList.Root, { isBusy: isGenerating, children: [
|
|
38754
|
+
mainSiblingLeaf && /* @__PURE__ */ jsxRuntime.jsx(chunkCPQRQEJL_cjs.MessageList.Banner, { onBack: () => setParentMessageId(mainSiblingLeaf) }),
|
|
38755
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkCPQRQEJL_cjs.MessageList.Rows, { totalSize: rowVirtualizer.getTotalSize(), children: virtualItems.map((virtualItem) => {
|
|
38756
38756
|
const entry = transcript[virtualItem.index];
|
|
38757
38757
|
if (entry.type === "activity") {
|
|
38758
38758
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
38759
|
-
|
|
38759
|
+
chunkCPQRQEJL_cjs.MessageList.Row,
|
|
38760
38760
|
{
|
|
38761
38761
|
ref: rowVirtualizer.measureElement,
|
|
38762
38762
|
index: virtualItem.index,
|
|
38763
38763
|
start: virtualItem.start,
|
|
38764
38764
|
messageId: entry.id,
|
|
38765
38765
|
setSize: transcript.length,
|
|
38766
|
-
children: entry.item.card ?? /* @__PURE__ */ jsxRuntime.jsx(
|
|
38766
|
+
children: entry.item.card ?? /* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.ThreadActivity, { item: entry.item, children: entry.item.onOpenDocument && /* @__PURE__ */ jsxRuntime.jsx(
|
|
38767
38767
|
"button",
|
|
38768
38768
|
{
|
|
38769
38769
|
className: "mt-1 hover:underline text-primary",
|
|
@@ -38779,7 +38779,7 @@ function ConnectedMessageList({ messages }) {
|
|
|
38779
38779
|
const messageId = message.external_id;
|
|
38780
38780
|
const branchPoint = messageId ? getBranchControlForMessage(messageId) : null;
|
|
38781
38781
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
38782
|
-
|
|
38782
|
+
chunkCPQRQEJL_cjs.MessageList.Row,
|
|
38783
38783
|
{
|
|
38784
38784
|
ref: rowVirtualizer.measureElement,
|
|
38785
38785
|
index: virtualItem.index,
|
|
@@ -38810,7 +38810,7 @@ function ConnectedMessageList({ messages }) {
|
|
|
38810
38810
|
message.external_id ?? `msg-${virtualItem.index}`
|
|
38811
38811
|
);
|
|
38812
38812
|
}) }),
|
|
38813
|
-
isLiveTurn ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4", "aria-hidden": "true" }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
38813
|
+
isLiveTurn ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4", "aria-hidden": "true" }) : /* @__PURE__ */ jsxRuntime.jsx(chunkCPQRQEJL_cjs.MessageList.Tail, {})
|
|
38814
38814
|
] }),
|
|
38815
38815
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedThreadsPreview, { open: previewOpen, onOpenChange: setPreviewOpen })
|
|
38816
38816
|
] });
|
|
@@ -38923,8 +38923,8 @@ function ConnectedThreadsPage({
|
|
|
38923
38923
|
const tasks = useStableRecencyOrder(listed);
|
|
38924
38924
|
const updateConversation = react.useUpdateConversation();
|
|
38925
38925
|
const deleteConversation = react.useDeleteConversation();
|
|
38926
|
-
const people =
|
|
38927
|
-
const renderPerson =
|
|
38926
|
+
const people = chunkL6KTANY2_cjs.useTaskPeople();
|
|
38927
|
+
const renderPerson = chunkL6KTANY2_cjs.useRenderTaskPerson();
|
|
38928
38928
|
const canEditShared = react.useCanEditShared();
|
|
38929
38929
|
const isWorkspaceOwner = react.useIsWorkspaceOwner();
|
|
38930
38930
|
const { data: agents = [] } = react.useAgents();
|
|
@@ -39162,7 +39162,7 @@ function ConnectedThreadsPage({
|
|
|
39162
39162
|
"data-testid": mode === "tasks" ? "tasks-page" : "threads-page",
|
|
39163
39163
|
children: [
|
|
39164
39164
|
/* @__PURE__ */ jsxRuntime.jsx("main", { className: "flex min-h-0 flex-1 flex-col bg-background", children: mode === "threads" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
39165
|
-
|
|
39165
|
+
chunkI3ITXJRO_cjs.ConversationListView,
|
|
39166
39166
|
{
|
|
39167
39167
|
showHeader,
|
|
39168
39168
|
conversations: tasks,
|
|
@@ -39182,7 +39182,7 @@ function ConnectedThreadsPage({
|
|
|
39182
39182
|
renderLabels: threadLabels.renderLabels,
|
|
39183
39183
|
labelText: threadLabels.labelText,
|
|
39184
39184
|
renderBy: (row2) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
39185
|
-
|
|
39185
|
+
chunkI3ITXJRO_cjs.ConversationTurnSpeaker,
|
|
39186
39186
|
{
|
|
39187
39187
|
variant: "icon",
|
|
39188
39188
|
role: row2.last_message_role,
|
|
@@ -39204,7 +39204,7 @@ function ConnectedThreadsPage({
|
|
|
39204
39204
|
footer: /* @__PURE__ */ jsxRuntime.jsx(ConnectedThreadLauncher, { autoFocus: focusLauncher })
|
|
39205
39205
|
}
|
|
39206
39206
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
39207
|
-
|
|
39207
|
+
chunkI3ITXJRO_cjs.TaskInbox,
|
|
39208
39208
|
{
|
|
39209
39209
|
tasks,
|
|
39210
39210
|
isLoading,
|
|
@@ -39248,7 +39248,7 @@ function ConnectedThreadsPage({
|
|
|
39248
39248
|
initialParentId: parentForNew
|
|
39249
39249
|
}
|
|
39250
39250
|
),
|
|
39251
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
39251
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkL6KTANY2_cjs.ConnectedTaskComposer, { open: editorOpen, onOpenChange: setEditorOpen, task: editing }),
|
|
39252
39252
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
39253
39253
|
ConnectedExportDialog,
|
|
39254
39254
|
{
|
|
@@ -39484,7 +39484,7 @@ function ConnectedConversationPage({
|
|
|
39484
39484
|
}
|
|
39485
39485
|
);
|
|
39486
39486
|
const { data: workspaceTags = [] } = react.useTags();
|
|
39487
|
-
const historyCount =
|
|
39487
|
+
const historyCount = chunkI3ITXJRO_cjs.filterConversationRows(
|
|
39488
39488
|
conversations,
|
|
39489
39489
|
threadFilter,
|
|
39490
39490
|
(row2) => workspaceTags.filter((tag) => row2.label_ext_ids?.includes(tag.external_id)).map((tag) => tag.name).join(" "),
|
|
@@ -39561,7 +39561,7 @@ function ConnectedConversationPage({
|
|
|
39561
39561
|
!isInChat && /* @__PURE__ */ jsxRuntime.jsx(chunkIJKS3T4J_cjs.ConversationHistoryPane, { children: searchEnabled && semanticSearchOpen ? /* @__PURE__ */ jsxRuntime.jsx(ConnectedThreadsPage, { showHeader: false, search: true, ResultsBoundary }) : /* @__PURE__ */ jsxRuntime.jsx(ConnectedThreadsPage, { showHeader: false, focusLauncher }) })
|
|
39562
39562
|
] }),
|
|
39563
39563
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
39564
|
-
|
|
39564
|
+
chunkSRD5YJJI_cjs.UrlInputDialog,
|
|
39565
39565
|
{
|
|
39566
39566
|
open: urlDialogOpen,
|
|
39567
39567
|
onOpenChange: setUrlDialogOpen,
|
|
@@ -39600,7 +39600,7 @@ function ConnectedConversationEmpty({
|
|
|
39600
39600
|
below
|
|
39601
39601
|
}) {
|
|
39602
39602
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
39603
|
-
|
|
39603
|
+
chunkCPQRQEJL_cjs.ConversationEmpty,
|
|
39604
39604
|
{
|
|
39605
39605
|
hasDocuments,
|
|
39606
39606
|
prompts: EXAMPLE_PROMPTS,
|
|
@@ -39622,7 +39622,7 @@ function ConnectedConversationEmpty({
|
|
|
39622
39622
|
compactLeadingAction: onImportFromEmail && /* @__PURE__ */ jsxRuntime.jsx(AddFromAccountsButton, { onImportFromEmail })
|
|
39623
39623
|
}
|
|
39624
39624
|
),
|
|
39625
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
39625
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkSRD5YJJI_cjs.PrivacyExplainerModal, {})
|
|
39626
39626
|
] })
|
|
39627
39627
|
}
|
|
39628
39628
|
);
|
|
@@ -39662,7 +39662,7 @@ function ConversationAlert({
|
|
|
39662
39662
|
}, [message, onRetryOrphaned, notify18]);
|
|
39663
39663
|
if (type === "send-failed") {
|
|
39664
39664
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
39665
|
-
|
|
39665
|
+
chunkCPQRQEJL_cjs.MessageAlert,
|
|
39666
39666
|
{
|
|
39667
39667
|
title: "Message failed to send",
|
|
39668
39668
|
description: errorMessage2 || "An error occurred while sending your message.",
|
|
@@ -39691,7 +39691,7 @@ function ConversationAlert({
|
|
|
39691
39691
|
);
|
|
39692
39692
|
}
|
|
39693
39693
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
39694
|
-
|
|
39694
|
+
chunkCPQRQEJL_cjs.MessageAlert,
|
|
39695
39695
|
{
|
|
39696
39696
|
title: type === "backend-failed" ? "Response Failed" : "Response Incomplete",
|
|
39697
39697
|
description: type === "backend-failed" ? "The assistant's response failed. Use Retry to try again." : "Use Retry to try again, or type a new query.",
|
|
@@ -40415,7 +40415,7 @@ function ConversationThread({
|
|
|
40415
40415
|
}, [isGenerating]);
|
|
40416
40416
|
const slashWorkflows = useSlashSkillWorkflows({ landing: "current-chat" });
|
|
40417
40417
|
const composerSkills = React9.useMemo(
|
|
40418
|
-
() => ({ builtin:
|
|
40418
|
+
() => ({ builtin: chunkI3ITXJRO_cjs.BUILTIN_SKILLS, openFor: slashWorkflows.openFor }),
|
|
40419
40419
|
[slashWorkflows.openFor]
|
|
40420
40420
|
);
|
|
40421
40421
|
const browseSkills = React9.useMemo(
|
|
@@ -40490,7 +40490,7 @@ function ConversationThread({
|
|
|
40490
40490
|
/* @__PURE__ */ jsxRuntime.jsx(chunkYLDGMWGU_cjs.CallConversationEmpty, { callExtId: meetingCallExtId }),
|
|
40491
40491
|
/* @__PURE__ */ jsxRuntime.jsx(chunkYLDGMWGU_cjs.ProvisionalSpeakers, { ids: provisionalSpeakers })
|
|
40492
40492
|
] })
|
|
40493
|
-
) : currentTask && currentTask.status != null ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
40493
|
+
) : currentTask && currentTask.status != null ? /* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.TaskEmptyState, { task: currentTask }) : pendingFirstTurn && isGenerating ? /* @__PURE__ */ jsxRuntime.jsx(ConnectedMessageArea, { ref: containerRef, messages: pendingFirstTurn }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
40494
40494
|
ConnectedConversationEmpty,
|
|
40495
40495
|
{
|
|
40496
40496
|
hasDocuments: allWorkspaceDocuments.length > 0,
|
|
@@ -40505,17 +40505,17 @@ function ConversationThread({
|
|
|
40505
40505
|
}
|
|
40506
40506
|
) }),
|
|
40507
40507
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
40508
|
-
|
|
40508
|
+
chunkCPQRQEJL_cjs.ComposerDock,
|
|
40509
40509
|
{
|
|
40510
40510
|
floating: /* @__PURE__ */ jsxRuntime.jsx(
|
|
40511
|
-
|
|
40511
|
+
chunkCPQRQEJL_cjs.ScrollToBottom,
|
|
40512
40512
|
{
|
|
40513
40513
|
className: "left-auto right-3 translate-x-0",
|
|
40514
40514
|
show: showScrollToBottom,
|
|
40515
40515
|
onClick: scrollToBottom
|
|
40516
40516
|
}
|
|
40517
40517
|
),
|
|
40518
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
40518
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(chunkCPQRQEJL_cjs.ComposerContainer, { className: "mx-auto max-w-[49rem] px-3 sm:px-6", children: [
|
|
40519
40519
|
orphanedMessage ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
40520
40520
|
ConversationAlert,
|
|
40521
40521
|
{
|
|
@@ -40656,7 +40656,7 @@ function ConnectedCompactConversation() {
|
|
|
40656
40656
|
const currentConversationId = react.useArbiSessionState((state) => state.conversationId);
|
|
40657
40657
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col flex-1 min-h-0", "data-testid": "embedded-chat", children: [
|
|
40658
40658
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative flex-1 min-h-0", children: messageHistory.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx(ConnectedMessageArea, { ref: containerRef, messages: messageHistory }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center h-full text-muted-foreground text-sm p-4", children: currentConversationId ? "Loading messages..." : "Start a conversation by typing below." }) }),
|
|
40659
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "sticky bottom-0 w-full bg-background border-t z-10", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
40659
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "sticky bottom-0 w-full bg-background border-t z-10", children: /* @__PURE__ */ jsxRuntime.jsx(chunkCPQRQEJL_cjs.ComposerContainer, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
40660
40660
|
ConversationComposer2,
|
|
40661
40661
|
{
|
|
40662
40662
|
handleSendMessage,
|
|
@@ -42247,7 +42247,7 @@ function SsoResendVerificationButton({
|
|
|
42247
42247
|
onClick: async () => handleResendEmailVerification(),
|
|
42248
42248
|
disabled: loading || disabled,
|
|
42249
42249
|
"aria-label": "Resend verification email",
|
|
42250
|
-
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
42250
|
+
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(chunkYMZAHBFL_cjs.LoadingIndicator, {}) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
42251
42251
|
"Didn't get a verification email? ",
|
|
42252
42252
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold", children: "Resend" })
|
|
42253
42253
|
] })
|
|
@@ -43141,27 +43141,27 @@ function ConnectedOAuthConsentPage({
|
|
|
43141
43141
|
oauthErrorRedirect(params.redirectUri, params.state, "access_denied");
|
|
43142
43142
|
}
|
|
43143
43143
|
if (error && !params) {
|
|
43144
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
43144
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.ConsentMessage, { tone: "error", title: "Invalid Request", children: error }) });
|
|
43145
43145
|
}
|
|
43146
43146
|
if (!params) {
|
|
43147
43147
|
return null;
|
|
43148
43148
|
}
|
|
43149
43149
|
if (clientInfo?.isLocalAgentFlow) {
|
|
43150
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
43150
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_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." }) });
|
|
43151
43151
|
}
|
|
43152
43152
|
if (!isAuthenticated2) {
|
|
43153
43153
|
return null;
|
|
43154
43154
|
}
|
|
43155
43155
|
if (callbackUrl) {
|
|
43156
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
43157
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
43156
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkI3ITXJRO_cjs.ConsentCard, { size: "md", children: [
|
|
43157
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkI3ITXJRO_cjs.ConsentHeader, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ClipboardList, {}), title: "Almost there", children: [
|
|
43158
43158
|
"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",
|
|
43159
43159
|
" ",
|
|
43160
43160
|
copied ? "it's already copied to your clipboard." : "copy it first."
|
|
43161
43161
|
] }),
|
|
43162
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
43163
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
43164
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
43162
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkI3ITXJRO_cjs.ConsentSection, { title: "Callback URL", children: [
|
|
43163
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.CopyableUrl, { url: callbackUrl, copied, onCopy: handleCopy }),
|
|
43164
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkI3ITXJRO_cjs.ConsentText, { variant: "hint", children: [
|
|
43165
43165
|
"In Claude Code, paste the URL at the prompt that says",
|
|
43166
43166
|
" ",
|
|
43167
43167
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-mono text-foreground", children: '"paste the full redirect URL here"' }),
|
|
@@ -43170,17 +43170,17 @@ function ConnectedOAuthConsentPage({
|
|
|
43170
43170
|
] })
|
|
43171
43171
|
] }) });
|
|
43172
43172
|
}
|
|
43173
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
43174
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
43175
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
43173
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkI3ITXJRO_cjs.ConsentCard, { children: [
|
|
43174
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkI3ITXJRO_cjs.ConsentHeader, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Link2, {}), title: `Connect to ${appName}`, children: [
|
|
43175
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.ConsentStrong, { children: clientInfo?.name ?? params.clientId }),
|
|
43176
43176
|
" is requesting access to your ",
|
|
43177
43177
|
appName,
|
|
43178
43178
|
" workspace."
|
|
43179
43179
|
] }),
|
|
43180
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
43181
|
-
error && /* @__PURE__ */ jsxRuntime.jsx(
|
|
43182
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
43183
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
43180
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.ConsentSection, { title: "This will allow", children: /* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.ConsentPermissionList, { items: permissions }) }),
|
|
43181
|
+
error && /* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.ConsentNotice, { tone: "error", children: error }),
|
|
43182
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.ConsentActions, { isLoading: loading, onDeny: handleDeny, onAllow: handleAllow }),
|
|
43183
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkI3ITXJRO_cjs.ConsentFootnote, { children: footnote })
|
|
43184
43184
|
] }) });
|
|
43185
43185
|
}
|
|
43186
43186
|
function ConnectedSharedFilesPage({
|
|
@@ -43505,10 +43505,10 @@ function useContextualHints() {
|
|
|
43505
43505
|
const session = react.useArbiSessionStore();
|
|
43506
43506
|
const { data: userSettings } = react.useUserSettings();
|
|
43507
43507
|
const updateUserSettings = react.useUpdateUserSettings();
|
|
43508
|
-
const [sessionOverride] = react.useTransientView(
|
|
43509
|
-
const setShowHints = (value) =>
|
|
43508
|
+
const [sessionOverride] = react.useTransientView(chunkYMZAHBFL_cjs.TIPS_VISIBILITY_OVERRIDE, null);
|
|
43509
|
+
const setShowHints = (value) => chunkYMZAHBFL_cjs.setHintsSessionOverride(session, value);
|
|
43510
43510
|
const setShowHintsPersisted = (value) => {
|
|
43511
|
-
|
|
43511
|
+
chunkYMZAHBFL_cjs.setHintsSessionOverride(session, null);
|
|
43512
43512
|
updateUserSettings.mutate({ show_hints: value });
|
|
43513
43513
|
};
|
|
43514
43514
|
return {
|
|
@@ -43575,295 +43575,295 @@ Object.defineProperty(exports, "useRewardBalance", {
|
|
|
43575
43575
|
});
|
|
43576
43576
|
Object.defineProperty(exports, "ConnectedTagEntity", {
|
|
43577
43577
|
enumerable: true,
|
|
43578
|
-
get: function () { return
|
|
43578
|
+
get: function () { return chunkL7ROIPS7_cjs.ConnectedTagEntity; }
|
|
43579
43579
|
});
|
|
43580
43580
|
Object.defineProperty(exports, "documentFieldContent", {
|
|
43581
43581
|
enumerable: true,
|
|
43582
|
-
get: function () { return
|
|
43582
|
+
get: function () { return chunkL7ROIPS7_cjs.documentFieldContent; }
|
|
43583
43583
|
});
|
|
43584
43584
|
Object.defineProperty(exports, "useMemberLookup", {
|
|
43585
43585
|
enumerable: true,
|
|
43586
|
-
get: function () { return
|
|
43586
|
+
get: function () { return chunkL7ROIPS7_cjs.useMemberLookup; }
|
|
43587
43587
|
});
|
|
43588
43588
|
Object.defineProperty(exports, "ConnectedTaskActivityDialog", {
|
|
43589
43589
|
enumerable: true,
|
|
43590
|
-
get: function () { return
|
|
43590
|
+
get: function () { return chunkL6KTANY2_cjs.ConnectedTaskActivityDialog; }
|
|
43591
43591
|
});
|
|
43592
43592
|
Object.defineProperty(exports, "ConnectedTaskComposer", {
|
|
43593
43593
|
enumerable: true,
|
|
43594
|
-
get: function () { return
|
|
43594
|
+
get: function () { return chunkL6KTANY2_cjs.ConnectedTaskComposer; }
|
|
43595
43595
|
});
|
|
43596
43596
|
Object.defineProperty(exports, "ConnectedWorkflowHistory", {
|
|
43597
43597
|
enumerable: true,
|
|
43598
|
-
get: function () { return
|
|
43598
|
+
get: function () { return chunkL6KTANY2_cjs.ConnectedWorkflowHistory; }
|
|
43599
43599
|
});
|
|
43600
43600
|
Object.defineProperty(exports, "useRenderTaskPerson", {
|
|
43601
43601
|
enumerable: true,
|
|
43602
|
-
get: function () { return
|
|
43602
|
+
get: function () { return chunkL6KTANY2_cjs.useRenderTaskPerson; }
|
|
43603
43603
|
});
|
|
43604
43604
|
Object.defineProperty(exports, "useSkillsEnabled", {
|
|
43605
43605
|
enumerable: true,
|
|
43606
|
-
get: function () { return
|
|
43606
|
+
get: function () { return chunkL6KTANY2_cjs.useSkillsEnabled; }
|
|
43607
43607
|
});
|
|
43608
43608
|
Object.defineProperty(exports, "useTaskPeople", {
|
|
43609
43609
|
enumerable: true,
|
|
43610
|
-
get: function () { return
|
|
43610
|
+
get: function () { return chunkL6KTANY2_cjs.useTaskPeople; }
|
|
43611
43611
|
});
|
|
43612
43612
|
Object.defineProperty(exports, "useWorkflowDefinitions", {
|
|
43613
43613
|
enumerable: true,
|
|
43614
|
-
get: function () { return
|
|
43614
|
+
get: function () { return chunkL6KTANY2_cjs.useWorkflowDefinitions; }
|
|
43615
43615
|
});
|
|
43616
43616
|
Object.defineProperty(exports, "useWorkflowTasks", {
|
|
43617
43617
|
enumerable: true,
|
|
43618
|
-
get: function () { return
|
|
43618
|
+
get: function () { return chunkL6KTANY2_cjs.useWorkflowTasks; }
|
|
43619
43619
|
});
|
|
43620
43620
|
Object.defineProperty(exports, "useWorkflowsPageState", {
|
|
43621
43621
|
enumerable: true,
|
|
43622
|
-
get: function () { return
|
|
43622
|
+
get: function () { return chunkL6KTANY2_cjs.useWorkflowsPageState; }
|
|
43623
43623
|
});
|
|
43624
43624
|
Object.defineProperty(exports, "workflowRunView", {
|
|
43625
43625
|
enumerable: true,
|
|
43626
|
-
get: function () { return
|
|
43626
|
+
get: function () { return chunkL6KTANY2_cjs.workflowRunView; }
|
|
43627
43627
|
});
|
|
43628
43628
|
Object.defineProperty(exports, "ConnectedPendingSyncDialog", {
|
|
43629
43629
|
enumerable: true,
|
|
43630
|
-
get: function () { return
|
|
43630
|
+
get: function () { return chunkZDX7X7R5_cjs.ConnectedPendingSyncDialog; }
|
|
43631
43631
|
});
|
|
43632
43632
|
Object.defineProperty(exports, "DocumentFolderCell", {
|
|
43633
43633
|
enumerable: true,
|
|
43634
|
-
get: function () { return
|
|
43634
|
+
get: function () { return chunkZDX7X7R5_cjs.DocumentFolderCell; }
|
|
43635
43635
|
});
|
|
43636
43636
|
Object.defineProperty(exports, "DocumentLabelsCell", {
|
|
43637
43637
|
enumerable: true,
|
|
43638
|
-
get: function () { return
|
|
43638
|
+
get: function () { return chunkZDX7X7R5_cjs.DocumentLabelsCell; }
|
|
43639
43639
|
});
|
|
43640
43640
|
Object.defineProperty(exports, "DocumentNameCell", {
|
|
43641
43641
|
enumerable: true,
|
|
43642
|
-
get: function () { return
|
|
43642
|
+
get: function () { return chunkZDX7X7R5_cjs.DocumentNameCell; }
|
|
43643
43643
|
});
|
|
43644
43644
|
Object.defineProperty(exports, "DocumentSharedCell", {
|
|
43645
43645
|
enumerable: true,
|
|
43646
|
-
get: function () { return
|
|
43646
|
+
get: function () { return chunkZDX7X7R5_cjs.DocumentSharedCell; }
|
|
43647
43647
|
});
|
|
43648
43648
|
Object.defineProperty(exports, "DocumentStatusGlyph", {
|
|
43649
43649
|
enumerable: true,
|
|
43650
|
-
get: function () { return
|
|
43650
|
+
get: function () { return chunkZDX7X7R5_cjs.DocumentStatusGlyph; }
|
|
43651
43651
|
});
|
|
43652
43652
|
Object.defineProperty(exports, "DocumentSyncGlyph", {
|
|
43653
43653
|
enumerable: true,
|
|
43654
|
-
get: function () { return
|
|
43654
|
+
get: function () { return chunkZDX7X7R5_cjs.DocumentSyncGlyph; }
|
|
43655
43655
|
});
|
|
43656
43656
|
Object.defineProperty(exports, "DocumentUser", {
|
|
43657
43657
|
enumerable: true,
|
|
43658
|
-
get: function () { return
|
|
43658
|
+
get: function () { return chunkZDX7X7R5_cjs.DocumentUser; }
|
|
43659
43659
|
});
|
|
43660
43660
|
Object.defineProperty(exports, "FILES_PREFS_KEY", {
|
|
43661
43661
|
enumerable: true,
|
|
43662
|
-
get: function () { return
|
|
43662
|
+
get: function () { return chunkZDX7X7R5_cjs.FILES_PREFS_KEY; }
|
|
43663
43663
|
});
|
|
43664
43664
|
Object.defineProperty(exports, "FileTooltipContent", {
|
|
43665
43665
|
enumerable: true,
|
|
43666
|
-
get: function () { return
|
|
43666
|
+
get: function () { return chunkZDX7X7R5_cjs.FileTooltipContent; }
|
|
43667
43667
|
});
|
|
43668
43668
|
Object.defineProperty(exports, "RelatedDocumentsCell", {
|
|
43669
43669
|
enumerable: true,
|
|
43670
|
-
get: function () { return
|
|
43670
|
+
get: function () { return chunkZDX7X7R5_cjs.RelatedDocumentsCell; }
|
|
43671
43671
|
});
|
|
43672
43672
|
Object.defineProperty(exports, "StatusCell", {
|
|
43673
43673
|
enumerable: true,
|
|
43674
|
-
get: function () { return
|
|
43674
|
+
get: function () { return chunkZDX7X7R5_cjs.StatusCell; }
|
|
43675
43675
|
});
|
|
43676
43676
|
Object.defineProperty(exports, "UserAvatar", {
|
|
43677
43677
|
enumerable: true,
|
|
43678
|
-
get: function () { return
|
|
43678
|
+
get: function () { return chunkZDX7X7R5_cjs.UserAvatar; }
|
|
43679
43679
|
});
|
|
43680
43680
|
Object.defineProperty(exports, "filesViewMode", {
|
|
43681
43681
|
enumerable: true,
|
|
43682
|
-
get: function () { return
|
|
43682
|
+
get: function () { return chunkZDX7X7R5_cjs.filesViewMode; }
|
|
43683
43683
|
});
|
|
43684
43684
|
Object.defineProperty(exports, "isActiveDocumentStatus", {
|
|
43685
43685
|
enumerable: true,
|
|
43686
|
-
get: function () { return
|
|
43686
|
+
get: function () { return chunkZDX7X7R5_cjs.isActiveDocumentStatus; }
|
|
43687
43687
|
});
|
|
43688
43688
|
Object.defineProperty(exports, "openPendingSyncDialog", {
|
|
43689
43689
|
enumerable: true,
|
|
43690
|
-
get: function () { return
|
|
43690
|
+
get: function () { return chunkZDX7X7R5_cjs.openPendingSyncDialog; }
|
|
43691
43691
|
});
|
|
43692
43692
|
Object.defineProperty(exports, "parseQuotaError", {
|
|
43693
43693
|
enumerable: true,
|
|
43694
|
-
get: function () { return
|
|
43694
|
+
get: function () { return chunkZDX7X7R5_cjs.parseQuotaError; }
|
|
43695
43695
|
});
|
|
43696
43696
|
Object.defineProperty(exports, "startMenuItem", {
|
|
43697
43697
|
enumerable: true,
|
|
43698
|
-
get: function () { return
|
|
43698
|
+
get: function () { return chunkZDX7X7R5_cjs.startMenuItem; }
|
|
43699
43699
|
});
|
|
43700
43700
|
Object.defineProperty(exports, "useAiReviewStore", {
|
|
43701
43701
|
enumerable: true,
|
|
43702
|
-
get: function () { return
|
|
43702
|
+
get: function () { return chunkZDX7X7R5_cjs.useAiReviewStore; }
|
|
43703
43703
|
});
|
|
43704
43704
|
Object.defineProperty(exports, "useDocumentFolders", {
|
|
43705
43705
|
enumerable: true,
|
|
43706
|
-
get: function () { return
|
|
43706
|
+
get: function () { return chunkZDX7X7R5_cjs.useDocumentFolders; }
|
|
43707
43707
|
});
|
|
43708
43708
|
Object.defineProperty(exports, "useFilesDialogs", {
|
|
43709
43709
|
enumerable: true,
|
|
43710
|
-
get: function () { return
|
|
43710
|
+
get: function () { return chunkZDX7X7R5_cjs.useFilesDialogs; }
|
|
43711
43711
|
});
|
|
43712
43712
|
Object.defineProperty(exports, "useFilesGridStates", {
|
|
43713
43713
|
enumerable: true,
|
|
43714
|
-
get: function () { return
|
|
43714
|
+
get: function () { return chunkZDX7X7R5_cjs.useFilesGridStates; }
|
|
43715
43715
|
});
|
|
43716
43716
|
Object.defineProperty(exports, "useFilesPrefs", {
|
|
43717
43717
|
enumerable: true,
|
|
43718
|
-
get: function () { return
|
|
43718
|
+
get: function () { return chunkZDX7X7R5_cjs.useFilesPrefs; }
|
|
43719
43719
|
});
|
|
43720
43720
|
Object.defineProperty(exports, "useFilesStore", {
|
|
43721
43721
|
enumerable: true,
|
|
43722
|
-
get: function () { return
|
|
43722
|
+
get: function () { return chunkZDX7X7R5_cjs.useFilesStore; }
|
|
43723
43723
|
});
|
|
43724
43724
|
Object.defineProperty(exports, "usePendingFolders", {
|
|
43725
43725
|
enumerable: true,
|
|
43726
|
-
get: function () { return
|
|
43726
|
+
get: function () { return chunkZDX7X7R5_cjs.usePendingFolders; }
|
|
43727
43727
|
});
|
|
43728
43728
|
Object.defineProperty(exports, "useResolvedDocStatus", {
|
|
43729
43729
|
enumerable: true,
|
|
43730
|
-
get: function () { return
|
|
43730
|
+
get: function () { return chunkZDX7X7R5_cjs.useResolvedDocStatus; }
|
|
43731
43731
|
});
|
|
43732
43732
|
Object.defineProperty(exports, "ConnectedAssistantDock", {
|
|
43733
43733
|
enumerable: true,
|
|
43734
|
-
get: function () { return
|
|
43734
|
+
get: function () { return chunkXZVAKOE2_cjs.ConnectedAssistantDock; }
|
|
43735
43735
|
});
|
|
43736
43736
|
Object.defineProperty(exports, "redlineStats", {
|
|
43737
43737
|
enumerable: true,
|
|
43738
|
-
get: function () { return
|
|
43738
|
+
get: function () { return chunkXZVAKOE2_cjs.redlineStats; }
|
|
43739
43739
|
});
|
|
43740
43740
|
Object.defineProperty(exports, "textToArtifact", {
|
|
43741
43741
|
enumerable: true,
|
|
43742
|
-
get: function () { return
|
|
43742
|
+
get: function () { return chunkXZVAKOE2_cjs.textToArtifact; }
|
|
43743
43743
|
});
|
|
43744
43744
|
Object.defineProperty(exports, "toRedlineMarkdown", {
|
|
43745
43745
|
enumerable: true,
|
|
43746
|
-
get: function () { return
|
|
43746
|
+
get: function () { return chunkXZVAKOE2_cjs.toRedlineMarkdown; }
|
|
43747
43747
|
});
|
|
43748
43748
|
Object.defineProperty(exports, "useConnectedAiTask", {
|
|
43749
43749
|
enumerable: true,
|
|
43750
|
-
get: function () { return
|
|
43750
|
+
get: function () { return chunkXZVAKOE2_cjs.useConnectedAiTask; }
|
|
43751
43751
|
});
|
|
43752
43752
|
Object.defineProperty(exports, "useConnectedChat", {
|
|
43753
43753
|
enumerable: true,
|
|
43754
|
-
get: function () { return
|
|
43754
|
+
get: function () { return chunkXZVAKOE2_cjs.useConnectedChat; }
|
|
43755
43755
|
});
|
|
43756
43756
|
Object.defineProperty(exports, "useSemanticSearch", {
|
|
43757
43757
|
enumerable: true,
|
|
43758
|
-
get: function () { return
|
|
43758
|
+
get: function () { return chunkXZVAKOE2_cjs.useSemanticSearch; }
|
|
43759
43759
|
});
|
|
43760
43760
|
Object.defineProperty(exports, "useWorkspaceDocs", {
|
|
43761
43761
|
enumerable: true,
|
|
43762
|
-
get: function () { return
|
|
43762
|
+
get: function () { return chunkXZVAKOE2_cjs.useWorkspaceDocs; }
|
|
43763
43763
|
});
|
|
43764
43764
|
Object.defineProperty(exports, "useDocxCommentTarget", {
|
|
43765
43765
|
enumerable: true,
|
|
43766
|
-
get: function () { return
|
|
43766
|
+
get: function () { return chunkI6CGE7RZ_cjs.useDocxCommentTarget; }
|
|
43767
43767
|
});
|
|
43768
43768
|
Object.defineProperty(exports, "useNativeDocxSupport", {
|
|
43769
43769
|
enumerable: true,
|
|
43770
|
-
get: function () { return
|
|
43770
|
+
get: function () { return chunkI6CGE7RZ_cjs.useNativeDocxSupport; }
|
|
43771
43771
|
});
|
|
43772
43772
|
Object.defineProperty(exports, "ConnectedWorkflowDocumentsField", {
|
|
43773
43773
|
enumerable: true,
|
|
43774
|
-
get: function () { return
|
|
43774
|
+
get: function () { return chunkQ6N56ZBF_cjs.ConnectedWorkflowDocumentsField; }
|
|
43775
43775
|
});
|
|
43776
43776
|
Object.defineProperty(exports, "ConnectedWorkflowLauncher", {
|
|
43777
43777
|
enumerable: true,
|
|
43778
|
-
get: function () { return
|
|
43778
|
+
get: function () { return chunkQ6N56ZBF_cjs.ConnectedWorkflowLauncher; }
|
|
43779
43779
|
});
|
|
43780
43780
|
Object.defineProperty(exports, "ConnectedWorkflowsTable", {
|
|
43781
43781
|
enumerable: true,
|
|
43782
|
-
get: function () { return
|
|
43782
|
+
get: function () { return chunkQ6N56ZBF_cjs.ConnectedWorkflowsTable; }
|
|
43783
43783
|
});
|
|
43784
43784
|
Object.defineProperty(exports, "DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS", {
|
|
43785
43785
|
enumerable: true,
|
|
43786
|
-
get: function () { return
|
|
43786
|
+
get: function () { return chunkQ6N56ZBF_cjs.DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS; }
|
|
43787
43787
|
});
|
|
43788
43788
|
Object.defineProperty(exports, "toWorkflowFieldDocument", {
|
|
43789
43789
|
enumerable: true,
|
|
43790
|
-
get: function () { return
|
|
43790
|
+
get: function () { return chunkQ6N56ZBF_cjs.toWorkflowFieldDocument; }
|
|
43791
43791
|
});
|
|
43792
43792
|
Object.defineProperty(exports, "useConnectedAgentOptions", {
|
|
43793
43793
|
enumerable: true,
|
|
43794
|
-
get: function () { return
|
|
43794
|
+
get: function () { return chunkQ6N56ZBF_cjs.useConnectedAgentOptions; }
|
|
43795
43795
|
});
|
|
43796
43796
|
Object.defineProperty(exports, "useConnectedWorkflowScopeSource", {
|
|
43797
43797
|
enumerable: true,
|
|
43798
|
-
get: function () { return
|
|
43798
|
+
get: function () { return chunkQ6N56ZBF_cjs.useConnectedWorkflowScopeSource; }
|
|
43799
43799
|
});
|
|
43800
43800
|
Object.defineProperty(exports, "useConnectedWorkspaceRole", {
|
|
43801
43801
|
enumerable: true,
|
|
43802
|
-
get: function () { return
|
|
43802
|
+
get: function () { return chunkQ6N56ZBF_cjs.useConnectedWorkspaceRole; }
|
|
43803
43803
|
});
|
|
43804
43804
|
Object.defineProperty(exports, "useOpenWorkflow", {
|
|
43805
43805
|
enumerable: true,
|
|
43806
|
-
get: function () { return
|
|
43806
|
+
get: function () { return chunkQ6N56ZBF_cjs.useOpenWorkflow; }
|
|
43807
43807
|
});
|
|
43808
43808
|
Object.defineProperty(exports, "ConnectedDocumentToolsProvider", {
|
|
43809
43809
|
enumerable: true,
|
|
43810
|
-
get: function () { return
|
|
43810
|
+
get: function () { return chunkKD6ECCAN_cjs.ConnectedDocumentToolsProvider; }
|
|
43811
43811
|
});
|
|
43812
43812
|
Object.defineProperty(exports, "ConnectedMarkdown", {
|
|
43813
43813
|
enumerable: true,
|
|
43814
|
-
get: function () { return
|
|
43814
|
+
get: function () { return chunkKD6ECCAN_cjs.ConnectedMarkdown; }
|
|
43815
43815
|
});
|
|
43816
43816
|
Object.defineProperty(exports, "DocumentChip", {
|
|
43817
43817
|
enumerable: true,
|
|
43818
|
-
get: function () { return
|
|
43818
|
+
get: function () { return chunkKD6ECCAN_cjs.DocumentChip; }
|
|
43819
43819
|
});
|
|
43820
43820
|
Object.defineProperty(exports, "DocumentWorkspaceContext", {
|
|
43821
43821
|
enumerable: true,
|
|
43822
|
-
get: function () { return
|
|
43822
|
+
get: function () { return chunkKD6ECCAN_cjs.DocumentWorkspaceContext; }
|
|
43823
43823
|
});
|
|
43824
43824
|
Object.defineProperty(exports, "ExternalLink", {
|
|
43825
43825
|
enumerable: true,
|
|
43826
|
-
get: function () { return
|
|
43826
|
+
get: function () { return chunkKD6ECCAN_cjs.ExternalLink; }
|
|
43827
43827
|
});
|
|
43828
43828
|
Object.defineProperty(exports, "InternalDocLink", {
|
|
43829
43829
|
enumerable: true,
|
|
43830
|
-
get: function () { return
|
|
43830
|
+
get: function () { return chunkKD6ECCAN_cjs.InternalDocLink; }
|
|
43831
43831
|
});
|
|
43832
43832
|
Object.defineProperty(exports, "MailChip", {
|
|
43833
43833
|
enumerable: true,
|
|
43834
|
-
get: function () { return
|
|
43834
|
+
get: function () { return chunkKD6ECCAN_cjs.MailChip; }
|
|
43835
43835
|
});
|
|
43836
43836
|
Object.defineProperty(exports, "MermaidDiagram", {
|
|
43837
43837
|
enumerable: true,
|
|
43838
|
-
get: function () { return
|
|
43838
|
+
get: function () { return chunkKD6ECCAN_cjs.MermaidDiagram; }
|
|
43839
43839
|
});
|
|
43840
43840
|
Object.defineProperty(exports, "WorkspaceDocumentReference", {
|
|
43841
43841
|
enumerable: true,
|
|
43842
|
-
get: function () { return
|
|
43842
|
+
get: function () { return chunkKD6ECCAN_cjs.WorkspaceDocumentReference; }
|
|
43843
43843
|
});
|
|
43844
43844
|
Object.defineProperty(exports, "useDocumentViewerSupport", {
|
|
43845
43845
|
enumerable: true,
|
|
43846
|
-
get: function () { return
|
|
43846
|
+
get: function () { return chunkKD6ECCAN_cjs.useDocumentViewerSupport; }
|
|
43847
43847
|
});
|
|
43848
43848
|
Object.defineProperty(exports, "useDocumentWorkspace", {
|
|
43849
43849
|
enumerable: true,
|
|
43850
|
-
get: function () { return
|
|
43850
|
+
get: function () { return chunkKD6ECCAN_cjs.useDocumentWorkspace; }
|
|
43851
43851
|
});
|
|
43852
43852
|
Object.defineProperty(exports, "useViewerDraftDocument", {
|
|
43853
43853
|
enumerable: true,
|
|
43854
|
-
get: function () { return
|
|
43854
|
+
get: function () { return chunkKD6ECCAN_cjs.useViewerDraftDocument; }
|
|
43855
43855
|
});
|
|
43856
43856
|
Object.defineProperty(exports, "useViewerIsDetached", {
|
|
43857
43857
|
enumerable: true,
|
|
43858
|
-
get: function () { return
|
|
43858
|
+
get: function () { return chunkKD6ECCAN_cjs.useViewerIsDetached; }
|
|
43859
43859
|
});
|
|
43860
43860
|
Object.defineProperty(exports, "useViewerPassageCitation", {
|
|
43861
43861
|
enumerable: true,
|
|
43862
|
-
get: function () { return
|
|
43862
|
+
get: function () { return chunkKD6ECCAN_cjs.useViewerPassageCitation; }
|
|
43863
43863
|
});
|
|
43864
43864
|
Object.defineProperty(exports, "useViewerStreamingDocument", {
|
|
43865
43865
|
enumerable: true,
|
|
43866
|
-
get: function () { return
|
|
43866
|
+
get: function () { return chunkKD6ECCAN_cjs.useViewerStreamingDocument; }
|
|
43867
43867
|
});
|
|
43868
43868
|
Object.defineProperty(exports, "useMeetingThreadMessages", {
|
|
43869
43869
|
enumerable: true,
|