@arbidocs/blocks 0.5.92 → 0.5.94

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.
Files changed (91) hide show
  1. package/dist/{ConnectedNativeDocxComparison-QHAV3K7N.cjs → ConnectedNativeDocxComparison-2LHBSTHG.cjs} +5 -5
  2. package/dist/{ConnectedNativeDocxComparison-QHAV3K7N.cjs.map → ConnectedNativeDocxComparison-2LHBSTHG.cjs.map} +1 -1
  3. package/dist/{ConnectedNativeDocxComparison-P6GG3ODF.js → ConnectedNativeDocxComparison-E65YZ7ML.js} +4 -4
  4. package/dist/{ConnectedNativeDocxComparison-P6GG3ODF.js.map → ConnectedNativeDocxComparison-E65YZ7ML.js.map} +1 -1
  5. package/dist/{DocumentReviewCard-LP33IGEL.js → DocumentReviewCard-H3C3D2OT.js} +7 -7
  6. package/dist/{DocumentReviewCard-LP33IGEL.js.map → DocumentReviewCard-H3C3D2OT.js.map} +1 -1
  7. package/dist/{DocumentReviewCard-QV3CM7YP.cjs → DocumentReviewCard-S77M6UGK.cjs} +12 -12
  8. package/dist/{DocumentReviewCard-QV3CM7YP.cjs.map → DocumentReviewCard-S77M6UGK.cjs.map} +1 -1
  9. package/dist/{FilesViewerDialog-FZYXO3MS.js → FilesViewerDialog-APITCSFU.js} +6 -6
  10. package/dist/{FilesViewerDialog-FZYXO3MS.js.map → FilesViewerDialog-APITCSFU.js.map} +1 -1
  11. package/dist/{FilesViewerDialog-JKNA25Q3.cjs → FilesViewerDialog-SWTDMWSU.cjs} +7 -7
  12. package/dist/{FilesViewerDialog-JKNA25Q3.cjs.map → FilesViewerDialog-SWTDMWSU.cjs.map} +1 -1
  13. package/dist/{chunk-KB2FH26M.cjs → chunk-345BCA6C.cjs} +4 -4
  14. package/dist/chunk-345BCA6C.cjs.map +1 -0
  15. package/dist/{chunk-DBGN4M4F.cjs → chunk-3I335OG7.cjs} +4 -4
  16. package/dist/{chunk-DBGN4M4F.cjs.map → chunk-3I335OG7.cjs.map} +1 -1
  17. package/dist/{chunk-DIE5ENQC.cjs → chunk-6BPA5O3I.cjs} +28 -28
  18. package/dist/{chunk-DIE5ENQC.cjs.map → chunk-6BPA5O3I.cjs.map} +1 -1
  19. package/dist/{chunk-SOZIHPO2.js → chunk-AFNPK2AH.js} +3 -3
  20. package/dist/{chunk-SOZIHPO2.js.map → chunk-AFNPK2AH.js.map} +1 -1
  21. package/dist/chunk-BFMOBAKB.js +29 -0
  22. package/dist/chunk-BFMOBAKB.js.map +1 -0
  23. package/dist/{chunk-WA2U4G43.cjs → chunk-FAD6D5EV.cjs} +7 -7
  24. package/dist/{chunk-WA2U4G43.cjs.map → chunk-FAD6D5EV.cjs.map} +1 -1
  25. package/dist/chunk-FWBU4MKG.cjs +130 -0
  26. package/dist/chunk-FWBU4MKG.cjs.map +1 -0
  27. package/dist/{chunk-VWX36C4Y.cjs → chunk-HKZT7K4L.cjs} +8 -8
  28. package/dist/{chunk-VWX36C4Y.cjs.map → chunk-HKZT7K4L.cjs.map} +1 -1
  29. package/dist/{chunk-BSTVTI5G.js → chunk-HP2DF3XY.js} +6 -6
  30. package/dist/{chunk-BSTVTI5G.js.map → chunk-HP2DF3XY.js.map} +1 -1
  31. package/dist/{chunk-HLVLPDDD.js → chunk-IG2EZOH3.js} +3 -3
  32. package/dist/{chunk-HLVLPDDD.js.map → chunk-IG2EZOH3.js.map} +1 -1
  33. package/dist/{chunk-QIEUKIBH.cjs → chunk-JTRMTIHN.cjs} +4 -4
  34. package/dist/{chunk-QIEUKIBH.cjs.map → chunk-JTRMTIHN.cjs.map} +1 -1
  35. package/dist/{chunk-GE2O6S44.cjs → chunk-MN622SFR.cjs} +4 -4
  36. package/dist/{chunk-GE2O6S44.cjs.map → chunk-MN622SFR.cjs.map} +1 -1
  37. package/dist/{chunk-DCYVHUSU.cjs → chunk-MPA74GSM.cjs} +46 -46
  38. package/dist/{chunk-DCYVHUSU.cjs.map → chunk-MPA74GSM.cjs.map} +1 -1
  39. package/dist/{chunk-CPOFZYKH.js → chunk-MXCJLF4H.js} +3 -3
  40. package/dist/{chunk-CPOFZYKH.js.map → chunk-MXCJLF4H.js.map} +1 -1
  41. package/dist/{chunk-5SUIQS75.js → chunk-NALP6YI6.js} +4 -4
  42. package/dist/{chunk-5SUIQS75.js.map → chunk-NALP6YI6.js.map} +1 -1
  43. package/dist/chunk-PGSBXD5U.js +128 -0
  44. package/dist/chunk-PGSBXD5U.js.map +1 -0
  45. package/dist/{chunk-WLWZAS7J.js → chunk-QYNPE4C4.js} +4 -4
  46. package/dist/chunk-QYNPE4C4.js.map +1 -0
  47. package/dist/{chunk-4P553YX2.cjs → chunk-WVMOIMDQ.cjs} +35 -35
  48. package/dist/{chunk-4P553YX2.cjs.map → chunk-WVMOIMDQ.cjs.map} +1 -1
  49. package/dist/{chunk-BCYFZIG6.js → chunk-Z256XHYA.js} +4 -4
  50. package/dist/{chunk-BCYFZIG6.js.map → chunk-Z256XHYA.js.map} +1 -1
  51. package/dist/{chunk-JM7Z3QNS.js → chunk-ZFAYQ3XJ.js} +5 -5
  52. package/dist/{chunk-JM7Z3QNS.js.map → chunk-ZFAYQ3XJ.js.map} +1 -1
  53. package/dist/chunk-ZK7UK77G.cjs +31 -0
  54. package/dist/chunk-ZK7UK77G.cjs.map +1 -0
  55. package/dist/{chunk-YB2P5Y52.js → chunk-ZV3I6EVU.js} +3 -3
  56. package/dist/{chunk-YB2P5Y52.js.map → chunk-ZV3I6EVU.js.map} +1 -1
  57. package/dist/connect/docx.cjs +3 -3
  58. package/dist/connect/docx.js +2 -2
  59. package/dist/connect/index.cjs +436 -410
  60. package/dist/connect/index.cjs.map +1 -1
  61. package/dist/connect/index.js +61 -35
  62. package/dist/connect/index.js.map +1 -1
  63. package/dist/connect/viewer.cjs +5 -5
  64. package/dist/connect/viewer.js +4 -4
  65. package/dist/connection/docx/ConnectedNativeDocxComparison.d.ts +6 -2
  66. package/dist/connection/mail/offline/offlineMailSupport.d.ts +3 -1
  67. package/dist/connection/mail/types.d.ts +6 -0
  68. package/dist/connection/mail/useMailOffline.d.ts +6 -0
  69. package/dist/docx/NativeDocxComparison.d.ts +17 -1
  70. package/dist/docx/index.cjs +2 -2
  71. package/dist/docx/index.js +1 -1
  72. package/dist/embed/index.cjs +11 -11
  73. package/dist/embed/index.js +5 -5
  74. package/dist/files/AiReviewDialog.d.ts +2 -0
  75. package/dist/files/index.cjs +222 -222
  76. package/dist/files/index.js +1 -1
  77. package/dist/workflow-canvas/index.cjs +13 -13
  78. package/dist/workflow-canvas/index.js +6 -6
  79. package/node_modules/@arbidocs/coedit/package.json +1 -1
  80. package/package.json +5 -5
  81. package/src/docx/README.md +8 -1
  82. package/dist/chunk-DW7LSBIW.js +0 -16
  83. package/dist/chunk-DW7LSBIW.js.map +0 -1
  84. package/dist/chunk-EBNY3RTL.cjs +0 -18
  85. package/dist/chunk-EBNY3RTL.cjs.map +0 -1
  86. package/dist/chunk-IVY4EEN5.js +0 -65
  87. package/dist/chunk-IVY4EEN5.js.map +0 -1
  88. package/dist/chunk-KB2FH26M.cjs.map +0 -1
  89. package/dist/chunk-VNO36IVK.cjs +0 -67
  90. package/dist/chunk-VNO36IVK.cjs.map +0 -1
  91. package/dist/chunk-WLWZAS7J.js.map +0 -1
@@ -4,16 +4,16 @@
4
4
  var chunk3532KA6K_cjs = require('../chunk-3532KA6K.cjs');
5
5
  var chunkK3C4WECV_cjs = require('../chunk-K3C4WECV.cjs');
6
6
  var chunkWVEYUH6C_cjs = require('../chunk-WVEYUH6C.cjs');
7
- var chunkDIE5ENQC_cjs = require('../chunk-DIE5ENQC.cjs');
7
+ var chunk6BPA5O3I_cjs = require('../chunk-6BPA5O3I.cjs');
8
8
  var chunkPSIKUQYM_cjs = require('../chunk-PSIKUQYM.cjs');
9
9
  var chunk64KZM3RZ_cjs = require('../chunk-64KZM3RZ.cjs');
10
- var chunkWA2U4G43_cjs = require('../chunk-WA2U4G43.cjs');
10
+ var chunkFAD6D5EV_cjs = require('../chunk-FAD6D5EV.cjs');
11
11
  var chunkC5CWKZ5D_cjs = require('../chunk-C5CWKZ5D.cjs');
12
12
  var chunkCIXA5A65_cjs = require('../chunk-CIXA5A65.cjs');
13
13
  var chunkKWJW5TMH_cjs = require('../chunk-KWJW5TMH.cjs');
14
- var chunkVWX36C4Y_cjs = require('../chunk-VWX36C4Y.cjs');
15
- var chunkDBGN4M4F_cjs = require('../chunk-DBGN4M4F.cjs');
16
- var chunkQIEUKIBH_cjs = require('../chunk-QIEUKIBH.cjs');
14
+ var chunkHKZT7K4L_cjs = require('../chunk-HKZT7K4L.cjs');
15
+ var chunk3I335OG7_cjs = require('../chunk-3I335OG7.cjs');
16
+ var chunkJTRMTIHN_cjs = require('../chunk-JTRMTIHN.cjs');
17
17
  var chunkHDPT7D6F_cjs = require('../chunk-HDPT7D6F.cjs');
18
18
  var chunkTJY7XPDE_cjs = require('../chunk-TJY7XPDE.cjs');
19
19
  var chunkECZXW346_cjs = require('../chunk-ECZXW346.cjs');
@@ -29,11 +29,11 @@ var chunkSIYNZR5B_cjs = require('../chunk-SIYNZR5B.cjs');
29
29
  var chunkDDWLMYRO_cjs = require('../chunk-DDWLMYRO.cjs');
30
30
  var chunkJXKNPKU6_cjs = require('../chunk-JXKNPKU6.cjs');
31
31
  var chunkKJM5X7NX_cjs = require('../chunk-KJM5X7NX.cjs');
32
- var chunkGE2O6S44_cjs = require('../chunk-GE2O6S44.cjs');
32
+ var chunkMN622SFR_cjs = require('../chunk-MN622SFR.cjs');
33
33
  var chunk6Y7MHSIT_cjs = require('../chunk-6Y7MHSIT.cjs');
34
- var chunk4P553YX2_cjs = require('../chunk-4P553YX2.cjs');
34
+ var chunkWVMOIMDQ_cjs = require('../chunk-WVMOIMDQ.cjs');
35
35
  var chunkRB6MAAS7_cjs = require('../chunk-RB6MAAS7.cjs');
36
- var chunkKB2FH26M_cjs = require('../chunk-KB2FH26M.cjs');
36
+ var chunk345BCA6C_cjs = require('../chunk-345BCA6C.cjs');
37
37
  var chunk223D4727_cjs = require('../chunk-223D4727.cjs');
38
38
  var chunkSNUBQMIS_cjs = require('../chunk-SNUBQMIS.cjs');
39
39
  var chunk2VJBIBPE_cjs = require('../chunk-2VJBIBPE.cjs');
@@ -1427,14 +1427,14 @@ function ConnectedOfflineStatus({ compact = false }) {
1427
1427
  const openOutbox = () => openMail?.(outbox.length > 0 ? { folder: outboxFolder } : void 0);
1428
1428
  let tone;
1429
1429
  let label;
1430
- let onOpen = pending === 0 && outbox.length + mailChanges > 0 ? openOutbox : chunk4P553YX2_cjs.openPendingSyncDialog;
1430
+ let onOpen = pending === 0 && outbox.length + mailChanges > 0 ? openOutbox : chunkWVMOIMDQ_cjs.openPendingSyncDialog;
1431
1431
  if (!isOnline) {
1432
1432
  tone = "offline";
1433
1433
  label = waiting > 0 ? `Offline \xB7 ${waiting} pending` : "Offline";
1434
1434
  } else if (failed > 0) {
1435
1435
  tone = "failed";
1436
1436
  label = `${plural(failed, "change", "changes")} didn\u2019t sync`;
1437
- onOpen = chunk4P553YX2_cjs.openPendingSyncDialog;
1437
+ onOpen = chunkWVMOIMDQ_cjs.openPendingSyncDialog;
1438
1438
  } else if (outboxFailed > 0) {
1439
1439
  tone = "failed";
1440
1440
  label = `${plural(outboxFailed, "email", "emails")} not sent`;
@@ -2065,7 +2065,7 @@ function ConnectedSkillsBrowser({
2065
2065
  }
2066
2066
  ) }),
2067
2067
  runSkillId && /* @__PURE__ */ jsxRuntime.jsx(
2068
- chunkWA2U4G43_cjs.ConnectedTaskComposer,
2068
+ chunkFAD6D5EV_cjs.ConnectedTaskComposer,
2069
2069
  {
2070
2070
  kind: "workflow",
2071
2071
  open: true,
@@ -2675,7 +2675,7 @@ function useMemoryCount(enabled) {
2675
2675
  }
2676
2676
  function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
2677
2677
  const { notify: notify17, openConversation, openDocument } = chunkUIXY4HKM_cjs.useBlocksEnvironment();
2678
- const people = chunkWA2U4G43_cjs.useTaskPeople();
2678
+ const people = chunkFAD6D5EV_cjs.useTaskPeople();
2679
2679
  const canEditShared = react.useCanEditShared();
2680
2680
  const isWorkspaceOwner = react.useIsWorkspaceOwner();
2681
2681
  const { data: workflows = [] } = react.useWorkflows({ live: true });
@@ -2728,7 +2728,7 @@ function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
2728
2728
  }
2729
2729
  ),
2730
2730
  activityFor && /* @__PURE__ */ jsxRuntime.jsx(
2731
- chunkWA2U4G43_cjs.ConnectedTaskActivityDialog,
2731
+ chunkFAD6D5EV_cjs.ConnectedTaskActivityDialog,
2732
2732
  {
2733
2733
  conversationId: activityFor.external_id,
2734
2734
  taskName: activityFor.title || l.untitledTask,
@@ -2744,7 +2744,7 @@ function AgentsLauncher({ workflows, renderIcon, labels: l, testId }) {
2744
2744
  const { notify: notify17, openConversation } = chunkUIXY4HKM_cjs.useBlocksEnvironment();
2745
2745
  const { workspaceId, ensureWorkspaceOpen } = chunkWV65MJ43_cjs.useConnectedWorkspace();
2746
2746
  const { data: skills = [] } = react.useSkills({ enabled: !!workspaceId, live: true });
2747
- const workflowTasks = chunkWA2U4G43_cjs.useWorkflowTasks();
2747
+ const workflowTasks = chunkFAD6D5EV_cjs.useWorkflowTasks();
2748
2748
  const launchable = react$1.useMemo(
2749
2749
  () => [
2750
2750
  ...workflows,
@@ -2887,7 +2887,7 @@ function ConnectedAgentsPageScope(props) {
2887
2887
  children,
2888
2888
  /* @__PURE__ */ jsxRuntime.jsx(ConnectedAgentCreator, { ...management.editorProps, ...agentOptions.creator }),
2889
2889
  taskDialog && /* @__PURE__ */ jsxRuntime.jsx(
2890
- chunkWA2U4G43_cjs.ConnectedTaskComposer,
2890
+ chunkFAD6D5EV_cjs.ConnectedTaskComposer,
2891
2891
  {
2892
2892
  open: true,
2893
2893
  onOpenChange: (open) => !open && setTaskDialog(null),
@@ -3441,8 +3441,8 @@ function ConnectedAiReview({
3441
3441
  const generate = react.useGenerateDocTags();
3442
3442
  const { data: liveDocs = [] } = react.useDocuments();
3443
3443
  const { data: tags = [] } = react.useTags();
3444
- const result = chunkGE2O6S44_cjs.useAiReviewStore((s) => s.run);
3445
- const setResult = chunkGE2O6S44_cjs.useAiReviewStore((s) => s.setRun);
3444
+ const result = chunkMN622SFR_cjs.useAiReviewStore((s) => s.run);
3445
+ const setResult = chunkMN622SFR_cjs.useAiReviewStore((s) => s.setRun);
3446
3446
  const phase = result ? "review" : "ask";
3447
3447
  const docCount = documents.length;
3448
3448
  const scope = allDocuments ? "processed" : "selected";
@@ -3598,7 +3598,8 @@ function ConnectedAiReview({
3598
3598
  scope,
3599
3599
  getGridApi,
3600
3600
  onReorderColumns,
3601
- setResult
3601
+ setResult,
3602
+ notify17
3602
3603
  ]);
3603
3604
  const isAiTag = react$1.useCallback(
3604
3605
  (id) => Boolean(tags.find((t) => t.external_id === id)?.instruction?.trim()),
@@ -3616,22 +3617,29 @@ function ConnectedAiReview({
3616
3617
  return result.docIds.map((id) => {
3617
3618
  const doc = liveDocs.find((d) => d.external_id === id);
3618
3619
  const stale = result.replacing && !finished.has(id);
3619
- const cells = resultTags.map((t) => ({
3620
- tagId: t.id,
3621
- note: stale ? void 0 : doc?.doctags?.find((dt) => dt.tag_ext_id === t.id)?.note ?? void 0,
3622
- isAi: aiTagIds.includes(t.id),
3623
- isFinished: finished.has(id)
3624
- }));
3620
+ const cells = resultTags.map((t) => {
3621
+ const tag = tags.find((tag2) => tag2.external_id === t.id);
3622
+ const doctag = stale ? void 0 : doc?.doctags?.find((dt) => dt.tag_ext_id === t.id);
3623
+ return {
3624
+ tagId: t.id,
3625
+ isApplied: Boolean(tag && browser.isPresenceTag(tag) && doctag),
3626
+ note: doctag?.note ?? void 0,
3627
+ isAi: aiTagIds.includes(t.id),
3628
+ isFinished: finished.has(id)
3629
+ };
3630
+ });
3625
3631
  return { id, title: doc ? ui.getDocumentTitle(doc, "Untitled") : id, cells };
3626
3632
  });
3627
- }, [result, liveDocs, resultTags, aiTagIds]);
3633
+ }, [result, liveDocs, resultTags, aiTagIds, tags]);
3628
3634
  const aiCellsTotal = rows.length * aiTagIds.length;
3629
3635
  const aiCellsDone = rows.reduce(
3630
- (acc, r) => acc + r.cells.filter((c) => c.isAi && c.note != null && c.note !== "").length,
3636
+ (acc, r) => acc + r.cells.filter((c) => c.isAi && (c.note != null && c.note !== "" || c.isApplied)).length,
3631
3637
  0
3632
3638
  );
3633
3639
  const aiCellsEmpty = rows.reduce(
3634
- (acc, r) => acc + r.cells.filter((c) => c.isAi && c.isFinished && (c.note == null || c.note === "")).length,
3640
+ (acc, r) => acc + r.cells.filter(
3641
+ (c) => c.isAi && c.isFinished && !c.isApplied && (c.note == null || c.note === "")
3642
+ ).length,
3635
3643
  0
3636
3644
  );
3637
3645
  const runInstruction = react$1.useMemo(() => {
@@ -3668,7 +3676,7 @@ function ConnectedAiReview({
3668
3676
  }, [kind]);
3669
3677
  const description = phase === "ask" ? `Ask one question \u2014 ARBI answers it for each of the ${docCount} ${scope} document${plural2(docCount)}.` : aiCellsTotal > 0 ? reviewProgress(aiCellsDone, aiCellsEmpty, aiCellsTotal) : `Applied to ${rows.length} document${plural2(rows.length)}`;
3670
3678
  return /* @__PURE__ */ jsxRuntime.jsx(
3671
- chunkKB2FH26M_cjs.AiReviewDialogView,
3679
+ chunk345BCA6C_cjs.AiReviewDialogView,
3672
3680
  {
3673
3681
  open,
3674
3682
  onOpenChange: handleOpenChange,
@@ -3695,6 +3703,7 @@ function ConnectedAiReview({
3695
3703
  cells: r.cells.map((c) => ({
3696
3704
  fieldId: c.tagId,
3697
3705
  note: c.note,
3706
+ isApplied: c.isApplied,
3698
3707
  isAi: c.isAi,
3699
3708
  isFinished: c.isFinished
3700
3709
  }))
@@ -3784,8 +3793,8 @@ function useOpenTaggedContent() {
3784
3793
  if (!workspaceId) return;
3785
3794
  session.setTransientView("topbar.filter", "");
3786
3795
  if (kind === "documents") {
3787
- chunkGE2O6S44_cjs.useFilesPrefs.getState().setDocumentFilters({ [tagId]: "include" });
3788
- chunkGE2O6S44_cjs.useFilesPrefs.getState().setViewMode("grid");
3796
+ chunkMN622SFR_cjs.useFilesPrefs.getState().setDocumentFilters({ [tagId]: "include" });
3797
+ chunkMN622SFR_cjs.useFilesPrefs.getState().setViewMode("grid");
3789
3798
  session.setPage("documents");
3790
3799
  } else if (kind === "facts") {
3791
3800
  session.setViewFilter(FACTS_FILTER_KEY, { [tagId]: "include" });
@@ -3824,7 +3833,7 @@ function ConnectedTagForm({
3824
3833
  nameByKind = false
3825
3834
  }) {
3826
3835
  const isCreate = !tag;
3827
- const memberById = chunkDIE5ENQC_cjs.useMemberLookup();
3836
+ const memberById = chunk6BPA5O3I_cjs.useMemberLookup();
3828
3837
  const creator = memberById(tag?.created_by_ext_id);
3829
3838
  const updater = memberById(tag?.updated_by_ext_id);
3830
3839
  const fieldLabel = ui.getEntityLabel("TAG", "SINGULAR");
@@ -3903,19 +3912,19 @@ function ConnectedTagForm({
3903
3912
  metaLines.push({
3904
3913
  text: `Created ${ui.formatFriendlyDate(tag.created_at)}`,
3905
3914
  byLabel: "by",
3906
- by: creator ? /* @__PURE__ */ jsxRuntime.jsx(chunkQIEUKIBH_cjs.DocumentUser, { user: creator }) : void 0
3915
+ by: creator ? /* @__PURE__ */ jsxRuntime.jsx(chunkJTRMTIHN_cjs.DocumentUser, { user: creator }) : void 0
3907
3916
  });
3908
3917
  if (tag.updated_at && tag.updated_at !== tag.created_at) {
3909
3918
  metaLines.push({
3910
3919
  text: `Updated ${ui.formatFriendlyDate(tag.updated_at)}`,
3911
3920
  byLabel: "by",
3912
- by: updater ? /* @__PURE__ */ jsxRuntime.jsx(chunkQIEUKIBH_cjs.DocumentUser, { user: updater }) : void 0
3921
+ by: updater ? /* @__PURE__ */ jsxRuntime.jsx(chunkJTRMTIHN_cjs.DocumentUser, { user: updater }) : void 0
3913
3922
  });
3914
3923
  }
3915
3924
  }
3916
- return /* @__PURE__ */ jsxRuntime.jsxs(chunkKB2FH26M_cjs.TagFormRoot, { children: [
3925
+ return /* @__PURE__ */ jsxRuntime.jsxs(chunk345BCA6C_cjs.TagFormRoot, { children: [
3917
3926
  !nameOnRow && /* @__PURE__ */ jsxRuntime.jsx(
3918
- chunkKB2FH26M_cjs.TagFormNameField,
3927
+ chunk345BCA6C_cjs.TagFormNameField,
3919
3928
  {
3920
3929
  label: group || nameByKind ? `${ui.tagKindTitle(kind)} Name` : `${columnLabel} Name`,
3921
3930
  placeholder: `Enter ${kindNoun ?? columnLabel.toLowerCase()} name...`,
@@ -3925,7 +3934,7 @@ function ConnectedTagForm({
3925
3934
  }
3926
3935
  ),
3927
3936
  kinds.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
3928
- chunkKB2FH26M_cjs.TagFormSelectField,
3937
+ chunk345BCA6C_cjs.TagFormSelectField,
3929
3938
  {
3930
3939
  label: "Kind",
3931
3940
  testId: "inline-tag-form-kind-field",
@@ -3940,7 +3949,7 @@ function ConnectedTagForm({
3940
3949
  }
3941
3950
  ),
3942
3951
  kind === "annotation" && /* @__PURE__ */ jsxRuntime.jsx(
3943
- chunkKB2FH26M_cjs.TagFormSelectField,
3952
+ chunk345BCA6C_cjs.TagFormSelectField,
3944
3953
  {
3945
3954
  label: group === "annotation" ? "Value type" : "Field Type",
3946
3955
  testId: "inline-tag-form-type-field",
@@ -3952,7 +3961,7 @@ function ConnectedTagForm({
3952
3961
  }
3953
3962
  ),
3954
3963
  showParentPicker && /* @__PURE__ */ jsxRuntime.jsx(
3955
- chunkKB2FH26M_cjs.TagFormSelectField,
3964
+ chunk345BCA6C_cjs.TagFormSelectField,
3956
3965
  {
3957
3966
  label: "Nested Under",
3958
3967
  value: parentId,
@@ -3974,14 +3983,14 @@ function ConnectedTagForm({
3974
3983
  ]
3975
3984
  }
3976
3985
  ),
3977
- nestingEnabled && hasChildren && /* @__PURE__ */ jsxRuntime.jsxs(chunkKB2FH26M_cjs.TagFormNote, { testId: "inline-tag-form-parent-locked", children: [
3986
+ nestingEnabled && hasChildren && /* @__PURE__ */ jsxRuntime.jsxs(chunk345BCA6C_cjs.TagFormNote, { testId: "inline-tag-form-parent-locked", children: [
3978
3987
  "Other fields are nested under this one, so it cannot itself be nested \u2014 fields nest",
3979
3988
  " ",
3980
3989
  browser.TAG_NESTING_MAX_DEPTH,
3981
3990
  " levels deep."
3982
3991
  ] }),
3983
3992
  tagType === "select" && /* @__PURE__ */ jsxRuntime.jsx(
3984
- chunkKB2FH26M_cjs.TagFormOptionsEditor,
3993
+ chunk345BCA6C_cjs.TagFormOptionsEditor,
3985
3994
  {
3986
3995
  label: "Options",
3987
3996
  options: options2,
@@ -3994,7 +4003,7 @@ function ConnectedTagForm({
3994
4003
  }
3995
4004
  ),
3996
4005
  tagType === "text" && /* @__PURE__ */ jsxRuntime.jsx(
3997
- chunkKB2FH26M_cjs.TagFormInstructionField,
4006
+ chunk345BCA6C_cjs.TagFormInstructionField,
3998
4007
  {
3999
4008
  label: "AI Instruction",
4000
4009
  optionalLabel: "(optional)",
@@ -4004,12 +4013,12 @@ function ConnectedTagForm({
4004
4013
  onChange: setInstruction
4005
4014
  }
4006
4015
  ),
4007
- metaLines.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.TagFormMeta, { lines: metaLines }),
4016
+ metaLines.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.TagFormMeta, { lines: metaLines }),
4008
4017
  /* @__PURE__ */ jsxRuntime.jsx(
4009
- chunkKB2FH26M_cjs.TagFormFooter,
4018
+ chunk345BCA6C_cjs.TagFormFooter,
4010
4019
  {
4011
4020
  sharedToggle: isCreate || !group ? /* @__PURE__ */ jsxRuntime.jsx(
4012
- chunkKB2FH26M_cjs.TagFormSharedToggle,
4021
+ chunk345BCA6C_cjs.TagFormSharedToggle,
4013
4022
  {
4014
4023
  label: "Shared with workspace",
4015
4024
  toggle: /* @__PURE__ */ jsxRuntime.jsx(
@@ -4426,9 +4435,9 @@ var TAG_FILTER_FIELDS = [
4426
4435
  function ConnectedTagsPage() {
4427
4436
  const { confirm, notify: notify17, openSmartSearch } = chunkUIXY4HKM_cjs.useBlocksEnvironment();
4428
4437
  const onOpenTaggedItems = useOpenTaggedContent();
4429
- const setReviewOpen = chunkGE2O6S44_cjs.useAiReviewStore((state) => state.setOpen);
4430
- const setReviewRun = chunkGE2O6S44_cjs.useAiReviewStore((state) => state.setRun);
4431
- const reviewOpen = chunkGE2O6S44_cjs.useAiReviewStore((state) => state.open);
4438
+ const setReviewOpen = chunkMN622SFR_cjs.useAiReviewStore((state) => state.setOpen);
4439
+ const setReviewRun = chunkMN622SFR_cjs.useAiReviewStore((state) => state.setRun);
4440
+ const reviewOpen = chunkMN622SFR_cjs.useAiReviewStore((state) => state.open);
4432
4441
  const [review, setReview] = react$1.useState(null);
4433
4442
  const { data: tags } = chunkBFKTZUFT_cjs.useConnectedTags();
4434
4443
  const { data: documents } = chunkBFKTZUFT_cjs.useConnectedDocuments();
@@ -4574,7 +4583,7 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
4574
4583
  onTabChange: () => {
4575
4584
  },
4576
4585
  variant: "underline",
4577
- firstTabContent: tag ? void 0 : /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.FilesFilterBar, { className: "flex-none", "data-testid": "tags-header-actions", children: /* @__PURE__ */ jsxRuntime.jsx(
4586
+ firstTabContent: tag ? void 0 : /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.FilesFilterBar, { className: "flex-none", "data-testid": "tags-header-actions", children: /* @__PURE__ */ jsxRuntime.jsx(
4578
4587
  chunk6UZC4XVV_cjs.FilterInput,
4579
4588
  {
4580
4589
  value: filterText,
@@ -4596,7 +4605,7 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
4596
4605
  filter: tagFilter
4597
4606
  }
4598
4607
  ) }),
4599
- centerContent: /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.FilesViewCenter, { children: /* @__PURE__ */ jsxRuntime.jsx(
4608
+ centerContent: /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.FilesViewCenter, { children: /* @__PURE__ */ jsxRuntime.jsx(
4600
4609
  chunkSNUBQMIS_cjs.ViewToggle,
4601
4610
  {
4602
4611
  options: browser.TAG_KINDS.map((k) => ({
@@ -5277,7 +5286,7 @@ function ConnectedExportPanel({
5277
5286
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col h-full", "data-testid": "export-documents", children: [
5278
5287
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 overflow-auto space-y-6 p-6", children: [
5279
5288
  jobRunning && job && /* @__PURE__ */ jsxRuntime.jsx(
5280
- chunkKB2FH26M_cjs.TransferProgressView,
5289
+ chunk345BCA6C_cjs.TransferProgressView,
5281
5290
  {
5282
5291
  title: `${job.mode === "move" ? "Moving" : "Copying"} to ${targetName(job.target_workspace_ext_id)}`,
5283
5292
  processed: job.processed ?? 0,
@@ -5290,7 +5299,7 @@ function ConnectedExportPanel({
5290
5299
  ),
5291
5300
  jobDone && job && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
5292
5301
  react.isTransferResumable(job) && /* @__PURE__ */ jsxRuntime.jsx(
5293
- chunkKB2FH26M_cjs.TransferResumeBanner,
5302
+ chunk345BCA6C_cjs.TransferResumeBanner,
5294
5303
  {
5295
5304
  message: `Stopped at ${job.processed} of ${job.total}. Resume to finish \u2014 nothing is copied twice.`,
5296
5305
  onResume: () => handleResume(job),
@@ -5298,7 +5307,7 @@ function ConnectedExportPanel({
5298
5307
  }
5299
5308
  ),
5300
5309
  /* @__PURE__ */ jsxRuntime.jsx(
5301
- chunkKB2FH26M_cjs.ExportResultsReport,
5310
+ chunk345BCA6C_cjs.ExportResultsReport,
5302
5311
  {
5303
5312
  summary: `${job.mode === "move" ? "Moved" : "Copied"} ${plural3(
5304
5313
  Number(job.counts?.copied ?? 0) + Number(job.counts?.removed ?? 0),
@@ -5311,7 +5320,7 @@ function ConnectedExportPanel({
5311
5320
  ] }),
5312
5321
  !jobId && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
5313
5322
  resumable && /* @__PURE__ */ jsxRuntime.jsx(
5314
- chunkKB2FH26M_cjs.TransferResumeBanner,
5323
+ chunk345BCA6C_cjs.TransferResumeBanner,
5315
5324
  {
5316
5325
  message: `A ${resumable.mode} to ${targetName(resumable.target_workspace_ext_id)} stopped at ${resumable.processed} of ${resumable.total}.`,
5317
5326
  onResume: () => handleResume(resumable),
@@ -5319,7 +5328,7 @@ function ConnectedExportPanel({
5319
5328
  }
5320
5329
  ),
5321
5330
  /* @__PURE__ */ jsxRuntime.jsx(
5322
- chunkKB2FH26M_cjs.TransferScopeChooser,
5331
+ chunk345BCA6C_cjs.TransferScopeChooser,
5323
5332
  {
5324
5333
  scope: scopeChoice,
5325
5334
  onScopeChange: setScopeChoice,
@@ -5330,7 +5339,7 @@ function ConnectedExportPanel({
5330
5339
  }
5331
5340
  ),
5332
5341
  /* @__PURE__ */ jsxRuntime.jsx(
5333
- chunkKB2FH26M_cjs.TransferKindsPicker,
5342
+ chunk345BCA6C_cjs.TransferKindsPicker,
5334
5343
  {
5335
5344
  options: ALL_KINDS.map((kind) => ({
5336
5345
  kind,
@@ -5343,9 +5352,9 @@ function ConnectedExportPanel({
5343
5352
  )
5344
5353
  }
5345
5354
  ),
5346
- /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.TransferReferencesChooser, { value: references, onChange: setReferences }),
5355
+ /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.TransferReferencesChooser, { value: references, onChange: setReferences }),
5347
5356
  /* @__PURE__ */ jsxRuntime.jsx(
5348
- chunkKB2FH26M_cjs.ExportMethodChooser,
5357
+ chunk345BCA6C_cjs.ExportMethodChooser,
5349
5358
  {
5350
5359
  mode,
5351
5360
  onModeChange: setMode,
@@ -5357,17 +5366,17 @@ function ConnectedExportPanel({
5357
5366
  ),
5358
5367
  mode !== "download" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
5359
5368
  /* @__PURE__ */ jsxRuntime.jsx(
5360
- chunkKB2FH26M_cjs.ExportWorkspacePicker,
5369
+ chunk345BCA6C_cjs.ExportWorkspacePicker,
5361
5370
  {
5362
5371
  workspaces: workspaceOptions,
5363
5372
  selectedId: targetId,
5364
5373
  onSelect: setTargetId
5365
5374
  }
5366
5375
  ),
5367
- /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.TransferConflictChooser, { value: conflict, onChange: setConflict })
5376
+ /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.TransferConflictChooser, { value: conflict, onChange: setConflict })
5368
5377
  ] }),
5369
5378
  /* @__PURE__ */ jsxRuntime.jsx(
5370
- chunkKB2FH26M_cjs.TransferPlanSummary,
5379
+ chunk345BCA6C_cjs.TransferPlanSummary,
5371
5380
  {
5372
5381
  lines: summary.lines,
5373
5382
  warnings: summary.warnings,
@@ -5384,7 +5393,7 @@ function ConnectedExportPanel({
5384
5393
  ] })
5385
5394
  ] }),
5386
5395
  !jobId && /* @__PURE__ */ jsxRuntime.jsx(
5387
- chunkKB2FH26M_cjs.ExportFooter,
5396
+ chunk345BCA6C_cjs.ExportFooter,
5388
5397
  {
5389
5398
  onCancel: onClose,
5390
5399
  onSubmit: handleSubmit,
@@ -5425,7 +5434,7 @@ function OpenExportDialog({
5425
5434
  children: [
5426
5435
  /* @__PURE__ */ jsxRuntime.jsxs(chunkULWRNGGE_cjs.ModalHeader, { children: [
5427
5436
  /* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { children: /* @__PURE__ */ jsxRuntime.jsx(
5428
- chunkKB2FH26M_cjs.ExportModalTitle,
5437
+ chunk345BCA6C_cjs.ExportModalTitle,
5429
5438
  {
5430
5439
  workspace: workspace ? {
5431
5440
  icon: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "touch-hit inline-flex", children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -5842,7 +5851,7 @@ function ConnectedFieldsEditor({
5842
5851
  const [sortBy, setSortBy] = react$1.useState("name-asc");
5843
5852
  const [filterText, setFilterText] = react$1.useState("");
5844
5853
  const fieldRows = react$1.useMemo(
5845
- () => browser.flattenTagTree(chunkKB2FH26M_cjs.sortFields(chunkKB2FH26M_cjs.filterFieldsByName(tags, filterText), sortBy)),
5854
+ () => browser.flattenTagTree(chunk345BCA6C_cjs.sortFields(chunk345BCA6C_cjs.filterFieldsByName(tags, filterText), sortBy)),
5846
5855
  [tags, filterText, sortBy]
5847
5856
  );
5848
5857
  const exportItems = react$1.useMemo(
@@ -5862,7 +5871,7 @@ function ConnectedFieldsEditor({
5862
5871
  setIsDeleting(false);
5863
5872
  }
5864
5873
  };
5865
- const copy = chunkKB2FH26M_cjs.fieldsApplyBarCopy({
5874
+ const copy = chunk345BCA6C_cjs.fieldsApplyBarCopy({
5866
5875
  nouns,
5867
5876
  targetNoun,
5868
5877
  fieldCount,
@@ -5871,9 +5880,9 @@ function ConnectedFieldsEditor({
5871
5880
  isApplying,
5872
5881
  isClearing
5873
5882
  });
5874
- return /* @__PURE__ */ jsxRuntime.jsxs(chunkKB2FH26M_cjs.FieldsEditorRoot, { children: [
5883
+ return /* @__PURE__ */ jsxRuntime.jsxs(chunk345BCA6C_cjs.FieldsEditorRoot, { children: [
5875
5884
  /* @__PURE__ */ jsxRuntime.jsx(
5876
- chunkKB2FH26M_cjs.FieldsEditorToolbar,
5885
+ chunk345BCA6C_cjs.FieldsEditorToolbar,
5877
5886
  {
5878
5887
  nouns,
5879
5888
  onNew: () => {
@@ -5901,11 +5910,11 @@ function ConnectedFieldsEditor({
5901
5910
  onSortByChange: setSortBy
5902
5911
  }
5903
5912
  ),
5904
- /* @__PURE__ */ jsxRuntime.jsxs(chunkKB2FH26M_cjs.FieldsEditorList, { children: [
5913
+ /* @__PURE__ */ jsxRuntime.jsxs(chunk345BCA6C_cjs.FieldsEditorList, { children: [
5905
5914
  fieldRows.map(({ tag, depth, childCount }) => {
5906
5915
  const isEditingThis = editingTagId === tag.external_id;
5907
5916
  return /* @__PURE__ */ jsxRuntime.jsx(
5908
- chunkKB2FH26M_cjs.FieldRow,
5917
+ chunk345BCA6C_cjs.FieldRow,
5909
5918
  {
5910
5919
  tagId: tag.external_id,
5911
5920
  name: tag.name,
@@ -5958,10 +5967,10 @@ function ConnectedFieldsEditor({
5958
5967
  tag.external_id
5959
5968
  );
5960
5969
  }),
5961
- fieldRows.length === 0 && !isCreatingTag && /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.FieldsEmptyState, { children: chunkKB2FH26M_cjs.fieldsEmptyText({ nouns, filterText, hasKind: !!kind }) })
5970
+ fieldRows.length === 0 && !isCreatingTag && /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.FieldsEmptyState, { children: chunk345BCA6C_cjs.fieldsEmptyText({ nouns, filterText, hasKind: !!kind }) })
5962
5971
  ] }),
5963
5972
  /* @__PURE__ */ jsxRuntime.jsx(
5964
- chunkKB2FH26M_cjs.FieldsApplyBar,
5973
+ chunk345BCA6C_cjs.FieldsApplyBar,
5965
5974
  {
5966
5975
  hint: copy.hint,
5967
5976
  applyLabel: copy.applyLabel,
@@ -6037,8 +6046,8 @@ function ConnectedFieldsManager({
6037
6046
  }
6038
6047
  );
6039
6048
  const body = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
6040
- /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.FieldsManagerDefinition, { children: DEFINITIONS[activeKind] }),
6041
- /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.FieldsManagerBody, { children: /* @__PURE__ */ jsxRuntime.jsx(
6049
+ /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.FieldsManagerDefinition, { children: DEFINITIONS[activeKind] }),
6050
+ /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.FieldsManagerBody, { children: /* @__PURE__ */ jsxRuntime.jsx(
6042
6051
  ConnectedFieldsEditor,
6043
6052
  {
6044
6053
  group: activeKind,
@@ -6050,7 +6059,7 @@ function ConnectedFieldsManager({
6050
6059
  ] });
6051
6060
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col h-full", children: [
6052
6061
  /* @__PURE__ */ jsxRuntime.jsxs(chunkRB6MAAS7_cjs.DraggableHeader, { children: [
6053
- /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.FieldsManagerTitle, { title, className: "px-4 pt-3.5 pb-2" }),
6062
+ /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.FieldsManagerTitle, { title, className: "px-4 pt-3.5 pb-2" }),
6054
6063
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-3", children: tabHeader })
6055
6064
  ] }),
6056
6065
  body
@@ -6079,7 +6088,7 @@ function ConnectedFieldsManagerPanel({
6079
6088
  const [createRequest, setCreateRequest] = react.useTransientView(FIELDS_MANAGER_CREATE_VIEW, 0);
6080
6089
  const [kind, setKind] = react.useTransientView(FIELDS_MANAGER_KIND_VIEW, "label");
6081
6090
  const documentIds = react.useArbiSessionState((s) => s.selectedDocumentIds);
6082
- const reviewing = chunkGE2O6S44_cjs.useFilesPrefs((state) => chunkGE2O6S44_cjs.filesViewMode(state) === "navigator");
6091
+ const reviewing = chunkMN622SFR_cjs.useFilesPrefs((state) => chunkMN622SFR_cjs.filesViewMode(state) === "navigator");
6083
6092
  const viewingId = react.useArbiSessionState((s) => s.viewingDocument?.id ?? null);
6084
6093
  const reviewingId = reviewing ? viewingId : null;
6085
6094
  const handleClose = react$1.useCallback(() => {
@@ -6120,7 +6129,7 @@ function ConnectedFieldsManagerPanel({
6120
6129
  onAnnotationCreated,
6121
6130
  onAiFieldsApplied: (result) => {
6122
6131
  session.closePanel(FIELDS_MANAGER_PANEL);
6123
- const review = chunkGE2O6S44_cjs.useAiReviewStore.getState();
6132
+ const review = chunkMN622SFR_cjs.useAiReviewStore.getState();
6124
6133
  review.setRun(result);
6125
6134
  review.setOpen(true);
6126
6135
  }
@@ -6495,7 +6504,7 @@ var factNouns = () => ({
6495
6504
  function useWorkspaceAsk() {
6496
6505
  const { openNewConversation, openFiles } = chunkUIXY4HKM_cjs.useBlocksEnvironment();
6497
6506
  const { workspaceId } = chunkWV65MJ43_cjs.useConnectedWorkspace();
6498
- const setFilesViewMode = chunkGE2O6S44_cjs.useFilesPrefs((state) => state.setViewMode);
6507
+ const setFilesViewMode = chunkMN622SFR_cjs.useFilesPrefs((state) => state.setViewMode);
6499
6508
  const ask = react$1.useCallback(
6500
6509
  (text2) => openNewConversation({ prompt: text2, keepDocumentOpen: true }),
6501
6510
  [openNewConversation]
@@ -7023,7 +7032,7 @@ function useFactFilters(notes, view, chat) {
7023
7032
  (selected, setSelected, opts) => {
7024
7033
  const applied = new Set(selected);
7025
7034
  return /* @__PURE__ */ jsxRuntime.jsx(chunkHDPT7D6F_cjs.FactFieldRow, { label: "Labels", children: /* @__PURE__ */ jsxRuntime.jsx(
7026
- chunkKB2FH26M_cjs.FieldLabelsSelect,
7035
+ chunk345BCA6C_cjs.FieldLabelsSelect,
7027
7036
  {
7028
7037
  options: labelOptions,
7029
7038
  appliedIds: applied,
@@ -7250,7 +7259,7 @@ var FactHeader = react$1.memo(function FactHeader2({
7250
7259
  if (params.enableSorting) params.progressSort(e.shiftKey);
7251
7260
  },
7252
7261
  children: [
7253
- /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.FilterButton, { params, colId }),
7262
+ /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.FilterButton, { params, colId }),
7254
7263
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "order-2 min-w-0 flex-1 truncate", children: params.displayName }),
7255
7264
  /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "ag-sort-indicator-container order-2 flex-shrink-0", "aria-hidden": "true", children: [
7256
7265
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -7522,7 +7531,7 @@ function useFactsPageView() {
7522
7531
  "facts.searchFields",
7523
7532
  DEFAULT_SEARCH_FIELDS
7524
7533
  );
7525
- const rowHeight = react.useArbiSessionState((s) => s.grid.rowHeights[FACTS_GRID_ID] ?? chunkKB2FH26M_cjs.ROW_MIN);
7534
+ const rowHeight = react.useArbiSessionState((s) => s.grid.rowHeights[FACTS_GRID_ID] ?? chunk345BCA6C_cjs.ROW_MIN);
7526
7535
  const labelWidth = react.useArbiSessionState(
7527
7536
  (s) => s.grid.labelWidths[FACTS_GRID_ID] ?? DEFAULT_TIMELINE_LABEL_WIDTH
7528
7537
  );
@@ -7756,7 +7765,7 @@ function ConnectedFactsPage() {
7756
7765
  const view = pageView.view;
7757
7766
  const setView = pageView.setView;
7758
7767
  const openLabels = () => openFieldsManagerIn(session, "label");
7759
- const factsRowHeight = pageView.rowHeight === chunkKB2FH26M_cjs.ROW_MIN ? chunkKB2FH26M_cjs.ROW_MIN : chunkKB2FH26M_cjs.rowHeightForLines(chunkKB2FH26M_cjs.linesForRowHeight(pageView.rowHeight));
7768
+ const factsRowHeight = pageView.rowHeight === chunk345BCA6C_cjs.ROW_MIN ? chunk345BCA6C_cjs.ROW_MIN : chunk345BCA6C_cjs.rowHeightForLines(chunk345BCA6C_cjs.linesForRowHeight(pageView.rowHeight));
7760
7769
  const [isExportOpen, setIsExportOpen] = react$1.useState(false);
7761
7770
  const [filterOpen, setFilterOpen] = react$1.useState(false);
7762
7771
  const [factSection, setFactSection] = react$1.useState(null);
@@ -7822,7 +7831,7 @@ function ConnectedFactsPage() {
7822
7831
  tools: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
7823
7832
  view === "table" && /* @__PURE__ */ jsxRuntime.jsx(chunkHDPT7D6F_cjs.FactsFieldsButton, { getGridApi: () => gridApiRef.current }),
7824
7833
  view === "table" && /* @__PURE__ */ jsxRuntime.jsx(
7825
- chunkKB2FH26M_cjs.RowDensityControl,
7834
+ chunk345BCA6C_cjs.RowDensityControl,
7826
7835
  {
7827
7836
  rowHeight: factsRowHeight,
7828
7837
  onRowHeightChange: pageView.setRowHeight,
@@ -8086,7 +8095,7 @@ function useConnectedShellWorkspaces(options2 = {}) {
8086
8095
  function ConnectedSsoDisconnect() {
8087
8096
  const { client } = react.useAccountClient();
8088
8097
  const { data: profile } = react.useProfile();
8089
- const auth = chunkVWX36C4Y_cjs.useAuthPages();
8098
+ const auth = chunkHKZT7K4L_cjs.useAuthPages();
8090
8099
  const { notify: notify17 } = chunkUIXY4HKM_cjs.useBlocksEnvironment();
8091
8100
  const [open, setOpen] = react$1.useState(false);
8092
8101
  const [step, setStep] = react$1.useState("email");
@@ -8264,14 +8273,14 @@ function ConnectedAccountSettings({
8264
8273
  }) {
8265
8274
  const [logoutOpen, setLogoutOpen] = react$1.useState(false);
8266
8275
  return /* @__PURE__ */ jsxRuntime.jsxs(chunkQQMMCXBP_cjs.SettingsPanel, { className: "max-w-2xl", children: [
8267
- /* @__PURE__ */ jsxRuntime.jsx(chunkVWX36C4Y_cjs.ConnectedProfileCard, { avatarClassName, nameBadge: profileBadge }),
8276
+ /* @__PURE__ */ jsxRuntime.jsx(chunkHKZT7K4L_cjs.ConnectedProfileCard, { avatarClassName, nameBadge: profileBadge }),
8268
8277
  /* @__PURE__ */ jsxRuntime.jsx(ConnectedBoxPortalSection, {}),
8269
8278
  /* @__PURE__ */ jsxRuntime.jsxs(chunkQQMMCXBP_cjs.SettingsDisclosure, { title: "More", testId: "account-more-settings", children: [
8270
8279
  /* @__PURE__ */ jsxRuntime.jsx(ConnectedSsoDisconnect, {}),
8271
- /* @__PURE__ */ jsxRuntime.jsx(chunkVWX36C4Y_cjs.ConnectedSecuritySection, { children: securityRows }),
8280
+ /* @__PURE__ */ jsxRuntime.jsx(chunkHKZT7K4L_cjs.ConnectedSecuritySection, { children: securityRows }),
8272
8281
  moreSettings,
8273
8282
  /* @__PURE__ */ jsxRuntime.jsx(
8274
- chunkVWX36C4Y_cjs.ConnectedIdentityVerification,
8283
+ chunkHKZT7K4L_cjs.ConnectedIdentityVerification,
8275
8284
  {
8276
8285
  collapsible: true,
8277
8286
  onManageBilling,
@@ -8281,7 +8290,7 @@ function ConnectedAccountSettings({
8281
8290
  ] }),
8282
8291
  /* @__PURE__ */ jsxRuntime.jsx(chunkQQMMCXBP_cjs.SettingsSection, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Wifi, {}), title: "Session", children: /* @__PURE__ */ jsxRuntime.jsxs(chunkQQMMCXBP_cjs.SettingsCard, { children: [
8283
8292
  connection && /* @__PURE__ */ jsxRuntime.jsx(ServerConnectionRow, { ...connection }),
8284
- /* @__PURE__ */ jsxRuntime.jsx(chunkVWX36C4Y_cjs.ConnectedSessionsRow, { renderSessionIcon }),
8293
+ /* @__PURE__ */ jsxRuntime.jsx(chunkHKZT7K4L_cjs.ConnectedSessionsRow, { renderSessionIcon }),
8285
8294
  /* @__PURE__ */ jsxRuntime.jsx(chunkQQMMCXBP_cjs.SettingsRow, { label: "Logout", description: "Sign out of your account on this device.", children: /* @__PURE__ */ jsxRuntime.jsxs(
8286
8295
  ui.Button,
8287
8296
  {
@@ -8298,9 +8307,9 @@ function ConnectedAccountSettings({
8298
8307
  }
8299
8308
  ) })
8300
8309
  ] }) }),
8301
- /* @__PURE__ */ jsxRuntime.jsx(chunkVWX36C4Y_cjs.ConnectedDangerZone, { renderSubscriptionLink }),
8310
+ /* @__PURE__ */ jsxRuntime.jsx(chunkHKZT7K4L_cjs.ConnectedDangerZone, { renderSubscriptionLink }),
8302
8311
  !onLogout && /* @__PURE__ */ jsxRuntime.jsx(
8303
- chunkVWX36C4Y_cjs.ConnectedLogoutDialog,
8312
+ chunkHKZT7K4L_cjs.ConnectedLogoutDialog,
8304
8313
  {
8305
8314
  open: logoutOpen,
8306
8315
  onClose: () => setLogoutOpen(false),
@@ -8608,7 +8617,7 @@ function ConnectedPrivacySettings({
8608
8617
  }
8609
8618
  )
8610
8619
  ] }) }),
8611
- /* @__PURE__ */ jsxRuntime.jsx(chunkVWX36C4Y_cjs.ConnectedNotificationPreferences, {})
8620
+ /* @__PURE__ */ jsxRuntime.jsx(chunkHKZT7K4L_cjs.ConnectedNotificationPreferences, {})
8612
8621
  ] });
8613
8622
  }
8614
8623
  var PROVIDER_NAMES = {
@@ -10589,7 +10598,7 @@ function ConnectedRecoveryKeyDialog({
10589
10598
  const arbi = react.useArbi();
10590
10599
  const { user, isSso: isSsoMode } = react.useArbiSession();
10591
10600
  const userEmail = user?.email;
10592
- const sso = chunkVWX36C4Y_cjs.useSsoSignIn();
10601
+ const sso = chunkHKZT7K4L_cjs.useSsoSignIn();
10593
10602
  const handleVerify = async () => {
10594
10603
  setError(null);
10595
10604
  if (!password) {
@@ -14498,7 +14507,7 @@ function ConnectedSharePointAdminConsentPage({
14498
14507
  /* @__PURE__ */ jsxRuntime.jsx(
14499
14508
  chunkQJNHVQUQ_cjs.ConsentHeader,
14500
14509
  {
14501
- icon: /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.VendorLogo, { vendorKey: "microsoft_sharepoint", product: "sharepoint" }),
14510
+ icon: /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.VendorLogo, { vendorKey: "microsoft_sharepoint", product: "sharepoint" }),
14502
14511
  title: "Approve ARBI for SharePoint access",
14503
14512
  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."
14504
14513
  }
@@ -17526,7 +17535,7 @@ function ConnectedProjectsListPage({
17526
17535
  };
17527
17536
  const { openProject } = chunkUIXY4HKM_cjs.useBlocksEnvironment();
17528
17537
  const [search, setSearch] = react$1.useState("");
17529
- const { projects, isLoading } = chunkWA2U4G43_cjs.useProjectSummaries();
17538
+ const { projects, isLoading } = chunkFAD6D5EV_cjs.useProjectSummaries();
17530
17539
  const rows = react$1.useMemo(() => {
17531
17540
  const q = search.trim().toLowerCase();
17532
17541
  if (!q) return projects;
@@ -17659,7 +17668,7 @@ function ProjectDetailsForm({
17659
17668
  const labels = { ...DEFAULT_PROJECT_DETAILS_LABELS, ...given };
17660
17669
  const { notify: notify17 } = chunkUIXY4HKM_cjs.useBlocksEnvironment();
17661
17670
  const update = react.useUpdateProjectFields();
17662
- const workspace = chunkWA2U4G43_cjs.primaryProjectWorkspace(project);
17671
+ const workspace = chunkFAD6D5EV_cjs.primaryProjectWorkspace(project);
17663
17672
  const { data: members = [] } = react.useWorkspaceUsers(workspace?.id);
17664
17673
  const people = members.filter((m) => !m.user.external_id.startsWith("agt-"));
17665
17674
  const currency = project.budget?.currency ?? "GBP";
@@ -17848,9 +17857,9 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
17848
17857
  for (const tag of workspaceTags ?? []) map.set(tag.external_id, tag.name);
17849
17858
  return map;
17850
17859
  }, [workspaceTags]);
17851
- const pendingFolders = chunkGE2O6S44_cjs.usePendingFolders(wsId);
17852
- const addPendingFolder = chunkGE2O6S44_cjs.useFilesStore((state) => state.addPendingFolder);
17853
- const removePendingFolder = chunkGE2O6S44_cjs.useFilesStore((state) => state.removePendingFolder);
17860
+ const pendingFolders = chunkMN622SFR_cjs.usePendingFolders(wsId);
17861
+ const addPendingFolder = chunkMN622SFR_cjs.useFilesStore((state) => state.addPendingFolder);
17862
+ const removePendingFolder = chunkMN622SFR_cjs.useFilesStore((state) => state.removePendingFolder);
17854
17863
  const [editingFolderPath, setEditingFolderPath] = react$1.useState(null);
17855
17864
  const isSearching = search.trim().length > 0;
17856
17865
  const selectedSet = react$1.useMemo(() => new Set(selectedIds), [selectedIds]);
@@ -17859,8 +17868,8 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
17859
17868
  const { folders, files } = react$1.useMemo(() => {
17860
17869
  const result = isSearching ? {
17861
17870
  folders: [],
17862
- files: chunkKB2FH26M_cjs.searchExplorerDocuments(documents, search, sort)
17863
- } : chunkKB2FH26M_cjs.buildExplorerEntries(documents, currentPath, sort, [...pendingFolders]);
17871
+ files: chunk345BCA6C_cjs.searchExplorerDocuments(documents, search, sort)
17872
+ } : chunk345BCA6C_cjs.buildExplorerEntries(documents, currentPath, sort, [...pendingFolders]);
17864
17873
  if (sortReversed) result.files = [...result.files].reverse();
17865
17874
  return result;
17866
17875
  }, [documents, currentPath, sort, isSearching, search, sortReversed, pendingFolders]);
@@ -17871,7 +17880,7 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
17871
17880
  const orderedFileIds = react$1.useMemo(() => files.map((d) => d.external_id), [files]);
17872
17881
  const folderDocs = react$1.useMemo(() => {
17873
17882
  const map = /* @__PURE__ */ new Map();
17874
- for (const f of folders) map.set(f.path.join("/"), chunkKB2FH26M_cjs.collectFolderDocs(documents, f.path));
17883
+ for (const f of folders) map.set(f.path.join("/"), chunk345BCA6C_cjs.collectFolderDocs(documents, f.path));
17875
17884
  return map;
17876
17885
  }, [folders, documents]);
17877
17886
  const folderSelection = react$1.useMemo(() => {
@@ -18019,7 +18028,7 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
18019
18028
  let name = base;
18020
18029
  let i = 2;
18021
18030
  while (siblings.has(name.toLowerCase())) name = `${base} ${i++}`;
18022
- const path = chunkKB2FH26M_cjs.joinFolderPath([...currentPath, name]);
18031
+ const path = chunk345BCA6C_cjs.joinFolderPath([...currentPath, name]);
18023
18032
  if (!path) return;
18024
18033
  addPendingFolder(wsId, path);
18025
18034
  setEditingFolderPath(path);
@@ -18055,10 +18064,10 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
18055
18064
  notify17(`A folder named "${name}" already exists here.`, "error");
18056
18065
  return;
18057
18066
  }
18058
- const oldPath = chunkKB2FH26M_cjs.joinFolderPath(folder.path);
18067
+ const oldPath = chunk345BCA6C_cjs.joinFolderPath(folder.path);
18059
18068
  const newPrefix = [...folder.path.slice(0, -1), name];
18060
- const newPath = chunkKB2FH26M_cjs.joinFolderPath(newPrefix);
18061
- const docs = chunkKB2FH26M_cjs.collectFolderDocs(documents, folder.path);
18069
+ const newPath = chunk345BCA6C_cjs.joinFolderPath(newPrefix);
18070
+ const docs = chunk345BCA6C_cjs.collectFolderDocs(documents, folder.path);
18062
18071
  try {
18063
18072
  if (await renameFolder(docs, folder.path, newPrefix) > 0) {
18064
18073
  notify17(`Renamed folder to "${name}"`, "success");
@@ -18117,7 +18126,7 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
18117
18126
  const handleToggleFolder = react$1.useCallback(
18118
18127
  (folder, e) => {
18119
18128
  e.stopPropagation();
18120
- const ids = chunkKB2FH26M_cjs.collectFolderDocs(documents, folder.path).map((d) => d.external_id);
18129
+ const ids = chunk345BCA6C_cjs.collectFolderDocs(documents, folder.path).map((d) => d.external_id);
18121
18130
  if (ids.length === 0) return;
18122
18131
  if (ids.every((id) => selectedSet.has(id))) {
18123
18132
  const remove = new Set(ids);
@@ -18178,9 +18187,9 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
18178
18187
  );
18179
18188
  const handleDelete = react$1.useCallback(
18180
18189
  async (doc) => {
18181
- const name = chunkKB2FH26M_cjs.getExplorerDisplayName(doc);
18190
+ const name = chunk345BCA6C_cjs.getExplorerDisplayName(doc);
18182
18191
  const confirmed = await confirm({
18183
- message: `Delete "${name}"? ${chunkKB2FH26M_cjs.RECENTLY_DELETED_HINT}`,
18192
+ message: `Delete "${name}"? ${chunk345BCA6C_cjs.RECENTLY_DELETED_HINT}`,
18184
18193
  title: "Delete file"
18185
18194
  });
18186
18195
  if (!confirmed) return;
@@ -18200,7 +18209,7 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
18200
18209
  );
18201
18210
  const handleFolderDownload = react$1.useCallback(
18202
18211
  (folder) => {
18203
- const docs = chunkKB2FH26M_cjs.collectFolderDocs(documents, folder.path);
18212
+ const docs = chunk345BCA6C_cjs.collectFolderDocs(documents, folder.path);
18204
18213
  if (docs.length > 0) void downloadDocuments(docs);
18205
18214
  },
18206
18215
  [documents, downloadDocuments]
@@ -18209,7 +18218,7 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
18209
18218
  if (onFolderMove) return onFolderMove;
18210
18219
  if (!onMoveSelected) return void 0;
18211
18220
  return (folder) => {
18212
- const ids = chunkKB2FH26M_cjs.collectFolderDocs(documents, folder.path).map((d) => d.external_id);
18221
+ const ids = chunk345BCA6C_cjs.collectFolderDocs(documents, folder.path).map((d) => d.external_id);
18213
18222
  if (ids.length === 0) return;
18214
18223
  onSelectionChange(ids);
18215
18224
  onMoveSelected();
@@ -18217,14 +18226,14 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
18217
18226
  }, [documents, onFolderMove, onMoveSelected, onSelectionChange]);
18218
18227
  const handleFolderDelete = react$1.useCallback(
18219
18228
  async (folder) => {
18220
- const docs = chunkKB2FH26M_cjs.collectFolderDocs(documents, folder.path);
18229
+ const docs = chunk345BCA6C_cjs.collectFolderDocs(documents, folder.path);
18221
18230
  if (docs.length === 0) {
18222
- const path = chunkKB2FH26M_cjs.joinFolderPath(folder.path);
18231
+ const path = chunk345BCA6C_cjs.joinFolderPath(folder.path);
18223
18232
  if (wsId && path) removePendingFolder(wsId, path);
18224
18233
  return;
18225
18234
  }
18226
18235
  const confirmed = await confirm({
18227
- message: `Delete folder "${folder.name}" and its ${docs.length} item${docs.length === 1 ? "" : "s"}? ${chunkKB2FH26M_cjs.RECENTLY_DELETED_HINT_PLURAL}`,
18236
+ message: `Delete folder "${folder.name}" and its ${docs.length} item${docs.length === 1 ? "" : "s"}? ${chunk345BCA6C_cjs.RECENTLY_DELETED_HINT_PLURAL}`,
18228
18237
  title: "Delete folder"
18229
18238
  });
18230
18239
  if (!confirmed) return;
@@ -18241,8 +18250,8 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
18241
18250
  [confirm, documents, deleteDocuments, onSelectionChange, removePendingFolder, wsId, notify17]
18242
18251
  );
18243
18252
  const canDeleteFolder = react$1.useCallback(
18244
- (folder) => canUpload && chunkKB2FH26M_cjs.collectFolderDocs(documents, folder.path).every(
18245
- (doc) => chunkKB2FH26M_cjs.canDeleteDocument(doc, userId, role)
18253
+ (folder) => canUpload && chunk345BCA6C_cjs.collectFolderDocs(documents, folder.path).every(
18254
+ (doc) => chunk345BCA6C_cjs.canDeleteDocument(doc, userId, role)
18246
18255
  ),
18247
18256
  [canUpload, documents, userId, role]
18248
18257
  );
@@ -18301,7 +18310,7 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
18301
18310
  setActiveDragId(null);
18302
18311
  const data = event.over?.data.current;
18303
18312
  if (data?.type === "folder" && data.path) {
18304
- const targetFolder = chunkKB2FH26M_cjs.joinFolderPath(data.path);
18313
+ const targetFolder = chunk345BCA6C_cjs.joinFolderPath(data.path);
18305
18314
  const moving = dragIdsRef.current.filter((id) => {
18306
18315
  const doc = documents.find((d) => d.external_id === id);
18307
18316
  return doc && (doc.folder ?? null) !== targetFolder;
@@ -18341,7 +18350,7 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
18341
18350
  const dropped = Array.from(e.dataTransfer.files ?? []);
18342
18351
  if (dropped.length > 0) {
18343
18352
  e.preventDefault();
18344
- onUploadFiles(dropped, chunkKB2FH26M_cjs.joinFolderPath(currentPath));
18353
+ onUploadFiles(dropped, chunk345BCA6C_cjs.joinFolderPath(currentPath));
18345
18354
  }
18346
18355
  },
18347
18356
  [canUpload, currentPath, onUploadFiles]
@@ -18358,9 +18367,9 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
18358
18367
  onDragEnd: handleDragEnd,
18359
18368
  onDragCancel: () => setActiveDragId(null),
18360
18369
  children: [
18361
- /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.ExplorerFrame, { "data-testid": "documents-explorer", children: /* @__PURE__ */ jsxRuntime.jsxs(chunkKB2FH26M_cjs.ExplorerStage, { children: [
18370
+ /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.ExplorerFrame, { "data-testid": "documents-explorer", children: /* @__PURE__ */ jsxRuntime.jsxs(chunk345BCA6C_cjs.ExplorerStage, { children: [
18362
18371
  /* @__PURE__ */ jsxRuntime.jsx(
18363
- chunkKB2FH26M_cjs.ExplorerScroller,
18372
+ chunk345BCA6C_cjs.ExplorerScroller,
18364
18373
  {
18365
18374
  ref: scrollRef,
18366
18375
  onClick: handleBackgroundClick,
@@ -18370,15 +18379,15 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
18370
18379
  onDragLeave: handleNativeDragLeave,
18371
18380
  onDrop: handleNativeDrop,
18372
18381
  "data-testid": "explorer-scroll",
18373
- children: isLoading && documents.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.ExplorerLoadingTiles, {}) : entries.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(
18374
- chunkKB2FH26M_cjs.ExplorerEmpty,
18382
+ children: isLoading && documents.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.ExplorerLoadingTiles, {}) : entries.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(
18383
+ chunk345BCA6C_cjs.ExplorerEmpty,
18375
18384
  {
18376
18385
  title: isSearching ? `No files match "${search.trim()}"` : "This folder is empty",
18377
18386
  description: isSearching ? "Try a different search." : canUpload ? "Drop files here or use Upload to add documents." : "No documents here yet."
18378
18387
  }
18379
18388
  ) : containerWidth === 0 ? (
18380
18389
  // Not measured yet: rendering now would flash one stretched column.
18381
- /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.ExplorerLoadingTiles, {})
18390
+ /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.ExplorerLoadingTiles, {})
18382
18391
  ) : /* @__PURE__ */ jsxRuntime.jsx(
18383
18392
  "div",
18384
18393
  {
@@ -18408,7 +18417,7 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
18408
18417
  if (entry.kind === "folder") {
18409
18418
  const key = entry.path.join("/");
18410
18419
  return /* @__PURE__ */ jsxRuntime.jsx(
18411
- chunk4P553YX2_cjs.FolderTile,
18420
+ chunkWVMOIMDQ_cjs.FolderTile,
18412
18421
  {
18413
18422
  folder: entry,
18414
18423
  density,
@@ -18431,7 +18440,7 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
18431
18440
  }
18432
18441
  const doc = entry.doc;
18433
18442
  return /* @__PURE__ */ jsxRuntime.jsx(
18434
- chunk4P553YX2_cjs.FileTile,
18443
+ chunkWVMOIMDQ_cjs.FileTile,
18435
18444
  {
18436
18445
  doc,
18437
18446
  density,
@@ -18439,7 +18448,7 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
18439
18448
  dragging: activeDragId === doc.external_id,
18440
18449
  dndActive: activeDragId !== null,
18441
18450
  renaming: renamingId === doc.external_id,
18442
- canDelete: chunkKB2FH26M_cjs.canDeleteDocument(doc, userId, role),
18451
+ canDelete: chunk345BCA6C_cjs.canDeleteDocument(doc, userId, role),
18443
18452
  thumbnailUrl: thumbnailsById.get(doc.external_id),
18444
18453
  modifiedBy: userById.get(
18445
18454
  doc.updated_by_ext_id ?? doc.created_by_ext_id
@@ -18468,9 +18477,9 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
18468
18477
  )
18469
18478
  }
18470
18479
  ),
18471
- /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.ExplorerMarquee, { ref: marqueeOverlayRef, "data-testid": "explorer-marquee" }),
18480
+ /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.ExplorerMarquee, { ref: marqueeOverlayRef, "data-testid": "explorer-marquee" }),
18472
18481
  isFileDragOver && /* @__PURE__ */ jsxRuntime.jsx(
18473
- chunkKB2FH26M_cjs.ExplorerDropOverlay,
18482
+ chunk345BCA6C_cjs.ExplorerDropOverlay,
18474
18483
  {
18475
18484
  label: `Drop to upload${currentPath.length > 0 ? ` to "${currentPath[currentPath.length - 1]}"` : ""}`
18476
18485
  }
@@ -18484,7 +18493,7 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
18484
18493
  function DragPreview({ doc, count: count2 }) {
18485
18494
  const Icon = ui.getFileTypeIcon(doc.file_name, { mime: doc.file_type });
18486
18495
  return /* @__PURE__ */ jsxRuntime.jsx(
18487
- chunkKB2FH26M_cjs.ExplorerDragPreview,
18496
+ chunk345BCA6C_cjs.ExplorerDragPreview,
18488
18497
  {
18489
18498
  icon: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: 20 }),
18490
18499
  title: ui.getDocumentTitle(doc, doc.file_name ?? "Untitled"),
@@ -18718,11 +18727,11 @@ function ConnectedProjectPage({
18718
18727
  figures: { ...DEFAULT_PROJECT_PAGE_LABELS.figures, ...given?.figures },
18719
18728
  threads: { ...DEFAULT_PROJECT_PAGE_LABELS.threads, ...given?.threads }
18720
18729
  };
18721
- const { project, usage, isLoading } = chunkWA2U4G43_cjs.useProjectSummary(projectId);
18730
+ const { project, usage, isLoading } = chunkFAD6D5EV_cjs.useProjectSummary(projectId);
18722
18731
  const { workspaceId } = chunkWV65MJ43_cjs.useConnectedWorkspace();
18723
18732
  const { notify: notify17 } = chunkUIXY4HKM_cjs.useBlocksEnvironment();
18724
- const selectWorkspace = chunkDBGN4M4F_cjs.useSelectWorkspace();
18725
- const workspace = project ? chunkWA2U4G43_cjs.primaryProjectWorkspace(project) : void 0;
18733
+ const selectWorkspace = chunk3I335OG7_cjs.useSelectWorkspace();
18734
+ const workspace = project ? chunkFAD6D5EV_cjs.primaryProjectWorkspace(project) : void 0;
18726
18735
  const open = !!workspace && workspace.id === workspaceId;
18727
18736
  react$1.useEffect(() => {
18728
18737
  if (!workspace || workspace.id === workspaceId) return;
@@ -21429,7 +21438,7 @@ function ConnectedContactsPanel({
21429
21438
  function ConnectedConfigForm({ availableModels, ...rest }) {
21430
21439
  const hasModels = !!availableModels && availableModels.length > 0;
21431
21440
  const renderModelSelect = react$1.useCallback(
21432
- ({ value, onChange }) => /* @__PURE__ */ jsxRuntime.jsx(chunkVWX36C4Y_cjs.ConnectedModelSelector, { value, onValueChange: onChange, className: "w-full" }),
21441
+ ({ value, onChange }) => /* @__PURE__ */ jsxRuntime.jsx(chunkHKZT7K4L_cjs.ConnectedModelSelector, { value, onValueChange: onChange, className: "w-full" }),
21433
21442
  []
21434
21443
  );
21435
21444
  return /* @__PURE__ */ jsxRuntime.jsx(chunkQJNHVQUQ_cjs.ConfigForm, { ...rest, renderModelSelect: hasModels ? renderModelSelect : void 0 });
@@ -21988,7 +21997,7 @@ function useLaunchWorkflow({ landing: surfaceLanding } = {}) {
21988
21997
  const createTag = react.useCreateTag();
21989
21998
  const updateTag = react.useUpdateTag();
21990
21999
  const generate = react.useGenerateDocTags();
21991
- const { create: createTask } = chunkWA2U4G43_cjs.useWorkflowTasks();
22000
+ const { create: createTask } = chunkFAD6D5EV_cjs.useWorkflowTasks();
21992
22001
  const applyModel = react.useApplyChatModel();
21993
22002
  const session = react.useArbiSessionStore();
21994
22003
  const { notify: notify17, openFiles, openNewConversation } = chunkUIXY4HKM_cjs.useBlocksEnvironment();
@@ -22183,7 +22192,7 @@ var TILE_TEST_IDS = {
22183
22192
  annotate: "workspace-dashboard-quick-action-annotate"
22184
22193
  };
22185
22194
  function DashboardStart({ addMenu, onCreateNew }) {
22186
- const { dashboard: workflows } = chunkWA2U4G43_cjs.useWorkflowDefinitions();
22195
+ const { dashboard: workflows } = chunkFAD6D5EV_cjs.useWorkflowDefinitions();
22187
22196
  const { isMember, role } = react.useCurrentWorkspace();
22188
22197
  const canWrite = isMember && role !== "guest";
22189
22198
  const [activeId, setActiveId] = react$1.useState(null);
@@ -22331,7 +22340,7 @@ function DocumentsUploadButton({
22331
22340
  [hasAccountProviders, onSelectSource, onEmailWorkspace, onCreateNew, onTakePhoto]
22332
22341
  );
22333
22342
  return /* @__PURE__ */ jsxRuntime.jsx(
22334
- chunkKB2FH26M_cjs.FilesAddMenu,
22343
+ chunk345BCA6C_cjs.FilesAddMenu,
22335
22344
  {
22336
22345
  items,
22337
22346
  isCompact,
@@ -22426,7 +22435,7 @@ function useDashboardAdd({ onCreateNew, onTakePhoto }) {
22426
22435
  addFiles: () => upload(),
22427
22436
  dialogs: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
22428
22437
  /* @__PURE__ */ jsxRuntime.jsx(
22429
- chunkKB2FH26M_cjs.UrlInputDialog,
22438
+ chunk345BCA6C_cjs.UrlInputDialog,
22430
22439
  {
22431
22440
  open: urlDialogOpen,
22432
22441
  onOpenChange: setUrlDialogOpen,
@@ -22616,7 +22625,7 @@ function parseTypedSkill(draft) {
22616
22625
  return m ? { slug: m[1].toLowerCase(), text: (m[2] ?? "").trim() } : null;
22617
22626
  }
22618
22627
  function useSlashSkillWorkflows({ landing }) {
22619
- const { skills, skillsEnabled } = chunkWA2U4G43_cjs.useWorkflowDefinitions();
22628
+ const { skills, skillsEnabled } = chunkFAD6D5EV_cjs.useWorkflowDefinitions();
22620
22629
  const { commands } = react.useBuiltinCommands();
22621
22630
  const [active, setActive] = react$1.useState(null);
22622
22631
  const open = (workflow, text2) => {
@@ -22675,7 +22684,7 @@ function ConnectedAskField({
22675
22684
  filteredItems,
22676
22685
  isOpen: isSlashMenuOpen,
22677
22686
  canBrowseSkills
22678
- } = chunkVWX36C4Y_cjs.useSlashItems(text2, chunkQJNHVQUQ_cjs.BUILTIN_SKILLS);
22687
+ } = chunkHKZT7K4L_cjs.useSlashItems(text2, chunkQJNHVQUQ_cjs.BUILTIN_SKILLS);
22679
22688
  const slashWorkflows = useSlashSkillWorkflows({ landing: "chat" });
22680
22689
  const insertSlashItem = (item) => {
22681
22690
  if (slashWorkflows.openFor(item)) {
@@ -22775,7 +22784,7 @@ function AddFromAccountsButton({
22775
22784
  className: "gap-2",
22776
22785
  "data-testid": dataTestId,
22777
22786
  children: [
22778
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex items-center gap-1", children: marks.map((m) => /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.VendorLogo, { vendorKey: m.vendorKey, product: m.product, className: "h-4 w-4" }, m.key)) }),
22787
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex items-center gap-1", children: marks.map((m) => /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.VendorLogo, { vendorKey: m.vendorKey, product: m.product, className: "h-4 w-4" }, m.key)) }),
22779
22788
  "Add from accounts"
22780
22789
  ]
22781
22790
  }
@@ -22859,7 +22868,7 @@ function ConnectedUploadDropzone({
22859
22868
  const onFiles = browse(fileInputRef);
22860
22869
  const onFolder = browse(folderInputRef);
22861
22870
  const dropTarget = /* @__PURE__ */ jsxRuntime.jsx(
22862
- chunkKB2FH26M_cjs.UploadDropArea,
22871
+ chunk345BCA6C_cjs.UploadDropArea,
22863
22872
  {
22864
22873
  isActive: dragActive,
22865
22874
  isDisabled: disabled,
@@ -22873,11 +22882,11 @@ function ConnectedUploadDropzone({
22873
22882
  onClick: (e) => {
22874
22883
  if (e.target === e.currentTarget) onFiles();
22875
22884
  },
22876
- actions: compact ? /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.UploadBrowseButtons, { onFiles, onFolder, isDisabled: disabled }) : void 0
22885
+ actions: compact ? /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.UploadBrowseButtons, { onFiles, onFolder, isDisabled: disabled }) : void 0
22877
22886
  }
22878
22887
  );
22879
22888
  const urlDialog = (trigger) => onUrlsSubmit ? /* @__PURE__ */ jsxRuntime.jsx(
22880
- chunkKB2FH26M_cjs.UrlInputDialog,
22889
+ chunk345BCA6C_cjs.UrlInputDialog,
22881
22890
  {
22882
22891
  onUrlsSubmit,
22883
22892
  processing: disabled,
@@ -22890,12 +22899,12 @@ function ConnectedUploadDropzone({
22890
22899
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
22891
22900
  dropTarget,
22892
22901
  compactLeadingAction,
22893
- onUrlsSubmit && /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.UploadSourceSection, { isIsolated: true, className: "flex flex-wrap justify-center gap-2", children: urlDialog(/* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.UploadUrlButton, { isDisabled: disabled, isCompact: true })) })
22902
+ onUrlsSubmit && /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.UploadSourceSection, { isIsolated: true, className: "flex flex-wrap justify-center gap-2", children: urlDialog(/* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.UploadUrlButton, { isDisabled: disabled, isCompact: true })) })
22894
22903
  ] });
22895
22904
  }
22896
22905
  if (!source) {
22897
22906
  return /* @__PURE__ */ jsxRuntime.jsx(
22898
- chunkKB2FH26M_cjs.UploadSourcePicker,
22907
+ chunk345BCA6C_cjs.UploadSourcePicker,
22899
22908
  {
22900
22909
  isDisabled: disabled,
22901
22910
  options: [
@@ -22931,14 +22940,14 @@ function ConnectedUploadDropzone({
22931
22940
  }
22932
22941
  if (source === "computer") {
22933
22942
  return /* @__PURE__ */ jsxRuntime.jsxs(
22934
- chunkKB2FH26M_cjs.UploadSourceSection,
22943
+ chunk345BCA6C_cjs.UploadSourceSection,
22935
22944
  {
22936
22945
  testId: "upload-source-computer",
22937
22946
  className: "flex w-full flex-col gap-3 pointer-coarse:flex-col-reverse",
22938
22947
  children: [
22939
22948
  dropTarget,
22940
22949
  /* @__PURE__ */ jsxRuntime.jsx(
22941
- chunkKB2FH26M_cjs.UploadBrowseButtons,
22950
+ chunk345BCA6C_cjs.UploadBrowseButtons,
22942
22951
  {
22943
22952
  layout: "grid",
22944
22953
  onFiles,
@@ -22951,15 +22960,15 @@ function ConnectedUploadDropzone({
22951
22960
  );
22952
22961
  }
22953
22962
  if (source === "internet" && onUrlsSubmit) {
22954
- return /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.UploadSourceSection, { testId: "upload-source-internet", className: "flex flex-wrap gap-2", children: /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.UploadSourceSection, { isIsolated: true, children: urlDialog(/* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.UploadUrlButton, { isDisabled: disabled })) }) });
22963
+ return /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.UploadSourceSection, { testId: "upload-source-internet", className: "flex flex-wrap gap-2", children: /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.UploadSourceSection, { isIsolated: true, children: urlDialog(/* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.UploadUrlButton, { isDisabled: disabled })) }) });
22955
22964
  }
22956
22965
  if (source === "email" && accounts) {
22957
- return /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.UploadSourceSection, { testId: "upload-source-email", isIsolated: true, children: accounts });
22966
+ return /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.UploadSourceSection, { testId: "upload-source-email", isIsolated: true, children: accounts });
22958
22967
  }
22959
22968
  return null;
22960
22969
  })();
22961
22970
  return /* @__PURE__ */ jsxRuntime.jsxs(
22962
- chunkKB2FH26M_cjs.UploadFrame,
22971
+ chunk345BCA6C_cjs.UploadFrame,
22963
22972
  {
22964
22973
  isCompact: compact,
22965
22974
  isDimmed: disabled || processingMessage !== null,
@@ -23020,7 +23029,7 @@ function EmptyWorkspaceUpload({
23020
23029
  compactLeadingAction: onImportFromEmail && /* @__PURE__ */ jsxRuntime.jsx(AddFromAccountsButton, { onImportFromEmail })
23021
23030
  }
23022
23031
  ),
23023
- /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.PrivacyExplainerModal, {})
23032
+ /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.PrivacyExplainerModal, {})
23024
23033
  ] })
23025
23034
  }
23026
23035
  );
@@ -23127,9 +23136,9 @@ function useDocumentFilters({
23127
23136
  const { data: members = [] } = react.useWorkspaceUsers();
23128
23137
  const user = members.find((m) => m.user.external_id === currentUserId)?.user;
23129
23138
  const offlineIds = react.useOfflineDocumentIds();
23130
- const pendingFolders = chunkGE2O6S44_cjs.usePendingFolders(selectedWorkspaceId);
23131
- const persistedDocumentFilters = chunkGE2O6S44_cjs.useFilesPrefs((state) => state.documentFilters);
23132
- const setPersistedDocumentFilters = chunkGE2O6S44_cjs.useFilesPrefs((state) => state.setDocumentFilters);
23139
+ const pendingFolders = chunkMN622SFR_cjs.usePendingFolders(selectedWorkspaceId);
23140
+ const persistedDocumentFilters = chunkMN622SFR_cjs.useFilesPrefs((state) => state.documentFilters);
23141
+ const setPersistedDocumentFilters = chunkMN622SFR_cjs.useFilesPrefs((state) => state.setDocumentFilters);
23133
23142
  const folderTree = react$1.useMemo(() => {
23134
23143
  const allPaths = /* @__PURE__ */ new Set();
23135
23144
  let hasUnfiled = false;
@@ -23350,7 +23359,7 @@ function useDocumentFilters({
23350
23359
  {
23351
23360
  id: "uploaded_by_me",
23352
23361
  label: "Uploaded by me",
23353
- icon: user ? /* @__PURE__ */ jsxRuntime.jsx(chunk4P553YX2_cjs.UserAvatar, { user, isMe: true }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.User, { className: "h-4 w-4" }),
23362
+ icon: user ? /* @__PURE__ */ jsxRuntime.jsx(chunkWVMOIMDQ_cjs.UserAvatar, { user, isMe: true }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.User, { className: "h-4 w-4" }),
23354
23363
  count: docs.filter((doc) => doc.created_by_ext_id === currentUserId).length
23355
23364
  },
23356
23365
  {
@@ -23471,7 +23480,7 @@ function useDocumentFilters({
23471
23480
  const folderPath = react$1.useMemo(() => {
23472
23481
  for (const [key, state] of documentFilters) {
23473
23482
  if (key.startsWith("folder:") && key !== "folder:none" && state === "include") {
23474
- return chunkKB2FH26M_cjs.parseFolderSegments(key.slice("folder:".length));
23483
+ return chunk345BCA6C_cjs.parseFolderSegments(key.slice("folder:".length));
23475
23484
  }
23476
23485
  }
23477
23486
  return [];
@@ -23480,7 +23489,7 @@ function useDocumentFilters({
23480
23489
  (path) => {
23481
23490
  const next = new Map(documentFilters);
23482
23491
  for (const key of next.keys()) if (key.startsWith("folder:")) next.set(key, null);
23483
- const joined = chunkKB2FH26M_cjs.joinFolderPath(path);
23492
+ const joined = chunk345BCA6C_cjs.joinFolderPath(path);
23484
23493
  if (joined) next.set(`folder:${joined}`, "include");
23485
23494
  setDocumentFilters(next);
23486
23495
  },
@@ -25028,10 +25037,18 @@ function MailOutbox({
25028
25037
  }) })
25029
25038
  ] });
25030
25039
  }
25040
+ function useActiveOutbox() {
25041
+ return react.useOutbox(react.useOfflineMailActive());
25042
+ }
25043
+ function useActiveLocalDrafts(accountId) {
25044
+ return react.useLocalDrafts(react.useOfflineMailActive() ? accountId : void 0);
25045
+ }
25031
25046
  var offlineMailSupport = {
25047
+ useActive: react.useOfflineMailActive,
25032
25048
  outboxRole: react.OUTBOX_FOLDER,
25033
- useLocalDrafts: react.useLocalDrafts,
25034
- useOutbox: react.useOutbox,
25049
+ // The kits call these on every render, in use or not: they read nothing while it is not.
25050
+ useLocalDrafts: useActiveLocalDrafts,
25051
+ useOutbox: useActiveOutbox,
25035
25052
  renderOutbox: ({ accountId, onEdit }) => /* @__PURE__ */ jsxRuntime.jsx(MailOutbox, { accountId, onEdit: (item) => onEdit(item.compose) }),
25036
25053
  renderStatus: () => /* @__PURE__ */ jsxRuntime.jsx(MailOfflineStatus, {}),
25037
25054
  renderSettings: () => /* @__PURE__ */ jsxRuntime.jsx(ConnectedMailOfflineSettings, {}),
@@ -25048,6 +25065,12 @@ var offlineMailSupport = {
25048
25065
  isChangePending: react.hasPendingMailChange,
25049
25066
  isNetworkFailure: react.isNetworkFailure
25050
25067
  };
25068
+
25069
+ // src/connection/mail/useMailOffline.ts
25070
+ function useMailOffline(configured) {
25071
+ const active = configured?.useActive?.() ?? true;
25072
+ return active ? configured ?? void 0 : void 0;
25073
+ }
25051
25074
  var DEFAULT_MAX_BYTES = 15 * 1024 * 1024;
25052
25075
  function ConnectedMailComposer({
25053
25076
  draftId,
@@ -25061,7 +25084,7 @@ function ConnectedMailComposer({
25061
25084
  replyTo,
25062
25085
  ...rest
25063
25086
  }) {
25064
- const offline = offlineProp ?? void 0;
25087
+ const offline = useMailOffline(offlineProp);
25065
25088
  const { client } = react.useMailClient();
25066
25089
  const isOnline = react.useMailOnline();
25067
25090
  const policy = react.useMailPolicy();
@@ -25341,7 +25364,8 @@ function ConnectedMailbox({
25341
25364
  initialMessageId = null
25342
25365
  }) {
25343
25366
  const { notify: notify17, openCalendar } = chunkUIXY4HKM_cjs.useBlocksEnvironment();
25344
- const offline = offlineProp ?? void 0;
25367
+ const configuredOffline = offlineProp ?? void 0;
25368
+ const offline = useMailOffline(configuredOffline);
25345
25369
  const signedInUser = react.useArbiSession().user;
25346
25370
  const user = userProp === void 0 ? signedInUser : userProp;
25347
25371
  const personLabel = useMailPersonLabel();
@@ -25396,7 +25420,8 @@ function ConnectedMailbox({
25396
25420
  if (unlock.data) void cache.refreshFolders();
25397
25421
  }, [unlock.data, cache]);
25398
25422
  const folders = react.useMailFolders(account, { enabled: ready });
25399
- const outbox = offline?.useOutbox() ?? NO_OUTBOX;
25423
+ const deviceOutbox = configuredOffline?.useOutbox();
25424
+ const outbox = offline && deviceOutbox || NO_OUTBOX;
25400
25425
  const outboxRole = offline?.outboxRole;
25401
25426
  const waitingInOutbox = outbox.filter(
25402
25427
  (item) => item.account.id === account?.id && item.status !== "sent"
@@ -25414,7 +25439,8 @@ function ConnectedMailbox({
25414
25439
  enabled: ready && !deviceFolder,
25415
25440
  refetchInterval: 6e4
25416
25441
  });
25417
- const localDrafts = offline?.useLocalDrafts(account?.id) ?? NO_DRAFTS;
25442
+ const deviceDrafts = configuredOffline?.useLocalDrafts(account?.id);
25443
+ const localDrafts = offline && deviceDrafts || NO_DRAFTS;
25418
25444
  const draftsFolderId = folders.data?.find((f) => f.role === "drafts")?.id;
25419
25445
  const drafts = react.useMailMessages(account, draftsFolderId, "", null, {
25420
25446
  enabled: ready && !!compose
@@ -25638,7 +25664,7 @@ function ConnectedMailbox({
25638
25664
  onTabChange: () => {
25639
25665
  },
25640
25666
  compactBreakpoint: 360,
25641
- firstTabContent: account ? /* @__PURE__ */ jsxRuntime.jsxs(chunkKB2FH26M_cjs.FilesFilterBar, { children: [
25667
+ firstTabContent: account ? /* @__PURE__ */ jsxRuntime.jsxs(chunk345BCA6C_cjs.FilesFilterBar, { children: [
25642
25668
  /* @__PURE__ */ jsxRuntime.jsx(
25643
25669
  chunk6UZC4XVV_cjs.FilterInput,
25644
25670
  {
@@ -25673,7 +25699,7 @@ function ConnectedMailbox({
25673
25699
  }
25674
25700
  ),
25675
25701
  folderList && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex shrink-0 items-center gap-2", children: /* @__PURE__ */ jsxRuntime.jsx(
25676
- chunkKB2FH26M_cjs.FolderFilterButton,
25702
+ chunk345BCA6C_cjs.FolderFilterButton,
25677
25703
  {
25678
25704
  label: folderList.find((f) => f.id === folderId)?.name ?? "Folders",
25679
25705
  isActive: false,
@@ -25681,7 +25707,7 @@ function ConnectedMailbox({
25681
25707
  onOpenChange: setFolderMenuOpen,
25682
25708
  testId: "mail-folder-button",
25683
25709
  children: folderList.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
25684
- chunkKB2FH26M_cjs.FolderPickerRow,
25710
+ chunk345BCA6C_cjs.FolderPickerRow,
25685
25711
  {
25686
25712
  label: item.name,
25687
25713
  count: item.unread > 0 ? item.unread : void 0,
@@ -25975,7 +26001,7 @@ function ConnectedMailMessage({
25975
26001
  onReplyWithArbi,
25976
26002
  offline: offlineProp = offlineMailSupport
25977
26003
  }) {
25978
- const offline = offlineProp ?? void 0;
26004
+ const offline = useMailOffline(offlineProp);
25979
26005
  const { client } = react.useMailClient();
25980
26006
  const isOnline = react.useMailOnline();
25981
26007
  const cache = react.useMailCache();
@@ -26208,7 +26234,7 @@ function ConnectedSecureMailClaimPage({
26208
26234
  }) {
26209
26235
  const authenticated = react.useArbiSession().status === "signed-in";
26210
26236
  const { openMail } = chunkUIXY4HKM_cjs.useBlocksEnvironment();
26211
- const { loading } = chunkVWX36C4Y_cjs.useAuthPages();
26237
+ const { loading } = chunkHKZT7K4L_cjs.useAuthPages();
26212
26238
  const claim = react.useClaimSecureMail();
26213
26239
  const [, setFirstLoginWorkspaces] = react.useTransientView(FIRST_LOGIN_WORKSPACES_VIEW, null);
26214
26240
  const [failure, setFailure] = react$1.useState(null);
@@ -29394,7 +29420,7 @@ function ProcessingSettingsFooter({
29394
29420
  [configField]
29395
29421
  );
29396
29422
  return /* @__PURE__ */ jsxRuntime.jsx(
29397
- chunkKB2FH26M_cjs.UploadFooterBar,
29423
+ chunk345BCA6C_cjs.UploadFooterBar,
29398
29424
  {
29399
29425
  skipDuplicates,
29400
29426
  onSkipDuplicatesChange: (value) => handleConfigChange("Parser", "SKIP_DUPLICATES", value),
@@ -29403,7 +29429,7 @@ function ProcessingSettingsFooter({
29403
29429
  autoRenameInstruction,
29404
29430
  onAutoRenameInstructionChange: (value) => handleConfigChange("DoctagLLM", "AUTO_RENAME_INSTRUCTION", value),
29405
29431
  shareToggle: /* @__PURE__ */ jsxRuntime.jsx(
29406
- chunkKB2FH26M_cjs.ShareToggle,
29432
+ chunk345BCA6C_cjs.ShareToggle,
29407
29433
  {
29408
29434
  isVisible: isShared,
29409
29435
  onToggle: onSharedChange,
@@ -29580,7 +29606,7 @@ ${summary}`,
29580
29606
  }
29581
29607
  );
29582
29608
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-0 flex-1 flex-col", "data-testid": "upload-documents", children: [
29583
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-h-0 flex-1 overflow-y-auto pb-2", children: uploading === null ? /* @__PURE__ */ jsxRuntime.jsxs(chunkKB2FH26M_cjs.UploadContainer, { className: "w-full px-4 pb-4 pt-2 sm:px-6", children: [
29609
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-h-0 flex-1 overflow-y-auto pb-2", children: uploading === null ? /* @__PURE__ */ jsxRuntime.jsxs(chunk345BCA6C_cjs.UploadContainer, { className: "w-full px-4 pb-4 pt-2 sm:px-6", children: [
29584
29610
  files.length === 0 && /* @__PURE__ */ jsxRuntime.jsx(
29585
29611
  ConnectedUploadDropzone,
29586
29612
  {
@@ -29596,7 +29622,7 @@ ${summary}`,
29596
29622
  }
29597
29623
  ),
29598
29624
  /* @__PURE__ */ jsxRuntime.jsx(
29599
- chunkKB2FH26M_cjs.SelectedFilesList,
29625
+ chunk345BCA6C_cjs.SelectedFilesList,
29600
29626
  {
29601
29627
  renderFileIcon,
29602
29628
  files,
@@ -29605,10 +29631,10 @@ ${summary}`,
29605
29631
  formatFileSize: formatFileSize4
29606
29632
  }
29607
29633
  ),
29608
- /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.RejectedFilesList, { files: refused, onClear: () => setRefused([]) }),
29609
- error && /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.UploadErrorMessage, { message: error })
29610
- ] }) : /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.UploadContainer, { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ jsxRuntime.jsx(
29611
- chunkKB2FH26M_cjs.UploadProgress,
29634
+ /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.RejectedFilesList, { files: refused, onClear: () => setRefused([]) }),
29635
+ error && /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.UploadErrorMessage, { message: error })
29636
+ ] }) : /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.UploadContainer, { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ jsxRuntime.jsx(
29637
+ chunk345BCA6C_cjs.UploadProgress,
29612
29638
  {
29613
29639
  fileCount: count2,
29614
29640
  entityLabel: plural5(count2),
@@ -29748,7 +29774,7 @@ var PROVIDER_FAMILIES = [
29748
29774
  { key: "google", label: "Google", vendors: ["gmail"] }
29749
29775
  ];
29750
29776
  function VendorGlyph({ catalog }) {
29751
- return /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.VendorLogo, { vendorKey: catalog.vendor_key, className: "h-7 w-7" });
29777
+ return /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.VendorLogo, { vendorKey: catalog.vendor_key, className: "h-7 w-7" });
29752
29778
  }
29753
29779
  function mailboxProductName(catalog) {
29754
29780
  if (catalog.vendor_key === "microsoft") return "Outlook";
@@ -29815,7 +29841,7 @@ function EmailProviderRow({
29815
29841
  const emailNoun = (n) => n === 1 ? "email" : "emails";
29816
29842
  const syncedCount = thisSync?.synced_count ?? 0;
29817
29843
  return /* @__PURE__ */ jsxRuntime.jsxs(
29818
- chunkKB2FH26M_cjs.ImportRow,
29844
+ chunk345BCA6C_cjs.ImportRow,
29819
29845
  {
29820
29846
  testId: `email-provider-row-${catalog.vendor_key}`,
29821
29847
  logo: /* @__PURE__ */ jsxRuntime.jsx(VendorGlyph, { catalog }),
@@ -29824,7 +29850,7 @@ function EmailProviderRow({
29824
29850
  // Connecting AND reconnecting are owned by the family header, so a
29825
29851
  // not-connected or needs-reconnect row shows no button of its own.
29826
29852
  !isConnected || needsReconnect ? null : /* @__PURE__ */ jsxRuntime.jsx(
29827
- chunkKB2FH26M_cjs.ImportRunActions,
29853
+ chunk345BCA6C_cjs.ImportRunActions,
29828
29854
  {
29829
29855
  isRunning: running,
29830
29856
  isStopping: cancelSync.isPending,
@@ -29839,10 +29865,10 @@ function EmailProviderRow({
29839
29865
  ),
29840
29866
  children: [
29841
29867
  isConnected && !needsReconnect && !running && /* @__PURE__ */ jsxRuntime.jsxs(
29842
- chunkKB2FH26M_cjs.ImportSummary,
29868
+ chunk345BCA6C_cjs.ImportSummary,
29843
29869
  {
29844
- aside: /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.ImportAside, { children: thisSync && thisSync.folders.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
29845
- chunkKB2FH26M_cjs.FolderSummary,
29870
+ aside: /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.ImportAside, { children: thisSync && thisSync.folders.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
29871
+ chunk345BCA6C_cjs.FolderSummary,
29846
29872
  {
29847
29873
  names: thisSync.folders.map(
29848
29874
  (id) => mailboxFolders?.find((f) => f.id === id)?.name
@@ -29865,7 +29891,7 @@ function EmailProviderRow({
29865
29891
  }
29866
29892
  ),
29867
29893
  running && /* @__PURE__ */ jsxRuntime.jsx(
29868
- chunkKB2FH26M_cjs.ImportProgress,
29894
+ chunk345BCA6C_cjs.ImportProgress,
29869
29895
  {
29870
29896
  processed: progress?.processed ?? 0,
29871
29897
  total: progress?.total,
@@ -29982,9 +30008,9 @@ function EmailImportPanel({
29982
30008
  return { family, entries, extra, identity, connectVendor, connected, needsReconnect };
29983
30009
  }).filter((g) => g.entries.length > 0 || g.extra);
29984
30010
  if (groups.length === 0) return null;
29985
- return /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.ImportPanel, { "data-testid": "email-import-panel", children: groups.map(
30011
+ return /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.ImportPanel, { "data-testid": "email-import-panel", children: groups.map(
29986
30012
  ({ family, entries, extra, identity, connectVendor, connected, needsReconnect }) => /* @__PURE__ */ jsxRuntime.jsx(
29987
- chunkKB2FH26M_cjs.ImportFamilySection,
30013
+ chunk345BCA6C_cjs.ImportFamilySection,
29988
30014
  {
29989
30015
  label: family.label,
29990
30016
  identity,
@@ -29993,7 +30019,7 @@ function EmailImportPanel({
29993
30019
  onAction: () => void (!connected ? connectFamily(connectVendor) : needsReconnect ? reconnectFamily(connectVendor) : disconnectFamily(family, connectVendor, identity)),
29994
30020
  testId: `import-family-${family.key}`,
29995
30021
  actionButton: !connected ? { testId: `import-family-connect-${family.key}` } : needsReconnect ? { testId: `import-family-reconnect-${family.key}` } : { testId: `import-family-disconnect-${family.key}` },
29996
- children: /* @__PURE__ */ jsxRuntime.jsxs(chunkKB2FH26M_cjs.ImportList, { children: [
30022
+ children: /* @__PURE__ */ jsxRuntime.jsxs(chunk345BCA6C_cjs.ImportList, { children: [
29997
30023
  entries.map((entry) => /* @__PURE__ */ jsxRuntime.jsx(
29998
30024
  EmailProviderRow,
29999
30025
  {
@@ -30077,7 +30103,7 @@ function driveProduct(vendorKey) {
30077
30103
  }
30078
30104
  function VendorGlyph2({ catalog }) {
30079
30105
  return /* @__PURE__ */ jsxRuntime.jsx(
30080
- chunkKB2FH26M_cjs.VendorLogo,
30106
+ chunk345BCA6C_cjs.VendorLogo,
30081
30107
  {
30082
30108
  vendorKey: catalog.vendor_key,
30083
30109
  product: driveProduct(catalog.vendor_key).glyph,
@@ -30200,7 +30226,7 @@ function OneDriveProviderRow({
30200
30226
  const driveNoun = (n) => n === 1 ? "document" : "documents";
30201
30227
  const showRunActions = isConnected && !needsReconnect;
30202
30228
  const reconnectAction = ownsAuth && needsReconnect ? /* @__PURE__ */ jsxRuntime.jsx(
30203
- chunkKB2FH26M_cjs.ImportActionButton,
30229
+ chunk345BCA6C_cjs.ImportActionButton,
30204
30230
  {
30205
30231
  onClick: () => void reconnectSelf(),
30206
30232
  disabled: reauthPending,
@@ -30209,7 +30235,7 @@ function OneDriveProviderRow({
30209
30235
  }
30210
30236
  ) : null;
30211
30237
  return /* @__PURE__ */ jsxRuntime.jsxs(
30212
- chunkKB2FH26M_cjs.ImportRow,
30238
+ chunk345BCA6C_cjs.ImportRow,
30213
30239
  {
30214
30240
  testId: `onedrive-provider-row-${catalog.vendor_key}`,
30215
30241
  logo: /* @__PURE__ */ jsxRuntime.jsx(VendorGlyph2, { catalog }),
@@ -30221,7 +30247,7 @@ function OneDriveProviderRow({
30221
30247
  // Until folders are configured here (or when nothing new is pending), Import now
30222
30248
  // stays disabled; the gear opens the folder picker.
30223
30249
  /* @__PURE__ */ jsxRuntime.jsx(
30224
- chunkKB2FH26M_cjs.ImportRunActions,
30250
+ chunk345BCA6C_cjs.ImportRunActions,
30225
30251
  {
30226
30252
  isRunning: running,
30227
30253
  isStopping: cancelSync.isPending,
@@ -30240,16 +30266,16 @@ function OneDriveProviderRow({
30240
30266
  ) : reconnectAction
30241
30267
  ),
30242
30268
  children: [
30243
- ownsAuth && needsReconnect && /* @__PURE__ */ jsxRuntime.jsxs(chunkKB2FH26M_cjs.ImportHint, { "data-testid": `onedrive-reconnect-hint-${catalog.vendor_key}`, children: [
30269
+ ownsAuth && needsReconnect && /* @__PURE__ */ jsxRuntime.jsxs(chunk345BCA6C_cjs.ImportHint, { "data-testid": `onedrive-reconnect-hint-${catalog.vendor_key}`, children: [
30244
30270
  "Couldn\u2019t reach SharePoint. Click ",
30245
30271
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium", children: "Reconnect" }),
30246
30272
  " \u2014 if it keeps happening, log out and back in to refresh the connection."
30247
30273
  ] }),
30248
30274
  configuredHere && !needsReconnect && !running && /* @__PURE__ */ jsxRuntime.jsxs(
30249
- chunkKB2FH26M_cjs.ImportSummary,
30275
+ chunk345BCA6C_cjs.ImportSummary,
30250
30276
  {
30251
30277
  className: "mt-2",
30252
- aside: typeof pendingCount === "number" ? /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_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,
30278
+ aside: typeof pendingCount === "number" ? /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_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,
30253
30279
  children: [
30254
30280
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
30255
30281
  "Syncing ",
@@ -30277,7 +30303,7 @@ function OneDriveProviderRow({
30277
30303
  }
30278
30304
  ),
30279
30305
  running && /* @__PURE__ */ jsxRuntime.jsx(
30280
- chunkKB2FH26M_cjs.ImportProgress,
30306
+ chunk345BCA6C_cjs.ImportProgress,
30281
30307
  {
30282
30308
  processed: progress?.processed ?? 0,
30283
30309
  total: progress?.total,
@@ -30341,13 +30367,13 @@ function SharePointEnableRow({
30341
30367
  }
30342
30368
  };
30343
30369
  return /* @__PURE__ */ jsxRuntime.jsx(
30344
- chunkKB2FH26M_cjs.ImportRow,
30370
+ chunk345BCA6C_cjs.ImportRow,
30345
30371
  {
30346
30372
  testId: `onedrive-provider-row-${catalog.vendor_key}`,
30347
- logo: /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.VendorLogo, { vendorKey: catalog.vendor_key, product: product.glyph, className: "h-7 w-7" }),
30373
+ logo: /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.VendorLogo, { vendorKey: catalog.vendor_key, product: product.glyph, className: "h-7 w-7" }),
30348
30374
  name: product.name,
30349
30375
  actions: /* @__PURE__ */ jsxRuntime.jsx(
30350
- chunkKB2FH26M_cjs.ImportActionButton,
30376
+ chunk345BCA6C_cjs.ImportActionButton,
30351
30377
  {
30352
30378
  onClick: () => void enable(),
30353
30379
  disabled: pending,
@@ -30355,7 +30381,7 @@ function SharePointEnableRow({
30355
30381
  children: pending ? "Enabling\u2026" : `Enable ${product.name}`
30356
30382
  }
30357
30383
  ),
30358
- children: sharePointAdminUrl && /* @__PURE__ */ jsxRuntime.jsxs(chunkKB2FH26M_cjs.ImportHint, { children: [
30384
+ children: sharePointAdminUrl && /* @__PURE__ */ jsxRuntime.jsxs(chunk345BCA6C_cjs.ImportHint, { children: [
30359
30385
  "Does your organization require admin approval?",
30360
30386
  " ",
30361
30387
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -30404,11 +30430,11 @@ function DriveImportPanel({
30404
30430
  }
30405
30431
  const product = driveProduct(entry.vendor_key);
30406
30432
  return /* @__PURE__ */ jsxRuntime.jsx(
30407
- chunkKB2FH26M_cjs.ImportRow,
30433
+ chunk345BCA6C_cjs.ImportRow,
30408
30434
  {
30409
30435
  testId: `onedrive-provider-row-${entry.vendor_key}`,
30410
30436
  logo: /* @__PURE__ */ jsxRuntime.jsx(
30411
- chunkKB2FH26M_cjs.VendorLogo,
30437
+ chunk345BCA6C_cjs.VendorLogo,
30412
30438
  {
30413
30439
  vendorKey: entry.vendor_key,
30414
30440
  product: product.glyph,
@@ -30433,7 +30459,7 @@ function DriveImportPanel({
30433
30459
  );
30434
30460
  }).filter(Boolean);
30435
30461
  if (rows.length === 0) return null;
30436
- return /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.ImportList, { "data-testid": "onedrive-import-panel", children: rows });
30462
+ return /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.ImportList, { "data-testid": "onedrive-import-panel", children: rows });
30437
30463
  }
30438
30464
  function useHasAccountsImport() {
30439
30465
  const isVendorVisible = react.useConnectorVendorVisibility();
@@ -30634,7 +30660,7 @@ var CheckboxCellRenderer = react$1.memo(function CheckboxCellRenderer2({
30634
30660
  if (!params.data) return null;
30635
30661
  const isChecked = params.value === true;
30636
30662
  return /* @__PURE__ */ jsxRuntime.jsx(
30637
- chunkKB2FH26M_cjs.CheckboxCell,
30663
+ chunk345BCA6C_cjs.CheckboxCell,
30638
30664
  {
30639
30665
  isChecked,
30640
30666
  color: tagColor,
@@ -30657,13 +30683,13 @@ var TagHeaderComponent = react$1.memo(function TagHeaderComponent2({
30657
30683
  return () => params.column.removeEventListener("sortChanged", updateSort);
30658
30684
  }, [params.column]);
30659
30685
  return /* @__PURE__ */ jsxRuntime.jsx(
30660
- chunkKB2FH26M_cjs.TagColumnHeader,
30686
+ chunk345BCA6C_cjs.TagColumnHeader,
30661
30687
  {
30662
30688
  isCentered: isCheckbox,
30663
30689
  sort,
30664
30690
  onSort: params.enableSorting ? (additive) => params.progressSort(additive) : void 0,
30665
- filter: /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.FilterButton, { params, colId: tag.external_id }),
30666
- label: /* @__PURE__ */ jsxRuntime.jsx(chunkDIE5ENQC_cjs.ConnectedTagEntity, { tag, size: "sm" })
30691
+ filter: /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.FilterButton, { params, colId: tag.external_id }),
30692
+ label: /* @__PURE__ */ jsxRuntime.jsx(chunk6BPA5O3I_cjs.ConnectedTagEntity, { tag, size: "sm" })
30667
30693
  }
30668
30694
  );
30669
30695
  });
@@ -30751,7 +30777,7 @@ function createTagColumn({
30751
30777
  }
30752
30778
  ) : void 0,
30753
30779
  // Use default rendering for text/number/select - shows value with truncation
30754
- cellEditor: isSelect ? chunkKB2FH26M_cjs.MultiSelectCellEditor : isText ? "agLargeTextCellEditor" : void 0,
30780
+ cellEditor: isSelect ? chunk345BCA6C_cjs.MultiSelectCellEditor : isText ? "agLargeTextCellEditor" : void 0,
30755
30781
  cellEditorParams: isSelect ? createMultiSelectCellEditorParams(tag.tag_type.options || []) : isText ? { rows: 8, cols: 50 } : void 0,
30756
30782
  cellEditorPopup: isText || isSelect,
30757
30783
  // Text and Select tags use popup editor for better UX
@@ -30868,14 +30894,14 @@ function createDocumentColumns({
30868
30894
  onToggleShared,
30869
30895
  notify: notify17
30870
30896
  }) {
30871
- const isRowEditableByOwner = (params) => chunkKB2FH26M_cjs.canChangeVisibility(params.data, currentUserExtId);
30872
- const isRowEditableByMember = (params) => chunkKB2FH26M_cjs.canEditDocumentFields(params.data, currentUserExtId, workspaceRole);
30897
+ const isRowEditableByOwner = (params) => chunk345BCA6C_cjs.canChangeVisibility(params.data, currentUserExtId);
30898
+ const isRowEditableByMember = (params) => chunk345BCA6C_cjs.canEditDocumentFields(params.data, currentUserExtId, workspaceRole);
30873
30899
  const documentNameCellRenderer = (params) => {
30874
30900
  const doc = params.data;
30875
30901
  if (!doc) return null;
30876
30902
  const context = params.context;
30877
30903
  return /* @__PURE__ */ jsxRuntime.jsx(
30878
- chunk4P553YX2_cjs.DocumentNameCell,
30904
+ chunkWVMOIMDQ_cjs.DocumentNameCell,
30879
30905
  {
30880
30906
  doc,
30881
30907
  canEdit: isRowEditableByMember(params),
@@ -30894,7 +30920,7 @@ function createDocumentColumns({
30894
30920
  if (!params.data) return null;
30895
30921
  const isOwner = isRowEditableByOwner(params);
30896
30922
  return /* @__PURE__ */ jsxRuntime.jsx(
30897
- chunk4P553YX2_cjs.DocumentSharedCell,
30923
+ chunkWVMOIMDQ_cjs.DocumentSharedCell,
30898
30924
  {
30899
30925
  document: params.data,
30900
30926
  disabled: !isOwner,
@@ -30907,7 +30933,7 @@ function createDocumentColumns({
30907
30933
  if (!params.data) return null;
30908
30934
  const context = params.context;
30909
30935
  return /* @__PURE__ */ jsxRuntime.jsx(
30910
- chunk4P553YX2_cjs.StatusCell,
30936
+ chunkWVMOIMDQ_cjs.StatusCell,
30911
30937
  {
30912
30938
  doc: params.data,
30913
30939
  onStatusClick,
@@ -30920,7 +30946,7 @@ function createDocumentColumns({
30920
30946
  if (!params.data) return null;
30921
30947
  const context = params.context;
30922
30948
  return /* @__PURE__ */ jsxRuntime.jsx(
30923
- chunk4P553YX2_cjs.DocumentLabelsCell,
30949
+ chunkWVMOIMDQ_cjs.DocumentLabelsCell,
30924
30950
  {
30925
30951
  doc: params.data,
30926
30952
  labels: checkboxTags,
@@ -30939,7 +30965,7 @@ function createDocumentColumns({
30939
30965
  const related = context?.getRelatedDocs?.().get(params.data.external_id);
30940
30966
  if (!related || react.getRelatedTotal(related) === 0) return null;
30941
30967
  return /* @__PURE__ */ jsxRuntime.jsx(
30942
- chunk4P553YX2_cjs.RelatedDocumentsCell,
30968
+ chunkWVMOIMDQ_cjs.RelatedDocumentsCell,
30943
30969
  {
30944
30970
  currentDoc: params.data,
30945
30971
  related,
@@ -30954,7 +30980,7 @@ function createDocumentColumns({
30954
30980
  if (!params.data) return null;
30955
30981
  const context = params.context;
30956
30982
  return /* @__PURE__ */ jsxRuntime.jsx(
30957
- chunk4P553YX2_cjs.DocumentFolderCell,
30983
+ chunkWVMOIMDQ_cjs.DocumentFolderCell,
30958
30984
  {
30959
30985
  document: params.data,
30960
30986
  isEditable: isRowEditableByMember(params),
@@ -31074,7 +31100,7 @@ function createDocumentColumns({
31074
31100
  singleClickEdit: true,
31075
31101
  cellEditor: "agSelectCellEditor",
31076
31102
  cellEditorParams: {
31077
- values: [...chunkKB2FH26M_cjs.DOCUMENT_TYPE_OPTIONS]
31103
+ values: [...chunk345BCA6C_cjs.DOCUMENT_TYPE_OPTIONS]
31078
31104
  },
31079
31105
  context: { icon: lucideReact.Sparkles },
31080
31106
  valueGetter: (params) => ui.getDocumentNature(params.data) || "",
@@ -31380,7 +31406,7 @@ function createDocumentColumns({
31380
31406
  const context = params.context;
31381
31407
  const creator = context?.getWorkspaceUsers?.().find((u) => u.external_id === params.data.created_by_ext_id);
31382
31408
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center h-full", children: /* @__PURE__ */ jsxRuntime.jsx(
31383
- chunk4P553YX2_cjs.UserAvatar,
31409
+ chunkWVMOIMDQ_cjs.UserAvatar,
31384
31410
  {
31385
31411
  user: creator,
31386
31412
  isMe: !!creator && creator.external_id === context?.getCurrentUserId?.(),
@@ -31612,7 +31638,7 @@ function useDocumentTable({
31612
31638
  }
31613
31639
  const stabilizedTagIds = prevTagIdsRef.current;
31614
31640
  const stabilizedTagNames = prevTagNamesRef.current;
31615
- const defaultVisibleColumns = react$1.useMemo(() => [...chunkKB2FH26M_cjs.DEFAULT_DOCUMENT_COLUMNS], []);
31641
+ const defaultVisibleColumns = react$1.useMemo(() => [...chunk345BCA6C_cjs.DEFAULT_DOCUMENT_COLUMNS], []);
31616
31642
  const toggleShared = react$1.useCallback((docId, shared) => {
31617
31643
  updateDocRef.current.mutate({ documents: [{ external_id: docId, shared }] });
31618
31644
  }, []);
@@ -31877,10 +31903,10 @@ function ConnectedFilesBulkActions({
31877
31903
  const bulk = useDocumentBulkActions(selectedDocuments);
31878
31904
  const count2 = selectedDocuments.length;
31879
31905
  const noun = ui.getEntityLabel("DOCUMENT", count2 === 1 ? "SINGULAR" : "PLURAL");
31880
- const shareState = chunkKB2FH26M_cjs.shareStateOf(bulk.freshSelectedDocuments);
31906
+ const shareState = chunk345BCA6C_cjs.shareStateOf(bulk.freshSelectedDocuments);
31881
31907
  const handleToggleShare = async (shouldShare) => {
31882
31908
  if (shouldShare) return bulk.share();
31883
- const confirmed = await chunkKB2FH26M_cjs.confirmHideFromMembers(
31909
+ const confirmed = await chunk345BCA6C_cjs.confirmHideFromMembers(
31884
31910
  confirm,
31885
31911
  bulk.freshSelectedDocuments.length,
31886
31912
  members
@@ -31897,7 +31923,7 @@ function ConnectedFilesBulkActions({
31897
31923
  const { openDocumentsChat, openFieldsManager } = actions;
31898
31924
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
31899
31925
  /* @__PURE__ */ jsxRuntime.jsx(
31900
- chunkKB2FH26M_cjs.BulkActionsBar,
31926
+ chunk345BCA6C_cjs.BulkActionsBar,
31901
31927
  {
31902
31928
  count: count2,
31903
31929
  onClear: onClearSelection,
@@ -31923,7 +31949,7 @@ function ConnectedFilesBulkActions({
31923
31949
  onDelete: () => setConfirming("delete"),
31924
31950
  shareState,
31925
31951
  shareLabels: shareState === "shared" ? { share: "Make private" } : void 0,
31926
- shareTooltip: chunkKB2FH26M_cjs.shareTooltipFor(shareState, bulk.freshSelectedDocuments.length === 1),
31952
+ shareTooltip: chunk345BCA6C_cjs.shareTooltipFor(shareState, bulk.freshSelectedDocuments.length === 1),
31927
31953
  onToggleShare: (shouldShare) => void handleToggleShare(shouldShare)
31928
31954
  }
31929
31955
  ),
@@ -31938,7 +31964,7 @@ function ConnectedFilesBulkActions({
31938
31964
  onClearSelection();
31939
31965
  },
31940
31966
  title: `Delete ${count2} ${noun}`,
31941
- description: `Delete ${namedTargets(selectedDocuments)}? ${count2 === 1 ? chunkKB2FH26M_cjs.RECENTLY_DELETED_HINT : chunkKB2FH26M_cjs.RECENTLY_DELETED_HINT_PLURAL}`,
31967
+ description: `Delete ${namedTargets(selectedDocuments)}? ${count2 === 1 ? chunk345BCA6C_cjs.RECENTLY_DELETED_HINT : chunk345BCA6C_cjs.RECENTLY_DELETED_HINT_PLURAL}`,
31942
31968
  confirmText: "Delete",
31943
31969
  variant: "destructive"
31944
31970
  }
@@ -32189,7 +32215,7 @@ function useAiReviewLiveUpdates() {
32189
32215
  if (message.batch_type !== "doctag_generate") return;
32190
32216
  const docIds = message.doc_ext_ids ?? [];
32191
32217
  if (!docIds.length) return;
32192
- void refreshDocuments(docIds).then(() => chunkGE2O6S44_cjs.useAiReviewStore.getState().markFinished(docIds));
32218
+ void refreshDocuments(docIds).then(() => chunkMN622SFR_cjs.useAiReviewStore.getState().markFinished(docIds));
32193
32219
  const { clearTask } = react.useArbiWsStore.getState();
32194
32220
  for (const id of docIds) clearTask(id);
32195
32221
  });
@@ -32224,7 +32250,7 @@ function useBatchCompleteToasts() {
32224
32250
  timer.current = null;
32225
32251
  const runs = pending.current;
32226
32252
  pending.current = /* @__PURE__ */ new Map();
32227
- const hasReview = !!chunkGE2O6S44_cjs.useAiReviewStore.getState().run;
32253
+ const hasReview = !!chunkMN622SFR_cjs.useAiReviewStore.getState().run;
32228
32254
  for (const [id, entry] of runs) {
32229
32255
  const n = entry.docIds.size;
32230
32256
  notify17(
@@ -32237,7 +32263,7 @@ function useBatchCompleteToasts() {
32237
32263
  ...hasReview && {
32238
32264
  action: {
32239
32265
  label: "View results",
32240
- onClick: () => chunkGE2O6S44_cjs.useAiReviewStore.getState().setOpen(true)
32266
+ onClick: () => chunkMN622SFR_cjs.useAiReviewStore.getState().setOpen(true)
32241
32267
  }
32242
32268
  }
32243
32269
  }
@@ -32284,12 +32310,12 @@ function ConnectedMoveToFolder({
32284
32310
  setIsSubmitting(true);
32285
32311
  try {
32286
32312
  if (folderToMove) {
32287
- const docsInFolder = chunkKB2FH26M_cjs.collectFolderDocs(allDocs, folderToMove.path);
32313
+ const docsInFolder = chunk345BCA6C_cjs.collectFolderDocs(allDocs, folderToMove.path);
32288
32314
  if (docsInFolder.length === 0) {
32289
32315
  onClose();
32290
32316
  return;
32291
32317
  }
32292
- const newPrefixSegments = targetFolder ? [...chunkKB2FH26M_cjs.parseFolderSegments(targetFolder), folderToMove.name] : [folderToMove.name];
32318
+ const newPrefixSegments = targetFolder ? [...chunk345BCA6C_cjs.parseFolderSegments(targetFolder), folderToMove.name] : [folderToMove.name];
32293
32319
  await renameFolder(docsInFolder, folderToMove.path, newPrefixSegments);
32294
32320
  const dest = targetFolder ? `"${targetFolder}/${folderToMove.name}"` : `"${folderToMove.name}" (root)`;
32295
32321
  notify17(`Moved folder to ${dest}`, "success");
@@ -32314,9 +32340,9 @@ function ConnectedMoveToFolder({
32314
32340
  }
32315
32341
  };
32316
32342
  const isFolderMode = !!folderToMove;
32317
- const folders = chunk4P553YX2_cjs.useDocumentFolders(allDocs, targetFolder);
32343
+ const folders = chunkWVMOIMDQ_cjs.useDocumentFolders(allDocs, targetFolder);
32318
32344
  return /* @__PURE__ */ jsxRuntime.jsx(
32319
- chunkKB2FH26M_cjs.MoveToFolderDialog,
32345
+ chunk345BCA6C_cjs.MoveToFolderDialog,
32320
32346
  {
32321
32347
  open: isOpen,
32322
32348
  onClose,
@@ -32326,7 +32352,7 @@ function ConnectedMoveToFolder({
32326
32352
  isSubmitting,
32327
32353
  onConfirm: handleMove,
32328
32354
  children: /* @__PURE__ */ jsxRuntime.jsx(
32329
- chunkKB2FH26M_cjs.FolderCommandList,
32355
+ chunk345BCA6C_cjs.FolderCommandList,
32330
32356
  {
32331
32357
  folders,
32332
32358
  value: targetFolder,
@@ -32554,7 +32580,7 @@ function ConnectedBulkTagEditor({
32554
32580
  const isClearing = change?.action === "remove";
32555
32581
  return {
32556
32582
  id: tag.external_id,
32557
- badge: /* @__PURE__ */ jsxRuntime.jsx(chunkDIE5ENQC_cjs.ConnectedTagEntity, { tag, size: "md" }),
32583
+ badge: /* @__PURE__ */ jsxRuntime.jsx(chunk6BPA5O3I_cjs.ConnectedTagEntity, { tag, size: "md" }),
32558
32584
  type: tag.tag_type.type,
32559
32585
  color: ui.getEntityColor(tag.external_id, "medium"),
32560
32586
  options: tag.tag_type.type === "select" ? tag.tag_type.options : void 0,
@@ -32586,7 +32612,7 @@ function ConnectedBulkTagEditor({
32586
32612
  const documentsLabel = ui.getEntityLabel("DOCUMENT", "PLURAL").toLowerCase();
32587
32613
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
32588
32614
  /* @__PURE__ */ jsxRuntime.jsx(
32589
- chunkKB2FH26M_cjs.BulkTagEditorDialog,
32615
+ chunk345BCA6C_cjs.BulkTagEditorDialog,
32590
32616
  {
32591
32617
  open,
32592
32618
  onClose,
@@ -32644,7 +32670,7 @@ function ConnectedBulkTagEditor({
32644
32670
  }
32645
32671
  ),
32646
32672
  /* @__PURE__ */ jsxRuntime.jsx(
32647
- chunkKB2FH26M_cjs.BulkReplaceDialog,
32673
+ chunk345BCA6C_cjs.BulkReplaceDialog,
32648
32674
  {
32649
32675
  open: showGenerateConfirmation,
32650
32676
  onClose: () => setShowGenerateConfirmation(false),
@@ -32759,7 +32785,7 @@ function ViewSelector({
32759
32785
  columns: defaultColumns,
32760
32786
  icon: lucideReact.Table,
32761
32787
  // Both built-ins load at the minimal (compact) row height.
32762
- rowHeight: chunkKB2FH26M_cjs.DOCUMENTS_ROW_HEIGHT_INITIAL,
32788
+ rowHeight: chunk345BCA6C_cjs.DOCUMENTS_ROW_HEIGHT_INITIAL,
32763
32789
  // [] = loading this view unpins everything.
32764
32790
  pinnedLeft: []
32765
32791
  },
@@ -32770,15 +32796,15 @@ function ViewSelector({
32770
32796
  // batch-select checkbox and Title stay fixed left while scrolling.
32771
32797
  columns: defaultColumns,
32772
32798
  icon: lucideReact.Columns3,
32773
- rowHeight: chunkKB2FH26M_cjs.DOCUMENTS_ROW_HEIGHT_INITIAL,
32799
+ rowHeight: chunk345BCA6C_cjs.DOCUMENTS_ROW_HEIGHT_INITIAL,
32774
32800
  pinnedLeft: DOCUMENT_VIEW_PINNED
32775
32801
  },
32776
32802
  {
32777
32803
  key: "email-default",
32778
32804
  label: "Email view",
32779
- columns: [...chunkKB2FH26M_cjs.EMAIL_VIEW_COLUMNS],
32805
+ columns: [...chunk345BCA6C_cjs.EMAIL_VIEW_COLUMNS],
32780
32806
  icon: lucideReact.Mail,
32781
- rowHeight: chunkKB2FH26M_cjs.DOCUMENTS_ROW_HEIGHT_INITIAL,
32807
+ rowHeight: chunk345BCA6C_cjs.DOCUMENTS_ROW_HEIGHT_INITIAL,
32782
32808
  pinnedLeft: []
32783
32809
  }
32784
32810
  ],
@@ -32802,7 +32828,7 @@ function ViewSelector({
32802
32828
  },
32803
32829
  [confirm, workspaceId, deleteView, notify17]
32804
32830
  );
32805
- const menu = chunkKB2FH26M_cjs.useGridViews({
32831
+ const menu = chunk345BCA6C_cjs.useGridViews({
32806
32832
  getGridApi,
32807
32833
  defaultColumns,
32808
32834
  builtins,
@@ -32817,7 +32843,7 @@ function ViewSelector({
32817
32843
  onDeleteView,
32818
32844
  isSaving
32819
32845
  });
32820
- return /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.ViewSelectorMenu, { ...menu });
32846
+ return /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.ViewSelectorMenu, { ...menu });
32821
32847
  }
32822
32848
  function DocumentsFilterBarActions({
32823
32849
  isModal,
@@ -32857,7 +32883,7 @@ function DocumentsFilterBarActions({
32857
32883
  ),
32858
32884
  documentsViewMode === "grid" && // The phone list is a fixed two-line layout, so row density only applies from sm up.
32859
32885
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "hidden sm:block", children: /* @__PURE__ */ jsxRuntime.jsx(
32860
- chunkKB2FH26M_cjs.RowDensityControl,
32886
+ chunk345BCA6C_cjs.RowDensityControl,
32861
32887
  {
32862
32888
  rowHeight: documentsRowHeight,
32863
32889
  onRowHeightChange: onDocumentsRowHeightChange
@@ -32965,8 +32991,8 @@ function DocumentsFilterBarActions({
32965
32991
  }
32966
32992
  function PersistedGridView(props) {
32967
32993
  const { persistState, gridId } = props;
32968
- const setGridState = chunkGE2O6S44_cjs.useFilesGridStates((state) => state.setGridState);
32969
- const gridState = persistState && gridId ? chunkGE2O6S44_cjs.useFilesGridStates.getState().gridStates[gridId] : void 0;
32994
+ const setGridState = chunkMN622SFR_cjs.useFilesGridStates((state) => state.setGridState);
32995
+ const gridState = persistState && gridId ? chunkMN622SFR_cjs.useFilesGridStates.getState().gridStates[gridId] : void 0;
32970
32996
  const onGridStateChange = react$1.useCallback(
32971
32997
  (state) => {
32972
32998
  if (persistState && gridId) setGridState(gridId, state);
@@ -33067,10 +33093,10 @@ var TABLET_TABLE_BELOW = 860;
33067
33093
  var TABLET_VIEWPORT_BELOW = 1100;
33068
33094
  var NO_CONVERSATION_DOCUMENTS2 = [];
33069
33095
  var DocumentReviewCard = react$1.lazy(
33070
- () => import('../DocumentReviewCard-QV3CM7YP.cjs').then((module) => ({ default: module.DocumentReviewCard }))
33096
+ () => import('../DocumentReviewCard-S77M6UGK.cjs').then((module) => ({ default: module.DocumentReviewCard }))
33071
33097
  );
33072
33098
  var FilesViewerDialog = react$1.lazy(
33073
- () => import('../FilesViewerDialog-JKNA25Q3.cjs').then((module) => ({ default: module.FilesViewerDialog }))
33099
+ () => import('../FilesViewerDialog-SWTDMWSU.cjs').then((module) => ({ default: module.FilesViewerDialog }))
33074
33100
  );
33075
33101
  function defaultReviewCard(props) {
33076
33102
  return /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkBDTPWXUW_cjs.LoadingIndicator, { message: "Loading document viewer..." }), children: /* @__PURE__ */ jsxRuntime.jsx(DocumentReviewCard, { ...props }, `navigator-${props.currentDocument.external_id}`) });
@@ -33094,7 +33120,7 @@ function ConnectedFilesPage({
33094
33120
  GridComponent = PersistedGridView,
33095
33121
  gridStateVersion,
33096
33122
  onGridApi,
33097
- prefsKey = chunkGE2O6S44_cjs.FILES_PREFS_KEY,
33123
+ prefsKey = chunkMN622SFR_cjs.FILES_PREFS_KEY,
33098
33124
  defaultViewMode
33099
33125
  }) {
33100
33126
  const { openDocument, openDialog: openDialog2, openProcessing, openTags } = chunkUIXY4HKM_cjs.useBlocksEnvironment();
@@ -33140,8 +33166,8 @@ function ConnectedFilesPage({
33140
33166
  const inConversationDocuments = react.useArbiSessionState(
33141
33167
  (s) => s.conversationDocuments[s.conversationId ?? "new"] ?? NO_CONVERSATION_DOCUMENTS2
33142
33168
  );
33143
- const viewMode = chunkGE2O6S44_cjs.useFilesPrefs((s) => chunkGE2O6S44_cjs.filesViewMode(s, prefsKey, defaultViewMode));
33144
- const setPrefsViewMode = chunkGE2O6S44_cjs.useFilesPrefs((s) => s.setViewMode);
33169
+ const viewMode = chunkMN622SFR_cjs.useFilesPrefs((s) => chunkMN622SFR_cjs.filesViewMode(s, prefsKey, defaultViewMode));
33170
+ const setPrefsViewMode = chunkMN622SFR_cjs.useFilesPrefs((s) => s.setViewMode);
33145
33171
  const setViewMode = react$1.useCallback(
33146
33172
  (mode) => setPrefsViewMode(mode, prefsKey),
33147
33173
  [setPrefsViewMode, prefsKey]
@@ -33169,7 +33195,7 @@ function ConnectedFilesPage({
33169
33195
  (fromLink) => {
33170
33196
  setDialog(null);
33171
33197
  shownPlaceRef.current = null;
33172
- if (chunkGE2O6S44_cjs.filesViewMode(chunkGE2O6S44_cjs.useFilesPrefs.getState(), prefsKey, defaultViewMode) !== "navigator")
33198
+ if (chunkMN622SFR_cjs.filesViewMode(chunkMN622SFR_cjs.useFilesPrefs.getState(), prefsKey, defaultViewMode) !== "navigator")
33173
33199
  session.setViewingDocument(null);
33174
33200
  if (!fromLink) latest.current.onDocumentChange?.(null);
33175
33201
  },
@@ -33217,9 +33243,9 @@ function ConnectedFilesPage({
33217
33243
  else if (linkedPlaceKey !== shownPlaceRef.current) showInDialog(place, true);
33218
33244
  } else if (previous && ownsViewer && shownPlaceRef.current) closeDialog2(true);
33219
33245
  }, [linkedPlaceKey]);
33220
- const rowHeight = chunkGE2O6S44_cjs.useFilesPrefs((s) => s.rowHeight);
33221
- const setRowHeight = chunkGE2O6S44_cjs.useFilesPrefs((s) => s.setRowHeight);
33222
- const ownGridStates = chunkGE2O6S44_cjs.useFilesGridStates((s) => s.gridStates);
33246
+ const rowHeight = chunkMN622SFR_cjs.useFilesPrefs((s) => s.rowHeight);
33247
+ const setRowHeight = chunkMN622SFR_cjs.useFilesPrefs((s) => s.setRowHeight);
33248
+ const ownGridStates = chunkMN622SFR_cjs.useFilesGridStates((s) => s.gridStates);
33223
33249
  const stateVersion = gridStateVersion ?? ownGridStates;
33224
33250
  const [pageEl, setPageEl] = react$1.useState(null);
33225
33251
  const [isTabletWidth, setIsTabletWidth] = react$1.useState(false);
@@ -33249,15 +33275,15 @@ function ConnectedFilesPage({
33249
33275
  const [explorerSortReversed, setExplorerSortReversed] = react$1.useState(false);
33250
33276
  const [explorerTileSize, setExplorerTileSize] = react$1.useState(TILE_DEFAULT);
33251
33277
  const [urlDialogOpen, setUrlDialogOpen] = react$1.useState(false);
33252
- const move = chunkGE2O6S44_cjs.useFilesDialogs((s) => s.move);
33253
- const openMove = chunkGE2O6S44_cjs.useFilesDialogs((s) => s.openMove);
33254
- const closeMove = chunkGE2O6S44_cjs.useFilesDialogs((s) => s.closeMove);
33255
- const bulkTagsOpen = chunkGE2O6S44_cjs.useFilesDialogs((s) => s.bulkTagsOpen);
33256
- const setBulkTagsOpen = chunkGE2O6S44_cjs.useFilesDialogs((s) => s.setBulkTagsOpen);
33257
- const deleteRequest = chunkGE2O6S44_cjs.useFilesDialogs((s) => s.deleteRequest);
33258
- const requestDelete = chunkGE2O6S44_cjs.useFilesDialogs((s) => s.requestDelete);
33259
- const exportOpen = chunkGE2O6S44_cjs.useFilesDialogs((s) => s.exportOpen);
33260
- const setExportOpen = chunkGE2O6S44_cjs.useFilesDialogs((s) => s.setExportOpen);
33278
+ const move = chunkMN622SFR_cjs.useFilesDialogs((s) => s.move);
33279
+ const openMove = chunkMN622SFR_cjs.useFilesDialogs((s) => s.openMove);
33280
+ const closeMove = chunkMN622SFR_cjs.useFilesDialogs((s) => s.closeMove);
33281
+ const bulkTagsOpen = chunkMN622SFR_cjs.useFilesDialogs((s) => s.bulkTagsOpen);
33282
+ const setBulkTagsOpen = chunkMN622SFR_cjs.useFilesDialogs((s) => s.setBulkTagsOpen);
33283
+ const deleteRequest = chunkMN622SFR_cjs.useFilesDialogs((s) => s.deleteRequest);
33284
+ const requestDelete = chunkMN622SFR_cjs.useFilesDialogs((s) => s.requestDelete);
33285
+ const exportOpen = chunkMN622SFR_cjs.useFilesDialogs((s) => s.exportOpen);
33286
+ const setExportOpen = chunkMN622SFR_cjs.useFilesDialogs((s) => s.setExportOpen);
33261
33287
  const openOwnExport = react$1.useCallback(() => setExportOpen(true), [setExportOpen]);
33262
33288
  const exportItems = react$1.useMemo(
33263
33289
  () => selectedDocuments.map((doc) => ({
@@ -33300,17 +33326,17 @@ function ConnectedFilesPage({
33300
33326
  const relatedDocsMap = useFilesPageSession(documents, workspaceId);
33301
33327
  const defaultVisibleColumns = react$1.useMemo(
33302
33328
  () => [
33303
- ...chunkKB2FH26M_cjs.DEFAULT_DOCUMENT_COLUMNS,
33329
+ ...chunk345BCA6C_cjs.DEFAULT_DOCUMENT_COLUMNS,
33304
33330
  ...allTags.filter(browser.isAnnotationTag).map((tag) => tag.external_id)
33305
33331
  ],
33306
33332
  [allTags]
33307
33333
  );
33308
33334
  const handleReorderColumns = react$1.useCallback((ids, gridApi2) => {
33309
- if (gridApi2) chunkKB2FH26M_cjs.applyColumnLayout(gridApi2, ids);
33335
+ if (gridApi2) chunk345BCA6C_cjs.applyColumnLayout(gridApi2, ids);
33310
33336
  }, []);
33311
33337
  const handleLoadView = react$1.useCallback(
33312
33338
  (view, gridApi2) => {
33313
- chunkKB2FH26M_cjs.applyViewColumns(gridApi2, view, handleReorderColumns);
33339
+ chunk345BCA6C_cjs.applyViewColumns(gridApi2, view, handleReorderColumns);
33314
33340
  if (typeof view.tile_size === "number") setExplorerTileSize(view.tile_size);
33315
33341
  if (typeof view.row_height === "number") setRowHeight(view.row_height);
33316
33342
  },
@@ -33403,7 +33429,7 @@ function ConnectedFilesPage({
33403
33429
  );
33404
33430
  const currentDocument = viewingDocumentId ? filteredDocuments.find((d) => d.external_id === viewingDocumentId) ?? documents.find((d) => d.external_id === viewingDocumentId) ?? null : null;
33405
33431
  const navigatorDocuments = react$1.useMemo(
33406
- () => chunkKB2FH26M_cjs.sortExplorerFiles(filteredDocuments, explorerSort, explorerSortReversed),
33432
+ () => chunk345BCA6C_cjs.sortExplorerFiles(filteredDocuments, explorerSort, explorerSortReversed),
33407
33433
  [filteredDocuments, explorerSort, explorerSortReversed]
33408
33434
  );
33409
33435
  const navigatorOnNavigate = react$1.useCallback(
@@ -33473,7 +33499,7 @@ function ConnectedFilesPage({
33473
33499
  },
33474
33500
  rowHeight
33475
33501
  };
33476
- const documentsTabActions = /* @__PURE__ */ jsxRuntime.jsxs(chunkKB2FH26M_cjs.FilesFilterBar, { children: [
33502
+ const documentsTabActions = /* @__PURE__ */ jsxRuntime.jsxs(chunk345BCA6C_cjs.FilesFilterBar, { children: [
33477
33503
  /* @__PURE__ */ jsxRuntime.jsx(
33478
33504
  chunk6UZC4XVV_cjs.FilterInput,
33479
33505
  {
@@ -33508,7 +33534,7 @@ function ConnectedFilesPage({
33508
33534
  ),
33509
33535
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex shrink-0 items-center gap-2", children: [
33510
33536
  /* @__PURE__ */ jsxRuntime.jsx(
33511
- chunkKB2FH26M_cjs.DocumentsFolderButton,
33537
+ chunk345BCA6C_cjs.DocumentsFolderButton,
33512
33538
  {
33513
33539
  documents,
33514
33540
  documentFilters,
@@ -33516,7 +33542,7 @@ function ConnectedFilesPage({
33516
33542
  onNewFolder: canUpload ? handleNewFolder : void 0
33517
33543
  }
33518
33544
  ),
33519
- openTags && /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.FilesTagsButton, { onClick: openTags }),
33545
+ openTags && /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.FilesTagsButton, { onClick: openTags }),
33520
33546
  workspaceId && /* @__PURE__ */ jsxRuntime.jsx(ConnectedRecentlyDeletedButton, { workspaceExtId: workspaceId })
33521
33547
  ] })
33522
33548
  ] });
@@ -33539,9 +33565,9 @@ function ConnectedFilesPage({
33539
33565
  );
33540
33566
  const reviewGridId = isModal ? "documents-modal-grid-v6" : "documents-main-grid-v6";
33541
33567
  const showBulkBar = (viewMode === "grid" || viewMode === "explorer" || viewMode === "navigator") && documents.length > 0;
33542
- return /* @__PURE__ */ jsxRuntime.jsxs(chunkKB2FH26M_cjs.FilesPage, { isModal, ref: setPageEl, children: [
33568
+ return /* @__PURE__ */ jsxRuntime.jsxs(chunk345BCA6C_cjs.FilesPage, { isModal, ref: setPageEl, children: [
33543
33569
  /* @__PURE__ */ jsxRuntime.jsx(
33544
- chunkKB2FH26M_cjs.UrlInputDialog,
33570
+ chunk345BCA6C_cjs.UrlInputDialog,
33545
33571
  {
33546
33572
  open: urlDialogOpen,
33547
33573
  onOpenChange: setUrlDialogOpen,
@@ -33550,7 +33576,7 @@ function ConnectedFilesPage({
33550
33576
  titleIcon: workspace && /* @__PURE__ */ jsxRuntime.jsx(ConnectedWorkspaceEntity, { workspace, size: 24, variant: "icon" })
33551
33577
  }
33552
33578
  ),
33553
- /* @__PURE__ */ jsxRuntime.jsxs(chunkKB2FH26M_cjs.FilesPageHeader, { children: [
33579
+ /* @__PURE__ */ jsxRuntime.jsxs(chunk345BCA6C_cjs.FilesPageHeader, { children: [
33554
33580
  /* @__PURE__ */ jsxRuntime.jsx(
33555
33581
  chunkSJSGSHIT_cjs.TabHeader,
33556
33582
  {
@@ -33571,7 +33597,7 @@ function ConnectedFilesPage({
33571
33597
  activeTabId: "documents",
33572
33598
  onTabChange: () => handleViewModeChange(lastDocsViewRef.current),
33573
33599
  firstTabContent: isNarrowFilterRow ? null : documentsTabActions,
33574
- centerContent: /* @__PURE__ */ jsxRuntime.jsxs(chunkKB2FH26M_cjs.FilesViewCenter, { className: isNarrowFilterRow ? "min-w-0" : void 0, children: [
33600
+ centerContent: /* @__PURE__ */ jsxRuntime.jsxs(chunk345BCA6C_cjs.FilesViewCenter, { className: isNarrowFilterRow ? "min-w-0" : void 0, children: [
33575
33601
  !isNarrowFilterRow && viewToggle,
33576
33602
  /* @__PURE__ */ jsxRuntime.jsx(ProgressiveLoadingChip, {})
33577
33603
  ] }),
@@ -33601,7 +33627,7 @@ function ConnectedFilesPage({
33601
33627
  }
33602
33628
  ),
33603
33629
  /* @__PURE__ */ jsxRuntime.jsx(
33604
- chunkKB2FH26M_cjs.FilesToolbar,
33630
+ chunk345BCA6C_cjs.FilesToolbar,
33605
33631
  {
33606
33632
  className: "px-3 pb-2",
33607
33633
  rightActions: viewMode === "grid" || viewMode === "explorer" || viewMode === "navigator" ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
@@ -33623,7 +33649,7 @@ function ConnectedFilesPage({
33623
33649
  ) : viewMode === "explorer" ? (
33624
33650
  // The same over the explorer's tiles.
33625
33651
  /* @__PURE__ */ jsxRuntime.jsx(
33626
- chunkKB2FH26M_cjs.ExplorerFileNavigator,
33652
+ chunk345BCA6C_cjs.ExplorerFileNavigator,
33627
33653
  {
33628
33654
  fileIds: explorerFileIds,
33629
33655
  selectedId: viewingDocumentId ?? selectedDocumentIds[0] ?? null,
@@ -33662,7 +33688,7 @@ function ConnectedFilesPage({
33662
33688
  }
33663
33689
  ),
33664
33690
  viewMode === "navigator" && currentDocument && /* @__PURE__ */ jsxRuntime.jsx(
33665
- chunkKB2FH26M_cjs.NavigatorPickerBar,
33691
+ chunk345BCA6C_cjs.NavigatorPickerBar,
33666
33692
  {
33667
33693
  currentDocument,
33668
33694
  documents: navigatorDocuments,
@@ -33689,11 +33715,11 @@ function ConnectedFilesPage({
33689
33715
  }
33690
33716
  }
33691
33717
  ) }),
33692
- /* @__PURE__ */ jsxRuntime.jsxs(chunkKB2FH26M_cjs.FilesPageMain, { children: [
33718
+ /* @__PURE__ */ jsxRuntime.jsxs(chunk345BCA6C_cjs.FilesPageMain, { children: [
33693
33719
  viewMode === "grid" && /* @__PURE__ */ jsxRuntime.jsx(
33694
- chunkKB2FH26M_cjs.DocumentGrid,
33720
+ chunk345BCA6C_cjs.DocumentGrid,
33695
33721
  {
33696
- layout: chunkKB2FH26M_cjs.resolveDocumentGridLayout(isNarrowFilterRow, isModal, isTabletWidth),
33722
+ layout: chunk345BCA6C_cjs.resolveDocumentGridLayout(isNarrowFilterRow, isModal, isTabletWidth),
33697
33723
  presets: gridPresets,
33698
33724
  GridComponent,
33699
33725
  showEmptyWorkspace: documents.length === 0 && !isLoading && isMember,
@@ -33787,7 +33813,7 @@ function ConnectedFilesPage({
33787
33813
  onProduce: () => openDialog2("productionSet")
33788
33814
  }
33789
33815
  ),
33790
- isModal && onClose && /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.FilesModalFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { variant: "outline", onClick: onClose, children: "Close" }) }),
33816
+ isModal && onClose && /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.FilesModalFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { variant: "outline", onClick: onClose, children: "Close" }) }),
33791
33817
  /* @__PURE__ */ jsxRuntime.jsx(
33792
33818
  chunkJDFBEGQO_cjs.ConfirmDialog,
33793
33819
  {
@@ -33798,7 +33824,7 @@ function ConnectedFilesPage({
33798
33824
  requestDelete(null);
33799
33825
  },
33800
33826
  title: "Delete Document",
33801
- description: deleteRequest ? `Delete "${ui.getDocumentTitle(deleteRequest, "this document")}"? ${chunkKB2FH26M_cjs.RECENTLY_DELETED_HINT}` : "",
33827
+ description: deleteRequest ? `Delete "${ui.getDocumentTitle(deleteRequest, "this document")}"? ${chunk345BCA6C_cjs.RECENTLY_DELETED_HINT}` : "",
33802
33828
  confirmText: "Delete",
33803
33829
  variant: "destructive"
33804
33830
  }
@@ -33874,8 +33900,8 @@ function ConnectedFilesPage({
33874
33900
  }
33875
33901
  var NO_DOCUMENTS3 = [];
33876
33902
  function ConnectedAiReviewHost(props) {
33877
- const open = chunkGE2O6S44_cjs.useAiReviewStore((s) => s.open);
33878
- const setOpen = chunkGE2O6S44_cjs.useAiReviewStore((s) => s.setOpen);
33903
+ const open = chunkMN622SFR_cjs.useAiReviewStore((s) => s.open);
33904
+ const setOpen = chunkMN622SFR_cjs.useAiReviewStore((s) => s.setOpen);
33879
33905
  return /* @__PURE__ */ jsxRuntime.jsx(ConnectedAiReview, { open, onOpenChange: setOpen, ...props });
33880
33906
  }
33881
33907
  function ConnectedGridView(props) {
@@ -33911,7 +33937,7 @@ function ProcessingSection({
33911
33937
  tasks,
33912
33938
  onDelete
33913
33939
  }) {
33914
- return /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.TaskSection, { title, count: count2, status, tooltip: SECTION_TOOLTIPS[status], children: /* @__PURE__ */ jsxRuntime.jsx(chunkQJNHVQUQ_cjs.UploadTaskList, { tasks, title: "", onDelete, renderFileIcon: renderFileIcon2 }) });
33940
+ return /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.TaskSection, { title, count: count2, status, tooltip: SECTION_TOOLTIPS[status], children: /* @__PURE__ */ jsxRuntime.jsx(chunkQJNHVQUQ_cjs.UploadTaskList, { tasks, title: "", onDelete, renderFileIcon: renderFileIcon2 }) });
33915
33941
  }
33916
33942
  function ConnectedDocumentProcessingPanel({
33917
33943
  workspaceId,
@@ -34267,7 +34293,7 @@ var MENU_LABELS = {
34267
34293
  };
34268
34294
  function applyDatabaseColumns(columns, api) {
34269
34295
  const kept = (id) => api.getColumn(id) ? [id] : [];
34270
- chunkKB2FH26M_cjs.applyColumnLayout(api, [...kept(chunkIK4MSXXR_cjs.OPEN_ROW_COL_ID), ...columns, ...kept(chunkIK4MSXXR_cjs.ADD_COLUMN_COL_ID)]);
34296
+ chunk345BCA6C_cjs.applyColumnLayout(api, [...kept(chunkIK4MSXXR_cjs.OPEN_ROW_COL_ID), ...columns, ...kept(chunkIK4MSXXR_cjs.ADD_COLUMN_COL_ID)]);
34271
34297
  }
34272
34298
  function DatabaseViewsMenu({
34273
34299
  databaseId,
@@ -34286,7 +34312,7 @@ function DatabaseViewsMenu({
34286
34312
  [defaultColumns]
34287
34313
  );
34288
34314
  const onLoadView = react$1.useCallback(
34289
- (view, api) => chunkKB2FH26M_cjs.applyViewColumns(api, view, applyDatabaseColumns),
34315
+ (view, api) => chunk345BCA6C_cjs.applyViewColumns(api, view, applyDatabaseColumns),
34290
34316
  []
34291
34317
  );
34292
34318
  const onSaveView = react$1.useCallback(
@@ -34306,7 +34332,7 @@ function DatabaseViewsMenu({
34306
34332
  },
34307
34333
  [confirm, deleteView, notify17]
34308
34334
  );
34309
- const menu = chunkKB2FH26M_cjs.useGridViews({
34335
+ const menu = chunk345BCA6C_cjs.useGridViews({
34310
34336
  getGridApi,
34311
34337
  defaultColumns,
34312
34338
  builtins,
@@ -34319,7 +34345,7 @@ function DatabaseViewsMenu({
34319
34345
  onDeleteView,
34320
34346
  isSaving
34321
34347
  });
34322
- return /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.ViewSelectorMenu, { ...menu, labels: MENU_LABELS });
34348
+ return /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.ViewSelectorMenu, { ...menu, labels: MENU_LABELS });
34323
34349
  }
34324
34350
  function useMoveLocalViews(gridId, ready, importViews) {
34325
34351
  const localViews = react.useArbiSessionState((state) => state.grid.savedViews[gridId]);
@@ -37027,7 +37053,7 @@ function resolveLaunchInputs(workflow, request) {
37027
37053
  return { ...fromContext, ...fromScope, ...request.inputs };
37028
37054
  }
37029
37055
  function useWorkflowLaunch() {
37030
- const { skills } = chunkWA2U4G43_cjs.useWorkflowDefinitions();
37056
+ const { skills } = chunkFAD6D5EV_cjs.useWorkflowDefinitions();
37031
37057
  const launch = react$1.useCallback(
37032
37058
  (workflowId, options2 = {}) => chunkQJNHVQUQ_cjs.openWorkflowLaunch({ workflowId, ...options2 }),
37033
37059
  []
@@ -37060,7 +37086,7 @@ function useWorkflowLaunch() {
37060
37086
  function Inner() {
37061
37087
  const request = chunkQJNHVQUQ_cjs.useWorkflowLaunchRequest();
37062
37088
  const close = chunkQJNHVQUQ_cjs.closeWorkflowLaunch;
37063
- const { skills } = chunkWA2U4G43_cjs.useWorkflowDefinitions();
37089
+ const { skills } = chunkFAD6D5EV_cjs.useWorkflowDefinitions();
37064
37090
  const run = useLaunchWorkflow({ landing: request?.landing });
37065
37091
  const workflow = skills.find((w) => w.id === request?.workflowId);
37066
37092
  const inputs = react$1.useMemo(
@@ -37409,7 +37435,7 @@ function ConnectedConversationSettings() {
37409
37435
  /* @__PURE__ */ jsxRuntime.jsx(
37410
37436
  chunkRB6MAAS7_cjs.ModelSelectionSection,
37411
37437
  {
37412
- selector: /* @__PURE__ */ jsxRuntime.jsx(chunkVWX36C4Y_cjs.ConnectedModelSelector, {}),
37438
+ selector: /* @__PURE__ */ jsxRuntime.jsx(chunkHKZT7K4L_cjs.ConnectedModelSelector, {}),
37413
37439
  onUseDefaults: settings.resetToDefaults
37414
37440
  }
37415
37441
  )
@@ -37468,7 +37494,7 @@ var BUILTIN_GLOBAL_DIALOGS = {
37468
37494
  testId: "workspace-transfer-modal"
37469
37495
  }
37470
37496
  ),
37471
- logout: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(chunkVWX36C4Y_cjs.ConnectedLogoutDialog, { open: props !== null, onClose }),
37497
+ logout: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(chunkHKZT7K4L_cjs.ConnectedLogoutDialog, { open: props !== null, onClose }),
37472
37498
  conversationSettings: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(ConnectedConversationSettingsDialog, { open: props !== null, onClose }),
37473
37499
  unarchiveWorkspace: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(ConnectedUnarchiveWorkspaceDialog, { workspaceId: props?.workspaceId ?? null, onClose }),
37474
37500
  productionSet: ConnectedProductionSetDialog,
@@ -37846,7 +37872,7 @@ function useThreadLabels(canEditShared) {
37846
37872
  return {
37847
37873
  labelText: (row2) => labels.filter((tag) => row2.label_ext_ids?.includes(tag.external_id)).map((tag) => tag.name).join(" "),
37848
37874
  renderLabels: (row2) => /* @__PURE__ */ jsxRuntime.jsx(
37849
- chunkKB2FH26M_cjs.LabelMultiSelectView,
37875
+ chunk345BCA6C_cjs.LabelMultiSelectView,
37850
37876
  {
37851
37877
  options: options2,
37852
37878
  appliedIds: new Set(row2.label_ext_ids ?? []),
@@ -37865,7 +37891,7 @@ function useThreadLabels(canEditShared) {
37865
37891
  ).map((label) => label.id)
37866
37892
  );
37867
37893
  return /* @__PURE__ */ jsxRuntime.jsx(
37868
- chunkKB2FH26M_cjs.BulkLabelSelectView,
37894
+ chunk345BCA6C_cjs.BulkLabelSelectView,
37869
37895
  {
37870
37896
  options: options2,
37871
37897
  appliedIds: all,
@@ -37892,7 +37918,7 @@ function ConnectedThreadLauncher({ autoFocus }) {
37892
37918
  setDraft("");
37893
37919
  };
37894
37920
  return /* @__PURE__ */ jsxRuntime.jsx(chunkZ6JUJI4A_cjs.ComposerDock, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkZ6JUJI4A_cjs.ComposerContainer, { className: "mx-auto max-w-[49rem] px-3 sm:px-6", children: /* @__PURE__ */ jsxRuntime.jsx(
37895
- chunkVWX36C4Y_cjs.ConversationComposer,
37921
+ chunkHKZT7K4L_cjs.ConversationComposer,
37896
37922
  {
37897
37923
  value: draft,
37898
37924
  onValueChange: setDraft,
@@ -37900,7 +37926,7 @@ function ConnectedThreadLauncher({ autoFocus }) {
37900
37926
  handleSendMessage: send,
37901
37927
  isConversationEmpty: true,
37902
37928
  shouldOfferFollowUp: false,
37903
- modelSelector: /* @__PURE__ */ jsxRuntime.jsx(chunkVWX36C4Y_cjs.ConnectedModelSelector, { variant: "compact" }),
37929
+ modelSelector: /* @__PURE__ */ jsxRuntime.jsx(chunkHKZT7K4L_cjs.ConnectedModelSelector, { variant: "compact" }),
37904
37930
  rightButton: /* @__PURE__ */ jsxRuntime.jsx(chunkZ6JUJI4A_cjs.ComposerSend, { onSend: send, disabled: !draft.trim() })
37905
37931
  }
37906
37932
  ) }) });
@@ -37908,7 +37934,7 @@ function ConnectedThreadLauncher({ autoFocus }) {
37908
37934
  var START_VISIBLE = 8;
37909
37935
  var START_SEARCH_ABOVE = 8;
37910
37936
  function ConnectedConversationStart() {
37911
- const { start } = chunkWA2U4G43_cjs.useWorkflowDefinitions();
37937
+ const { start } = chunkFAD6D5EV_cjs.useWorkflowDefinitions();
37912
37938
  const { openSkillsBrowser } = chunkUIXY4HKM_cjs.useBlocksEnvironment();
37913
37939
  const [query, setQuery] = react$1.useState("");
37914
37940
  const q = query.trim().toLowerCase();
@@ -38041,7 +38067,7 @@ function AgentBarShell({
38041
38067
  drawerRef: scrollRef,
38042
38068
  onDrawerScroll: handleDrawerScroll,
38043
38069
  drawer: /* @__PURE__ */ jsxRuntime.jsx(
38044
- chunkVWX36C4Y_cjs.AgentSteps,
38070
+ chunkHKZT7K4L_cjs.AgentSteps,
38045
38071
  {
38046
38072
  steps: stepList,
38047
38073
  isStreaming,
@@ -38093,7 +38119,7 @@ function AgentControlBar({
38093
38119
  const waitingOnChildren = runningLanes.length > 0 && ["sub_agent", "spawn_subagent", "deep_research", "run_skill"].includes(currentTool ?? "");
38094
38120
  const waitingLabel = runningLanes.length === 1 ? `Waiting on ${runningLanes[0].job}` : `Waiting on ${runningLanes.length} sub-agents`;
38095
38121
  const liveTimerNode = liveTimer && /* @__PURE__ */ jsxRuntime.jsx(
38096
- chunkVWX36C4Y_cjs.MessageLiveSeconds,
38122
+ chunkHKZT7K4L_cjs.MessageLiveSeconds,
38097
38123
  {
38098
38124
  ...liveTimer,
38099
38125
  offsetSeconds: currentStep?.t ?? 0,
@@ -38317,7 +38343,7 @@ function ConnectedConversationEmpty({
38317
38343
  compactLeadingAction: onImportFromEmail && /* @__PURE__ */ jsxRuntime.jsx(AddFromAccountsButton, { onImportFromEmail })
38318
38344
  }
38319
38345
  ),
38320
- /* @__PURE__ */ jsxRuntime.jsx(chunkKB2FH26M_cjs.PrivacyExplainerModal, {})
38346
+ /* @__PURE__ */ jsxRuntime.jsx(chunk345BCA6C_cjs.PrivacyExplainerModal, {})
38321
38347
  ] })
38322
38348
  }
38323
38349
  );
@@ -39152,7 +39178,7 @@ function ConversationThread({
39152
39178
  useStartRequestedDraft();
39153
39179
  const orphanedMessage = react.getOrphanedLastMessage(messageHistory, isGenerating, assistantMode);
39154
39180
  return /* @__PURE__ */ jsxRuntime.jsxs(chunk32YCMXT2_cjs.ConversationBody, { children: [
39155
- /* @__PURE__ */ jsxRuntime.jsx(chunk32YCMXT2_cjs.ConversationMain, { "data-testid": `conversation-${currentConversationId}`, children: threadsLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunk32YCMXT2_cjs.ConversationLoading, {}) : messageHistory.length > 0 || isBranching ? /* @__PURE__ */ jsxRuntime.jsx(chunkVWX36C4Y_cjs.AskAgainContext.Provider, { value: handleAskAgain, children: /* @__PURE__ */ jsxRuntime.jsxs(chunkIOCEKN44_cjs.TranscriptRunsContext.Provider, { value: transcriptRunInfo, children: [
39181
+ /* @__PURE__ */ jsxRuntime.jsx(chunk32YCMXT2_cjs.ConversationMain, { "data-testid": `conversation-${currentConversationId}`, children: threadsLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunk32YCMXT2_cjs.ConversationLoading, {}) : messageHistory.length > 0 || isBranching ? /* @__PURE__ */ jsxRuntime.jsx(chunkHKZT7K4L_cjs.AskAgainContext.Provider, { value: handleAskAgain, children: /* @__PURE__ */ jsxRuntime.jsxs(chunkIOCEKN44_cjs.TranscriptRunsContext.Provider, { value: transcriptRunInfo, children: [
39156
39182
  meetingCallExtId && transcriptLineCount > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center py-2", children: /* @__PURE__ */ jsxRuntime.jsx(
39157
39183
  chunkZBP4ZSAJ_cjs.ConversationFilter,
39158
39184
  {
@@ -39170,7 +39196,7 @@ function ConversationThread({
39170
39196
  ]
39171
39197
  }
39172
39198
  ) }),
39173
- /* @__PURE__ */ jsxRuntime.jsx(chunkVWX36C4Y_cjs.ConnectedMessageArea, { ref: containerRef, messages: visibleMessages }),
39199
+ /* @__PURE__ */ jsxRuntime.jsx(chunkHKZT7K4L_cjs.ConnectedMessageArea, { ref: containerRef, messages: visibleMessages }),
39174
39200
  showProvisional && /* @__PURE__ */ jsxRuntime.jsx(chunkIHJ7BEI5_cjs.ProvisionalSpeakers, { ids: provisionalSpeakers })
39175
39201
  ] }) }) : meetingCallExtId ? (
39176
39202
  // A meeting thread with nothing yet: call-aware, not the upload prompt.
@@ -39178,7 +39204,7 @@ function ConversationThread({
39178
39204
  /* @__PURE__ */ jsxRuntime.jsx(chunkIHJ7BEI5_cjs.CallConversationEmpty, { callExtId: meetingCallExtId }),
39179
39205
  /* @__PURE__ */ jsxRuntime.jsx(chunkIHJ7BEI5_cjs.ProvisionalSpeakers, { ids: provisionalSpeakers })
39180
39206
  ] })
39181
- ) : currentTask && currentTask.status != null ? /* @__PURE__ */ jsxRuntime.jsx(chunkQJNHVQUQ_cjs.TaskEmptyState, { task: currentTask }) : pendingFirstTurn && isGenerating ? /* @__PURE__ */ jsxRuntime.jsx(chunkVWX36C4Y_cjs.ConnectedMessageArea, { ref: containerRef, messages: pendingFirstTurn }) : /* @__PURE__ */ jsxRuntime.jsx(
39207
+ ) : currentTask && currentTask.status != null ? /* @__PURE__ */ jsxRuntime.jsx(chunkQJNHVQUQ_cjs.TaskEmptyState, { task: currentTask }) : pendingFirstTurn && isGenerating ? /* @__PURE__ */ jsxRuntime.jsx(chunkHKZT7K4L_cjs.ConnectedMessageArea, { ref: containerRef, messages: pendingFirstTurn }) : /* @__PURE__ */ jsxRuntime.jsx(
39182
39208
  ConnectedConversationEmpty,
39183
39209
  {
39184
39210
  hasDocuments: allWorkspaceDocuments.length > 0,
@@ -39249,7 +39275,7 @@ function ConversationThread({
39249
39275
  children: react.READ_ONLY_MEETING_TEXT
39250
39276
  }
39251
39277
  ) : /* @__PURE__ */ jsxRuntime.jsx(
39252
- chunkVWX36C4Y_cjs.ConversationComposer,
39278
+ chunkHKZT7K4L_cjs.ConversationComposer,
39253
39279
  {
39254
39280
  handleSendMessage: handleUserSend,
39255
39281
  placeholder: pendingAnswer ? "Type your answer to ARBI \u2014 or pick an option above" : void 0,
@@ -39995,7 +40021,7 @@ function ConnectedChatDocumentsTab({
39995
40021
  testId: `document-hover-toggle-${doc.external_id}`
39996
40022
  },
39997
40023
  status: /* @__PURE__ */ jsxRuntime.jsx(
39998
- chunkKB2FH26M_cjs.DocStatusIcon,
40024
+ chunk345BCA6C_cjs.DocStatusIcon,
39999
40025
  {
40000
40026
  status: doc.status,
40001
40027
  onClick: onStatusClick,
@@ -40549,7 +40575,7 @@ function ConnectedConversationPage({
40549
40575
  ] })
40550
40576
  }
40551
40577
  ),
40552
- isInChat && /* @__PURE__ */ jsxRuntime.jsx(chunkWA2U4G43_cjs.ConnectedThreadTaskBar, { conversationId: currentConversationId })
40578
+ isInChat && /* @__PURE__ */ jsxRuntime.jsx(chunkFAD6D5EV_cjs.ConnectedThreadTaskBar, { conversationId: currentConversationId })
40553
40579
  ] }),
40554
40580
  isInChat && /* @__PURE__ */ jsxRuntime.jsx(
40555
40581
  ConversationThread,
@@ -40579,7 +40605,7 @@ function ConnectedConversationPage({
40579
40605
  !isInChat && /* @__PURE__ */ jsxRuntime.jsx(chunk32YCMXT2_cjs.ConversationHistoryPane, { children: searchEnabled && semanticSearchOpen ? /* @__PURE__ */ jsxRuntime.jsx(ConnectedThreadsPage, { showHeader: false, search: true, ResultsBoundary }) : /* @__PURE__ */ jsxRuntime.jsx(ConnectedThreadsPage, { showHeader: false }) })
40580
40606
  ] }),
40581
40607
  /* @__PURE__ */ jsxRuntime.jsx(
40582
- chunkKB2FH26M_cjs.UrlInputDialog,
40608
+ chunk345BCA6C_cjs.UrlInputDialog,
40583
40609
  {
40584
40610
  open: urlDialogOpen,
40585
40611
  onOpenChange: setUrlDialogOpen,
@@ -40769,16 +40795,16 @@ function SsoResendVerificationButton({
40769
40795
  }
40770
40796
  var NO_RECOVERY_KEY_WARNING = "Without your password or a recovery key, we cannot recover your account or data.";
40771
40797
  function ConnectedSsoCallback() {
40772
- const sso = chunkVWX36C4Y_cjs.useSsoSignIn();
40798
+ const sso = chunkHKZT7K4L_cjs.useSsoSignIn();
40773
40799
  const { isAuthenticated: isAuthenticated2, isLoading, user } = sso;
40774
- const auth = chunkVWX36C4Y_cjs.useAuthPages();
40800
+ const auth = chunkHKZT7K4L_cjs.useAuthPages();
40775
40801
  const { notify: notify17, navigate } = chunkUIXY4HKM_cjs.useBlocksEnvironment();
40776
40802
  const passwordRules = auth.passwordRules;
40777
40803
  const isProcessing = react$1.useRef(false);
40778
40804
  const hasCheckedStatus = react$1.useRef(false);
40779
40805
  const [accessToken, setAccessToken] = react$1.useState(null);
40780
40806
  const [ssoStatus, setSsoStatus] = react$1.useState(null);
40781
- const ssoName = react$1.useMemo(() => chunkVWX36C4Y_cjs.resolveSsoName(user ?? {}, ssoStatus ?? {}), [user, ssoStatus]);
40807
+ const ssoName = react$1.useMemo(() => chunkHKZT7K4L_cjs.resolveSsoName(user ?? {}, ssoStatus ?? {}), [user, ssoStatus]);
40782
40808
  const [password, setPassword] = react$1.useState("");
40783
40809
  const [confirmPassword, setConfirmPassword] = react$1.useState("");
40784
40810
  const [error, setError] = react$1.useState(null);
@@ -40956,7 +40982,7 @@ function ConnectedSsoCallback() {
40956
40982
  setIsCheckingStatus(true);
40957
40983
  try {
40958
40984
  console.info("[SSO] Checking user status...");
40959
- const response = await chunkVWX36C4Y_cjs.ssoAccountStatus(arbi, accessToken, user);
40985
+ const response = await chunkHKZT7K4L_cjs.ssoAccountStatus(arbi, accessToken, user);
40960
40986
  console.info("[SSO] User status:", response.status);
40961
40987
  setSsoStatus(response);
40962
40988
  } catch (error2) {
@@ -41000,7 +41026,7 @@ function ConnectedSsoCallback() {
41000
41026
  setIsSubmitting(true);
41001
41027
  setError(null);
41002
41028
  try {
41003
- const { login, registered, linked } = await chunkVWX36C4Y_cjs.completeSsoSignIn(arbi, {
41029
+ const { login, registered, linked } = await chunkHKZT7K4L_cjs.completeSsoSignIn(arbi, {
41004
41030
  token: accessToken,
41005
41031
  user,
41006
41032
  status: ssoStatus,
@@ -41282,7 +41308,7 @@ function ConnectedSsoCallback() {
41282
41308
  ssoStatus.status !== "new_user" && auth.footer
41283
41309
  ] }),
41284
41310
  /* @__PURE__ */ jsxRuntime.jsx(
41285
- chunkVWX36C4Y_cjs.ConnectedForgotPassword,
41311
+ chunkHKZT7K4L_cjs.ConnectedForgotPassword,
41286
41312
  {
41287
41313
  open: showForgotPasswordModal,
41288
41314
  onOpenChange: setShowForgotPasswordModal,
@@ -41290,7 +41316,7 @@ function ConnectedSsoCallback() {
41290
41316
  }
41291
41317
  ),
41292
41318
  /* @__PURE__ */ jsxRuntime.jsx(
41293
- chunkVWX36C4Y_cjs.ConnectedPasswordChangeDialog,
41319
+ chunkHKZT7K4L_cjs.ConnectedPasswordChangeDialog,
41294
41320
  {
41295
41321
  open: showChangePasswordModal,
41296
41322
  onClose: () => setShowChangePasswordModal(false),
@@ -41892,7 +41918,7 @@ function ConnectedTipBar({
41892
41918
  className,
41893
41919
  revealOnHover = false
41894
41920
  }) {
41895
- const { showHints, settingsLoaded, setShowHintsPersisted, setShowHints } = chunkVWX36C4Y_cjs.useContextualHints();
41921
+ const { showHints, settingsLoaded, setShowHintsPersisted, setShowHints } = chunkHKZT7K4L_cjs.useContextualHints();
41896
41922
  const { dismissed, dismissTip } = react.useDismissedTips();
41897
41923
  const { notify: notify17 } = chunkUIXY4HKM_cjs.useBlocksEnvironment();
41898
41924
  const { data: workspaces } = react.useWorkspaces();
@@ -41981,7 +42007,7 @@ function useGettingStarted({
41981
42007
  const { user } = react.useArbiSession();
41982
42008
  const userExtId = user?.external_id;
41983
42009
  const temporaryOnly = user?.temporary_access_only === true;
41984
- const { showHints, settingsLoaded, setShowHints, setShowHintsPersisted } = chunkVWX36C4Y_cjs.useContextualHints();
42010
+ const { showHints, settingsLoaded, setShowHints, setShowHintsPersisted } = chunkHKZT7K4L_cjs.useContextualHints();
41985
42011
  const { dismissed, loaded: dismissedLoaded, dismissTip } = react.useDismissedTips();
41986
42012
  const welcomeJourneyEnabled = react.useFeature("welcomeJourney");
41987
42013
  const session = react.useArbiSessionStore();
@@ -42271,15 +42297,15 @@ Object.defineProperty(exports, "ConnectedMailInviteCard", {
42271
42297
  });
42272
42298
  Object.defineProperty(exports, "ConnectedTagEntity", {
42273
42299
  enumerable: true,
42274
- get: function () { return chunkDIE5ENQC_cjs.ConnectedTagEntity; }
42300
+ get: function () { return chunk6BPA5O3I_cjs.ConnectedTagEntity; }
42275
42301
  });
42276
42302
  Object.defineProperty(exports, "documentFieldContent", {
42277
42303
  enumerable: true,
42278
- get: function () { return chunkDIE5ENQC_cjs.documentFieldContent; }
42304
+ get: function () { return chunk6BPA5O3I_cjs.documentFieldContent; }
42279
42305
  });
42280
42306
  Object.defineProperty(exports, "useMemberLookup", {
42281
42307
  enumerable: true,
42282
- get: function () { return chunkDIE5ENQC_cjs.useMemberLookup; }
42308
+ get: function () { return chunk6BPA5O3I_cjs.useMemberLookup; }
42283
42309
  });
42284
42310
  Object.defineProperty(exports, "ConnectedAssistantDock", {
42285
42311
  enumerable: true,
@@ -42315,291 +42341,291 @@ Object.defineProperty(exports, "useWorkspaceDocs", {
42315
42341
  });
42316
42342
  Object.defineProperty(exports, "ConnectedTaskActivityDialog", {
42317
42343
  enumerable: true,
42318
- get: function () { return chunkWA2U4G43_cjs.ConnectedTaskActivityDialog; }
42344
+ get: function () { return chunkFAD6D5EV_cjs.ConnectedTaskActivityDialog; }
42319
42345
  });
42320
42346
  Object.defineProperty(exports, "ConnectedTaskComposer", {
42321
42347
  enumerable: true,
42322
- get: function () { return chunkWA2U4G43_cjs.ConnectedTaskComposer; }
42348
+ get: function () { return chunkFAD6D5EV_cjs.ConnectedTaskComposer; }
42323
42349
  });
42324
42350
  Object.defineProperty(exports, "ConnectedThreadTaskBar", {
42325
42351
  enumerable: true,
42326
- get: function () { return chunkWA2U4G43_cjs.ConnectedThreadTaskBar; }
42352
+ get: function () { return chunkFAD6D5EV_cjs.ConnectedThreadTaskBar; }
42327
42353
  });
42328
42354
  Object.defineProperty(exports, "ConnectedWorkflowHistory", {
42329
42355
  enumerable: true,
42330
- get: function () { return chunkWA2U4G43_cjs.ConnectedWorkflowHistory; }
42356
+ get: function () { return chunkFAD6D5EV_cjs.ConnectedWorkflowHistory; }
42331
42357
  });
42332
42358
  Object.defineProperty(exports, "ConnectedWorkflowRunPage", {
42333
42359
  enumerable: true,
42334
- get: function () { return chunkWA2U4G43_cjs.ConnectedWorkflowRunPage; }
42360
+ get: function () { return chunkFAD6D5EV_cjs.ConnectedWorkflowRunPage; }
42335
42361
  });
42336
42362
  Object.defineProperty(exports, "ConnectedWorkflowRunner", {
42337
42363
  enumerable: true,
42338
- get: function () { return chunkWA2U4G43_cjs.ConnectedWorkflowRunner; }
42364
+ get: function () { return chunkFAD6D5EV_cjs.ConnectedWorkflowRunner; }
42339
42365
  });
42340
42366
  Object.defineProperty(exports, "DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS", {
42341
42367
  enumerable: true,
42342
- get: function () { return chunkWA2U4G43_cjs.DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS; }
42368
+ get: function () { return chunkFAD6D5EV_cjs.DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS; }
42343
42369
  });
42344
42370
  Object.defineProperty(exports, "DEFAULT_WORKFLOW_RUN_PAGE_LABELS", {
42345
42371
  enumerable: true,
42346
- get: function () { return chunkWA2U4G43_cjs.DEFAULT_WORKFLOW_RUN_PAGE_LABELS; }
42372
+ get: function () { return chunkFAD6D5EV_cjs.DEFAULT_WORKFLOW_RUN_PAGE_LABELS; }
42347
42373
  });
42348
42374
  Object.defineProperty(exports, "WorkflowRunThread", {
42349
42375
  enumerable: true,
42350
- get: function () { return chunkWA2U4G43_cjs.WorkflowRunThread; }
42376
+ get: function () { return chunkFAD6D5EV_cjs.WorkflowRunThread; }
42351
42377
  });
42352
42378
  Object.defineProperty(exports, "WorkflowRunWorkspaceChangedError", {
42353
42379
  enumerable: true,
42354
- get: function () { return chunkWA2U4G43_cjs.WorkflowRunWorkspaceChangedError; }
42380
+ get: function () { return chunkFAD6D5EV_cjs.WorkflowRunWorkspaceChangedError; }
42355
42381
  });
42356
42382
  Object.defineProperty(exports, "buildProjectSummaries", {
42357
42383
  enumerable: true,
42358
- get: function () { return chunkWA2U4G43_cjs.buildProjectSummaries; }
42384
+ get: function () { return chunkFAD6D5EV_cjs.buildProjectSummaries; }
42359
42385
  });
42360
42386
  Object.defineProperty(exports, "primaryProjectWorkspace", {
42361
42387
  enumerable: true,
42362
- get: function () { return chunkWA2U4G43_cjs.primaryProjectWorkspace; }
42388
+ get: function () { return chunkFAD6D5EV_cjs.primaryProjectWorkspace; }
42363
42389
  });
42364
42390
  Object.defineProperty(exports, "useEnsureRequiredLabels", {
42365
42391
  enumerable: true,
42366
- get: function () { return chunkWA2U4G43_cjs.useEnsureRequiredLabels; }
42392
+ get: function () { return chunkFAD6D5EV_cjs.useEnsureRequiredLabels; }
42367
42393
  });
42368
42394
  Object.defineProperty(exports, "useProjectSummaries", {
42369
42395
  enumerable: true,
42370
- get: function () { return chunkWA2U4G43_cjs.useProjectSummaries; }
42396
+ get: function () { return chunkFAD6D5EV_cjs.useProjectSummaries; }
42371
42397
  });
42372
42398
  Object.defineProperty(exports, "useProjectSummary", {
42373
42399
  enumerable: true,
42374
- get: function () { return chunkWA2U4G43_cjs.useProjectSummary; }
42400
+ get: function () { return chunkFAD6D5EV_cjs.useProjectSummary; }
42375
42401
  });
42376
42402
  Object.defineProperty(exports, "useRenderTaskPerson", {
42377
42403
  enumerable: true,
42378
- get: function () { return chunkWA2U4G43_cjs.useRenderTaskPerson; }
42404
+ get: function () { return chunkFAD6D5EV_cjs.useRenderTaskPerson; }
42379
42405
  });
42380
42406
  Object.defineProperty(exports, "useRequiredLabels", {
42381
42407
  enumerable: true,
42382
- get: function () { return chunkWA2U4G43_cjs.useRequiredLabels; }
42408
+ get: function () { return chunkFAD6D5EV_cjs.useRequiredLabels; }
42383
42409
  });
42384
42410
  Object.defineProperty(exports, "useSkillsEnabled", {
42385
42411
  enumerable: true,
42386
- get: function () { return chunkWA2U4G43_cjs.useSkillsEnabled; }
42412
+ get: function () { return chunkFAD6D5EV_cjs.useSkillsEnabled; }
42387
42413
  });
42388
42414
  Object.defineProperty(exports, "useTaskPeople", {
42389
42415
  enumerable: true,
42390
- get: function () { return chunkWA2U4G43_cjs.useTaskPeople; }
42416
+ get: function () { return chunkFAD6D5EV_cjs.useTaskPeople; }
42391
42417
  });
42392
42418
  Object.defineProperty(exports, "useWorkflowDefinitions", {
42393
42419
  enumerable: true,
42394
- get: function () { return chunkWA2U4G43_cjs.useWorkflowDefinitions; }
42420
+ get: function () { return chunkFAD6D5EV_cjs.useWorkflowDefinitions; }
42395
42421
  });
42396
42422
  Object.defineProperty(exports, "useWorkflowTasks", {
42397
42423
  enumerable: true,
42398
- get: function () { return chunkWA2U4G43_cjs.useWorkflowTasks; }
42424
+ get: function () { return chunkFAD6D5EV_cjs.useWorkflowTasks; }
42399
42425
  });
42400
42426
  Object.defineProperty(exports, "useWorkflowsPageState", {
42401
42427
  enumerable: true,
42402
- get: function () { return chunkWA2U4G43_cjs.useWorkflowsPageState; }
42428
+ get: function () { return chunkFAD6D5EV_cjs.useWorkflowsPageState; }
42403
42429
  });
42404
42430
  Object.defineProperty(exports, "workflowRunView", {
42405
42431
  enumerable: true,
42406
- get: function () { return chunkWA2U4G43_cjs.workflowRunView; }
42432
+ get: function () { return chunkFAD6D5EV_cjs.workflowRunView; }
42407
42433
  });
42408
42434
  Object.defineProperty(exports, "AgentSteps", {
42409
42435
  enumerable: true,
42410
- get: function () { return chunkVWX36C4Y_cjs.AgentSteps; }
42436
+ get: function () { return chunkHKZT7K4L_cjs.AgentSteps; }
42411
42437
  });
42412
42438
  Object.defineProperty(exports, "AnswerTable", {
42413
42439
  enumerable: true,
42414
- get: function () { return chunkVWX36C4Y_cjs.AnswerTable; }
42440
+ get: function () { return chunkHKZT7K4L_cjs.AnswerTable; }
42415
42441
  });
42416
42442
  Object.defineProperty(exports, "ArbiChat", {
42417
42443
  enumerable: true,
42418
- get: function () { return chunkVWX36C4Y_cjs.ArbiChat; }
42444
+ get: function () { return chunkHKZT7K4L_cjs.ArbiChat; }
42419
42445
  });
42420
42446
  Object.defineProperty(exports, "AskAgainContext", {
42421
42447
  enumerable: true,
42422
- get: function () { return chunkVWX36C4Y_cjs.AskAgainContext; }
42448
+ get: function () { return chunkHKZT7K4L_cjs.AskAgainContext; }
42423
42449
  });
42424
42450
  Object.defineProperty(exports, "ConnectedBranchControls", {
42425
42451
  enumerable: true,
42426
- get: function () { return chunkVWX36C4Y_cjs.ConnectedBranchControls; }
42452
+ get: function () { return chunkHKZT7K4L_cjs.ConnectedBranchControls; }
42427
42453
  });
42428
42454
  Object.defineProperty(exports, "ConnectedCitationRenderer", {
42429
42455
  enumerable: true,
42430
- get: function () { return chunkVWX36C4Y_cjs.ConnectedCitationRenderer; }
42456
+ get: function () { return chunkHKZT7K4L_cjs.ConnectedCitationRenderer; }
42431
42457
  });
42432
42458
  Object.defineProperty(exports, "ConnectedCompactConversation", {
42433
42459
  enumerable: true,
42434
- get: function () { return chunkVWX36C4Y_cjs.ConnectedCompactConversation; }
42460
+ get: function () { return chunkHKZT7K4L_cjs.ConnectedCompactConversation; }
42435
42461
  });
42436
42462
  Object.defineProperty(exports, "ConnectedCompactLogin", {
42437
42463
  enumerable: true,
42438
- get: function () { return chunkVWX36C4Y_cjs.ConnectedCompactLogin; }
42464
+ get: function () { return chunkHKZT7K4L_cjs.ConnectedCompactLogin; }
42439
42465
  });
42440
42466
  Object.defineProperty(exports, "ConnectedConversationDocumentPicker", {
42441
42467
  enumerable: true,
42442
- get: function () { return chunkVWX36C4Y_cjs.ConnectedConversationDocumentPicker; }
42468
+ get: function () { return chunkHKZT7K4L_cjs.ConnectedConversationDocumentPicker; }
42443
42469
  });
42444
42470
  Object.defineProperty(exports, "ConnectedDangerZone", {
42445
42471
  enumerable: true,
42446
- get: function () { return chunkVWX36C4Y_cjs.ConnectedDangerZone; }
42472
+ get: function () { return chunkHKZT7K4L_cjs.ConnectedDangerZone; }
42447
42473
  });
42448
42474
  Object.defineProperty(exports, "ConnectedEmbeddedChat", {
42449
42475
  enumerable: true,
42450
- get: function () { return chunkVWX36C4Y_cjs.ConnectedEmbeddedChat; }
42476
+ get: function () { return chunkHKZT7K4L_cjs.ConnectedEmbeddedChat; }
42451
42477
  });
42452
42478
  Object.defineProperty(exports, "ConnectedForgotPassword", {
42453
42479
  enumerable: true,
42454
- get: function () { return chunkVWX36C4Y_cjs.ConnectedForgotPassword; }
42480
+ get: function () { return chunkHKZT7K4L_cjs.ConnectedForgotPassword; }
42455
42481
  });
42456
42482
  Object.defineProperty(exports, "ConnectedIdentityVerification", {
42457
42483
  enumerable: true,
42458
- get: function () { return chunkVWX36C4Y_cjs.ConnectedIdentityVerification; }
42484
+ get: function () { return chunkHKZT7K4L_cjs.ConnectedIdentityVerification; }
42459
42485
  });
42460
42486
  Object.defineProperty(exports, "ConnectedLoginPage", {
42461
42487
  enumerable: true,
42462
- get: function () { return chunkVWX36C4Y_cjs.ConnectedLoginPage; }
42488
+ get: function () { return chunkHKZT7K4L_cjs.ConnectedLoginPage; }
42463
42489
  });
42464
42490
  Object.defineProperty(exports, "ConnectedLogoutDialog", {
42465
42491
  enumerable: true,
42466
- get: function () { return chunkVWX36C4Y_cjs.ConnectedLogoutDialog; }
42492
+ get: function () { return chunkHKZT7K4L_cjs.ConnectedLogoutDialog; }
42467
42493
  });
42468
42494
  Object.defineProperty(exports, "ConnectedMessage", {
42469
42495
  enumerable: true,
42470
- get: function () { return chunkVWX36C4Y_cjs.ConnectedMessage; }
42496
+ get: function () { return chunkHKZT7K4L_cjs.ConnectedMessage; }
42471
42497
  });
42472
42498
  Object.defineProperty(exports, "ConnectedMessageArea", {
42473
42499
  enumerable: true,
42474
- get: function () { return chunkVWX36C4Y_cjs.ConnectedMessageArea; }
42500
+ get: function () { return chunkHKZT7K4L_cjs.ConnectedMessageArea; }
42475
42501
  });
42476
42502
  Object.defineProperty(exports, "ConnectedMessageList", {
42477
42503
  enumerable: true,
42478
- get: function () { return chunkVWX36C4Y_cjs.ConnectedMessageList; }
42504
+ get: function () { return chunkHKZT7K4L_cjs.ConnectedMessageList; }
42479
42505
  });
42480
42506
  Object.defineProperty(exports, "ConnectedModelSelector", {
42481
42507
  enumerable: true,
42482
- get: function () { return chunkVWX36C4Y_cjs.ConnectedModelSelector; }
42508
+ get: function () { return chunkHKZT7K4L_cjs.ConnectedModelSelector; }
42483
42509
  });
42484
42510
  Object.defineProperty(exports, "ConnectedNotificationPreferences", {
42485
42511
  enumerable: true,
42486
- get: function () { return chunkVWX36C4Y_cjs.ConnectedNotificationPreferences; }
42512
+ get: function () { return chunkHKZT7K4L_cjs.ConnectedNotificationPreferences; }
42487
42513
  });
42488
42514
  Object.defineProperty(exports, "ConnectedPasswordChangeDialog", {
42489
42515
  enumerable: true,
42490
- get: function () { return chunkVWX36C4Y_cjs.ConnectedPasswordChangeDialog; }
42516
+ get: function () { return chunkHKZT7K4L_cjs.ConnectedPasswordChangeDialog; }
42491
42517
  });
42492
42518
  Object.defineProperty(exports, "ConnectedProfileCard", {
42493
42519
  enumerable: true,
42494
- get: function () { return chunkVWX36C4Y_cjs.ConnectedProfileCard; }
42520
+ get: function () { return chunkHKZT7K4L_cjs.ConnectedProfileCard; }
42495
42521
  });
42496
42522
  Object.defineProperty(exports, "ConnectedSecuritySection", {
42497
42523
  enumerable: true,
42498
- get: function () { return chunkVWX36C4Y_cjs.ConnectedSecuritySection; }
42524
+ get: function () { return chunkHKZT7K4L_cjs.ConnectedSecuritySection; }
42499
42525
  });
42500
42526
  Object.defineProperty(exports, "ConnectedSessionsRow", {
42501
42527
  enumerable: true,
42502
- get: function () { return chunkVWX36C4Y_cjs.ConnectedSessionsRow; }
42528
+ get: function () { return chunkHKZT7K4L_cjs.ConnectedSessionsRow; }
42503
42529
  });
42504
42530
  Object.defineProperty(exports, "ConnectedThreadsPreview", {
42505
42531
  enumerable: true,
42506
- get: function () { return chunkVWX36C4Y_cjs.ConnectedThreadsPreview; }
42532
+ get: function () { return chunkHKZT7K4L_cjs.ConnectedThreadsPreview; }
42507
42533
  });
42508
42534
  Object.defineProperty(exports, "ConversationComposer", {
42509
42535
  enumerable: true,
42510
- get: function () { return chunkVWX36C4Y_cjs.ConversationComposer; }
42536
+ get: function () { return chunkHKZT7K4L_cjs.ConversationComposer; }
42511
42537
  });
42512
42538
  Object.defineProperty(exports, "EmbeddedChatPanel", {
42513
42539
  enumerable: true,
42514
- get: function () { return chunkVWX36C4Y_cjs.EmbeddedChatPanel; }
42540
+ get: function () { return chunkHKZT7K4L_cjs.EmbeddedChatPanel; }
42515
42541
  });
42516
42542
  Object.defineProperty(exports, "MessageDetailsModal", {
42517
42543
  enumerable: true,
42518
- get: function () { return chunkVWX36C4Y_cjs.MessageDetailsModal; }
42544
+ get: function () { return chunkHKZT7K4L_cjs.MessageDetailsModal; }
42519
42545
  });
42520
42546
  Object.defineProperty(exports, "MessageLiveSeconds", {
42521
42547
  enumerable: true,
42522
- get: function () { return chunkVWX36C4Y_cjs.MessageLiveSeconds; }
42548
+ get: function () { return chunkHKZT7K4L_cjs.MessageLiveSeconds; }
42523
42549
  });
42524
42550
  Object.defineProperty(exports, "PENDING_RECOVERY_KEY", {
42525
42551
  enumerable: true,
42526
- get: function () { return chunkVWX36C4Y_cjs.PENDING_RECOVERY_KEY; }
42552
+ get: function () { return chunkHKZT7K4L_cjs.PENDING_RECOVERY_KEY; }
42527
42553
  });
42528
42554
  Object.defineProperty(exports, "PREMIUM_TIER_TAG", {
42529
42555
  enumerable: true,
42530
- get: function () { return chunkVWX36C4Y_cjs.PREMIUM_TIER_TAG; }
42556
+ get: function () { return chunkHKZT7K4L_cjs.PREMIUM_TIER_TAG; }
42531
42557
  });
42532
42558
  Object.defineProperty(exports, "RunningSubagents", {
42533
42559
  enumerable: true,
42534
- get: function () { return chunkVWX36C4Y_cjs.RunningSubagents; }
42560
+ get: function () { return chunkHKZT7K4L_cjs.RunningSubagents; }
42535
42561
  });
42536
42562
  Object.defineProperty(exports, "STANDARD_TIER_TAG", {
42537
42563
  enumerable: true,
42538
- get: function () { return chunkVWX36C4Y_cjs.STANDARD_TIER_TAG; }
42564
+ get: function () { return chunkHKZT7K4L_cjs.STANDARD_TIER_TAG; }
42539
42565
  });
42540
42566
  Object.defineProperty(exports, "WorkflowStepMessage", {
42541
42567
  enumerable: true,
42542
- get: function () { return chunkVWX36C4Y_cjs.WorkflowStepMessage; }
42568
+ get: function () { return chunkHKZT7K4L_cjs.WorkflowStepMessage; }
42543
42569
  });
42544
42570
  Object.defineProperty(exports, "backUpOnSignup", {
42545
42571
  enumerable: true,
42546
- get: function () { return chunkVWX36C4Y_cjs.backUpOnSignup; }
42572
+ get: function () { return chunkHKZT7K4L_cjs.backUpOnSignup; }
42547
42573
  });
42548
42574
  Object.defineProperty(exports, "defaultHost", {
42549
42575
  enumerable: true,
42550
- get: function () { return chunkVWX36C4Y_cjs.defaultHost; }
42576
+ get: function () { return chunkHKZT7K4L_cjs.defaultHost; }
42551
42577
  });
42552
42578
  Object.defineProperty(exports, "renderConnectedUser", {
42553
42579
  enumerable: true,
42554
- get: function () { return chunkVWX36C4Y_cjs.renderConnectedUser; }
42580
+ get: function () { return chunkHKZT7K4L_cjs.renderConnectedUser; }
42555
42581
  });
42556
42582
  Object.defineProperty(exports, "renderSessionStatusIcon", {
42557
42583
  enumerable: true,
42558
- get: function () { return chunkVWX36C4Y_cjs.renderSessionStatusIcon; }
42584
+ get: function () { return chunkHKZT7K4L_cjs.renderSessionStatusIcon; }
42559
42585
  });
42560
42586
  Object.defineProperty(exports, "resolveSsoName", {
42561
42587
  enumerable: true,
42562
- get: function () { return chunkVWX36C4Y_cjs.resolveSsoName; }
42588
+ get: function () { return chunkHKZT7K4L_cjs.resolveSsoName; }
42563
42589
  });
42564
42590
  Object.defineProperty(exports, "useAuthPages", {
42565
42591
  enumerable: true,
42566
- get: function () { return chunkVWX36C4Y_cjs.useAuthPages; }
42592
+ get: function () { return chunkHKZT7K4L_cjs.useAuthPages; }
42567
42593
  });
42568
42594
  Object.defineProperty(exports, "useContextualHints", {
42569
42595
  enumerable: true,
42570
- get: function () { return chunkVWX36C4Y_cjs.useContextualHints; }
42596
+ get: function () { return chunkHKZT7K4L_cjs.useContextualHints; }
42571
42597
  });
42572
42598
  Object.defineProperty(exports, "useModelPicker", {
42573
42599
  enumerable: true,
42574
- get: function () { return chunkVWX36C4Y_cjs.useModelPicker; }
42600
+ get: function () { return chunkHKZT7K4L_cjs.useModelPicker; }
42575
42601
  });
42576
42602
  Object.defineProperty(exports, "useOpenChunk", {
42577
42603
  enumerable: true,
42578
- get: function () { return chunkVWX36C4Y_cjs.useOpenChunk; }
42604
+ get: function () { return chunkHKZT7K4L_cjs.useOpenChunk; }
42579
42605
  });
42580
42606
  Object.defineProperty(exports, "useOpenWorkspaceIcon", {
42581
42607
  enumerable: true,
42582
- get: function () { return chunkVWX36C4Y_cjs.useOpenWorkspaceIcon; }
42608
+ get: function () { return chunkHKZT7K4L_cjs.useOpenWorkspaceIcon; }
42583
42609
  });
42584
42610
  Object.defineProperty(exports, "useSlashItems", {
42585
42611
  enumerable: true,
42586
- get: function () { return chunkVWX36C4Y_cjs.useSlashItems; }
42612
+ get: function () { return chunkHKZT7K4L_cjs.useSlashItems; }
42587
42613
  });
42588
42614
  Object.defineProperty(exports, "useSsoSignIn", {
42589
42615
  enumerable: true,
42590
- get: function () { return chunkVWX36C4Y_cjs.useSsoSignIn; }
42616
+ get: function () { return chunkHKZT7K4L_cjs.useSsoSignIn; }
42591
42617
  });
42592
42618
  Object.defineProperty(exports, "useWorkspaceDocTitles", {
42593
42619
  enumerable: true,
42594
- get: function () { return chunkVWX36C4Y_cjs.useWorkspaceDocTitles; }
42620
+ get: function () { return chunkHKZT7K4L_cjs.useWorkspaceDocTitles; }
42595
42621
  });
42596
42622
  Object.defineProperty(exports, "useConnectedThreadActivity", {
42597
42623
  enumerable: true,
42598
- get: function () { return chunkDBGN4M4F_cjs.useConnectedThreadActivity; }
42624
+ get: function () { return chunk3I335OG7_cjs.useConnectedThreadActivity; }
42599
42625
  });
42600
42626
  Object.defineProperty(exports, "DocumentUser", {
42601
42627
  enumerable: true,
42602
- get: function () { return chunkQIEUKIBH_cjs.DocumentUser; }
42628
+ get: function () { return chunkJTRMTIHN_cjs.DocumentUser; }
42603
42629
  });
42604
42630
  Object.defineProperty(exports, "EMBEDDED_SELECTED_DOCS_KEY", {
42605
42631
  enumerable: true,
@@ -42675,35 +42701,35 @@ Object.defineProperty(exports, "ConnectedDocumentToolsProvider", {
42675
42701
  });
42676
42702
  Object.defineProperty(exports, "FILES_PREFS_KEY", {
42677
42703
  enumerable: true,
42678
- get: function () { return chunkGE2O6S44_cjs.FILES_PREFS_KEY; }
42704
+ get: function () { return chunkMN622SFR_cjs.FILES_PREFS_KEY; }
42679
42705
  });
42680
42706
  Object.defineProperty(exports, "filesViewMode", {
42681
42707
  enumerable: true,
42682
- get: function () { return chunkGE2O6S44_cjs.filesViewMode; }
42708
+ get: function () { return chunkMN622SFR_cjs.filesViewMode; }
42683
42709
  });
42684
42710
  Object.defineProperty(exports, "useAiReviewStore", {
42685
42711
  enumerable: true,
42686
- get: function () { return chunkGE2O6S44_cjs.useAiReviewStore; }
42712
+ get: function () { return chunkMN622SFR_cjs.useAiReviewStore; }
42687
42713
  });
42688
42714
  Object.defineProperty(exports, "useFilesDialogs", {
42689
42715
  enumerable: true,
42690
- get: function () { return chunkGE2O6S44_cjs.useFilesDialogs; }
42716
+ get: function () { return chunkMN622SFR_cjs.useFilesDialogs; }
42691
42717
  });
42692
42718
  Object.defineProperty(exports, "useFilesGridStates", {
42693
42719
  enumerable: true,
42694
- get: function () { return chunkGE2O6S44_cjs.useFilesGridStates; }
42720
+ get: function () { return chunkMN622SFR_cjs.useFilesGridStates; }
42695
42721
  });
42696
42722
  Object.defineProperty(exports, "useFilesPrefs", {
42697
42723
  enumerable: true,
42698
- get: function () { return chunkGE2O6S44_cjs.useFilesPrefs; }
42724
+ get: function () { return chunkMN622SFR_cjs.useFilesPrefs; }
42699
42725
  });
42700
42726
  Object.defineProperty(exports, "useFilesStore", {
42701
42727
  enumerable: true,
42702
- get: function () { return chunkGE2O6S44_cjs.useFilesStore; }
42728
+ get: function () { return chunkMN622SFR_cjs.useFilesStore; }
42703
42729
  });
42704
42730
  Object.defineProperty(exports, "usePendingFolders", {
42705
42731
  enumerable: true,
42706
- get: function () { return chunkGE2O6S44_cjs.usePendingFolders; }
42732
+ get: function () { return chunkMN622SFR_cjs.usePendingFolders; }
42707
42733
  });
42708
42734
  Object.defineProperty(exports, "ConnectedMarkdown", {
42709
42735
  enumerable: true,
@@ -42735,67 +42761,67 @@ Object.defineProperty(exports, "useDocumentWorkspace", {
42735
42761
  });
42736
42762
  Object.defineProperty(exports, "ConnectedPendingSyncDialog", {
42737
42763
  enumerable: true,
42738
- get: function () { return chunk4P553YX2_cjs.ConnectedPendingSyncDialog; }
42764
+ get: function () { return chunkWVMOIMDQ_cjs.ConnectedPendingSyncDialog; }
42739
42765
  });
42740
42766
  Object.defineProperty(exports, "DocumentFolderCell", {
42741
42767
  enumerable: true,
42742
- get: function () { return chunk4P553YX2_cjs.DocumentFolderCell; }
42768
+ get: function () { return chunkWVMOIMDQ_cjs.DocumentFolderCell; }
42743
42769
  });
42744
42770
  Object.defineProperty(exports, "DocumentLabelsCell", {
42745
42771
  enumerable: true,
42746
- get: function () { return chunk4P553YX2_cjs.DocumentLabelsCell; }
42772
+ get: function () { return chunkWVMOIMDQ_cjs.DocumentLabelsCell; }
42747
42773
  });
42748
42774
  Object.defineProperty(exports, "DocumentNameCell", {
42749
42775
  enumerable: true,
42750
- get: function () { return chunk4P553YX2_cjs.DocumentNameCell; }
42776
+ get: function () { return chunkWVMOIMDQ_cjs.DocumentNameCell; }
42751
42777
  });
42752
42778
  Object.defineProperty(exports, "DocumentSharedCell", {
42753
42779
  enumerable: true,
42754
- get: function () { return chunk4P553YX2_cjs.DocumentSharedCell; }
42780
+ get: function () { return chunkWVMOIMDQ_cjs.DocumentSharedCell; }
42755
42781
  });
42756
42782
  Object.defineProperty(exports, "DocumentStatusGlyph", {
42757
42783
  enumerable: true,
42758
- get: function () { return chunk4P553YX2_cjs.DocumentStatusGlyph; }
42784
+ get: function () { return chunkWVMOIMDQ_cjs.DocumentStatusGlyph; }
42759
42785
  });
42760
42786
  Object.defineProperty(exports, "DocumentSyncGlyph", {
42761
42787
  enumerable: true,
42762
- get: function () { return chunk4P553YX2_cjs.DocumentSyncGlyph; }
42788
+ get: function () { return chunkWVMOIMDQ_cjs.DocumentSyncGlyph; }
42763
42789
  });
42764
42790
  Object.defineProperty(exports, "FileTooltipContent", {
42765
42791
  enumerable: true,
42766
- get: function () { return chunk4P553YX2_cjs.FileTooltipContent; }
42792
+ get: function () { return chunkWVMOIMDQ_cjs.FileTooltipContent; }
42767
42793
  });
42768
42794
  Object.defineProperty(exports, "RelatedDocumentsCell", {
42769
42795
  enumerable: true,
42770
- get: function () { return chunk4P553YX2_cjs.RelatedDocumentsCell; }
42796
+ get: function () { return chunkWVMOIMDQ_cjs.RelatedDocumentsCell; }
42771
42797
  });
42772
42798
  Object.defineProperty(exports, "StatusCell", {
42773
42799
  enumerable: true,
42774
- get: function () { return chunk4P553YX2_cjs.StatusCell; }
42800
+ get: function () { return chunkWVMOIMDQ_cjs.StatusCell; }
42775
42801
  });
42776
42802
  Object.defineProperty(exports, "UserAvatar", {
42777
42803
  enumerable: true,
42778
- get: function () { return chunk4P553YX2_cjs.UserAvatar; }
42804
+ get: function () { return chunkWVMOIMDQ_cjs.UserAvatar; }
42779
42805
  });
42780
42806
  Object.defineProperty(exports, "isActiveDocumentStatus", {
42781
42807
  enumerable: true,
42782
- get: function () { return chunk4P553YX2_cjs.isActiveDocumentStatus; }
42808
+ get: function () { return chunkWVMOIMDQ_cjs.isActiveDocumentStatus; }
42783
42809
  });
42784
42810
  Object.defineProperty(exports, "openPendingSyncDialog", {
42785
42811
  enumerable: true,
42786
- get: function () { return chunk4P553YX2_cjs.openPendingSyncDialog; }
42812
+ get: function () { return chunkWVMOIMDQ_cjs.openPendingSyncDialog; }
42787
42813
  });
42788
42814
  Object.defineProperty(exports, "parseQuotaError", {
42789
42815
  enumerable: true,
42790
- get: function () { return chunk4P553YX2_cjs.parseQuotaError; }
42816
+ get: function () { return chunkWVMOIMDQ_cjs.parseQuotaError; }
42791
42817
  });
42792
42818
  Object.defineProperty(exports, "startMenuItem", {
42793
42819
  enumerable: true,
42794
- get: function () { return chunk4P553YX2_cjs.startMenuItem; }
42820
+ get: function () { return chunkWVMOIMDQ_cjs.startMenuItem; }
42795
42821
  });
42796
42822
  Object.defineProperty(exports, "useDocumentFolders", {
42797
42823
  enumerable: true,
42798
- get: function () { return chunk4P553YX2_cjs.useDocumentFolders; }
42824
+ get: function () { return chunkWVMOIMDQ_cjs.useDocumentFolders; }
42799
42825
  });
42800
42826
  Object.defineProperty(exports, "useMeetingThreadMessages", {
42801
42827
  enumerable: true,