@arbidocs/blocks 0.5.153 → 0.5.155

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (263) hide show
  1. package/dist/{ConnectedNativeDocxComparison-244UIHSM.cjs → ConnectedNativeDocxComparison-2DAQX5GX.cjs} +8 -8
  2. package/dist/{ConnectedStreamedWordArtifact-V6BRZMEQ.cjs.map → ConnectedNativeDocxComparison-2DAQX5GX.cjs.map} +1 -1
  3. package/dist/{ConnectedPresentation-JUXIXKYN.cjs → ConnectedPresentation-J42JPUVR.cjs} +13 -13
  4. package/dist/{ConnectedPresentation-JUXIXKYN.cjs.map → ConnectedPresentation-J42JPUVR.cjs.map} +1 -1
  5. package/dist/{ConnectedSlidesTab-JA3VB66W.cjs → ConnectedSlidesTab-BYS7HFNK.cjs} +12 -12
  6. package/dist/{ConnectedSlidesTab-JA3VB66W.cjs.map → ConnectedSlidesTab-BYS7HFNK.cjs.map} +1 -1
  7. package/dist/{ConnectedStreamedWordArtifact-V6BRZMEQ.cjs → ConnectedStreamedWordArtifact-LTYB62VM.cjs} +8 -8
  8. package/dist/{ConnectedNativeDocxComparison-244UIHSM.cjs.map → ConnectedStreamedWordArtifact-LTYB62VM.cjs.map} +1 -1
  9. package/dist/{DocumentReviewCard-5W2QQWKA.cjs → DocumentReviewCard-5AP55NGZ.cjs} +4 -3
  10. package/dist/DocumentReviewCard-5AP55NGZ.cjs.map +1 -0
  11. package/dist/{FilesViewerDialog-63QUTG4L.cjs → FilesViewerDialog-SHWCE3UN.cjs} +21 -19
  12. package/dist/FilesViewerDialog-SHWCE3UN.cjs.map +1 -0
  13. package/dist/{RechartsRenderer-NU6WUZJS.cjs → RechartsRenderer-EPVL5QZA.cjs} +2 -2
  14. package/dist/{RechartsRenderer-NU6WUZJS.cjs.map → RechartsRenderer-EPVL5QZA.cjs.map} +1 -1
  15. package/dist/{SpotlightStrip-HXQFPAAL.cjs → SpotlightStrip-JE6MXUBT.cjs} +6 -6
  16. package/dist/{SpotlightStrip-HXQFPAAL.cjs.map → SpotlightStrip-JE6MXUBT.cjs.map} +1 -1
  17. package/dist/{WorkspaceTableView-2QP2HJLK.cjs → WorkspaceTableView-S4IBYQVF.cjs} +13 -11
  18. package/dist/WorkspaceTableView-S4IBYQVF.cjs.map +1 -0
  19. package/dist/agents/index.cjs +244 -243
  20. package/dist/agents/workflows/WorkflowLauncher.d.ts +3 -1
  21. package/dist/agents/workflows/WorkflowLauncher.js +2 -0
  22. package/dist/agents/workflows/WorkflowLauncher.js.map +2 -2
  23. package/dist/{ai-ODGRIL6Y.cjs → ai-QFY4LYQZ.cjs} +16 -16
  24. package/dist/ai-QFY4LYQZ.cjs.map +1 -0
  25. package/dist/calls/index.cjs +25 -24
  26. package/dist/calls/index.cjs.map +1 -1
  27. package/dist/{chunk-4I2PCP7O.cjs → chunk-2XOIULVN.cjs} +36 -35
  28. package/dist/chunk-2XOIULVN.cjs.map +1 -0
  29. package/dist/{chunk-D5DOK2AE.cjs → chunk-3SGFIDID.cjs} +10 -10
  30. package/dist/{chunk-D5DOK2AE.cjs.map → chunk-3SGFIDID.cjs.map} +1 -1
  31. package/dist/{chunk-WUM76MJU.cjs → chunk-4UDGCXUR.cjs} +7 -7
  32. package/dist/{chunk-WUM76MJU.cjs.map → chunk-4UDGCXUR.cjs.map} +1 -1
  33. package/dist/{chunk-LYKT336H.cjs → chunk-6I5HHWCD.cjs} +5 -5
  34. package/dist/{chunk-LYKT336H.cjs.map → chunk-6I5HHWCD.cjs.map} +1 -1
  35. package/dist/{chunk-KWJW5TMH.cjs → chunk-6OPDKROP.cjs} +4 -41
  36. package/dist/chunk-6OPDKROP.cjs.map +1 -0
  37. package/dist/{chunk-QWOPEBH2.cjs → chunk-6P4U63HO.cjs} +4 -4
  38. package/dist/{chunk-QWOPEBH2.cjs.map → chunk-6P4U63HO.cjs.map} +1 -1
  39. package/dist/chunk-74RUAGVD.cjs +1533 -0
  40. package/dist/chunk-74RUAGVD.cjs.map +1 -0
  41. package/dist/{chunk-QKCFV36K.cjs → chunk-7UPEFZCV.cjs} +9 -9
  42. package/dist/{chunk-QKCFV36K.cjs.map → chunk-7UPEFZCV.cjs.map} +1 -1
  43. package/dist/{chunk-DUNXLT63.cjs → chunk-AHUEBRLX.cjs} +2 -238
  44. package/dist/chunk-AHUEBRLX.cjs.map +1 -0
  45. package/dist/chunk-BH322H5B.cjs +594 -0
  46. package/dist/chunk-BH322H5B.cjs.map +1 -0
  47. package/dist/{chunk-AG6KAGAX.cjs → chunk-BTQ7IAOH.cjs} +4 -4
  48. package/dist/{chunk-AG6KAGAX.cjs.map → chunk-BTQ7IAOH.cjs.map} +1 -1
  49. package/dist/{chunk-FCT62ZPE.cjs → chunk-BZVK7JW5.cjs} +5 -5
  50. package/dist/{chunk-FCT62ZPE.cjs.map → chunk-BZVK7JW5.cjs.map} +1 -1
  51. package/dist/{chunk-HNLNRAEU.cjs → chunk-DSLMJ24E.cjs} +2 -261
  52. package/dist/chunk-DSLMJ24E.cjs.map +1 -0
  53. package/dist/chunk-DWRUGOTQ.cjs +35 -0
  54. package/dist/chunk-DWRUGOTQ.cjs.map +1 -0
  55. package/dist/{chunk-GAA222SK.cjs → chunk-EG3DPKXM.cjs} +5 -5
  56. package/dist/{chunk-GAA222SK.cjs.map → chunk-EG3DPKXM.cjs.map} +1 -1
  57. package/dist/{chunk-VSDD5TH5.cjs → chunk-G3MRW4WB.cjs} +10 -8
  58. package/dist/chunk-G3MRW4WB.cjs.map +1 -0
  59. package/dist/{chunk-TFRCNIUY.cjs → chunk-GF6AYAMI.cjs} +9 -9
  60. package/dist/{chunk-TFRCNIUY.cjs.map → chunk-GF6AYAMI.cjs.map} +1 -1
  61. package/dist/{chunk-4ZR4O5SP.cjs → chunk-GK3U3FWY.cjs} +60 -28
  62. package/dist/chunk-GK3U3FWY.cjs.map +1 -0
  63. package/dist/{chunk-3CJTO6RV.cjs → chunk-GXRD5OSU.cjs} +8 -8
  64. package/dist/{chunk-3CJTO6RV.cjs.map → chunk-GXRD5OSU.cjs.map} +1 -1
  65. package/dist/chunk-JWCVA4LC.cjs +248 -0
  66. package/dist/chunk-JWCVA4LC.cjs.map +1 -0
  67. package/dist/{chunk-UM3EWCDE.cjs → chunk-K5F2VNCX.cjs} +35 -10
  68. package/dist/chunk-K5F2VNCX.cjs.map +1 -0
  69. package/dist/chunk-KD66CBYO.cjs +44 -0
  70. package/dist/chunk-KD66CBYO.cjs.map +1 -0
  71. package/dist/chunk-LLVE5TST.cjs +318 -0
  72. package/dist/chunk-LLVE5TST.cjs.map +1 -0
  73. package/dist/{chunk-CVVQHFLR.cjs → chunk-OZJENXU3.cjs} +71 -649
  74. package/dist/chunk-OZJENXU3.cjs.map +1 -0
  75. package/dist/{chunk-JLNKD56X.cjs → chunk-QEH375MU.cjs} +4 -4
  76. package/dist/{chunk-JLNKD56X.cjs.map → chunk-QEH375MU.cjs.map} +1 -1
  77. package/dist/chunk-SGYURQ23.cjs +271 -0
  78. package/dist/chunk-SGYURQ23.cjs.map +1 -0
  79. package/dist/{chunk-A5SKK3CU.cjs → chunk-SLCH5JRI.cjs} +64 -35
  80. package/dist/chunk-SLCH5JRI.cjs.map +1 -0
  81. package/dist/chunk-T26UYA6Q.cjs +64 -0
  82. package/dist/chunk-T26UYA6Q.cjs.map +1 -0
  83. package/dist/{chunk-SMO4SPPB.cjs → chunk-TD5V5BZ3.cjs} +5 -5
  84. package/dist/{chunk-SMO4SPPB.cjs.map → chunk-TD5V5BZ3.cjs.map} +1 -1
  85. package/dist/{chunk-IXTDOPSB.cjs → chunk-TSAZWUPZ.cjs} +4 -4
  86. package/dist/{chunk-IXTDOPSB.cjs.map → chunk-TSAZWUPZ.cjs.map} +1 -1
  87. package/dist/{chunk-5DGNJ6VJ.cjs → chunk-UD3LPATQ.cjs} +6 -6
  88. package/dist/{chunk-5DGNJ6VJ.cjs.map → chunk-UD3LPATQ.cjs.map} +1 -1
  89. package/dist/{chunk-OF7KMG6R.cjs → chunk-UJHQ4DA4.cjs} +5 -5
  90. package/dist/{chunk-OF7KMG6R.cjs.map → chunk-UJHQ4DA4.cjs.map} +1 -1
  91. package/dist/{chunk-NUFZFWHZ.cjs → chunk-W5QSKW7T.cjs} +3 -29
  92. package/dist/chunk-W5QSKW7T.cjs.map +1 -0
  93. package/dist/{chunk-NNZFZYTI.cjs → chunk-WOVNXJK5.cjs} +4 -54
  94. package/dist/chunk-WOVNXJK5.cjs.map +1 -0
  95. package/dist/{chunk-E6BM5ENI.cjs → chunk-WRTEKOQP.cjs} +2 -309
  96. package/dist/chunk-WRTEKOQP.cjs.map +1 -0
  97. package/dist/{chunk-Z3N32LL4.cjs → chunk-Y2Z5UHHV.cjs} +29 -27
  98. package/dist/chunk-Y2Z5UHHV.cjs.map +1 -0
  99. package/dist/{chunk-KRQCUVH7.cjs → chunk-YSAUOJA7.cjs} +9 -3
  100. package/dist/chunk-YSAUOJA7.cjs.map +1 -0
  101. package/dist/components/gestures/usePointerGesture.d.ts +13 -1
  102. package/dist/components/gestures/usePointerGesture.js +33 -8
  103. package/dist/components/gestures/usePointerGesture.js.map +2 -2
  104. package/dist/connect/docx.cjs +11 -11
  105. package/dist/connect/index.cjs +1064 -2179
  106. package/dist/connect/index.cjs.map +1 -1
  107. package/dist/connect/index.d.ts +1 -0
  108. package/dist/connect/index.js +1 -0
  109. package/dist/connect/index.js.map +2 -2
  110. package/dist/connect/viewer.cjs +11 -9
  111. package/dist/connection/dashboards/DashboardPanel.d.ts +2 -0
  112. package/dist/connection/dashboards/DashboardPanel.js +4 -0
  113. package/dist/connection/dashboards/DashboardPanel.js.map +2 -2
  114. package/dist/connection/dashboards/index.d.ts +1 -1
  115. package/dist/connection/dashboards/index.js +2 -0
  116. package/dist/connection/dashboards/index.js.map +2 -2
  117. package/dist/connection/dashboards/templates.d.ts +10 -5
  118. package/dist/connection/dashboards/templates.js +7 -1
  119. package/dist/connection/dashboards/templates.js.map +2 -2
  120. package/dist/connection/export/ConnectedExportPanel.js +19 -78
  121. package/dist/connection/export/ConnectedExportPanel.js.map +2 -2
  122. package/dist/connection/export/transfer-targets.d.ts +66 -0
  123. package/dist/connection/export/transfer-targets.js +93 -0
  124. package/dist/connection/export/transfer-targets.js.map +7 -0
  125. package/dist/connection/export/transfer-text.js +5 -0
  126. package/dist/connection/export/transfer-text.js.map +2 -2
  127. package/dist/connection/live-blocks/ConnectedAgendaBlock.d.ts +13 -0
  128. package/dist/connection/live-blocks/ConnectedAgendaBlock.js +19 -0
  129. package/dist/connection/live-blocks/ConnectedAgendaBlock.js.map +7 -0
  130. package/dist/connection/live-blocks/ConnectedCarouselBlock.d.ts +7 -0
  131. package/dist/connection/live-blocks/ConnectedCarouselBlock.js +84 -0
  132. package/dist/connection/live-blocks/ConnectedCarouselBlock.js.map +7 -0
  133. package/dist/connection/live-blocks/ConnectedListBlock.d.ts +29 -0
  134. package/dist/connection/live-blocks/ConnectedListBlock.js +193 -0
  135. package/dist/connection/live-blocks/ConnectedListBlock.js.map +7 -0
  136. package/dist/connection/live-blocks/ConnectedStartBlock.d.ts +7 -0
  137. package/dist/connection/live-blocks/ConnectedStartBlock.js +16 -0
  138. package/dist/connection/live-blocks/ConnectedStartBlock.js.map +7 -0
  139. package/dist/connection/live-blocks/DashboardAgenda.d.ts +10 -0
  140. package/dist/connection/{workspace-dashboard → live-blocks}/DashboardAgenda.js +10 -2
  141. package/dist/connection/live-blocks/DashboardAgenda.js.map +7 -0
  142. package/dist/connection/{workspace-dashboard → live-blocks}/DashboardStart.js.map +1 -1
  143. package/dist/connection/live-blocks/LiveBlockRoot.d.ts +11 -0
  144. package/dist/connection/live-blocks/LiveBlockRoot.js +22 -0
  145. package/dist/connection/live-blocks/LiveBlockRoot.js.map +7 -0
  146. package/dist/connection/live-blocks/index.d.ts +5 -0
  147. package/dist/connection/live-blocks/index.js +20 -0
  148. package/dist/connection/live-blocks/index.js.map +7 -0
  149. package/dist/connection/{workspace-dashboard/dashboard-rows.d.ts → live-blocks/list-rows.d.ts} +22 -4
  150. package/dist/connection/{workspace-dashboard/dashboard-rows.js → live-blocks/list-rows.js} +13 -8
  151. package/dist/connection/live-blocks/list-rows.js.map +7 -0
  152. package/dist/connection/{workspace-dashboard → live-blocks}/useDashboardAdd.js.map +1 -1
  153. package/dist/connection/live-blocks/workspace-dashboard-blocks.d.ts +23 -0
  154. package/dist/connection/live-blocks/workspace-dashboard-blocks.js +58 -0
  155. package/dist/connection/live-blocks/workspace-dashboard-blocks.js.map +7 -0
  156. package/dist/connection/pages/BlockEditor.d.ts +3 -1
  157. package/dist/connection/pages/BlockEditor.js +18 -1
  158. package/dist/connection/pages/BlockEditor.js.map +2 -2
  159. package/dist/connection/pages/ConnectedPagesPage.d.ts +9 -5
  160. package/dist/connection/pages/ConnectedPagesPage.js +144 -48
  161. package/dist/connection/pages/ConnectedPagesPage.js.map +2 -2
  162. package/dist/connection/pages/EditablePageGrid.d.ts +25 -15
  163. package/dist/connection/pages/EditablePageGrid.js +145 -50
  164. package/dist/connection/pages/EditablePageGrid.js.map +2 -2
  165. package/dist/connection/pages/LiveBlockEditor.d.ts +30 -0
  166. package/dist/connection/pages/LiveBlockEditor.js +175 -0
  167. package/dist/connection/pages/LiveBlockEditor.js.map +7 -0
  168. package/dist/connection/pages/PageBlockView.d.ts +5 -3
  169. package/dist/connection/pages/PageBlockView.js +69 -4
  170. package/dist/connection/pages/PageBlockView.js.map +2 -2
  171. package/dist/connection/pages/PageGrid.d.ts +4 -3
  172. package/dist/connection/pages/PageGrid.js +4 -2
  173. package/dist/connection/pages/PageGrid.js.map +2 -2
  174. package/dist/connection/pages/PageTransferDialog.d.ts +38 -0
  175. package/dist/connection/pages/PageTransferDialog.js +219 -0
  176. package/dist/connection/pages/PageTransferDialog.js.map +7 -0
  177. package/dist/connection/pages/PageView.d.ts +6 -2
  178. package/dist/connection/pages/PageView.js +40 -15
  179. package/dist/connection/pages/PageView.js.map +2 -2
  180. package/dist/connection/pages/PagesList.d.ts +4 -3
  181. package/dist/connection/pages/PagesList.js.map +2 -2
  182. package/dist/connection/pages/grid-layout.d.ts +44 -12
  183. package/dist/connection/pages/grid-layout.js +71 -27
  184. package/dist/connection/pages/grid-layout.js.map +2 -2
  185. package/dist/connection/pages/index.d.ts +5 -2
  186. package/dist/connection/pages/index.js +40 -5
  187. package/dist/connection/pages/index.js.map +2 -2
  188. package/dist/connection/pages/labels.d.ts +3 -1
  189. package/dist/connection/pages/labels.js +7 -1
  190. package/dist/connection/pages/labels.js.map +2 -2
  191. package/dist/connection/pages/page-templates.d.ts +10 -0
  192. package/dist/connection/pages/page-templates.js +16 -0
  193. package/dist/connection/pages/page-templates.js.map +7 -0
  194. package/dist/connection/workflows/ConnectedWorkflowStart.d.ts +2 -0
  195. package/dist/connection/workflows/ConnectedWorkflowStart.js.map +2 -2
  196. package/dist/connection/workspace-dashboard/ConnectedWorkspaceDashboard.d.ts +10 -7
  197. package/dist/connection/workspace-dashboard/ConnectedWorkspaceDashboard.js +31 -171
  198. package/dist/connection/workspace-dashboard/ConnectedWorkspaceDashboard.js.map +3 -3
  199. package/dist/dashboards/ChartRenderer.d.ts +5 -3
  200. package/dist/dashboards/ChartRenderer.js +29 -18
  201. package/dist/dashboards/ChartRenderer.js.map +2 -2
  202. package/dist/dashboards/PanelView.d.ts +6 -1
  203. package/dist/dashboards/PanelView.js +24 -7
  204. package/dist/dashboards/PanelView.js.map +2 -2
  205. package/dist/dashboards/RechartsRenderer.d.ts +2 -1
  206. package/dist/dashboards/RechartsRenderer.js.map +2 -2
  207. package/dist/dashboards/index.cjs +25 -21
  208. package/dist/embed/index.cjs +17 -15
  209. package/dist/home/FactsStrip.d.ts +3 -1
  210. package/dist/home/FactsStrip.js +3 -2
  211. package/dist/home/FactsStrip.js.map +2 -2
  212. package/dist/home/RecentList.d.ts +4 -2
  213. package/dist/home/RecentList.js +3 -2
  214. package/dist/home/RecentList.js.map +2 -2
  215. package/dist/home/StartTiles.d.ts +6 -1
  216. package/dist/home/StartTiles.js +55 -33
  217. package/dist/home/StartTiles.js.map +2 -2
  218. package/dist/home/index.cjs +62 -57
  219. package/dist/home/index.d.ts +1 -1
  220. package/dist/home/index.js +2 -1
  221. package/dist/home/index.js.map +2 -2
  222. package/dist/home/sections.d.ts +5 -0
  223. package/dist/home/sections.js +7 -0
  224. package/dist/home/sections.js.map +2 -2
  225. package/dist/index.cjs +326 -324
  226. package/dist/index.cjs.map +1 -1
  227. package/dist/pages/index.cjs +864 -155
  228. package/dist/pages/index.cjs.map +1 -1
  229. package/dist/settings/index.cjs +164 -163
  230. package/dist/shell/index.cjs +34 -33
  231. package/dist/studio/index.cjs +12 -12
  232. package/dist/styles.css +1 -1
  233. package/dist/workflow-canvas/index.cjs +24 -21
  234. package/dist/workflow-canvas/index.cjs.map +1 -1
  235. package/dist/workspaces/index.cjs +49 -47
  236. package/dist/workspaces/index.cjs.map +1 -1
  237. package/node_modules/@arbidocs/coedit/package.json +1 -1
  238. package/package.json +5 -5
  239. package/dist/DocumentReviewCard-5W2QQWKA.cjs.map +0 -1
  240. package/dist/FilesViewerDialog-63QUTG4L.cjs.map +0 -1
  241. package/dist/WorkspaceTableView-2QP2HJLK.cjs.map +0 -1
  242. package/dist/ai-ODGRIL6Y.cjs.map +0 -1
  243. package/dist/chunk-4I2PCP7O.cjs.map +0 -1
  244. package/dist/chunk-4ZR4O5SP.cjs.map +0 -1
  245. package/dist/chunk-A5SKK3CU.cjs.map +0 -1
  246. package/dist/chunk-CVVQHFLR.cjs.map +0 -1
  247. package/dist/chunk-DUNXLT63.cjs.map +0 -1
  248. package/dist/chunk-E6BM5ENI.cjs.map +0 -1
  249. package/dist/chunk-HNLNRAEU.cjs.map +0 -1
  250. package/dist/chunk-KRQCUVH7.cjs.map +0 -1
  251. package/dist/chunk-KWJW5TMH.cjs.map +0 -1
  252. package/dist/chunk-NNZFZYTI.cjs.map +0 -1
  253. package/dist/chunk-NUFZFWHZ.cjs.map +0 -1
  254. package/dist/chunk-UM3EWCDE.cjs.map +0 -1
  255. package/dist/chunk-VSDD5TH5.cjs.map +0 -1
  256. package/dist/chunk-Z3N32LL4.cjs.map +0 -1
  257. package/dist/connection/workspace-dashboard/DashboardAgenda.d.ts +0 -1
  258. package/dist/connection/workspace-dashboard/DashboardAgenda.js.map +0 -7
  259. package/dist/connection/workspace-dashboard/dashboard-rows.js.map +0 -7
  260. /package/dist/connection/{workspace-dashboard → live-blocks}/DashboardStart.d.ts +0 -0
  261. /package/dist/connection/{workspace-dashboard → live-blocks}/DashboardStart.js +0 -0
  262. /package/dist/connection/{workspace-dashboard → live-blocks}/useDashboardAdd.d.ts +0 -0
  263. /package/dist/connection/{workspace-dashboard → live-blocks}/useDashboardAdd.js +0 -0
@@ -0,0 +1,1533 @@
1
+ "use client";
2
+ 'use strict';
3
+
4
+ var chunkDWRUGOTQ_cjs = require('./chunk-DWRUGOTQ.cjs');
5
+ var chunk7UPEFZCV_cjs = require('./chunk-7UPEFZCV.cjs');
6
+ var chunkV27WLYTG_cjs = require('./chunk-V27WLYTG.cjs');
7
+ var chunkSGYURQ23_cjs = require('./chunk-SGYURQ23.cjs');
8
+ var chunkJWCVA4LC_cjs = require('./chunk-JWCVA4LC.cjs');
9
+ var chunkJCFXS336_cjs = require('./chunk-JCFXS336.cjs');
10
+ var chunk5GBM7BQB_cjs = require('./chunk-5GBM7BQB.cjs');
11
+ var chunkWRTEKOQP_cjs = require('./chunk-WRTEKOQP.cjs');
12
+ var chunkBH322H5B_cjs = require('./chunk-BH322H5B.cjs');
13
+ var chunkM55XUF4L_cjs = require('./chunk-M55XUF4L.cjs');
14
+ var chunkSLCH5JRI_cjs = require('./chunk-SLCH5JRI.cjs');
15
+ var chunk4M3OIBIS_cjs = require('./chunk-4M3OIBIS.cjs');
16
+ var chunkQUMUAJ2P_cjs = require('./chunk-QUMUAJ2P.cjs');
17
+ var chunkT26UYA6Q_cjs = require('./chunk-T26UYA6Q.cjs');
18
+ var chunkDWN5AUMH_cjs = require('./chunk-DWN5AUMH.cjs');
19
+ var chunkGB5MN5FC_cjs = require('./chunk-GB5MN5FC.cjs');
20
+ var chunkTMX7YFVM_cjs = require('./chunk-TMX7YFVM.cjs');
21
+ var chunk46LX6EQT_cjs = require('./chunk-46LX6EQT.cjs');
22
+ var react$1 = require('react');
23
+ var lucideReact = require('lucide-react');
24
+ var react = require('@arbidocs/react');
25
+ var ui = require('@arbidocs/react/ui');
26
+ var jsxRuntime = require('react/jsx-runtime');
27
+ var client = require('@arbidocs/client');
28
+ var zustand = require('zustand');
29
+ var shell = require('@arbidocs/react/shell');
30
+
31
+ function ConnectedWorkspaceEntity({
32
+ workspace,
33
+ size = 24,
34
+ isSelected = false,
35
+ className = "",
36
+ variant = "pill",
37
+ interactive = true,
38
+ showTooltip = true,
39
+ labelMaxWidth = "max-w-[10ch]",
40
+ ...shieldProps
41
+ }) {
42
+ const name = workspace.name;
43
+ const workspaceColor = chunkWRTEKOQP_cjs.workspaceKindColor(react.getWorkspaceKind(workspace));
44
+ const shield = /* @__PURE__ */ jsxRuntime.jsx(
45
+ ui.ShieldIcon,
46
+ {
47
+ char: name.charAt(0),
48
+ workspaceColor,
49
+ size: variant === "pill" ? 24 : size,
50
+ isSelected,
51
+ className: variant === "icon" ? className : "",
52
+ ...shieldProps
53
+ }
54
+ );
55
+ const documentCount = (workspace.shared_document_count ?? 0) + (workspace.private_document_count ?? 0);
56
+ const conversationCount = (workspace.shared_conversation_count ?? 0) + (workspace.private_conversation_count ?? 0);
57
+ const tooltipContent = /* @__PURE__ */ jsxRuntime.jsxs(chunkTMX7YFVM_cjs.EntityTooltip, { children: [
58
+ /* @__PURE__ */ jsxRuntime.jsx(
59
+ chunkTMX7YFVM_cjs.EntityTooltipHeader,
60
+ {
61
+ lead: /* @__PURE__ */ jsxRuntime.jsx(
62
+ ui.ShieldIcon,
63
+ {
64
+ char: name.charAt(0),
65
+ workspaceColor,
66
+ size: 24,
67
+ isSelected: false
68
+ }
69
+ ),
70
+ title: name,
71
+ subtitle: workspace.description,
72
+ trailing: /* @__PURE__ */ jsxRuntime.jsx(chunkDWRUGOTQ_cjs.WorkspaceTypeBadge, { workspace, size: "sm" })
73
+ }
74
+ ),
75
+ /* @__PURE__ */ jsxRuntime.jsx(
76
+ chunkTMX7YFVM_cjs.EntityTooltipStats,
77
+ {
78
+ stats: [
79
+ {
80
+ key: "documents",
81
+ icon: /* @__PURE__ */ jsxRuntime.jsx(ui.EntityIcon, { entityType: "DOCUMENT", className: "h-3.5 w-3.5 text-muted-foreground" }),
82
+ label: ui.getEntityLabel("DOCUMENT", "PLURAL"),
83
+ value: documentCount
84
+ },
85
+ {
86
+ key: "conversations",
87
+ icon: /* @__PURE__ */ jsxRuntime.jsx(ui.EntityIcon, { entityType: "CONVERSATION", className: "h-3.5 w-3.5 text-muted-foreground" }),
88
+ label: ui.getEntityLabel("CONVERSATION", "PLURAL"),
89
+ value: conversationCount
90
+ },
91
+ {
92
+ key: "storage",
93
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.HardDrive, { className: "h-3.5 w-3.5 text-muted-foreground" }),
94
+ label: "Storage",
95
+ value: `${Math.round(workspace.user_files_mb ?? 0)} MB`
96
+ }
97
+ ]
98
+ }
99
+ ),
100
+ workspace.updated_at && /* @__PURE__ */ jsxRuntime.jsxs(chunkTMX7YFVM_cjs.EntityTooltipHint, { children: [
101
+ "Updated ",
102
+ ui.formatFriendlyDate(workspace.updated_at)
103
+ ] }),
104
+ interactive && variant !== "icon" && /* @__PURE__ */ jsxRuntime.jsxs(chunkTMX7YFVM_cjs.EntityTooltipHint, { icon: /* @__PURE__ */ jsxRuntime.jsx(ui.EntityIcon, { entityType: "WORKSPACE", className: "w-3 h-3" }), children: [
105
+ "Click to open ",
106
+ ui.getEntityLabel("WORKSPACE").toLowerCase(),
107
+ " settings"
108
+ ] })
109
+ ] });
110
+ if (variant === "icon") {
111
+ if (!showTooltip) return shield;
112
+ return /* @__PURE__ */ jsxRuntime.jsxs(ui.Tooltip, { children: [
113
+ /* @__PURE__ */ jsxRuntime.jsx(
114
+ ui.TooltipTrigger,
115
+ {
116
+ onFocusCapture: (e) => e.stopPropagation(),
117
+ className: "touch-hit inline-flex",
118
+ children: shield
119
+ }
120
+ ),
121
+ /* @__PURE__ */ jsxRuntime.jsx(ui.TooltipContent, { className: "p-2", children: tooltipContent })
122
+ ] });
123
+ }
124
+ const pill = {
125
+ icon: shield,
126
+ label: name,
127
+ tooltipContent: showTooltip ? tooltipContent : void 0,
128
+ className,
129
+ labelMaxWidth
130
+ };
131
+ if (!interactive) return /* @__PURE__ */ jsxRuntime.jsx(ui.EntityPill, { ...pill, shape: "rounded" });
132
+ return /* @__PURE__ */ jsxRuntime.jsx(OpenableWorkspacePill, { ...pill, workspaceId: workspace.external_id, name });
133
+ }
134
+ function OpenableWorkspacePill({
135
+ workspaceId,
136
+ name,
137
+ icon,
138
+ label,
139
+ tooltipContent,
140
+ className,
141
+ labelMaxWidth
142
+ }) {
143
+ const { openWorkspace } = chunkGB5MN5FC_cjs.useConnectedWorkspace();
144
+ const onClick = react$1.useCallback(
145
+ (e) => {
146
+ e.stopPropagation();
147
+ void openWorkspace(workspaceId, { name });
148
+ },
149
+ [openWorkspace, workspaceId, name]
150
+ );
151
+ return /* @__PURE__ */ jsxRuntime.jsx(
152
+ ui.EntityPill,
153
+ {
154
+ icon,
155
+ label,
156
+ shape: "rounded",
157
+ onClick,
158
+ tooltipContent,
159
+ className,
160
+ labelMaxWidth
161
+ }
162
+ );
163
+ }
164
+ function resolveAttendeeUsers(attendees, known, me) {
165
+ const byId = new Map(known.map((u) => [u.external_id, u]));
166
+ const byEmail = new Map(known.filter((u) => u.email).map((u) => [u.email.toLowerCase(), u]));
167
+ const out = /* @__PURE__ */ new Map();
168
+ for (const a of attendees) {
169
+ if (a.kind === "room" || a.kind === "resource") continue;
170
+ const u = a.user_id && byId.get(a.user_id) || a.email && byEmail.get(a.email.toLowerCase());
171
+ if (!u || u.is_agent || !u.encryption_public_key || u.external_id === me) continue;
172
+ out.set(chunk4M3OIBIS_cjs.attendeeKey(a), {
173
+ external_id: u.external_id,
174
+ encryption_public_key: u.encryption_public_key
175
+ });
176
+ }
177
+ return out;
178
+ }
179
+ var distinctPeers = (users) => [
180
+ ...new Map([...users.values()].map((p) => [p.external_id, p])).values()
181
+ ];
182
+ function resolveCallPeers(attendees, known, me) {
183
+ return distinctPeers(resolveAttendeeUsers(attendees, known, me));
184
+ }
185
+ async function resolveAttendeeUsersRemote(arbi, attendees, known, me) {
186
+ const people = attendees.filter((a) => a.kind !== "room" && a.kind !== "resource");
187
+ const local = resolveAttendeeUsers(people, known, me);
188
+ const have = new Set([...local.values()].map((p) => p.external_id));
189
+ const knownEmails = new Set(
190
+ known.filter((u) => have.has(u.external_id) && u.email).map((u) => u.email.toLowerCase())
191
+ );
192
+ const emails = people.map((a) => a.email?.toLowerCase()).filter((e) => !!e && !knownEmails.has(e));
193
+ const userIds = people.map((a) => a.user_id).filter((id) => !!id && !have.has(id));
194
+ if (!emails.length && !userIds.length) return local;
195
+ try {
196
+ const found = await arbi.calendar.peopleKeys({ emails, user_ids: userIds });
197
+ const extra = resolveAttendeeUsers(
198
+ people.filter((a) => !local.has(chunk4M3OIBIS_cjs.attendeeKey(a))),
199
+ found.map((f) => ({
200
+ external_id: f.user_id,
201
+ email: f.email,
202
+ encryption_public_key: f.encryption_public_key
203
+ })),
204
+ me
205
+ );
206
+ for (const [key, p] of extra) local.set(key, p);
207
+ } catch {
208
+ }
209
+ return local;
210
+ }
211
+ async function resolveCallPeersRemote(arbi, attendees, known, me) {
212
+ return distinctPeers(await resolveAttendeeUsersRemote(arbi, attendees, known, me));
213
+ }
214
+ function webinarRolesByUser(roles, users) {
215
+ const out = {};
216
+ for (const [key, peer] of users) out[peer.external_id] = roles?.[key] ?? "attendee";
217
+ return out;
218
+ }
219
+ var isTeam = (role) => role === "cohost" || role === "panelist";
220
+ function parseArbiCallUrl(url, origin = window.location.origin) {
221
+ if (!url) return null;
222
+ let u;
223
+ try {
224
+ u = new URL(url);
225
+ } catch {
226
+ return null;
227
+ }
228
+ if (u.origin !== origin) return null;
229
+ const m = /^\/call\/(call-[A-Za-z0-9_-]{4,64})\/?$/.exec(u.pathname);
230
+ if (!m) return null;
231
+ const frag = client.parseCallFragment(u.hash);
232
+ if (!frag) return null;
233
+ return { callId: m[1], key: frag.key, linkVersion: frag.linkVersion };
234
+ }
235
+ async function createEventCall(arbi, opts) {
236
+ const roles = opts.webinar?.roles;
237
+ const { call, key, title, sealedKeys } = await arbi.calls.start({
238
+ title: opts.title,
239
+ invitees: opts.peers,
240
+ mode: roles ? "webinar" : "call",
241
+ joinPolicy: "invited",
242
+ roles
243
+ });
244
+ const members = opts.peers.filter(
245
+ (p) => p.external_id in sealedKeys && (!roles || isTeam(roles[p.external_id]))
246
+ );
247
+ if (members.length) {
248
+ try {
249
+ await arbi.calls.createChat({ callExtId: call.external_id, callKey: key, title, members });
250
+ } catch (err) {
251
+ console.warn("[calendar] could not create the meeting chat; it is made on first use", err);
252
+ }
253
+ }
254
+ return { call_id: call.external_id, url: react.callLink(call.external_id, key, call.link_version) };
255
+ }
256
+ async function shareEventCall(arbi, conference, peers) {
257
+ if (conference?.type !== "arbi" || !peers.length) return 0;
258
+ const parsed = parseArbiCallUrl(conference.url);
259
+ if (!parsed) return 0;
260
+ const sealed = await arbi.calls.sealFor(parsed.key, peers);
261
+ if (!Object.keys(sealed).length) return 0;
262
+ await arbi.calls.update(parsed.callId, { sealed_keys: sealed });
263
+ return Object.keys(sealed).length;
264
+ }
265
+ async function loadEventWebinar(arbi, url, attendees) {
266
+ const parsed = parseArbiCallUrl(url);
267
+ if (!parsed) return null;
268
+ const call = await arbi.calls.get(parsed.callId);
269
+ if (call.mode !== "webinar") return null;
270
+ const roles = {};
271
+ for (const inv of call.invitees ?? []) {
272
+ const a = attendees.find(
273
+ (x) => x.user_id === inv.user_ext_id || !!x.email && x.email.toLowerCase() === inv.email?.toLowerCase()
274
+ );
275
+ if (a) roles[chunk4M3OIBIS_cjs.attendeeKey(a)] = inv.role ?? "attendee";
276
+ }
277
+ return roles;
278
+ }
279
+ async function updateEventWebinarRoles(arbi, url, roles, peers) {
280
+ const parsed = parseArbiCallUrl(url);
281
+ if (!parsed) return;
282
+ const call = await arbi.calls.get(parsed.callId);
283
+ const current = new Map((call.invitees ?? []).map((i) => [i.user_ext_id, i.role ?? "attendee"]));
284
+ const changed = Object.fromEntries(
285
+ Object.entries(roles).filter(([usr, role]) => current.has(usr) && current.get(usr) !== role)
286
+ );
287
+ if (Object.keys(changed).length) await arbi.calls.update(parsed.callId, { roles: changed });
288
+ const team = peers.filter((p) => current.has(p.external_id) && isTeam(roles[p.external_id]));
289
+ if (!team.length) return;
290
+ try {
291
+ await arbi.calls.createChat({ callExtId: parsed.callId, callKey: parsed.key, members: team });
292
+ } catch (err) {
293
+ console.warn("[calendar] could not create the webinar team chat; it is made on first use", err);
294
+ }
295
+ }
296
+ async function joinEventMeeting(arbi, url) {
297
+ if (!url) return;
298
+ const parsed = parseArbiCallUrl(url);
299
+ if (parsed) {
300
+ await react.openCall(arbi, {
301
+ callExtId: parsed.callId,
302
+ key: parsed.key,
303
+ linkVersion: parsed.linkVersion
304
+ });
305
+ return;
306
+ }
307
+ if (/^(https?:\/\/|tel:)/i.test(url)) window.open(url, "_blank", "noopener,noreferrer");
308
+ }
309
+ var useExportStore = zustand.create()((set) => ({
310
+ columnsMode: "visible",
311
+ setColumnsMode: (columnsMode) => set({ columnsMode }),
312
+ activeTransfers: [],
313
+ trackTransfer: (transferId) => set(
314
+ (state) => state.activeTransfers.includes(transferId) ? state : { activeTransfers: [...state.activeTransfers, transferId] }
315
+ ),
316
+ untrackTransfer: (transferId) => set((state) => ({ activeTransfers: state.activeTransfers.filter((id) => id !== transferId) }))
317
+ }));
318
+ function useCopyToClipboard({
319
+ text,
320
+ copyMessage = "Copied to clipboard!",
321
+ failureMessage = "Failed to copy to clipboard."
322
+ }) {
323
+ const { notify } = chunk46LX6EQT_cjs.useBlocksEnvironment();
324
+ const [isCopied, setIsCopied] = react$1.useState(false);
325
+ const timeoutRef = react$1.useRef(null);
326
+ react$1.useEffect(
327
+ () => () => {
328
+ if (timeoutRef.current) clearTimeout(timeoutRef.current);
329
+ },
330
+ []
331
+ );
332
+ const handleCopy = react$1.useCallback(() => {
333
+ navigator.clipboard.writeText(text).then(() => {
334
+ notify(copyMessage, "success");
335
+ setIsCopied(true);
336
+ if (timeoutRef.current) clearTimeout(timeoutRef.current);
337
+ timeoutRef.current = setTimeout(() => {
338
+ timeoutRef.current = null;
339
+ setIsCopied(false);
340
+ }, 2e3);
341
+ }).catch(() => {
342
+ notify(failureMessage, "error");
343
+ });
344
+ }, [text, copyMessage, failureMessage, notify]);
345
+ return { isCopied, handleCopy };
346
+ }
347
+ function CopyButton({ content, copyMessage, label = "Copy to clipboard" }) {
348
+ const { isCopied, handleCopy } = useCopyToClipboard({ text: content, copyMessage });
349
+ return /* @__PURE__ */ jsxRuntime.jsxs(
350
+ ui.Button,
351
+ {
352
+ variant: "ghost",
353
+ size: "icon",
354
+ className: "relative h-6 w-6",
355
+ "aria-label": label,
356
+ onClick: handleCopy,
357
+ "data-testid": "copy-button",
358
+ children: [
359
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
360
+ lucideReact.Check,
361
+ {
362
+ className: ui.cn(
363
+ "h-4 w-4 transition-transform ease-in-out",
364
+ isCopied ? "scale-100" : "scale-0"
365
+ )
366
+ }
367
+ ) }),
368
+ /* @__PURE__ */ jsxRuntime.jsx(
369
+ lucideReact.Copy,
370
+ {
371
+ className: ui.cn(
372
+ "h-4 w-4 transition-transform ease-in-out",
373
+ isCopied ? "scale-0" : "scale-100"
374
+ )
375
+ }
376
+ )
377
+ ]
378
+ }
379
+ );
380
+ }
381
+ function displayDomain(domain) {
382
+ return domain.startsWith("www.") ? domain.slice(4) : domain;
383
+ }
384
+ var detailOf = (err) => err?.detail;
385
+ function ConnectedEmailWorkspaceDialog({
386
+ open,
387
+ onOpenChange,
388
+ workspace,
389
+ isMember,
390
+ labels
391
+ }) {
392
+ const { confirm, notify, runtimeConfig } = chunk46LX6EQT_cjs.useBlocksEnvironment();
393
+ const [isGranting, setIsGranting] = react$1.useState(false);
394
+ const domain = runtimeConfig.deploymentDomain;
395
+ const email = domain ? `${workspace.external_id}@${displayDomain(domain)}` : null;
396
+ const mailtoHref = email ? `mailto:${email}?subject=${encodeURIComponent(workspace.name || "Untitled workspace")}` : null;
397
+ const { data: agents, isLoading: isLoadingAgents } = react.useAgents({ enabled: open && isMember });
398
+ const defaultAssistant = react$1.useMemo(
399
+ () => agents?.find((a) => a.email.startsWith("assistant.")),
400
+ [agents]
401
+ );
402
+ const { data: assistantWorkspaces } = react.useAgentWorkspaces(defaultAssistant?.external_id ?? "", {
403
+ enabled: !!defaultAssistant?.external_id
404
+ });
405
+ const alreadyGranted = assistantWorkspaces?.some(
406
+ (w) => w.workspace_ext_id === workspace.external_id
407
+ );
408
+ const { data: sessions, isLoading: isLoadingSessions } = react.useSessions({
409
+ enabled: open && isMember
410
+ });
411
+ const activeSession = sessions?.find(
412
+ (s) => s.status === "agent" && s.workspaces.includes(workspace.external_id)
413
+ );
414
+ const { data: limits } = react.useAuthorizeLimits({ enabled: open && isMember });
415
+ const grantAgentAccess = react.useGrantAgentAccess();
416
+ const terminateSession = react.useTerminateSession();
417
+ const handleAuthorize = async () => {
418
+ if (!defaultAssistant) {
419
+ notify("No default Assistant found for your account", "error");
420
+ return;
421
+ }
422
+ try {
423
+ await grantAgentAccess.mutateAsync({
424
+ agentExtId: defaultAssistant.external_id,
425
+ workspaceId: workspace.external_id,
426
+ mode: { kind: "temporary" }
427
+ });
428
+ notify("Your Assistant is authorized for this workspace", "success");
429
+ } catch (err) {
430
+ notify(detailOf(err) || "Failed to authorize", "error");
431
+ }
432
+ };
433
+ const handleEndSession = async () => {
434
+ if (!activeSession) return;
435
+ try {
436
+ await terminateSession.mutateAsync(activeSession.session_id);
437
+ } catch {
438
+ notify("Failed to end session", "error");
439
+ }
440
+ };
441
+ const handleGrantAccess = async () => {
442
+ if (!defaultAssistant) {
443
+ notify("No default Assistant found for your account", "error");
444
+ return;
445
+ }
446
+ const confirmed = await confirm({
447
+ message: `Grant your Assistant standing access to "${workspace.name || "this workspace"}"? It will be able to read and act on this workspace whenever it wakes, including from email, without asking first.`,
448
+ title: "Grant standing access"
449
+ });
450
+ if (!confirmed) return;
451
+ setIsGranting(true);
452
+ try {
453
+ await grantAgentAccess.mutateAsync({
454
+ agentExtId: defaultAssistant.external_id,
455
+ workspaceId: workspace.external_id
456
+ });
457
+ notify("Your Assistant now has standing access to this workspace", "success");
458
+ } catch (err) {
459
+ notify(detailOf(err) || "Failed to grant access", "error");
460
+ } finally {
461
+ setIsGranting(false);
462
+ }
463
+ };
464
+ if (!email) return null;
465
+ const isLoadingAccess = isLoadingAgents || isLoadingSessions;
466
+ let access;
467
+ if (isMember) {
468
+ if (isLoadingAccess) access = { kind: "loading" };
469
+ else if (!defaultAssistant) access = { kind: "none" };
470
+ else if (activeSession)
471
+ access = {
472
+ kind: "session",
473
+ expiresIn: chunkJWCVA4LC_cjs.formatSessionTtl(activeSession.ttl),
474
+ isEnding: terminateSession.isPending,
475
+ onEnd: handleEndSession
476
+ };
477
+ else
478
+ access = {
479
+ kind: "idle",
480
+ defaultTtl: limits ? chunkJWCVA4LC_cjs.formatSessionTtl(limits.default_ttl_seconds) : void 0,
481
+ isAuthorizing: grantAgentAccess.isPending && grantAgentAccess.variables?.mode?.kind === "temporary",
482
+ onAuthorize: handleAuthorize
483
+ };
484
+ }
485
+ return /* @__PURE__ */ jsxRuntime.jsx(
486
+ chunkJWCVA4LC_cjs.EmailWorkspaceDialogView,
487
+ {
488
+ open,
489
+ onOpenChange,
490
+ email,
491
+ mailtoHref: mailtoHref ?? "",
492
+ paDomain: displayDomain(domain),
493
+ copyButton: /* @__PURE__ */ jsxRuntime.jsx(CopyButton, { content: email, copyMessage: "Email address copied" }),
494
+ access,
495
+ standing: defaultAssistant ? {
496
+ alreadyGranted: !!alreadyGranted,
497
+ isGranting,
498
+ onGrant: handleGrantAccess
499
+ } : void 0,
500
+ labels
501
+ }
502
+ );
503
+ }
504
+ function ConnectedUpcomingEvents({
505
+ timeZone,
506
+ days = 7,
507
+ limit = 8,
508
+ showDeclined,
509
+ onOpen,
510
+ onJoin,
511
+ className
512
+ }) {
513
+ const arbi = react.useArbi();
514
+ const [now] = react$1.useState(() => Math.floor(Date.now() / 6e4) * 6e4);
515
+ const range = react$1.useMemo(
516
+ () => ({
517
+ start: new Date(now).toISOString(),
518
+ end: new Date(now + days * 864e5).toISOString()
519
+ }),
520
+ [now, days]
521
+ );
522
+ const { data: events = [], isLoading } = react.useCalendarEvents(range);
523
+ const { data: calendars = [] } = react.useCalendars();
524
+ const hidden = react$1.useMemo(
525
+ () => new Set(calendars.filter((c) => c.hidden).map((c) => c.id)),
526
+ [calendars]
527
+ );
528
+ const list = chunk4M3OIBIS_cjs.upcomingOf(events, Date.now(), { showDeclined, hidden }).slice(0, limit);
529
+ let lastDay = "";
530
+ return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: ui.cn("space-y-1 text-sm", className), "data-testid": "calendar-upcoming", children: [
531
+ /* @__PURE__ */ jsxRuntime.jsx("h4", { className: "px-1 text-xs font-semibold uppercase tracking-wider text-muted-foreground", children: "Upcoming" }),
532
+ !isLoading && list.length === 0 && /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "px-1 text-xs text-muted-foreground", children: [
533
+ "Nothing in the next ",
534
+ days,
535
+ " days."
536
+ ] }),
537
+ /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "space-y-0.5", children: list.map((e) => {
538
+ const day = e.all_day ? e.start.date ?? "" : chunkQUMUAJ2P_cjs.utcToDate(e.start_utc, timeZone);
539
+ const header = day !== lastDay;
540
+ lastDay = day;
541
+ return /* @__PURE__ */ jsxRuntime.jsxs("li", { children: [
542
+ header && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-1 pt-1.5 text-[11px] font-medium text-muted-foreground", children: chunkQUMUAJ2P_cjs.formatPlainDate(day, { weekday: "short", day: "numeric", month: "short" }) }),
543
+ /* @__PURE__ */ jsxRuntime.jsxs(
544
+ "div",
545
+ {
546
+ className: "flex items-center gap-1.5 rounded-md px-1 py-0.5 hover:bg-muted/60",
547
+ "data-testid": "calendar-upcoming-item",
548
+ children: [
549
+ /* @__PURE__ */ jsxRuntime.jsxs(
550
+ "button",
551
+ {
552
+ type: "button",
553
+ className: "flex min-w-0 flex-1 items-baseline gap-1.5 text-left",
554
+ onClick: () => onOpen?.(e),
555
+ children: [
556
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "w-12 shrink-0 text-xs text-muted-foreground", children: e.all_day ? "All day" : chunkQUMUAJ2P_cjs.formatInZone(e.start_utc, timeZone, { hour: "numeric", minute: "2-digit" }) }),
557
+ /* @__PURE__ */ jsxRuntime.jsx(
558
+ "span",
559
+ {
560
+ className: ui.cn("min-w-0 truncate", e.my_partstat === "needs_action" && "italic"),
561
+ children: e.restricted ? "Busy" : e.title || "Untitled"
562
+ }
563
+ )
564
+ ]
565
+ }
566
+ ),
567
+ chunk4M3OIBIS_cjs.conferenceUrl(e) && /* @__PURE__ */ jsxRuntime.jsxs(
568
+ ui.Button,
569
+ {
570
+ type: "button",
571
+ size: "sm",
572
+ variant: chunk4M3OIBIS_cjs.canJoinEvent(e) ? "default" : "ghost",
573
+ className: "h-6 px-2 text-xs",
574
+ onClick: () => onJoin ? onJoin(e) : void joinEventMeeting(arbi, chunk4M3OIBIS_cjs.conferenceUrl(e)),
575
+ "aria-label": `Join ${e.title}`,
576
+ "data-testid": "calendar-upcoming-join",
577
+ children: [
578
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Video, { className: "mr-1 size-3" }),
579
+ " ",
580
+ chunk4M3OIBIS_cjs.isWebinarConference(e.conference) ? "Join webinar" : "Join"
581
+ ]
582
+ }
583
+ )
584
+ ]
585
+ }
586
+ )
587
+ ] }, e.instance_id);
588
+ }) })
589
+ ] });
590
+ }
591
+ function DashboardAgenda({
592
+ days,
593
+ limit,
594
+ className,
595
+ testId = "dashboard-agenda"
596
+ } = {}) {
597
+ const { data: settings } = react.useCalendarSettings();
598
+ const { openCalendar } = chunk46LX6EQT_cjs.useBlocksEnvironment();
599
+ return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: ui.cn("rounded-lg border border-border p-3", className), "data-testid": testId, children: [
600
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-1 flex items-center justify-end", children: /* @__PURE__ */ jsxRuntime.jsx(chunkT26UYA6Q_cjs.ScheduleCallButton, { variant: "label" }) }),
601
+ /* @__PURE__ */ jsxRuntime.jsx(
602
+ ConnectedUpcomingEvents,
603
+ {
604
+ timeZone: chunkQUMUAJ2P_cjs.safeZone(settings?.time_zone, chunkQUMUAJ2P_cjs.detectTimeZone()),
605
+ days,
606
+ limit,
607
+ showDeclined: !!settings?.show_declined,
608
+ onOpen: (event) => openCalendar({ event: { id: event.id, recurrenceId: event.recurrence_id } })
609
+ }
610
+ )
611
+ ] });
612
+ }
613
+ function LiveBlockRoot({
614
+ kind,
615
+ source,
616
+ children
617
+ }) {
618
+ return /* @__PURE__ */ jsxRuntime.jsx(
619
+ "div",
620
+ {
621
+ className: "contents",
622
+ "data-slot": "live-block",
623
+ "data-block-kind": kind,
624
+ "data-block-source": source,
625
+ children
626
+ }
627
+ );
628
+ }
629
+ function ConnectedAgendaBlock({ config, className, testId }) {
630
+ return /* @__PURE__ */ jsxRuntime.jsx(LiveBlockRoot, { kind: "agenda", children: /* @__PURE__ */ jsxRuntime.jsx(
631
+ DashboardAgenda,
632
+ {
633
+ days: config.days,
634
+ limit: config.limit,
635
+ className,
636
+ testId
637
+ }
638
+ ) });
639
+ }
640
+ var PENDING_LOOKUP_MS = 3e3;
641
+ var PENDING_LOOKUP_TRIES = 40;
642
+ var PENDING_TASK_MESSAGE = "Your task has started, but its thread isn't ready yet. It opens here as soon as it appears, or press Look again.";
643
+ var LOOK_AGAIN_LABEL = "Look again";
644
+ function usePendingTaskThread({
645
+ open,
646
+ onOpenChange,
647
+ findThread
648
+ }) {
649
+ const [pending, setPending] = react$1.useState(null);
650
+ const [isLooking, setIsLooking] = react$1.useState(false);
651
+ const { notify, openConversation } = chunk46LX6EQT_cjs.useBlocksEnvironment();
652
+ const latest = react$1.useRef({ open, onOpenChange, findThread, notify, openConversation });
653
+ react$1.useEffect(() => {
654
+ latest.current = { open, onOpenChange, findThread, notify, openConversation };
655
+ });
656
+ const openThread = (conversationId) => {
657
+ setPending(null);
658
+ const { notify: notify2, openConversation: openConversation2 } = latest.current;
659
+ const navigate = (id) => openConversation2(id);
660
+ if (latest.current.open) {
661
+ navigate(conversationId);
662
+ latest.current.onOpenChange(false);
663
+ } else {
664
+ notify2("Your task is ready", "success", {
665
+ action: { label: "Open thread", onClick: () => navigate(conversationId) }
666
+ });
667
+ }
668
+ };
669
+ const openThreadRef = react$1.useRef(openThread);
670
+ react$1.useEffect(() => {
671
+ openThreadRef.current = openThread;
672
+ });
673
+ react$1.useEffect(() => {
674
+ if (!pending) return;
675
+ let cancelled = false;
676
+ let tries = 0;
677
+ const timer = setInterval(() => {
678
+ tries += 1;
679
+ if (tries > PENDING_LOOKUP_TRIES) {
680
+ clearInterval(timer);
681
+ return;
682
+ }
683
+ void latest.current.findThread(pending.messageId).then((found) => {
684
+ if (found && !cancelled) {
685
+ cancelled = true;
686
+ clearInterval(timer);
687
+ openThreadRef.current(found.conversationId);
688
+ }
689
+ }).catch(() => {
690
+ });
691
+ }, PENDING_LOOKUP_MS);
692
+ return () => {
693
+ cancelled = true;
694
+ clearInterval(timer);
695
+ };
696
+ }, [pending]);
697
+ return {
698
+ /** A started task's thread is pending: the start button looks again instead of starting. */
699
+ isPending: pending !== null,
700
+ isLooking,
701
+ /** Whether `prompt` is the one whose task already started (so it must not start again). */
702
+ isPendingFor: (prompt) => pending !== null && pending.prompt === prompt,
703
+ /** Look for the pending thread now: opens it, or throws the pending message. */
704
+ lookAgain: async () => {
705
+ if (!pending) return;
706
+ setIsLooking(true);
707
+ try {
708
+ const found = await latest.current.findThread(pending.messageId);
709
+ if (!found) throw new Error(PENDING_TASK_MESSAGE);
710
+ openThread(found.conversationId);
711
+ } finally {
712
+ setIsLooking(false);
713
+ }
714
+ },
715
+ /**
716
+ * A start failed: when its task did start and only the thread is late, remember it and return
717
+ * the message to show. Returns null for any other failure.
718
+ */
719
+ trackStartError: (error, prompt) => {
720
+ if (!(error instanceof react.TaskThreadPendingError)) return null;
721
+ setPending({ messageId: error.messageId, prompt });
722
+ return PENDING_TASK_MESSAGE;
723
+ },
724
+ clear: () => setPending(null)
725
+ };
726
+ }
727
+ function ConnectedNewThreadDialog({
728
+ open,
729
+ onOpenChange,
730
+ initialParentId
731
+ }) {
732
+ const { tasks } = react.useWorkItems();
733
+ const startQuery = react.useStartTaskQuery();
734
+ const { data: documents = [] } = react.useDocuments();
735
+ const docIds = react$1.useMemo(
736
+ () => documents.filter((d) => d.status === "completed").map((d) => d.external_id),
737
+ [documents]
738
+ );
739
+ const workspaceId = react.useArbiSessionState((s) => s.workspaceId);
740
+ const createWork = react.useCreateWork({ workspaceId });
741
+ const { notify, openConversation: navigateToConversation } = chunk46LX6EQT_cjs.useBlocksEnvironment();
742
+ const pendingThread = usePendingTaskThread({
743
+ open,
744
+ onOpenChange,
745
+ findThread: startQuery.findThread
746
+ });
747
+ const parentOptions = react$1.useMemo(() => {
748
+ const leaf = { external_id: "__new__" };
749
+ return chunkBH322H5B_cjs.moveTargets([...tasks, leaf], leaf).map((t) => ({
750
+ id: t.external_id,
751
+ name: t.title?.trim() || "Untitled task"
752
+ }));
753
+ }, [tasks]);
754
+ const submit = async (values) => {
755
+ const request = chunkM55XUF4L_cjs.newThreadToRequest(values);
756
+ try {
757
+ if (!workspaceId) throw new Error("Open a workspace to add a task.");
758
+ if (!request.startAssistant && request.todo) {
759
+ const { task, todo } = request;
760
+ await createWork.mutateAsync({
761
+ title: todo.title,
762
+ description: todo.description || null,
763
+ due_at: task?.due_at ?? null,
764
+ parent_conversation_ext_id: task?.parent_conversation_ext_id ?? null,
765
+ shared: request.shared,
766
+ // Required by the API; a to-do has no run, so there is no access to grant.
767
+ auth_mode: "run_now_temp"
768
+ });
769
+ notify(`Added \u201C${todo.title}\u201D`, "success");
770
+ onOpenChange(false);
771
+ return;
772
+ }
773
+ if (pendingThread.isPendingFor(values.prompt)) {
774
+ await pendingThread.lookAgain();
775
+ return;
776
+ }
777
+ pendingThread.clear();
778
+ const { conversationId } = await startQuery.start({
779
+ input: request.input,
780
+ workspaceId,
781
+ docIds,
782
+ task: request.task
783
+ });
784
+ navigateToConversation(conversationId);
785
+ onOpenChange(false);
786
+ } catch (error) {
787
+ const pendingMessage = pendingThread.trackStartError(error, values.prompt);
788
+ if (pendingMessage) throw new Error(pendingMessage);
789
+ if (!pendingThread.isPendingFor(values.prompt)) {
790
+ notify("Failed to add the task", "error");
791
+ }
792
+ throw error;
793
+ }
794
+ };
795
+ return /* @__PURE__ */ jsxRuntime.jsx(
796
+ chunkBH322H5B_cjs.NewThreadDialog,
797
+ {
798
+ open,
799
+ onOpenChange,
800
+ tasks: parentOptions,
801
+ initialValues: initialParentId ? { parentId: initialParentId } : void 0,
802
+ isPending: startQuery.isPending || createWork.isPending || pendingThread.isLooking,
803
+ fileCount: docIds.length,
804
+ onSubmit: submit,
805
+ labels: pendingThread.isPending ? { createTask: LOOK_AGAIN_LABEL } : void 0
806
+ }
807
+ );
808
+ }
809
+ var SOURCES = [
810
+ { source: "computer", label: "From your computer", icon: lucideReact.Monitor },
811
+ { source: "email", label: "From accounts", icon: lucideReact.Mail },
812
+ { source: "internet", label: "From URL", icon: lucideReact.Globe }
813
+ ];
814
+ function DocumentsUploadButton({
815
+ isCompact,
816
+ canUpload,
817
+ isGuest,
818
+ onSelectSource,
819
+ onEmailWorkspace,
820
+ onCreateNew,
821
+ onTakePhoto,
822
+ size = "default",
823
+ className
824
+ }) {
825
+ const isVendorVisible = react.useConnectorVendorVisibility();
826
+ const hasAccountProviders = isVendorVisible("microsoft") || isVendorVisible("gmail");
827
+ const items = react$1.useMemo(
828
+ () => [
829
+ ...SOURCES.filter(({ source }) => source !== "email" || hasAccountProviders).map(
830
+ ({ source, label, icon }) => ({
831
+ id: source,
832
+ label,
833
+ icon,
834
+ testId: `add-source-${source}`,
835
+ onSelect: () => onSelectSource(source)
836
+ })
837
+ ),
838
+ ...onTakePhoto ? [
839
+ {
840
+ id: "take-photo",
841
+ label: "Take photo",
842
+ icon: lucideReact.Camera,
843
+ testId: "add-source-take-photo",
844
+ onSelect: onTakePhoto
845
+ }
846
+ ] : [],
847
+ ...onEmailWorkspace ? [
848
+ {
849
+ id: "email-workspace",
850
+ label: "Send via email",
851
+ icon: lucideReact.Send,
852
+ testId: "add-source-email-workspace",
853
+ separatorBefore: true,
854
+ onSelect: onEmailWorkspace
855
+ }
856
+ ] : [],
857
+ ...onCreateNew ? [
858
+ {
859
+ id: "create-new",
860
+ label: "Create New",
861
+ icon: lucideReact.FilePlus2,
862
+ testId: "add-source-create-new",
863
+ separatorBefore: true,
864
+ onSelect: onCreateNew
865
+ }
866
+ ] : []
867
+ ],
868
+ [hasAccountProviders, onSelectSource, onEmailWorkspace, onCreateNew, onTakePhoto]
869
+ );
870
+ return /* @__PURE__ */ jsxRuntime.jsx(
871
+ chunkJCFXS336_cjs.FilesAddMenu,
872
+ {
873
+ items,
874
+ isCompact,
875
+ canAdd: canUpload,
876
+ disabledReason: isGuest ? "Viewers cannot upload documents in this workspace" : "You cannot upload to this workspace",
877
+ size,
878
+ className
879
+ }
880
+ );
881
+ }
882
+ var plural = (count, one, many = `${one}s`) => count === 1 ? one : many;
883
+ function useAddFromUrls({
884
+ shared = true,
885
+ configExtId,
886
+ onZipFiles
887
+ } = {}) {
888
+ const { notify } = chunk46LX6EQT_cjs.useBlocksEnvironment();
889
+ const { workspaceId } = chunkGB5MN5FC_cjs.useConnectedWorkspace();
890
+ const uploadFromUrls = react.useUploadFromUrls();
891
+ return react$1.useCallback(
892
+ async (urls) => {
893
+ if (urls.length === 0 || !workspaceId) return false;
894
+ let result;
895
+ try {
896
+ result = await uploadFromUrls({ urls, shared, configExtId, workspaceId });
897
+ } catch {
898
+ return false;
899
+ }
900
+ const { docIds, skipped, zipFiles, oversizedInZips, failedZipUrls } = result;
901
+ if (zipFiles.length > 0) {
902
+ onZipFiles?.(zipFiles);
903
+ notify(
904
+ `Extracted ${zipFiles.length} ${plural(zipFiles.length, "file")} from ZIP. Click Add files to send.`,
905
+ "success"
906
+ );
907
+ }
908
+ if (oversizedInZips.length > 0)
909
+ notify(
910
+ `Skipped ${oversizedInZips.length} oversized ${plural(oversizedInZips.length, "file")} inside ZIP archives.`,
911
+ "warning"
912
+ );
913
+ if (failedZipUrls.length > 0)
914
+ notify(
915
+ `Failed to fetch ${failedZipUrls.length} ZIP ${plural(failedZipUrls.length, "URL")}. Browser CORS may block third-party hosts \u2014 try a CORS-enabled URL.`,
916
+ "error"
917
+ );
918
+ if (skipped.length > 0)
919
+ notify(
920
+ `${skipped.length} ${plural(skipped.length, "URL was", "URLs were")} skipped:
921
+ ${skipped.map((s) => `${s.file_name}: ${s.reason}`).join("\n")}`,
922
+ "warning"
923
+ );
924
+ if (docIds.length > 0)
925
+ notify(
926
+ `Upload complete (${docIds.length} ${plural(docIds.length, "document")}). Indexing in the background...`,
927
+ "success",
928
+ { workspaceId }
929
+ );
930
+ return true;
931
+ },
932
+ [workspaceId, uploadFromUrls, shared, configExtId, onZipFiles, notify]
933
+ );
934
+ }
935
+
936
+ // src/connection/live-blocks/list-rows.ts
937
+ var RECENT_ROWS = 5;
938
+ var FACT_ROWS = 3;
939
+ function shortDate(iso) {
940
+ return new Date(iso).toLocaleDateString(void 0, { day: "numeric", month: "short" });
941
+ }
942
+ function timeAndDate(iso) {
943
+ if (!iso) return "";
944
+ const d = new Date(iso);
945
+ if (Number.isNaN(d.getTime())) return "";
946
+ const time2 = d.toLocaleTimeString(void 0, {
947
+ hour: "2-digit",
948
+ minute: "2-digit",
949
+ hour12: false
950
+ });
951
+ return `${time2} \xB7 ${shortDate(iso)}`;
952
+ }
953
+ function humanizeStatus(status) {
954
+ const words = status.replace(/[-_]/g, " ");
955
+ return words.charAt(0).toUpperCase() + words.slice(1);
956
+ }
957
+ var time = (iso) => +new Date(iso ?? 0);
958
+ function recentConversations(conversations, limit = RECENT_ROWS) {
959
+ return [...conversations].sort((a, b) => time(b.updated_at) - time(a.updated_at)).slice(0, limit).map((c) => ({
960
+ id: c.external_id,
961
+ title: c.title?.trim() || "Untitled thread",
962
+ subtitle: c.status ? [chunkBH322H5B_cjs.STATUS_LABELS[chunkBH322H5B_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"}`,
963
+ time: timeAndDate(c.updated_at)
964
+ }));
965
+ }
966
+ function recentDocuments(documents, limit = RECENT_ROWS) {
967
+ return [...documents].sort((a, b) => time(b.updated_at ?? b.created_at) - time(a.updated_at ?? a.created_at)).slice(0, limit).map((d) => ({
968
+ id: d.external_id,
969
+ fileName: d.file_name,
970
+ title: d.file_name || "Untitled document",
971
+ subtitle: d.status && d.status !== "ready" && d.status !== "completed" ? humanizeStatus(d.status) : d.n_pages ? `${d.n_pages} ${d.n_pages === 1 ? "page" : "pages"}` : d.file_type ?? "Document",
972
+ time: timeAndDate(d.updated_at ?? d.created_at)
973
+ }));
974
+ }
975
+ function splitFacts(facts, now = /* @__PURE__ */ new Date(), {
976
+ limit = FACT_ROWS,
977
+ groups = "upcoming_and_newest"
978
+ } = {}) {
979
+ const startOfToday = new Date(now);
980
+ startOfToday.setHours(0, 0, 0, 0);
981
+ const dated = groups === "newest" ? [] : facts.filter((f) => f.date_start && new Date(f.date_start) >= startOfToday).sort((a, b) => time(a.date_start) - time(b.date_start)).slice(0, limit);
982
+ const datedIds = new Set(dated.map((f) => f.external_id));
983
+ const rest = groups === "upcoming" ? [] : facts.filter((f) => !datedIds.has(f.external_id)).sort((a, b) => time(b.created_at) - time(a.created_at)).slice(0, limit);
984
+ const row = (f, stamp) => ({
985
+ id: f.external_id,
986
+ title: f.text,
987
+ time: stamp
988
+ });
989
+ return {
990
+ upcoming: dated.map((f) => row(f, f.date_start ? shortDate(f.date_start) : "")),
991
+ recent: rest.map((f) => row(f, timeAndDate(f.created_at)))
992
+ };
993
+ }
994
+ function useDashboardAdd({ onCreateNew, onTakePhoto }) {
995
+ const { openUpload, openFiles } = chunk46LX6EQT_cjs.useBlocksEnvironment();
996
+ const { workspace, isMember } = react.useCurrentWorkspace();
997
+ const [urlDialogOpen, setUrlDialogOpen] = react$1.useState(false);
998
+ const [emailDialogOpen, setEmailDialogOpen] = react$1.useState(false);
999
+ const upload = (files, source) => {
1000
+ if (openUpload) openUpload(files, source ? { source } : void 0);
1001
+ else openFiles();
1002
+ };
1003
+ const uploadUrls = useAddFromUrls({ onZipFiles: (files) => upload(files, "computer") });
1004
+ const selectSource = (source) => {
1005
+ if (source === "internet") setUrlDialogOpen(true);
1006
+ else upload(void 0, source);
1007
+ };
1008
+ return {
1009
+ menu: (props) => /* @__PURE__ */ jsxRuntime.jsx(
1010
+ DocumentsUploadButton,
1011
+ {
1012
+ isCompact: false,
1013
+ isGuest: false,
1014
+ size: "sm",
1015
+ onSelectSource: selectSource,
1016
+ onEmailWorkspace: () => setEmailDialogOpen(true),
1017
+ onCreateNew,
1018
+ onTakePhoto,
1019
+ ...props
1020
+ }
1021
+ ),
1022
+ addFiles: () => upload(),
1023
+ dialogs: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1024
+ /* @__PURE__ */ jsxRuntime.jsx(
1025
+ chunkJCFXS336_cjs.UrlInputDialog,
1026
+ {
1027
+ open: urlDialogOpen,
1028
+ onOpenChange: setUrlDialogOpen,
1029
+ onUrlsSubmit: uploadUrls,
1030
+ titleWorkspaceName: workspace?.name,
1031
+ titleIcon: workspace && /* @__PURE__ */ jsxRuntime.jsx(ConnectedWorkspaceEntity, { workspace, size: 24, variant: "icon" })
1032
+ }
1033
+ ),
1034
+ workspace && /* @__PURE__ */ jsxRuntime.jsx(
1035
+ ConnectedEmailWorkspaceDialog,
1036
+ {
1037
+ open: emailDialogOpen,
1038
+ onOpenChange: setEmailDialogOpen,
1039
+ workspace,
1040
+ isMember
1041
+ }
1042
+ )
1043
+ ] })
1044
+ };
1045
+ }
1046
+ function ConnectedListBlock({ config, testId, ...rest }) {
1047
+ const id = testId ?? `list-block-${config.source}`;
1048
+ return /* @__PURE__ */ jsxRuntime.jsx(LiveBlockRoot, { kind: "list", source: config.source, children: config.source === "documents" ? /* @__PURE__ */ jsxRuntime.jsx(DocumentsList, { ...rest, limit: config.limit, testId: id }) : config.source === "conversations" ? /* @__PURE__ */ jsxRuntime.jsx(ConversationsList, { ...rest, limit: config.limit, testId: id }) : /* @__PURE__ */ jsxRuntime.jsx(
1049
+ FactsList,
1050
+ {
1051
+ ...rest,
1052
+ limit: config.limit,
1053
+ groups: config.facts ?? "upcoming_and_newest",
1054
+ testId: id
1055
+ }
1056
+ ) });
1057
+ }
1058
+ function DocumentsList({
1059
+ limit,
1060
+ addFilesAction,
1061
+ onCreateNew,
1062
+ onTakePhoto,
1063
+ showLoading = true,
1064
+ testId
1065
+ }) {
1066
+ const { openDocument, openFiles, hrefFor } = chunk46LX6EQT_cjs.useBlocksEnvironment();
1067
+ const { workspaceId } = chunkGB5MN5FC_cjs.useConnectedWorkspace();
1068
+ const { data: documents, loaded } = chunkDWN5AUMH_cjs.useListedDocuments();
1069
+ const add = useDashboardAdd({ onCreateNew, onTakePhoto });
1070
+ const rows = react$1.useMemo(
1071
+ () => recentDocuments(documents, limit).map(({ fileName, ...row }) => ({
1072
+ ...row,
1073
+ // The file-type mark, bare: it carries its own identity.
1074
+ leading: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "mt-0.5 shrink-0", children: ui.getDocIcon(fileName, 20) }),
1075
+ href: hrefFor({ kind: "document", documentId: row.id, workspaceId }),
1076
+ onSelect: () => openDocument(row.id)
1077
+ })),
1078
+ [documents, limit, workspaceId, openDocument, hrefFor]
1079
+ );
1080
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1081
+ /* @__PURE__ */ jsxRuntime.jsx(
1082
+ chunkSGYURQ23_cjs.RecentList,
1083
+ {
1084
+ testId,
1085
+ icon: lucideReact.FileText,
1086
+ title: ui.getEntityLabel("DOCUMENT", "PLURAL"),
1087
+ count: documents.length,
1088
+ onOpen: () => openFiles(),
1089
+ action: addFilesAction === void 0 ? add.menu({ canUpload: true, className: chunkSGYURQ23_cjs.DASHBOARD_QUIET_ACTION_CLASS }) : addFilesAction,
1090
+ rows,
1091
+ caption: "Added",
1092
+ loading: showLoading && !loaded,
1093
+ empty: {
1094
+ icon: lucideReact.Upload,
1095
+ label: "Add files or emails",
1096
+ description: "From your computer, a web link, or a connected mailbox.",
1097
+ onSelect: add.addFiles
1098
+ }
1099
+ }
1100
+ ),
1101
+ add.dialogs
1102
+ ] });
1103
+ }
1104
+ function ConversationsList({ limit, showLoading = true, testId }) {
1105
+ const { openConversation, openNewConversation, openThreads, hrefFor } = chunk46LX6EQT_cjs.useBlocksEnvironment();
1106
+ const { workspaceId } = chunkGB5MN5FC_cjs.useConnectedWorkspace();
1107
+ const { data: conversations, loaded } = chunkDWN5AUMH_cjs.useConnectedConversations();
1108
+ const assistant = shell.useAssistantCopy();
1109
+ const [newThreadOpen, setNewThreadOpen] = react$1.useState(false);
1110
+ const ask = () => openNewConversation();
1111
+ const rows = react$1.useMemo(
1112
+ () => recentConversations(conversations, limit).map((row) => ({
1113
+ ...row,
1114
+ leading: /* @__PURE__ */ jsxRuntime.jsx(ui.EntityIcon, { entityType: "CONVERSATION", className: "mt-0.5 size-5 shrink-0" }),
1115
+ href: hrefFor({ kind: "conversation", conversationId: row.id, workspaceId }),
1116
+ onSelect: () => openConversation(row.id)
1117
+ })),
1118
+ [conversations, limit, workspaceId, openConversation, hrefFor]
1119
+ );
1120
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1121
+ /* @__PURE__ */ jsxRuntime.jsx(
1122
+ chunkSGYURQ23_cjs.RecentList,
1123
+ {
1124
+ testId,
1125
+ icon: lucideReact.MessagesSquare,
1126
+ title: ui.getEntityLabel("CONVERSATION", "PLURAL"),
1127
+ count: conversations.length,
1128
+ onOpen: openThreads && (() => openThreads()),
1129
+ action: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1", children: [
1130
+ /* @__PURE__ */ jsxRuntime.jsx(
1131
+ chunkSGYURQ23_cjs.DashboardAction,
1132
+ {
1133
+ emphasis: "primary",
1134
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { className: "size-4" }),
1135
+ label: assistant.ask,
1136
+ onClick: ask,
1137
+ testId: `${testId}-ask`
1138
+ }
1139
+ ),
1140
+ /* @__PURE__ */ jsxRuntime.jsx(
1141
+ chunkSGYURQ23_cjs.DashboardAction,
1142
+ {
1143
+ emphasis: "quiet",
1144
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { className: "size-4" }),
1145
+ label: "New",
1146
+ onClick: () => setNewThreadOpen(true),
1147
+ testId: `${testId}-new`
1148
+ }
1149
+ )
1150
+ ] }),
1151
+ rows,
1152
+ caption: "Messaged",
1153
+ loading: showLoading && !loaded,
1154
+ empty: {
1155
+ icon: lucideReact.Plus,
1156
+ label: assistant.askAnything,
1157
+ description: "Questions are answered from this workspace's files.",
1158
+ onSelect: ask
1159
+ }
1160
+ }
1161
+ ),
1162
+ /* @__PURE__ */ jsxRuntime.jsx(ConnectedNewThreadDialog, { open: newThreadOpen, onOpenChange: setNewThreadOpen })
1163
+ ] });
1164
+ }
1165
+ function FactsList({
1166
+ limit,
1167
+ groups,
1168
+ showLoading = true,
1169
+ testId
1170
+ }) {
1171
+ const { openFacts } = chunk46LX6EQT_cjs.useBlocksEnvironment();
1172
+ const { workspaceId } = chunkGB5MN5FC_cjs.useConnectedWorkspace();
1173
+ const { data: facts = [], isLoading } = react.useFacts(workspaceId);
1174
+ const { upcoming, recent } = react$1.useMemo(() => {
1175
+ const split = splitFacts(facts, /* @__PURE__ */ new Date(), { limit, groups });
1176
+ const toRow = (row) => ({
1177
+ ...row,
1178
+ leading: /* @__PURE__ */ jsxRuntime.jsx(chunkSGYURQ23_cjs.FactMark, {}),
1179
+ // The item, not the list: the Facts page scrolls to this fact.
1180
+ onSelect: openFacts && (() => openFacts({ focusId: row.id }))
1181
+ });
1182
+ return { upcoming: split.upcoming.map(toRow), recent: split.recent.map(toRow) };
1183
+ }, [facts, limit, groups, openFacts]);
1184
+ const newFact = openFacts && (() => openFacts({ compose: true }));
1185
+ return /* @__PURE__ */ jsxRuntime.jsx(
1186
+ chunkSGYURQ23_cjs.FactsStrip,
1187
+ {
1188
+ testId,
1189
+ icon: lucideReact.Milestone,
1190
+ title: ui.getEntityLabel("FACT", "PLURAL"),
1191
+ count: facts.length,
1192
+ onOpen: openFacts && (() => openFacts()),
1193
+ action: newFact && /* @__PURE__ */ jsxRuntime.jsx(
1194
+ chunkSGYURQ23_cjs.DashboardAction,
1195
+ {
1196
+ emphasis: "quiet",
1197
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { className: "size-4" }),
1198
+ label: "New fact",
1199
+ onClick: newFact,
1200
+ testId: `${testId}-action`
1201
+ }
1202
+ ),
1203
+ groups: [
1204
+ { caption: "Upcoming", rows: upcoming, rowTestId: `${testId}-upcoming-row` },
1205
+ { caption: "Created", rows: recent, rowTestId: `${testId}-row` }
1206
+ ],
1207
+ loading: showLoading && !!isLoading,
1208
+ empty: {
1209
+ icon: lucideReact.Milestone,
1210
+ label: `Add your first ${ui.getEntityLabel("FACT").toLowerCase()}`,
1211
+ description: "A date, a decision, a preference \u2014 anything worth remembering.",
1212
+ onSelect: newFact,
1213
+ testId: `${testId}-empty-action`
1214
+ }
1215
+ }
1216
+ );
1217
+ }
1218
+ var TILE_TEST_IDS = {
1219
+ "deep-research": "workspace-dashboard-quick-action-research",
1220
+ timeline: "workspace-dashboard-quick-action-timeline",
1221
+ annotate: "workspace-dashboard-quick-action-annotate"
1222
+ };
1223
+ function DashboardStart({ addMenu, onCreateNew }) {
1224
+ const { dashboard: workflows } = chunkV27WLYTG_cjs.useWorkflowDefinitions();
1225
+ const { isMember, role } = react.useCurrentWorkspace();
1226
+ const canWrite = isMember && role !== "guest";
1227
+ const [activeId, setActiveId] = react$1.useState(null);
1228
+ return /* @__PURE__ */ jsxRuntime.jsx(
1229
+ chunk7UPEFZCV_cjs.ConnectedWorkflowStart,
1230
+ {
1231
+ workflows,
1232
+ caption: "Start",
1233
+ testId: "workspace-dashboard-quick-actions",
1234
+ activeId,
1235
+ onActiveIdChange: setActiveId,
1236
+ addFilesAction: addMenu({ canUpload: canWrite }),
1237
+ extraTiles: onCreateNew ? [
1238
+ {
1239
+ id: "create-file",
1240
+ icon: lucideReact.FilePlus2,
1241
+ title: "Create a file",
1242
+ description: "Write a doc, or record a voice note, photo or video",
1243
+ onSelect: onCreateNew,
1244
+ disabled: !canWrite,
1245
+ disabledReason: "Only workspace members can add files",
1246
+ testId: "workspace-dashboard-quick-action-create"
1247
+ }
1248
+ ] : void 0,
1249
+ tileTestId: (workflow) => TILE_TEST_IDS[workflow.id],
1250
+ disabledReason: (workflow) => !canWrite && workflow.id === chunkM55XUF4L_cjs.ANNOTATE_ID ? "Only workspace members can annotate files" : void 0
1251
+ }
1252
+ );
1253
+ }
1254
+ function ConnectedStartBlock({ onCreateNew, onTakePhoto }) {
1255
+ const add = useDashboardAdd({ onCreateNew, onTakePhoto });
1256
+ return /* @__PURE__ */ jsxRuntime.jsxs(LiveBlockRoot, { kind: "start", children: [
1257
+ /* @__PURE__ */ jsxRuntime.jsx(DashboardStart, { addMenu: add.menu, onCreateNew }),
1258
+ add.dialogs
1259
+ ] });
1260
+ }
1261
+
1262
+ // src/connection/live-blocks/workspace-dashboard-blocks.ts
1263
+ var START = {
1264
+ id: "start",
1265
+ kind: "start",
1266
+ layout: { x: 0, y: 0, w: 12, h: 3 },
1267
+ config: {}
1268
+ };
1269
+ var FILES = {
1270
+ id: "recent-files",
1271
+ kind: "list",
1272
+ layout: { x: 0, y: 3, w: 6, h: 6 },
1273
+ config: { source: "documents", limit: RECENT_ROWS }
1274
+ };
1275
+ var THREADS = {
1276
+ id: "recent-threads",
1277
+ kind: "list",
1278
+ layout: { x: 6, y: 3, w: 6, h: 6 },
1279
+ config: { source: "conversations", limit: RECENT_ROWS }
1280
+ };
1281
+ var FACTS = {
1282
+ id: "facts",
1283
+ kind: "list",
1284
+ layout: { x: 0, y: 9, w: 6, h: 6 },
1285
+ config: { source: "facts", limit: FACT_ROWS, facts: "upcoming_and_newest" }
1286
+ };
1287
+ var AGENDA = {
1288
+ id: "agenda",
1289
+ kind: "agenda",
1290
+ layout: { x: 6, y: 9, w: 6, h: 6 },
1291
+ config: { days: 7, limit: 8 }
1292
+ };
1293
+ var WORKSPACE_DASHBOARD_LAYOUT = {
1294
+ start: START,
1295
+ files: FILES,
1296
+ threads: THREADS,
1297
+ facts: FACTS,
1298
+ agenda: AGENDA
1299
+ };
1300
+ var WORKSPACE_DASHBOARD_BLOCKS = [
1301
+ START,
1302
+ FILES,
1303
+ THREADS,
1304
+ FACTS,
1305
+ AGENDA
1306
+ ];
1307
+ var WORKSPACE_DASHBOARD_PAGE = {
1308
+ version: 1,
1309
+ title: "Dashboard",
1310
+ description: "The workspace home: what you can start, recent files and threads, facts, agenda.",
1311
+ blocks: [...WORKSPACE_DASHBOARD_BLOCKS]
1312
+ };
1313
+ function ConnectedCarouselBlock({ config, testId }) {
1314
+ const id = testId ?? `carousel-block-${config.source}`;
1315
+ return /* @__PURE__ */ jsxRuntime.jsx(LiveBlockRoot, { kind: "carousel", source: config.source, children: config.source === "skills" ? /* @__PURE__ */ jsxRuntime.jsx(SkillsCarousel, { limit: config.limit, testId: id }) : /* @__PURE__ */ jsxRuntime.jsx(WorkflowsCarousel, { limit: config.limit, testId: id }) });
1316
+ }
1317
+ function SkillsCarousel({ limit, testId }) {
1318
+ const { start: skills } = chunkV27WLYTG_cjs.useWorkflowDefinitions();
1319
+ const { openSkillsBrowser } = chunk46LX6EQT_cjs.useBlocksEnvironment();
1320
+ const [activeId, setActiveId] = react$1.useState(null);
1321
+ const shown = react$1.useMemo(() => skills.slice(0, limit), [skills, limit]);
1322
+ if (shown.length === 0)
1323
+ return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "flex flex-col gap-3", "data-testid": testId, children: [
1324
+ /* @__PURE__ */ jsxRuntime.jsx(chunkSLCH5JRI_cjs.SectionLabel, { children: "Skills" }),
1325
+ /* @__PURE__ */ jsxRuntime.jsx(
1326
+ chunkSLCH5JRI_cjs.EmptyStrip,
1327
+ {
1328
+ icon: lucideReact.Sparkles,
1329
+ label: "No skills yet",
1330
+ description: "The skills you can start from a chat show here.",
1331
+ onSelect: openSkillsBrowser && (() => openSkillsBrowser()),
1332
+ testId: `${testId}-empty-action`
1333
+ }
1334
+ )
1335
+ ] });
1336
+ return /* @__PURE__ */ jsxRuntime.jsx(
1337
+ chunk7UPEFZCV_cjs.ConnectedWorkflowStart,
1338
+ {
1339
+ workflows: skills,
1340
+ tileWorkflows: shown,
1341
+ tilesLayout: "carousel",
1342
+ caption: "Skills",
1343
+ testId,
1344
+ activeId,
1345
+ onActiveIdChange: setActiveId,
1346
+ tileTestId: (workflow) => `${testId}-card-${workflow.id}`
1347
+ }
1348
+ );
1349
+ }
1350
+ function WorkflowsCarousel({ limit, testId }) {
1351
+ const openWorkflow = chunk5GBM7BQB_cjs.useOpenWorkflow();
1352
+ const { data: workflows, isLoading } = react.useWorkflows({ enabled: !!openWorkflow });
1353
+ const tiles = react$1.useMemo(
1354
+ () => [...workflows ?? []].sort((a, b) => +new Date(b.updated_at) - +new Date(a.updated_at)).slice(0, limit).map((w) => ({
1355
+ id: w.external_id,
1356
+ icon: lucideReact.Workflow,
1357
+ title: w.name,
1358
+ description: w.description || (w.active ? "Switched on" : "Switched off"),
1359
+ onSelect: () => openWorkflow?.(w.external_id),
1360
+ disabled: !openWorkflow,
1361
+ testId: `${testId}-card-${w.external_id}`
1362
+ })),
1363
+ [workflows, limit, openWorkflow, testId]
1364
+ );
1365
+ if (tiles.length === 0)
1366
+ return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "flex flex-col gap-3", "data-testid": testId, children: [
1367
+ /* @__PURE__ */ jsxRuntime.jsx(chunkSLCH5JRI_cjs.SectionLabel, { children: "Workflows" }),
1368
+ openWorkflow && isLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunkSLCH5JRI_cjs.LoadingRows, { testId: `${testId}-loading` }) : /* @__PURE__ */ jsxRuntime.jsx(
1369
+ chunkSLCH5JRI_cjs.EmptyStrip,
1370
+ {
1371
+ icon: lucideReact.Workflow,
1372
+ label: "No workflows yet",
1373
+ description: "Workflows run on a schedule or when something happens; yours show here.",
1374
+ onSelect: openWorkflow && (() => openWorkflow()),
1375
+ testId: `${testId}-empty-action`
1376
+ }
1377
+ )
1378
+ ] });
1379
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkSLCH5JRI_cjs.StartTiles, { items: tiles, layout: "carousel", caption: "Workflows", testId });
1380
+ }
1381
+ var ITEMS = [
1382
+ {
1383
+ id: "text",
1384
+ label: "Doc",
1385
+ description: "Write or paste text",
1386
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.FileText, { className: "size-7" })
1387
+ },
1388
+ { id: "audio", label: "Voice", description: "Record audio", icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Mic, { className: "size-7" }) },
1389
+ {
1390
+ id: "photo",
1391
+ label: "Photo",
1392
+ description: "Take a picture",
1393
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Camera, { className: "size-7" })
1394
+ },
1395
+ { id: "video", label: "Video", description: "Record video", icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Video, { className: "size-7" }) },
1396
+ {
1397
+ id: "presentation",
1398
+ label: "Presentation",
1399
+ description: "Show parts of documents",
1400
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Presentation, { className: "size-7" })
1401
+ }
1402
+ ];
1403
+ function ConnectedNewFileMenu({ open, onOpenChange }) {
1404
+ const session = react.useArbiSessionStore();
1405
+ const pick = (id) => {
1406
+ session.startDraftDocument(id);
1407
+ onOpenChange(false);
1408
+ session.setPage("documents");
1409
+ };
1410
+ return /* @__PURE__ */ jsxRuntime.jsx(
1411
+ chunkSGYURQ23_cjs.ActionMenuDialog,
1412
+ {
1413
+ open,
1414
+ onOpenChange,
1415
+ icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.FilePlus2, { className: "size-5" }),
1416
+ title: "Create a file",
1417
+ description: "Pick what to start \u2014 write a doc, record a voice note, photo or video, or build a presentation.",
1418
+ items: ITEMS,
1419
+ onPick: pick,
1420
+ testId: "new-file-menu",
1421
+ itemTestId: "new-file-item"
1422
+ }
1423
+ );
1424
+ }
1425
+ function MemberAvatar({ user, size }) {
1426
+ const colorClass = ui.getUserAvatarColor(user.external_id);
1427
+ const agent = ui.isAgent(user);
1428
+ return /* @__PURE__ */ jsxRuntime.jsx(
1429
+ ui.UserEntity,
1430
+ {
1431
+ size,
1432
+ variant: "icon",
1433
+ showTooltip: false,
1434
+ initials: ui.getUserInitials(user),
1435
+ displayName: ui.getUserDisplayName(user),
1436
+ picture: user.picture,
1437
+ colorClass,
1438
+ isAgent: agent,
1439
+ agentStyle: agent ? ui.agentAvatarColors(colorClass) : void 0
1440
+ }
1441
+ );
1442
+ }
1443
+ function useTransferTargets() {
1444
+ const { workspaceId: currentWorkspaceId, userId, user, live } = chunkGB5MN5FC_cjs.useConnectedWorkspace();
1445
+ const { data: workspaces = [] } = react.useWorkspaces({ enabled: live });
1446
+ return react$1.useMemo(() => {
1447
+ const roleIn = (w) => w.users?.find((wu) => wu.user.external_id === userId)?.role ?? null;
1448
+ const options = workspaces.filter((w) => {
1449
+ if (w.external_id === currentWorkspaceId) return false;
1450
+ const role = roleIn(w);
1451
+ return role === "owner" || role === "collaborator";
1452
+ }).map((w) => {
1453
+ const users = w.users || [];
1454
+ const owner = users.find((wu) => wu.user.external_id === w.created_by_ext_id);
1455
+ const others = users.filter(
1456
+ (wu) => wu.user.external_id !== w.created_by_ext_id && wu.user.external_id !== userId && !(user?.email && wu.user.email === user.email)
1457
+ );
1458
+ const remaining = Math.max(0, others.length - 2);
1459
+ return {
1460
+ id: w.external_id,
1461
+ name: w.name,
1462
+ description: w.description,
1463
+ memberCount: users.length,
1464
+ // The icons sit inside the picker's row button: a tooltip trigger there would be a button in a button.
1465
+ icon: /* @__PURE__ */ jsxRuntime.jsx(
1466
+ ui.ShieldIcon,
1467
+ {
1468
+ char: w.name.charAt(0),
1469
+ workspaceColor: chunkWRTEKOQP_cjs.workspaceKindColor(react.getWorkspaceKind(w)),
1470
+ size: 32,
1471
+ isSelected: false
1472
+ }
1473
+ ),
1474
+ members: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1.5", children: [
1475
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center -space-x-1", children: [
1476
+ remaining > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-5 w-5 items-center justify-center rounded-full bg-muted text-sm font-semibold text-foreground", children: [
1477
+ "+",
1478
+ remaining
1479
+ ] }),
1480
+ others.slice(0, 2).map((wu) => /* @__PURE__ */ jsxRuntime.jsx(MemberAvatar, { user: wu.user, size: "xs" }, wu.user.external_id))
1481
+ ] }),
1482
+ owner && /* @__PURE__ */ jsxRuntime.jsx(MemberAvatar, { user: owner.user, size: "sm" })
1483
+ ] })
1484
+ };
1485
+ });
1486
+ const current = workspaces.find((w) => w.external_id === currentWorkspaceId);
1487
+ return {
1488
+ /** The workspaces it can go to. */
1489
+ options,
1490
+ /** The open workspace (the source). */
1491
+ current,
1492
+ /** The person's role in the open workspace. */
1493
+ currentRole: current ? roleIn(current) : null,
1494
+ /** A workspace's name, for the progress and outcome lines. */
1495
+ nameOf: (id) => workspaces.find((w) => w.external_id === id)?.name ?? "the other workspace"
1496
+ };
1497
+ }, [workspaces, currentWorkspaceId, userId, user?.email]);
1498
+ }
1499
+
1500
+ exports.ConnectedAgendaBlock = ConnectedAgendaBlock;
1501
+ exports.ConnectedCarouselBlock = ConnectedCarouselBlock;
1502
+ exports.ConnectedEmailWorkspaceDialog = ConnectedEmailWorkspaceDialog;
1503
+ exports.ConnectedListBlock = ConnectedListBlock;
1504
+ exports.ConnectedNewFileMenu = ConnectedNewFileMenu;
1505
+ exports.ConnectedNewThreadDialog = ConnectedNewThreadDialog;
1506
+ exports.ConnectedStartBlock = ConnectedStartBlock;
1507
+ exports.ConnectedUpcomingEvents = ConnectedUpcomingEvents;
1508
+ exports.ConnectedWorkspaceEntity = ConnectedWorkspaceEntity;
1509
+ exports.DocumentsUploadButton = DocumentsUploadButton;
1510
+ exports.LOOK_AGAIN_LABEL = LOOK_AGAIN_LABEL;
1511
+ exports.PENDING_LOOKUP_MS = PENDING_LOOKUP_MS;
1512
+ exports.PENDING_TASK_MESSAGE = PENDING_TASK_MESSAGE;
1513
+ exports.WORKSPACE_DASHBOARD_BLOCKS = WORKSPACE_DASHBOARD_BLOCKS;
1514
+ exports.WORKSPACE_DASHBOARD_LAYOUT = WORKSPACE_DASHBOARD_LAYOUT;
1515
+ exports.WORKSPACE_DASHBOARD_PAGE = WORKSPACE_DASHBOARD_PAGE;
1516
+ exports.createEventCall = createEventCall;
1517
+ exports.distinctPeers = distinctPeers;
1518
+ exports.joinEventMeeting = joinEventMeeting;
1519
+ exports.loadEventWebinar = loadEventWebinar;
1520
+ exports.parseArbiCallUrl = parseArbiCallUrl;
1521
+ exports.resolveAttendeeUsers = resolveAttendeeUsers;
1522
+ exports.resolveAttendeeUsersRemote = resolveAttendeeUsersRemote;
1523
+ exports.resolveCallPeers = resolveCallPeers;
1524
+ exports.resolveCallPeersRemote = resolveCallPeersRemote;
1525
+ exports.shareEventCall = shareEventCall;
1526
+ exports.updateEventWebinarRoles = updateEventWebinarRoles;
1527
+ exports.useAddFromUrls = useAddFromUrls;
1528
+ exports.useExportStore = useExportStore;
1529
+ exports.usePendingTaskThread = usePendingTaskThread;
1530
+ exports.useTransferTargets = useTransferTargets;
1531
+ exports.webinarRolesByUser = webinarRolesByUser;
1532
+ //# sourceMappingURL=chunk-74RUAGVD.cjs.map
1533
+ //# sourceMappingURL=chunk-74RUAGVD.cjs.map