@arbidocs/blocks 0.4.155 → 0.4.156

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/dist/{ConnectedNativeDocxComparison-OLWRQSRS.js → ConnectedNativeDocxComparison-2PLOOXSH.js} +7 -7
  2. package/dist/{ConnectedNativeDocxComparison-OLWRQSRS.js.map → ConnectedNativeDocxComparison-2PLOOXSH.js.map} +1 -1
  3. package/dist/{ConnectedNativeDocxComparison-YORMOPPN.cjs → ConnectedNativeDocxComparison-S25BPUH5.cjs} +8 -8
  4. package/dist/{ConnectedNativeDocxComparison-YORMOPPN.cjs.map → ConnectedNativeDocxComparison-S25BPUH5.cjs.map} +1 -1
  5. package/dist/{ConnectedNativeDocxEditor-34EBIIFS.js → ConnectedNativeDocxEditor-JJAGMHZC.js} +5 -5
  6. package/dist/{ConnectedNativeDocxEditor-34EBIIFS.js.map → ConnectedNativeDocxEditor-JJAGMHZC.js.map} +1 -1
  7. package/dist/{ConnectedNativeDocxEditor-EHTWGGX3.cjs → ConnectedNativeDocxEditor-YA4HWLY4.cjs} +7 -7
  8. package/dist/{ConnectedNativeDocxEditor-EHTWGGX3.cjs.map → ConnectedNativeDocxEditor-YA4HWLY4.cjs.map} +1 -1
  9. package/dist/{ConnectedStreamedWordArtifact-5DK6QGYN.cjs → ConnectedStreamedWordArtifact-EXYZAU4Y.cjs} +8 -8
  10. package/dist/ConnectedStreamedWordArtifact-EXYZAU4Y.cjs.map +1 -0
  11. package/dist/{ConnectedStreamedWordArtifact-GLIDLSAS.js → ConnectedStreamedWordArtifact-YAAXY5KY.js} +7 -7
  12. package/dist/{ConnectedStreamedWordArtifact-GLIDLSAS.js.map → ConnectedStreamedWordArtifact-YAAXY5KY.js.map} +1 -1
  13. package/dist/{NativeDocxEditor-XT5ZLFGU.js → NativeDocxEditor-JBQMH3MP.js} +3 -3
  14. package/dist/{NativeDocxEditor-XT5ZLFGU.js.map → NativeDocxEditor-JBQMH3MP.js.map} +1 -1
  15. package/dist/{NativeDocxEditor-5VBNM5I7.cjs → NativeDocxEditor-M3I776GD.cjs} +7 -7
  16. package/dist/{NativeDocxEditor-5VBNM5I7.cjs.map → NativeDocxEditor-M3I776GD.cjs.map} +1 -1
  17. package/dist/agents/index.cjs +238 -238
  18. package/dist/agents/index.js +4 -4
  19. package/dist/chat/index.cjs +1 -1
  20. package/dist/chat/index.js +1 -1
  21. package/dist/{chunk-MF5KQ4PS.js → chunk-2CWM2CFZ.js} +4 -4
  22. package/dist/{chunk-MF5KQ4PS.js.map → chunk-2CWM2CFZ.js.map} +1 -1
  23. package/dist/{chunk-QKR5LWDO.js → chunk-6HG56GCT.js} +4 -4
  24. package/dist/{chunk-QKR5LWDO.js.map → chunk-6HG56GCT.js.map} +1 -1
  25. package/dist/{chunk-KHXEIEXN.js → chunk-7IRSCMNK.js} +3 -3
  26. package/dist/{chunk-KHXEIEXN.js.map → chunk-7IRSCMNK.js.map} +1 -1
  27. package/dist/{chunk-TZOQKV64.js → chunk-EWCJXUBP.js} +3 -3
  28. package/dist/{chunk-TZOQKV64.js.map → chunk-EWCJXUBP.js.map} +1 -1
  29. package/dist/{chunk-CU6LDQ57.js → chunk-F3EZDBDJ.js} +4 -4
  30. package/dist/{chunk-CU6LDQ57.js.map → chunk-F3EZDBDJ.js.map} +1 -1
  31. package/dist/{chunk-YF3QUHKN.cjs → chunk-FEGXFABZ.cjs} +3 -3
  32. package/dist/{chunk-YF3QUHKN.cjs.map → chunk-FEGXFABZ.cjs.map} +1 -1
  33. package/dist/{chunk-GC2FSPSQ.cjs → chunk-HDJRSCRE.cjs} +6 -6
  34. package/dist/{chunk-GC2FSPSQ.cjs.map → chunk-HDJRSCRE.cjs.map} +1 -1
  35. package/dist/{chunk-CQCNU5KT.cjs → chunk-IJEISII2.cjs} +6 -6
  36. package/dist/{chunk-CQCNU5KT.cjs.map → chunk-IJEISII2.cjs.map} +1 -1
  37. package/dist/{chunk-NPR5BGFF.cjs → chunk-JSQEAPTC.cjs} +26 -14
  38. package/dist/chunk-JSQEAPTC.cjs.map +1 -0
  39. package/dist/{chunk-6QAAIDQQ.cjs → chunk-O3FB62T5.cjs} +47 -47
  40. package/dist/{chunk-6QAAIDQQ.cjs.map → chunk-O3FB62T5.cjs.map} +1 -1
  41. package/dist/{chunk-265GOG4W.js → chunk-ONTUMV74.js} +26 -14
  42. package/dist/chunk-ONTUMV74.js.map +1 -0
  43. package/dist/chunk-OTU5KGQ6.cjs +18 -0
  44. package/dist/{chunk-HUATKA3M.cjs.map → chunk-OTU5KGQ6.cjs.map} +1 -1
  45. package/dist/{chunk-GO3BN76C.js → chunk-PGOSIJ2I.js} +3 -3
  46. package/dist/{chunk-GO3BN76C.js.map → chunk-PGOSIJ2I.js.map} +1 -1
  47. package/dist/chunk-S74QMZVZ.cjs +18 -0
  48. package/dist/{chunk-C3SMTA3C.cjs.map → chunk-S74QMZVZ.cjs.map} +1 -1
  49. package/dist/{chunk-KUT2Y7JF.cjs → chunk-TQIY2SVY.cjs} +5 -5
  50. package/dist/{chunk-KUT2Y7JF.cjs.map → chunk-TQIY2SVY.cjs.map} +1 -1
  51. package/dist/{chunk-MNG7N6M2.js → chunk-UKCCV63X.js} +4 -4
  52. package/dist/{chunk-MNG7N6M2.js.map → chunk-UKCCV63X.js.map} +1 -1
  53. package/dist/{chunk-B3FMUFAW.cjs → chunk-UKT3WH5Z.cjs} +3 -3
  54. package/dist/{chunk-B3FMUFAW.cjs.map → chunk-UKT3WH5Z.cjs.map} +1 -1
  55. package/dist/{chunk-P6RIBIVN.js → chunk-UPMADXDU.js} +3 -3
  56. package/dist/{chunk-P6RIBIVN.js.map → chunk-UPMADXDU.js.map} +1 -1
  57. package/dist/{chunk-757OYF6G.cjs → chunk-VY4UFXTM.cjs} +4 -4
  58. package/dist/{chunk-757OYF6G.cjs.map → chunk-VY4UFXTM.cjs.map} +1 -1
  59. package/dist/{chunk-WU34CHU5.js → chunk-YMQDDUKW.js} +3 -3
  60. package/dist/{chunk-WU34CHU5.js.map → chunk-YMQDDUKW.js.map} +1 -1
  61. package/dist/connect/docx.cjs +11 -11
  62. package/dist/connect/docx.js +7 -7
  63. package/dist/connect/index.cjs +137 -137
  64. package/dist/connect/index.js +16 -16
  65. package/dist/connect/viewer.cjs +10 -10
  66. package/dist/connect/viewer.js +10 -10
  67. package/dist/document-tools/index.cjs +1 -1
  68. package/dist/document-tools/index.js +1 -1
  69. package/dist/docx/index.cjs +47 -47
  70. package/dist/docx/index.js +3 -3
  71. package/dist/facts/index.cjs +54 -54
  72. package/dist/facts/index.js +4 -4
  73. package/dist/index.cjs +347 -347
  74. package/dist/index.js +8 -8
  75. package/dist/studio/index.cjs +1 -1
  76. package/dist/studio/index.js +1 -1
  77. package/dist/workflow-canvas/index.cjs +16 -16
  78. package/dist/workflow-canvas/index.js +4 -4
  79. package/node_modules/@arbidocs/coedit/dist/hocuspocus.cjs +96 -29
  80. package/node_modules/@arbidocs/coedit/dist/hocuspocus.cjs.map +1 -1
  81. package/node_modules/@arbidocs/coedit/dist/hocuspocus.d.cts +1 -1
  82. package/node_modules/@arbidocs/coedit/dist/hocuspocus.d.ts +1 -1
  83. package/node_modules/@arbidocs/coedit/dist/hocuspocus.js +98 -31
  84. package/node_modules/@arbidocs/coedit/dist/hocuspocus.js.map +1 -1
  85. package/node_modules/@arbidocs/coedit/dist/index.cjs +96 -29
  86. package/node_modules/@arbidocs/coedit/dist/index.cjs.map +1 -1
  87. package/node_modules/@arbidocs/coedit/dist/index.d.cts +1 -1
  88. package/node_modules/@arbidocs/coedit/dist/index.d.ts +1 -1
  89. package/node_modules/@arbidocs/coedit/dist/index.js +98 -31
  90. package/node_modules/@arbidocs/coedit/dist/index.js.map +1 -1
  91. package/node_modules/@arbidocs/coedit/dist/server.cjs +98 -33
  92. package/node_modules/@arbidocs/coedit/dist/server.cjs.map +1 -1
  93. package/node_modules/@arbidocs/coedit/dist/server.d.cts +1 -1
  94. package/node_modules/@arbidocs/coedit/dist/server.d.ts +1 -1
  95. package/node_modules/@arbidocs/coedit/dist/server.js +99 -34
  96. package/node_modules/@arbidocs/coedit/dist/server.js.map +1 -1
  97. package/node_modules/@arbidocs/coedit/dist/{session-Cf9iu1Vt.d.cts → session-WGvWs6yO.d.cts} +22 -4
  98. package/node_modules/@arbidocs/coedit/dist/{session-Cf9iu1Vt.d.ts → session-WGvWs6yO.d.ts} +22 -4
  99. package/node_modules/@arbidocs/coedit/package.json +1 -1
  100. package/package.json +5 -5
  101. package/dist/ConnectedStreamedWordArtifact-5DK6QGYN.cjs.map +0 -1
  102. package/dist/chunk-265GOG4W.js.map +0 -1
  103. package/dist/chunk-C3SMTA3C.cjs +0 -18
  104. package/dist/chunk-HUATKA3M.cjs +0 -18
  105. package/dist/chunk-NPR5BGFF.cjs.map +0 -1
@@ -9,51 +9,49 @@ var chunkOU3RGQFX_cjs = require('../chunk-OU3RGQFX.cjs');
9
9
  require('../chunk-REH7PX3N.cjs');
10
10
  var chunkSN2GZ4ZM_cjs = require('../chunk-SN2GZ4ZM.cjs');
11
11
  var chunkKBO75NLM_cjs = require('../chunk-KBO75NLM.cjs');
12
- var chunkCQCNU5KT_cjs = require('../chunk-CQCNU5KT.cjs');
12
+ var chunkIJEISII2_cjs = require('../chunk-IJEISII2.cjs');
13
13
  var chunk6I6CVX5G_cjs = require('../chunk-6I6CVX5G.cjs');
14
- var chunkWV4TD2HZ_cjs = require('../chunk-WV4TD2HZ.cjs');
15
- require('../chunk-223D4727.cjs');
16
14
  var chunkCB4TIDEX_cjs = require('../chunk-CB4TIDEX.cjs');
17
15
  var chunkFM3IRQJW_cjs = require('../chunk-FM3IRQJW.cjs');
18
16
  var chunkJH6JTI76_cjs = require('../chunk-JH6JTI76.cjs');
19
17
  require('../chunk-464YPRAE.cjs');
20
- require('../chunk-NPR5BGFF.cjs');
21
- var chunkB3FMUFAW_cjs = require('../chunk-B3FMUFAW.cjs');
22
- var chunk2WLXQGWC_cjs = require('../chunk-2WLXQGWC.cjs');
18
+ require('../chunk-JSQEAPTC.cjs');
19
+ var chunkUKT3WH5Z_cjs = require('../chunk-UKT3WH5Z.cjs');
23
20
  var chunk5FYU7ZIU_cjs = require('../chunk-5FYU7ZIU.cjs');
24
- var chunkGC2FSPSQ_cjs = require('../chunk-GC2FSPSQ.cjs');
21
+ var chunkWV4TD2HZ_cjs = require('../chunk-WV4TD2HZ.cjs');
22
+ require('../chunk-223D4727.cjs');
23
+ var chunk2WLXQGWC_cjs = require('../chunk-2WLXQGWC.cjs');
24
+ var chunkHDJRSCRE_cjs = require('../chunk-HDJRSCRE.cjs');
25
25
  var chunkXAJIKT6Y_cjs = require('../chunk-XAJIKT6Y.cjs');
26
+ require('../chunk-D54JXTPG.cjs');
26
27
  var chunkGOWXP5KT_cjs = require('../chunk-GOWXP5KT.cjs');
27
28
  var chunkQZTNTP75_cjs = require('../chunk-QZTNTP75.cjs');
28
29
  require('../chunk-PCB2BPN3.cjs');
29
30
  require('../chunk-NWNVWO6L.cjs');
30
31
  var chunkCROGFB46_cjs = require('../chunk-CROGFB46.cjs');
31
32
  require('../chunk-7G2LJMUG.cjs');
32
- require('../chunk-FAXXN7KI.cjs');
33
33
  var chunkV46W7YLI_cjs = require('../chunk-V46W7YLI.cjs');
34
34
  var chunkLJJJ6CYH_cjs = require('../chunk-LJJJ6CYH.cjs');
35
- require('../chunk-D54JXTPG.cjs');
36
35
  var chunkQT3A4PFC_cjs = require('../chunk-QT3A4PFC.cjs');
37
36
  var chunk4RPBUMHB_cjs = require('../chunk-4RPBUMHB.cjs');
38
37
  var chunkVPPX5XUF_cjs = require('../chunk-VPPX5XUF.cjs');
39
38
  var chunkRC25WMVB_cjs = require('../chunk-RC25WMVB.cjs');
40
- var chunkYF3QUHKN_cjs = require('../chunk-YF3QUHKN.cjs');
39
+ require('../chunk-FAXXN7KI.cjs');
40
+ var chunkFEGXFABZ_cjs = require('../chunk-FEGXFABZ.cjs');
41
41
  var chunkRFIBUWLF_cjs = require('../chunk-RFIBUWLF.cjs');
42
42
  var chunkYBJ4QGNH_cjs = require('../chunk-YBJ4QGNH.cjs');
43
43
  var chunkOALEDG67_cjs = require('../chunk-OALEDG67.cjs');
44
44
  var chunk2VHYOTWW_cjs = require('../chunk-2VHYOTWW.cjs');
45
45
  require('../chunk-ZW6FPIFC.cjs');
46
+ require('../chunk-AHDJXIUB.cjs');
46
47
  require('../chunk-SIB6C7P7.cjs');
47
48
  require('../chunk-DVUZTGVL.cjs');
48
- require('../chunk-AHDJXIUB.cjs');
49
49
  require('../chunk-3VULDTNL.cjs');
50
50
  var chunkV4ISCZJ7_cjs = require('../chunk-V4ISCZJ7.cjs');
51
51
  var chunk2EI7NCUA_cjs = require('../chunk-2EI7NCUA.cjs');
52
52
  var chunkC2CWWEHO_cjs = require('../chunk-C2CWWEHO.cjs');
53
53
  var chunkQVBZESYQ_cjs = require('../chunk-QVBZESYQ.cjs');
54
54
  require('../chunk-ADOKTJHV.cjs');
55
- var chunkLLYZGH3L_cjs = require('../chunk-LLYZGH3L.cjs');
56
- var chunkBIXHB4LV_cjs = require('../chunk-BIXHB4LV.cjs');
57
55
  var chunkDWZXSPMB_cjs = require('../chunk-DWZXSPMB.cjs');
58
56
  var chunk7RGLTF76_cjs = require('../chunk-7RGLTF76.cjs');
59
57
  var chunk5A2QQAF5_cjs = require('../chunk-5A2QQAF5.cjs');
@@ -61,11 +59,13 @@ require('../chunk-B6MVQCXW.cjs');
61
59
  var chunkJKB7WT7L_cjs = require('../chunk-JKB7WT7L.cjs');
62
60
  var chunkJSTKEZBS_cjs = require('../chunk-JSTKEZBS.cjs');
63
61
  require('../chunk-76L6LOP3.cjs');
64
- require('../chunk-32HW2Q33.cjs');
65
62
  require('../chunk-7UTB4PHM.cjs');
63
+ require('../chunk-32HW2Q33.cjs');
66
64
  var chunkFX3K6LNZ_cjs = require('../chunk-FX3K6LNZ.cjs');
67
65
  require('../chunk-PPCATBOY.cjs');
68
66
  require('../chunk-MHVNT4J3.cjs');
67
+ var chunkLLYZGH3L_cjs = require('../chunk-LLYZGH3L.cjs');
68
+ var chunkBIXHB4LV_cjs = require('../chunk-BIXHB4LV.cjs');
69
69
  var chunkQ7CQYYZW_cjs = require('../chunk-Q7CQYYZW.cjs');
70
70
  var chunkCNHUJRQ4_cjs = require('../chunk-CNHUJRQ4.cjs');
71
71
  var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.cjs');
@@ -164,7 +164,7 @@ function ConnectedWorkspaceActivity({
164
164
  [feed.data]
165
165
  );
166
166
  return /* @__PURE__ */ jsxRuntime.jsx(
167
- chunkGC2FSPSQ_cjs.WorkspaceActivityList,
167
+ chunkHDJRSCRE_cjs.WorkspaceActivityList,
168
168
  {
169
169
  ...listProps,
170
170
  items,
@@ -842,7 +842,7 @@ function ConnectedWorkspaceNotificationMenu({
842
842
  }, [error, notify14]);
843
843
  if (!workspaceId) return null;
844
844
  return /* @__PURE__ */ jsxRuntime.jsx(
845
- chunkGC2FSPSQ_cjs.WorkspaceNotificationMenu,
845
+ chunkHDJRSCRE_cjs.WorkspaceNotificationMenu,
846
846
  {
847
847
  ...menuProps,
848
848
  level,
@@ -861,7 +861,7 @@ function ConnectedThreadFollow({
861
861
  enabled: live
862
862
  });
863
863
  if (!conversationId) return null;
864
- const Control = as === "menu-item" ? chunkGC2FSPSQ_cjs.ThreadFollowMenuItem : chunkGC2FSPSQ_cjs.ThreadFollowButton;
864
+ const Control = as === "menu-item" ? chunkHDJRSCRE_cjs.ThreadFollowMenuItem : chunkHDJRSCRE_cjs.ThreadFollowButton;
865
865
  return /* @__PURE__ */ jsxRuntime.jsx(
866
866
  Control,
867
867
  {
@@ -934,7 +934,7 @@ function ConnectedSkillUpload({ onDone, labels, className }) {
934
934
  onChange: (e) => {
935
935
  const file = e.target.files?.[0];
936
936
  e.target.value = "";
937
- if (file) void add(() => chunkYF3QUHKN_cjs.importSkillFile(file));
937
+ if (file) void add(() => chunkFEGXFABZ_cjs.importSkillFile(file));
938
938
  }
939
939
  }
940
940
  ),
@@ -959,7 +959,7 @@ function ConnectedSkillUpload({ onDone, labels, className }) {
959
959
  className: "space-y-2",
960
960
  onSubmit: (e) => {
961
961
  e.preventDefault();
962
- if (url.trim()) void add(() => chunkYF3QUHKN_cjs.importSkillFromUrl(url));
962
+ if (url.trim()) void add(() => chunkFEGXFABZ_cjs.importSkillFromUrl(url));
963
963
  },
964
964
  children: [
965
965
  /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "skills-add-url", children: l.fromLink }),
@@ -1023,9 +1023,9 @@ function ConnectedSkillsLibrary({
1023
1023
  const [type, setType] = react.useState("all");
1024
1024
  const [view, setView] = react.useState("gallery");
1025
1025
  const [isBusy, setIsBusy] = react.useState(false);
1026
- const all = react.useMemo(() => chunkYF3QUHKN_cjs.buildLibrarySkills(builtins, listings ?? []), [builtins, listings]);
1026
+ const all = react.useMemo(() => chunkFEGXFABZ_cjs.buildLibrarySkills(builtins, listings ?? []), [builtins, listings]);
1027
1027
  const shown = react.useMemo(
1028
- () => chunkYF3QUHKN_cjs.filterLibrarySkills(all, { query, source, type }),
1028
+ () => chunkFEGXFABZ_cjs.filterLibrarySkills(all, { query, source, type }),
1029
1029
  [all, query, source, type]
1030
1030
  );
1031
1031
  const current = all.find((s) => s.slug === selected) ?? null;
@@ -1036,21 +1036,21 @@ function ConnectedSkillsLibrary({
1036
1036
  const count = (s) => all.filter((x) => x.source === s).length;
1037
1037
  const sourceOptions = [
1038
1038
  { id: "all", label: "All", count: all.length },
1039
- { id: "builtin", label: chunkYF3QUHKN_cjs.SKILL_SOURCE_LABELS.builtin, count: count("builtin") },
1040
- { id: "mine", label: chunkYF3QUHKN_cjs.SKILL_SOURCE_LABELS.mine, count: count("mine") },
1041
- { id: "shared", label: chunkYF3QUHKN_cjs.SKILL_SOURCE_LABELS.shared, count: count("shared") }
1039
+ { id: "builtin", label: chunkFEGXFABZ_cjs.SKILL_SOURCE_LABELS.builtin, count: count("builtin") },
1040
+ { id: "mine", label: chunkFEGXFABZ_cjs.SKILL_SOURCE_LABELS.mine, count: count("mine") },
1041
+ { id: "shared", label: chunkFEGXFABZ_cjs.SKILL_SOURCE_LABELS.shared, count: count("shared") }
1042
1042
  ];
1043
1043
  const types = [...new Set(all.map((s) => s.type))];
1044
1044
  const typeOptions = [
1045
1045
  { id: "all", label: "Any kind" },
1046
- ...types.map((t) => ({ id: t, label: chunkYF3QUHKN_cjs.SKILL_TYPE_LABELS[t] ?? t }))
1046
+ ...types.map((t) => ({ id: t, label: chunkFEGXFABZ_cjs.SKILL_TYPE_LABELS[t] ?? t }))
1047
1047
  ];
1048
1048
  const pick = (slug) => {
1049
1049
  setSelected(slug);
1050
1050
  setMode("detail");
1051
1051
  };
1052
1052
  const markdownOf = async (skill) => {
1053
- if (!skill.docExtId) return chunkYF3QUHKN_cjs.workflowToSkillMarkdown(skill.workflow);
1053
+ if (!skill.docExtId) return chunkFEGXFABZ_cjs.workflowToSkillMarkdown(skill.workflow);
1054
1054
  const response = await arbi.documents.download(skill.docExtId);
1055
1055
  if (!response.ok) throw new Error(`Could not read the skill (${response.status})`);
1056
1056
  return response.text();
@@ -1058,7 +1058,7 @@ function ConnectedSkillsLibrary({
1058
1058
  const saveAs = (slug, markdown, shared = false) => upload.mutateAsync([
1059
1059
  {
1060
1060
  folder: `${SKILL_FOLDER}${slug}`,
1061
- fileName: chunkYF3QUHKN_cjs.SKILL_MAIN_FILENAME,
1061
+ fileName: chunkFEGXFABZ_cjs.SKILL_MAIN_FILENAME,
1062
1062
  content: new Blob([markdown], { type: "text/markdown" }),
1063
1063
  shared
1064
1064
  }
@@ -1121,7 +1121,7 @@ function ConnectedSkillsLibrary({
1121
1121
  try {
1122
1122
  documentTools.downloadBlob(
1123
1123
  new Blob([await markdownOf(skill)], { type: "text/markdown" }),
1124
- chunkYF3QUHKN_cjs.SKILL_MAIN_FILENAME
1124
+ chunkFEGXFABZ_cjs.SKILL_MAIN_FILENAME
1125
1125
  );
1126
1126
  } catch (error) {
1127
1127
  notify14(errorText(error, "Could not export the skill"), "error");
@@ -1162,10 +1162,10 @@ function ConnectedSkillsLibrary({
1162
1162
  }
1163
1163
  )
1164
1164
  ] }),
1165
- /* @__PURE__ */ jsxRuntime.jsx(chunkYF3QUHKN_cjs.SkillViewToggle, { value: view, onChange: setView })
1165
+ /* @__PURE__ */ jsxRuntime.jsx(chunkFEGXFABZ_cjs.SkillViewToggle, { value: view, onChange: setView })
1166
1166
  ] }),
1167
1167
  /* @__PURE__ */ jsxRuntime.jsx(
1168
- chunkYF3QUHKN_cjs.SkillFilterChips,
1168
+ chunkFEGXFABZ_cjs.SkillFilterChips,
1169
1169
  {
1170
1170
  label: "Show",
1171
1171
  value: source,
@@ -1174,7 +1174,7 @@ function ConnectedSkillsLibrary({
1174
1174
  }
1175
1175
  ),
1176
1176
  types.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
1177
- chunkYF3QUHKN_cjs.SkillFilterChips,
1177
+ chunkFEGXFABZ_cjs.SkillFilterChips,
1178
1178
  {
1179
1179
  label: "Kind",
1180
1180
  value: type,
@@ -1221,12 +1221,12 @@ function ConnectedSkillsLibrary({
1221
1221
  view === "gallery" ? "grid grid-cols-[repeat(auto-fill,minmax(9.5rem,1fr))]" : "flex flex-col"
1222
1222
  ),
1223
1223
  children: shown.map((skill) => /* @__PURE__ */ jsxRuntime.jsx(
1224
- chunkYF3QUHKN_cjs.SkillTile,
1224
+ chunkFEGXFABZ_cjs.SkillTile,
1225
1225
  {
1226
1226
  name: skill.title,
1227
1227
  testId: `skill-tile-${skill.slug}`,
1228
1228
  description: skill.description,
1229
- sourceLabel: skill.isShared ? `${chunkYF3QUHKN_cjs.SKILL_SOURCE_LABELS.mine}, shared` : chunkYF3QUHKN_cjs.SKILL_SOURCE_LABELS[skill.source],
1229
+ sourceLabel: skill.isShared ? `${chunkFEGXFABZ_cjs.SKILL_SOURCE_LABELS.mine}, shared` : chunkFEGXFABZ_cjs.SKILL_SOURCE_LABELS[skill.source],
1230
1230
  type: skill.type,
1231
1231
  icon,
1232
1232
  layout: view,
@@ -1261,7 +1261,7 @@ function ConnectedSkillsLibrary({
1261
1261
  }
1262
1262
  ),
1263
1263
  mode === "new" && /* @__PURE__ */ jsxRuntime.jsx(
1264
- chunkYF3QUHKN_cjs.SkillGenerateForm,
1264
+ chunkFEGXFABZ_cjs.SkillGenerateForm,
1265
1265
  {
1266
1266
  icon,
1267
1267
  onGenerate: (desc) => {
@@ -1288,11 +1288,11 @@ function ConnectedSkillsLibrary({
1288
1288
  ),
1289
1289
  mode === "add" && /* @__PURE__ */ jsxRuntime.jsx(ConnectedSkillUpload, { onDone: done }),
1290
1290
  mode === "detail" && current && /* @__PURE__ */ jsxRuntime.jsx(
1291
- chunkYF3QUHKN_cjs.SkillLibraryDetail,
1291
+ chunkFEGXFABZ_cjs.SkillLibraryDetail,
1292
1292
  {
1293
1293
  skill: current,
1294
1294
  icon,
1295
- instructions: current.docExtId ? currentText ? chunkYF3QUHKN_cjs.parseSkillFrontmatter(currentText, chunkYF3QUHKN_cjs.SKILL_MAIN_FILENAME).content : "" : current.workflow.run.kind === "prompt" ? current.workflow.run.promptTemplate : "",
1295
+ instructions: current.docExtId ? currentText ? chunkFEGXFABZ_cjs.parseSkillFrontmatter(currentText, chunkFEGXFABZ_cjs.SKILL_MAIN_FILENAME).content : "" : current.workflow.run.kind === "prompt" ? current.workflow.run.promptTemplate : "",
1296
1296
  isLoading: !!current.docExtId && textLoading,
1297
1297
  actions: {
1298
1298
  onRun: () => onRun(current.slug),
@@ -1327,7 +1327,7 @@ function SkillEditor({
1327
1327
  const [seeded, setSeeded] = react.useState(!isEditing);
1328
1328
  const [nameError, setNameError] = react.useState(null);
1329
1329
  if (isEditing && !seeded && text !== void 0) {
1330
- const parsed = chunkYF3QUHKN_cjs.parseSkillFrontmatter(text, chunkYF3QUHKN_cjs.SKILL_MAIN_FILENAME);
1330
+ const parsed = chunkFEGXFABZ_cjs.parseSkillFrontmatter(text, chunkFEGXFABZ_cjs.SKILL_MAIN_FILENAME);
1331
1331
  setDescription(parsed.description ?? "");
1332
1332
  setBody(parsed.content ?? "");
1333
1333
  setSeeded(true);
@@ -1341,15 +1341,15 @@ function SkillEditor({
1341
1341
  notify14("Add a short description.", "error");
1342
1342
  return;
1343
1343
  }
1344
- const slug = chunkYF3QUHKN_cjs.skillSlug(name);
1344
+ const slug = chunkFEGXFABZ_cjs.skillSlug(name);
1345
1345
  try {
1346
- await onSave(slug, chunkYF3QUHKN_cjs.serializeSkill({ name: slug, description, body }), isEditing);
1346
+ await onSave(slug, chunkFEGXFABZ_cjs.serializeSkill({ name: slug, description, body }), isEditing);
1347
1347
  } catch (err) {
1348
1348
  notify14(errorText(err, "Could not save the skill"), "error");
1349
1349
  }
1350
1350
  };
1351
1351
  return /* @__PURE__ */ jsxRuntime.jsx(
1352
- chunkYF3QUHKN_cjs.SkillEditForm,
1352
+ chunkFEGXFABZ_cjs.SkillEditForm,
1353
1353
  {
1354
1354
  name,
1355
1355
  onNameChange: setName,
@@ -1385,9 +1385,9 @@ function ConnectedAgentCreator({
1385
1385
  agent,
1386
1386
  initialName,
1387
1387
  onSaved,
1388
- capabilities = chunkYF3QUHKN_cjs.DEFAULT_AGENT_CAPABILITIES,
1389
- templates = chunkYF3QUHKN_cjs.DEFAULT_AGENT_TEMPLATES,
1390
- types = chunkYF3QUHKN_cjs.DEFAULT_AGENT_TYPES,
1388
+ capabilities = chunkFEGXFABZ_cjs.DEFAULT_AGENT_CAPABILITIES,
1389
+ templates = chunkFEGXFABZ_cjs.DEFAULT_AGENT_TEMPLATES,
1390
+ types = chunkFEGXFABZ_cjs.DEFAULT_AGENT_TYPES,
1391
1391
  canRevokeWorkspaces = false,
1392
1392
  labels
1393
1393
  }) {
@@ -1429,7 +1429,7 @@ function ConnectedAgentCreator({
1429
1429
  const initialValues = react.useMemo(
1430
1430
  () => ({
1431
1431
  name: agent?.given_name ?? initialName ?? "",
1432
- persona: isEdit ? chunkYF3QUHKN_cjs.stripPersonaPreamble(String(agents.PERSONA ?? "")) : "",
1432
+ persona: isEdit ? chunkFEGXFABZ_cjs.stripPersonaPreamble(String(agents.PERSONA ?? "")) : "",
1433
1433
  modelName: String(agents.AGENT_MODEL_NAME ?? ""),
1434
1434
  capabilities: Object.fromEntries(capabilities.map(({ key }) => [key, Boolean(agents[key])])),
1435
1435
  type: "builtin",
@@ -1448,7 +1448,7 @@ function ConnectedAgentCreator({
1448
1448
  try {
1449
1449
  let agentExtId = agent?.external_id ?? early?.id ?? "";
1450
1450
  if (!agentExtId) {
1451
- if (!chunkYF3QUHKN_cjs.isValidAgentName(values.name)) {
1451
+ if (!chunkFEGXFABZ_cjs.isValidAgentName(values.name)) {
1452
1452
  notify14("Give the agent a name first.", "error");
1453
1453
  return;
1454
1454
  }
@@ -1484,7 +1484,7 @@ function ConnectedAgentCreator({
1484
1484
  title: `agent-${name}`,
1485
1485
  sections: {
1486
1486
  Agents: {
1487
- PERSONA: chunkYF3QUHKN_cjs.composePersona(name, values.persona),
1487
+ PERSONA: chunkFEGXFABZ_cjs.composePersona(name, values.persona),
1488
1488
  ...values.modelName ? { AGENT_MODEL_NAME: values.modelName } : {},
1489
1489
  ...Object.fromEntries(capabilities.map(({ key }) => [key, !!values.capabilities[key]])),
1490
1490
  ENABLED_SKILLS: values.capabilities.SKILLS_ENABLED && skills.length ? skills : null,
@@ -1507,7 +1507,7 @@ function ConnectedAgentCreator({
1507
1507
  };
1508
1508
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1509
1509
  /* @__PURE__ */ jsxRuntime.jsx(
1510
- chunkYF3QUHKN_cjs.AgentCreator,
1510
+ chunkFEGXFABZ_cjs.AgentCreator,
1511
1511
  {
1512
1512
  open: ready,
1513
1513
  onOpenChange,
@@ -1523,11 +1523,11 @@ function ConnectedAgentCreator({
1523
1523
  ) : void 0,
1524
1524
  revokingWorkspaceId: revokeAccess.isPending ? revokeAccess.variables?.workspaceId : void 0,
1525
1525
  avatar: (values) => /* @__PURE__ */ jsxRuntime.jsx(
1526
- chunkYF3QUHKN_cjs.AgentAvatarField,
1526
+ chunkFEGXFABZ_cjs.AgentAvatarField,
1527
1527
  {
1528
1528
  picture,
1529
1529
  isBusy: avatarBusy,
1530
- canGenerate: isEdit || chunkYF3QUHKN_cjs.isValidAgentName(values.name),
1530
+ canGenerate: isEdit || chunkFEGXFABZ_cjs.isValidAgentName(values.name),
1531
1531
  onGenerate: () => handleGenerateAvatar(values)
1532
1532
  }
1533
1533
  ),
@@ -1579,7 +1579,7 @@ function ConnectedAgentCreator({
1579
1579
  /* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { children: "Connect your agent" }),
1580
1580
  /* @__PURE__ */ jsxRuntime.jsx(ui.DialogDescription, { children: "This key is shown once. Run the script on the machine that will host the agent." })
1581
1581
  ] }),
1582
- connect && /* @__PURE__ */ jsxRuntime.jsx(chunkYF3QUHKN_cjs.AgentConnectInstructions, { email: connect.email, signingKey: connect.signingKey })
1582
+ connect && /* @__PURE__ */ jsxRuntime.jsx(chunkFEGXFABZ_cjs.AgentConnectInstructions, { email: connect.email, signingKey: connect.signingKey })
1583
1583
  ]
1584
1584
  }
1585
1585
  ) })
@@ -1616,7 +1616,7 @@ function ConnectedWorkflowHistory({
1616
1616
  const { openConversation } = chunkCNHUJRQ4_cjs.useBlocksEnvironment();
1617
1617
  const { data: runs = [], isLoading } = react$1.useWorkflowRuns(workflow?.external_id);
1618
1618
  return /* @__PURE__ */ jsxRuntime.jsx(
1619
- chunkYF3QUHKN_cjs.TaskRunsDialog,
1619
+ chunkFEGXFABZ_cjs.TaskRunsDialog,
1620
1620
  {
1621
1621
  inline,
1622
1622
  hideHeader,
@@ -1652,7 +1652,7 @@ function ConnectedTaskActivityDialog({
1652
1652
  const activity = react$1.useConversationActivity(conversationId, { live });
1653
1653
  const { data: agents = [] } = react$1.useAgents();
1654
1654
  const { userId } = chunkFM3IRQJW_cjs.useConnectedWorkspace();
1655
- const { members } = chunkCQCNU5KT_cjs.useConnectedWorkspaceRole();
1655
+ const { members } = chunkIJEISII2_cjs.useConnectedWorkspaceRole();
1656
1656
  const renderPerson = react.useCallback(
1657
1657
  (id) => {
1658
1658
  const isMe = !!id && id === userId;
@@ -1668,7 +1668,7 @@ function ConnectedTaskActivityDialog({
1668
1668
  [agents]
1669
1669
  );
1670
1670
  return /* @__PURE__ */ jsxRuntime.jsx(
1671
- chunkYF3QUHKN_cjs.TaskActivityDialog,
1671
+ chunkFEGXFABZ_cjs.TaskActivityDialog,
1672
1672
  {
1673
1673
  open: true,
1674
1674
  onOpenChange: (open) => !open && onClose(),
@@ -1814,7 +1814,7 @@ function useWorkflowThread(workflow, options2 = {}) {
1814
1814
  );
1815
1815
  const conversation = conversations.data?.find((c) => c.external_id === threadId);
1816
1816
  const steps = react.useMemo(
1817
- () => chunkJSTKEZBS_cjs.workflowSteps(workflow).length > 0 ? chunkJSTKEZBS_cjs.workflowSteps(workflow) : chunkYF3QUHKN_cjs.fromPlanSteps(conversation?.plan?.steps ?? []),
1817
+ () => chunkJSTKEZBS_cjs.workflowSteps(workflow).length > 0 ? chunkJSTKEZBS_cjs.workflowSteps(workflow) : chunkFEGXFABZ_cjs.fromPlanSteps(conversation?.plan?.steps ?? []),
1818
1818
  [workflow, conversation?.plan?.steps]
1819
1819
  );
1820
1820
  const activity = react$1.useConversationActivity(threadId, { live: !!threadId });
@@ -1874,7 +1874,7 @@ function useWorkflowThread(workflow, options2 = {}) {
1874
1874
  criteria: [],
1875
1875
  max_passes: 3,
1876
1876
  documents: [],
1877
- steps: chunkYF3QUHKN_cjs.toPlanSteps(workflow, {
1877
+ steps: chunkFEGXFABZ_cjs.toPlanSteps(workflow, {
1878
1878
  inputs: values,
1879
1879
  resolveWorkflow: options2.resolveWorkflow,
1880
1880
  compose: options2.compose
@@ -1961,7 +1961,7 @@ function useWorkflowThread(workflow, options2 = {}) {
1961
1961
  const anyRunning = Object.values(states).some((s) => s.status === "running");
1962
1962
  const needsStart = !threadId || idle && !anyRunning;
1963
1963
  const runError = idle ? conversation?.last_error ?? null : null;
1964
- const view = chunkYF3QUHKN_cjs.useWorkflowView({
1964
+ const view = chunkFEGXFABZ_cjs.useWorkflowView({
1965
1965
  steps,
1966
1966
  states,
1967
1967
  inputs,
@@ -2129,7 +2129,7 @@ function WorkflowWordDialog({
2129
2129
  title: title ?? labels.wordTitle,
2130
2130
  size: "xl",
2131
2131
  testId: "workflow-word-dialog",
2132
- children: /* @__PURE__ */ jsxRuntime.jsx(chunkULWRNGGE_cjs.ModalScaffold.Body, { className: "h-[70dvh] p-0", children: /* @__PURE__ */ jsxRuntime.jsx(chunkCQCNU5KT_cjs.ConnectedNativeDocxEditor, { documentId: id, title: title ?? labels.wordTitle }) })
2132
+ children: /* @__PURE__ */ jsxRuntime.jsx(chunkULWRNGGE_cjs.ModalScaffold.Body, { className: "h-[70dvh] p-0", children: /* @__PURE__ */ jsxRuntime.jsx(chunkIJEISII2_cjs.ConnectedNativeDocxEditor, { documentId: id, title: title ?? labels.wordTitle }) })
2133
2133
  }
2134
2134
  );
2135
2135
  }
@@ -2438,7 +2438,7 @@ function ConnectedWorkflowRunner({
2438
2438
  );
2439
2439
  };
2440
2440
  const runner = (compact) => /* @__PURE__ */ jsxRuntime.jsx(
2441
- chunkYF3QUHKN_cjs.WorkflowRunner,
2441
+ chunkFEGXFABZ_cjs.WorkflowRunner,
2442
2442
  {
2443
2443
  people,
2444
2444
  ...runnerProps,
@@ -2484,7 +2484,7 @@ function ConnectedWorkflowRunner({
2484
2484
  ) }),
2485
2485
  inThread && conversationId ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2486
2486
  /* @__PURE__ */ jsxRuntime.jsx(
2487
- chunkYF3QUHKN_cjs.WorkflowStepBar,
2487
+ chunkFEGXFABZ_cjs.WorkflowStepBar,
2488
2488
  {
2489
2489
  run: view,
2490
2490
  levels: chunkJSTKEZBS_cjs.stepLevels(view.steps),
@@ -2775,7 +2775,7 @@ function ConnectedTagTable({
2775
2775
  const fail = (fallback) => (e) => notify14(browser.refusalReason(e, fallback), "error");
2776
2776
  const snapshot2 = (data) => {
2777
2777
  const title = exportTitle ?? ui.tagKindTitle(kind, { plural: true });
2778
- const bytes = chunkGC2FSPSQ_cjs.tagTableDocx(data, {
2778
+ const bytes = chunkHDJRSCRE_cjs.tagTableDocx(data, {
2779
2779
  title,
2780
2780
  nameOf: (id) => people.find((p) => p.value === id)?.label
2781
2781
  });
@@ -2784,7 +2784,7 @@ function ConnectedTagTable({
2784
2784
  return { blob: new Blob([bytes], { type: chunkQT3A4PFC_cjs.DOCX_MIME_TYPE }), name };
2785
2785
  };
2786
2786
  return /* @__PURE__ */ jsxRuntime.jsx(
2787
- chunkGC2FSPSQ_cjs.TagTable,
2787
+ chunkHDJRSCRE_cjs.TagTable,
2788
2788
  {
2789
2789
  ...props,
2790
2790
  table,
@@ -2825,7 +2825,7 @@ function DocTagPassages({ docId, tagId, label, docOf, testId }) {
2825
2825
  const [open, setOpen] = react.useState(false);
2826
2826
  const doctag = docOf(docId)?.doctags?.find((dt) => dt.tag_ext_id === tagId);
2827
2827
  const citations = react.useMemo(
2828
- () => chunkB3FMUFAW_cjs.toFactCitations(doctag?.citations) ?? [],
2828
+ () => chunkUKT3WH5Z_cjs.toFactCitations(doctag?.citations) ?? [],
2829
2829
  [doctag?.citations]
2830
2830
  );
2831
2831
  const { quoteFor, orderOf } = react$1.usePassageQuotes(
@@ -2834,7 +2834,7 @@ function DocTagPassages({ docId, tagId, label, docOf, testId }) {
2834
2834
  const { openDocument } = chunkCNHUJRQ4_cjs.useBlocksEnvironment();
2835
2835
  const viewingPassageId = react$1.useArbiSessionState((s) => s.viewingDocument?.passageId ?? null);
2836
2836
  const id = testId ?? `doctag-passages-${docId}`;
2837
- const refOf = (cited) => chunkB3FMUFAW_cjs.citedVersionRef(cited.doc_ext_id, cited.version, docOf(cited.doc_ext_id)?.current_version);
2837
+ const refOf = (cited) => chunkUKT3WH5Z_cjs.citedVersionRef(cited.doc_ext_id, cited.version, docOf(cited.doc_ext_id)?.current_version);
2838
2838
  const ordered = (cited) => [...cited.chunks].sort((a, b) => {
2839
2839
  const oa = orderOf(a.chunk_id);
2840
2840
  const ob = orderOf(b.chunk_id);
@@ -2865,7 +2865,7 @@ function DocTagPassages({ docId, tagId, label, docOf, testId }) {
2865
2865
  const doc = docOf(cited.doc_ext_id);
2866
2866
  const passages = ordered(cited);
2867
2867
  return /* @__PURE__ */ jsxRuntime.jsx(
2868
- chunkB3FMUFAW_cjs.FactSourceGroup,
2868
+ chunkUKT3WH5Z_cjs.FactSourceGroup,
2869
2869
  {
2870
2870
  docId: cited.doc_ext_id,
2871
2871
  hasPassages: passages.length > 0,
@@ -2922,9 +2922,9 @@ function GlossaryExport({ labelId, nameOf }) {
2922
2922
  const narrowed = agreements.find((a) => a.id === narrowTo);
2923
2923
  const title = narrowed ? `Glossary - ${narrowed.name}` : "Glossary";
2924
2924
  const download = (format) => {
2925
- const entries = chunkGC2FSPSQ_cjs.glossaryEntries(sources, { labelId: narrowed?.id });
2926
- const blob = format === "docx" ? new Blob([chunkGC2FSPSQ_cjs.glossaryDocx(entries, { title })], { type: chunkQT3A4PFC_cjs.DOCX_MIME_TYPE }) : new Blob([chunkGC2FSPSQ_cjs.glossaryMarkdown(entries, { title })], { type: "text/markdown" });
2927
- documentTools.downloadBlob(blob, chunkGC2FSPSQ_cjs.glossaryFileName(title, format));
2925
+ const entries = chunkHDJRSCRE_cjs.glossaryEntries(sources, { labelId: narrowed?.id });
2926
+ const blob = format === "docx" ? new Blob([chunkHDJRSCRE_cjs.glossaryDocx(entries, { title })], { type: chunkQT3A4PFC_cjs.DOCX_MIME_TYPE }) : new Blob([chunkHDJRSCRE_cjs.glossaryMarkdown(entries, { title })], { type: "text/markdown" });
2927
+ documentTools.downloadBlob(blob, chunkHDJRSCRE_cjs.glossaryFileName(title, format));
2928
2928
  };
2929
2929
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", "data-testid": "tags-glossary", children: [
2930
2930
  agreements.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
@@ -3143,7 +3143,7 @@ function KindSection({
3143
3143
  {
3144
3144
  testId: `tags-kind-${kind}`,
3145
3145
  title: ui.tagKindTitle(kind, { plural: true }),
3146
- description: chunkGC2FSPSQ_cjs.tagKindDescription(kind),
3146
+ description: chunkHDJRSCRE_cjs.tagKindDescription(kind),
3147
3147
  actions: picker,
3148
3148
  children: [
3149
3149
  browser.isEntityTag({ kind }) && extractingCount > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
@@ -3154,9 +3154,9 @@ function KindSection({
3154
3154
  children: [
3155
3155
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-4 animate-spin" }),
3156
3156
  "Extracting ",
3157
- chunkGC2FSPSQ_cjs.entitiesPhrase().toLowerCase(),
3157
+ chunkHDJRSCRE_cjs.entitiesPhrase().toLowerCase(),
3158
3158
  " from ",
3159
- chunkGC2FSPSQ_cjs.documentCount(extractingCount),
3159
+ chunkHDJRSCRE_cjs.documentCount(extractingCount),
3160
3160
  "\u2026"
3161
3161
  ]
3162
3162
  }
@@ -3174,7 +3174,7 @@ function KindSection({
3174
3174
  onOpenDocument: (id) => openDocument(id),
3175
3175
  onOpenFact: ctx.onOpenFact,
3176
3176
  onOpenThread: (id) => openConversation(id),
3177
- labels: chunkGC2FSPSQ_cjs.tagTableLabels(kind),
3177
+ labels: chunkHDJRSCRE_cjs.tagTableLabels(kind),
3178
3178
  testId: `tags-table-${kind}`
3179
3179
  }
3180
3180
  )
@@ -3276,12 +3276,12 @@ function TagSection({
3276
3276
  onOpenDocument: (id) => openDocument(id),
3277
3277
  onOpenFact: ctx.onOpenFact,
3278
3278
  onOpenThread: (id) => openConversation(id),
3279
- labels: chunkGC2FSPSQ_cjs.tagTableLabels(tag.kind),
3279
+ labels: chunkHDJRSCRE_cjs.tagTableLabels(tag.kind),
3280
3280
  testId: "tags-rows"
3281
3281
  }
3282
3282
  ),
3283
3283
  /* @__PURE__ */ jsxRuntime.jsx(
3284
- chunkGC2FSPSQ_cjs.TagDetail,
3284
+ chunkHDJRSCRE_cjs.TagDetail,
3285
3285
  {
3286
3286
  row: detailRow && narrowTagRow(detailRow, ctx.filter.matches),
3287
3287
  fields: schema.data?.fields ?? [],
@@ -3293,10 +3293,10 @@ function TagSection({
3293
3293
  onOpenDocument: (id) => openDocument(id),
3294
3294
  onOpenFact: ctx.onOpenFact,
3295
3295
  onOpenThread: (id) => openConversation(id),
3296
- noteLabel: chunkGC2FSPSQ_cjs.tagNoteLabel(tag.kind),
3296
+ noteLabel: chunkHDJRSCRE_cjs.tagNoteLabel(tag.kind),
3297
3297
  noteIsValue: tag.kind === "annotation",
3298
3298
  renderPassages: (d, label) => renderPassages(d.doc_ext_id, label),
3299
- labels: chunkGC2FSPSQ_cjs.tagDetailLabels(),
3299
+ labels: chunkHDJRSCRE_cjs.tagDetailLabels(),
3300
3300
  testId: "tags-detail"
3301
3301
  }
3302
3302
  )
@@ -3385,7 +3385,7 @@ function ConnectedTagsPage({
3385
3385
  const onDelete = async (t) => {
3386
3386
  const nested = browser.getChildTags([...tags], t.external_id);
3387
3387
  const uses = browser.tagUseCount(t);
3388
- const n2 = chunkGC2FSPSQ_cjs.tagsPageNouns();
3388
+ const n2 = chunkHDJRSCRE_cjs.tagsPageNouns();
3389
3389
  const tagNoun = (count) => (count === 1 ? n2.tag : n2.tags).toLowerCase();
3390
3390
  const carriers = uses === 1 ? `${n2.document}, ${n2.fact} or ${n2.thread}` : `${n2.documents}, ${n2.facts} and ${n2.threads}`;
3391
3391
  const message = `Delete ${ui.tagKindNouns(t.kind).singular} "${t.name}"?` + (uses > 0 ? `
@@ -3406,16 +3406,16 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
3406
3406
  try {
3407
3407
  await extract.mutateAsync(docIds);
3408
3408
  notify14(
3409
- `Extracting ${chunkGC2FSPSQ_cjs.entitiesPhrase().toLowerCase()} from ${chunkGC2FSPSQ_cjs.documentCount(docIds.length)}. You will be notified when it is done.`,
3409
+ `Extracting ${chunkHDJRSCRE_cjs.entitiesPhrase().toLowerCase()} from ${chunkHDJRSCRE_cjs.documentCount(docIds.length)}. You will be notified when it is done.`,
3410
3410
  "info"
3411
3411
  );
3412
3412
  } catch (error) {
3413
- notify14(browser.refusalReason(error, `Could not extract ${chunkGC2FSPSQ_cjs.entitiesPhrase().toLowerCase()}`), "error");
3413
+ notify14(browser.refusalReason(error, `Could not extract ${chunkHDJRSCRE_cjs.entitiesPhrase().toLowerCase()}`), "error");
3414
3414
  throw error;
3415
3415
  }
3416
3416
  };
3417
3417
  const picker = /* @__PURE__ */ jsxRuntime.jsx(
3418
- chunkGC2FSPSQ_cjs.TagPicker,
3418
+ chunkHDJRSCRE_cjs.TagPicker,
3419
3419
  {
3420
3420
  tags: viewTags,
3421
3421
  selectedId: tag?.external_id,
@@ -3429,10 +3429,10 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
3429
3429
  onOpenTag: openTag,
3430
3430
  onOpenFact
3431
3431
  };
3432
- const n = chunkGC2FSPSQ_cjs.tagsPageNouns();
3432
+ const n = chunkHDJRSCRE_cjs.tagsPageNouns();
3433
3433
  const action = view === "person" || view === "organisation" ? {
3434
3434
  label: "Extract",
3435
- title: `Extract ${chunkGC2FSPSQ_cjs.entitiesPhrase().toLowerCase()} from ${n.documents.toLowerCase()}`,
3435
+ title: `Extract ${chunkHDJRSCRE_cjs.entitiesPhrase().toLowerCase()} from ${n.documents.toLowerCase()}`,
3436
3436
  icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { className: "h-4 w-4" }),
3437
3437
  run: () => setExtracting(true),
3438
3438
  testId: "tags-extract-entities"
@@ -3579,7 +3579,7 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
3579
3579
  onCreated: openTag
3580
3580
  }),
3581
3581
  /* @__PURE__ */ jsxRuntime.jsx(
3582
- chunkGC2FSPSQ_cjs.ExtractEntitiesDialog,
3582
+ chunkHDJRSCRE_cjs.ExtractEntitiesDialog,
3583
3583
  {
3584
3584
  open: extracting,
3585
3585
  onOpenChange: setExtracting,
@@ -3640,7 +3640,7 @@ function FactSourcesPopover({
3640
3640
  reset();
3641
3641
  }
3642
3642
  };
3643
- const refOf = (docId) => chunkB3FMUFAW_cjs.citedVersionRef(
3643
+ const refOf = (docId) => chunkUKT3WH5Z_cjs.citedVersionRef(
3644
3644
  docId,
3645
3645
  citations.find((d) => d.doc_ext_id === docId)?.version,
3646
3646
  citedDocs?.[docId]?.current_version
@@ -3670,7 +3670,7 @@ function FactSourcesPopover({
3670
3670
  const olderVersion = refOf(docId) !== docId ? refOf(docId).split("@v")[1] : null;
3671
3671
  const cited = passagesOf(docId);
3672
3672
  return /* @__PURE__ */ jsxRuntime.jsx(
3673
- chunkB3FMUFAW_cjs.FactSourceGroup,
3673
+ chunkUKT3WH5Z_cjs.FactSourceGroup,
3674
3674
  {
3675
3675
  docId,
3676
3676
  isViewing,
@@ -3739,8 +3739,8 @@ function FactMarkdownEditor({
3739
3739
  citationContainer,
3740
3740
  "data-testid": dataTestId
3741
3741
  }) {
3742
- const sources = react.useMemo(() => chunkB3FMUFAW_cjs.toFactCitations(citations) ?? [], [citations]);
3743
- const docIds = chunkB3FMUFAW_cjs.docIdsOf(sources);
3742
+ const sources = react.useMemo(() => chunkUKT3WH5Z_cjs.toFactCitations(citations) ?? [], [citations]);
3743
+ const docIds = chunkUKT3WH5Z_cjs.docIdsOf(sources);
3744
3744
  const hasSources = docIds.length > 0;
3745
3745
  const { quoteFor, orderOf } = react$1.usePassageQuotes(
3746
3746
  react.useMemo(() => sources.filter((d) => d.chunks.length > 0).map((d) => d.doc_ext_id), [sources])
@@ -3759,7 +3759,7 @@ function FactMarkdownEditor({
3759
3759
  const editorRef = react.useRef(null);
3760
3760
  react.useEffect(() => {
3761
3761
  if (!editorRef.current) return;
3762
- return chunkB3FMUFAW_cjs.enableFactTableColumnResize(editorRef.current);
3762
+ return chunkUKT3WH5Z_cjs.enableFactTableColumnResize(editorRef.current);
3763
3763
  }, []);
3764
3764
  react.useEffect(() => {
3765
3765
  if (!editing) return;
@@ -3774,14 +3774,14 @@ function FactMarkdownEditor({
3774
3774
  return () => document.removeEventListener("pointerdown", onPointerDown, true);
3775
3775
  }, [editing]);
3776
3776
  const removeDoc = (docExtId) => {
3777
- const remaining = chunkB3FMUFAW_cjs.withoutDoc(sources, docExtId);
3777
+ const remaining = chunkUKT3WH5Z_cjs.withoutDoc(sources, docExtId);
3778
3778
  if (!remaining) setSourcesOpen(false);
3779
3779
  onChange(value, remaining);
3780
3780
  };
3781
3781
  const citeDocument = (docExtId) => onCiteDocument(docExtId, { toggle: false });
3782
3782
  const handleToggleDoc = (docExtId) => {
3783
3783
  if (docIds.includes(docExtId)) removeDoc(docExtId);
3784
- else onChange(value, chunkB3FMUFAW_cjs.withDoc(sources, docExtId));
3784
+ else onChange(value, chunkUKT3WH5Z_cjs.withDoc(sources, docExtId));
3785
3785
  };
3786
3786
  const expandToggle = /* @__PURE__ */ jsxRuntime.jsx(
3787
3787
  "button",
@@ -4000,7 +4000,7 @@ function useFactComposer(notes, remove, gridApiRef, collector, composeRequested,
4000
4000
  const [composing, setComposing] = react.useState(false);
4001
4001
  const [draft, setDraft] = react.useState("");
4002
4002
  const [baselineText, setBaselineText] = react.useState("");
4003
- const [draftDateFields, setDraftDateFields] = react.useState(chunkB3FMUFAW_cjs.EMPTY_FACT_DATE_FIELDS);
4003
+ const [draftDateFields, setDraftDateFields] = react.useState(chunkUKT3WH5Z_cjs.EMPTY_FACT_DATE_FIELDS);
4004
4004
  const [composerError, setComposerError] = react.useState(null);
4005
4005
  const [editingId, setEditingId] = react.useState(null);
4006
4006
  const [draftShared, setDraftShared] = react.useState(false);
@@ -4057,9 +4057,9 @@ function useFactComposer(notes, remove, gridApiRef, collector, composeRequested,
4057
4057
  if (!collector || !picked?.length || !collectingFor || !docBeingCollected) return;
4058
4058
  const docExtId = docBeingCollected;
4059
4059
  const apply = (prev) => {
4060
- let next = chunkB3FMUFAW_cjs.toFactCitations(prev);
4060
+ let next = chunkUKT3WH5Z_cjs.toFactCitations(prev);
4061
4061
  for (const pending of picked) {
4062
- next = chunkB3FMUFAW_cjs.withChunk(next, docExtId, { chunk_id: pending.chunk_id, page: pending.page ?? null });
4062
+ next = chunkUKT3WH5Z_cjs.withChunk(next, docExtId, { chunk_id: pending.chunk_id, page: pending.page ?? null });
4063
4063
  }
4064
4064
  return next ?? [];
4065
4065
  };
@@ -4070,8 +4070,8 @@ function useFactComposer(notes, remove, gridApiRef, collector, composeRequested,
4070
4070
  react.useEffect(() => {
4071
4071
  if (!collector || !unpicked?.length || !collectingFor) return;
4072
4072
  setDraftCitations((prev) => {
4073
- let next = chunkB3FMUFAW_cjs.toFactCitations(prev);
4074
- for (const chunkId of unpicked) next = chunkB3FMUFAW_cjs.withoutChunk(next, chunkId);
4073
+ let next = chunkUKT3WH5Z_cjs.toFactCitations(prev);
4074
+ for (const chunkId of unpicked) next = chunkUKT3WH5Z_cjs.withoutChunk(next, chunkId);
4075
4075
  return next;
4076
4076
  });
4077
4077
  collector.consumeUnpicked();
@@ -4081,7 +4081,7 @@ function useFactComposer(notes, remove, gridApiRef, collector, composeRequested,
4081
4081
  setBaselineText("");
4082
4082
  setDraftCitations(null);
4083
4083
  setDraftTagIds([]);
4084
- setDraftDateFields(chunkB3FMUFAW_cjs.EMPTY_FACT_DATE_FIELDS);
4084
+ setDraftDateFields(chunkUKT3WH5Z_cjs.EMPTY_FACT_DATE_FIELDS);
4085
4085
  setDraftShared(false);
4086
4086
  setDraftConfirmed(true);
4087
4087
  setComposerError(null);
@@ -4095,7 +4095,7 @@ function useFactComposer(notes, remove, gridApiRef, collector, composeRequested,
4095
4095
  setBaselineText("");
4096
4096
  setDraftCitations(null);
4097
4097
  setDraftTagIds([]);
4098
- setDraftDateFields(chunkB3FMUFAW_cjs.EMPTY_FACT_DATE_FIELDS);
4098
+ setDraftDateFields(chunkUKT3WH5Z_cjs.EMPTY_FACT_DATE_FIELDS);
4099
4099
  setDraftShared(false);
4100
4100
  setDraftConfirmed(true);
4101
4101
  setComposerError(null);
@@ -4106,7 +4106,7 @@ function useFactComposer(notes, remove, gridApiRef, collector, composeRequested,
4106
4106
  const content = chunkRC25WMVB_cjs.decodeWhitespaceEntities(draft).trim();
4107
4107
  if (!content) return;
4108
4108
  setComposerError(null);
4109
- const span = chunkB3FMUFAW_cjs.factDateFieldsToSpan(draftDateFields);
4109
+ const span = chunkUKT3WH5Z_cjs.factDateFieldsToSpan(draftDateFields);
4110
4110
  try {
4111
4111
  let saved;
4112
4112
  if (editingId) {
@@ -4144,7 +4144,7 @@ function useFactComposer(notes, remove, gridApiRef, collector, composeRequested,
4144
4144
  setBaselineText(draft);
4145
4145
  setDraftCitations(saved.citations ?? null);
4146
4146
  setDraftTagIds(saved.tags.map((t) => t.tag_ext_id));
4147
- setDraftDateFields(chunkB3FMUFAW_cjs.factDateSpanToFields(saved.date_start, saved.date_end, saved.timezone));
4147
+ setDraftDateFields(chunkUKT3WH5Z_cjs.factDateSpanToFields(saved.date_start, saved.date_end, saved.timezone));
4148
4148
  setDraftShared(saved.shared ?? false);
4149
4149
  setDraftConfirmed(saved.confirmed ?? true);
4150
4150
  }
@@ -4169,7 +4169,7 @@ function useFactComposer(notes, remove, gridApiRef, collector, composeRequested,
4169
4169
  setBaselineText(m.text);
4170
4170
  setDraftCitations(m.citations ?? null);
4171
4171
  setDraftTagIds(m.tags.map((t) => t.tag_ext_id));
4172
- setDraftDateFields(chunkB3FMUFAW_cjs.factDateSpanToFields(m.date_start, m.date_end, m.timezone));
4172
+ setDraftDateFields(chunkUKT3WH5Z_cjs.factDateSpanToFields(m.date_start, m.date_end, m.timezone));
4173
4173
  setDraftShared(m.shared ?? false);
4174
4174
  setDraftConfirmed(m.confirmed ?? true);
4175
4175
  setComposerError(null);
@@ -4183,7 +4183,7 @@ function useFactComposer(notes, remove, gridApiRef, collector, composeRequested,
4183
4183
  const textChanged = draft.trim() !== baselineText.trim();
4184
4184
  const citationsChanged = JSON.stringify(draftCitations ?? null) !== JSON.stringify(f.citations ?? null);
4185
4185
  const tagsChanged = JSON.stringify([...draftTagIds].sort()) !== JSON.stringify(f.tags.map((t) => t.tag_ext_id).sort());
4186
- const dateChanged = JSON.stringify(draftDateFields) !== JSON.stringify(chunkB3FMUFAW_cjs.factDateSpanToFields(f.date_start, f.date_end, f.timezone));
4186
+ const dateChanged = JSON.stringify(draftDateFields) !== JSON.stringify(chunkUKT3WH5Z_cjs.factDateSpanToFields(f.date_start, f.date_end, f.timezone));
4187
4187
  const sharedChanged = draftShared !== (f.shared ?? false);
4188
4188
  const confirmedChanged = draftConfirmed !== (f.confirmed ?? true);
4189
4189
  return textChanged || citationsChanged || tagsChanged || dateChanged || sharedChanged || confirmedChanged;
@@ -4357,7 +4357,7 @@ function useFactFilters(notes, view, chat) {
4357
4357
  const makeTagPicker = react.useCallback(
4358
4358
  (selected, setSelected, opts) => {
4359
4359
  const applied = new Set(selected);
4360
- return /* @__PURE__ */ jsxRuntime.jsx(chunkB3FMUFAW_cjs.FactFieldRow, { label: "Labels", children: /* @__PURE__ */ jsxRuntime.jsx(
4360
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkUKT3WH5Z_cjs.FactFieldRow, { label: "Labels", children: /* @__PURE__ */ jsxRuntime.jsx(
4361
4361
  chunkWV4TD2HZ_cjs.FieldLabelsSelect,
4362
4362
  {
4363
4363
  options: labelOptions,
@@ -4548,14 +4548,14 @@ function useFactSelection(notes, gridApiRef, setFactTags, chat) {
4548
4548
  }
4549
4549
  function renderSourcesCell(params) {
4550
4550
  const fact = params.data;
4551
- const count = chunkB3FMUFAW_cjs.sourceDocCount(fact);
4551
+ const count = chunkUKT3WH5Z_cjs.sourceDocCount(fact);
4552
4552
  if (!fact || count === 0) return /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground/40", children: "\u2014" });
4553
4553
  return /* @__PURE__ */ jsxRuntime.jsxs(
4554
4554
  "button",
4555
4555
  {
4556
4556
  type: "button",
4557
4557
  onClick: () => params.context?.openEdit?.(fact),
4558
- title: chunkB3FMUFAW_cjs.DEFAULT_FACT_COLUMN_LABELS.sourcedFrom(count),
4558
+ title: chunkUKT3WH5Z_cjs.DEFAULT_FACT_COLUMN_LABELS.sourcedFrom(count),
4559
4559
  "data-testid": `facts-grid-sources-${fact.external_id}`,
4560
4560
  className: "inline-flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground",
4561
4561
  children: [
@@ -4612,14 +4612,14 @@ function createFactPageColumns({
4612
4612
  onToggleConfirmed,
4613
4613
  onToggleShared
4614
4614
  }) {
4615
- const columns = chunkB3FMUFAW_cjs.createFactColumns({
4615
+ const columns = chunkUKT3WH5Z_cjs.createFactColumns({
4616
4616
  onToggleInChat,
4617
4617
  isInChat,
4618
4618
  renderHeader: (params, colId) => /* @__PURE__ */ jsxRuntime.jsx(FactHeader, { params, colId }),
4619
4619
  renderRowActions: (fact, params) => {
4620
4620
  const ctx = params.context;
4621
4621
  return /* @__PURE__ */ jsxRuntime.jsx(
4622
- chunkB3FMUFAW_cjs.FactRowActions,
4622
+ chunkUKT3WH5Z_cjs.FactRowActions,
4623
4623
  {
4624
4624
  onEdit: () => ctx?.openEdit?.(fact),
4625
4625
  canEdit: ctx?.canRewrite?.(fact) !== false,
@@ -4749,7 +4749,7 @@ function useFactsGrid({
4749
4749
  );
4750
4750
  const renderFactTags = react.useCallback(
4751
4751
  (fact, rowHeight) => /* @__PURE__ */ jsxRuntime.jsx(
4752
- chunkB3FMUFAW_cjs.FactLabelsCell,
4752
+ chunkUKT3WH5Z_cjs.FactLabelsCell,
4753
4753
  {
4754
4754
  options: labelOptions,
4755
4755
  selectedIds: fact.tags.map((t) => t.tag_ext_id),
@@ -4881,7 +4881,7 @@ var citedDocIdsCache = /* @__PURE__ */ new WeakMap();
4881
4881
  function citedDocIds(m) {
4882
4882
  const cached = citedDocIdsCache.get(m);
4883
4883
  if (cached) return cached;
4884
- const ids = chunkB3FMUFAW_cjs.docIdsOf(chunkB3FMUFAW_cjs.toFactCitations(m.citations));
4884
+ const ids = chunkUKT3WH5Z_cjs.docIdsOf(chunkUKT3WH5Z_cjs.toFactCitations(m.citations));
4885
4885
  citedDocIdsCache.set(m, ids);
4886
4886
  return ids;
4887
4887
  }
@@ -4973,7 +4973,7 @@ function ConnectedFactsPage({
4973
4973
  const citedDocs = react.useMemo(() => {
4974
4974
  const wanted = /* @__PURE__ */ new Set([
4975
4975
  ...notes.flatMap((n) => citedDocIds(n)),
4976
- ...chunkB3FMUFAW_cjs.docIdsOf(chunkB3FMUFAW_cjs.toFactCitations(composer.draftCitations))
4976
+ ...chunkUKT3WH5Z_cjs.docIdsOf(chunkUKT3WH5Z_cjs.toFactCitations(composer.draftCitations))
4977
4977
  ]);
4978
4978
  return Object.fromEntries(
4979
4979
  documents.filter((d) => wanted.has(d.external_id)).map((d) => [d.external_id, d])
@@ -5027,7 +5027,7 @@ function ConnectedFactsPage({
5027
5027
  };
5028
5028
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: setFactSection, className: "relative flex h-full flex-col", "data-testid": "facts-page", children: [
5029
5029
  /* @__PURE__ */ jsxRuntime.jsx(
5030
- chunkB3FMUFAW_cjs.FactsToolbar,
5030
+ chunkUKT3WH5Z_cjs.FactsToolbar,
5031
5031
  {
5032
5032
  count: filteredNotes.length,
5033
5033
  hasActiveFilters: filters.hasActiveFilters,
@@ -5056,7 +5056,7 @@ function ConnectedFactsPage({
5056
5056
  onNewFact: composing && !editingId ? () => void 0 : composer.startNewFact,
5057
5057
  navSlotRef: setNavSlot,
5058
5058
  navigator: view === "table" ? /* @__PURE__ */ jsxRuntime.jsx(
5059
- chunkGC2FSPSQ_cjs.GridRowNavigator,
5059
+ chunkHDJRSCRE_cjs.GridRowNavigator,
5060
5060
  {
5061
5061
  gridApi,
5062
5062
  selectedId: editingId,
@@ -5067,7 +5067,7 @@ function ConnectedFactsPage({
5067
5067
  ) : null,
5068
5068
  showToolbarRow: view !== "smart_search",
5069
5069
  tools: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
5070
- view === "table" && /* @__PURE__ */ jsxRuntime.jsx(chunkB3FMUFAW_cjs.FactsFieldsButton, { getGridApi: () => gridApiRef.current }),
5070
+ view === "table" && /* @__PURE__ */ jsxRuntime.jsx(chunkUKT3WH5Z_cjs.FactsFieldsButton, { getGridApi: () => gridApiRef.current }),
5071
5071
  view === "table" && /* @__PURE__ */ jsxRuntime.jsx(
5072
5072
  chunkWV4TD2HZ_cjs.RowDensityControl,
5073
5073
  {
@@ -5088,7 +5088,7 @@ function ConnectedFactsPage({
5088
5088
  }
5089
5089
  ),
5090
5090
  /* @__PURE__ */ jsxRuntime.jsx(
5091
- chunkB3FMUFAW_cjs.FactComposer,
5091
+ chunkUKT3WH5Z_cjs.FactComposer,
5092
5092
  {
5093
5093
  isOpen: composing,
5094
5094
  isEditing: !!editingId,
@@ -5121,7 +5121,7 @@ function ConnectedFactsPage({
5121
5121
  reserveSourcesSpace: view === "gantt" || view === "calendar",
5122
5122
  citationContainer: factSection,
5123
5123
  renderDocumentPicker: (onSelect, selectedIds, onOpen, sourcesToggle, sourcesOpen) => /* @__PURE__ */ jsxRuntime.jsx(
5124
- chunkB3FMUFAW_cjs.FactSourcesRow,
5124
+ chunkUKT3WH5Z_cjs.FactSourcesRow,
5125
5125
  {
5126
5126
  toggle: sourcesToggle,
5127
5127
  picker: /* @__PURE__ */ jsxRuntime.jsx(
@@ -5167,7 +5167,7 @@ function ConnectedFactsPage({
5167
5167
  }
5168
5168
  ),
5169
5169
  dateInput: /* @__PURE__ */ jsxRuntime.jsx(
5170
- chunkB3FMUFAW_cjs.FactDateInput,
5170
+ chunkUKT3WH5Z_cjs.FactDateInput,
5171
5171
  {
5172
5172
  value: composer.draftDateFields,
5173
5173
  onChange: composer.setDraftDateFields,
@@ -5177,13 +5177,13 @@ function ConnectedFactsPage({
5177
5177
  }
5178
5178
  ),
5179
5179
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "scrollbar-subtle flex-1 overflow-y-auto pb-2", children: [
5180
- isLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunkB3FMUFAW_cjs.FactsLoading, {}) : isError ? /* @__PURE__ */ jsxRuntime.jsx(chunkB3FMUFAW_cjs.FactsLoadError, { onRetry: () => refetch() }) : smartSearch ? (
5180
+ isLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunkUKT3WH5Z_cjs.FactsLoading, {}) : isError ? /* @__PURE__ */ jsxRuntime.jsx(chunkUKT3WH5Z_cjs.FactsLoadError, { onRetry: () => refetch() }) : smartSearch ? (
5181
5181
  // Searches facts only (never documents). Kept before the empty-state guard so the
5182
5182
  // search UI is reachable even in an empty workspace.
5183
5183
  smartSearch({ selectedFactId: editingId, onOpenFact: openFactById })
5184
5184
  ) : notes.length === 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-full flex-col items-center justify-center", children: [
5185
5185
  /* @__PURE__ */ jsxRuntime.jsx(
5186
- chunkB3FMUFAW_cjs.FactsEmptyState,
5186
+ chunkUKT3WH5Z_cjs.FactsEmptyState,
5187
5187
  {
5188
5188
  onUseExample: (text) => {
5189
5189
  composer.setDraft(text);
@@ -5194,7 +5194,7 @@ function ConnectedFactsPage({
5194
5194
  ),
5195
5195
  emptyStateExtra
5196
5196
  ] }) : view === "calendar" ? /* @__PURE__ */ jsxRuntime.jsx(
5197
- chunkB3FMUFAW_cjs.FactsCalendar,
5197
+ chunkUKT3WH5Z_cjs.FactsCalendar,
5198
5198
  {
5199
5199
  facts: filteredNotes,
5200
5200
  onSelect: (n) => openEditIfAllowed(n),
@@ -5203,7 +5203,7 @@ function ConnectedFactsPage({
5203
5203
  navigatorTotal: filteredNotes.length
5204
5204
  }
5205
5205
  ) : view === "gantt" ? /* @__PURE__ */ jsxRuntime.jsx(
5206
- chunkB3FMUFAW_cjs.FactsGanttPane,
5206
+ chunkUKT3WH5Z_cjs.FactsGanttPane,
5207
5207
  {
5208
5208
  items: ganttItems,
5209
5209
  labelWidth: pageView.labelWidth,
@@ -5253,7 +5253,7 @@ function ConnectedFactsPage({
5253
5253
  )
5254
5254
  ] }),
5255
5255
  selectable && notes.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
5256
- chunkB3FMUFAW_cjs.FactsBulkBar,
5256
+ chunkUKT3WH5Z_cjs.FactsBulkBar,
5257
5257
  {
5258
5258
  count: selection.selectedFacts.length,
5259
5259
  onClear: selection.clearSelection,
@@ -6960,13 +6960,13 @@ function ConnectedWorkspaceSettings({
6960
6960
  const [membersExpanded, setMembersExpanded] = react.useState(false);
6961
6961
  const [shareOpen, setShareOpen] = react.useState(false);
6962
6962
  if (!workspace) {
6963
- return /* @__PURE__ */ jsxRuntime.jsx(chunkMSFQDELO_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkGC2FSPSQ_cjs.LoadingIndicator, { message: "Loading workspace..." }) });
6963
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkMSFQDELO_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkHDJRSCRE_cjs.LoadingIndicator, { message: "Loading workspace..." }) });
6964
6964
  }
6965
6965
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
6966
6966
  /* @__PURE__ */ jsxRuntime.jsxs(chunkMSFQDELO_cjs.WorkspacePageFrame, { testId, children: [
6967
6967
  /* @__PURE__ */ jsxRuntime.jsxs(chunkMSFQDELO_cjs.WorkspaceIdentityPanel, { children: [
6968
6968
  /* @__PURE__ */ jsxRuntime.jsx(
6969
- chunkGC2FSPSQ_cjs.EntityIdentityBar,
6969
+ chunkHDJRSCRE_cjs.EntityIdentityBar,
6970
6970
  {
6971
6971
  testId: "workspace-identity-bar",
6972
6972
  canEdit: isOwner,
@@ -6983,7 +6983,7 @@ function ConnectedWorkspaceSettings({
6983
6983
  label: "Name",
6984
6984
  value: workspace.name,
6985
6985
  placeholder: "Untitled",
6986
- maxLength: chunkGC2FSPSQ_cjs.IDENTITY_NAME_MAX_LENGTH,
6986
+ maxLength: chunkHDJRSCRE_cjs.IDENTITY_NAME_MAX_LENGTH,
6987
6987
  valueClassName: "truncate text-base font-semibold",
6988
6988
  testId: "workspace-home-title",
6989
6989
  hideLabel: true,
@@ -10817,7 +10817,7 @@ function ConnectedWorkspaceList({
10817
10817
  };
10818
10818
  const open = (workspace) => void openWorkspace(workspace.external_id, { name: workspace.name });
10819
10819
  const createDisabledReason = list.canCreateProjects === false ? react$1.PROJECT_CREATION_DENIED_REASON : void 0;
10820
- if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(chunkGC2FSPSQ_cjs.LoadingIndicator, { message: "Loading workspaces..." });
10820
+ if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(chunkHDJRSCRE_cjs.LoadingIndicator, { message: "Loading workspaces..." });
10821
10821
  if (list.error) {
10822
10822
  return /* @__PURE__ */ jsxRuntime.jsx(
10823
10823
  chunkOOU4QLRK_cjs.HomeLoadError,
@@ -10889,7 +10889,7 @@ function ConnectedWorkspaceList({
10889
10889
  createDisabledReason
10890
10890
  }
10891
10891
  ) })
10892
- ) : /* @__PURE__ */ jsxRuntime.jsx(react.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkGC2FSPSQ_cjs.LoadingIndicator, { message: "Loading grid..." }), children: /* @__PURE__ */ jsxRuntime.jsx(chunkOOU4QLRK_cjs.HomeCenteredColumn, { children: /* @__PURE__ */ jsxRuntime.jsx(
10892
+ ) : /* @__PURE__ */ jsxRuntime.jsx(react.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkHDJRSCRE_cjs.LoadingIndicator, { message: "Loading grid..." }), children: /* @__PURE__ */ jsxRuntime.jsx(chunkOOU4QLRK_cjs.HomeCenteredColumn, { children: /* @__PURE__ */ jsxRuntime.jsx(
10893
10893
  WorkspaceTableView,
10894
10894
  {
10895
10895
  list,
@@ -11045,7 +11045,7 @@ function recentConversations(conversations) {
11045
11045
  return [...conversations].sort((a, b) => time(b.updated_at) - time(a.updated_at)).slice(0, RECENT_ROWS).map((c) => ({
11046
11046
  id: c.external_id,
11047
11047
  title: c.title?.trim() || "Untitled thread",
11048
- subtitle: c.status ? [chunkYF3QUHKN_cjs.STATUS_LABELS[chunkYF3QUHKN_cjs.asTaskStatus(c.status)], c.due_at ? `due ${shortDate(c.due_at)}` : null].filter(Boolean).join(" \xB7 ") : `${c.message_count} ${c.message_count === 1 ? "message" : "messages"}`,
11048
+ subtitle: c.status ? [chunkFEGXFABZ_cjs.STATUS_LABELS[chunkFEGXFABZ_cjs.asTaskStatus(c.status)], c.due_at ? `due ${shortDate(c.due_at)}` : null].filter(Boolean).join(" \xB7 ") : `${c.message_count} ${c.message_count === 1 ? "message" : "messages"}`,
11049
11049
  time: timeAndDate(c.updated_at)
11050
11050
  }));
11051
11051
  }
@@ -11962,7 +11962,7 @@ var MailBodyEditor = react.lazy(
11962
11962
  }))
11963
11963
  );
11964
11964
  var NativeDocxEditor = react.lazy(
11965
- () => import('../NativeDocxEditor-5VBNM5I7.cjs').then((m) => ({ default: m.NativeDocxEditor }))
11965
+ () => import('../NativeDocxEditor-M3I776GD.cjs').then((m) => ({ default: m.NativeDocxEditor }))
11966
11966
  );
11967
11967
  var NO_WORD = {
11968
11968
  adapter: {
@@ -17256,7 +17256,7 @@ var COMPACT_BELOW = 132;
17256
17256
  var NO_DOCUMENTS = [];
17257
17257
  function useFilesWorkspace() {
17258
17258
  const { workspaceId, userId, live } = chunkFM3IRQJW_cjs.useConnectedWorkspace();
17259
- const { members, role } = chunkCQCNU5KT_cjs.useConnectedWorkspaceRole();
17259
+ const { members, role } = chunkIJEISII2_cjs.useConnectedWorkspaceRole();
17260
17260
  const { data: workspaces } = react$1.useWorkspaces({ enabled: live });
17261
17261
  const workspaceName = workspaces?.find((w) => w.external_id === workspaceId)?.name;
17262
17262
  return {
@@ -18118,43 +18118,43 @@ Object.defineProperty(exports, "useWorkspaceDocs", {
18118
18118
  });
18119
18119
  Object.defineProperty(exports, "ConnectedWorkflowDocumentsField", {
18120
18120
  enumerable: true,
18121
- get: function () { return chunkCQCNU5KT_cjs.ConnectedWorkflowDocumentsField; }
18121
+ get: function () { return chunkIJEISII2_cjs.ConnectedWorkflowDocumentsField; }
18122
18122
  });
18123
18123
  Object.defineProperty(exports, "ConnectedWorkflowLauncher", {
18124
18124
  enumerable: true,
18125
- get: function () { return chunkCQCNU5KT_cjs.ConnectedWorkflowLauncher; }
18125
+ get: function () { return chunkIJEISII2_cjs.ConnectedWorkflowLauncher; }
18126
18126
  });
18127
18127
  Object.defineProperty(exports, "ConnectedWorkflowsTable", {
18128
18128
  enumerable: true,
18129
- get: function () { return chunkCQCNU5KT_cjs.ConnectedWorkflowsTable; }
18129
+ get: function () { return chunkIJEISII2_cjs.ConnectedWorkflowsTable; }
18130
18130
  });
18131
18131
  Object.defineProperty(exports, "DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS", {
18132
18132
  enumerable: true,
18133
- get: function () { return chunkCQCNU5KT_cjs.DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS; }
18133
+ get: function () { return chunkIJEISII2_cjs.DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS; }
18134
18134
  });
18135
18135
  Object.defineProperty(exports, "NativeDocxSupportProvider", {
18136
18136
  enumerable: true,
18137
- get: function () { return chunkCQCNU5KT_cjs.NativeDocxSupportProvider; }
18137
+ get: function () { return chunkIJEISII2_cjs.NativeDocxSupportProvider; }
18138
18138
  });
18139
18139
  Object.defineProperty(exports, "toWorkflowFieldDocument", {
18140
18140
  enumerable: true,
18141
- get: function () { return chunkCQCNU5KT_cjs.toWorkflowFieldDocument; }
18141
+ get: function () { return chunkIJEISII2_cjs.toWorkflowFieldDocument; }
18142
18142
  });
18143
18143
  Object.defineProperty(exports, "useConnectedAgentOptions", {
18144
18144
  enumerable: true,
18145
- get: function () { return chunkCQCNU5KT_cjs.useConnectedAgentOptions; }
18145
+ get: function () { return chunkIJEISII2_cjs.useConnectedAgentOptions; }
18146
18146
  });
18147
18147
  Object.defineProperty(exports, "useConnectedWorkflowScopeSource", {
18148
18148
  enumerable: true,
18149
- get: function () { return chunkCQCNU5KT_cjs.useConnectedWorkflowScopeSource; }
18149
+ get: function () { return chunkIJEISII2_cjs.useConnectedWorkflowScopeSource; }
18150
18150
  });
18151
18151
  Object.defineProperty(exports, "useConnectedWorkspaceRole", {
18152
18152
  enumerable: true,
18153
- get: function () { return chunkCQCNU5KT_cjs.useConnectedWorkspaceRole; }
18153
+ get: function () { return chunkIJEISII2_cjs.useConnectedWorkspaceRole; }
18154
18154
  });
18155
18155
  Object.defineProperty(exports, "useNativeDocxSupport", {
18156
18156
  enumerable: true,
18157
- get: function () { return chunkCQCNU5KT_cjs.useNativeDocxSupport; }
18157
+ get: function () { return chunkIJEISII2_cjs.useNativeDocxSupport; }
18158
18158
  });
18159
18159
  Object.defineProperty(exports, "DocumentViewerSupportProvider", {
18160
18160
  enumerable: true,