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