@arbidocs/blocks 0.5.128 → 0.5.130

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 (179) hide show
  1. package/dist/{ConnectedCallDock-XJOYVVAH.cjs → ConnectedCallDock-CJ7RWP5B.cjs} +11 -11
  2. package/dist/{ConnectedCallDock-XJOYVVAH.cjs.map → ConnectedCallDock-CJ7RWP5B.cjs.map} +1 -1
  3. package/dist/{ConnectedCallRoom-CUDYAPQK.cjs → ConnectedCallRoom-JPJCXP6X.cjs} +11 -11
  4. package/dist/{ConnectedCallRoom-CUDYAPQK.cjs.map → ConnectedCallRoom-JPJCXP6X.cjs.map} +1 -1
  5. package/dist/{ConnectedNativeDocxComparison-JUF2TI2P.cjs → ConnectedNativeDocxComparison-5TZAIR4V.cjs} +9 -9
  6. package/dist/{ConnectedNativeDocxComparison-JUF2TI2P.cjs.map → ConnectedNativeDocxComparison-5TZAIR4V.cjs.map} +1 -1
  7. package/dist/{ConnectedPresentation-SI3L77J4.cjs → ConnectedPresentation-SEUUNFUA.cjs} +12 -12
  8. package/dist/{ConnectedPresentation-SI3L77J4.cjs.map → ConnectedPresentation-SEUUNFUA.cjs.map} +1 -1
  9. package/dist/{ConnectedSlidesTab-E76OVY34.cjs → ConnectedSlidesTab-3ATAKNSJ.cjs} +12 -12
  10. package/dist/{ConnectedSlidesTab-E76OVY34.cjs.map → ConnectedSlidesTab-3ATAKNSJ.cjs.map} +1 -1
  11. package/dist/{ConnectedStreamedWordArtifact-Q64DRRQD.cjs → ConnectedStreamedWordArtifact-BKPOMQ6G.cjs} +9 -9
  12. package/dist/{ConnectedStreamedWordArtifact-Q64DRRQD.cjs.map → ConnectedStreamedWordArtifact-BKPOMQ6G.cjs.map} +1 -1
  13. package/dist/{FilesViewerDialog-C7XHGK36.cjs → FilesViewerDialog-EFRMXIM5.cjs} +20 -20
  14. package/dist/{FilesViewerDialog-C7XHGK36.cjs.map → FilesViewerDialog-EFRMXIM5.cjs.map} +1 -1
  15. package/dist/{StreamedArtifactEditor-7KJ2HLLU.cjs → StreamedArtifactEditor-RSPUSZ2B.cjs} +5 -5
  16. package/dist/{StreamedArtifactEditor-7KJ2HLLU.cjs.map → StreamedArtifactEditor-RSPUSZ2B.cjs.map} +1 -1
  17. package/dist/{WorkspaceTableView-3XYAV4BV.cjs → WorkspaceTableView-QPROJRCF.cjs} +5 -5
  18. package/dist/{WorkspaceTableView-3XYAV4BV.cjs.map → WorkspaceTableView-QPROJRCF.cjs.map} +1 -1
  19. package/dist/agents/index.cjs +361 -361
  20. package/dist/agents/workflows/StepParts.d.ts +3 -0
  21. package/dist/agents/workflows/StepParts.js +20 -3
  22. package/dist/agents/workflows/StepParts.js.map +2 -2
  23. package/dist/agents/workflows/WorkflowStepAction.js +14 -3
  24. package/dist/agents/workflows/WorkflowStepAction.js.map +2 -2
  25. package/dist/agents/workflows/planSteps.js +6 -1
  26. package/dist/agents/workflows/planSteps.js.map +2 -2
  27. package/dist/agents/workflows/workflow.d.ts +11 -2
  28. package/dist/agents/workflows/workflow.js +16 -1
  29. package/dist/agents/workflows/workflow.js.map +2 -2
  30. package/dist/{ai-IEIR7SC2.cjs → ai-4XJ2VFNS.cjs} +23 -23
  31. package/dist/ai-4XJ2VFNS.cjs.map +1 -0
  32. package/dist/artifacts/VersionTimeline.d.ts +5 -1
  33. package/dist/artifacts/VersionTimeline.js +15 -0
  34. package/dist/artifacts/VersionTimeline.js.map +2 -2
  35. package/dist/artifacts/index.cjs +24 -24
  36. package/dist/calls/index.cjs +2 -2
  37. package/dist/chat/index.cjs +58 -58
  38. package/dist/{chunk-XF355M7O.cjs → chunk-2Z25MUAY.cjs} +17 -17
  39. package/dist/{chunk-XF355M7O.cjs.map → chunk-2Z25MUAY.cjs.map} +1 -1
  40. package/dist/{chunk-7JLJH5CW.cjs → chunk-5A6T4W46.cjs} +7 -7
  41. package/dist/{chunk-7JLJH5CW.cjs.map → chunk-5A6T4W46.cjs.map} +1 -1
  42. package/dist/{chunk-QG2U2JGX.cjs → chunk-7LEN65YI.cjs} +9 -9
  43. package/dist/{chunk-QG2U2JGX.cjs.map → chunk-7LEN65YI.cjs.map} +1 -1
  44. package/dist/{chunk-IDCD5TEZ.cjs → chunk-A6GBPE5E.cjs} +18 -18
  45. package/dist/{chunk-IDCD5TEZ.cjs.map → chunk-A6GBPE5E.cjs.map} +1 -1
  46. package/dist/{chunk-MMSHIIKG.cjs → chunk-AFXLRO6E.cjs} +4 -4
  47. package/dist/{chunk-MMSHIIKG.cjs.map → chunk-AFXLRO6E.cjs.map} +1 -1
  48. package/dist/{chunk-KNGZZC4O.cjs → chunk-B3BZ6MNI.cjs} +6 -6
  49. package/dist/{chunk-KNGZZC4O.cjs.map → chunk-B3BZ6MNI.cjs.map} +1 -1
  50. package/dist/{chunk-WAV762GP.cjs → chunk-DBN6GBRQ.cjs} +6 -6
  51. package/dist/{chunk-WAV762GP.cjs.map → chunk-DBN6GBRQ.cjs.map} +1 -1
  52. package/dist/{chunk-QGVOT7E4.cjs → chunk-EQTZQD66.cjs} +8 -8
  53. package/dist/{chunk-QGVOT7E4.cjs.map → chunk-EQTZQD66.cjs.map} +1 -1
  54. package/dist/{chunk-M2FOXGJU.cjs → chunk-F6CEPWIF.cjs} +7 -7
  55. package/dist/{chunk-M2FOXGJU.cjs.map → chunk-F6CEPWIF.cjs.map} +1 -1
  56. package/dist/{chunk-VWBYE3XY.cjs → chunk-FQRJCAT2.cjs} +6 -6
  57. package/dist/{chunk-VWBYE3XY.cjs.map → chunk-FQRJCAT2.cjs.map} +1 -1
  58. package/dist/{chunk-E3L5DB5F.cjs → chunk-GEZB3OEC.cjs} +4 -4
  59. package/dist/{chunk-E3L5DB5F.cjs.map → chunk-GEZB3OEC.cjs.map} +1 -1
  60. package/dist/{chunk-YP5EBGLU.cjs → chunk-GOQV6NOK.cjs} +73 -73
  61. package/dist/{chunk-YP5EBGLU.cjs.map → chunk-GOQV6NOK.cjs.map} +1 -1
  62. package/dist/{chunk-XCKHOXRP.cjs → chunk-H4ID6S4P.cjs} +6 -6
  63. package/dist/{chunk-XCKHOXRP.cjs.map → chunk-H4ID6S4P.cjs.map} +1 -1
  64. package/dist/{chunk-UFT22LAB.cjs → chunk-HBUHOCWF.cjs} +16 -16
  65. package/dist/{chunk-UFT22LAB.cjs.map → chunk-HBUHOCWF.cjs.map} +1 -1
  66. package/dist/{chunk-ZQNTYINE.cjs → chunk-HORAMB52.cjs} +91 -31
  67. package/dist/chunk-HORAMB52.cjs.map +1 -0
  68. package/dist/{chunk-3IH55CDE.cjs → chunk-IZBAWZTB.cjs} +16 -2
  69. package/dist/chunk-IZBAWZTB.cjs.map +1 -0
  70. package/dist/{chunk-QRAQZTJE.cjs → chunk-JN5YMHGI.cjs} +18 -3
  71. package/dist/chunk-JN5YMHGI.cjs.map +1 -0
  72. package/dist/{chunk-IZJ5L246.cjs → chunk-KWHGYHRC.cjs} +5 -5
  73. package/dist/{chunk-IZJ5L246.cjs.map → chunk-KWHGYHRC.cjs.map} +1 -1
  74. package/dist/{chunk-EG7EJFUE.cjs → chunk-MHIG6GGS.cjs} +17 -2
  75. package/dist/chunk-MHIG6GGS.cjs.map +1 -0
  76. package/dist/{chunk-IWMHQTVL.cjs → chunk-MI3N3ZOT.cjs} +80 -70
  77. package/dist/chunk-MI3N3ZOT.cjs.map +1 -0
  78. package/dist/{chunk-7NLO7ASW.cjs → chunk-MXGXKUSW.cjs} +17 -17
  79. package/dist/{chunk-7NLO7ASW.cjs.map → chunk-MXGXKUSW.cjs.map} +1 -1
  80. package/dist/{chunk-ZCU72Q76.cjs → chunk-NM7RWZ4E.cjs} +10 -10
  81. package/dist/{chunk-ZCU72Q76.cjs.map → chunk-NM7RWZ4E.cjs.map} +1 -1
  82. package/dist/{chunk-CQQQIZU4.cjs → chunk-OD6NGGL3.cjs} +133 -106
  83. package/dist/chunk-OD6NGGL3.cjs.map +1 -0
  84. package/dist/{chunk-TP5PGWIO.cjs → chunk-QFXOTJ6G.cjs} +20 -15
  85. package/dist/chunk-QFXOTJ6G.cjs.map +1 -0
  86. package/dist/{chunk-7L4X6QN2.cjs → chunk-QXMPATG6.cjs} +8 -8
  87. package/dist/{chunk-7L4X6QN2.cjs.map → chunk-QXMPATG6.cjs.map} +1 -1
  88. package/dist/{chunk-WXUU3COI.cjs → chunk-SUOHAB7N.cjs} +11 -11
  89. package/dist/{chunk-WXUU3COI.cjs.map → chunk-SUOHAB7N.cjs.map} +1 -1
  90. package/dist/{chunk-NTDQQLDD.cjs → chunk-TDA6KESI.cjs} +4 -4
  91. package/dist/{chunk-NTDQQLDD.cjs.map → chunk-TDA6KESI.cjs.map} +1 -1
  92. package/dist/{chunk-VLQCLQAS.cjs → chunk-TZYB22FM.cjs} +7 -7
  93. package/dist/{chunk-VLQCLQAS.cjs.map → chunk-TZYB22FM.cjs.map} +1 -1
  94. package/dist/{chunk-HSLPFBK2.cjs → chunk-VL7ZX4KQ.cjs} +6 -6
  95. package/dist/{chunk-HSLPFBK2.cjs.map → chunk-VL7ZX4KQ.cjs.map} +1 -1
  96. package/dist/{chunk-2F57IO7S.cjs → chunk-XCW6OY7E.cjs} +27 -27
  97. package/dist/{chunk-2F57IO7S.cjs.map → chunk-XCW6OY7E.cjs.map} +1 -1
  98. package/dist/{chunk-NG2EE7HR.cjs → chunk-YWHUWIHP.cjs} +9 -9
  99. package/dist/{chunk-NG2EE7HR.cjs.map → chunk-YWHUWIHP.cjs.map} +1 -1
  100. package/dist/connect/docx.cjs +12 -12
  101. package/dist/connect/index.cjs +1272 -520
  102. package/dist/connect/index.cjs.map +1 -1
  103. package/dist/connect/index.d.ts +2 -0
  104. package/dist/connect/index.js +12 -0
  105. package/dist/connect/index.js.map +2 -2
  106. package/dist/connect/viewer.cjs +9 -9
  107. package/dist/connection/ConnectedWorkflowBuilder.d.ts +12 -0
  108. package/dist/connection/ConnectedWorkflowBuilder.js +6 -1
  109. package/dist/connection/ConnectedWorkflowBuilder.js.map +2 -2
  110. package/dist/connection/assistant/AssistantDrafts.d.ts +21 -0
  111. package/dist/connection/assistant/AssistantDrafts.js +158 -0
  112. package/dist/connection/assistant/AssistantDrafts.js.map +7 -0
  113. package/dist/connection/assistant/AssistantPlan.d.ts +16 -0
  114. package/dist/connection/assistant/AssistantPlan.js +72 -0
  115. package/dist/connection/assistant/AssistantPlan.js.map +7 -0
  116. package/dist/connection/assistant/AssistantStatusPanel.d.ts +28 -0
  117. package/dist/connection/assistant/AssistantStatusPanel.js +206 -0
  118. package/dist/connection/assistant/AssistantStatusPanel.js.map +7 -0
  119. package/dist/connection/assistant/ConnectedAssistantPage.d.ts +39 -0
  120. package/dist/connection/assistant/ConnectedAssistantPage.js +377 -0
  121. package/dist/connection/assistant/ConnectedAssistantPage.js.map +7 -0
  122. package/dist/connection/billing/AddAddonDialog.d.ts +2 -2
  123. package/dist/connection/billing/AddAddonDialog.js.map +1 -1
  124. package/dist/connection/billing/ConnectedQuotaDialog.d.ts +1 -1
  125. package/dist/connection/billing/ConnectedQuotaDialog.js.map +1 -1
  126. package/dist/connection/billing/MonthlySpendCap.js +1 -1
  127. package/dist/connection/billing/MonthlySpendCap.js.map +1 -1
  128. package/dist/connection/billing/ProjectBilling.js.map +1 -1
  129. package/dist/connection/billing/ProjectPurchaseOptions.js +1 -1
  130. package/dist/connection/billing/ProjectPurchaseOptions.js.map +1 -1
  131. package/dist/connection/billing/ProjectUsageCard.js +1 -1
  132. package/dist/connection/billing/ProjectUsageCard.js.map +1 -1
  133. package/dist/connection/billing/ReduceAddonDialog.d.ts +1 -1
  134. package/dist/connection/billing/ReduceAddonDialog.js.map +1 -1
  135. package/dist/connection/billing/StripeCheckoutModal.d.ts +1 -1
  136. package/dist/connection/billing/StripeCheckoutModal.js.map +1 -1
  137. package/dist/connection/billing/addon-pricing.d.ts +4 -4
  138. package/dist/connection/billing/addon-pricing.js.map +1 -1
  139. package/dist/connection/billing/plan-constants.d.ts +3 -3
  140. package/dist/connection/billing/plan-constants.js +2 -2
  141. package/dist/connection/billing/plan-constants.js.map +1 -1
  142. package/dist/connection/billing/plan-pricing.d.ts +2 -2
  143. package/dist/connection/billing/plan-pricing.js.map +1 -1
  144. package/dist/connection/billing/useAddonPurchase.d.ts +1 -1
  145. package/dist/connection/billing/useAddonPurchase.js.map +1 -1
  146. package/dist/connection/conversation/AgentSteps.js +19 -2
  147. package/dist/connection/conversation/AgentSteps.js.map +2 -2
  148. package/dist/connection/viewer/ConnectedDocumentViewer.js +22 -2
  149. package/dist/connection/viewer/ConnectedDocumentViewer.js.map +2 -2
  150. package/dist/connection/viewer/useDocumentVersionRestore.d.ts +14 -0
  151. package/dist/connection/viewer/useDocumentVersionRestore.js +48 -0
  152. package/dist/connection/viewer/useDocumentVersionRestore.js.map +7 -0
  153. package/dist/connection/viewer/useViewerTabs.d.ts +1 -1
  154. package/dist/connection/viewer/useViewerTabs.js +6 -3
  155. package/dist/connection/viewer/useViewerTabs.js.map +2 -2
  156. package/dist/document-tools/VersionSnapshotBar.d.ts +4 -1
  157. package/dist/document-tools/VersionSnapshotBar.js +14 -0
  158. package/dist/document-tools/VersionSnapshotBar.js.map +2 -2
  159. package/dist/document-tools/index.cjs +13 -13
  160. package/dist/embed/index.cjs +19 -19
  161. package/dist/index.cjs +470 -470
  162. package/dist/office/index.cjs +5 -5
  163. package/dist/studio/index.cjs +14 -14
  164. package/dist/styles.css +1 -1
  165. package/dist/workflow-canvas/TriggerInspector.d.ts +7 -0
  166. package/dist/workflow-canvas/TriggerInspector.js +56 -0
  167. package/dist/workflow-canvas/TriggerInspector.js.map +2 -2
  168. package/dist/workflow-canvas/index.cjs +137 -76
  169. package/dist/workflow-canvas/index.cjs.map +1 -1
  170. package/node_modules/@arbidocs/coedit/package.json +1 -1
  171. package/package.json +5 -5
  172. package/dist/ai-IEIR7SC2.cjs.map +0 -1
  173. package/dist/chunk-3IH55CDE.cjs.map +0 -1
  174. package/dist/chunk-CQQQIZU4.cjs.map +0 -1
  175. package/dist/chunk-EG7EJFUE.cjs.map +0 -1
  176. package/dist/chunk-IWMHQTVL.cjs.map +0 -1
  177. package/dist/chunk-QRAQZTJE.cjs.map +0 -1
  178. package/dist/chunk-TP5PGWIO.cjs.map +0 -1
  179. package/dist/chunk-ZQNTYINE.cjs.map +0 -1
@@ -1,24 +1,24 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunkVWBYE3XY_cjs = require('../chunk-VWBYE3XY.cjs');
4
+ var chunkFQRJCAT2_cjs = require('../chunk-FQRJCAT2.cjs');
5
5
  var chunk6OK7ESTL_cjs = require('../chunk-6OK7ESTL.cjs');
6
- var chunkE3L5DB5F_cjs = require('../chunk-E3L5DB5F.cjs');
6
+ var chunkGEZB3OEC_cjs = require('../chunk-GEZB3OEC.cjs');
7
7
  var chunkVWTOIGX4_cjs = require('../chunk-VWTOIGX4.cjs');
8
8
  var chunkMLA2BJ2Y_cjs = require('../chunk-MLA2BJ2Y.cjs');
9
9
  var chunkPSIKUQYM_cjs = require('../chunk-PSIKUQYM.cjs');
10
10
  var chunk5GCCUXMT_cjs = require('../chunk-5GCCUXMT.cjs');
11
- var chunk7L4X6QN2_cjs = require('../chunk-7L4X6QN2.cjs');
12
- var chunkYP5EBGLU_cjs = require('../chunk-YP5EBGLU.cjs');
11
+ var chunkQXMPATG6_cjs = require('../chunk-QXMPATG6.cjs');
13
12
  var chunkCMGNRMPA_cjs = require('../chunk-CMGNRMPA.cjs');
13
+ var chunkGOQV6NOK_cjs = require('../chunk-GOQV6NOK.cjs');
14
14
  var chunkYZ6YOOTF_cjs = require('../chunk-YZ6YOOTF.cjs');
15
15
  var chunkKWJW5TMH_cjs = require('../chunk-KWJW5TMH.cjs');
16
- var chunkIWMHQTVL_cjs = require('../chunk-IWMHQTVL.cjs');
17
- var chunkXF355M7O_cjs = require('../chunk-XF355M7O.cjs');
18
- var chunk2F57IO7S_cjs = require('../chunk-2F57IO7S.cjs');
19
- var chunk7NLO7ASW_cjs = require('../chunk-7NLO7ASW.cjs');
16
+ var chunkMI3N3ZOT_cjs = require('../chunk-MI3N3ZOT.cjs');
17
+ var chunk2Z25MUAY_cjs = require('../chunk-2Z25MUAY.cjs');
18
+ var chunkXCW6OY7E_cjs = require('../chunk-XCW6OY7E.cjs');
19
+ var chunkMXGXKUSW_cjs = require('../chunk-MXGXKUSW.cjs');
20
20
  var chunk7PN3YENO_cjs = require('../chunk-7PN3YENO.cjs');
21
- var chunkUFT22LAB_cjs = require('../chunk-UFT22LAB.cjs');
21
+ var chunkHBUHOCWF_cjs = require('../chunk-HBUHOCWF.cjs');
22
22
  var chunkMXBXZXXQ_cjs = require('../chunk-MXBXZXXQ.cjs');
23
23
  var chunkTJY7XPDE_cjs = require('../chunk-TJY7XPDE.cjs');
24
24
  var chunkH7PHOTX2_cjs = require('../chunk-H7PHOTX2.cjs');
@@ -41,11 +41,11 @@ require('../chunk-HYUKPHCT.cjs');
41
41
  var chunkALK3PUUB_cjs = require('../chunk-ALK3PUUB.cjs');
42
42
  var chunk223D4727_cjs = require('../chunk-223D4727.cjs');
43
43
  var chunkSNUBQMIS_cjs = require('../chunk-SNUBQMIS.cjs');
44
- var chunkVLQCLQAS_cjs = require('../chunk-VLQCLQAS.cjs');
44
+ var chunkTZYB22FM_cjs = require('../chunk-TZYB22FM.cjs');
45
45
  var chunk4ONPEVTP_cjs = require('../chunk-4ONPEVTP.cjs');
46
46
  require('../chunk-V3KLUWQQ.cjs');
47
47
  var chunkP5AQYC4D_cjs = require('../chunk-P5AQYC4D.cjs');
48
- var chunkWAV762GP_cjs = require('../chunk-WAV762GP.cjs');
48
+ var chunkDBN6GBRQ_cjs = require('../chunk-DBN6GBRQ.cjs');
49
49
  var chunkLVIQWRC5_cjs = require('../chunk-LVIQWRC5.cjs');
50
50
  var chunkUZHWXKS6_cjs = require('../chunk-UZHWXKS6.cjs');
51
51
  require('../chunk-PBPO54KZ.cjs');
@@ -55,11 +55,11 @@ require('../chunk-JH6JTI76.cjs');
55
55
  var chunkQQMMCXBP_cjs = require('../chunk-QQMMCXBP.cjs');
56
56
  require('../chunk-DTMBAFIL.cjs');
57
57
  require('../chunk-ZESMRGDV.cjs');
58
- var chunkIZJ5L246_cjs = require('../chunk-IZJ5L246.cjs');
58
+ var chunkKWHGYHRC_cjs = require('../chunk-KWHGYHRC.cjs');
59
59
  var chunkSGYSDABK_cjs = require('../chunk-SGYSDABK.cjs');
60
60
  require('../chunk-NEGFHF3V.cjs');
61
- var chunkZ3LFF3YT_cjs = require('../chunk-Z3LFF3YT.cjs');
62
61
  var chunkI6GEQWIV_cjs = require('../chunk-I6GEQWIV.cjs');
62
+ var chunkZ3LFF3YT_cjs = require('../chunk-Z3LFF3YT.cjs');
63
63
  var chunk4B6HYQTW_cjs = require('../chunk-4B6HYQTW.cjs');
64
64
  var chunkADMNU2CR_cjs = require('../chunk-ADMNU2CR.cjs');
65
65
  require('../chunk-PCB2BPN3.cjs');
@@ -88,11 +88,11 @@ var chunkZU2B2RZK_cjs = require('../chunk-ZU2B2RZK.cjs');
88
88
  var chunkNSD37OF5_cjs = require('../chunk-NSD37OF5.cjs');
89
89
  require('../chunk-OEJQFPWO.cjs');
90
90
  require('../chunk-BQOL4XNZ.cjs');
91
- var chunkCQQQIZU4_cjs = require('../chunk-CQQQIZU4.cjs');
91
+ var chunkOD6NGGL3_cjs = require('../chunk-OD6NGGL3.cjs');
92
92
  var chunkQECKDZ47_cjs = require('../chunk-QECKDZ47.cjs');
93
- var chunkTP5PGWIO_cjs = require('../chunk-TP5PGWIO.cjs');
93
+ var chunkQFXOTJ6G_cjs = require('../chunk-QFXOTJ6G.cjs');
94
94
  require('../chunk-I4IS6ST6.cjs');
95
- var chunk7JLJH5CW_cjs = require('../chunk-7JLJH5CW.cjs');
95
+ var chunk5A6T4W46_cjs = require('../chunk-5A6T4W46.cjs');
96
96
  require('../chunk-EVZH6Z5O.cjs');
97
97
  var chunkOYXWQTHF_cjs = require('../chunk-OYXWQTHF.cjs');
98
98
  require('../chunk-S237ORM3.cjs');
@@ -100,7 +100,7 @@ require('../chunk-II2OEXHW.cjs');
100
100
  require('../chunk-JJZOL5MG.cjs');
101
101
  require('../chunk-3YEXZX4H.cjs');
102
102
  var chunk4PA6VCCR_cjs = require('../chunk-4PA6VCCR.cjs');
103
- require('../chunk-WXUU3COI.cjs');
103
+ require('../chunk-SUOHAB7N.cjs');
104
104
  require('../chunk-AHDJXIUB.cjs');
105
105
  var chunkRL2HI6NP_cjs = require('../chunk-RL2HI6NP.cjs');
106
106
  var chunk6UZC4XVV_cjs = require('../chunk-6UZC4XVV.cjs');
@@ -130,11 +130,11 @@ var chunkSJSGSHIT_cjs = require('../chunk-SJSGSHIT.cjs');
130
130
  var chunkZW6FPIFC_cjs = require('../chunk-ZW6FPIFC.cjs');
131
131
  require('../chunk-ZT5MIFLC.cjs');
132
132
  var chunkKLMNCBLY_cjs = require('../chunk-KLMNCBLY.cjs');
133
- var chunkKNGZZC4O_cjs = require('../chunk-KNGZZC4O.cjs');
133
+ var chunkB3BZ6MNI_cjs = require('../chunk-B3BZ6MNI.cjs');
134
134
  require('../chunk-5SKHK3BG.cjs');
135
- var chunkIDCD5TEZ_cjs = require('../chunk-IDCD5TEZ.cjs');
135
+ var chunkA6GBPE5E_cjs = require('../chunk-A6GBPE5E.cjs');
136
136
  var chunkJHDCDEXY_cjs = require('../chunk-JHDCDEXY.cjs');
137
- var chunkM2FOXGJU_cjs = require('../chunk-M2FOXGJU.cjs');
137
+ var chunkF6CEPWIF_cjs = require('../chunk-F6CEPWIF.cjs');
138
138
  require('../chunk-5F4DCIHS.cjs');
139
139
  require('../chunk-DEXUL3T6.cjs');
140
140
  require('../chunk-AFQTQC7A.cjs');
@@ -145,10 +145,10 @@ require('../chunk-MCXS6X37.cjs');
145
145
  require('../chunk-KQF7POTG.cjs');
146
146
  require('../chunk-75BNMCUX.cjs');
147
147
  require('../chunk-IN6ILI5A.cjs');
148
- require('../chunk-HSLPFBK2.cjs');
148
+ require('../chunk-VL7ZX4KQ.cjs');
149
149
  var chunkFX3K6LNZ_cjs = require('../chunk-FX3K6LNZ.cjs');
150
- var chunkQGVOT7E4_cjs = require('../chunk-QGVOT7E4.cjs');
151
- var chunkQRAQZTJE_cjs = require('../chunk-QRAQZTJE.cjs');
150
+ var chunkEQTZQD66_cjs = require('../chunk-EQTZQD66.cjs');
151
+ var chunkJN5YMHGI_cjs = require('../chunk-JN5YMHGI.cjs');
152
152
  require('../chunk-UDSHVNU3.cjs');
153
153
  var chunkIPSHAMO2_cjs = require('../chunk-IPSHAMO2.cjs');
154
154
  var chunkZBP4ZSAJ_cjs = require('../chunk-ZBP4ZSAJ.cjs');
@@ -265,7 +265,7 @@ function ConnectedWorkspaceActivity({
265
265
  [feed.data]
266
266
  );
267
267
  return /* @__PURE__ */ jsxRuntime.jsx(
268
- chunkIZJ5L246_cjs.WorkspaceActivityList,
268
+ chunkKWHGYHRC_cjs.WorkspaceActivityList,
269
269
  {
270
270
  ...listProps,
271
271
  items,
@@ -1587,7 +1587,7 @@ function ConnectedSkillUpload({ onDone, labels, className }) {
1587
1587
  onChange: (e) => {
1588
1588
  const file = e.target.files?.[0];
1589
1589
  e.target.value = "";
1590
- if (file) void add(() => chunkCQQQIZU4_cjs.importSkillFile(file));
1590
+ if (file) void add(() => chunkOD6NGGL3_cjs.importSkillFile(file));
1591
1591
  }
1592
1592
  }
1593
1593
  ),
@@ -1612,7 +1612,7 @@ function ConnectedSkillUpload({ onDone, labels, className }) {
1612
1612
  className: "space-y-2",
1613
1613
  onSubmit: (e) => {
1614
1614
  e.preventDefault();
1615
- if (url.trim()) void add(() => chunkCQQQIZU4_cjs.importSkillFromUrl(url));
1615
+ if (url.trim()) void add(() => chunkOD6NGGL3_cjs.importSkillFromUrl(url));
1616
1616
  },
1617
1617
  children: [
1618
1618
  /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "skills-add-url", children: l.fromLink }),
@@ -1665,9 +1665,9 @@ function ConnectedSkillsLibrary({
1665
1665
  const arbi = react.useArbi();
1666
1666
  const { confirm, notify: notify19 } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
1667
1667
  const { data: allListings } = react.useSkills();
1668
- const isExternal2 = chunkUFT22LAB_cjs.useIsExternalAccount();
1668
+ const isExternal2 = chunkHBUHOCWF_cjs.useIsExternalAccount();
1669
1669
  const listings = react$1.useMemo(
1670
- () => isExternal2 && allListings ? chunkUFT22LAB_cjs.withoutMarketplace(allListings) : allListings,
1670
+ () => isExternal2 && allListings ? chunkHBUHOCWF_cjs.withoutMarketplace(allListings) : allListings,
1671
1671
  [allListings, isExternal2]
1672
1672
  );
1673
1673
  const save = react.useSaveSkill();
@@ -1680,9 +1680,9 @@ function ConnectedSkillsLibrary({
1680
1680
  const [type, setType] = react$1.useState("all");
1681
1681
  const [view, setView] = react$1.useState("gallery");
1682
1682
  const [isBusy, setIsBusy] = react$1.useState(false);
1683
- const all = react$1.useMemo(() => chunkCQQQIZU4_cjs.buildLibrarySkills(builtins, listings ?? []), [builtins, listings]);
1683
+ const all = react$1.useMemo(() => chunkOD6NGGL3_cjs.buildLibrarySkills(builtins, listings ?? []), [builtins, listings]);
1684
1684
  const shown = react$1.useMemo(
1685
- () => chunkCQQQIZU4_cjs.filterLibrarySkills(all, { query, source, type }),
1685
+ () => chunkOD6NGGL3_cjs.filterLibrarySkills(all, { query, source, type }),
1686
1686
  [all, query, source, type]
1687
1687
  );
1688
1688
  const current = all.find((s) => s.slug === selected) ?? null;
@@ -1693,21 +1693,21 @@ function ConnectedSkillsLibrary({
1693
1693
  const count2 = (s) => all.filter((x) => x.source === s).length;
1694
1694
  const sourceOptions = [
1695
1695
  { id: "all", label: "All", count: all.length },
1696
- { id: "builtin", label: chunkCQQQIZU4_cjs.SKILL_SOURCE_LABELS.builtin, count: count2("builtin") },
1697
- { id: "mine", label: chunkCQQQIZU4_cjs.SKILL_SOURCE_LABELS.mine, count: count2("mine") },
1698
- { id: "shared", label: chunkCQQQIZU4_cjs.SKILL_SOURCE_LABELS.shared, count: count2("shared") }
1696
+ { id: "builtin", label: chunkOD6NGGL3_cjs.SKILL_SOURCE_LABELS.builtin, count: count2("builtin") },
1697
+ { id: "mine", label: chunkOD6NGGL3_cjs.SKILL_SOURCE_LABELS.mine, count: count2("mine") },
1698
+ { id: "shared", label: chunkOD6NGGL3_cjs.SKILL_SOURCE_LABELS.shared, count: count2("shared") }
1699
1699
  ];
1700
1700
  const types = [...new Set(all.map((s) => s.type))];
1701
1701
  const typeOptions = [
1702
1702
  { id: "all", label: "Any kind" },
1703
- ...types.map((t) => ({ id: t, label: chunkCQQQIZU4_cjs.SKILL_TYPE_LABELS[t] ?? t }))
1703
+ ...types.map((t) => ({ id: t, label: chunkOD6NGGL3_cjs.SKILL_TYPE_LABELS[t] ?? t }))
1704
1704
  ];
1705
1705
  const pick = (slug) => {
1706
1706
  setSelected(slug);
1707
1707
  setMode("detail");
1708
1708
  };
1709
1709
  const markdownOf = async (skill) => {
1710
- if (!skill.docExtId) return chunkCQQQIZU4_cjs.workflowToSkillMarkdown(skill.workflow);
1710
+ if (!skill.docExtId) return chunkOD6NGGL3_cjs.workflowToSkillMarkdown(skill.workflow);
1711
1711
  const response = await arbi.documents.download(skill.docExtId);
1712
1712
  if (!response.ok) throw new Error(`Could not read the skill (${response.status})`);
1713
1713
  return response.text();
@@ -1771,7 +1771,7 @@ function ConnectedSkillsLibrary({
1771
1771
  try {
1772
1772
  documentTools.downloadBlob(
1773
1773
  new Blob([await markdownOf(skill)], { type: "text/markdown" }),
1774
- chunkCQQQIZU4_cjs.SKILL_MAIN_FILENAME
1774
+ chunkOD6NGGL3_cjs.SKILL_MAIN_FILENAME
1775
1775
  );
1776
1776
  } catch (error) {
1777
1777
  notify19(errorText(error, "Could not export the skill"), "error");
@@ -1812,10 +1812,10 @@ function ConnectedSkillsLibrary({
1812
1812
  }
1813
1813
  )
1814
1814
  ] }),
1815
- /* @__PURE__ */ jsxRuntime.jsx(chunkCQQQIZU4_cjs.SkillViewToggle, { value: view, onChange: setView })
1815
+ /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.SkillViewToggle, { value: view, onChange: setView })
1816
1816
  ] }),
1817
1817
  /* @__PURE__ */ jsxRuntime.jsx(
1818
- chunkCQQQIZU4_cjs.SkillFilterChips,
1818
+ chunkOD6NGGL3_cjs.SkillFilterChips,
1819
1819
  {
1820
1820
  label: "Show",
1821
1821
  value: source,
@@ -1824,7 +1824,7 @@ function ConnectedSkillsLibrary({
1824
1824
  }
1825
1825
  ),
1826
1826
  types.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
1827
- chunkCQQQIZU4_cjs.SkillFilterChips,
1827
+ chunkOD6NGGL3_cjs.SkillFilterChips,
1828
1828
  {
1829
1829
  label: "Kind",
1830
1830
  value: type,
@@ -1871,12 +1871,12 @@ function ConnectedSkillsLibrary({
1871
1871
  view === "gallery" ? "grid grid-cols-[repeat(auto-fill,minmax(9.5rem,1fr))]" : "flex flex-col"
1872
1872
  ),
1873
1873
  children: shown.map((skill) => /* @__PURE__ */ jsxRuntime.jsx(
1874
- chunkCQQQIZU4_cjs.SkillTile,
1874
+ chunkOD6NGGL3_cjs.SkillTile,
1875
1875
  {
1876
1876
  name: skill.title,
1877
1877
  testId: `skill-tile-${skill.slug}`,
1878
1878
  description: skill.description,
1879
- sourceLabel: skill.isShared ? `${chunkCQQQIZU4_cjs.SKILL_SOURCE_LABELS.mine}, shared` : chunkCQQQIZU4_cjs.SKILL_SOURCE_LABELS[skill.source],
1879
+ sourceLabel: skill.isShared ? `${chunkOD6NGGL3_cjs.SKILL_SOURCE_LABELS.mine}, shared` : chunkOD6NGGL3_cjs.SKILL_SOURCE_LABELS[skill.source],
1880
1880
  type: skill.type,
1881
1881
  icon,
1882
1882
  layout: view,
@@ -1911,7 +1911,7 @@ function ConnectedSkillsLibrary({
1911
1911
  }
1912
1912
  ),
1913
1913
  mode === "new" && /* @__PURE__ */ jsxRuntime.jsx(
1914
- chunkCQQQIZU4_cjs.SkillGenerateForm,
1914
+ chunkOD6NGGL3_cjs.SkillGenerateForm,
1915
1915
  {
1916
1916
  icon,
1917
1917
  onGenerate: (desc) => {
@@ -1938,11 +1938,11 @@ function ConnectedSkillsLibrary({
1938
1938
  ),
1939
1939
  mode === "add" && /* @__PURE__ */ jsxRuntime.jsx(ConnectedSkillUpload, { onDone: done }),
1940
1940
  mode === "detail" && current && /* @__PURE__ */ jsxRuntime.jsx(
1941
- chunkCQQQIZU4_cjs.SkillLibraryDetail,
1941
+ chunkOD6NGGL3_cjs.SkillLibraryDetail,
1942
1942
  {
1943
1943
  skill: current,
1944
1944
  icon,
1945
- instructions: current.docExtId ? currentText ? chunkCQQQIZU4_cjs.parseSkillFrontmatter(currentText, chunkCQQQIZU4_cjs.SKILL_MAIN_FILENAME).content : "" : current.workflow.run.kind === "prompt" ? current.workflow.run.promptTemplate : "",
1945
+ instructions: current.docExtId ? currentText ? chunkOD6NGGL3_cjs.parseSkillFrontmatter(currentText, chunkOD6NGGL3_cjs.SKILL_MAIN_FILENAME).content : "" : current.workflow.run.kind === "prompt" ? current.workflow.run.promptTemplate : "",
1946
1946
  isLoading: !!current.docExtId && textLoading,
1947
1947
  actions: {
1948
1948
  onRun: () => onRun(current.slug),
@@ -1977,7 +1977,7 @@ function SkillEditor({
1977
1977
  const [seeded, setSeeded] = react$1.useState(!isEditing);
1978
1978
  const [nameError, setNameError] = react$1.useState(null);
1979
1979
  if (isEditing && !seeded && text !== void 0) {
1980
- const parsed = chunkCQQQIZU4_cjs.parseSkillFrontmatter(text, chunkCQQQIZU4_cjs.SKILL_MAIN_FILENAME);
1980
+ const parsed = chunkOD6NGGL3_cjs.parseSkillFrontmatter(text, chunkOD6NGGL3_cjs.SKILL_MAIN_FILENAME);
1981
1981
  setDescription(parsed.description ?? "");
1982
1982
  setBody(parsed.content ?? "");
1983
1983
  setSeeded(true);
@@ -1991,15 +1991,15 @@ function SkillEditor({
1991
1991
  notify19("Add a short description.", "error");
1992
1992
  return;
1993
1993
  }
1994
- const slug = chunkCQQQIZU4_cjs.skillSlug(name);
1994
+ const slug = chunkOD6NGGL3_cjs.skillSlug(name);
1995
1995
  try {
1996
- await onSave(slug, chunkCQQQIZU4_cjs.serializeSkill({ name: slug, description, body }), isEditing);
1996
+ await onSave(slug, chunkOD6NGGL3_cjs.serializeSkill({ name: slug, description, body }), isEditing);
1997
1997
  } catch (err) {
1998
1998
  notify19(errorText(err, "Could not save the skill"), "error");
1999
1999
  }
2000
2000
  };
2001
2001
  return /* @__PURE__ */ jsxRuntime.jsx(
2002
- chunkCQQQIZU4_cjs.SkillEditForm,
2002
+ chunkOD6NGGL3_cjs.SkillEditForm,
2003
2003
  {
2004
2004
  name,
2005
2005
  onNameChange: setName,
@@ -2038,11 +2038,11 @@ var DEFAULT_CONNECTED_SKILLS_BROWSER_LABELS = {
2038
2038
  function ConnectedSkillsBrowser({
2039
2039
  props,
2040
2040
  onClose: close,
2041
- builtins: givenBuiltins = chunk7JLJH5CW_cjs.BUILTIN_SKILLS,
2041
+ builtins: givenBuiltins = chunk5A6T4W46_cjs.BUILTIN_SKILLS,
2042
2042
  renderEditor,
2043
2043
  labels
2044
2044
  }) {
2045
- const builtins = chunkUFT22LAB_cjs.useNamedWorkflows(givenBuiltins);
2045
+ const builtins = chunkHBUHOCWF_cjs.useNamedWorkflows(givenBuiltins);
2046
2046
  const l = { ...DEFAULT_CONNECTED_SKILLS_BROWSER_LABELS, ...labels };
2047
2047
  const isOpen = props !== null;
2048
2048
  const session = react.useArbiSessionStore();
@@ -2092,7 +2092,7 @@ function ConnectedSkillsBrowser({
2092
2092
  }
2093
2093
  ) }),
2094
2094
  runSkillId && /* @__PURE__ */ jsxRuntime.jsx(
2095
- chunkYP5EBGLU_cjs.ConnectedTaskComposer,
2095
+ chunkGOQV6NOK_cjs.ConnectedTaskComposer,
2096
2096
  {
2097
2097
  kind: "workflow",
2098
2098
  open: true,
@@ -2116,9 +2116,9 @@ function ConnectedAgentCreator({
2116
2116
  agent,
2117
2117
  initialName,
2118
2118
  onSaved,
2119
- capabilities = chunkCQQQIZU4_cjs.DEFAULT_AGENT_CAPABILITIES,
2120
- templates = chunkCQQQIZU4_cjs.DEFAULT_AGENT_TEMPLATES,
2121
- types = chunkCQQQIZU4_cjs.DEFAULT_AGENT_TYPES,
2119
+ capabilities = chunkOD6NGGL3_cjs.DEFAULT_AGENT_CAPABILITIES,
2120
+ templates = chunkOD6NGGL3_cjs.DEFAULT_AGENT_TEMPLATES,
2121
+ types = chunkOD6NGGL3_cjs.DEFAULT_AGENT_TYPES,
2122
2122
  canRevokeWorkspaces = false,
2123
2123
  labels
2124
2124
  }) {
@@ -2160,7 +2160,7 @@ function ConnectedAgentCreator({
2160
2160
  const initialValues = react$1.useMemo(
2161
2161
  () => ({
2162
2162
  name: agent?.given_name ?? initialName ?? "",
2163
- persona: isEdit ? chunkCQQQIZU4_cjs.stripPersonaPreamble(String(agents.PERSONA ?? "")) : "",
2163
+ persona: isEdit ? chunkOD6NGGL3_cjs.stripPersonaPreamble(String(agents.PERSONA ?? "")) : "",
2164
2164
  modelName: String(agents.AGENT_MODEL_NAME ?? ""),
2165
2165
  capabilities: Object.fromEntries(capabilities.map(({ key }) => [key, Boolean(agents[key])])),
2166
2166
  type: "builtin",
@@ -2179,7 +2179,7 @@ function ConnectedAgentCreator({
2179
2179
  try {
2180
2180
  let agentExtId = agent?.external_id ?? early?.id ?? "";
2181
2181
  if (!agentExtId) {
2182
- if (!chunkCQQQIZU4_cjs.isValidAgentName(values.name)) {
2182
+ if (!chunkOD6NGGL3_cjs.isValidAgentName(values.name)) {
2183
2183
  notify19("Give the agent a name first.", "error");
2184
2184
  return;
2185
2185
  }
@@ -2215,7 +2215,7 @@ function ConnectedAgentCreator({
2215
2215
  title: `agent-${name}`,
2216
2216
  sections: {
2217
2217
  Agents: {
2218
- PERSONA: chunkCQQQIZU4_cjs.composePersona(name, values.persona),
2218
+ PERSONA: chunkOD6NGGL3_cjs.composePersona(name, values.persona),
2219
2219
  ...values.modelName ? { AGENT_MODEL_NAME: values.modelName } : {},
2220
2220
  ...Object.fromEntries(capabilities.map(({ key }) => [key, !!values.capabilities[key]])),
2221
2221
  ENABLED_SKILLS: values.capabilities.SKILLS_ENABLED && skills.length ? skills : null,
@@ -2238,7 +2238,7 @@ function ConnectedAgentCreator({
2238
2238
  };
2239
2239
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2240
2240
  /* @__PURE__ */ jsxRuntime.jsx(
2241
- chunkCQQQIZU4_cjs.AgentCreator,
2241
+ chunkOD6NGGL3_cjs.AgentCreator,
2242
2242
  {
2243
2243
  open: ready,
2244
2244
  onOpenChange,
@@ -2254,11 +2254,11 @@ function ConnectedAgentCreator({
2254
2254
  ) : void 0,
2255
2255
  revokingWorkspaceId: revokeAccess.isPending ? revokeAccess.variables?.workspaceId : void 0,
2256
2256
  avatar: (values) => /* @__PURE__ */ jsxRuntime.jsx(
2257
- chunkCQQQIZU4_cjs.AgentAvatarField,
2257
+ chunkOD6NGGL3_cjs.AgentAvatarField,
2258
2258
  {
2259
2259
  picture,
2260
2260
  isBusy: avatarBusy,
2261
- canGenerate: isEdit || chunkCQQQIZU4_cjs.isValidAgentName(values.name),
2261
+ canGenerate: isEdit || chunkOD6NGGL3_cjs.isValidAgentName(values.name),
2262
2262
  onGenerate: () => handleGenerateAvatar(values)
2263
2263
  }
2264
2264
  ),
@@ -2310,7 +2310,7 @@ function ConnectedAgentCreator({
2310
2310
  /* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { children: "Connect your agent" }),
2311
2311
  /* @__PURE__ */ jsxRuntime.jsx(ui.DialogDescription, { children: "This key is shown once. Run the script on the machine that will host the agent." })
2312
2312
  ] }),
2313
- connect && /* @__PURE__ */ jsxRuntime.jsx(chunkCQQQIZU4_cjs.AgentConnectInstructions, { email: connect.email, signingKey: connect.signingKey })
2313
+ connect && /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.AgentConnectInstructions, { email: connect.email, signingKey: connect.signingKey })
2314
2314
  ]
2315
2315
  }
2316
2316
  ) })
@@ -2437,7 +2437,7 @@ function AgentChat({ agentId, workspaceId, onOpenFull }) {
2437
2437
  /* @__PURE__ */ jsxRuntime.jsx("ol", { className: "mt-2 space-y-1", children: activity.map((name, i) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx("pre", { className: "whitespace-pre-wrap break-all", children: name }) }, i)) })
2438
2438
  ] }),
2439
2439
  /* @__PURE__ */ jsxRuntime.jsx(
2440
- chunkIDCD5TEZ_cjs.ChatPage,
2440
+ chunkA6GBPE5E_cjs.ChatPage,
2441
2441
  {
2442
2442
  chat: { ...chat, assistantMode: void 0, setAssistantMode: void 0 },
2443
2443
  surface: "dock",
@@ -2702,7 +2702,7 @@ function useMemoryCount(enabled) {
2702
2702
  }
2703
2703
  function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
2704
2704
  const { notify: notify19, openConversation, openDocument } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
2705
- const people = chunkYP5EBGLU_cjs.useTaskPeople();
2705
+ const people = chunkGOQV6NOK_cjs.useTaskPeople();
2706
2706
  const canEditShared = react.useCanEditShared();
2707
2707
  const isWorkspaceOwner = react.useIsWorkspaceOwner();
2708
2708
  const { data: workflows = [] } = react.useWorkflows({ live: true });
@@ -2728,7 +2728,7 @@ function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
2728
2728
  }, [documents]);
2729
2729
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2730
2730
  /* @__PURE__ */ jsxRuntime.jsx(
2731
- chunkCQQQIZU4_cjs.TaskTable,
2731
+ chunkOD6NGGL3_cjs.TaskTable,
2732
2732
  {
2733
2733
  tasks,
2734
2734
  isLoading,
@@ -2755,7 +2755,7 @@ function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
2755
2755
  }
2756
2756
  ),
2757
2757
  activityFor && /* @__PURE__ */ jsxRuntime.jsx(
2758
- chunkYP5EBGLU_cjs.ConnectedTaskActivityDialog,
2758
+ chunkGOQV6NOK_cjs.ConnectedTaskActivityDialog,
2759
2759
  {
2760
2760
  conversationId: activityFor.external_id,
2761
2761
  taskName: activityFor.title || l.untitledTask,
@@ -2771,12 +2771,12 @@ function AgentsLauncher({ workflows, renderIcon, labels: l, testId }) {
2771
2771
  const { notify: notify19, openConversation } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
2772
2772
  const { workspaceId, ensureWorkspaceOpen } = chunkJR2YSBD5_cjs.useConnectedWorkspace();
2773
2773
  const { data: skills = [] } = react.useSkills({ enabled: !!workspaceId, live: true });
2774
- const workflowTasks = chunkUFT22LAB_cjs.useWorkflowTasks();
2774
+ const workflowTasks = chunkHBUHOCWF_cjs.useWorkflowTasks();
2775
2775
  const launchable = react$1.useMemo(
2776
2776
  () => [
2777
2777
  ...workflows,
2778
2778
  ...skills.map((s) => {
2779
- const workflow = chunkQRAQZTJE_cjs.skillToWorkflow({
2779
+ const workflow = chunkJN5YMHGI_cjs.skillToWorkflow({
2780
2780
  name: s.name,
2781
2781
  slug: s.slug,
2782
2782
  description: s.description,
@@ -2794,7 +2794,7 @@ function AgentsLauncher({ workflows, renderIcon, labels: l, testId }) {
2794
2794
  [workflows, skills, l.skillFiles]
2795
2795
  );
2796
2796
  const launch = async ({ workflow, inputs, agentId }) => {
2797
- const values = chunkCQQQIZU4_cjs.defaultTaskComposerValues(launchable, {
2797
+ const values = chunkOD6NGGL3_cjs.defaultTaskComposerValues(launchable, {
2798
2798
  workflowId: workflow.id,
2799
2799
  assignee: "agent",
2800
2800
  inputs,
@@ -2815,7 +2815,7 @@ function AgentsLauncher({ workflows, renderIcon, labels: l, testId }) {
2815
2815
  }
2816
2816
  };
2817
2817
  return /* @__PURE__ */ jsxRuntime.jsx(
2818
- chunkWAV762GP_cjs.ConnectedWorkflowLauncher,
2818
+ chunkDBN6GBRQ_cjs.ConnectedWorkflowLauncher,
2819
2819
  {
2820
2820
  workflows: launchable,
2821
2821
  onLaunch: launch,
@@ -2914,7 +2914,7 @@ function ConnectedAgentsPageScope(props) {
2914
2914
  children,
2915
2915
  /* @__PURE__ */ jsxRuntime.jsx(ConnectedAgentCreator, { ...management.editorProps, ...agentOptions.creator }),
2916
2916
  taskDialog && /* @__PURE__ */ jsxRuntime.jsx(
2917
- chunkYP5EBGLU_cjs.ConnectedTaskComposer,
2917
+ chunkGOQV6NOK_cjs.ConnectedTaskComposer,
2918
2918
  {
2919
2919
  open: true,
2920
2920
  onOpenChange: (open) => !open && setTaskDialog(null),
@@ -2936,7 +2936,7 @@ function AgentsGallery() {
2936
2936
  cardTestIds
2937
2937
  } = agentOptions;
2938
2938
  const { openConversation } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
2939
- const tasksByAgent = react$1.useMemo(() => chunkCQQQIZU4_cjs.groupAgentTasks(tasks), [tasks]);
2939
+ const tasksByAgent = react$1.useMemo(() => chunkOD6NGGL3_cjs.groupAgentTasks(tasks), [tasks]);
2940
2940
  const behaviour = useAgentBehaviour(l.defaultBehaviour, details.includes("behaviour"));
2941
2941
  const { agents } = management;
2942
2942
  const cardDetails = (agent) => details.map(
@@ -2951,7 +2951,7 @@ function AgentsGallery() {
2951
2951
  ) : detail === "workspaces" ? /* @__PURE__ */ jsxRuntime.jsx(AgentWorkspaceAccess, { agentExtId: agent.external_id, labels: l }, detail) : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: behaviour.behaviourOf(agent.given_name) }, detail)
2952
2952
  );
2953
2953
  return /* @__PURE__ */ jsxRuntime.jsx(
2954
- chunkCQQQIZU4_cjs.AgentGallery,
2954
+ chunkOD6NGGL3_cjs.AgentGallery,
2955
2955
  {
2956
2956
  count: agents.length,
2957
2957
  onCreate: management.create,
@@ -2961,9 +2961,9 @@ function AgentsGallery() {
2961
2961
  const agentTasks = tasksByAgent.get(agent.external_id) ?? [];
2962
2962
  const running = agentTasks.filter((t) => t.in_progress);
2963
2963
  const watchConversationId = running[0]?.external_id ?? null;
2964
- const progress = agentTasks[0] ? chunkCQQQIZU4_cjs.goalProgress(agentTasks[0]) : null;
2964
+ const progress = agentTasks[0] ? chunkOD6NGGL3_cjs.goalProgress(agentTasks[0]) : null;
2965
2965
  return /* @__PURE__ */ jsxRuntime.jsx(
2966
- chunkCQQQIZU4_cjs.AgentCard,
2966
+ chunkOD6NGGL3_cjs.AgentCard,
2967
2967
  {
2968
2968
  name: displayName(agent),
2969
2969
  avatar: /* @__PURE__ */ jsxRuntime.jsx(AgentInitialsAvatar, { agent }),
@@ -3071,7 +3071,7 @@ function AgentsSectionBody({ id }) {
3071
3071
  ) });
3072
3072
  case "scheduled":
3073
3073
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-[min(32rem,70dvh)] min-h-64 flex-col", children: /* @__PURE__ */ jsxRuntime.jsx(
3074
- chunkVLQCLQAS_cjs.ConnectedWorkflowsTable,
3074
+ chunkTZYB22FM_cjs.ConnectedWorkflowsTable,
3075
3075
  {
3076
3076
  filter: "scheduled",
3077
3077
  onEdit: (w) => openWorkflow?.(w.external_id),
@@ -3156,7 +3156,7 @@ function ConnectedAgentsPage({
3156
3156
  }
3157
3157
  ) });
3158
3158
  }
3159
- var StreamedArtifactEditor = react$1.lazy(() => import('../StreamedArtifactEditor-7KJ2HLLU.cjs'));
3159
+ var StreamedArtifactEditor = react$1.lazy(() => import('../StreamedArtifactEditor-RSPUSZ2B.cjs'));
3160
3160
  function StreamedArtifact({
3161
3161
  artifacts: artifacts$1,
3162
3162
  workspaceId,
@@ -3375,7 +3375,7 @@ function ConnectedTagTable({
3375
3375
  const fail2 = (fallback) => (e) => notify19(browser.refusalReason(e, fallback), "error");
3376
3376
  const snapshot2 = (data) => {
3377
3377
  const title = exportTitle ?? ui.tagKindTitle(kind, { plural: true });
3378
- const bytes = chunkIZJ5L246_cjs.tagTableDocx(data, {
3378
+ const bytes = chunkKWHGYHRC_cjs.tagTableDocx(data, {
3379
3379
  title,
3380
3380
  nameOf: (id) => people.find((p) => p.value === id)?.label
3381
3381
  });
@@ -3384,7 +3384,7 @@ function ConnectedTagTable({
3384
3384
  return { blob: new Blob([bytes], { type: chunkUKOYN2WD_cjs.DOCX_MIME_TYPE }), name };
3385
3385
  };
3386
3386
  return /* @__PURE__ */ jsxRuntime.jsx(
3387
- chunkIZJ5L246_cjs.TagTable,
3387
+ chunkKWHGYHRC_cjs.TagTable,
3388
3388
  {
3389
3389
  ...props,
3390
3390
  table,
@@ -3427,6 +3427,754 @@ function ConnectedTagTable({
3427
3427
  }
3428
3428
  );
3429
3429
  }
3430
+ var DEFAULT_ASSISTANT_DRAFT_LABELS = {
3431
+ draftInGmail: "Draft in Gmail",
3432
+ draftInArbiMail: "Draft in ARBI Mail",
3433
+ openDraft: "Open draft",
3434
+ noSubject: "(no subject)",
3435
+ messageTo: (name) => `Message to ${name}`,
3436
+ send: "Send",
3437
+ sent: "Sent",
3438
+ openChat: "Open chat",
3439
+ sendFailed: "Could not send the message",
3440
+ sentNotRecorded: "The message was sent, but it may be offered again"
3441
+ };
3442
+ function MessageDraftRow({
3443
+ workspaceId,
3444
+ arrivalId,
3445
+ index,
3446
+ draft,
3447
+ labels
3448
+ }) {
3449
+ const { notify: notify19, openDirectChat } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
3450
+ const post = react.useChatPost();
3451
+ const markSent = react.useMarkMessageDraftSent(workspaceId);
3452
+ const [text, setText] = react$1.useState(draft.text);
3453
+ const [state, setState] = react$1.useState("idle");
3454
+ const sent = state === "sent" || !!draft.sent_at;
3455
+ const key = `${arrivalId}-${index}`;
3456
+ const send = async () => {
3457
+ setState("sending");
3458
+ try {
3459
+ await post({ chat: null, peerExtId: draft.to_user_ext_id }, { text: text.trim() });
3460
+ } catch (err) {
3461
+ setState("idle");
3462
+ notify19(browser.refusalReason(err, labels.sendFailed), "error");
3463
+ return;
3464
+ }
3465
+ setState("sent");
3466
+ markSent.mutate(
3467
+ { arrivalExtId: arrivalId, index },
3468
+ { onError: () => notify19(labels.sentNotRecorded, "error") }
3469
+ );
3470
+ };
3471
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", "data-testid": `assistant-message-draft-${key}`, children: [
3472
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-medium", children: labels.messageTo(draft.to_name || draft.to_user_ext_id) }),
3473
+ /* @__PURE__ */ jsxRuntime.jsx(
3474
+ ui.Textarea,
3475
+ {
3476
+ rows: 3,
3477
+ value: text,
3478
+ disabled: sent || state !== "idle",
3479
+ onChange: (e) => setText(e.target.value),
3480
+ "data-testid": `assistant-message-text-${key}`
3481
+ }
3482
+ ),
3483
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
3484
+ sent ? /* @__PURE__ */ jsxRuntime.jsx(
3485
+ "span",
3486
+ {
3487
+ className: "text-sm text-muted-foreground",
3488
+ "data-testid": `assistant-message-sent-${key}`,
3489
+ children: labels.sent
3490
+ }
3491
+ ) : /* @__PURE__ */ jsxRuntime.jsx(
3492
+ ui.Button,
3493
+ {
3494
+ size: "sm",
3495
+ disabled: state === "sending" || !text.trim(),
3496
+ onClick: send,
3497
+ "data-testid": `assistant-message-send-${key}`,
3498
+ children: labels.send
3499
+ }
3500
+ ),
3501
+ openDirectChat && /* @__PURE__ */ jsxRuntime.jsx(
3502
+ ui.Button,
3503
+ {
3504
+ variant: "ghost",
3505
+ size: "sm",
3506
+ onClick: () => openDirectChat(draft.to_user_ext_id),
3507
+ "data-testid": `assistant-message-open-chat-${key}`,
3508
+ children: labels.openChat
3509
+ }
3510
+ )
3511
+ ] })
3512
+ ] });
3513
+ }
3514
+ function AssistantDrafts({
3515
+ arrival,
3516
+ labels,
3517
+ workspaceId
3518
+ }) {
3519
+ const { openMail } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
3520
+ const emails = arrival.email_drafts ?? [];
3521
+ const messages = arrival.message_drafts ?? [];
3522
+ if (!emails.length && !messages.length) return null;
3523
+ const id = arrival.external_id;
3524
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-2 space-y-3 border-t pt-2", "data-testid": `assistant-drafts-${id}`, children: [
3525
+ emails.map((email, i) => {
3526
+ const gmail = email.provider === "gmail";
3527
+ const link = gmail ? chunkJN5YMHGI_cjs.gmailLink(email.url) : void 0;
3528
+ const subject = email.subject || labels.noSubject;
3529
+ return /* @__PURE__ */ jsxRuntime.jsxs(
3530
+ "div",
3531
+ {
3532
+ className: "flex flex-wrap items-center gap-2 text-sm",
3533
+ "data-testid": `assistant-email-draft-${id}-${i}`,
3534
+ children: [
3535
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium", children: gmail ? labels.draftInGmail : labels.draftInArbiMail }),
3536
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 truncate text-muted-foreground", children: subject }),
3537
+ link ? /* @__PURE__ */ jsxRuntime.jsx(
3538
+ "a",
3539
+ {
3540
+ href: link,
3541
+ target: "_blank",
3542
+ rel: "noopener noreferrer",
3543
+ className: "text-primary underline",
3544
+ "data-testid": `assistant-email-link-${id}-${i}`,
3545
+ children: labels.openDraft
3546
+ }
3547
+ ) : !gmail && openMail && /* @__PURE__ */ jsxRuntime.jsx(
3548
+ ui.Button,
3549
+ {
3550
+ variant: "outline",
3551
+ size: "sm",
3552
+ onClick: () => openMail({ draftId: email.draft_id }),
3553
+ "data-testid": `assistant-email-open-${id}-${i}`,
3554
+ children: labels.openDraft
3555
+ }
3556
+ )
3557
+ ]
3558
+ },
3559
+ `${email.draft_id}-${i}`
3560
+ );
3561
+ }),
3562
+ messages.map((draft, i) => /* @__PURE__ */ jsxRuntime.jsx(
3563
+ MessageDraftRow,
3564
+ {
3565
+ workspaceId,
3566
+ arrivalId: id,
3567
+ index: i,
3568
+ draft,
3569
+ labels
3570
+ },
3571
+ `${draft.to_user_ext_id}-${i}`
3572
+ ))
3573
+ ] });
3574
+ }
3575
+ var DEFAULT_ASSISTANT_STATUS_LABELS = {
3576
+ statusOff: "The Assistant is off",
3577
+ statusOffHint: "Switch it on to have it react to new uploads, emails and files.",
3578
+ statusIdle: "Watching this workspace \u2014 I'll react to new uploads, emails and files.",
3579
+ statusIdleProcessing: (n) => n === 1 ? "1 file is processing \u2014 I'll look at it once it's ready." : `${n} files are processing \u2014 I'll look at them once they're ready.`,
3580
+ statusWaiting: (n) => `${n} ${n === 1 ? "item" : "items"} waiting`,
3581
+ statusStartsIn: "I'll start in",
3582
+ statusStartingSoon: "Starting on the next check (\u226430 s)\u2026",
3583
+ statusQuiet: "Quiet for 1 minute since the last arrival",
3584
+ statusQuietIn: "quiet in",
3585
+ statusDocsDone: "All documents finished processing",
3586
+ statusDocsWaiting: (n) => `Waiting for ${n} ${n === 1 ? "file" : "files"}`,
3587
+ statusPrivateFile: "a private file",
3588
+ statusHidden: (n) => `+${n} ${n === 1 ? "file" : "files"} you can't see`,
3589
+ statusAtLatest: "At the latest",
3590
+ statusAtLatestHint: "(starts even if files are still processing)",
3591
+ statusWorking: (n) => `Working on ${n} ${n === 1 ? "item" : "items"}\u2026`,
3592
+ statusOpenThread: "Open the thread it is working in",
3593
+ statusRetrying: "A reaction failed; retrying in",
3594
+ statusDocStatuses: { uploading: "Uploading", queued: "Queued", processing: "Processing" }
3595
+ };
3596
+ var ms = (iso) => iso ? Date.parse(iso) : null;
3597
+ function clock(remainingMs) {
3598
+ const s = Math.max(0, Math.ceil(remainingMs / 1e3));
3599
+ return `${String(Math.floor(s / 60)).padStart(2, "0")}:${String(s % 60).padStart(2, "0")}`;
3600
+ }
3601
+ function coarse(remainingMs) {
3602
+ const s = Math.max(0, Math.ceil(remainingMs / 1e3));
3603
+ return s < 60 ? "less than a minute" : `about ${Math.ceil(s / 60)} minutes`;
3604
+ }
3605
+ function Countdown({ remaining }) {
3606
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
3607
+ /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", "data-testid": "assistant-status-countdown", children: clock(remaining) }),
3608
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: coarse(remaining) })
3609
+ ] });
3610
+ }
3611
+ function Condition({
3612
+ ok,
3613
+ children,
3614
+ testId
3615
+ }) {
3616
+ const Icon = ok ? lucideReact.Check : lucideReact.Circle;
3617
+ return /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "flex items-start gap-2", "data-testid": testId, "data-done": ok, children: [
3618
+ /* @__PURE__ */ jsxRuntime.jsx(
3619
+ Icon,
3620
+ {
3621
+ className: `mt-0.5 h-4 w-4 shrink-0 ${ok ? "text-green-600" : "text-muted-foreground"}`,
3622
+ "aria-hidden": "true"
3623
+ }
3624
+ ),
3625
+ /* @__PURE__ */ jsxRuntime.jsx("div", { children })
3626
+ ] });
3627
+ }
3628
+ function ProcessingList({
3629
+ docs,
3630
+ hidden,
3631
+ labels
3632
+ }) {
3633
+ return /* @__PURE__ */ jsxRuntime.jsxs("ul", { className: "mt-1 space-y-1", children: [
3634
+ docs.map((d) => /* @__PURE__ */ jsxRuntime.jsxs(
3635
+ "li",
3636
+ {
3637
+ className: "flex items-center gap-2",
3638
+ "data-testid": `assistant-status-processing-${d.doc_ext_id}`,
3639
+ children: [
3640
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate", children: d.name ?? labels.statusPrivateFile }),
3641
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Badge, { variant: "outline", children: labels.statusDocStatuses[d.status] ?? d.status })
3642
+ ]
3643
+ },
3644
+ d.doc_ext_id
3645
+ )),
3646
+ hidden > 0 && /* @__PURE__ */ jsxRuntime.jsx("li", { className: "text-muted-foreground", "data-testid": "assistant-status-hidden", children: labels.statusHidden(hidden) })
3647
+ ] });
3648
+ }
3649
+ function Idle({ s, labels }) {
3650
+ const processing = s.processing ?? [];
3651
+ if (processing.length === 0) {
3652
+ return /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", "aria-live": "polite", children: labels.statusIdle });
3653
+ }
3654
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
3655
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-medium", "aria-live": "polite", "data-testid": "assistant-status-headline", children: labels.statusIdleProcessing(processing.length) }),
3656
+ /* @__PURE__ */ jsxRuntime.jsx(ProcessingList, { docs: processing, hidden: 0, labels })
3657
+ ] });
3658
+ }
3659
+ function Body({
3660
+ s,
3661
+ now,
3662
+ labels,
3663
+ onOpenThread
3664
+ }) {
3665
+ if (s.state === "working") {
3666
+ const thread = s.conversation_ext_id;
3667
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-x-3 gap-y-1", children: [
3668
+ /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "flex items-center gap-2", "aria-live": "polite", children: [
3669
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "h-4 w-4 animate-spin", "aria-hidden": "true" }),
3670
+ labels.statusWorking(s.working)
3671
+ ] }),
3672
+ thread && onOpenThread && /* @__PURE__ */ jsxRuntime.jsx(
3673
+ "button",
3674
+ {
3675
+ type: "button",
3676
+ className: "text-sm underline underline-offset-2 hover:text-foreground",
3677
+ onClick: () => onOpenThread(thread),
3678
+ "data-testid": "assistant-status-open-thread",
3679
+ children: labels.statusOpenThread
3680
+ }
3681
+ )
3682
+ ] });
3683
+ }
3684
+ if (s.state === "retrying") {
3685
+ const at = ms(s.retry_at);
3686
+ return /* @__PURE__ */ jsxRuntime.jsxs("p", { "aria-live": "polite", children: [
3687
+ labels.statusRetrying,
3688
+ " ",
3689
+ at !== null && /* @__PURE__ */ jsxRuntime.jsx(Countdown, { remaining: at - now })
3690
+ ] });
3691
+ }
3692
+ const starts = ms(s.starts_at);
3693
+ const quiet = ms(s.quiet_until);
3694
+ const maxWait = ms(s.max_wait_until);
3695
+ const due = starts !== null && starts <= now;
3696
+ const quietOk = quiet === null || quiet <= now;
3697
+ const docsOk = (s.processing ?? []).length === 0 && (s.processing_hidden ?? 0) === 0;
3698
+ const processing = s.processing ?? [];
3699
+ const hidden = s.processing_hidden ?? 0;
3700
+ const waitingFiles = processing.length + hidden;
3701
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
3702
+ /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "font-medium", "aria-live": "polite", "data-testid": "assistant-status-headline", children: [
3703
+ labels.statusWaiting(s.pending),
3704
+ " \u2014 ",
3705
+ due || starts === null ? labels.statusStartingSoon : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
3706
+ labels.statusStartsIn,
3707
+ " ",
3708
+ /* @__PURE__ */ jsxRuntime.jsx(Countdown, { remaining: starts - now })
3709
+ ] })
3710
+ ] }),
3711
+ /* @__PURE__ */ jsxRuntime.jsxs("ul", { className: "space-y-1 text-sm", "data-testid": "assistant-status-conditions", children: [
3712
+ /* @__PURE__ */ jsxRuntime.jsxs(Condition, { ok: quietOk, testId: "assistant-status-quiet", children: [
3713
+ labels.statusQuiet,
3714
+ !quietOk && quiet !== null && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-muted-foreground", children: [
3715
+ " \u2014 ",
3716
+ labels.statusQuietIn,
3717
+ " ",
3718
+ /* @__PURE__ */ jsxRuntime.jsx(Countdown, { remaining: quiet - now })
3719
+ ] })
3720
+ ] }),
3721
+ /* @__PURE__ */ jsxRuntime.jsxs(Condition, { ok: docsOk, testId: "assistant-status-docs", children: [
3722
+ docsOk ? labels.statusDocsDone : labels.statusDocsWaiting(waitingFiles),
3723
+ !docsOk && /* @__PURE__ */ jsxRuntime.jsx(ProcessingList, { docs: processing, hidden, labels })
3724
+ ] }),
3725
+ maxWait !== null && /* @__PURE__ */ jsxRuntime.jsxs(Condition, { ok: maxWait <= now, testId: "assistant-status-max-wait", children: [
3726
+ labels.statusAtLatest,
3727
+ ": ",
3728
+ /* @__PURE__ */ jsxRuntime.jsx(Countdown, { remaining: maxWait - now }),
3729
+ " ",
3730
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground", children: labels.statusAtLatestHint })
3731
+ ] })
3732
+ ] })
3733
+ ] });
3734
+ }
3735
+ function AssistantStatusPanel({
3736
+ workspaceId,
3737
+ labels: labelOverrides,
3738
+ onOpenThread
3739
+ }) {
3740
+ const labels = { ...DEFAULT_ASSISTANT_STATUS_LABELS, ...labelOverrides };
3741
+ const { data, dataUpdatedAt } = react.useAssistantStatus(workspaceId);
3742
+ const offset = react$1.useMemo(
3743
+ () => data ? Date.parse(data.now) - dataUpdatedAt : 0,
3744
+ [data, dataUpdatedAt]
3745
+ );
3746
+ const [, setTick] = react$1.useState(0);
3747
+ const ticking = data?.state === "waiting" || data?.state === "retrying";
3748
+ react$1.useEffect(() => {
3749
+ if (!ticking) return;
3750
+ const t = setInterval(() => setTick((n) => n + 1), 1e3);
3751
+ return () => clearInterval(t);
3752
+ }, [ticking]);
3753
+ if (!data) return null;
3754
+ const now = Date.now() + offset;
3755
+ return /* @__PURE__ */ jsxRuntime.jsx(
3756
+ "section",
3757
+ {
3758
+ className: "rounded-md border bg-muted/30 p-3 text-sm",
3759
+ "data-testid": `assistant-status-${data.state}`,
3760
+ children: data.state === "off" ? /* @__PURE__ */ jsxRuntime.jsxs("p", { "aria-live": "polite", children: [
3761
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium", children: labels.statusOff }),
3762
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-muted-foreground", children: [
3763
+ " \u2014 ",
3764
+ labels.statusOffHint
3765
+ ] })
3766
+ ] }) : data.state === "idle" ? /* @__PURE__ */ jsxRuntime.jsx(Idle, { s: data, labels }) : /* @__PURE__ */ jsxRuntime.jsx(Body, { s: data, now, labels, onOpenThread })
3767
+ }
3768
+ );
3769
+ }
3770
+ var DEFAULT_ASSISTANT_PLAN_LABELS = {
3771
+ planGoal: "Goal",
3772
+ planWhy: "Why",
3773
+ planChanged: "Changed course:",
3774
+ planShowSteps: (count2) => `Show ${count2} steps`,
3775
+ planHideSteps: "Hide steps",
3776
+ planSameReaction: "Same reaction as above"
3777
+ };
3778
+ var COLLAPSE_AFTER = 3;
3779
+ function AssistantPlan({
3780
+ arrival,
3781
+ labels,
3782
+ sameAsAbove
3783
+ }) {
3784
+ const id = arrival.external_id;
3785
+ const plan = arrival.plan;
3786
+ const steps = plan?.steps ?? [];
3787
+ const changes = arrival.plan_changes ?? [];
3788
+ const [toggled, setToggled] = react$1.useState(null);
3789
+ if (!plan) return null;
3790
+ if (sameAsAbove) {
3791
+ return /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-2 text-xs text-muted-foreground", "data-testid": `assistant-plan-same-${id}`, children: labels.planSameReaction });
3792
+ }
3793
+ const collapsible = steps.length > COLLAPSE_AFTER;
3794
+ const open = !collapsible || (toggled ?? arrival.working);
3795
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-2 space-y-1 text-sm", "data-testid": `assistant-plan-${id}`, children: [
3796
+ /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "font-medium", "data-testid": `assistant-plan-goal-${id}`, children: [
3797
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sr-only", children: [
3798
+ labels.planGoal,
3799
+ ": "
3800
+ ] }),
3801
+ plan.goal
3802
+ ] }),
3803
+ /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-muted-foreground", "data-testid": `assistant-plan-why-${id}`, children: [
3804
+ labels.planWhy,
3805
+ ": ",
3806
+ plan.why
3807
+ ] }),
3808
+ steps.length > 0 && open && /* @__PURE__ */ jsxRuntime.jsx(
3809
+ "ol",
3810
+ {
3811
+ className: "list-decimal space-y-0.5 pl-5 text-muted-foreground",
3812
+ "data-testid": `assistant-plan-steps-${id}`,
3813
+ children: steps.map((step, i) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: step }, i))
3814
+ }
3815
+ ),
3816
+ collapsible && /* @__PURE__ */ jsxRuntime.jsx(
3817
+ "button",
3818
+ {
3819
+ type: "button",
3820
+ className: "text-xs text-muted-foreground underline",
3821
+ "aria-expanded": open,
3822
+ "data-testid": `assistant-plan-toggle-${id}`,
3823
+ onClick: () => setToggled(!open),
3824
+ children: open ? labels.planHideSteps : labels.planShowSteps(steps.length)
3825
+ }
3826
+ ),
3827
+ changes.map((change, i) => /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-amber-600", "data-testid": `assistant-plan-change-${id}-${i}`, children: [
3828
+ labels.planChanged,
3829
+ " ",
3830
+ change
3831
+ ] }, i))
3832
+ ] });
3833
+ }
3834
+ var DEFAULT_ASSISTANT_LABELS = {
3835
+ ...DEFAULT_ASSISTANT_DRAFT_LABELS,
3836
+ ...DEFAULT_ASSISTANT_PLAN_LABELS,
3837
+ ...DEFAULT_ASSISTANT_STATUS_LABELS,
3838
+ title: "Assistant",
3839
+ intro: "Your Assistant reacts to everything that arrives in this workspace \u2014 uploads, synced emails and files \u2014 following these instructions. It only drafts: it never sends, signs, shares or deletes.",
3840
+ briefLabel: "Instructions",
3841
+ briefPlaceholder: "When Dmitri Evseev writes, draft a reply in Gmail using our documents.\nInvoices: tag them Finance.\nAnything else: file it; tell me only if it looks urgent.",
3842
+ activeLabel: "On",
3843
+ dailyCapLabel: "Daily limit",
3844
+ save: "Save",
3845
+ saved: "Instructions saved",
3846
+ version: (n) => `Version ${n}`,
3847
+ noAccess: "The Assistant needs access to this workspace to react while you're away.",
3848
+ noAccessOwnerOnly: "Only the workspace owner can give it access.",
3849
+ grantAccess: "Give it access",
3850
+ accessGranted: "The Assistant can now open this workspace",
3851
+ grantAccessFailed: "Could not give the Assistant access",
3852
+ openInbox: "Open inbox thread",
3853
+ activityTitle: "Activity",
3854
+ activityEmpty: "Nothing has arrived yet.",
3855
+ waiting: "Waiting",
3856
+ working: "Working\u2026",
3857
+ retrying: "Retrying",
3858
+ markWrong: "That was wrong",
3859
+ markedWrong: "Marked wrong",
3860
+ backfill: "Existing",
3861
+ loadFailed: "Could not load the Assistant",
3862
+ saveFailed: "Could not save the instructions",
3863
+ outcomes: {
3864
+ acted: "Acted",
3865
+ asked: "Asked you",
3866
+ ignored: "Ignored",
3867
+ summarised: "Summarised",
3868
+ capped: "Over daily limit",
3869
+ failed: "Failed"
3870
+ },
3871
+ sources: {
3872
+ upload: "Upload",
3873
+ gmail: "Gmail",
3874
+ outlook: "Outlook",
3875
+ gdrive: "Google Drive",
3876
+ onedrive: "OneDrive",
3877
+ sharepoint: "SharePoint",
3878
+ box: "Box",
3879
+ dropbox: "Dropbox",
3880
+ clio: "Clio",
3881
+ onenote: "OneNote",
3882
+ mail: "Mail"
3883
+ }
3884
+ };
3885
+ var OUTCOME_VARIANT = {
3886
+ acted: "default",
3887
+ asked: "accent",
3888
+ ignored: "secondary",
3889
+ summarised: "secondary",
3890
+ capped: "outline",
3891
+ failed: "destructive"
3892
+ };
3893
+ function turnLeads(items) {
3894
+ const leads = /* @__PURE__ */ new Map();
3895
+ for (const arrival of items) {
3896
+ if (arrival.response_id && !leads.has(arrival.response_id)) {
3897
+ leads.set(arrival.response_id, arrival);
3898
+ }
3899
+ }
3900
+ return leads;
3901
+ }
3902
+ function sharesPlan(lead, arrival) {
3903
+ return !!lead.plan && !!arrival.plan && JSON.stringify(lead.plan) === JSON.stringify(arrival.plan);
3904
+ }
3905
+ function ActivityItem({
3906
+ arrival,
3907
+ workspaceId,
3908
+ labels,
3909
+ onOpen,
3910
+ onWrong,
3911
+ wrongPending,
3912
+ sameAsAbove,
3913
+ showDrafts
3914
+ }) {
3915
+ const id = arrival.external_id;
3916
+ const conversationId = arrival.conversation_ext_id;
3917
+ const outcome = arrival.status === "pending" ? null : arrival.outcome;
3918
+ const chip = outcome ? labels.outcomes[outcome] ?? outcome : arrival.working ? labels.working : arrival.status === "dead" ? labels.outcomes.failed ?? "failed" : arrival.last_error ? labels.retrying : labels.waiting;
3919
+ const variant = outcome ? OUTCOME_VARIANT[outcome] ?? "secondary" : arrival.status === "dead" ? "destructive" : "outline";
3920
+ return /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "rounded-md border p-3", "data-testid": `assistant-activity-item-${id}`, children: [
3921
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
3922
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
3923
+ /* @__PURE__ */ jsxRuntime.jsxs(
3924
+ "div",
3925
+ {
3926
+ className: conversationId ? "cursor-pointer" : void 0,
3927
+ role: conversationId ? "button" : void 0,
3928
+ tabIndex: conversationId ? 0 : void 0,
3929
+ onClick: conversationId ? () => onOpen(conversationId) : void 0,
3930
+ onKeyDown: conversationId ? (e) => {
3931
+ if (e.key === "Enter" || e.key === " ") {
3932
+ e.preventDefault();
3933
+ onOpen(conversationId);
3934
+ }
3935
+ } : void 0,
3936
+ children: [
3937
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
3938
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate font-medium", children: arrival.name || arrival.doc_ext_id }),
3939
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Badge, { variant: "outline", "data-testid": `assistant-source-${id}`, children: labels.sources[arrival.source] ?? arrival.source }),
3940
+ arrival.is_backfill && /* @__PURE__ */ jsxRuntime.jsx(ui.Badge, { variant: "secondary", children: labels.backfill }),
3941
+ /* @__PURE__ */ jsxRuntime.jsxs(ui.Badge, { variant, "data-testid": `assistant-outcome-${id}`, children: [
3942
+ !outcome && arrival.working && /* @__PURE__ */ jsxRuntime.jsx(
3943
+ lucideReact.Loader2,
3944
+ {
3945
+ className: "mr-1 h-3 w-3 animate-spin",
3946
+ "aria-hidden": "true",
3947
+ "data-testid": `assistant-working-${id}`
3948
+ }
3949
+ ),
3950
+ chip
3951
+ ] })
3952
+ ] }),
3953
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-1 text-sm text-muted-foreground", children: [arrival.sender, new Date(arrival.created_at).toLocaleString()].filter(Boolean).join(" \xB7 ") })
3954
+ ]
3955
+ }
3956
+ ),
3957
+ /* @__PURE__ */ jsxRuntime.jsx(AssistantPlan, { arrival, labels, sameAsAbove }),
3958
+ arrival.reason && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-sm", children: arrival.reason }),
3959
+ arrival.last_error && arrival.status !== "done" && /* @__PURE__ */ jsxRuntime.jsx(
3960
+ "p",
3961
+ {
3962
+ className: "mt-1 truncate text-sm text-destructive",
3963
+ title: arrival.last_error,
3964
+ "data-testid": `assistant-error-${id}`,
3965
+ children: arrival.last_error
3966
+ }
3967
+ )
3968
+ ] }),
3969
+ arrival.marked_wrong ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 text-sm text-muted-foreground", children: labels.markedWrong }) : /* @__PURE__ */ jsxRuntime.jsx(
3970
+ ui.Button,
3971
+ {
3972
+ variant: "ghost",
3973
+ size: "sm",
3974
+ className: "shrink-0",
3975
+ disabled: wrongPending,
3976
+ "data-testid": `assistant-mark-wrong-${id}`,
3977
+ onClick: () => onWrong(id),
3978
+ children: labels.markWrong
3979
+ }
3980
+ )
3981
+ ] }),
3982
+ showDrafts && /* @__PURE__ */ jsxRuntime.jsx(AssistantDrafts, { arrival, labels, workspaceId })
3983
+ ] });
3984
+ }
3985
+ function ConnectedAssistantPage({
3986
+ labels: labelOverrides,
3987
+ workspaceId: workspaceProp
3988
+ }) {
3989
+ const labels = { ...DEFAULT_ASSISTANT_LABELS, ...labelOverrides };
3990
+ const { workspaceId: selected } = chunkJR2YSBD5_cjs.useConnectedWorkspace();
3991
+ const workspaceId = workspaceProp ?? selected;
3992
+ const { notify: notify19, openConversation } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
3993
+ const brief = react.useAssistantBrief(workspaceId);
3994
+ const arrivals = react.useAssistantArrivals(workspaceId);
3995
+ const update = react.useUpdateAssistantBrief();
3996
+ const markWrong = react.useMarkArrivalWrong(workspaceId);
3997
+ const grant = react.useGrantAgentAccess();
3998
+ const current = react.useCurrentWorkspace();
3999
+ const [draft, setDraft] = react$1.useState(null);
4000
+ const data = brief.data;
4001
+ const canGrant = !!data?.agent_ext_id && current.workspaceId === workspaceId && current.role === "owner";
4002
+ const text = draft?.text ?? data?.text ?? "";
4003
+ const active = draft?.active ?? data?.active ?? true;
4004
+ const cap = draft?.cap ?? data?.daily_cap ?? 50;
4005
+ const capValid = Number.isInteger(cap) && cap >= 1 && cap <= 500;
4006
+ const dirty = !!data && (text !== data.text || active !== data.active || cap !== data.daily_cap);
4007
+ const edit = (patch) => setDraft({ text, active, cap, ...patch });
4008
+ const save = () => {
4009
+ if (!workspaceId) return;
4010
+ update.mutate(
4011
+ { workspace_ext_id: workspaceId, text, active, daily_cap: cap },
4012
+ {
4013
+ onSuccess: () => {
4014
+ setDraft(null);
4015
+ notify19(labels.saved, "success");
4016
+ },
4017
+ onError: (err) => notify19(browser.refusalReason(err, labels.saveFailed), "error")
4018
+ }
4019
+ );
4020
+ };
4021
+ const wrong = (id) => markWrong.mutate(id, {
4022
+ onError: (err) => notify19(browser.refusalReason(err, labels.saveFailed), "error")
4023
+ });
4024
+ const giveAccess = () => {
4025
+ if (!workspaceId || !data?.agent_ext_id) return;
4026
+ grant.mutate(
4027
+ { agentExtId: data.agent_ext_id, workspaceId },
4028
+ {
4029
+ onSuccess: () => {
4030
+ void brief.refetch();
4031
+ notify19(labels.accessGranted, "success");
4032
+ },
4033
+ onError: (err) => notify19(browser.refusalReason(err, labels.grantAccessFailed), "error")
4034
+ }
4035
+ );
4036
+ };
4037
+ const inboxId = data?.inbox_conversation_ext_id;
4038
+ const items = [...arrivals.data ?? []].sort((a, b) => b.created_at.localeCompare(a.created_at));
4039
+ const leads = turnLeads(items);
4040
+ return /* @__PURE__ */ jsxRuntime.jsxs(
4041
+ "div",
4042
+ {
4043
+ className: "mx-auto w-full max-w-3xl space-y-6 overflow-y-auto p-6",
4044
+ "data-testid": "assistant-page",
4045
+ children: [
4046
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
4047
+ /* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-xl font-semibold", children: labels.title }),
4048
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-sm text-muted-foreground", children: labels.intro })
4049
+ ] }),
4050
+ brief.error && /* @__PURE__ */ jsxRuntime.jsx("p", { role: "alert", className: "text-sm text-destructive", children: browser.refusalReason(brief.error, labels.loadFailed) }),
4051
+ data && !data.agent_has_access && /* @__PURE__ */ jsxRuntime.jsxs(
4052
+ "div",
4053
+ {
4054
+ role: "alert",
4055
+ className: "flex flex-wrap items-center gap-3 rounded-md border border-amber-500/50 bg-amber-500/10 p-3 text-sm",
4056
+ "data-testid": "assistant-no-access",
4057
+ children: [
4058
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "min-w-0 flex-1", children: [
4059
+ labels.noAccess,
4060
+ !canGrant && !!current.workspace && ` ${labels.noAccessOwnerOnly}`
4061
+ ] }),
4062
+ canGrant && /* @__PURE__ */ jsxRuntime.jsxs(
4063
+ ui.Button,
4064
+ {
4065
+ size: "sm",
4066
+ disabled: grant.isPending,
4067
+ "data-testid": "assistant-grant-access",
4068
+ onClick: giveAccess,
4069
+ children: [
4070
+ grant.isPending && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "mr-1 h-3 w-3 animate-spin", "aria-hidden": "true" }),
4071
+ labels.grantAccess
4072
+ ]
4073
+ }
4074
+ )
4075
+ ]
4076
+ }
4077
+ ),
4078
+ data && /* @__PURE__ */ jsxRuntime.jsx(
4079
+ AssistantStatusPanel,
4080
+ {
4081
+ workspaceId,
4082
+ labels,
4083
+ onOpenThread: openConversation
4084
+ }
4085
+ ),
4086
+ /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "space-y-3", children: [
4087
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "assistant-brief-input", children: labels.briefLabel }),
4088
+ /* @__PURE__ */ jsxRuntime.jsx(
4089
+ ui.Textarea,
4090
+ {
4091
+ id: "assistant-brief-input",
4092
+ rows: 8,
4093
+ maxLength: 2e4,
4094
+ value: text,
4095
+ placeholder: labels.briefPlaceholder,
4096
+ disabled: !data,
4097
+ onChange: (e) => edit({ text: e.target.value }),
4098
+ "data-testid": "assistant-brief-input"
4099
+ }
4100
+ ),
4101
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-4", children: [
4102
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
4103
+ /* @__PURE__ */ jsxRuntime.jsx(
4104
+ ui.Switch,
4105
+ {
4106
+ id: "assistant-active-switch",
4107
+ checked: active,
4108
+ disabled: !data,
4109
+ onCheckedChange: (checked) => edit({ active: checked }),
4110
+ "data-testid": "assistant-active-switch"
4111
+ }
4112
+ ),
4113
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "assistant-active-switch", children: labels.activeLabel })
4114
+ ] }),
4115
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
4116
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "assistant-daily-cap-input", children: labels.dailyCapLabel }),
4117
+ /* @__PURE__ */ jsxRuntime.jsx(
4118
+ ui.Input,
4119
+ {
4120
+ id: "assistant-daily-cap-input",
4121
+ type: "number",
4122
+ min: 1,
4123
+ max: 500,
4124
+ className: "w-24",
4125
+ value: Number.isNaN(cap) ? "" : cap,
4126
+ disabled: !data,
4127
+ onChange: (e) => edit({ cap: e.target.valueAsNumber }),
4128
+ "data-testid": "assistant-daily-cap-input"
4129
+ }
4130
+ )
4131
+ ] }),
4132
+ /* @__PURE__ */ jsxRuntime.jsx(
4133
+ ui.Button,
4134
+ {
4135
+ onClick: save,
4136
+ disabled: !dirty || !capValid || update.isPending,
4137
+ "data-testid": "assistant-brief-save",
4138
+ children: labels.save
4139
+ }
4140
+ ),
4141
+ data && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-muted-foreground", "data-testid": "assistant-version", children: labels.version(data.version) }),
4142
+ inboxId && /* @__PURE__ */ jsxRuntime.jsx(
4143
+ ui.Button,
4144
+ {
4145
+ variant: "outline",
4146
+ onClick: () => openConversation(inboxId),
4147
+ "data-testid": "assistant-open-inbox",
4148
+ children: labels.openInbox
4149
+ }
4150
+ )
4151
+ ] })
4152
+ ] }),
4153
+ /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "space-y-2", children: [
4154
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-lg font-semibold", children: labels.activityTitle }),
4155
+ items.length === 0 && !arrivals.isPending ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: labels.activityEmpty }) : /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "space-y-2", "data-testid": "assistant-activity-list", children: items.map((arrival) => {
4156
+ const lead = arrival.response_id ? leads.get(arrival.response_id) : void 0;
4157
+ const later = !!lead && lead !== arrival;
4158
+ return /* @__PURE__ */ jsxRuntime.jsx(
4159
+ ActivityItem,
4160
+ {
4161
+ arrival,
4162
+ workspaceId,
4163
+ labels,
4164
+ onOpen: (id) => openConversation(id),
4165
+ onWrong: wrong,
4166
+ wrongPending: markWrong.isPending,
4167
+ sameAsAbove: later && sharesPlan(lead, arrival),
4168
+ showDrafts: !later
4169
+ },
4170
+ arrival.external_id
4171
+ );
4172
+ }) })
4173
+ ] })
4174
+ ]
4175
+ }
4176
+ );
4177
+ }
3430
4178
 
3431
4179
  // src/connection/files/review/reviewProgress.ts
3432
4180
  function reviewProgress(answered, empty, total) {
@@ -3761,9 +4509,9 @@ function GlossaryExport({ labelId, nameOf }) {
3761
4509
  const narrowed = agreements.find((a) => a.id === narrowTo);
3762
4510
  const title = narrowed ? `Glossary - ${narrowed.name}` : "Glossary";
3763
4511
  const download = (format) => {
3764
- const entries = chunkIZJ5L246_cjs.glossaryEntries(sources, { labelId: narrowed?.id });
3765
- const blob = format === "docx" ? new Blob([chunkIZJ5L246_cjs.glossaryDocx(entries, { title })], { type: chunkUKOYN2WD_cjs.DOCX_MIME_TYPE }) : new Blob([chunkIZJ5L246_cjs.glossaryMarkdown(entries, { title })], { type: "text/markdown" });
3766
- documentTools.downloadBlob(blob, chunkIZJ5L246_cjs.glossaryFileName(title, format));
4512
+ const entries = chunkKWHGYHRC_cjs.glossaryEntries(sources, { labelId: narrowed?.id });
4513
+ const blob = format === "docx" ? new Blob([chunkKWHGYHRC_cjs.glossaryDocx(entries, { title })], { type: chunkUKOYN2WD_cjs.DOCX_MIME_TYPE }) : new Blob([chunkKWHGYHRC_cjs.glossaryMarkdown(entries, { title })], { type: "text/markdown" });
4514
+ documentTools.downloadBlob(blob, chunkKWHGYHRC_cjs.glossaryFileName(title, format));
3767
4515
  };
3768
4516
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", "data-testid": "tags-glossary", children: [
3769
4517
  agreements.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
@@ -4292,7 +5040,7 @@ function KindSection({
4292
5040
  {
4293
5041
  testId: `tags-kind-${kind}`,
4294
5042
  title: ui.tagKindTitle(kind, { plural: true }),
4295
- description: chunkIZJ5L246_cjs.tagKindDescription(kind),
5043
+ description: chunkKWHGYHRC_cjs.tagKindDescription(kind),
4296
5044
  children: [
4297
5045
  browser.isEntityTag({ kind }) && extractingCount > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
4298
5046
  "p",
@@ -4302,9 +5050,9 @@ function KindSection({
4302
5050
  children: [
4303
5051
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-4 animate-spin" }),
4304
5052
  "Extracting ",
4305
- chunkIZJ5L246_cjs.entitiesPhrase().toLowerCase(),
5053
+ chunkKWHGYHRC_cjs.entitiesPhrase().toLowerCase(),
4306
5054
  " from ",
4307
- chunkIZJ5L246_cjs.documentCount(extractingCount),
5055
+ chunkKWHGYHRC_cjs.documentCount(extractingCount),
4308
5056
  "\u2026"
4309
5057
  ]
4310
5058
  }
@@ -4322,7 +5070,7 @@ function KindSection({
4322
5070
  onOpenTag: ctx.onOpenTag,
4323
5071
  onOpenRow: ctx.onOpenTag,
4324
5072
  onOpenTaggedItems: ctx.onOpenTaggedItems,
4325
- labels: chunkIZJ5L246_cjs.tagTableLabels(kind),
5073
+ labels: chunkKWHGYHRC_cjs.tagTableLabels(kind),
4326
5074
  testId: `tags-table-${kind}`
4327
5075
  }
4328
5076
  )
@@ -4430,15 +5178,15 @@ function TagSection({
4430
5178
  onOpenTag: ctx.onOpenTag,
4431
5179
  onOpenRow: ctx.onOpenTag,
4432
5180
  onOpenTaggedItems: ctx.onOpenTaggedItems,
4433
- labels: chunkIZJ5L246_cjs.tagTableLabels(tag.kind),
5181
+ labels: chunkKWHGYHRC_cjs.tagTableLabels(tag.kind),
4434
5182
  testId: "tags-rows"
4435
5183
  }
4436
5184
  ),
4437
5185
  /* @__PURE__ */ jsxRuntime.jsx(
4438
- chunkIZJ5L246_cjs.TagDetail,
5186
+ chunkKWHGYHRC_cjs.TagDetail,
4439
5187
  {
4440
5188
  onOpenTaggedItems: ctx.onOpenTaggedItems,
4441
- fieldLabels: chunkIZJ5L246_cjs.tagTableLabels(tag.kind),
5189
+ fieldLabels: chunkKWHGYHRC_cjs.tagTableLabels(tag.kind),
4442
5190
  row: detailRow,
4443
5191
  fields: schema.data?.fields ?? [],
4444
5192
  isLoading: detail.isLoading,
@@ -4452,7 +5200,7 @@ function TagSection({
4452
5200
  throw e;
4453
5201
  })
4454
5202
  ),
4455
- labels: chunkIZJ5L246_cjs.tagDetailLabels(),
5203
+ labels: chunkKWHGYHRC_cjs.tagDetailLabels(),
4456
5204
  testId: "tags-detail"
4457
5205
  }
4458
5206
  )
@@ -4527,7 +5275,7 @@ function ConnectedTagsPage() {
4527
5275
  const onDelete = async (t) => {
4528
5276
  const nested = browser.getChildTags([...tags], t.external_id);
4529
5277
  const uses = browser.tagUseCount(t);
4530
- const n2 = chunkIZJ5L246_cjs.tagsPageNouns();
5278
+ const n2 = chunkKWHGYHRC_cjs.tagsPageNouns();
4531
5279
  const tagNoun = (count2) => (count2 === 1 ? n2.tag : n2.tags).toLowerCase();
4532
5280
  const carriers = uses === 1 ? `${n2.document}, ${n2.fact} or ${n2.thread}` : `${n2.documents}, ${n2.facts} and ${n2.threads}`;
4533
5281
  const message = `Delete ${ui.tagKindNouns(t.kind).singular} "${t.name}"?` + (uses > 0 ? `
@@ -4548,11 +5296,11 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
4548
5296
  try {
4549
5297
  await extract.mutateAsync(docIds);
4550
5298
  notify19(
4551
- `Extracting ${chunkIZJ5L246_cjs.entitiesPhrase().toLowerCase()} from ${chunkIZJ5L246_cjs.documentCount(docIds.length)}. You will be notified when it is done.`,
5299
+ `Extracting ${chunkKWHGYHRC_cjs.entitiesPhrase().toLowerCase()} from ${chunkKWHGYHRC_cjs.documentCount(docIds.length)}. You will be notified when it is done.`,
4552
5300
  "info"
4553
5301
  );
4554
5302
  } catch (error) {
4555
- notify19(browser.refusalReason(error, `Could not extract ${chunkIZJ5L246_cjs.entitiesPhrase().toLowerCase()}`), "error");
5303
+ notify19(browser.refusalReason(error, `Could not extract ${chunkKWHGYHRC_cjs.entitiesPhrase().toLowerCase()}`), "error");
4556
5304
  throw error;
4557
5305
  }
4558
5306
  };
@@ -4566,10 +5314,10 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
4566
5314
  onOpenTag: openTag,
4567
5315
  onOpenTaggedItems
4568
5316
  };
4569
- const n = chunkIZJ5L246_cjs.tagsPageNouns();
5317
+ const n = chunkKWHGYHRC_cjs.tagsPageNouns();
4570
5318
  const action = view === "person" || view === "organisation" ? {
4571
5319
  label: "Extract",
4572
- title: `Extract ${chunkIZJ5L246_cjs.entitiesPhrase().toLowerCase()} from ${n.documents.toLowerCase()}`,
5320
+ title: `Extract ${chunkKWHGYHRC_cjs.entitiesPhrase().toLowerCase()} from ${n.documents.toLowerCase()}`,
4573
5321
  icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { className: "h-4 w-4" }),
4574
5322
  run: () => setExtracting(true),
4575
5323
  testId: "tags-extract-entities"
@@ -4738,7 +5486,7 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
4738
5486
  }
4739
5487
  ),
4740
5488
  /* @__PURE__ */ jsxRuntime.jsx(
4741
- chunkIZJ5L246_cjs.ExtractEntitiesDialog,
5489
+ chunkKWHGYHRC_cjs.ExtractEntitiesDialog,
4742
5490
  {
4743
5491
  open: extracting,
4744
5492
  onOpenChange: setExtracting,
@@ -7740,7 +8488,7 @@ function ConnectedFactsPage() {
7740
8488
  onNewFact: composing && !editingId ? () => void 0 : composer.startNewFact,
7741
8489
  navSlotRef: setNavSlot,
7742
8490
  navigator: view === "table" ? /* @__PURE__ */ jsxRuntime.jsx(
7743
- chunkIZJ5L246_cjs.GridRowNavigator,
8491
+ chunkKWHGYHRC_cjs.GridRowNavigator,
7744
8492
  {
7745
8493
  gridApi,
7746
8494
  selectedId: editingId,
@@ -8017,7 +8765,7 @@ function useConnectedShellWorkspaces(options = {}) {
8017
8765
  function ConnectedSsoDisconnect() {
8018
8766
  const { client } = react.useAccountClient();
8019
8767
  const { data: profile } = react.useProfile();
8020
- const auth = chunkIWMHQTVL_cjs.useAuthPages();
8768
+ const auth = chunkMI3N3ZOT_cjs.useAuthPages();
8021
8769
  const { notify: notify19 } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
8022
8770
  const [open, setOpen] = react$1.useState(false);
8023
8771
  const [step, setStep] = react$1.useState("email");
@@ -8195,14 +8943,14 @@ function ConnectedAccountSettings({
8195
8943
  }) {
8196
8944
  const [logoutOpen, setLogoutOpen] = react$1.useState(false);
8197
8945
  return /* @__PURE__ */ jsxRuntime.jsxs(chunkQQMMCXBP_cjs.SettingsPanel, { className: "max-w-2xl", children: [
8198
- /* @__PURE__ */ jsxRuntime.jsx(chunkIWMHQTVL_cjs.ConnectedProfileCard, { avatarClassName, nameBadge: profileBadge }),
8946
+ /* @__PURE__ */ jsxRuntime.jsx(chunkMI3N3ZOT_cjs.ConnectedProfileCard, { avatarClassName, nameBadge: profileBadge }),
8199
8947
  /* @__PURE__ */ jsxRuntime.jsx(ConnectedBoxPortalSection, {}),
8200
8948
  /* @__PURE__ */ jsxRuntime.jsxs(chunkQQMMCXBP_cjs.SettingsDisclosure, { title: "More", testId: "account-more-settings", children: [
8201
8949
  /* @__PURE__ */ jsxRuntime.jsx(ConnectedSsoDisconnect, {}),
8202
- /* @__PURE__ */ jsxRuntime.jsx(chunkIWMHQTVL_cjs.ConnectedSecuritySection, { children: securityRows }),
8950
+ /* @__PURE__ */ jsxRuntime.jsx(chunkMI3N3ZOT_cjs.ConnectedSecuritySection, { children: securityRows }),
8203
8951
  moreSettings,
8204
8952
  /* @__PURE__ */ jsxRuntime.jsx(
8205
- chunkIWMHQTVL_cjs.ConnectedIdentityVerification,
8953
+ chunkMI3N3ZOT_cjs.ConnectedIdentityVerification,
8206
8954
  {
8207
8955
  collapsible: true,
8208
8956
  onManageBilling,
@@ -8212,7 +8960,7 @@ function ConnectedAccountSettings({
8212
8960
  ] }),
8213
8961
  /* @__PURE__ */ jsxRuntime.jsx(chunkQQMMCXBP_cjs.SettingsSection, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Wifi, {}), title: "Session", children: /* @__PURE__ */ jsxRuntime.jsxs(chunkQQMMCXBP_cjs.SettingsCard, { children: [
8214
8962
  connection && /* @__PURE__ */ jsxRuntime.jsx(ServerConnectionRow, { ...connection }),
8215
- /* @__PURE__ */ jsxRuntime.jsx(chunkIWMHQTVL_cjs.ConnectedSessionsRow, { renderSessionIcon }),
8963
+ /* @__PURE__ */ jsxRuntime.jsx(chunkMI3N3ZOT_cjs.ConnectedSessionsRow, { renderSessionIcon }),
8216
8964
  /* @__PURE__ */ jsxRuntime.jsx(chunkQQMMCXBP_cjs.SettingsRow, { label: "Logout", description: "Sign out of your account on this device.", children: /* @__PURE__ */ jsxRuntime.jsxs(
8217
8965
  ui.Button,
8218
8966
  {
@@ -8229,9 +8977,9 @@ function ConnectedAccountSettings({
8229
8977
  }
8230
8978
  ) })
8231
8979
  ] }) }),
8232
- /* @__PURE__ */ jsxRuntime.jsx(chunkIWMHQTVL_cjs.ConnectedDangerZone, { renderSubscriptionLink }),
8980
+ /* @__PURE__ */ jsxRuntime.jsx(chunkMI3N3ZOT_cjs.ConnectedDangerZone, { renderSubscriptionLink }),
8233
8981
  !onLogout && /* @__PURE__ */ jsxRuntime.jsx(
8234
- chunkIWMHQTVL_cjs.ConnectedLogoutDialog,
8982
+ chunkMI3N3ZOT_cjs.ConnectedLogoutDialog,
8235
8983
  {
8236
8984
  open: logoutOpen,
8237
8985
  onClose: () => setLogoutOpen(false),
@@ -8574,7 +9322,7 @@ function ConnectedPrivacySettings({
8574
9322
  }
8575
9323
  )
8576
9324
  ] }) }),
8577
- /* @__PURE__ */ jsxRuntime.jsx(chunkIWMHQTVL_cjs.ConnectedNotificationPreferences, {})
9325
+ /* @__PURE__ */ jsxRuntime.jsx(chunkMI3N3ZOT_cjs.ConnectedNotificationPreferences, {})
8578
9326
  ] });
8579
9327
  }
8580
9328
  var PROVIDER_NAMES = {
@@ -10381,7 +11129,7 @@ function CallsRow({ row: row2 }) {
10381
11129
  }
10382
11130
  function ConnectedAccountAccessBadge() {
10383
11131
  const { data: user } = react.useCurrentUser();
10384
- const status = !user ? null : user.is_deployment_admin || user.user_type === "admin" ? ["Deployment administrator", "You can manage users and deployment settings."] : chunkUFT22LAB_cjs.isExternalAccount(user) ? [
11132
+ const status = !user ? null : user.is_deployment_admin || user.user_type === "admin" ? ["Deployment administrator", "You can manage users and deployment settings."] : chunkHBUHOCWF_cjs.isExternalAccount(user) ? [
10385
11133
  "External user",
10386
11134
  "Temporary access to shared workspaces. Ask an owner to renew access after it expires."
10387
11135
  ] : user.user_type === "manager" ? [
@@ -10570,7 +11318,7 @@ function ConnectedRecoveryKeyDialog({
10570
11318
  const arbi = react.useArbi();
10571
11319
  const { user, isSso: isSsoMode } = react.useArbiSession();
10572
11320
  const userEmail = user?.email;
10573
- const sso = chunkIWMHQTVL_cjs.useSsoSignIn();
11321
+ const sso = chunkMI3N3ZOT_cjs.useSsoSignIn();
10574
11322
  const handleVerify = async () => {
10575
11323
  setError(null);
10576
11324
  if (!password) {
@@ -10731,7 +11479,7 @@ function ConnectedRemoteControlSwitch() {
10731
11479
  }
10732
11480
  function RemoteControlSwitch() {
10733
11481
  const enabled = react.useRemoteControl((state) => state.enabled);
10734
- const remote = chunkIWMHQTVL_cjs.useRemoteControlActions();
11482
+ const remote = chunkMI3N3ZOT_cjs.useRemoteControlActions();
10735
11483
  return /* @__PURE__ */ jsxRuntime.jsx(
10736
11484
  chunkQQMMCXBP_cjs.SettingsRow,
10737
11485
  {
@@ -10753,7 +11501,7 @@ function RemoteControlSwitch() {
10753
11501
  );
10754
11502
  }
10755
11503
  var JUST_CONNECTED_VIEW = "settings.justConnected";
10756
- var identityFeeLabel = (status) => `${chunkE3L5DB5F_cjs.formatMoney(status.price_pence, status.currency.toLowerCase())} incl. VAT`;
11504
+ var identityFeeLabel = (status) => `${chunkGEZB3OEC_cjs.formatMoney(status.price_pence, status.currency.toLowerCase())} incl. VAT`;
10757
11505
  var openLogout = () => chunkJDFBEGQO_cjs.openDialog("logout");
10758
11506
  function RecoveryKeyRow() {
10759
11507
  const [open, setOpen] = react$1.useState(false);
@@ -11074,14 +11822,14 @@ function usePaidWorkspaceMembers() {
11074
11822
  try {
11075
11823
  return await mutation.mutateAsync(...args);
11076
11824
  } catch (error) {
11077
- const detail = chunkE3L5DB5F_cjs.apiErrorDetail(error);
11825
+ const detail = chunkGEZB3OEC_cjs.apiErrorDetail(error);
11078
11826
  if (detail?.code !== "COLLABORATOR_CAPACITY_REQUIRED" || !detail.can_buy || !arbi || !detail.project_ext_id || !detail.blocks_required || !detail.block_size)
11079
11827
  throw error;
11080
11828
  const project = detail.project_ext_id;
11081
11829
  const quote = await arbi.projects.quoteAddon(project, "collaborators");
11082
11830
  const count2 = detail.blocks_required;
11083
- const today = chunkE3L5DB5F_cjs.formatMoney(quote.now.total_pence * count2, "gbp");
11084
- const renewal = chunkE3L5DB5F_cjs.formatMoney(quote.renewal.total_pence * count2, "gbp");
11831
+ const today = chunkGEZB3OEC_cjs.formatMoney(quote.now.total_pence * count2, "gbp");
11832
+ const renewal = chunkGEZB3OEC_cjs.formatMoney(quote.renewal.total_pence * count2, "gbp");
11085
11833
  const confirmed = await confirm({
11086
11834
  title: "More collaborator places needed",
11087
11835
  message: `This invitation exceeds your ${detail.limit}-collaborator allowance. Add ${count2 * detail.block_size} places for ${today} today, including tax, then ${renewal} per ${detail.interval === "year" ? "year" : "month"} until removed? You are not counted.`,
@@ -11934,7 +12682,7 @@ function ConnectedProjectEntity({
11934
12682
  subscription = "none",
11935
12683
  ...props
11936
12684
  }) {
11937
- const { stripeEnabled } = chunkE3L5DB5F_cjs.useBillingSupport();
12685
+ const { stripeEnabled } = chunkGEZB3OEC_cjs.useBillingSupport();
11938
12686
  return /* @__PURE__ */ jsxRuntime.jsx(
11939
12687
  ui.ProjectEntity,
11940
12688
  {
@@ -12029,7 +12777,7 @@ function StripeCheckoutModal({
12029
12777
  const [clientSecret, setClientSecret] = react$1.useState(null);
12030
12778
  const [isCreating, setIsCreating] = react$1.useState(false);
12031
12779
  const [stripe, setStripe] = react$1.useState(null);
12032
- const { stripeEnabled, checkout } = chunkE3L5DB5F_cjs.useBillingSupport();
12780
+ const { stripeEnabled, checkout } = chunkGEZB3OEC_cjs.useBillingSupport();
12033
12781
  const createCheckout = react.useCreateProjectCheckout();
12034
12782
  const refreshProject = react.useRefreshProject();
12035
12783
  const invalidateProjects = react.useInvalidateProjects();
@@ -12058,7 +12806,7 @@ function StripeCheckoutModal({
12058
12806
  projectExtId,
12059
12807
  body: {
12060
12808
  interval,
12061
- packs: chunkE3L5DB5F_cjs.PRO_PACKS,
12809
+ packs: chunkGEZB3OEC_cjs.PRO_PACKS,
12062
12810
  ai_blocks: aiBlocks,
12063
12811
  storage_blocks: storageBlocks,
12064
12812
  collaborator_blocks: collaboratorBlocks,
@@ -12075,7 +12823,7 @@ function StripeCheckoutModal({
12075
12823
  },
12076
12824
  onError: (error) => {
12077
12825
  console.error("Failed to create checkout session:", error);
12078
- const reason = chunkE3L5DB5F_cjs.apiErrorDetail(error)?.message;
12826
+ const reason = chunkGEZB3OEC_cjs.apiErrorDetail(error)?.message;
12079
12827
  shell.notify.error(
12080
12828
  reason ? `Checkout didn't start: ${reason}` : "Checkout didn't start. Try again."
12081
12829
  );
@@ -12109,7 +12857,7 @@ function StripeCheckoutModal({
12109
12857
  }
12110
12858
  }, [open]);
12111
12859
  const isStripeConfigured = stripeEnabled;
12112
- const vatNote = quote ? `${chunkE3L5DB5F_cjs.checkoutItemsLabel(aiBlocks, storageBlocks, collaboratorBlocks, price)} \xB7 ${chunkE3L5DB5F_cjs.quoteTotalLine(quote)}` : null;
12860
+ const vatNote = quote ? `${chunkGEZB3OEC_cjs.checkoutItemsLabel(aiBlocks, storageBlocks, collaboratorBlocks, price)} \xB7 ${chunkGEZB3OEC_cjs.quoteTotalLine(quote)}` : null;
12113
12861
  return /* @__PURE__ */ jsxRuntime.jsx(
12114
12862
  chunkT73BHNQX_cjs.CheckoutDialogFrame,
12115
12863
  {
@@ -12134,7 +12882,7 @@ function MonthlySpendCap({
12134
12882
  value,
12135
12883
  minimum,
12136
12884
  maximum,
12137
- stepPence = 2500,
12885
+ stepPence = 2e3,
12138
12886
  onChange,
12139
12887
  inputRef,
12140
12888
  testId = "spend-cap-input",
@@ -12145,7 +12893,7 @@ function MonthlySpendCap({
12145
12893
  const min = Math.ceil(minimum / 100 / step) * step;
12146
12894
  const max = Math.max(Math.floor((maximum ?? 5e4) / 100 / step) * step, min);
12147
12895
  const pounds = Math.max(min, Math.min(max, Math.floor(value / stepPence) * step));
12148
- const money = (n) => chunkE3L5DB5F_cjs.formatMoney(n, "gbp");
12896
+ const money = (n) => chunkGEZB3OEC_cjs.formatMoney(n, "gbp");
12149
12897
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full space-y-2", children: [
12150
12898
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-baseline justify-between gap-4", children: [
12151
12899
  /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: id, children: "Auto-upgrade limit" }),
@@ -12202,7 +12950,7 @@ function applyReferralReward(totalCents, reward, priceCurrency) {
12202
12950
  };
12203
12951
  }
12204
12952
  function purchaseNet(price, ai, storage, collaborators) {
12205
- const base = chunkE3L5DB5F_cjs.packPrice(price)?.amount_ex_vat ?? price?.amount_ex_vat;
12953
+ const base = chunkGEZB3OEC_cjs.packPrice(price)?.amount_ex_vat ?? price?.amount_ex_vat;
12206
12954
  if (base == null) return null;
12207
12955
  let total = base;
12208
12956
  for (const [kind, count2] of [
@@ -12231,8 +12979,8 @@ function ProjectPurchaseOptions({
12231
12979
  onChoose
12232
12980
  }) {
12233
12981
  const [spendCap, setSpendCap] = react$1.useState(null);
12234
- const reward = chunkE3L5DB5F_cjs.useRewardBalance();
12235
- const prices = chunkE3L5DB5F_cjs.findProPrices(products);
12982
+ const reward = chunkGEZB3OEC_cjs.useRewardBalance();
12983
+ const prices = chunkGEZB3OEC_cjs.findProPrices(products);
12236
12984
  const monthlyNet = purchaseNet(prices.monthly, aiBlocks, storageBlocks, collaboratorBlocks);
12237
12985
  const annualNet = purchaseNet(prices.annual, aiBlocks, storageBlocks, collaboratorBlocks);
12238
12986
  const extras = { ai_usage: aiBlocks, storage: storageBlocks, collaborators: collaboratorBlocks };
@@ -12246,12 +12994,12 @@ function ProjectPurchaseOptions({
12246
12994
  );
12247
12995
  const product = products?.[0];
12248
12996
  const currency = prices.monthly?.currency ?? prices.annual?.currency ?? "gbp";
12249
- const money = (pence) => chunkE3L5DB5F_cjs.formatMoney(pence, currency);
12250
- const ai = (product?.included_ai_gbp ?? 0) + aiBlocks * (chunkE3L5DB5F_cjs.addonPrice(prices.monthly, "ai_usage")?.ai_gbp ?? 0);
12251
- const storage = (product?.included_storage_gb ?? 0) + storageBlocks * (chunkE3L5DB5F_cjs.addonPrice(prices.monthly, "storage")?.storage_gb ?? 0);
12997
+ const money = (pence) => chunkGEZB3OEC_cjs.formatMoney(pence, currency);
12998
+ const ai = (product?.included_ai_gbp ?? 0) + aiBlocks * (chunkGEZB3OEC_cjs.addonPrice(prices.monthly, "ai_usage")?.ai_gbp ?? 0);
12999
+ const storage = (product?.included_storage_gb ?? 0) + storageBlocks * (chunkGEZB3OEC_cjs.addonPrice(prices.monthly, "storage")?.storage_gb ?? 0);
12252
13000
  const collaborators = (product?.included_collaborators ?? 0) + collaboratorBlocks * (prices.monthly?.addon_prices?.find((p) => p.kind === "collaborators")?.collaborators ?? 0);
12253
13001
  const saving = monthlyNet && annualNet != null ? Math.max(0, Math.round(100 * (1 - annualNet / (monthlyNet * 12)))) : 0;
12254
- const stepPence = product?.spend_cap_step_pence ?? 2500;
13002
+ const stepPence = product?.spend_cap_step_pence ?? 2e3;
12255
13003
  const defaultCap = product?.default_spend_cap_pence ?? 1e4;
12256
13004
  const maximumCap = product?.maximum_spend_cap_pence ?? 5e4;
12257
13005
  const cap = Math.max(
@@ -12289,7 +13037,7 @@ function ProjectPurchaseOptions({
12289
13037
  size: "icon",
12290
13038
  variant: "outline",
12291
13039
  "aria-label": `Add ${label}`,
12292
- disabled: busy || !available || count2 >= chunkE3L5DB5F_cjs.MAX_CHECKOUT_BLOCKS,
13040
+ disabled: busy || !available || count2 >= chunkGEZB3OEC_cjs.MAX_CHECKOUT_BLOCKS,
12293
13041
  onClick: () => onChange(count2 + 1),
12294
13042
  "data-testid": `checkout-${kind}-blocks-increment`,
12295
13043
  children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { size: 14, "aria-hidden": "true" })
@@ -12307,7 +13055,7 @@ function ProjectPurchaseOptions({
12307
13055
  aiBlocks,
12308
13056
  onAiBlocksChange,
12309
13057
  "AI credits",
12310
- !!chunkE3L5DB5F_cjs.addonPrice(prices.monthly, "ai_usage")
13058
+ !!chunkGEZB3OEC_cjs.addonPrice(prices.monthly, "ai_usage")
12311
13059
  )
12312
13060
  ] }),
12313
13061
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
@@ -12329,7 +13077,7 @@ function ProjectPurchaseOptions({
12329
13077
  storageBlocks,
12330
13078
  onStorageBlocksChange,
12331
13079
  "storage",
12332
- !!chunkE3L5DB5F_cjs.addonPrice(prices.monthly, "storage")
13080
+ !!chunkGEZB3OEC_cjs.addonPrice(prices.monthly, "storage")
12333
13081
  )
12334
13082
  ] }),
12335
13083
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
@@ -12437,7 +13185,7 @@ function refusal(what, next) {
12437
13185
  return `${sentence(what)}. Nothing was charged. ${sentence(next)}.`;
12438
13186
  }
12439
13187
  function createProjectErrorMessage(error, fallback = `Failed to create ${ui.entityNoun("PROJECT")}`) {
12440
- const detail = chunkE3L5DB5F_cjs.apiErrorDetail(error);
13188
+ const detail = chunkGEZB3OEC_cjs.apiErrorDetail(error);
12441
13189
  if (typeof detail === "string" && detail) return detail;
12442
13190
  const message = detail?.message;
12443
13191
  return typeof message === "string" && message ? message : fallback;
@@ -12456,7 +13204,7 @@ function NewProjectFlow({ open, onOpenChange, defaultName }) {
12456
13204
  const [checkoutQuote, setCheckoutQuote] = react$1.useState();
12457
13205
  const paymentCompleted = react$1.useRef(false);
12458
13206
  const attempt = react$1.useRef(0);
12459
- const { stripeEnabled } = chunkE3L5DB5F_cjs.useBillingSupport();
13207
+ const { stripeEnabled } = chunkGEZB3OEC_cjs.useBillingSupport();
12460
13208
  const { data: products, isLoading: productsLoading } = react.useProducts({ enabled: stripeEnabled });
12461
13209
  const createProject = react.useCreateProject();
12462
13210
  const deleteProject = react.useDeleteProject();
@@ -12496,7 +13244,7 @@ function NewProjectFlow({ open, onOpenChange, defaultName }) {
12496
13244
  {
12497
13245
  name: projectName.trim(),
12498
13246
  plan: stripeEnabled ? "pro" : "free",
12499
- daily_cap_per_user: chunkE3L5DB5F_cjs.SUGGESTED_DAILY_CAP_PER_USER
13247
+ daily_cap_per_user: chunkGEZB3OEC_cjs.SUGGESTED_DAILY_CAP_PER_USER
12500
13248
  },
12501
13249
  {
12502
13250
  onSuccess: (project) => {
@@ -12585,7 +13333,7 @@ function NewProjectFlow({ open, onOpenChange, defaultName }) {
12585
13333
  checkoutProject && /* @__PURE__ */ jsxRuntime.jsx(
12586
13334
  StripeCheckoutModal,
12587
13335
  {
12588
- price: chunkE3L5DB5F_cjs.findProPrices(products)[checkoutInterval === "year" ? "annual" : "monthly"],
13336
+ price: chunkGEZB3OEC_cjs.findProPrices(products)[checkoutInterval === "year" ? "annual" : "monthly"],
12589
13337
  projectExtId: checkoutProject.id,
12590
13338
  interval: checkoutInterval,
12591
13339
  addonBudgetPence: checkoutBudget,
@@ -12617,7 +13365,7 @@ function ConnectedProjectSelector({
12617
13365
  readOnly,
12618
13366
  className
12619
13367
  }) {
12620
- const { stripeEnabled } = chunkE3L5DB5F_cjs.useBillingSupport();
13368
+ const { stripeEnabled } = chunkGEZB3OEC_cjs.useBillingSupport();
12621
13369
  return /* @__PURE__ */ jsxRuntime.jsx(
12622
13370
  chunkYZ6YOOTF_cjs.ProjectPicker,
12623
13371
  {
@@ -12761,13 +13509,13 @@ function ConnectedWorkspaceSettings({
12761
13509
  const [membersExpanded, setMembersExpanded] = react$1.useState(false);
12762
13510
  const [shareOpen, setShareOpen] = react$1.useState(false);
12763
13511
  if (!workspace) {
12764
- return /* @__PURE__ */ jsxRuntime.jsx(chunkCMGNRMPA_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkIZJ5L246_cjs.LoadingIndicator, { message: "Loading workspace..." }) });
13512
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkCMGNRMPA_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkKWHGYHRC_cjs.LoadingIndicator, { message: "Loading workspace..." }) });
12765
13513
  }
12766
13514
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
12767
13515
  /* @__PURE__ */ jsxRuntime.jsxs(chunkCMGNRMPA_cjs.WorkspacePageFrame, { testId, children: [
12768
13516
  /* @__PURE__ */ jsxRuntime.jsxs(chunkCMGNRMPA_cjs.WorkspaceIdentityPanel, { children: [
12769
13517
  /* @__PURE__ */ jsxRuntime.jsx(
12770
- chunkIZJ5L246_cjs.EntityIdentityBar,
13518
+ chunkKWHGYHRC_cjs.EntityIdentityBar,
12771
13519
  {
12772
13520
  testId: "workspace-identity-bar",
12773
13521
  canEdit: isOwner,
@@ -12784,7 +13532,7 @@ function ConnectedWorkspaceSettings({
12784
13532
  label: "Name",
12785
13533
  value: workspace.name,
12786
13534
  placeholder: "Untitled",
12787
- maxLength: chunkIZJ5L246_cjs.IDENTITY_NAME_MAX_LENGTH,
13535
+ maxLength: chunkKWHGYHRC_cjs.IDENTITY_NAME_MAX_LENGTH,
12788
13536
  valueClassName: "truncate text-base font-semibold",
12789
13537
  testId: "workspace-home-title",
12790
13538
  hideLabel: true,
@@ -14469,36 +15217,36 @@ function ConnectedSharePointAdminConsentPage({
14469
15217
  const result = givenResult === void 0 ? queryResult : givenResult;
14470
15218
  const { apiBaseUrl } = chunkTKHCIHE2_cjs.useBlocksEnvironment().runtimeConfig;
14471
15219
  const consentUrl = `${apiBaseUrl}/v1/connectors/microsoft_sharepoint/admin-consent`;
14472
- return /* @__PURE__ */ jsxRuntime.jsx(chunkCQQQIZU4_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkCQQQIZU4_cjs.ConsentCard, { size: "md", children: [
15220
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkOD6NGGL3_cjs.ConsentCard, { size: "md", children: [
14473
15221
  /* @__PURE__ */ jsxRuntime.jsx(
14474
- chunkCQQQIZU4_cjs.ConsentHeader,
15222
+ chunkOD6NGGL3_cjs.ConsentHeader,
14475
15223
  {
14476
15224
  icon: /* @__PURE__ */ jsxRuntime.jsx(chunkALK3PUUB_cjs.VendorLogo, { vendorKey: "microsoft_sharepoint", product: "sharepoint" }),
14477
15225
  title: "Approve ARBI for SharePoint access",
14478
15226
  children: "A member of your organization uses ARBI and wants to sync documents from SharePoint. Your Microsoft 365 organization requires an administrator to approve this once for the whole organization."
14479
15227
  }
14480
15228
  ),
14481
- result === "granted" && /* @__PURE__ */ jsxRuntime.jsx(chunkCQQQIZU4_cjs.ConsentNotice, { tone: "success", title: "Access approved \u2014 you\u2019re all set.", className: "mt-4", children: "People in your organization can now connect SharePoint from their own ARBI account. Nothing is synced until each user connects and chooses what to import." }),
14482
- result === "declined" && /* @__PURE__ */ jsxRuntime.jsx(chunkCQQQIZU4_cjs.ConsentNotice, { tone: "warning", title: "The approval didn\u2019t complete.", className: "mt-4", children: "The request was declined or canceled on the Microsoft screen. You can try again below \u2014 you must sign in with a Microsoft 365 administrator account of your organization." }),
14483
- /* @__PURE__ */ jsxRuntime.jsxs(chunkCQQQIZU4_cjs.ConsentSection, { title: "What you are approving", children: [
15229
+ result === "granted" && /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentNotice, { tone: "success", title: "Access approved \u2014 you\u2019re all set.", className: "mt-4", children: "People in your organization can now connect SharePoint from their own ARBI account. Nothing is synced until each user connects and chooses what to import." }),
15230
+ result === "declined" && /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentNotice, { tone: "warning", title: "The approval didn\u2019t complete.", className: "mt-4", children: "The request was declined or canceled on the Microsoft screen. You can try again below \u2014 you must sign in with a Microsoft 365 administrator account of your organization." }),
15231
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkOD6NGGL3_cjs.ConsentSection, { title: "What you are approving", children: [
14484
15232
  /* @__PURE__ */ jsxRuntime.jsx(
14485
- chunkCQQQIZU4_cjs.ConsentBulletList,
15233
+ chunkOD6NGGL3_cjs.ConsentBulletList,
14486
15234
  {
14487
15235
  items: [
14488
15236
  /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
14489
- /* @__PURE__ */ jsxRuntime.jsx(chunkCQQQIZU4_cjs.ConsentStrong, { children: "Read SharePoint sites and files" }),
15237
+ /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentStrong, { children: "Read SharePoint sites and files" }),
14490
15238
  " \u2014 lets each user who connects their own account import documents from sites they already have access to. ARBI never gets more access than the user has."
14491
15239
  ] }),
14492
15240
  /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
14493
- /* @__PURE__ */ jsxRuntime.jsx(chunkCQQQIZU4_cjs.ConsentStrong, { children: "Sign users in and keep access" }),
15241
+ /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentStrong, { children: "Sign users in and keep access" }),
14494
15242
  " \u2014 standard sign-in (openid, profile, email) and offline access so syncs keep working between sessions."
14495
15243
  ] })
14496
15244
  ]
14497
15245
  }
14498
15246
  ),
14499
- /* @__PURE__ */ jsxRuntime.jsx(chunkCQQQIZU4_cjs.ConsentText, { children: "Approving does not sync anything by itself and grants ARBI no standing access to your tenant. Each user still connects their own Microsoft account, and their tokens are end-to-end encrypted so ARBI\u2019s servers cannot read them at rest." }),
15247
+ /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentText, { children: "Approving does not sync anything by itself and grants ARBI no standing access to your tenant. Each user still connects their own Microsoft account, and their tokens are end-to-end encrypted so ARBI\u2019s servers cannot read them at rest." }),
14500
15248
  /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { asChild: true, className: "w-full pointer-coarse:h-11", children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: consentUrl, children: "Review and approve in Microsoft" }) }),
14501
- /* @__PURE__ */ jsxRuntime.jsx(chunkCQQQIZU4_cjs.ConsentText, { variant: "footnote", children: "You\u2019ll sign in at login.microsoftonline.com and see Microsoft\u2019s own summary of these permissions before anything is granted." })
15249
+ /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentText, { variant: "footnote", children: "You\u2019ll sign in at login.microsoftonline.com and see Microsoft\u2019s own summary of these permissions before anything is granted." })
14502
15250
  ] })
14503
15251
  ] }) });
14504
15252
  }
@@ -14539,8 +15287,8 @@ function InvoicesModal({
14539
15287
  key: inv.number ?? String(i),
14540
15288
  date: formatInvoiceDate(inv.date),
14541
15289
  kind: KIND_LABELS2[inv.kind],
14542
- amount: chunkE3L5DB5F_cjs.formatMoney(inv.amount, inv.currency),
14543
- amountNote: inv.amount_ex_vat != null && inv.amount_ex_vat !== inv.amount ? `${chunkE3L5DB5F_cjs.formatMoney(inv.amount_ex_vat, inv.currency)} ex VAT` : void 0,
15290
+ amount: chunkGEZB3OEC_cjs.formatMoney(inv.amount, inv.currency),
15291
+ amountNote: inv.amount_ex_vat != null && inv.amount_ex_vat !== inv.amount ? `${chunkGEZB3OEC_cjs.formatMoney(inv.amount_ex_vat, inv.currency)} ex VAT` : void 0,
14544
15292
  status: inv.status,
14545
15293
  isPaid: isPaid2,
14546
15294
  href: inv.hosted_invoice_url ?? inv.url ?? inv.pdf_url ?? void 0,
@@ -14592,7 +15340,7 @@ function SubscriptionPlans({ projectExtId, onDismiss }) {
14592
15340
  checkout && /* @__PURE__ */ jsxRuntime.jsx(
14593
15341
  StripeCheckoutModal,
14594
15342
  {
14595
- price: chunkE3L5DB5F_cjs.findProPrices(products)[checkout.interval === "year" ? "annual" : "monthly"],
15343
+ price: chunkGEZB3OEC_cjs.findProPrices(products)[checkout.interval === "year" ? "annual" : "monthly"],
14596
15344
  projectExtId,
14597
15345
  interval: checkout.interval,
14598
15346
  addonBudgetPence: checkout.capPence,
@@ -14639,7 +15387,7 @@ var FALLBACK_MESSAGES = {
14639
15387
  BILLING_ADDRESS_REQUIRED: "Add a billing address first."
14640
15388
  };
14641
15389
  function addonErrorMessage(error) {
14642
- const detail = chunkE3L5DB5F_cjs.apiErrorDetail(error);
15390
+ const detail = chunkGEZB3OEC_cjs.apiErrorDetail(error);
14643
15391
  if (detail && typeof detail === "object") {
14644
15392
  const { code, message } = detail;
14645
15393
  if (message) return message;
@@ -14665,14 +15413,14 @@ function chargeRefusalMessage(error) {
14665
15413
  return code ? REFUSALS[code] : null;
14666
15414
  }
14667
15415
  function addonErrorCode(error) {
14668
- const detail = chunkE3L5DB5F_cjs.apiErrorDetail(error);
15416
+ const detail = chunkGEZB3OEC_cjs.apiErrorDetail(error);
14669
15417
  if (detail && typeof detail === "object") {
14670
15418
  const code = detail.code;
14671
15419
  if (code && code in FALLBACK_MESSAGES) return code;
14672
15420
  }
14673
15421
  return null;
14674
15422
  }
14675
- var addedMessage = (kind, blockAiGbp, blockStorageGb) => kind === "ai_usage" ? `${react.formatGbp(blockAiGbp ?? chunkE3L5DB5F_cjs.ADDON_BLOCK_AI_GBP)} of AI credits added` : `${blockStorageGb ?? chunkE3L5DB5F_cjs.STORAGE_BLOCK_GB} GB added`;
15423
+ var addedMessage = (kind, blockAiGbp, blockStorageGb) => kind === "ai_usage" ? `${react.formatGbp(blockAiGbp ?? chunkGEZB3OEC_cjs.ADDON_BLOCK_AI_GBP)} of AI credits added` : `${blockStorageGb ?? chunkGEZB3OEC_cjs.STORAGE_BLOCK_GB} GB added`;
14676
15424
  function useAddonPurchase() {
14677
15425
  const addBlock = react.useAddProjectAddonBlock();
14678
15426
  const { mutate } = addBlock;
@@ -14722,14 +15470,14 @@ function useAddonPurchase() {
14722
15470
  function ConnectedReferralRewardNote() {
14723
15471
  const reward = useReferralReward();
14724
15472
  if (!reward) return null;
14725
- return /* @__PURE__ */ jsxRuntime.jsx(chunkT73BHNQX_cjs.ReferralRewardNote, { amountLabel: chunkE3L5DB5F_cjs.formatMoney(reward.amount, reward.currency) });
15473
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkT73BHNQX_cjs.ReferralRewardNote, { amountLabel: chunkGEZB3OEC_cjs.formatMoney(reward.amount, reward.currency) });
14726
15474
  }
14727
15475
  function PlanChangeLines({
14728
15476
  preview,
14729
15477
  isError,
14730
15478
  className
14731
15479
  }) {
14732
- const lines = preview ? chunkE3L5DB5F_cjs.planPreviewLines(preview) : [{ id: "pay-today", text: isError ? chunkE3L5DB5F_cjs.PAY_TODAY_UNPRICED : "Checking price\u2026" }];
15480
+ const lines = preview ? chunkGEZB3OEC_cjs.planPreviewLines(preview) : [{ id: "pay-today", text: isError ? chunkGEZB3OEC_cjs.PAY_TODAY_UNPRICED : "Checking price\u2026" }];
14733
15481
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className, "data-testid": "plan-change-lines", children: lines.map((line) => /* @__PURE__ */ jsxRuntime.jsx("p", { "data-testid": `plan-change-${line.id}`, children: line.text }, line.id)) });
14734
15482
  }
14735
15483
  var BANK_CONFIRM_PLAN_CHANGE = "Confirm with your bank. Nothing is charged until you do.";
@@ -14737,13 +15485,13 @@ function notifyPlanChange(data, fallback, planName2) {
14737
15485
  const outcome = data?.plan_change;
14738
15486
  switch (outcome?.result) {
14739
15487
  case "upgraded": {
14740
- const plan = chunkE3L5DB5F_cjs.planNameForPacks(data?.addons?.packs ?? data?.packs);
14741
- const charged = outcome.charged_pence > 0 ? ` \xB7 ${chunkE3L5DB5F_cjs.formatMoney(outcome.charged_pence, "gbp")} charged` : "";
15488
+ const plan = chunkGEZB3OEC_cjs.planNameForPacks(data?.addons?.packs ?? data?.packs);
15489
+ const charged = outcome.charged_pence > 0 ? ` \xB7 ${chunkGEZB3OEC_cjs.formatMoney(outcome.charged_pence, "gbp")} charged` : "";
14742
15490
  shell.notify.success(`Upgraded to ${plan}${charged}`);
14743
15491
  break;
14744
15492
  }
14745
15493
  case "scheduled": {
14746
- const when2 = chunkE3L5DB5F_cjs.formatPeriodEnd(data?.addons?.period_end ?? data?.current_period_end);
15494
+ const when2 = chunkGEZB3OEC_cjs.formatPeriodEnd(data?.addons?.period_end ?? data?.current_period_end);
14747
15495
  shell.notify.success(when2 ? `Scheduled for ${when2}` : fallback);
14748
15496
  break;
14749
15497
  }
@@ -14776,23 +15524,23 @@ function ChangeProPlan({
14776
15524
  const { data: products } = react.useProducts();
14777
15525
  const changePlan = react.useChangeProjectPlan();
14778
15526
  const cancel = react.useCancelProjectSubscription();
14779
- const prices = chunkE3L5DB5F_cjs.findProPrices(products);
15527
+ const prices = chunkGEZB3OEC_cjs.findProPrices(products);
14780
15528
  const addons = project.addons;
14781
15529
  const isCanceling = project.cancel_at_period_end === true || project.subscription === "canceled";
14782
- const currentPacks = Math.max(addons?.packs ?? project.packs ?? chunkE3L5DB5F_cjs.PRO_PACKS, chunkE3L5DB5F_cjs.PRO_PACKS);
14783
- const isLegacyMultiPack = currentPacks > chunkE3L5DB5F_cjs.PRO_PACKS;
15530
+ const currentPacks = Math.max(addons?.packs ?? project.packs ?? chunkGEZB3OEC_cjs.PRO_PACKS, chunkGEZB3OEC_cjs.PRO_PACKS);
15531
+ const isLegacyMultiPack = currentPacks > chunkGEZB3OEC_cjs.PRO_PACKS;
14784
15532
  const currentInterval = project.plan_interval === "year" ? "year" : "month";
14785
15533
  const scheduledPacks = isCanceling ? 0 : addons?.packs_next ?? currentPacks;
14786
15534
  const scheduledInterval = addons?.pending_interval ?? currentInterval;
14787
15535
  const [targetPacks, setTargetPacks] = react$1.useState(scheduledPacks);
14788
15536
  const [chosenInterval, setChosenInterval] = react$1.useState(scheduledInterval);
14789
- const targetInterval = targetPacks > chunkE3L5DB5F_cjs.PRO_PACKS ? currentInterval : chosenInterval;
15537
+ const targetInterval = targetPacks > chunkGEZB3OEC_cjs.PRO_PACKS ? currentInterval : chosenInterval;
14790
15538
  const periodEnd = formatDate(addons?.period_end ?? project.current_period_end);
14791
15539
  const when2 = periodEnd ?? "the end of the period";
14792
15540
  const shortWhen = periodEnd ? periodEnd.replace(/ \d{4}$/, "") : "period end";
14793
15541
  const isPending = changePlan.isPending || cancel.isPending;
14794
15542
  const sameAsScheduled = targetPacks === scheduledPacks && (targetPacks === 0 || targetInterval === scheduledInterval);
14795
- const packOptions = isLegacyMultiPack ? [currentPacks, chunkE3L5DB5F_cjs.PRO_PACKS, 0] : [chunkE3L5DB5F_cjs.PRO_PACKS, 0];
15543
+ const packOptions = isLegacyMultiPack ? [currentPacks, chunkGEZB3OEC_cjs.PRO_PACKS, 0] : [chunkGEZB3OEC_cjs.PRO_PACKS, 0];
14796
15544
  const intervalPrice = targetInterval === "year" ? prices.annual : prices.monthly;
14797
15545
  const currency = intervalPrice?.currency ?? project.currency ?? "gbp";
14798
15546
  const preview = react.usePreviewProjectPlanChange(
@@ -14801,7 +15549,7 @@ function ChangeProPlan({
14801
15549
  );
14802
15550
  const noChange = sameAsScheduled || preview.data?.unchanged === true;
14803
15551
  const isPersonal = project.is_personal === true;
14804
- const nameFor = (packs) => packs === 0 && !isPersonal ? "Cancel subscription" : packs === currentPacks && packs > 0 ? chunkE3L5DB5F_cjs.proTierName(project) : chunkE3L5DB5F_cjs.planNameForPacks(packs);
15552
+ const nameFor = (packs) => packs === 0 && !isPersonal ? "Cancel subscription" : packs === currentPacks && packs > 0 ? chunkGEZB3OEC_cjs.proTierName(project) : chunkGEZB3OEC_cjs.planNameForPacks(packs);
14805
15553
  const effects = [];
14806
15554
  const target = nameFor(targetPacks);
14807
15555
  if (targetPacks === 0) {
@@ -14813,7 +15561,7 @@ function ChangeProPlan({
14813
15561
  if (targetPacks < currentPacks) {
14814
15562
  effects.push(`Changes to one Pro licence on ${when2}. No refund.`);
14815
15563
  } else if (!isCanceling && addons?.packs_next != null) {
14816
- effects.push(`Cancels the change to ${chunkE3L5DB5F_cjs.planNameForPacks(addons.packs_next)}.`);
15564
+ effects.push(`Cancels the change to ${chunkGEZB3OEC_cjs.planNameForPacks(addons.packs_next)}.`);
14817
15565
  }
14818
15566
  if (targetInterval !== currentInterval) {
14819
15567
  effects.push(`${targetInterval === "year" ? "Annual" : "Monthly"} billing from ${when2}.`);
@@ -14852,26 +15600,26 @@ function ChangeProPlan({
14852
15600
  if (packs === 0) {
14853
15601
  return {
14854
15602
  total: isPersonal ? "\xA30" : void 0,
14855
- summary: isPersonal ? `${react.formatGbp(chunkE3L5DB5F_cjs.FREE_AI_GBP)} of AI credits \xB7 ${chunkE3L5DB5F_cjs.FREE_STORAGE_MB} MB \xB7 just you` : "Suspended after the paid period. 30 days to export or resubscribe."
15603
+ summary: isPersonal ? `${react.formatGbp(chunkGEZB3OEC_cjs.FREE_AI_GBP)} of AI credits \xB7 ${chunkGEZB3OEC_cjs.FREE_STORAGE_MB} MB \xB7 just you` : "Suspended after the paid period. 30 days to export or resubscribe."
14856
15604
  };
14857
15605
  }
14858
- const allowance = `${react.formatGbp(chunkE3L5DB5F_cjs.PRO_AI_GBP * packs)} of AI credits \xB7 ${chunkE3L5DB5F_cjs.PRO_STORAGE_GB * packs} GB`;
14859
- const legacy = packs > chunkE3L5DB5F_cjs.PRO_PACKS;
14860
- const exVat = legacy ? project.amount_ex_vat : chunkE3L5DB5F_cjs.packPrice(intervalPrice)?.amount_ex_vat;
15606
+ const allowance = `${react.formatGbp(chunkGEZB3OEC_cjs.PRO_AI_GBP * packs)} of AI credits \xB7 ${chunkGEZB3OEC_cjs.PRO_STORAGE_GB * packs} GB`;
15607
+ const legacy = packs > chunkGEZB3OEC_cjs.PRO_PACKS;
15608
+ const exVat = legacy ? project.amount_ex_vat : chunkGEZB3OEC_cjs.packPrice(intervalPrice)?.amount_ex_vat;
14861
15609
  return {
14862
- total: exVat != null ? chunkE3L5DB5F_cjs.plusVat(exVat, currency) : void 0,
15610
+ total: exVat != null ? chunkGEZB3OEC_cjs.plusVat(exVat, currency) : void 0,
14863
15611
  summary: allowance
14864
15612
  };
14865
15613
  };
14866
15614
  return /* @__PURE__ */ jsxRuntime.jsxs(chunkT73BHNQX_cjs.PlanStack, { gap: 4, testId: "change-pro-plan", children: [
14867
15615
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center justify-between gap-2", children: [
14868
15616
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium text-foreground", children: "Billing" }),
14869
- targetPacks > chunkE3L5DB5F_cjs.PRO_PACKS ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-muted-foreground", "data-testid": "change-plan-interval-fixed", children: currentInterval === "year" ? "Annual" : "Monthly" }) : /* @__PURE__ */ jsxRuntime.jsx(
15617
+ targetPacks > chunkGEZB3OEC_cjs.PRO_PACKS ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-muted-foreground", "data-testid": "change-plan-interval-fixed", children: currentInterval === "year" ? "Annual" : "Monthly" }) : /* @__PURE__ */ jsxRuntime.jsx(
14870
15618
  chunkT73BHNQX_cjs.PricingToggle,
14871
15619
  {
14872
15620
  isAnnual: targetInterval === "year",
14873
15621
  onToggle: () => setChosenInterval(targetInterval === "year" ? "month" : "year"),
14874
- savingsPercent: chunkE3L5DB5F_cjs.calcSavingsPercent(prices.monthly, prices.annual)
15622
+ savingsPercent: chunkGEZB3OEC_cjs.calcSavingsPercent(prices.monthly, prices.annual)
14875
15623
  }
14876
15624
  )
14877
15625
  ] }),
@@ -14896,12 +15644,12 @@ function ChangeProPlan({
14896
15644
  }) }),
14897
15645
  isLegacyMultiPack && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-x-3 gap-y-1", children: [
14898
15646
  /* @__PURE__ */ jsxRuntime.jsxs(chunkT73BHNQX_cjs.PlanNotice, { className: "text-xs", testId: "change-plan-legacy-note", children: [
14899
- chunkE3L5DB5F_cjs.proTierName(project),
15647
+ chunkGEZB3OEC_cjs.proTierName(project),
14900
15648
  " is no longer sold"
14901
15649
  ] }),
14902
15650
  /* @__PURE__ */ jsxRuntime.jsxs(chunkT73BHNQX_cjs.MoreInfo, { title: "Legacy plan", testId: "change-plan-legacy-more-info", children: [
14903
15651
  /* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
14904
- chunkE3L5DB5F_cjs.proTierName(project),
15652
+ chunkGEZB3OEC_cjs.proTierName(project),
14905
15653
  " keeps renewing at its own price, with its allowance and add-ons, until you change it."
14906
15654
  ] }),
14907
15655
  /* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
@@ -14933,7 +15681,7 @@ function ChangeProPlan({
14933
15681
  ] });
14934
15682
  }
14935
15683
  function ChangePlanDialog({ project, open, onOpenChange }) {
14936
- const isPro = !!project && chunkE3L5DB5F_cjs.isProProject(project);
15684
+ const isPro = !!project && chunkGEZB3OEC_cjs.isProProject(project);
14937
15685
  return /* @__PURE__ */ jsxRuntime.jsx(
14938
15686
  chunkT73BHNQX_cjs.PlanDialogFrame,
14939
15687
  {
@@ -14958,14 +15706,14 @@ function ChangePlanDialog({ project, open, onOpenChange }) {
14958
15706
  }
14959
15707
  function ProjectsTable() {
14960
15708
  const { data: projects, isLoading } = react.useProjects();
14961
- const currentUserExtId = chunkE3L5DB5F_cjs.useSelfExtId();
15709
+ const currentUserExtId = chunkGEZB3OEC_cjs.useSelfExtId();
14962
15710
  const { openProject } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
14963
15711
  const updateProject = react.useUpdateProjectFields();
14964
15712
  const [renameTarget, setRenameTarget] = react$1.useState(null);
14965
15713
  const [renameValue, setRenameValue] = react$1.useState("");
14966
15714
  const [invoicesTarget, setInvoicesTarget] = react$1.useState(null);
14967
15715
  const [upgradeTarget, setUpgradeTarget] = react$1.useState(null);
14968
- const { stripeEnabled } = chunkE3L5DB5F_cjs.useBillingSupport();
15716
+ const { stripeEnabled } = chunkGEZB3OEC_cjs.useBillingSupport();
14969
15717
  const ownedProjects = react$1.useMemo(
14970
15718
  () => (projects ?? []).filter((p) => p.created_by === currentUserExtId),
14971
15719
  [projects, currentUserExtId]
@@ -15009,8 +15757,8 @@ function ProjectsTable() {
15009
15757
  testId: `project-row-${p.external_id}`,
15010
15758
  onOpen: () => openProject(p.external_id),
15011
15759
  identity: /* @__PURE__ */ jsxRuntime.jsx(ConnectedProjectEntity, { name: p.name, relation: "mine", subscription: p.subscription }),
15012
- summary: stripeEnabled ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex items-center whitespace-nowrap", children: /* @__PURE__ */ jsxRuntime.jsx(chunkT73BHNQX_cjs.PlanBadge, { ...chunkE3L5DB5F_cjs.planBadgeView(p) }) }) : void 0,
15013
- usage: p.quotas ? /* @__PURE__ */ jsxRuntime.jsx(chunkT73BHNQX_cjs.QuotaMeter, { items: chunkE3L5DB5F_cjs.getQuotaItems(p.quotas), size: "lg" }) : void 0,
15760
+ summary: stripeEnabled ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex items-center whitespace-nowrap", children: /* @__PURE__ */ jsxRuntime.jsx(chunkT73BHNQX_cjs.PlanBadge, { ...chunkGEZB3OEC_cjs.planBadgeView(p) }) }) : void 0,
15761
+ usage: p.quotas ? /* @__PURE__ */ jsxRuntime.jsx(chunkT73BHNQX_cjs.QuotaMeter, { items: chunkGEZB3OEC_cjs.getQuotaItems(p.quotas), size: "lg" }) : void 0,
15014
15762
  actions: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
15015
15763
  canUpgrade && /* @__PURE__ */ jsxRuntime.jsxs(
15016
15764
  ui.Button,
@@ -15077,7 +15825,7 @@ function ProjectsTable() {
15077
15825
  }
15078
15826
  function SharedProjects() {
15079
15827
  const { data: projects } = react.useProjects();
15080
- const currentUserExtId = chunkE3L5DB5F_cjs.useSelfExtId();
15828
+ const currentUserExtId = chunkGEZB3OEC_cjs.useSelfExtId();
15081
15829
  const { data: usageToday } = react.useUserUsageToday();
15082
15830
  const shared = react$1.useMemo(
15083
15831
  () => (projects ?? []).filter((p) => p.created_by !== currentUserExtId),
@@ -15199,10 +15947,10 @@ function CollaboratorPlan({ project }) {
15199
15947
  const next = addons.collaborator_blocks_next ?? blocks;
15200
15948
  const included = addons.included_collaborators ?? 0;
15201
15949
  const size = addons.block_collaborators ?? 0;
15202
- const from = chunkE3L5DB5F_cjs.formatPeriodEnd(addons.period_end ?? project.current_period_end) ?? "the next billing period";
15950
+ const from = chunkGEZB3OEC_cjs.formatPeriodEnd(addons.period_end ?? project.current_period_end) ?? "the next billing period";
15203
15951
  const annual = project.plan_interval === "year";
15204
- const now = quote.data ? chunkE3L5DB5F_cjs.quoteParts(quote.data.now) : null;
15205
- const renewal = quote.data ? chunkE3L5DB5F_cjs.quoteParts(quote.data.renewal) : null;
15952
+ const now = quote.data ? chunkGEZB3OEC_cjs.quoteParts(quote.data.now) : null;
15953
+ const renewal = quote.data ? chunkGEZB3OEC_cjs.quoteParts(quote.data.renewal) : null;
15206
15954
  const busy = add.isPending || update.isPending;
15207
15955
  const setNext = (count2) => update.mutate(
15208
15956
  { projectExtId: project.external_id, body: { collaborator_blocks: count2 } },
@@ -15241,7 +15989,7 @@ function CollaboratorPlan({ project }) {
15241
15989
  project.quotas.collaborators.limit,
15242
15990
  " available \xB7 you don't count towards the limit."
15243
15991
  ] }),
15244
- /* @__PURE__ */ jsxRuntime.jsx("p", { children: addons.collaborator_block_period_ex_vat_pence != null ? `${chunkE3L5DB5F_cjs.formatMoney(addons.collaborator_block_period_ex_vat_pence, project.currency ?? "gbp")}/${annual ? "year" : "month"} per pack, plus tax.` : "The price is confirmed before purchase." }),
15992
+ /* @__PURE__ */ jsxRuntime.jsx("p", { children: addons.collaborator_block_period_ex_vat_pence != null ? `${chunkGEZB3OEC_cjs.formatMoney(addons.collaborator_block_period_ex_vat_pence, project.currency ?? "gbp")}/${annual ? "year" : "month"} per pack, plus tax.` : "The price is confirmed before purchase." }),
15245
15993
  /* @__PURE__ */ jsxRuntime.jsx("p", { children: "Adding a pack charges your saved card for the rest of this billing period, then renews until removed. Collaborators share the project's AI credits budget." }),
15246
15994
  /* @__PURE__ */ jsxRuntime.jsxs(
15247
15995
  ui.Button,
@@ -15304,20 +16052,20 @@ function CollaboratorPlan({ project }) {
15304
16052
  now && renewal && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2 text-sm", children: [
15305
16053
  /* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
15306
16054
  "Pay ",
15307
- chunkE3L5DB5F_cjs.money2(now.total),
16055
+ chunkGEZB3OEC_cjs.money2(now.total),
15308
16056
  " today (",
15309
- chunkE3L5DB5F_cjs.taxDetail(now),
16057
+ chunkGEZB3OEC_cjs.taxDetail(now),
15310
16058
  "), covering until ",
15311
16059
  from,
15312
16060
  "."
15313
16061
  ] }),
15314
16062
  /* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
15315
16063
  "Then ",
15316
- chunkE3L5DB5F_cjs.money2(renewal.total),
16064
+ chunkGEZB3OEC_cjs.money2(renewal.total),
15317
16065
  " every ",
15318
16066
  annual ? "year" : "month",
15319
16067
  " (",
15320
- chunkE3L5DB5F_cjs.taxDetail(renewal),
16068
+ chunkGEZB3OEC_cjs.taxDetail(renewal),
15321
16069
  "), starting ",
15322
16070
  from,
15323
16071
  ", until you remove the pack."
@@ -15330,7 +16078,7 @@ function CollaboratorPlan({ project }) {
15330
16078
  ] }),
15331
16079
  /* @__PURE__ */ jsxRuntime.jsxs(ui.DialogFooter, { children: [
15332
16080
  /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { variant: "outline", onClick: () => setOpen(false), children: "Cancel" }),
15333
- /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { onClick: buy, disabled: !now || !renewal || quote.isFetching || busy, children: add.isPending ? "Paying\u2026" : now ? `Pay ${chunkE3L5DB5F_cjs.money2(now.total)}` : "Add collaborators" })
16081
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { onClick: buy, disabled: !now || !renewal || quote.isFetching || busy, children: add.isPending ? "Paying\u2026" : now ? `Pay ${chunkGEZB3OEC_cjs.money2(now.total)}` : "Add collaborators" })
15334
16082
  ] })
15335
16083
  ] }) })
15336
16084
  ] });
@@ -15376,9 +16124,9 @@ function SubscriptionStatus({ project }) {
15376
16124
  return /* @__PURE__ */ jsxRuntime.jsx(
15377
16125
  chunkT73BHNQX_cjs.SubscriptionStatusView,
15378
16126
  {
15379
- resetDate: chunkE3L5DB5F_cjs.formatResetDate(addons?.ai_usage_reset_at ?? current_period_end),
16127
+ resetDate: chunkGEZB3OEC_cjs.formatResetDate(addons?.ai_usage_reset_at ?? current_period_end),
15380
16128
  isCanceling: subscription === "canceled" || cancel_at_period_end === true,
15381
- meters: chunkE3L5DB5F_cjs.getQuotaItems(quotas).map((q) => ({
16129
+ meters: chunkGEZB3OEC_cjs.getQuotaItems(quotas).map((q) => ({
15382
16130
  key: q.key,
15383
16131
  icon: q.icon,
15384
16132
  label: q.label,
@@ -15442,7 +16190,7 @@ function PendingChange({
15442
16190
  }
15443
16191
  );
15444
16192
  }
15445
- var titleFor = (kind, blockAiGbp, blockStorageGb) => kind === "ai_usage" ? `Add ${react.formatGbp(blockAiGbp ?? chunkE3L5DB5F_cjs.ADDON_BLOCK_AI_GBP)} of AI credits` : `Add ${blockStorageGb ?? chunkE3L5DB5F_cjs.STORAGE_BLOCK_GB} GB storage`;
16193
+ var titleFor = (kind, blockAiGbp, blockStorageGb) => kind === "ai_usage" ? `Add ${react.formatGbp(blockAiGbp ?? chunkGEZB3OEC_cjs.ADDON_BLOCK_AI_GBP)} of AI credits` : `Add ${blockStorageGb ?? chunkGEZB3OEC_cjs.STORAGE_BLOCK_GB} GB storage`;
15446
16194
  var blocksOf = (kind, project) => (kind === "ai_usage" ? project.addons?.ai_blocks : project.addons?.storage_blocks) ?? 0;
15447
16195
  function Row({ label, children }) {
15448
16196
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-baseline justify-between gap-4", children: [
@@ -15463,11 +16211,11 @@ function AddAddonDialog({
15463
16211
  const addons = project.addons;
15464
16212
  if (!addons) return null;
15465
16213
  const isAnnual = project.plan_interval === "year";
15466
- const price = chunkE3L5DB5F_cjs.addonCharge(kind, addons, isAnnual, addons.period_end ?? project.current_period_end);
15467
- const nextCharge = chunkE3L5DB5F_cjs.formatPeriodEnd(addons.period_end ?? project.current_period_end);
15468
- const now = quote.data ? chunkE3L5DB5F_cjs.quoteParts(quote.data.now) : null;
15469
- const renewal = quote.data ? chunkE3L5DB5F_cjs.quoteParts(quote.data.renewal) : null;
15470
- const today = now ? { total: chunkE3L5DB5F_cjs.money2(now.total), detail: chunkE3L5DB5F_cjs.taxDetail(now) } : { total: price.now, detail: `incl. VAT (${price.nowExVat} + ${price.nowVat} VAT)` };
16214
+ const price = chunkGEZB3OEC_cjs.addonCharge(kind, addons, isAnnual, addons.period_end ?? project.current_period_end);
16215
+ const nextCharge = chunkGEZB3OEC_cjs.formatPeriodEnd(addons.period_end ?? project.current_period_end);
16216
+ const now = quote.data ? chunkGEZB3OEC_cjs.quoteParts(quote.data.now) : null;
16217
+ const renewal = quote.data ? chunkGEZB3OEC_cjs.quoteParts(quote.data.renewal) : null;
16218
+ const today = now ? { total: chunkGEZB3OEC_cjs.money2(now.total), detail: chunkGEZB3OEC_cjs.taxDetail(now) } : { total: price.now, detail: `incl. VAT (${price.nowExVat} + ${price.nowVat} VAT)` };
15471
16219
  const pricing = quote.isLoading;
15472
16220
  const confirm = () => {
15473
16221
  const before = blocksOf(kind, project);
@@ -15522,7 +16270,7 @@ function AddAddonDialog({
15522
16270
  term: "Usage cap",
15523
16271
  text: "Adding by hand is never blocked by the usage cap; the cap limits automatic top-ups only."
15524
16272
  },
15525
- ...isAnnual && kind === "ai_usage" ? [{ term: "Annual", text: `${chunkE3L5DB5F_cjs.ANNUAL_PREMIUM_AI_NOTE}.` }] : []
16273
+ ...isAnnual && kind === "ai_usage" ? [{ term: "Annual", text: `${chunkGEZB3OEC_cjs.ANNUAL_PREMIUM_AI_NOTE}.` }] : []
15526
16274
  ]
15527
16275
  }
15528
16276
  ) })
@@ -15545,7 +16293,7 @@ function AddAddonDialog({
15545
16293
  )
15546
16294
  ] }) }),
15547
16295
  !pricing && /* @__PURE__ */ jsxRuntime.jsxs(Row, { label: "Next charge", children: [
15548
- renewal ? chunkE3L5DB5F_cjs.totalWithTaxWord(renewal) : price.then.replace(/\/(month|year)/, ""),
16296
+ renewal ? chunkGEZB3OEC_cjs.totalWithTaxWord(renewal) : price.then.replace(/\/(month|year)/, ""),
15549
16297
  nextCharge ? ` on ${nextCharge}` : " at renewal"
15550
16298
  ] })
15551
16299
  ] }) }),
@@ -15576,11 +16324,11 @@ function ReduceAddonDialog({
15576
16324
  const update = react.useUpdateProjectNextPeriodAddons();
15577
16325
  const addons = project.addons;
15578
16326
  if (!addons) return null;
15579
- const { min, next } = chunkE3L5DB5F_cjs.reduceBounds(kind, addons);
16327
+ const { min, next } = chunkGEZB3OEC_cjs.reduceBounds(kind, addons);
15580
16328
  const keep2 = Math.max(min, next - 1);
15581
- const size = chunkE3L5DB5F_cjs.nextRemovedBlockSize(kind, addons);
15582
- const what = chunkE3L5DB5F_cjs.stepLabel(kind, size);
15583
- const from = chunkE3L5DB5F_cjs.formatPeriodEnd(addons.period_end ?? project.current_period_end) ?? "your next renewal";
16329
+ const size = chunkGEZB3OEC_cjs.nextRemovedBlockSize(kind, addons);
16330
+ const what = chunkGEZB3OEC_cjs.stepLabel(kind, size);
16331
+ const from = chunkGEZB3OEC_cjs.formatPeriodEnd(addons.period_end ?? project.current_period_end) ?? "your next renewal";
15584
16332
  const fromShort = from.replace(/ \d{4}$/, "");
15585
16333
  const allowanceNext = kind === "ai_usage" ? addons.ai_allowance_next_gbp - size : addons.storage_allowance_next_gb - size;
15586
16334
  const allowanceNow = kind === "ai_usage" ? addons.ai_allowance_gbp : addons.storage_allowance_gb;
@@ -15588,7 +16336,7 @@ function ReduceAddonDialog({
15588
16336
  const save = () => update.mutate(
15589
16337
  {
15590
16338
  projectExtId: project.external_id,
15591
- body: chunkE3L5DB5F_cjs.nextPeriodBody(kind, keep2)
16339
+ body: chunkGEZB3OEC_cjs.nextPeriodBody(kind, keep2)
15592
16340
  },
15593
16341
  {
15594
16342
  onSuccess: () => {
@@ -15673,7 +16421,7 @@ function ReduceAddonDialog({
15673
16421
  }
15674
16422
  ) });
15675
16423
  }
15676
- var gbp = (pence) => chunkE3L5DB5F_cjs.formatMoney(pence, "gbp");
16424
+ var gbp = (pence) => chunkGEZB3OEC_cjs.formatMoney(pence, "gbp");
15677
16425
  var gb2 = (n) => `${Math.round(n * 10) / 10} GB`;
15678
16426
  function formatShortDate(unix) {
15679
16427
  if (!unix) return null;
@@ -15684,20 +16432,20 @@ function AutoTopupThreshold({
15684
16432
  addons
15685
16433
  }) {
15686
16434
  const updateSettings = react.useUpdateProjectAddonSettings();
15687
- const min = addons.min_auto_topup_threshold_gbp || chunkE3L5DB5F_cjs.MIN_AUTO_TOPUP_THRESHOLD_GBP;
16435
+ const min = addons.min_auto_topup_threshold_gbp || chunkGEZB3OEC_cjs.MIN_AUTO_TOPUP_THRESHOLD_GBP;
15688
16436
  const saved = addons.auto_topup_threshold_gbp;
15689
16437
  const [value, setValue] = react$1.useState(String(saved));
15690
16438
  react$1.useEffect(() => setValue(String(saved)), [saved]);
15691
16439
  const parsed = Number(value);
15692
16440
  const valid = Number.isFinite(parsed) && parsed >= min;
15693
16441
  const dirty = valid && parsed !== saved;
15694
- const off = chunkE3L5DB5F_cjs.isAddonBudgetZero(addons);
16442
+ const off = chunkGEZB3OEC_cjs.isAddonBudgetZero(addons);
15695
16443
  const save = () => {
15696
16444
  if (!dirty) return;
15697
16445
  updateSettings.mutate(
15698
16446
  {
15699
16447
  projectExtId: project.external_id,
15700
- body: chunkE3L5DB5F_cjs.addonSettingsBody(addons, { auto_topup_threshold_gbp: parsed })
16448
+ body: chunkGEZB3OEC_cjs.addonSettingsBody(addons, { auto_topup_threshold_gbp: parsed })
15701
16449
  },
15702
16450
  {
15703
16451
  onSuccess: () => shell.notify.success(`Auto-add below ${react.formatGbp(parsed)} of AI credits left`),
@@ -15794,10 +16542,10 @@ function ResourceMeter({
15794
16542
  const update = react.useUpdateProjectNextPeriodAddons();
15795
16543
  const isAi = kind === "ai_usage";
15796
16544
  const slug = isAi ? "ai-usage" : "storage";
15797
- const periodEnd = chunkE3L5DB5F_cjs.formatPeriodEnd(addons.period_end ?? project.current_period_end);
16545
+ const periodEnd = chunkGEZB3OEC_cjs.formatPeriodEnd(addons.period_end ?? project.current_period_end);
15798
16546
  const from = periodEnd ?? "your next renewal";
15799
16547
  const fromShort = formatShortDate(addons.period_end ?? project.current_period_end) ?? "renewal";
15800
- const { min, current, next } = chunkE3L5DB5F_cjs.reduceBounds(kind, addons);
16548
+ const { min, current, next } = chunkGEZB3OEC_cjs.reduceBounds(kind, addons);
15801
16549
  const fmt = (n) => isAi ? react.formatGbp(n) : gb2(n);
15802
16550
  const used = isAi ? addons.ai_used_gbp : addons.storage_used_gb;
15803
16551
  const allowance = isAi ? addons.ai_allowance_gbp : addons.storage_allowance_gb;
@@ -15805,15 +16553,15 @@ function ResourceMeter({
15805
16553
  const plan = isAi ? addons.plan_ai_gbp : addons.plan_storage_gb;
15806
16554
  const topUps = Math.max(0, allowance - plan);
15807
16555
  const blocks = isAi ? addons.ai_blocks : addons.storage_blocks;
15808
- const hasLegacy = chunkE3L5DB5F_cjs.splitBlocks(kind, blocks, addons).legacy > 0;
15809
- const room = chunkE3L5DB5F_cjs.autoRoom(kind, addons);
15810
- const capZero = chunkE3L5DB5F_cjs.isAddonBudgetZero(addons);
15811
- const resets = isAi ? formatShortDate(chunkE3L5DB5F_cjs.aiUsageResetTimestamp(project)) : null;
15812
- const removeSize = chunkE3L5DB5F_cjs.nextRemovedBlockSize(kind, addons);
16556
+ const hasLegacy = chunkGEZB3OEC_cjs.splitBlocks(kind, blocks, addons).legacy > 0;
16557
+ const room = chunkGEZB3OEC_cjs.autoRoom(kind, addons);
16558
+ const capZero = chunkGEZB3OEC_cjs.isAddonBudgetZero(addons);
16559
+ const resets = isAi ? formatShortDate(chunkGEZB3OEC_cjs.aiUsageResetTimestamp(project)) : null;
16560
+ const removeSize = chunkGEZB3OEC_cjs.nextRemovedBlockSize(kind, addons);
15813
16561
  const undo = () => update.mutate(
15814
16562
  {
15815
16563
  projectExtId: project.external_id,
15816
- body: chunkE3L5DB5F_cjs.nextPeriodBody(kind, current)
16564
+ body: chunkGEZB3OEC_cjs.nextPeriodBody(kind, current)
15817
16565
  },
15818
16566
  {
15819
16567
  onSuccess: () => shell.notify.success("Kept"),
@@ -15830,7 +16578,7 @@ function ResourceMeter({
15830
16578
  allowance: { used, plan, topUps, autoRoom: capZero ? 0 : room },
15831
16579
  legend: {
15832
16580
  plan: `Plan ${fmt(plan)}`,
15833
- topUps: topUps > 0 ? `Top-ups ${fmt(topUps)}${hasLegacy ? ` (${chunkE3L5DB5F_cjs.blocksLabel(kind, blocks, addons)})` : ""}` : void 0,
16581
+ topUps: topUps > 0 ? `Top-ups ${fmt(topUps)}${hasLegacy ? ` (${chunkGEZB3OEC_cjs.blocksLabel(kind, blocks, addons)})` : ""}` : void 0,
15834
16582
  autoRoom: room != null && room > 0 && !capZero ? `Automatic up to ${fmt(room)}` : void 0
15835
16583
  },
15836
16584
  testId: `usage-meter-${slug}`,
@@ -15859,9 +16607,9 @@ function ResourceMeter({
15859
16607
  {
15860
16608
  icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { className: "size-3.5" }),
15861
16609
  label: isAi ? react.formatGbp(addons.block_ai_gbp) : `${addons.block_storage_gb} GB`,
15862
- caption: chunkE3L5DB5F_cjs.addStepCaption(kind, addons),
16610
+ caption: chunkGEZB3OEC_cjs.addStepCaption(kind, addons),
15863
16611
  onClick: onAdd,
15864
- ariaLabel: `Add ${chunkE3L5DB5F_cjs.stepLabel(kind, isAi ? addons.block_ai_gbp : addons.block_storage_gb)}`,
16612
+ ariaLabel: `Add ${chunkGEZB3OEC_cjs.stepLabel(kind, isAi ? addons.block_ai_gbp : addons.block_storage_gb)}`,
15865
16613
  testId: isAi ? "add-ai-block-button" : "add-storage-block-button"
15866
16614
  }
15867
16615
  ),
@@ -15874,7 +16622,7 @@ function ResourceMeter({
15874
16622
  label: isAi ? react.formatGbp(removeSize) : `${removeSize} GB`,
15875
16623
  caption: `from ${fromShort}`,
15876
16624
  onClick: onReduce,
15877
- ariaLabel: `Remove ${chunkE3L5DB5F_cjs.stepLabel(kind, removeSize)} from ${from}`,
16625
+ ariaLabel: `Remove ${chunkGEZB3OEC_cjs.stepLabel(kind, removeSize)} from ${from}`,
15878
16626
  testId: `reduce-${slug}-button`
15879
16627
  }
15880
16628
  )
@@ -15888,8 +16636,8 @@ function UsageCapEditor({ project, addons }) {
15888
16636
  const sectionRef = react$1.useRef(null);
15889
16637
  const inputRef = react$1.useRef(null);
15890
16638
  const minimum = 0;
15891
- const stepPence = addons.spend_cap_step_pence ?? 2500;
15892
- const saved = addons.spend_cap_pence ?? addons.default_spend_cap_pence ?? chunkE3L5DB5F_cjs.DEFAULT_SPEND_CAP_PENCE;
16639
+ const stepPence = addons.spend_cap_step_pence ?? 2e3;
16640
+ const saved = addons.spend_cap_pence ?? addons.default_spend_cap_pence ?? chunkGEZB3OEC_cjs.DEFAULT_SPEND_CAP_PENCE;
15893
16641
  const maximum = addons.maximum_spend_cap_pence ?? 5e4;
15894
16642
  const normalize = (n) => Math.max(0, Math.min(maximum, Math.floor(n / stepPence) * stepPence));
15895
16643
  const [value, setValue] = react$1.useState(normalize(saved));
@@ -15907,10 +16655,10 @@ function UsageCapEditor({ project, addons }) {
15907
16655
  const save = () => updateSettings.mutate(
15908
16656
  {
15909
16657
  projectExtId: project.external_id,
15910
- body: chunkE3L5DB5F_cjs.addonSettingsBody(addons, { spend_cap_pence: value })
16658
+ body: chunkGEZB3OEC_cjs.addonSettingsBody(addons, { spend_cap_pence: value })
15911
16659
  },
15912
16660
  {
15913
- onSuccess: () => shell.notify.success(chunkE3L5DB5F_cjs.budgetSavedMessage(value)),
16661
+ onSuccess: () => shell.notify.success(chunkGEZB3OEC_cjs.budgetSavedMessage(value)),
15914
16662
  onError: (error) => shell.notify.error(addonErrorMessage(error))
15915
16663
  }
15916
16664
  );
@@ -15963,7 +16711,7 @@ function UsageInfo({ addons, isAnnual }) {
15963
16711
  term: "Automatic top-ups",
15964
16712
  text: "One step is added when AI credits drops below your auto top-up level, or when an upload needs more storage."
15965
16713
  },
15966
- { term: "Usage cap", text: chunkE3L5DB5F_cjs.USAGE_CAP_HELP },
16714
+ { term: "Usage cap", text: chunkGEZB3OEC_cjs.USAGE_CAP_HELP },
15967
16715
  {
15968
16716
  term: "Reducing",
15969
16717
  text: "\u2212 removes one step from your next renewal. You keep this period's allowance. No refunds."
@@ -15974,7 +16722,7 @@ function UsageInfo({ addons, isAnnual }) {
15974
16722
  text: "Top-ups bought on an earlier price keep their size and price until removed; they are removed last."
15975
16723
  }
15976
16724
  ] : [],
15977
- ...isAnnual ? [{ term: "Annual", text: `${chunkE3L5DB5F_cjs.ANNUAL_PREMIUM_AI_NOTE}.` }] : [],
16725
+ ...isAnnual ? [{ term: "Annual", text: `${chunkGEZB3OEC_cjs.ANNUAL_PREMIUM_AI_NOTE}.` }] : [],
15978
16726
  {
15979
16727
  term: "Prices",
15980
16728
  text: "Shown ex VAT. The confirm step shows the total with VAT before you pay."
@@ -16067,7 +16815,7 @@ function formatShortDate2(unix) {
16067
16815
  if (!unix) return null;
16068
16816
  return new Date(unix * 1e3).toLocaleDateString("en-GB", { day: "numeric", month: "short" });
16069
16817
  }
16070
- var gbp2 = (pence) => chunkE3L5DB5F_cjs.formatMoney(pence, "gbp");
16818
+ var gbp2 = (pence) => chunkGEZB3OEC_cjs.formatMoney(pence, "gbp");
16071
16819
  var gbNum = (n) => `${Math.round(n * 10) / 10}`;
16072
16820
  var pct = (used, limit) => limit > 0 ? Math.min(100, used / limit * 100) : 0;
16073
16821
  function Meter({
@@ -16085,15 +16833,15 @@ function Meter({
16085
16833
  ] });
16086
16834
  }
16087
16835
  function usePlanPrice(project) {
16088
- const { data: products } = react.useProducts({ enabled: chunkE3L5DB5F_cjs.isProProject(project) });
16089
- if (!chunkE3L5DB5F_cjs.isProProject(project)) return null;
16836
+ const { data: products } = react.useProducts({ enabled: chunkGEZB3OEC_cjs.isProProject(project) });
16837
+ if (!chunkGEZB3OEC_cjs.isProProject(project)) return null;
16090
16838
  const isAnnual = project.plan_interval === "year";
16091
16839
  if (project.amount != null) {
16092
16840
  return { incl: project.amount, ex: project.amount_ex_vat ?? null, isAnnual };
16093
16841
  }
16094
- if ((project.packs ?? chunkE3L5DB5F_cjs.PRO_PACKS) > chunkE3L5DB5F_cjs.PRO_PACKS) return null;
16095
- const prices = chunkE3L5DB5F_cjs.findProPrices(products);
16096
- const pp = chunkE3L5DB5F_cjs.packPrice(isAnnual ? prices.annual : prices.monthly);
16842
+ if ((project.packs ?? chunkGEZB3OEC_cjs.PRO_PACKS) > chunkGEZB3OEC_cjs.PRO_PACKS) return null;
16843
+ const prices = chunkGEZB3OEC_cjs.findProPrices(products);
16844
+ const pp = chunkGEZB3OEC_cjs.packPrice(isAnnual ? prices.annual : prices.monthly);
16097
16845
  return pp ? { incl: pp.amount, ex: pp.amount_ex_vat, isAnnual } : null;
16098
16846
  }
16099
16847
  function paidLine(payment, addons) {
@@ -16106,11 +16854,11 @@ function ProjectPlanCard({
16106
16854
  onChangePlan
16107
16855
  }) {
16108
16856
  const { quotas, addons } = project;
16109
- const isPro = chunkE3L5DB5F_cjs.isProProject(project);
16857
+ const isPro = chunkGEZB3OEC_cjs.isProProject(project);
16110
16858
  const used = quotas?.ai_usage?.used ?? 0;
16111
16859
  const limit = quotas?.ai_usage?.limit ?? 0;
16112
- const resetDate = formatShortDate2(chunkE3L5DB5F_cjs.aiUsageResetTimestamp(project));
16113
- const periodEnd = chunkE3L5DB5F_cjs.formatPeriodEnd(addons?.period_end ?? project.current_period_end);
16860
+ const resetDate = formatShortDate2(chunkGEZB3OEC_cjs.aiUsageResetTimestamp(project));
16861
+ const periodEnd = chunkGEZB3OEC_cjs.formatPeriodEnd(addons?.period_end ?? project.current_period_end);
16114
16862
  const when2 = periodEnd ?? "the end of the period";
16115
16863
  const storageUsed = quotas?.storage_gb?.used ?? 0;
16116
16864
  const storageLimit = quotas?.storage_gb?.limit ?? 0;
@@ -16126,7 +16874,7 @@ function ProjectPlanCard({
16126
16874
  project.external_id,
16127
16875
  hasScheduledChange && addons ? { packs: packsNext ?? addons.packs, interval: pending ?? currentInterval } : null
16128
16876
  ).data;
16129
- const tier = isPro ? chunkE3L5DB5F_cjs.proTierName(project) : project.subscription === "dev" ? "Dev" : "Free";
16877
+ const tier = isPro ? chunkGEZB3OEC_cjs.proTierName(project) : project.subscription === "dev" ? "Dev" : "Free";
16130
16878
  const pendingPayment = addons?.payment?.status === "pending" ? addons.payment : null;
16131
16879
  const confirmUrl = pendingPayment?.confirm_url ?? addons?.confirm_url;
16132
16880
  const paidPayment = addons?.payment?.status === "paid" ? addons.payment : null;
@@ -16160,7 +16908,7 @@ function ProjectPlanCard({
16160
16908
  isPro && " ",
16161
16909
  isPro && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ml-1 text-sm font-normal text-muted-foreground", children: currentInterval === "year" ? "Annual" : "Monthly" })
16162
16910
  ] }),
16163
- isPro && periodEnd && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm text-muted-foreground", "data-testid": "project-plan-renews", children: isCanceling ? `Ends ${periodEnd}` : hasScheduledChange && nextBill ? `Next bill ${chunkE3L5DB5F_cjs.totalWithTaxWord({
16911
+ isPro && periodEnd && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm text-muted-foreground", "data-testid": "project-plan-renews", children: isCanceling ? `Ends ${periodEnd}` : hasScheduledChange && nextBill ? `Next bill ${chunkGEZB3OEC_cjs.totalWithTaxWord({
16164
16912
  subtotal: nextBill.next_renewal_ex_vat_pence,
16165
16913
  tax: nextBill.next_renewal_tax_pence,
16166
16914
  total: nextBill.next_renewal_pence,
@@ -16169,7 +16917,7 @@ function ProjectPlanCard({
16169
16917
  ] }),
16170
16918
  price && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ml-auto text-right", "data-testid": "project-plan-price", children: [
16171
16919
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-lg font-semibold tabular-nums text-foreground", children: [
16172
- price.ex != null ? chunkE3L5DB5F_cjs.plusVat(price.ex) : gbp2(price.incl),
16920
+ price.ex != null ? chunkGEZB3OEC_cjs.plusVat(price.ex) : gbp2(price.incl),
16173
16921
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-normal text-muted-foreground", children: price.isAnnual ? "/year" : "/month" })
16174
16922
  ] }),
16175
16923
  price.ex != null && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-xs text-muted-foreground", children: [
@@ -16207,7 +16955,7 @@ function ProjectPlanCard({
16207
16955
  undoTestId: "undo-plan-change-button",
16208
16956
  children: [
16209
16957
  "Changes to ",
16210
- chunkE3L5DB5F_cjs.planNameForPacks(packsNext),
16958
+ chunkGEZB3OEC_cjs.planNameForPacks(packsNext),
16211
16959
  " on ",
16212
16960
  when2,
16213
16961
  "."
@@ -16298,7 +17046,7 @@ function ProjectBilling({
16298
17046
  const { addons } = project;
16299
17047
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", "data-testid": "project-billing", children: [
16300
17048
  /* @__PURE__ */ jsxRuntime.jsx(ProjectPlanCard, { project, onChangePlan }),
16301
- addons && chunkE3L5DB5F_cjs.isProProject(project) && /* @__PURE__ */ jsxRuntime.jsx(ProjectUsageCard, { project, addons })
17049
+ addons && chunkGEZB3OEC_cjs.isProProject(project) && /* @__PURE__ */ jsxRuntime.jsx(ProjectUsageCard, { project, addons })
16302
17050
  ] });
16303
17051
  }
16304
17052
  var BREAKDOWN_LABELS = react.DEFAULT_USAGE_BREAKDOWN_SOURCE_LABELS.by;
@@ -16431,13 +17179,13 @@ function ProjectUsagePanels({
16431
17179
  ] });
16432
17180
  }
16433
17181
  function ProjectDetail({ projectExtId, storage }) {
16434
- const { stripeEnabled } = chunkE3L5DB5F_cjs.useBillingSupport();
17182
+ const { stripeEnabled } = chunkGEZB3OEC_cjs.useBillingSupport();
16435
17183
  const [planOpen, setPlanOpen] = react$1.useState(false);
16436
17184
  const [renameOpen, setRenameOpen] = react$1.useState(false);
16437
17185
  const [renameValue, setRenameValue] = react$1.useState("");
16438
17186
  const updateProject = react.useUpdateProjectFields();
16439
17187
  const { data: projects, isLoading } = react.useProjects();
16440
- const currentUserExtId = chunkE3L5DB5F_cjs.useSelfExtId();
17188
+ const currentUserExtId = chunkGEZB3OEC_cjs.useSelfExtId();
16441
17189
  const project = projects?.find((p) => p.external_id === projectExtId);
16442
17190
  const handleSaveRename = react$1.useCallback(() => {
16443
17191
  const trimmed = renameValue.trim();
@@ -16483,7 +17231,7 @@ function ProjectDetail({ projectExtId, storage }) {
16483
17231
  setRenameValue(project.name);
16484
17232
  setRenameOpen(true);
16485
17233
  },
16486
- badge: stripeEnabled ? /* @__PURE__ */ jsxRuntime.jsx(chunkT73BHNQX_cjs.PlanBadge, { ...chunkE3L5DB5F_cjs.planBadgeView(project), size: "md" }) : void 0
17234
+ badge: stripeEnabled ? /* @__PURE__ */ jsxRuntime.jsx(chunkT73BHNQX_cjs.PlanBadge, { ...chunkGEZB3OEC_cjs.planBadgeView(project), size: "md" }) : void 0
16487
17235
  }
16488
17236
  ),
16489
17237
  hasBilling && project.subscription === "suspended" ? /* @__PURE__ */ jsxRuntime.jsx(SuspendedProjectRecovery, { project, onResubscribe: () => setPlanOpen(true) }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
@@ -16533,7 +17281,7 @@ function ProjectDetail({ projectExtId, storage }) {
16533
17281
  function useAutoRefreshPendingProjects() {
16534
17282
  const { data: projects } = react.useProjects();
16535
17283
  const refreshProject = react.useRefreshProject();
16536
- const currentUserExtId = chunkE3L5DB5F_cjs.useSelfExtId();
17284
+ const currentUserExtId = chunkGEZB3OEC_cjs.useSelfExtId();
16537
17285
  const refreshedRef = react$1.useRef(/* @__PURE__ */ new Set());
16538
17286
  react$1.useEffect(() => {
16539
17287
  if (!projects || !currentUserExtId) return;
@@ -16564,7 +17312,7 @@ function ConnectedQuotaDialog({ info, onClose: close }) {
16564
17312
  if (quotaProjectId) void refetchProjects();
16565
17313
  }, [quotaProjectId, refetchProjects]);
16566
17314
  const project = info?.projectExtId ? projects?.find((p) => p.external_id === info.projectExtId) : void 0;
16567
- const addons = project && chunkE3L5DB5F_cjs.isProProject(project) ? project.addons : null;
17315
+ const addons = project && chunkGEZB3OEC_cjs.isProProject(project) ? project.addons : null;
16568
17316
  const handleUpgrade = () => {
16569
17317
  if (info?.projectExtId) {
16570
17318
  requestProjectBillingFocus({ projectExtId: info.projectExtId, openUpgrade: true });
@@ -16600,8 +17348,8 @@ function ConnectedQuotaDialog({ info, onClose: close }) {
16600
17348
  /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {})
16601
17349
  );
16602
17350
  } else if (addons) {
16603
- const price = `${chunkE3L5DB5F_cjs.formatMoney(addons.ai_block_price_ex_vat_pence, "gbp")} ex VAT`;
16604
- const capZero = chunkE3L5DB5F_cjs.isAddonBudgetZero(addons);
17351
+ const price = `${chunkGEZB3OEC_cjs.formatMoney(addons.ai_block_price_ex_vat_pence, "gbp")} ex VAT`;
17352
+ const capZero = chunkGEZB3OEC_cjs.isAddonBudgetZero(addons);
16605
17353
  const addAiUsage = /* @__PURE__ */ jsxRuntime.jsxs(ui.Button, { onClick: handleAddAiUsage, "data-testid": "quota-add-ai-usage-button", children: [
16606
17354
  "Add ",
16607
17355
  react.formatGbp(addons.block_ai_gbp),
@@ -16609,7 +17357,7 @@ function ConnectedQuotaDialog({ info, onClose: close }) {
16609
17357
  price
16610
17358
  ] });
16611
17359
  if (capZero || addons.cap_reached) {
16612
- message = capZero ? chunkE3L5DB5F_cjs.ZERO_BUDGET_MESSAGE : chunkE3L5DB5F_cjs.CAP_REACHED_MESSAGE;
17360
+ message = capZero ? chunkGEZB3OEC_cjs.ZERO_BUDGET_MESSAGE : chunkGEZB3OEC_cjs.CAP_REACHED_MESSAGE;
16613
17361
  actions = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
16614
17362
  addAiUsage,
16615
17363
  /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { variant: "outline", onClick: handleRaiseCap, "data-testid": "quota-raise-cap-button", children: capZero ? "Set cap" : "Raise cap" })
@@ -16798,7 +17546,7 @@ function ConnectedWelcomeDialog({
16798
17546
  }) {
16799
17547
  const currentUser = react.useArbiSession().user;
16800
17548
  const { data: projects } = react.useProjects();
16801
- const balance = chunkE3L5DB5F_cjs.useRewardBalance();
17549
+ const balance = chunkGEZB3OEC_cjs.useRewardBalance();
16802
17550
  const [showPlans, setShowPlans] = react$1.useState(false);
16803
17551
  const [showInvite, setShowInvite] = react$1.useState(false);
16804
17552
  const [selectedProjectId, setSelectedProjectId] = react$1.useState(null);
@@ -16823,15 +17571,15 @@ function ConnectedWelcomeDialog({
16823
17571
  ConnectedAddContacts,
16824
17572
  {
16825
17573
  onClose: () => handleOpenChange(false),
16826
- rewardAmount: chunkE3L5DB5F_cjs.formatMoney(REFERRAL_OFFER.amount, REFERRAL_OFFER.currency)
17574
+ rewardAmount: chunkGEZB3OEC_cjs.formatMoney(REFERRAL_OFFER.amount, REFERRAL_OFFER.currency)
16827
17575
  }
16828
17576
  ) });
16829
17577
  }
16830
17578
  const firstName = currentUser?.given_name;
16831
17579
  const hasBalance = balance !== null;
16832
- const quotaItems = chunkE3L5DB5F_cjs.getQuotaItems(selectedProject.quotas);
16833
- const resetTs = chunkE3L5DB5F_cjs.aiUsageResetTimestamp(selectedProject);
16834
- const aiUsageHint = resetTs ? `resets ${chunkE3L5DB5F_cjs.formatResetDate(resetTs)}` : void 0;
17580
+ const quotaItems = chunkGEZB3OEC_cjs.getQuotaItems(selectedProject.quotas);
17581
+ const resetTs = chunkGEZB3OEC_cjs.aiUsageResetTimestamp(selectedProject);
17582
+ const aiUsageHint = resetTs ? `resets ${chunkGEZB3OEC_cjs.formatResetDate(resetTs)}` : void 0;
16835
17583
  return /* @__PURE__ */ jsxRuntime.jsx(
16836
17584
  chunkT73BHNQX_cjs.WelcomeDialog,
16837
17585
  {
@@ -16848,7 +17596,7 @@ function ConnectedWelcomeDialog({
16848
17596
  onChange: setSelectedProjectId
16849
17597
  }
16850
17598
  ),
16851
- planBadge: /* @__PURE__ */ jsxRuntime.jsx(chunkT73BHNQX_cjs.PlanBadge, { ...chunkE3L5DB5F_cjs.planBadgeView(selectedProject), size: "md" }),
17599
+ planBadge: /* @__PURE__ */ jsxRuntime.jsx(chunkT73BHNQX_cjs.PlanBadge, { ...chunkGEZB3OEC_cjs.planBadgeView(selectedProject), size: "md" }),
16852
17600
  quotas: quotaItems.map((q) => ({
16853
17601
  key: q.key,
16854
17602
  icon: q.icon,
@@ -16858,9 +17606,9 @@ function ConnectedWelcomeDialog({
16858
17606
  hint: q.key === "ai-usage" ? aiUsageHint : void 0
16859
17607
  })),
16860
17608
  onSeePlans: () => setShowPlans(true),
16861
- referralOfferLabel: `${chunkE3L5DB5F_cjs.formatMoney(REFERRAL_OFFER.amount, REFERRAL_OFFER.currency)} off your plan`,
17609
+ referralOfferLabel: `${chunkGEZB3OEC_cjs.formatMoney(REFERRAL_OFFER.amount, REFERRAL_OFFER.currency)} off your plan`,
16862
17610
  onInvite: () => setShowInvite(true),
16863
- rewardBalanceLabel: hasBalance ? chunkE3L5DB5F_cjs.formatMoney(balance.amount, balance.currency) : void 0
17611
+ rewardBalanceLabel: hasBalance ? chunkGEZB3OEC_cjs.formatMoney(balance.amount, balance.currency) : void 0
16864
17612
  }
16865
17613
  );
16866
17614
  }
@@ -16923,7 +17671,7 @@ function WorkspaceCardsView({
16923
17671
  createDisabledReason,
16924
17672
  workspaceState
16925
17673
  }) {
16926
- const { stripeEnabled } = chunkE3L5DB5F_cjs.useBillingSupport();
17674
+ const { stripeEnabled } = chunkGEZB3OEC_cjs.useBillingSupport();
16927
17675
  const { hrefFor: hrefFor2 } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
16928
17676
  const workspaceLabel = ui.getEntityLabel("WORKSPACE");
16929
17677
  const projectLabel = ui.getEntityLabel("PROJECT").toLowerCase();
@@ -16943,7 +17691,7 @@ function WorkspaceCardsView({
16943
17691
  }
16944
17692
  return /* @__PURE__ */ jsxRuntime.jsx(chunkCMGNRMPA_cjs.WorkspaceList, { testId: "workspace-cards-list", children: groups.map((group) => {
16945
17693
  const project = projects.find((p) => p.external_id === group.projectExtId);
16946
- const { breakdown, readout } = chunkE3L5DB5F_cjs.projectGroupBilling(project, {
17694
+ const { breakdown, readout } = chunkGEZB3OEC_cjs.projectGroupBilling(project, {
16947
17695
  isOwned: group.isOwned,
16948
17696
  stripeEnabled
16949
17697
  });
@@ -17172,7 +17920,7 @@ function useConnectedWorkspaceList({
17172
17920
  };
17173
17921
  }
17174
17922
  var WorkspaceTableView = react$1.lazy(
17175
- () => import('../WorkspaceTableView-3XYAV4BV.cjs').then((m) => ({ default: m.WorkspaceTableView }))
17923
+ () => import('../WorkspaceTableView-QPROJRCF.cjs').then((m) => ({ default: m.WorkspaceTableView }))
17176
17924
  );
17177
17925
  var WORKSPACES_TAB_ID = "workspaces";
17178
17926
  var renderMember = (user, size) => /* @__PURE__ */ jsxRuntime.jsx(chunkQMIHLJMH_cjs.ConnectedUserEntity, { user, size, variant: "icon" });
@@ -17232,7 +17980,7 @@ function ConnectedWorkspaceList({
17232
17980
  }
17233
17981
  );
17234
17982
  }
17235
- if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(chunkIZJ5L246_cjs.LoadingIndicator, { message: "Loading workspaces..." });
17983
+ if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(chunkKWHGYHRC_cjs.LoadingIndicator, { message: "Loading workspaces..." });
17236
17984
  if (list.error) {
17237
17985
  return /* @__PURE__ */ jsxRuntime.jsx(
17238
17986
  chunkH7PHOTX2_cjs.HomeLoadError,
@@ -17305,7 +18053,7 @@ function ConnectedWorkspaceList({
17305
18053
  workspaceState
17306
18054
  }
17307
18055
  ) })
17308
- ) : /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkIZJ5L246_cjs.LoadingIndicator, { message: "Loading grid..." }), children: /* @__PURE__ */ jsxRuntime.jsx(chunkH7PHOTX2_cjs.HomeCenteredColumn, { children: /* @__PURE__ */ jsxRuntime.jsx(
18056
+ ) : /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkKWHGYHRC_cjs.LoadingIndicator, { message: "Loading grid..." }), children: /* @__PURE__ */ jsxRuntime.jsx(chunkH7PHOTX2_cjs.HomeCenteredColumn, { children: /* @__PURE__ */ jsxRuntime.jsx(
17309
18057
  WorkspaceTableView,
17310
18058
  {
17311
18059
  list,
@@ -17350,7 +18098,7 @@ function ConnectedProjectsPanel({
17350
18098
  const { data: projects } = react.useProjects();
17351
18099
  const canCreateProjects = react.useCanCreateProjects();
17352
18100
  const { userId } = chunkJR2YSBD5_cjs.useConnectedWorkspace();
17353
- const { stripeEnabled } = chunkE3L5DB5F_cjs.useBillingSupport();
18101
+ const { stripeEnabled } = chunkGEZB3OEC_cjs.useBillingSupport();
17354
18102
  const billingPortal = useOpenBillingPortal();
17355
18103
  const [newProjectOpen, setNewProjectOpen] = react$1.useState(false);
17356
18104
  useAutoRefreshPendingProjects();
@@ -17495,7 +18243,7 @@ function ConnectedProjectsListPage({
17495
18243
  };
17496
18244
  const { openProject } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
17497
18245
  const [search, setSearch] = react$1.useState("");
17498
- const { projects, isLoading } = chunkYP5EBGLU_cjs.useProjectSummaries();
18246
+ const { projects, isLoading } = chunkGOQV6NOK_cjs.useProjectSummaries();
17499
18247
  const rows = react$1.useMemo(() => {
17500
18248
  const q = search.trim().toLowerCase();
17501
18249
  if (!q) return projects;
@@ -17566,7 +18314,7 @@ function ConnectedProjectsListPage({
17566
18314
  }
17567
18315
  ),
17568
18316
  /* @__PURE__ */ jsxRuntime.jsx(
17569
- chunkIZJ5L246_cjs.Toolbar,
18317
+ chunkKWHGYHRC_cjs.Toolbar,
17570
18318
  {
17571
18319
  search,
17572
18320
  onSearch: setSearch,
@@ -17628,7 +18376,7 @@ function ProjectDetailsForm({
17628
18376
  const labels = { ...DEFAULT_PROJECT_DETAILS_LABELS, ...given };
17629
18377
  const { notify: notify19 } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
17630
18378
  const update = react.useUpdateProjectFields();
17631
- const workspace = chunkYP5EBGLU_cjs.primaryProjectWorkspace(project);
18379
+ const workspace = chunkGOQV6NOK_cjs.primaryProjectWorkspace(project);
17632
18380
  const { data: members = [] } = react.useWorkspaceUsers(workspace?.id);
17633
18381
  const people = members.filter((m) => !m.user.external_id.startsWith("agt-"));
17634
18382
  const currency = project.budget?.currency ?? "GBP";
@@ -17753,7 +18501,7 @@ var COMPACT_BELOW = 132;
17753
18501
  var NO_DOCUMENTS = [];
17754
18502
  function useFilesWorkspace() {
17755
18503
  const { workspaceId, userId, live } = chunkJR2YSBD5_cjs.useConnectedWorkspace();
17756
- const { members, role } = chunkVLQCLQAS_cjs.useConnectedWorkspaceRole();
18504
+ const { members, role } = chunkTZYB22FM_cjs.useConnectedWorkspaceRole();
17757
18505
  const { data: workspaces } = react.useWorkspaces({ enabled: live });
17758
18506
  const workspaceName = workspaces?.find((w) => w.external_id === workspaceId)?.name;
17759
18507
  return {
@@ -18690,11 +19438,11 @@ function ConnectedProjectPage({
18690
19438
  figures: { ...DEFAULT_PROJECT_PAGE_LABELS.figures, ...given?.figures },
18691
19439
  threads: { ...DEFAULT_PROJECT_PAGE_LABELS.threads, ...given?.threads }
18692
19440
  };
18693
- const { project, usage, isLoading } = chunkYP5EBGLU_cjs.useProjectSummary(projectId);
19441
+ const { project, usage, isLoading } = chunkGOQV6NOK_cjs.useProjectSummary(projectId);
18694
19442
  const { workspaceId } = chunkJR2YSBD5_cjs.useConnectedWorkspace();
18695
19443
  const { notify: notify19 } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
18696
- const selectWorkspace = chunk7NLO7ASW_cjs.useSelectWorkspace();
18697
- const workspace = project ? chunkYP5EBGLU_cjs.primaryProjectWorkspace(project) : void 0;
19444
+ const selectWorkspace = chunkMXGXKUSW_cjs.useSelectWorkspace();
19445
+ const workspace = project ? chunkGOQV6NOK_cjs.primaryProjectWorkspace(project) : void 0;
18698
19446
  const open = !!workspace && workspace.id === workspaceId;
18699
19447
  react$1.useEffect(() => {
18700
19448
  if (!workspace || workspace.id === workspaceId) return;
@@ -20011,7 +20759,7 @@ function ConnectedChatThread({
20011
20759
  }
20012
20760
  return /* @__PURE__ */ jsxRuntime.jsxs(react$1.Fragment, { children: [
20013
20761
  isFirstOfDay && /* @__PURE__ */ jsxRuntime.jsx(react.DateSeparator, { children: formatDay(msg.created_at) }),
20014
- !isSent && startsPeerRun(i) && /* @__PURE__ */ jsxRuntime.jsx(chunkM2FOXGJU_cjs.MessageAuthor, { children: renderMessengerUser(memberById(msg.sender_ext_id) ?? null, "author") }),
20762
+ !isSent && startsPeerRun(i) && /* @__PURE__ */ jsxRuntime.jsx(chunkF6CEPWIF_cjs.MessageAuthor, { children: renderMessengerUser(memberById(msg.sender_ext_id) ?? null, "author") }),
20015
20763
  /* @__PURE__ */ jsxRuntime.jsx(
20016
20764
  react.ChatBubble,
20017
20765
  {
@@ -21401,10 +22149,10 @@ function ConnectedContactsPanel({
21401
22149
  function ConnectedConfigForm({ availableModels, ...rest }) {
21402
22150
  const hasModels = !!availableModels && availableModels.length > 0;
21403
22151
  const renderModelSelect = react$1.useCallback(
21404
- ({ value, onChange }) => /* @__PURE__ */ jsxRuntime.jsx(chunkIWMHQTVL_cjs.ConnectedModelSelector, { value, onValueChange: onChange, className: "w-full" }),
22152
+ ({ value, onChange }) => /* @__PURE__ */ jsxRuntime.jsx(chunkMI3N3ZOT_cjs.ConnectedModelSelector, { value, onValueChange: onChange, className: "w-full" }),
21405
22153
  []
21406
22154
  );
21407
- return /* @__PURE__ */ jsxRuntime.jsx(chunkCQQQIZU4_cjs.ConfigForm, { ...rest, renderModelSelect: hasModels ? renderModelSelect : void 0 });
22155
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConfigForm, { ...rest, renderModelSelect: hasModels ? renderModelSelect : void 0 });
21408
22156
  }
21409
22157
  function ConnectedAgentConfigForm({ agentExtId, agentName, onSaved }) {
21410
22158
  const { notify: notify19 } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
@@ -21521,7 +22269,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
21521
22269
  }, [name, selectedWorkspaces, role, createAgent, addWorkspaceUsers, arbi, notify19]);
21522
22270
  if (editAgent) {
21523
22271
  return /* @__PURE__ */ jsxRuntime.jsx(
21524
- chunkCQQQIZU4_cjs.AgentEditView,
22272
+ chunkOD6NGGL3_cjs.AgentEditView,
21525
22273
  {
21526
22274
  agentName: editAgent.name,
21527
22275
  config: /* @__PURE__ */ jsxRuntime.jsx(
@@ -21537,7 +22285,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
21537
22285
  }
21538
22286
  if (view === "main") {
21539
22287
  return /* @__PURE__ */ jsxRuntime.jsx(
21540
- chunkCQQQIZU4_cjs.AgentMainView,
22288
+ chunkOD6NGGL3_cjs.AgentMainView,
21541
22289
  {
21542
22290
  onConnectExternal: () => setView("connect"),
21543
22291
  config: mainAgent ? /* @__PURE__ */ jsxRuntime.jsx(
@@ -21553,11 +22301,11 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
21553
22301
  }
21554
22302
  if (result) {
21555
22303
  return /* @__PURE__ */ jsxRuntime.jsx(
21556
- chunkCQQQIZU4_cjs.AgentCreatedView,
22304
+ chunkOD6NGGL3_cjs.AgentCreatedView,
21557
22305
  {
21558
22306
  email: result.email,
21559
22307
  signingKey: result.signingKey,
21560
- instructions: /* @__PURE__ */ jsxRuntime.jsx(chunkCQQQIZU4_cjs.AgentConnectInstructions, { email: result.email, signingKey: result.signingKey }),
22308
+ instructions: /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.AgentConnectInstructions, { email: result.email, signingKey: result.signingKey }),
21561
22309
  config: /* @__PURE__ */ jsxRuntime.jsx(ConnectedAgentConfigForm, { agentExtId: result.extId, agentName: result.name }),
21562
22310
  isConfigOpen: configOpen,
21563
22311
  onToggleConfig: () => setConfigOpen((v) => !v),
@@ -21566,7 +22314,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
21566
22314
  );
21567
22315
  }
21568
22316
  return /* @__PURE__ */ jsxRuntime.jsx(
21569
- chunkCQQQIZU4_cjs.AgentCreateView,
22317
+ chunkOD6NGGL3_cjs.AgentCreateView,
21570
22318
  {
21571
22319
  name,
21572
22320
  onNameChange: setName,
@@ -21632,7 +22380,7 @@ function ConnectedInviteContactsDialog({
21632
22380
  ConnectedAddContacts,
21633
22381
  {
21634
22382
  onClose: handleClose,
21635
- rewardAmount: chunkE3L5DB5F_cjs.formatMoney(REFERRAL_OFFER.amount, REFERRAL_OFFER.currency)
22383
+ rewardAmount: chunkGEZB3OEC_cjs.formatMoney(REFERRAL_OFFER.amount, REFERRAL_OFFER.currency)
21636
22384
  }
21637
22385
  ),
21638
22386
  isDeveloper && /* @__PURE__ */ jsxRuntime.jsxs(
@@ -21761,13 +22509,13 @@ function ConnectedNewThreadDialog({
21761
22509
  });
21762
22510
  const parentOptions = react$1.useMemo(() => {
21763
22511
  const leaf = { external_id: "__new__" };
21764
- return chunkCQQQIZU4_cjs.moveTargets([...tasks, leaf], leaf).map((t) => ({
22512
+ return chunkOD6NGGL3_cjs.moveTargets([...tasks, leaf], leaf).map((t) => ({
21765
22513
  id: t.external_id,
21766
22514
  name: t.title?.trim() || "Untitled task"
21767
22515
  }));
21768
22516
  }, [tasks]);
21769
22517
  const submit = async (values) => {
21770
- const request = chunk7JLJH5CW_cjs.newThreadToRequest(values);
22518
+ const request = chunk5A6T4W46_cjs.newThreadToRequest(values);
21771
22519
  try {
21772
22520
  if (!workspaceId) throw new Error("Open a workspace to add a task.");
21773
22521
  if (!request.startAssistant && request.todo) {
@@ -21808,7 +22556,7 @@ function ConnectedNewThreadDialog({
21808
22556
  }
21809
22557
  };
21810
22558
  return /* @__PURE__ */ jsxRuntime.jsx(
21811
- chunkCQQQIZU4_cjs.NewThreadDialog,
22559
+ chunkOD6NGGL3_cjs.NewThreadDialog,
21812
22560
  {
21813
22561
  open,
21814
22562
  onOpenChange,
@@ -21929,12 +22677,12 @@ var TILE_TEST_IDS = {
21929
22677
  annotate: "workspace-dashboard-quick-action-annotate"
21930
22678
  };
21931
22679
  function DashboardStart({ addMenu, onCreateNew }) {
21932
- const { dashboard: workflows } = chunkUFT22LAB_cjs.useWorkflowDefinitions();
22680
+ const { dashboard: workflows } = chunkHBUHOCWF_cjs.useWorkflowDefinitions();
21933
22681
  const { isMember, role } = react.useCurrentWorkspace();
21934
22682
  const canWrite2 = isMember && role !== "guest";
21935
22683
  const [activeId, setActiveId] = react$1.useState(null);
21936
22684
  return /* @__PURE__ */ jsxRuntime.jsx(
21937
- chunk2F57IO7S_cjs.ConnectedWorkflowStart,
22685
+ chunkXCW6OY7E_cjs.ConnectedWorkflowStart,
21938
22686
  {
21939
22687
  workflows,
21940
22688
  caption: "Start",
@@ -21955,7 +22703,7 @@ function DashboardStart({ addMenu, onCreateNew }) {
21955
22703
  }
21956
22704
  ] : void 0,
21957
22705
  tileTestId: (workflow) => TILE_TEST_IDS[workflow.id],
21958
- disabledReason: (workflow) => !canWrite2 && workflow.id === chunk7JLJH5CW_cjs.ANNOTATE_ID ? "Only workspace members can annotate files" : void 0
22706
+ disabledReason: (workflow) => !canWrite2 && workflow.id === chunk5A6T4W46_cjs.ANNOTATE_ID ? "Only workspace members can annotate files" : void 0
21959
22707
  }
21960
22708
  );
21961
22709
  }
@@ -21986,7 +22734,7 @@ function recentConversations(conversations) {
21986
22734
  return [...conversations].sort((a, b) => time(b.updated_at) - time(a.updated_at)).slice(0, RECENT_ROWS).map((c) => ({
21987
22735
  id: c.external_id,
21988
22736
  title: c.title?.trim() || "Untitled thread",
21989
- subtitle: c.status ? [chunkCQQQIZU4_cjs.STATUS_LABELS[chunkCQQQIZU4_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"}`,
22737
+ subtitle: c.status ? [chunkOD6NGGL3_cjs.STATUS_LABELS[chunkOD6NGGL3_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"}`,
21990
22738
  time: timeAndDate(c.updated_at)
21991
22739
  }));
21992
22740
  }
@@ -22372,7 +23120,7 @@ function ConnectedAskField({
22372
23120
  setPageFilter("");
22373
23121
  }, [setPageFilter]);
22374
23122
  const inputRef = react$1.useRef(null);
22375
- const slash = chunkVWBYE3XY_cjs.useSlashField({ text, setText, inputRef, landing: "chat" });
23123
+ const slash = chunkFQRJCAT2_cjs.useSlashField({ text, setText, inputRef, landing: "chat" });
22376
23124
  if (!workspaceId) return null;
22377
23125
  const submitTo = (handler) => (question) => {
22378
23126
  handler(question);
@@ -22443,7 +23191,7 @@ function createBuiltinActions(environment, session) {
22443
23191
  const startWorkflowOnDocuments = (workflowId) => {
22444
23192
  const { viewingDocument, selectedDocumentIds } = session.getState();
22445
23193
  const documents = viewingDocument ? [viewingDocument.id] : [...selectedDocumentIds];
22446
- chunkCQQQIZU4_cjs.openWorkflowLaunch({ workflowId, context: { documents } });
23194
+ chunkOD6NGGL3_cjs.openWorkflowLaunch({ workflowId, context: { documents } });
22447
23195
  };
22448
23196
  const setFilesView = (mode) => () => chunkADDQKZ5I_cjs.useFilesPrefs.getState().setViewMode(mode);
22449
23197
  const actions = [
@@ -22811,7 +23559,7 @@ function ConnectedCommandPalette({
22811
23559
  isFeatureOn: react.useFeatureCheck()
22812
23560
  };
22813
23561
  const { ask, search } = useWorkspaceAsk();
22814
- const skillLauncher = chunkXF355M7O_cjs.useSlashSkillWorkflows({ landing: "chat" });
23562
+ const skillLauncher = chunk2Z25MUAY_cjs.useSlashSkillWorkflows({ landing: "chat" });
22815
23563
  react$1.useEffect(() => {
22816
23564
  const onKey = (event) => {
22817
23565
  if (!isPaletteShortcut(event)) return;
@@ -22845,8 +23593,8 @@ function ConnectedCommandPalette({
22845
23593
  const skills = !workspaceId ? [] : text ? skillLauncher.openable.filter(
22846
23594
  (w) => matches(text, w.title, w.description, w.id, w.category)
22847
23595
  ) : [
22848
- ...skillLauncher.openable.filter(chunk7JLJH5CW_cjs.isSkillPackWorkflow),
22849
- ...skillLauncher.openable.filter((w) => !chunk7JLJH5CW_cjs.isSkillPackWorkflow(w))
23596
+ ...skillLauncher.openable.filter(chunk5A6T4W46_cjs.isSkillPackWorkflow),
23597
+ ...skillLauncher.openable.filter((w) => !chunk5A6T4W46_cjs.isSkillPackWorkflow(w))
22850
23598
  ].slice(0, EMPTY_QUERY_SKILLS);
22851
23599
  const choose = (run) => {
22852
23600
  setOpen(false);
@@ -23004,7 +23752,7 @@ function ConnectedRemoteControlConsent() {
23004
23752
  }
23005
23753
  function ConsentPrompt() {
23006
23754
  const pending = react.useRemoteControl((s) => s.pending);
23007
- const remote = chunkIWMHQTVL_cjs.useRemoteControlActions();
23755
+ const remote = chunkMI3N3ZOT_cjs.useRemoteControlActions();
23008
23756
  const onceRef = react$1.useRef(null);
23009
23757
  chunkORELHENJ_cjs.useMountedSurface("consent");
23010
23758
  const handleOpenChange = (next) => {
@@ -23097,7 +23845,7 @@ function Indicator() {
23097
23845
  const enabled = react.useRemoteControl((s) => s.enabled);
23098
23846
  const sharing = react.useRemoteControl((s) => !!s.sharing);
23099
23847
  const controllingAgent = react.useRemoteControl((s) => s.controllingAgent);
23100
- const remote = chunkIWMHQTVL_cjs.useRemoteControlActions();
23848
+ const remote = chunkMI3N3ZOT_cjs.useRemoteControlActions();
23101
23849
  if (!enabled && !controllingAgent) return null;
23102
23850
  const isActive = controllingAgent !== null;
23103
23851
  const label = sharing ? controllingAgent ? `${controllingAgent.name} \xB7 screen sharing and control on` : "Sharing screen \xB7 remote control on" : isActive ? `${controllingAgent.name} is controlling your screen` : "Remote control on";
@@ -26988,7 +27736,7 @@ function ConnectedSecureMailClaimPage({
26988
27736
  }) {
26989
27737
  const authenticated = react.useArbiSession().status === "signed-in";
26990
27738
  const { openMail } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
26991
- const { loading } = chunkIWMHQTVL_cjs.useAuthPages();
27739
+ const { loading } = chunkMI3N3ZOT_cjs.useAuthPages();
26992
27740
  const claim = react.useClaimSecureMail();
26993
27741
  const [, setFirstLoginWorkspaces] = react.useTransientView(FIRST_LOGIN_WORKSPACES_VIEW, null);
26994
27742
  const [failure, setFailure] = react$1.useState(null);
@@ -27028,7 +27776,7 @@ function ConnectedSecureMailClaimPage({
27028
27776
  }
27029
27777
  })();
27030
27778
  }, [authenticated, claimId, key]);
27031
- if (!error) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: loading ?? /* @__PURE__ */ jsxRuntime.jsx(chunkIZJ5L246_cjs.LoadingIndicator, { variant: "splash" }) });
27779
+ if (!error) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: loading ?? /* @__PURE__ */ jsxRuntime.jsx(chunkKWHGYHRC_cjs.LoadingIndicator, { variant: "splash" }) });
27032
27780
  return /* @__PURE__ */ jsxRuntime.jsx("main", { className: "flex min-h-screen items-center justify-center bg-background p-6", children: /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "w-full max-w-md rounded-lg border border-border bg-card p-6", children: [
27033
27781
  /* @__PURE__ */ jsxRuntime.jsx("p", { role: "alert", className: "mb-4 text-sm text-destructive", children: error }),
27034
27782
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -28428,7 +29176,7 @@ function EventEditorDialog({
28428
29176
  const { notify: notify19, runtimeConfig } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
28429
29177
  const attachmentDocuments = documents.map((document2) => ({
28430
29178
  doc_id: document2.external_id,
28431
- title: chunkWAV762GP_cjs.toWorkflowFieldDocument(document2).title,
29179
+ title: chunkDBN6GBRQ_cjs.toWorkflowFieldDocument(document2).title,
28432
29180
  url: chunkLJJJ6CYH_cjs.buildDeepLinkUrl(
28433
29181
  { workspaceId: workspaceId ?? void 0, documentId: document2.external_id },
28434
29182
  runtimeConfig.deploymentDomain
@@ -30680,7 +31428,7 @@ function EmailProviderRow({
30680
31428
  react.useRefreshConnectorsOnRunEnd(running);
30681
31429
  const busy = syncPending;
30682
31430
  const kickProgressPolling = () => {
30683
- [500, 1400, 2800].forEach((ms) => window.setTimeout(() => void refetchProgress(), ms));
31431
+ [500, 1400, 2800].forEach((ms2) => window.setTimeout(() => void refetchProgress(), ms2));
30684
31432
  };
30685
31433
  const syncNow = () => {
30686
31434
  void runSync({ vendorKey: catalog.vendor_key, workspaceExtId, workspaceLabel: workspaceName });
@@ -31066,7 +31814,7 @@ function OneDriveProviderRow({
31066
31814
  }
31067
31815
  };
31068
31816
  const kickProgressPolling = () => {
31069
- [500, 1400, 2800].forEach((ms) => window.setTimeout(() => void refetchProgress(), ms));
31817
+ [500, 1400, 2800].forEach((ms2) => window.setTimeout(() => void refetchProgress(), ms2));
31070
31818
  };
31071
31819
  const syncNow = () => {
31072
31820
  void runSync({
@@ -31075,7 +31823,7 @@ function OneDriveProviderRow({
31075
31823
  workspaceLabel: workspaceName
31076
31824
  });
31077
31825
  kickProgressPolling();
31078
- [1500, 4e3].forEach((ms) => window.setTimeout(() => void refetchEstimate(), ms));
31826
+ [1500, 4e3].forEach((ms2) => window.setTimeout(() => void refetchEstimate(), ms2));
31079
31827
  };
31080
31828
  const stopSync = () => cancelSync.mutate(
31081
31829
  { vendorKey: catalog.vendor_key },
@@ -33158,7 +33906,7 @@ function useBatchCompleteToasts() {
33158
33906
  }
33159
33907
  }, AI_FIELDS_NOTICE_WINDOW_MS);
33160
33908
  } else if (message.batch_type === "entity_extract") {
33161
- say(`${chunkIZJ5L246_cjs.entitiesPhrase()} extracted from ${chunkIZJ5L246_cjs.documentCount(docIds.length)}`, "success", {
33909
+ say(`${chunkKWHGYHRC_cjs.entitiesPhrase()} extracted from ${chunkKWHGYHRC_cjs.documentCount(docIds.length)}`, "success", {
33162
33910
  ...openTags && { action: { label: "View", onClick: openTags } }
33163
33911
  });
33164
33912
  } else if (message.batch_type === "upload") {
@@ -33973,10 +34721,10 @@ var DocumentReviewCard = react$1.lazy(
33973
34721
  () => import('../DocumentReviewCard-M53XFLI2.cjs').then((module) => ({ default: module.DocumentReviewCard }))
33974
34722
  );
33975
34723
  var FilesViewerDialog = react$1.lazy(
33976
- () => import('../FilesViewerDialog-C7XHGK36.cjs').then((module) => ({ default: module.FilesViewerDialog }))
34724
+ () => import('../FilesViewerDialog-EFRMXIM5.cjs').then((module) => ({ default: module.FilesViewerDialog }))
33977
34725
  );
33978
34726
  function defaultReviewCard(props) {
33979
- return /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkIZJ5L246_cjs.LoadingIndicator, { message: "Loading document viewer..." }), children: /* @__PURE__ */ jsxRuntime.jsx(DocumentReviewCard, { ...props }, `navigator-${props.currentDocument.external_id}`) });
34727
+ return /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkKWHGYHRC_cjs.LoadingIndicator, { message: "Loading document viewer..." }), children: /* @__PURE__ */ jsxRuntime.jsx(DocumentReviewCard, { ...props }, `navigator-${props.currentDocument.external_id}`) });
33980
34728
  }
33981
34729
  function ConnectedFilesPage({
33982
34730
  isModal = false,
@@ -34019,7 +34767,7 @@ function ConnectedFilesPage({
34019
34767
  const deleteDocuments = react.useDeleteDocuments();
34020
34768
  const isDocumentsPending = isLoading && documents.length === 0;
34021
34769
  const { workspaceId, userId, live } = chunkJR2YSBD5_cjs.useConnectedWorkspace();
34022
- const { role, members } = chunkVLQCLQAS_cjs.useConnectedWorkspaceRole();
34770
+ const { role, members } = chunkTZYB22FM_cjs.useConnectedWorkspaceRole();
34023
34771
  const { data: workspaces } = react.useWorkspaces({ enabled: live });
34024
34772
  const workspace = workspaces?.find((w) => w.external_id === workspaceId);
34025
34773
  const workspaceName = workspace?.name;
@@ -34051,7 +34799,7 @@ function ConnectedFilesPage({
34051
34799
  [setPrefsViewMode, prefsKey]
34052
34800
  );
34053
34801
  const ownsViewer = !hostToggleDocument;
34054
- const viewerTabs = viewer?.tabs ?? chunkVWBYE3XY_cjs.DEFAULT_DOCUMENT_VIEWER_TABS;
34802
+ const viewerTabs = viewer?.tabs ?? chunkFQRJCAT2_cjs.DEFAULT_DOCUMENT_VIEWER_TABS;
34055
34803
  const [dialog, setDialog] = react$1.useState(null);
34056
34804
  const isDocumentViewerEnabled = ownsViewer ? dialog !== null : hostViewerDocumentId !== null;
34057
34805
  const shownPlaceRef = react$1.useRef(null);
@@ -34554,7 +35302,7 @@ function ConnectedFilesPage({
34554
35302
  viewMode === "grid" ? (
34555
35303
  // ‹ n / N › over the table's displayed rows; a step opens the document.
34556
35304
  /* @__PURE__ */ jsxRuntime.jsx(
34557
- chunkIZJ5L246_cjs.GridRowNavigator,
35305
+ chunkKWHGYHRC_cjs.GridRowNavigator,
34558
35306
  {
34559
35307
  gridApi,
34560
35308
  selectedId: viewingDocumentId ?? selectedDocumentIds[0] ?? null,
@@ -34857,7 +35605,7 @@ function ProcessingSection({
34857
35605
  tasks,
34858
35606
  onDelete
34859
35607
  }) {
34860
- return /* @__PURE__ */ jsxRuntime.jsx(chunkALK3PUUB_cjs.TaskSection, { title, count: count2, status, tooltip: SECTION_TOOLTIPS[status], children: /* @__PURE__ */ jsxRuntime.jsx(chunkCQQQIZU4_cjs.UploadTaskList, { tasks, title: "", onDelete, renderFileIcon: renderFileIcon2 }) });
35608
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkALK3PUUB_cjs.TaskSection, { title, count: count2, status, tooltip: SECTION_TOOLTIPS[status], children: /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.UploadTaskList, { tasks, title: "", onDelete, renderFileIcon: renderFileIcon2 }) });
34861
35609
  }
34862
35610
  function ConnectedDocumentProcessingPanel({
34863
35611
  workspaceId,
@@ -36581,7 +37329,7 @@ function ConnectedAccountCluster({
36581
37329
  }
36582
37330
  );
36583
37331
  }
36584
- var gbp3 = (pence) => chunkE3L5DB5F_cjs.formatMoney(pence, "gbp");
37332
+ var gbp3 = (pence) => chunkGEZB3OEC_cjs.formatMoney(pence, "gbp");
36585
37333
  function addonArrivalMessage(addons, added) {
36586
37334
  const parts = [];
36587
37335
  if (added.ai > 0) parts.push(`${react.formatGbp(added.ai * addons.block_ai_gbp)} of AI usage`);
@@ -36988,10 +37736,10 @@ var FreshChatModel = () => (useFreshChatModel(), null);
36988
37736
  var WorkspaceOpenMetrics = ({ measure }) => (useWorkspaceOpenMetrics(measure), null);
36989
37737
  var Prefetch = ({ loaders }) => (usePrefetchChunks(loaders), null);
36990
37738
  function GuidedRuns() {
36991
- chunkIWMHQTVL_cjs.useRemoteControlSessionReset();
37739
+ chunkMI3N3ZOT_cjs.useRemoteControlSessionReset();
36992
37740
  const { cursorMark } = chunkORELHENJ_cjs.useGuidedRuns();
36993
37741
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
36994
- /* @__PURE__ */ jsxRuntime.jsx(chunkIZJ5L246_cjs.GuidedCursor, { markSrc: cursorMark }),
37742
+ /* @__PURE__ */ jsxRuntime.jsx(chunkKWHGYHRC_cjs.GuidedCursor, { markSrc: cursorMark }),
36995
37743
  /* @__PURE__ */ jsxRuntime.jsx(ConnectedRemoteControlConsent, {})
36996
37744
  ] });
36997
37745
  }
@@ -37002,7 +37750,7 @@ function ConnectedAppRuntime({
37002
37750
  prefetch
37003
37751
  }) {
37004
37752
  const on = (effect) => effects[effect] !== false;
37005
- const { stripeEnabled } = chunkE3L5DB5F_cjs.useBillingSupport();
37753
+ const { stripeEnabled } = chunkGEZB3OEC_cjs.useBillingSupport();
37006
37754
  const welcomeDialog = on("welcomeDialog") && stripeEnabled;
37007
37755
  const resolveFirstLogin = () => {
37008
37756
  if (welcomeDialog) skipWelcomeDialogThisSession();
@@ -37025,7 +37773,7 @@ function ConnectedAppRuntime({
37025
37773
  on("pageTransition") && /* @__PURE__ */ jsxRuntime.jsx(PageTransition, {}),
37026
37774
  on("freshChatModel") && /* @__PURE__ */ jsxRuntime.jsx(FreshChatModel, {}),
37027
37775
  on("workspaceOpenMetrics") && measure && /* @__PURE__ */ jsxRuntime.jsx(WorkspaceOpenMetrics, { measure }),
37028
- on("prefetch") && /* @__PURE__ */ jsxRuntime.jsx(Prefetch, { loaders: [...prefetch ?? [], ...chunkIZJ5L246_cjs.KIT_CHUNK_LOADERS] }),
37776
+ on("prefetch") && /* @__PURE__ */ jsxRuntime.jsx(Prefetch, { loaders: [...prefetch ?? [], ...chunkKWHGYHRC_cjs.KIT_CHUNK_LOADERS] }),
37029
37777
  on("guidedRuns") && /* @__PURE__ */ jsxRuntime.jsx(GuidedRuns, {})
37030
37778
  ] });
37031
37779
  }
@@ -37490,7 +38238,7 @@ async function renderAnnotatedScreenshot(image, marks, text) {
37490
38238
  )
37491
38239
  );
37492
38240
  }
37493
- return chunkIWMHQTVL_cjs.canvasToBlob(canvas);
38241
+ return chunkMI3N3ZOT_cjs.canvasToBlob(canvas);
37494
38242
  }
37495
38243
  function ReportProblemDialog({
37496
38244
  open,
@@ -37784,7 +38532,7 @@ function ReportProblemDialog({
37784
38532
  hidden: ticketId !== null,
37785
38533
  children: [
37786
38534
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground", children: "No screenshot attached." }),
37787
- chunkIWMHQTVL_cjs.canCaptureScreen() ? /* @__PURE__ */ jsxRuntime.jsxs(ui.Button, { size: "sm", variant: "outline", onClick: onRetake, "data-testid": "report-retake", children: [
38535
+ chunkMI3N3ZOT_cjs.canCaptureScreen() ? /* @__PURE__ */ jsxRuntime.jsxs(ui.Button, { size: "sm", variant: "outline", onClick: onRetake, "data-testid": "report-retake", children: [
37788
38536
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Camera, { className: "mr-1 size-4" }),
37789
38537
  " Take a screenshot"
37790
38538
  ] }) : /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "inline-flex cursor-pointer items-center gap-1 font-medium text-primary", children: [
@@ -37848,10 +38596,10 @@ function useReportProblem(options = {}) {
37848
38596
  setPhase("capturing");
37849
38597
  await new Promise((resolve) => window.setTimeout(resolve, 200));
37850
38598
  try {
37851
- setFrame(await chunkIWMHQTVL_cjs.captureCurrentTab());
38599
+ setFrame(await chunkMI3N3ZOT_cjs.captureCurrentTab());
37852
38600
  setImage(null);
37853
38601
  } catch (error) {
37854
- const code = error instanceof chunkIWMHQTVL_cjs.ScreenCaptureError ? error.code : "failed";
38602
+ const code = error instanceof chunkMI3N3ZOT_cjs.ScreenCaptureError ? error.code : "failed";
37855
38603
  if (code === "failed") {
37856
38604
  notify19("Couldn't capture the screen. You can still describe the problem.", "error");
37857
38605
  }
@@ -37972,21 +38720,21 @@ function suppliedKinds(context) {
37972
38720
  return kinds;
37973
38721
  }
37974
38722
  function resolveLaunchInputs(workflow, request) {
37975
- const fromContext = request.context ? chunkQRAQZTJE_cjs.inputsFromContext(workflow, request.context) : {};
38723
+ const fromContext = request.context ? chunkJN5YMHGI_cjs.inputsFromContext(workflow, request.context) : {};
37976
38724
  const fileField = workflow.inputs.find((f) => f.type === "scope" || f.type === "documents");
37977
38725
  const fromScope = request.scope && fileField ? { [fileField.name]: request.scope } : {};
37978
38726
  return { ...fromContext, ...fromScope, ...request.inputs };
37979
38727
  }
37980
38728
  function useWorkflowLaunch() {
37981
- const { skills } = chunkUFT22LAB_cjs.useWorkflowDefinitions();
38729
+ const { skills } = chunkHBUHOCWF_cjs.useWorkflowDefinitions();
37982
38730
  const launch = react$1.useCallback(
37983
- (workflowId, options = {}) => chunkCQQQIZU4_cjs.openWorkflowLaunch({ workflowId, ...options }),
38731
+ (workflowId, options = {}) => chunkOD6NGGL3_cjs.openWorkflowLaunch({ workflowId, ...options }),
37984
38732
  []
37985
38733
  );
37986
38734
  const itemsFor = react$1.useCallback(
37987
38735
  (context, options = {}) => {
37988
38736
  const { fileField, ...launchOptions } = options;
37989
- return chunkQRAQZTJE_cjs.workflowsAccepting(skills, suppliedKinds(context)).filter(
38737
+ return chunkJN5YMHGI_cjs.workflowsAccepting(skills, suppliedKinds(context)).filter(
37990
38738
  (w) => !fileField || w.inputs.some((f) => f.type === fileField && f.context !== void 0)
37991
38739
  ).map((w) => ({
37992
38740
  id: w.id,
@@ -38009,17 +38757,17 @@ function useWorkflowLaunch() {
38009
38757
  return { launch, itemsFor, scopeItemsFor };
38010
38758
  }
38011
38759
  function Inner() {
38012
- const request = chunkCQQQIZU4_cjs.useWorkflowLaunchRequest();
38013
- const close = chunkCQQQIZU4_cjs.closeWorkflowLaunch;
38014
- const { skills } = chunkUFT22LAB_cjs.useWorkflowDefinitions();
38015
- const run = chunk2F57IO7S_cjs.useLaunchWorkflow({ landing: request?.landing });
38760
+ const request = chunkOD6NGGL3_cjs.useWorkflowLaunchRequest();
38761
+ const close = chunkOD6NGGL3_cjs.closeWorkflowLaunch;
38762
+ const { skills } = chunkHBUHOCWF_cjs.useWorkflowDefinitions();
38763
+ const run = chunkXCW6OY7E_cjs.useLaunchWorkflow({ landing: request?.landing });
38016
38764
  const workflow = skills.find((w) => w.id === request?.workflowId);
38017
38765
  const inputs = react$1.useMemo(
38018
38766
  () => workflow && request ? resolveLaunchInputs(workflow, request) : void 0,
38019
38767
  [workflow, request]
38020
38768
  );
38021
38769
  const complete = Boolean(
38022
- workflow && inputs && !Object.keys(chunkQRAQZTJE_cjs.validateInputs(workflow, { ...chunkQRAQZTJE_cjs.defaultInputs(workflow), ...inputs })).length
38770
+ workflow && inputs && !Object.keys(chunkJN5YMHGI_cjs.validateInputs(workflow, { ...chunkJN5YMHGI_cjs.defaultInputs(workflow), ...inputs })).length
38023
38771
  );
38024
38772
  const autoStart = Boolean(request?.autoStart && complete);
38025
38773
  react$1.useEffect(() => {
@@ -38030,13 +38778,13 @@ function Inner() {
38030
38778
  if (!autoStart) return;
38031
38779
  close();
38032
38780
  void Promise.resolve(
38033
- run(chunkQRAQZTJE_cjs.buildLaunch(workflow, { ...chunkQRAQZTJE_cjs.defaultInputs(workflow), ...inputs }))
38781
+ run(chunkJN5YMHGI_cjs.buildLaunch(workflow, { ...chunkJN5YMHGI_cjs.defaultInputs(workflow), ...inputs }))
38034
38782
  ).catch(() => {
38035
38783
  });
38036
38784
  }, [request, workflow, autoStart]);
38037
38785
  if (!request || !workflow || autoStart) return null;
38038
38786
  return /* @__PURE__ */ jsxRuntime.jsx(
38039
- chunk2F57IO7S_cjs.ConnectedWorkflowStart,
38787
+ chunkXCW6OY7E_cjs.ConnectedWorkflowStart,
38040
38788
  {
38041
38789
  workflows: skills,
38042
38790
  showTiles: false,
@@ -38048,7 +38796,7 @@ function Inner() {
38048
38796
  );
38049
38797
  }
38050
38798
  function WorkflowLaunchHost() {
38051
- return chunkCQQQIZU4_cjs.useWorkflowLaunchRequest() ? /* @__PURE__ */ jsxRuntime.jsx(Inner, {}) : null;
38799
+ return chunkOD6NGGL3_cjs.useWorkflowLaunchRequest() ? /* @__PURE__ */ jsxRuntime.jsx(Inner, {}) : null;
38052
38800
  }
38053
38801
  function isNeedsConfirmationDetail(detail) {
38054
38802
  return typeof detail === "object" && detail !== null && detail.needs_confirmation === "resource_private";
@@ -38357,7 +39105,7 @@ function ConnectedConversationSettings() {
38357
39105
  /* @__PURE__ */ jsxRuntime.jsx(
38358
39106
  chunkT73BHNQX_cjs.ModelSelectionSection,
38359
39107
  {
38360
- selector: /* @__PURE__ */ jsxRuntime.jsx(chunkIWMHQTVL_cjs.ConnectedModelSelector, {}),
39108
+ selector: /* @__PURE__ */ jsxRuntime.jsx(chunkMI3N3ZOT_cjs.ConnectedModelSelector, {}),
38361
39109
  onUseDefaults: settings.resetToDefaults
38362
39110
  }
38363
39111
  )
@@ -38416,7 +39164,7 @@ var BUILTIN_GLOBAL_DIALOGS = {
38416
39164
  testId: "workspace-transfer-modal"
38417
39165
  }
38418
39166
  ),
38419
- logout: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(chunkIWMHQTVL_cjs.ConnectedLogoutDialog, { open: props !== null, onClose }),
39167
+ logout: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(chunkMI3N3ZOT_cjs.ConnectedLogoutDialog, { open: props !== null, onClose }),
38420
39168
  conversationSettings: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(ConnectedConversationSettingsDialog, { open: props !== null, onClose }),
38421
39169
  unarchiveWorkspace: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(ConnectedUnarchiveWorkspaceDialog, { workspaceId: props?.workspaceId ?? null, onClose }),
38422
39170
  productionSet: ConnectedProductionSetDialog,
@@ -38466,7 +39214,7 @@ var ConversationEntity = react$1.memo(function ConversationEntity2({
38466
39214
  );
38467
39215
  const icon2 = /* @__PURE__ */ jsxRuntime.jsx(ui.ThreadVisibilityIcon, { shared: isShared, className: "w-4 h-4 shrink-0" });
38468
39216
  return /* @__PURE__ */ jsxRuntime.jsx(
38469
- chunkTP5PGWIO_cjs.EntityChip,
39217
+ chunkQFXOTJ6G_cjs.EntityChip,
38470
39218
  {
38471
39219
  icon: icon2,
38472
39220
  label: title,
@@ -38485,22 +39233,22 @@ function WorkflowRunStatusCell({ conversation }) {
38485
39233
  });
38486
39234
  const { data: members = [] } = react.useWorkspaceUsers();
38487
39235
  const me = react.useArbiSession().user?.external_id;
38488
- const steps = chunkTP5PGWIO_cjs.fromPlanSteps(conversation.plan?.steps ?? []);
38489
- const states = chunkQGVOT7E4_cjs.stepStatesFromActivity(activity.data ?? []);
39236
+ const steps = chunkQFXOTJ6G_cjs.fromPlanSteps(conversation.plan?.steps ?? []);
39237
+ const states = chunkEQTZQD66_cjs.stepStatesFromActivity(activity.data ?? []);
38490
39238
  const nameOf = (id) => {
38491
39239
  if (id === me) return "you";
38492
39240
  const person = members.find((m) => m.user.external_id === id)?.user;
38493
39241
  return person ? ui.getUserDisplayName(person) : void 0;
38494
39242
  };
38495
39243
  return /* @__PURE__ */ jsxRuntime.jsx(
38496
- chunkCQQQIZU4_cjs.WorkflowRunStatus,
39244
+ chunkOD6NGGL3_cjs.WorkflowRunStatus,
38497
39245
  {
38498
39246
  steps,
38499
39247
  states,
38500
- assigneeOf: (step) => chunkQGVOT7E4_cjs.canAssign(step) ? chunkQGVOT7E4_cjs.assigneeName(step.assignee, {
39248
+ assigneeOf: (step) => chunkEQTZQD66_cjs.canAssign(step) ? chunkEQTZQD66_cjs.assigneeName(step.assignee, {
38501
39249
  nameOf,
38502
39250
  inputs: conversation.skill_inputs ?? {},
38503
- fields: chunkQGVOT7E4_cjs.runFieldsOf(steps),
39251
+ fields: chunkEQTZQD66_cjs.runFieldsOf(steps),
38504
39252
  announcedTo: states[step.id]?.announcedTo
38505
39253
  }) : void 0,
38506
39254
  isLoading: activity.isLoading,
@@ -38527,7 +39275,7 @@ function ConversationStatusCell({ conversation }) {
38527
39275
  if (conversation.plan?.steps?.length && !isLiveGenerating)
38528
39276
  return /* @__PURE__ */ jsxRuntime.jsx(WorkflowRunStatusCell, { conversation });
38529
39277
  return /* @__PURE__ */ jsxRuntime.jsx(
38530
- chunkCQQQIZU4_cjs.ThreadStatusLine,
39278
+ chunkOD6NGGL3_cjs.ThreadStatusLine,
38531
39279
  {
38532
39280
  state: threadStateOf(conversation, isLiveGenerating),
38533
39281
  className: "h-full",
@@ -38833,7 +39581,7 @@ function ConnectedThreadLauncher({ autoFocus }) {
38833
39581
  const [draft, setDraft] = react$1.useState("");
38834
39582
  const input = react$1.useRef(null);
38835
39583
  const { openNewConversation } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
38836
- const slashWorkflows = chunkXF355M7O_cjs.useSlashSkillWorkflows({ landing: "chat" });
39584
+ const slashWorkflows = chunk2Z25MUAY_cjs.useSlashSkillWorkflows({ landing: "chat" });
38837
39585
  const skills = react$1.useMemo(() => ({ openFor: slashWorkflows.openFor }), [slashWorkflows.openFor]);
38838
39586
  react$1.useEffect(() => {
38839
39587
  if (autoFocus) input.current?.focus();
@@ -38843,10 +39591,10 @@ function ConnectedThreadLauncher({ autoFocus }) {
38843
39591
  if (!slashWorkflows.openForDraft(draft)) openNewConversation({ prompt: draft });
38844
39592
  setDraft("");
38845
39593
  };
38846
- return /* @__PURE__ */ jsxRuntime.jsxs(chunkM2FOXGJU_cjs.ComposerDock, { children: [
39594
+ return /* @__PURE__ */ jsxRuntime.jsxs(chunkF6CEPWIF_cjs.ComposerDock, { children: [
38847
39595
  slashWorkflows.launcher,
38848
- /* @__PURE__ */ jsxRuntime.jsx(chunkM2FOXGJU_cjs.ComposerContainer, { className: "mx-auto max-w-[49rem] px-3 sm:px-6", children: /* @__PURE__ */ jsxRuntime.jsx(
38849
- chunkIWMHQTVL_cjs.ConversationComposer,
39596
+ /* @__PURE__ */ jsxRuntime.jsx(chunkF6CEPWIF_cjs.ComposerContainer, { className: "mx-auto max-w-[49rem] px-3 sm:px-6", children: /* @__PURE__ */ jsxRuntime.jsx(
39597
+ chunkMI3N3ZOT_cjs.ConversationComposer,
38850
39598
  {
38851
39599
  value: draft,
38852
39600
  onValueChange: setDraft,
@@ -38855,8 +39603,8 @@ function ConnectedThreadLauncher({ autoFocus }) {
38855
39603
  isConversationEmpty: true,
38856
39604
  shouldOfferFollowUp: false,
38857
39605
  skills,
38858
- modelSelector: /* @__PURE__ */ jsxRuntime.jsx(chunkIWMHQTVL_cjs.ConnectedModelSelector, { variant: "compact" }),
38859
- rightButton: /* @__PURE__ */ jsxRuntime.jsx(chunkM2FOXGJU_cjs.ComposerSend, { onSend: send, disabled: !draft.trim() })
39606
+ modelSelector: /* @__PURE__ */ jsxRuntime.jsx(chunkMI3N3ZOT_cjs.ConnectedModelSelector, { variant: "compact" }),
39607
+ rightButton: /* @__PURE__ */ jsxRuntime.jsx(chunkF6CEPWIF_cjs.ComposerSend, { onSend: send, disabled: !draft.trim() })
38860
39608
  }
38861
39609
  ) })
38862
39610
  ] });
@@ -38864,9 +39612,9 @@ function ConnectedThreadLauncher({ autoFocus }) {
38864
39612
  var START_VISIBLE = 8;
38865
39613
  var START_SEARCH_ABOVE = 8;
38866
39614
  function ConnectedConversationStart() {
38867
- const { start } = chunkUFT22LAB_cjs.useWorkflowDefinitions();
39615
+ const { start } = chunkHBUHOCWF_cjs.useWorkflowDefinitions();
38868
39616
  const { openSkillsBrowser } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
38869
- const canBrowse = chunkUFT22LAB_cjs.useCanBrowseSkills();
39617
+ const canBrowse = chunkHBUHOCWF_cjs.useCanBrowseSkills();
38870
39618
  const [query, setQuery] = react$1.useState("");
38871
39619
  const q = query.trim().toLowerCase();
38872
39620
  const shown = react$1.useMemo(() => {
@@ -38880,7 +39628,7 @@ function ConnectedConversationStart() {
38880
39628
  const browse = openSkillsBrowser && canBrowse ? [
38881
39629
  {
38882
39630
  id: "browse-all",
38883
- iconNode: chunk7JLJH5CW_cjs.renderWorkflowIcon("library"),
39631
+ iconNode: chunk5A6T4W46_cjs.renderWorkflowIcon("library"),
38884
39632
  title: "Browse all",
38885
39633
  description: "See every skill, make a copy, add your own",
38886
39634
  onSelect: () => openSkillsBrowser(),
@@ -38904,7 +39652,7 @@ function ConnectedConversationStart() {
38904
39652
  )
38905
39653
  ] }),
38906
39654
  /* @__PURE__ */ jsxRuntime.jsx(
38907
- chunk2F57IO7S_cjs.ConnectedWorkflowStart,
39655
+ chunkXCW6OY7E_cjs.ConnectedWorkflowStart,
38908
39656
  {
38909
39657
  workflows: start,
38910
39658
  tileWorkflows: shown,
@@ -38986,7 +39734,7 @@ function AgentBarShell({
38986
39734
  }, [isStepsExpanded, steps]);
38987
39735
  const visibleStepCount = react$1.useMemo(() => browser.topLevelAgentSteps(steps ?? []).length, [steps]);
38988
39736
  return /* @__PURE__ */ jsxRuntime.jsx(
38989
- chunkCQQQIZU4_cjs.AgentBar,
39737
+ chunkOD6NGGL3_cjs.AgentBar,
38990
39738
  {
38991
39739
  className,
38992
39740
  testId,
@@ -38998,7 +39746,7 @@ function AgentBarShell({
38998
39746
  drawerRef: scrollRef,
38999
39747
  onDrawerScroll: handleDrawerScroll,
39000
39748
  drawer: /* @__PURE__ */ jsxRuntime.jsx(
39001
- chunkIWMHQTVL_cjs.AgentSteps,
39749
+ chunkMI3N3ZOT_cjs.AgentSteps,
39002
39750
  {
39003
39751
  steps: stepList,
39004
39752
  isStreaming,
@@ -39042,7 +39790,7 @@ function AgentControlBar({
39042
39790
  const isPaused = controlState === "paused" || controlState === "resuming";
39043
39791
  const steps = agentSteps ?? [];
39044
39792
  const currentStep = browser.getCurrentStep(steps);
39045
- const currentPresentation = chunkTP5PGWIO_cjs.getCurrentAgentStepPresentation(steps);
39793
+ const currentPresentation = chunkQFXOTJ6G_cjs.getCurrentAgentStepPresentation(steps);
39046
39794
  const CurrentStepIcon = currentPresentation?.Icon;
39047
39795
  const stepLabel2 = currentPresentation?.description ?? "Agent working\u2026";
39048
39796
  const runningLanes = browser.extractSubagentLanes(steps).filter((l) => l.status === "running");
@@ -39050,7 +39798,7 @@ function AgentControlBar({
39050
39798
  const waitingOnChildren = runningLanes.length > 0 && ["sub_agent", "spawn_subagent", "deep_research", "run_skill"].includes(currentTool ?? "");
39051
39799
  const waitingLabel = runningLanes.length === 1 ? `Waiting on ${runningLanes[0].job}` : `Waiting on ${runningLanes.length} sub-agents`;
39052
39800
  const liveTimerNode = liveTimer && /* @__PURE__ */ jsxRuntime.jsx(
39053
- chunkIWMHQTVL_cjs.MessageLiveSeconds,
39801
+ chunkMI3N3ZOT_cjs.MessageLiveSeconds,
39054
39802
  {
39055
39803
  ...liveTimer,
39056
39804
  offsetSeconds: currentStep?.t ?? 0,
@@ -39059,7 +39807,7 @@ function AgentControlBar({
39059
39807
  }
39060
39808
  );
39061
39809
  const status = /* @__PURE__ */ jsxRuntime.jsx(
39062
- chunkCQQQIZU4_cjs.AgentBarStatus,
39810
+ chunkOD6NGGL3_cjs.AgentBarStatus,
39063
39811
  {
39064
39812
  state: showState ? controlState : void 0,
39065
39813
  stateLabel: STATE_LABEL[controlState],
@@ -39101,7 +39849,7 @@ function AgentControlBar({
39101
39849
  ];
39102
39850
  const controls = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
39103
39851
  onStop && /* @__PURE__ */ jsxRuntime.jsx(
39104
- chunkCQQQIZU4_cjs.AgentBarIconButton,
39852
+ chunkOD6NGGL3_cjs.AgentBarIconButton,
39105
39853
  {
39106
39854
  onClick: onStop,
39107
39855
  title: "Stop",
@@ -39110,22 +39858,22 @@ function AgentControlBar({
39110
39858
  children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Square, { className: "h-3 w-3", fill: "currentColor" })
39111
39859
  }
39112
39860
  ),
39113
- /* @__PURE__ */ jsxRuntime.jsx(chunkCQQQIZU4_cjs.AgentBarMenu, { items: menuItems })
39861
+ /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.AgentBarMenu, { items: menuItems })
39114
39862
  ] });
39115
39863
  const displayedQueuedMessages = (transientQueuedMessages ?? []).filter(
39116
39864
  (message) => !message.serverId || !queuedMessages.some((queued) => queued.external_id === message.serverId)
39117
39865
  );
39118
39866
  const queuedNotes = displayedQueuedMessages.filter((message) => message.content);
39119
- const below = probeAnswer || queuedNotes.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(chunkCQQQIZU4_cjs.AgentBarNotes, { children: [
39867
+ const below = probeAnswer || queuedNotes.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(chunkOD6NGGL3_cjs.AgentBarNotes, { children: [
39120
39868
  queuedNotes.map((message, index) => /* @__PURE__ */ jsxRuntime.jsx(
39121
- chunkCQQQIZU4_cjs.AgentBarQueuedNote,
39869
+ chunkOD6NGGL3_cjs.AgentBarQueuedNote,
39122
39870
  {
39123
39871
  text: message.content ?? "",
39124
39872
  isAcknowledged: message.acknowledged
39125
39873
  },
39126
39874
  index
39127
39875
  )),
39128
- probeAnswer && /* @__PURE__ */ jsxRuntime.jsx(chunkCQQQIZU4_cjs.AgentBarProbeAnswer, { answer: probeAnswer.answer })
39876
+ probeAnswer && /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.AgentBarProbeAnswer, { answer: probeAnswer.answer })
39129
39877
  ] }) : null;
39130
39878
  return /* @__PURE__ */ jsxRuntime.jsx(
39131
39879
  AgentBarShell,
@@ -39152,7 +39900,7 @@ var ConversationSendButton = react$1.memo(function ConversationSendButton2({
39152
39900
  const recipients = react.assistantLabels(assistantName);
39153
39901
  const showRetryIcon = hasOrphanedMessage && draftMessage === "";
39154
39902
  return /* @__PURE__ */ jsxRuntime.jsx(
39155
- chunkM2FOXGJU_cjs.ComposerSend,
39903
+ chunkF6CEPWIF_cjs.ComposerSend,
39156
39904
  {
39157
39905
  onSend: onClick,
39158
39906
  isRetry: showRetryIcon,
@@ -39214,7 +39962,7 @@ var MicButton = react$1.memo(function MicButton2({
39214
39962
  const isBusy = isTranscribing;
39215
39963
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
39216
39964
  /* @__PURE__ */ jsxRuntime.jsx(
39217
- chunkM2FOXGJU_cjs.ComposerVoiceButton,
39965
+ chunkF6CEPWIF_cjs.ComposerVoiceButton,
39218
39966
  {
39219
39967
  isRecording,
39220
39968
  isBusy,
@@ -39253,7 +40001,7 @@ function ConnectedConversationEmpty({
39253
40001
  below
39254
40002
  }) {
39255
40003
  return /* @__PURE__ */ jsxRuntime.jsx(
39256
- chunkIDCD5TEZ_cjs.ConversationEmpty,
40004
+ chunkA6GBPE5E_cjs.ConversationEmpty,
39257
40005
  {
39258
40006
  hasDocuments,
39259
40007
  prompts: EXAMPLE_PROMPTS,
@@ -39308,7 +40056,7 @@ function ConversationAlert({
39308
40056
  }, [message, onRetryOrphaned, notify19]);
39309
40057
  if (type === "send-failed") {
39310
40058
  return /* @__PURE__ */ jsxRuntime.jsx(
39311
- chunkIDCD5TEZ_cjs.MessageAlert,
40059
+ chunkA6GBPE5E_cjs.MessageAlert,
39312
40060
  {
39313
40061
  title: "Message failed to send",
39314
40062
  description: errorMessage2 || "An error occurred while sending your message.",
@@ -39337,7 +40085,7 @@ function ConversationAlert({
39337
40085
  );
39338
40086
  }
39339
40087
  return /* @__PURE__ */ jsxRuntime.jsx(
39340
- chunkIDCD5TEZ_cjs.MessageAlert,
40088
+ chunkA6GBPE5E_cjs.MessageAlert,
39341
40089
  {
39342
40090
  title: type === "backend-failed" ? "Response Failed" : "Response Incomplete",
39343
40091
  description: type === "backend-failed" ? "The assistant's response failed. Use Retry to try again." : "Use Retry to try again, or type a new query.",
@@ -39734,7 +40482,7 @@ function useThreadScroll({
39734
40482
  const events = ["wheel", "touchstart", "keydown", "pointerdown"];
39735
40483
  events.forEach((e) => container.addEventListener(e, stop, { once: true, passive: true }));
39736
40484
  [500, 1e3, 1600, 2400].forEach(
39737
- (ms, i, all) => setTimeout(() => {
40485
+ (ms2, i, all) => setTimeout(() => {
39738
40486
  const el = document.querySelector(`[data-message-id="${messageId}"]`);
39739
40487
  if (!stopped && el) {
39740
40488
  const box = el.getBoundingClientRect();
@@ -39743,7 +40491,7 @@ function useThreadScroll({
39743
40491
  if (Math.abs(off) > 48) el.scrollIntoView({ behavior: "auto", block: "center" });
39744
40492
  }
39745
40493
  if (i === all.length - 1) events.forEach((e) => container.removeEventListener(e, stop));
39746
- }, ms)
40494
+ }, ms2)
39747
40495
  );
39748
40496
  }, []);
39749
40497
  react$1.useEffect(() => {
@@ -40134,7 +40882,7 @@ function ConversationThread({
40134
40882
  react$1.useEffect(() => {
40135
40883
  if (!isGenerating) setFirstTurnPrompt(null);
40136
40884
  }, [isGenerating]);
40137
- const slashWorkflows = chunkXF355M7O_cjs.useSlashSkillWorkflows({ landing: "current-chat" });
40885
+ const slashWorkflows = chunk2Z25MUAY_cjs.useSlashSkillWorkflows({ landing: "current-chat" });
40138
40886
  const composerSkills = react$1.useMemo(
40139
40887
  () => ({ openFor: slashWorkflows.openFor }),
40140
40888
  [slashWorkflows.openFor]
@@ -40240,7 +40988,7 @@ function ConversationThread({
40240
40988
  useStartRequestedDraft();
40241
40989
  const orphanedMessage = react.getOrphanedLastMessage(messageHistory, isGenerating, assistantMode);
40242
40990
  return /* @__PURE__ */ jsxRuntime.jsxs(chunkKLMNCBLY_cjs.ConversationBody, { children: [
40243
- /* @__PURE__ */ jsxRuntime.jsx(chunkKLMNCBLY_cjs.ConversationMain, { "data-testid": `conversation-${currentConversationId}`, children: threadsLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunkKLMNCBLY_cjs.ConversationLoading, {}) : messageHistory.length > 0 || isBranching ? /* @__PURE__ */ jsxRuntime.jsx(chunkIWMHQTVL_cjs.AskAgainContext.Provider, { value: handleAskAgain, children: /* @__PURE__ */ jsxRuntime.jsxs(chunkVJCSEMXT_cjs.TranscriptRunsContext.Provider, { value: transcriptRunInfo, children: [
40991
+ /* @__PURE__ */ jsxRuntime.jsx(chunkKLMNCBLY_cjs.ConversationMain, { "data-testid": `conversation-${currentConversationId}`, children: threadsLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunkKLMNCBLY_cjs.ConversationLoading, {}) : messageHistory.length > 0 || isBranching ? /* @__PURE__ */ jsxRuntime.jsx(chunkMI3N3ZOT_cjs.AskAgainContext.Provider, { value: handleAskAgain, children: /* @__PURE__ */ jsxRuntime.jsxs(chunkVJCSEMXT_cjs.TranscriptRunsContext.Provider, { value: transcriptRunInfo, children: [
40244
40992
  meetingCallExtId && transcriptLineCount > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center py-2", children: /* @__PURE__ */ jsxRuntime.jsx(
40245
40993
  chunkZBP4ZSAJ_cjs.ConversationFilter,
40246
40994
  {
@@ -40258,7 +41006,7 @@ function ConversationThread({
40258
41006
  ]
40259
41007
  }
40260
41008
  ) }),
40261
- /* @__PURE__ */ jsxRuntime.jsx(chunkIWMHQTVL_cjs.ConnectedMessageArea, { ref: containerRef, messages: visibleMessages }),
41009
+ /* @__PURE__ */ jsxRuntime.jsx(chunkMI3N3ZOT_cjs.ConnectedMessageArea, { ref: containerRef, messages: visibleMessages }),
40262
41010
  showProvisional && /* @__PURE__ */ jsxRuntime.jsx(chunkBQ5RIWWT_cjs.ProvisionalSpeakers, { ids: provisionalSpeakers })
40263
41011
  ] }) }) : meetingCallExtId ? (
40264
41012
  // A meeting thread with nothing yet: call-aware, not the upload prompt.
@@ -40266,7 +41014,7 @@ function ConversationThread({
40266
41014
  /* @__PURE__ */ jsxRuntime.jsx(chunkBQ5RIWWT_cjs.CallConversationEmpty, { callExtId: meetingCallExtId }),
40267
41015
  /* @__PURE__ */ jsxRuntime.jsx(chunkBQ5RIWWT_cjs.ProvisionalSpeakers, { ids: provisionalSpeakers })
40268
41016
  ] })
40269
- ) : currentTask && currentTask.status != null ? /* @__PURE__ */ jsxRuntime.jsx(chunkCQQQIZU4_cjs.TaskEmptyState, { task: currentTask }) : pendingFirstTurn && isGenerating ? /* @__PURE__ */ jsxRuntime.jsx(chunkIWMHQTVL_cjs.ConnectedMessageArea, { ref: containerRef, messages: pendingFirstTurn }) : /* @__PURE__ */ jsxRuntime.jsx(
41017
+ ) : currentTask && currentTask.status != null ? /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.TaskEmptyState, { task: currentTask }) : pendingFirstTurn && isGenerating ? /* @__PURE__ */ jsxRuntime.jsx(chunkMI3N3ZOT_cjs.ConnectedMessageArea, { ref: containerRef, messages: pendingFirstTurn }) : /* @__PURE__ */ jsxRuntime.jsx(
40270
41018
  ConnectedConversationEmpty,
40271
41019
  {
40272
41020
  hasDocuments: allWorkspaceDocuments.length > 0,
@@ -40281,17 +41029,17 @@ function ConversationThread({
40281
41029
  }
40282
41030
  ) }),
40283
41031
  /* @__PURE__ */ jsxRuntime.jsx(
40284
- chunkM2FOXGJU_cjs.ComposerDock,
41032
+ chunkF6CEPWIF_cjs.ComposerDock,
40285
41033
  {
40286
41034
  floating: /* @__PURE__ */ jsxRuntime.jsx(
40287
- chunkM2FOXGJU_cjs.ScrollToBottom,
41035
+ chunkF6CEPWIF_cjs.ScrollToBottom,
40288
41036
  {
40289
41037
  className: "left-auto right-3 translate-x-0",
40290
41038
  show: showScrollToBottom,
40291
41039
  onClick: scrollToBottom
40292
41040
  }
40293
41041
  ),
40294
- children: /* @__PURE__ */ jsxRuntime.jsxs(chunkM2FOXGJU_cjs.ComposerContainer, { className: "mx-auto max-w-[49rem] px-3 sm:px-6", children: [
41042
+ children: /* @__PURE__ */ jsxRuntime.jsxs(chunkF6CEPWIF_cjs.ComposerContainer, { className: "mx-auto max-w-[49rem] px-3 sm:px-6", children: [
40295
41043
  orphanedMessage ? /* @__PURE__ */ jsxRuntime.jsx(
40296
41044
  ConversationAlert,
40297
41045
  {
@@ -40364,7 +41112,7 @@ function ConversationThread({
40364
41112
  }
40365
41113
  ),
40366
41114
  /* @__PURE__ */ jsxRuntime.jsx(
40367
- chunkIWMHQTVL_cjs.ConversationComposer,
41115
+ chunkMI3N3ZOT_cjs.ConversationComposer,
40368
41116
  {
40369
41117
  handleSendMessage: handleUserSend,
40370
41118
  placeholder: pendingAnswer ? assistant.answerPlaceholder : void 0,
@@ -40709,7 +41457,7 @@ function ConnectedThreadsPage({
40709
41457
  };
40710
41458
  const page = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full min-h-0 flex-col", "data-testid": "threads-page", children: [
40711
41459
  /* @__PURE__ */ jsxRuntime.jsx("main", { className: "flex min-h-0 flex-1 flex-col bg-background", children: /* @__PURE__ */ jsxRuntime.jsx(
40712
- chunkCQQQIZU4_cjs.ConversationListView,
41460
+ chunkOD6NGGL3_cjs.ConversationListView,
40713
41461
  {
40714
41462
  showHeader,
40715
41463
  conversations: tasks,
@@ -40728,7 +41476,7 @@ function ConnectedThreadsPage({
40728
41476
  renderLabels: threadLabels.renderLabels,
40729
41477
  labelText: threadLabels.labelText,
40730
41478
  renderBy: (row2) => /* @__PURE__ */ jsxRuntime.jsx(
40731
- chunkCQQQIZU4_cjs.ConversationTurnSpeaker,
41479
+ chunkOD6NGGL3_cjs.ConversationTurnSpeaker,
40732
41480
  {
40733
41481
  variant: "icon",
40734
41482
  role: row2.last_message_role,
@@ -41384,7 +42132,7 @@ function ConnectedChatContextButton({
41384
42132
  };
41385
42133
  const documentNoun = ui.getEntityLabel("DOCUMENT", count2 === 1 ? "SINGULAR" : "PLURAL").toLowerCase();
41386
42134
  const chip = /* @__PURE__ */ jsxRuntime.jsx(
41387
- chunkIDCD5TEZ_cjs.ContextChip,
42135
+ chunkA6GBPE5E_cjs.ContextChip,
41388
42136
  {
41389
42137
  count: count2,
41390
42138
  label: `${count2} ${documentNoun} in this chat`,
@@ -41609,7 +42357,7 @@ function ConnectedConversationPage({
41609
42357
  );
41610
42358
  const { data: workspaceTags = [] } = react.useTags();
41611
42359
  const { tagId: threadTagId, clear: clearThreadTag } = useThreadTagFilter();
41612
- const historyCount = chunkCQQQIZU4_cjs.filterConversationRows(
42360
+ const historyCount = chunkOD6NGGL3_cjs.filterConversationRows(
41613
42361
  threadTagId ? conversations.filter((row2) => row2.label_ext_ids?.includes(threadTagId)) : conversations,
41614
42362
  threadFilter,
41615
42363
  (row2) => workspaceTags.filter((tag) => row2.label_ext_ids?.includes(tag.external_id)).map((tag) => tag.name).join(" "),
@@ -41691,7 +42439,7 @@ function ConnectedConversationPage({
41691
42439
  ] })
41692
42440
  }
41693
42441
  ),
41694
- isInChat && /* @__PURE__ */ jsxRuntime.jsx(chunkYP5EBGLU_cjs.ConnectedThreadTaskBar, { conversationId: currentConversationId })
42442
+ isInChat && /* @__PURE__ */ jsxRuntime.jsx(chunkGOQV6NOK_cjs.ConnectedThreadTaskBar, { conversationId: currentConversationId })
41695
42443
  ] }),
41696
42444
  isInChat && /* @__PURE__ */ jsxRuntime.jsx(
41697
42445
  ConversationThread,
@@ -41900,7 +42648,7 @@ function SsoResendVerificationButton({
41900
42648
  onClick: async () => handleResendEmailVerification(),
41901
42649
  disabled: loading || disabled,
41902
42650
  "aria-label": "Resend verification email",
41903
- children: loading ? /* @__PURE__ */ jsxRuntime.jsx(chunkIZJ5L246_cjs.LoadingIndicator, {}) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
42651
+ children: loading ? /* @__PURE__ */ jsxRuntime.jsx(chunkKWHGYHRC_cjs.LoadingIndicator, {}) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
41904
42652
  "Didn't get a verification email? ",
41905
42653
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold", children: "Resend" })
41906
42654
  ] })
@@ -41911,16 +42659,16 @@ function SsoResendVerificationButton({
41911
42659
  }
41912
42660
  var NO_RECOVERY_KEY_WARNING = "Without your password or a recovery key, we cannot recover your account or data.";
41913
42661
  function ConnectedSsoCallback() {
41914
- const sso = chunkIWMHQTVL_cjs.useSsoSignIn();
42662
+ const sso = chunkMI3N3ZOT_cjs.useSsoSignIn();
41915
42663
  const { isAuthenticated: isAuthenticated2, isLoading, user } = sso;
41916
- const auth = chunkIWMHQTVL_cjs.useAuthPages();
42664
+ const auth = chunkMI3N3ZOT_cjs.useAuthPages();
41917
42665
  const { notify: notify19, navigate } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
41918
42666
  const passwordRules = auth.passwordRules;
41919
42667
  const isProcessing = react$1.useRef(false);
41920
42668
  const hasCheckedStatus = react$1.useRef(false);
41921
42669
  const [accessToken, setAccessToken] = react$1.useState(null);
41922
42670
  const [ssoStatus, setSsoStatus] = react$1.useState(null);
41923
- const ssoName = react$1.useMemo(() => chunkIWMHQTVL_cjs.resolveSsoName(user ?? {}, ssoStatus ?? {}), [user, ssoStatus]);
42671
+ const ssoName = react$1.useMemo(() => chunkMI3N3ZOT_cjs.resolveSsoName(user ?? {}, ssoStatus ?? {}), [user, ssoStatus]);
41924
42672
  const [password, setPassword] = react$1.useState("");
41925
42673
  const [confirmPassword, setConfirmPassword] = react$1.useState("");
41926
42674
  const [error, setError] = react$1.useState(null);
@@ -42098,7 +42846,7 @@ function ConnectedSsoCallback() {
42098
42846
  setIsCheckingStatus(true);
42099
42847
  try {
42100
42848
  console.info("[SSO] Checking user status...");
42101
- const response = await chunkIWMHQTVL_cjs.ssoAccountStatus(arbi, accessToken, user);
42849
+ const response = await chunkMI3N3ZOT_cjs.ssoAccountStatus(arbi, accessToken, user);
42102
42850
  console.info("[SSO] User status:", response.status);
42103
42851
  setSsoStatus(response);
42104
42852
  } catch (error2) {
@@ -42142,7 +42890,7 @@ function ConnectedSsoCallback() {
42142
42890
  setIsSubmitting(true);
42143
42891
  setError(null);
42144
42892
  try {
42145
- const { login, registered, linked } = await chunkIWMHQTVL_cjs.completeSsoSignIn(arbi, {
42893
+ const { login, registered, linked } = await chunkMI3N3ZOT_cjs.completeSsoSignIn(arbi, {
42146
42894
  token: accessToken,
42147
42895
  user,
42148
42896
  status: ssoStatus,
@@ -42424,7 +43172,7 @@ function ConnectedSsoCallback() {
42424
43172
  ssoStatus.status !== "new_user" && auth.footer
42425
43173
  ] }),
42426
43174
  /* @__PURE__ */ jsxRuntime.jsx(
42427
- chunkIWMHQTVL_cjs.ConnectedForgotPassword,
43175
+ chunkMI3N3ZOT_cjs.ConnectedForgotPassword,
42428
43176
  {
42429
43177
  open: showForgotPasswordModal,
42430
43178
  onOpenChange: setShowForgotPasswordModal,
@@ -42432,7 +43180,7 @@ function ConnectedSsoCallback() {
42432
43180
  }
42433
43181
  ),
42434
43182
  /* @__PURE__ */ jsxRuntime.jsx(
42435
- chunkIWMHQTVL_cjs.ConnectedPasswordChangeDialog,
43183
+ chunkMI3N3ZOT_cjs.ConnectedPasswordChangeDialog,
42436
43184
  {
42437
43185
  open: showChangePasswordModal,
42438
43186
  onClose: () => setShowChangePasswordModal(false),
@@ -42591,27 +43339,27 @@ function ConnectedOAuthConsentPage({
42591
43339
  oauthErrorRedirect(params.redirectUri, params.state, "access_denied");
42592
43340
  }
42593
43341
  if (error && !params) {
42594
- return /* @__PURE__ */ jsxRuntime.jsx(chunkCQQQIZU4_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkCQQQIZU4_cjs.ConsentMessage, { tone: "error", title: "Invalid Request", children: error }) });
43342
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentMessage, { tone: "error", title: "Invalid Request", children: error }) });
42595
43343
  }
42596
43344
  if (!params) {
42597
43345
  return null;
42598
43346
  }
42599
43347
  if (clientInfo?.isLocalAgentFlow) {
42600
- return /* @__PURE__ */ jsxRuntime.jsx(chunkCQQQIZU4_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkCQQQIZU4_cjs.ConsentMessage, { tone: "warning", title: "Close this tab", children: "This tab opened alongside the correct authorization page. Please close this tab and complete the connection in the other tab that opened at the same time." }) });
43348
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentMessage, { tone: "warning", title: "Close this tab", children: "This tab opened alongside the correct authorization page. Please close this tab and complete the connection in the other tab that opened at the same time." }) });
42601
43349
  }
42602
43350
  if (!isAuthenticated2) {
42603
43351
  return null;
42604
43352
  }
42605
43353
  if (callbackUrl) {
42606
- return /* @__PURE__ */ jsxRuntime.jsx(chunkCQQQIZU4_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkCQQQIZU4_cjs.ConsentCard, { size: "md", children: [
42607
- /* @__PURE__ */ jsxRuntime.jsxs(chunkCQQQIZU4_cjs.ConsentHeader, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ClipboardList, {}), title: "Almost there", children: [
43354
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkOD6NGGL3_cjs.ConsentCard, { size: "md", children: [
43355
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkOD6NGGL3_cjs.ConsentHeader, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ClipboardList, {}), title: "Almost there", children: [
42608
43356
  "A new tab has opened to complete the connection. If it succeeded, you can close this page. If you see a connection error there, paste the URL below into Claude Cowork \u2014",
42609
43357
  " ",
42610
43358
  copied ? "it's already copied to your clipboard." : "copy it first."
42611
43359
  ] }),
42612
- /* @__PURE__ */ jsxRuntime.jsxs(chunkCQQQIZU4_cjs.ConsentSection, { title: "Callback URL", children: [
42613
- /* @__PURE__ */ jsxRuntime.jsx(chunkCQQQIZU4_cjs.CopyableUrl, { url: callbackUrl, copied, onCopy: handleCopy }),
42614
- /* @__PURE__ */ jsxRuntime.jsxs(chunkCQQQIZU4_cjs.ConsentText, { variant: "hint", children: [
43360
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkOD6NGGL3_cjs.ConsentSection, { title: "Callback URL", children: [
43361
+ /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.CopyableUrl, { url: callbackUrl, copied, onCopy: handleCopy }),
43362
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkOD6NGGL3_cjs.ConsentText, { variant: "hint", children: [
42615
43363
  "In Claude Code, paste the URL at the prompt that says",
42616
43364
  " ",
42617
43365
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-mono text-foreground", children: '"paste the full redirect URL here"' }),
@@ -42620,17 +43368,17 @@ function ConnectedOAuthConsentPage({
42620
43368
  ] })
42621
43369
  ] }) });
42622
43370
  }
42623
- return /* @__PURE__ */ jsxRuntime.jsx(chunkCQQQIZU4_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkCQQQIZU4_cjs.ConsentCard, { children: [
42624
- /* @__PURE__ */ jsxRuntime.jsxs(chunkCQQQIZU4_cjs.ConsentHeader, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Link2, {}), title: `Connect to ${appName}`, children: [
42625
- /* @__PURE__ */ jsxRuntime.jsx(chunkCQQQIZU4_cjs.ConsentStrong, { children: clientInfo?.name ?? params.clientId }),
43371
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkOD6NGGL3_cjs.ConsentCard, { children: [
43372
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkOD6NGGL3_cjs.ConsentHeader, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Link2, {}), title: `Connect to ${appName}`, children: [
43373
+ /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentStrong, { children: clientInfo?.name ?? params.clientId }),
42626
43374
  " is requesting access to your ",
42627
43375
  appName,
42628
43376
  " workspace."
42629
43377
  ] }),
42630
- /* @__PURE__ */ jsxRuntime.jsx(chunkCQQQIZU4_cjs.ConsentSection, { title: "This will allow", children: /* @__PURE__ */ jsxRuntime.jsx(chunkCQQQIZU4_cjs.ConsentPermissionList, { items: permissions }) }),
42631
- error && /* @__PURE__ */ jsxRuntime.jsx(chunkCQQQIZU4_cjs.ConsentNotice, { tone: "error", children: error }),
42632
- /* @__PURE__ */ jsxRuntime.jsx(chunkCQQQIZU4_cjs.ConsentActions, { isLoading: loading, onDeny: handleDeny, onAllow: handleAllow }),
42633
- /* @__PURE__ */ jsxRuntime.jsx(chunkCQQQIZU4_cjs.ConsentFootnote, { children: footnote })
43378
+ /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentSection, { title: "This will allow", children: /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentPermissionList, { items: permissions }) }),
43379
+ error && /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentNotice, { tone: "error", children: error }),
43380
+ /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentActions, { isLoading: loading, onDeny: handleDeny, onAllow: handleAllow }),
43381
+ /* @__PURE__ */ jsxRuntime.jsx(chunkOD6NGGL3_cjs.ConsentFootnote, { children: footnote })
42634
43382
  ] }) });
42635
43383
  }
42636
43384
  function ConnectedSharedFilesPage({
@@ -42978,7 +43726,7 @@ function ConnectedShellTopbar({
42978
43726
  return /* @__PURE__ */ jsxRuntime.jsx(chunkXJEXFEWG_cjs.Shell.Topbar, { actions, children: landing });
42979
43727
  }
42980
43728
  var ConnectedAssistantDock2 = react$1.lazy(
42981
- () => import('../ai-IEIR7SC2.cjs').then((m) => ({ default: m.ConnectedAssistantDock }))
43729
+ () => import('../ai-4XJ2VFNS.cjs').then((m) => ({ default: m.ConnectedAssistantDock }))
42982
43730
  );
42983
43731
  var DOCK_TOGGLE_LABEL = "Assistant chat";
42984
43732
  var DOCK_TOGGLE_TEST_ID = "shell-dock-toggle";
@@ -42994,8 +43742,8 @@ function RoutedShellSidebar({
42994
43742
  const navigation = useShellNavigation();
42995
43743
  const { workspace } = react.useCurrentWorkspace();
42996
43744
  const isPhone = chunkFX3K6LNZ_cjs.useIsPhone();
42997
- const assistantDock = chunkKNGZZC4O_cjs.useAssistantDock();
42998
- const { isDockAvailable } = chunkIDCD5TEZ_cjs.useChatSurface();
43745
+ const assistantDock = chunkB3BZ6MNI_cjs.useAssistantDock();
43746
+ const { isDockAvailable } = chunkA6GBPE5E_cjs.useChatSurface();
42999
43747
  const tools = [
43000
43748
  ...hostTools.map((tool) => ({
43001
43749
  id: tool.id,
@@ -43062,7 +43810,7 @@ function RoutedShellTopbar({
43062
43810
  ] }),
43063
43811
  ask: ask !== false ? (props) => /* @__PURE__ */ jsxRuntime.jsx(ConnectedAskField, { ...props, labels: ask?.labels }) : void 0,
43064
43812
  actions: dock !== false && /* @__PURE__ */ jsxRuntime.jsx(
43065
- chunkKNGZZC4O_cjs.AssistantDockToggle,
43813
+ chunkB3BZ6MNI_cjs.AssistantDockToggle,
43066
43814
  {
43067
43815
  label: dock?.toggleLabel ?? DOCK_TOGGLE_LABEL,
43068
43816
  testId: DOCK_TOGGLE_TEST_ID
@@ -43086,7 +43834,7 @@ function RoutedShellTabBar({
43086
43834
  }
43087
43835
  function RoutedShellDock({ dock }) {
43088
43836
  const isPhone = chunkFX3K6LNZ_cjs.useIsPhone();
43089
- const { isOpen } = chunkKNGZZC4O_cjs.useAssistantDock();
43837
+ const { isOpen } = chunkB3BZ6MNI_cjs.useAssistantDock();
43090
43838
  const [opened, setOpened] = react$1.useState(isOpen);
43091
43839
  if (isOpen && !opened) setOpened(true);
43092
43840
  if (dock === false || !opened) return null;
@@ -43171,7 +43919,7 @@ function ShellNavigationProvider({
43171
43919
  );
43172
43920
  }
43173
43921
  var ConnectedPresentation = react$1.lazy(
43174
- () => import('../ConnectedPresentation-SI3L77J4.cjs').then((m) => ({ default: m.ConnectedPresentation }))
43922
+ () => import('../ConnectedPresentation-SEUUNFUA.cjs').then((m) => ({ default: m.ConnectedPresentation }))
43175
43923
  );
43176
43924
  function PresentationSlot() {
43177
43925
  const session = react.useArbiSessionStore();
@@ -43344,7 +44092,7 @@ function ConnectedTipBar({
43344
44092
  className,
43345
44093
  revealOnHover = false
43346
44094
  }) {
43347
- const { showHints, settingsLoaded, setShowHintsPersisted, setShowHints } = chunkIWMHQTVL_cjs.useContextualHints();
44095
+ const { showHints, settingsLoaded, setShowHintsPersisted, setShowHints } = chunkMI3N3ZOT_cjs.useContextualHints();
43348
44096
  const { dismissed, dismissTip } = react.useDismissedTips();
43349
44097
  const { notify: notify19 } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
43350
44098
  const { data: workspaces } = react.useWorkspaces();
@@ -43355,7 +44103,7 @@ function ConnectedTipBar({
43355
44103
  workspaceOpen,
43356
44104
  ...state
43357
44105
  };
43358
- const { tip, index, count: count2, previous, next, onHoverChange } = chunkIZJ5L246_cjs.useTipsPlacement({
44106
+ const { tip, index, count: count2, previous, next, onHoverChange } = chunkKWHGYHRC_cjs.useTipsPlacement({
43359
44107
  registry,
43360
44108
  context,
43361
44109
  state: situation,
@@ -43433,7 +44181,7 @@ function useGettingStarted({
43433
44181
  const { user } = react.useArbiSession();
43434
44182
  const userExtId = user?.external_id;
43435
44183
  const temporaryOnly = user?.temporary_access_only === true;
43436
- const { showHints, settingsLoaded, setShowHints, setShowHintsPersisted } = chunkIWMHQTVL_cjs.useContextualHints();
44184
+ const { showHints, settingsLoaded, setShowHints, setShowHintsPersisted } = chunkMI3N3ZOT_cjs.useContextualHints();
43437
44185
  const { dismissed, loaded: dismissedLoaded, dismissTip } = react.useDismissedTips();
43438
44186
  const welcomeJourneyEnabled = react.useFeature("welcomeJourney");
43439
44187
  const session = react.useArbiSessionStore();
@@ -43655,15 +44403,15 @@ function ChromeInstallDialog({
43655
44403
 
43656
44404
  Object.defineProperty(exports, "DEFAULT_ASK_SUGGESTIONS", {
43657
44405
  enumerable: true,
43658
- get: function () { return chunkVWBYE3XY_cjs.DEFAULT_ASK_SUGGESTIONS; }
44406
+ get: function () { return chunkFQRJCAT2_cjs.DEFAULT_ASK_SUGGESTIONS; }
43659
44407
  });
43660
44408
  Object.defineProperty(exports, "DEFAULT_DOCUMENT_VIEWER_LABELS", {
43661
44409
  enumerable: true,
43662
- get: function () { return chunkVWBYE3XY_cjs.DEFAULT_DOCUMENT_VIEWER_LABELS; }
44410
+ get: function () { return chunkFQRJCAT2_cjs.DEFAULT_DOCUMENT_VIEWER_LABELS; }
43663
44411
  });
43664
44412
  Object.defineProperty(exports, "DEFAULT_DOCUMENT_VIEWER_TABS", {
43665
44413
  enumerable: true,
43666
- get: function () { return chunkVWBYE3XY_cjs.DEFAULT_DOCUMENT_VIEWER_TABS; }
44414
+ get: function () { return chunkFQRJCAT2_cjs.DEFAULT_DOCUMENT_VIEWER_TABS; }
43667
44415
  });
43668
44416
  Object.defineProperty(exports, "ConnectedPanelHost", {
43669
44417
  enumerable: true,
@@ -43675,55 +44423,55 @@ Object.defineProperty(exports, "useSessionPanelMode", {
43675
44423
  });
43676
44424
  Object.defineProperty(exports, "CAP_REACHED_MESSAGE", {
43677
44425
  enumerable: true,
43678
- get: function () { return chunkE3L5DB5F_cjs.CAP_REACHED_MESSAGE; }
44426
+ get: function () { return chunkGEZB3OEC_cjs.CAP_REACHED_MESSAGE; }
43679
44427
  });
43680
44428
  Object.defineProperty(exports, "ZERO_BUDGET_MESSAGE", {
43681
44429
  enumerable: true,
43682
- get: function () { return chunkE3L5DB5F_cjs.ZERO_BUDGET_MESSAGE; }
44430
+ get: function () { return chunkGEZB3OEC_cjs.ZERO_BUDGET_MESSAGE; }
43683
44431
  });
43684
44432
  Object.defineProperty(exports, "aiUsageResetTimestamp", {
43685
44433
  enumerable: true,
43686
- get: function () { return chunkE3L5DB5F_cjs.aiUsageResetTimestamp; }
44434
+ get: function () { return chunkGEZB3OEC_cjs.aiUsageResetTimestamp; }
43687
44435
  });
43688
44436
  Object.defineProperty(exports, "formatMoney", {
43689
44437
  enumerable: true,
43690
- get: function () { return chunkE3L5DB5F_cjs.formatMoney; }
44438
+ get: function () { return chunkGEZB3OEC_cjs.formatMoney; }
43691
44439
  });
43692
44440
  Object.defineProperty(exports, "formatResetDate", {
43693
44441
  enumerable: true,
43694
- get: function () { return chunkE3L5DB5F_cjs.formatResetDate; }
44442
+ get: function () { return chunkGEZB3OEC_cjs.formatResetDate; }
43695
44443
  });
43696
44444
  Object.defineProperty(exports, "getQuotaItems", {
43697
44445
  enumerable: true,
43698
- get: function () { return chunkE3L5DB5F_cjs.getQuotaItems; }
44446
+ get: function () { return chunkGEZB3OEC_cjs.getQuotaItems; }
43699
44447
  });
43700
44448
  Object.defineProperty(exports, "isAddonBudgetZero", {
43701
44449
  enumerable: true,
43702
- get: function () { return chunkE3L5DB5F_cjs.isAddonBudgetZero; }
44450
+ get: function () { return chunkGEZB3OEC_cjs.isAddonBudgetZero; }
43703
44451
  });
43704
44452
  Object.defineProperty(exports, "isProProject", {
43705
44453
  enumerable: true,
43706
- get: function () { return chunkE3L5DB5F_cjs.isProProject; }
44454
+ get: function () { return chunkGEZB3OEC_cjs.isProProject; }
43707
44455
  });
43708
44456
  Object.defineProperty(exports, "planBadgeView", {
43709
44457
  enumerable: true,
43710
- get: function () { return chunkE3L5DB5F_cjs.planBadgeView; }
44458
+ get: function () { return chunkGEZB3OEC_cjs.planBadgeView; }
43711
44459
  });
43712
44460
  Object.defineProperty(exports, "planName", {
43713
44461
  enumerable: true,
43714
- get: function () { return chunkE3L5DB5F_cjs.planName; }
44462
+ get: function () { return chunkGEZB3OEC_cjs.planName; }
43715
44463
  });
43716
44464
  Object.defineProperty(exports, "projectGroupBilling", {
43717
44465
  enumerable: true,
43718
- get: function () { return chunkE3L5DB5F_cjs.projectGroupBilling; }
44466
+ get: function () { return chunkGEZB3OEC_cjs.projectGroupBilling; }
43719
44467
  });
43720
44468
  Object.defineProperty(exports, "useBillingSupport", {
43721
44469
  enumerable: true,
43722
- get: function () { return chunkE3L5DB5F_cjs.useBillingSupport; }
44470
+ get: function () { return chunkGEZB3OEC_cjs.useBillingSupport; }
43723
44471
  });
43724
44472
  Object.defineProperty(exports, "useRewardBalance", {
43725
44473
  enumerable: true,
43726
- get: function () { return chunkE3L5DB5F_cjs.useRewardBalance; }
44474
+ get: function () { return chunkGEZB3OEC_cjs.useRewardBalance; }
43727
44475
  });
43728
44476
  Object.defineProperty(exports, "ConnectedMailInviteCard", {
43729
44477
  enumerable: true,
@@ -43743,343 +44491,343 @@ Object.defineProperty(exports, "useMemberLookup", {
43743
44491
  });
43744
44492
  Object.defineProperty(exports, "ConnectedAssistantDock", {
43745
44493
  enumerable: true,
43746
- get: function () { return chunk7L4X6QN2_cjs.ConnectedAssistantDock; }
44494
+ get: function () { return chunkQXMPATG6_cjs.ConnectedAssistantDock; }
43747
44495
  });
43748
44496
  Object.defineProperty(exports, "redlineStats", {
43749
44497
  enumerable: true,
43750
- get: function () { return chunk7L4X6QN2_cjs.redlineStats; }
44498
+ get: function () { return chunkQXMPATG6_cjs.redlineStats; }
43751
44499
  });
43752
44500
  Object.defineProperty(exports, "textToArtifact", {
43753
44501
  enumerable: true,
43754
- get: function () { return chunk7L4X6QN2_cjs.textToArtifact; }
44502
+ get: function () { return chunkQXMPATG6_cjs.textToArtifact; }
43755
44503
  });
43756
44504
  Object.defineProperty(exports, "toRedlineMarkdown", {
43757
44505
  enumerable: true,
43758
- get: function () { return chunk7L4X6QN2_cjs.toRedlineMarkdown; }
44506
+ get: function () { return chunkQXMPATG6_cjs.toRedlineMarkdown; }
43759
44507
  });
43760
44508
  Object.defineProperty(exports, "useConnectedAiTask", {
43761
44509
  enumerable: true,
43762
- get: function () { return chunk7L4X6QN2_cjs.useConnectedAiTask; }
44510
+ get: function () { return chunkQXMPATG6_cjs.useConnectedAiTask; }
43763
44511
  });
43764
44512
  Object.defineProperty(exports, "useConnectedChat", {
43765
44513
  enumerable: true,
43766
- get: function () { return chunk7L4X6QN2_cjs.useConnectedChat; }
44514
+ get: function () { return chunkQXMPATG6_cjs.useConnectedChat; }
43767
44515
  });
43768
44516
  Object.defineProperty(exports, "useSemanticSearch", {
43769
44517
  enumerable: true,
43770
- get: function () { return chunk7L4X6QN2_cjs.useSemanticSearch; }
44518
+ get: function () { return chunkQXMPATG6_cjs.useSemanticSearch; }
43771
44519
  });
43772
44520
  Object.defineProperty(exports, "useWorkspaceDocs", {
43773
44521
  enumerable: true,
43774
- get: function () { return chunk7L4X6QN2_cjs.useWorkspaceDocs; }
44522
+ get: function () { return chunkQXMPATG6_cjs.useWorkspaceDocs; }
43775
44523
  });
43776
44524
  Object.defineProperty(exports, "ConnectedTaskActivityDialog", {
43777
44525
  enumerable: true,
43778
- get: function () { return chunkYP5EBGLU_cjs.ConnectedTaskActivityDialog; }
44526
+ get: function () { return chunkGOQV6NOK_cjs.ConnectedTaskActivityDialog; }
43779
44527
  });
43780
44528
  Object.defineProperty(exports, "ConnectedTaskComposer", {
43781
44529
  enumerable: true,
43782
- get: function () { return chunkYP5EBGLU_cjs.ConnectedTaskComposer; }
44530
+ get: function () { return chunkGOQV6NOK_cjs.ConnectedTaskComposer; }
43783
44531
  });
43784
44532
  Object.defineProperty(exports, "ConnectedThreadTaskBar", {
43785
44533
  enumerable: true,
43786
- get: function () { return chunkYP5EBGLU_cjs.ConnectedThreadTaskBar; }
44534
+ get: function () { return chunkGOQV6NOK_cjs.ConnectedThreadTaskBar; }
43787
44535
  });
43788
44536
  Object.defineProperty(exports, "ConnectedWorkflowHistory", {
43789
44537
  enumerable: true,
43790
- get: function () { return chunkYP5EBGLU_cjs.ConnectedWorkflowHistory; }
44538
+ get: function () { return chunkGOQV6NOK_cjs.ConnectedWorkflowHistory; }
43791
44539
  });
43792
44540
  Object.defineProperty(exports, "ConnectedWorkflowRunPage", {
43793
44541
  enumerable: true,
43794
- get: function () { return chunkYP5EBGLU_cjs.ConnectedWorkflowRunPage; }
44542
+ get: function () { return chunkGOQV6NOK_cjs.ConnectedWorkflowRunPage; }
43795
44543
  });
43796
44544
  Object.defineProperty(exports, "ConnectedWorkflowRunner", {
43797
44545
  enumerable: true,
43798
- get: function () { return chunkYP5EBGLU_cjs.ConnectedWorkflowRunner; }
44546
+ get: function () { return chunkGOQV6NOK_cjs.ConnectedWorkflowRunner; }
43799
44547
  });
43800
44548
  Object.defineProperty(exports, "DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS", {
43801
44549
  enumerable: true,
43802
- get: function () { return chunkYP5EBGLU_cjs.DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS; }
44550
+ get: function () { return chunkGOQV6NOK_cjs.DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS; }
43803
44551
  });
43804
44552
  Object.defineProperty(exports, "DEFAULT_WORKFLOW_RUN_PAGE_LABELS", {
43805
44553
  enumerable: true,
43806
- get: function () { return chunkYP5EBGLU_cjs.DEFAULT_WORKFLOW_RUN_PAGE_LABELS; }
44554
+ get: function () { return chunkGOQV6NOK_cjs.DEFAULT_WORKFLOW_RUN_PAGE_LABELS; }
43807
44555
  });
43808
44556
  Object.defineProperty(exports, "WorkflowRunThread", {
43809
44557
  enumerable: true,
43810
- get: function () { return chunkYP5EBGLU_cjs.WorkflowRunThread; }
44558
+ get: function () { return chunkGOQV6NOK_cjs.WorkflowRunThread; }
43811
44559
  });
43812
44560
  Object.defineProperty(exports, "WorkflowRunWorkspaceChangedError", {
43813
44561
  enumerable: true,
43814
- get: function () { return chunkYP5EBGLU_cjs.WorkflowRunWorkspaceChangedError; }
44562
+ get: function () { return chunkGOQV6NOK_cjs.WorkflowRunWorkspaceChangedError; }
43815
44563
  });
43816
44564
  Object.defineProperty(exports, "buildProjectSummaries", {
43817
44565
  enumerable: true,
43818
- get: function () { return chunkYP5EBGLU_cjs.buildProjectSummaries; }
44566
+ get: function () { return chunkGOQV6NOK_cjs.buildProjectSummaries; }
43819
44567
  });
43820
44568
  Object.defineProperty(exports, "primaryProjectWorkspace", {
43821
44569
  enumerable: true,
43822
- get: function () { return chunkYP5EBGLU_cjs.primaryProjectWorkspace; }
44570
+ get: function () { return chunkGOQV6NOK_cjs.primaryProjectWorkspace; }
43823
44571
  });
43824
44572
  Object.defineProperty(exports, "useEnsureRequiredLabels", {
43825
44573
  enumerable: true,
43826
- get: function () { return chunkYP5EBGLU_cjs.useEnsureRequiredLabels; }
44574
+ get: function () { return chunkGOQV6NOK_cjs.useEnsureRequiredLabels; }
43827
44575
  });
43828
44576
  Object.defineProperty(exports, "useProjectSummaries", {
43829
44577
  enumerable: true,
43830
- get: function () { return chunkYP5EBGLU_cjs.useProjectSummaries; }
44578
+ get: function () { return chunkGOQV6NOK_cjs.useProjectSummaries; }
43831
44579
  });
43832
44580
  Object.defineProperty(exports, "useProjectSummary", {
43833
44581
  enumerable: true,
43834
- get: function () { return chunkYP5EBGLU_cjs.useProjectSummary; }
44582
+ get: function () { return chunkGOQV6NOK_cjs.useProjectSummary; }
43835
44583
  });
43836
44584
  Object.defineProperty(exports, "useRenderTaskPerson", {
43837
44585
  enumerable: true,
43838
- get: function () { return chunkYP5EBGLU_cjs.useRenderTaskPerson; }
44586
+ get: function () { return chunkGOQV6NOK_cjs.useRenderTaskPerson; }
43839
44587
  });
43840
44588
  Object.defineProperty(exports, "useRequiredLabels", {
43841
44589
  enumerable: true,
43842
- get: function () { return chunkYP5EBGLU_cjs.useRequiredLabels; }
44590
+ get: function () { return chunkGOQV6NOK_cjs.useRequiredLabels; }
43843
44591
  });
43844
44592
  Object.defineProperty(exports, "useTaskPeople", {
43845
44593
  enumerable: true,
43846
- get: function () { return chunkYP5EBGLU_cjs.useTaskPeople; }
44594
+ get: function () { return chunkGOQV6NOK_cjs.useTaskPeople; }
43847
44595
  });
43848
44596
  Object.defineProperty(exports, "useWorkflowsPageState", {
43849
44597
  enumerable: true,
43850
- get: function () { return chunkYP5EBGLU_cjs.useWorkflowsPageState; }
44598
+ get: function () { return chunkGOQV6NOK_cjs.useWorkflowsPageState; }
43851
44599
  });
43852
44600
  Object.defineProperty(exports, "workflowRunView", {
43853
44601
  enumerable: true,
43854
- get: function () { return chunkYP5EBGLU_cjs.workflowRunView; }
44602
+ get: function () { return chunkGOQV6NOK_cjs.workflowRunView; }
43855
44603
  });
43856
44604
  Object.defineProperty(exports, "AgentSteps", {
43857
44605
  enumerable: true,
43858
- get: function () { return chunkIWMHQTVL_cjs.AgentSteps; }
44606
+ get: function () { return chunkMI3N3ZOT_cjs.AgentSteps; }
43859
44607
  });
43860
44608
  Object.defineProperty(exports, "AnswerTable", {
43861
44609
  enumerable: true,
43862
- get: function () { return chunkIWMHQTVL_cjs.AnswerTable; }
44610
+ get: function () { return chunkMI3N3ZOT_cjs.AnswerTable; }
43863
44611
  });
43864
44612
  Object.defineProperty(exports, "ArbiChat", {
43865
44613
  enumerable: true,
43866
- get: function () { return chunkIWMHQTVL_cjs.ArbiChat; }
44614
+ get: function () { return chunkMI3N3ZOT_cjs.ArbiChat; }
43867
44615
  });
43868
44616
  Object.defineProperty(exports, "AskAgainContext", {
43869
44617
  enumerable: true,
43870
- get: function () { return chunkIWMHQTVL_cjs.AskAgainContext; }
44618
+ get: function () { return chunkMI3N3ZOT_cjs.AskAgainContext; }
43871
44619
  });
43872
44620
  Object.defineProperty(exports, "ConnectedBranchControls", {
43873
44621
  enumerable: true,
43874
- get: function () { return chunkIWMHQTVL_cjs.ConnectedBranchControls; }
44622
+ get: function () { return chunkMI3N3ZOT_cjs.ConnectedBranchControls; }
43875
44623
  });
43876
44624
  Object.defineProperty(exports, "ConnectedCitationRenderer", {
43877
44625
  enumerable: true,
43878
- get: function () { return chunkIWMHQTVL_cjs.ConnectedCitationRenderer; }
44626
+ get: function () { return chunkMI3N3ZOT_cjs.ConnectedCitationRenderer; }
43879
44627
  });
43880
44628
  Object.defineProperty(exports, "ConnectedCompactConversation", {
43881
44629
  enumerable: true,
43882
- get: function () { return chunkIWMHQTVL_cjs.ConnectedCompactConversation; }
44630
+ get: function () { return chunkMI3N3ZOT_cjs.ConnectedCompactConversation; }
43883
44631
  });
43884
44632
  Object.defineProperty(exports, "ConnectedCompactLogin", {
43885
44633
  enumerable: true,
43886
- get: function () { return chunkIWMHQTVL_cjs.ConnectedCompactLogin; }
44634
+ get: function () { return chunkMI3N3ZOT_cjs.ConnectedCompactLogin; }
43887
44635
  });
43888
44636
  Object.defineProperty(exports, "ConnectedConversationDocumentPicker", {
43889
44637
  enumerable: true,
43890
- get: function () { return chunkIWMHQTVL_cjs.ConnectedConversationDocumentPicker; }
44638
+ get: function () { return chunkMI3N3ZOT_cjs.ConnectedConversationDocumentPicker; }
43891
44639
  });
43892
44640
  Object.defineProperty(exports, "ConnectedDangerZone", {
43893
44641
  enumerable: true,
43894
- get: function () { return chunkIWMHQTVL_cjs.ConnectedDangerZone; }
44642
+ get: function () { return chunkMI3N3ZOT_cjs.ConnectedDangerZone; }
43895
44643
  });
43896
44644
  Object.defineProperty(exports, "ConnectedEmbeddedChat", {
43897
44645
  enumerable: true,
43898
- get: function () { return chunkIWMHQTVL_cjs.ConnectedEmbeddedChat; }
44646
+ get: function () { return chunkMI3N3ZOT_cjs.ConnectedEmbeddedChat; }
43899
44647
  });
43900
44648
  Object.defineProperty(exports, "ConnectedForgotPassword", {
43901
44649
  enumerable: true,
43902
- get: function () { return chunkIWMHQTVL_cjs.ConnectedForgotPassword; }
44650
+ get: function () { return chunkMI3N3ZOT_cjs.ConnectedForgotPassword; }
43903
44651
  });
43904
44652
  Object.defineProperty(exports, "ConnectedIdentityVerification", {
43905
44653
  enumerable: true,
43906
- get: function () { return chunkIWMHQTVL_cjs.ConnectedIdentityVerification; }
44654
+ get: function () { return chunkMI3N3ZOT_cjs.ConnectedIdentityVerification; }
43907
44655
  });
43908
44656
  Object.defineProperty(exports, "ConnectedLoginPage", {
43909
44657
  enumerable: true,
43910
- get: function () { return chunkIWMHQTVL_cjs.ConnectedLoginPage; }
44658
+ get: function () { return chunkMI3N3ZOT_cjs.ConnectedLoginPage; }
43911
44659
  });
43912
44660
  Object.defineProperty(exports, "ConnectedLogoutDialog", {
43913
44661
  enumerable: true,
43914
- get: function () { return chunkIWMHQTVL_cjs.ConnectedLogoutDialog; }
44662
+ get: function () { return chunkMI3N3ZOT_cjs.ConnectedLogoutDialog; }
43915
44663
  });
43916
44664
  Object.defineProperty(exports, "ConnectedMessage", {
43917
44665
  enumerable: true,
43918
- get: function () { return chunkIWMHQTVL_cjs.ConnectedMessage; }
44666
+ get: function () { return chunkMI3N3ZOT_cjs.ConnectedMessage; }
43919
44667
  });
43920
44668
  Object.defineProperty(exports, "ConnectedMessageArea", {
43921
44669
  enumerable: true,
43922
- get: function () { return chunkIWMHQTVL_cjs.ConnectedMessageArea; }
44670
+ get: function () { return chunkMI3N3ZOT_cjs.ConnectedMessageArea; }
43923
44671
  });
43924
44672
  Object.defineProperty(exports, "ConnectedMessageList", {
43925
44673
  enumerable: true,
43926
- get: function () { return chunkIWMHQTVL_cjs.ConnectedMessageList; }
44674
+ get: function () { return chunkMI3N3ZOT_cjs.ConnectedMessageList; }
43927
44675
  });
43928
44676
  Object.defineProperty(exports, "ConnectedModelSelector", {
43929
44677
  enumerable: true,
43930
- get: function () { return chunkIWMHQTVL_cjs.ConnectedModelSelector; }
44678
+ get: function () { return chunkMI3N3ZOT_cjs.ConnectedModelSelector; }
43931
44679
  });
43932
44680
  Object.defineProperty(exports, "ConnectedNotificationPreferences", {
43933
44681
  enumerable: true,
43934
- get: function () { return chunkIWMHQTVL_cjs.ConnectedNotificationPreferences; }
44682
+ get: function () { return chunkMI3N3ZOT_cjs.ConnectedNotificationPreferences; }
43935
44683
  });
43936
44684
  Object.defineProperty(exports, "ConnectedPasswordChangeDialog", {
43937
44685
  enumerable: true,
43938
- get: function () { return chunkIWMHQTVL_cjs.ConnectedPasswordChangeDialog; }
44686
+ get: function () { return chunkMI3N3ZOT_cjs.ConnectedPasswordChangeDialog; }
43939
44687
  });
43940
44688
  Object.defineProperty(exports, "ConnectedProfileCard", {
43941
44689
  enumerable: true,
43942
- get: function () { return chunkIWMHQTVL_cjs.ConnectedProfileCard; }
44690
+ get: function () { return chunkMI3N3ZOT_cjs.ConnectedProfileCard; }
43943
44691
  });
43944
44692
  Object.defineProperty(exports, "ConnectedSecuritySection", {
43945
44693
  enumerable: true,
43946
- get: function () { return chunkIWMHQTVL_cjs.ConnectedSecuritySection; }
44694
+ get: function () { return chunkMI3N3ZOT_cjs.ConnectedSecuritySection; }
43947
44695
  });
43948
44696
  Object.defineProperty(exports, "ConnectedSessionsRow", {
43949
44697
  enumerable: true,
43950
- get: function () { return chunkIWMHQTVL_cjs.ConnectedSessionsRow; }
44698
+ get: function () { return chunkMI3N3ZOT_cjs.ConnectedSessionsRow; }
43951
44699
  });
43952
44700
  Object.defineProperty(exports, "ConnectedThreadsPreview", {
43953
44701
  enumerable: true,
43954
- get: function () { return chunkIWMHQTVL_cjs.ConnectedThreadsPreview; }
44702
+ get: function () { return chunkMI3N3ZOT_cjs.ConnectedThreadsPreview; }
43955
44703
  });
43956
44704
  Object.defineProperty(exports, "ConversationComposer", {
43957
44705
  enumerable: true,
43958
- get: function () { return chunkIWMHQTVL_cjs.ConversationComposer; }
44706
+ get: function () { return chunkMI3N3ZOT_cjs.ConversationComposer; }
43959
44707
  });
43960
44708
  Object.defineProperty(exports, "EmbeddedChatPanel", {
43961
44709
  enumerable: true,
43962
- get: function () { return chunkIWMHQTVL_cjs.EmbeddedChatPanel; }
44710
+ get: function () { return chunkMI3N3ZOT_cjs.EmbeddedChatPanel; }
43963
44711
  });
43964
44712
  Object.defineProperty(exports, "MessageDetailsModal", {
43965
44713
  enumerable: true,
43966
- get: function () { return chunkIWMHQTVL_cjs.MessageDetailsModal; }
44714
+ get: function () { return chunkMI3N3ZOT_cjs.MessageDetailsModal; }
43967
44715
  });
43968
44716
  Object.defineProperty(exports, "MessageLiveSeconds", {
43969
44717
  enumerable: true,
43970
- get: function () { return chunkIWMHQTVL_cjs.MessageLiveSeconds; }
44718
+ get: function () { return chunkMI3N3ZOT_cjs.MessageLiveSeconds; }
43971
44719
  });
43972
44720
  Object.defineProperty(exports, "PENDING_RECOVERY_KEY", {
43973
44721
  enumerable: true,
43974
- get: function () { return chunkIWMHQTVL_cjs.PENDING_RECOVERY_KEY; }
44722
+ get: function () { return chunkMI3N3ZOT_cjs.PENDING_RECOVERY_KEY; }
43975
44723
  });
43976
44724
  Object.defineProperty(exports, "PREMIUM_TIER_TAG", {
43977
44725
  enumerable: true,
43978
- get: function () { return chunkIWMHQTVL_cjs.PREMIUM_TIER_TAG; }
44726
+ get: function () { return chunkMI3N3ZOT_cjs.PREMIUM_TIER_TAG; }
43979
44727
  });
43980
44728
  Object.defineProperty(exports, "RunningSubagents", {
43981
44729
  enumerable: true,
43982
- get: function () { return chunkIWMHQTVL_cjs.RunningSubagents; }
44730
+ get: function () { return chunkMI3N3ZOT_cjs.RunningSubagents; }
43983
44731
  });
43984
44732
  Object.defineProperty(exports, "STANDARD_TIER_TAG", {
43985
44733
  enumerable: true,
43986
- get: function () { return chunkIWMHQTVL_cjs.STANDARD_TIER_TAG; }
44734
+ get: function () { return chunkMI3N3ZOT_cjs.STANDARD_TIER_TAG; }
43987
44735
  });
43988
44736
  Object.defineProperty(exports, "WorkflowStepMessage", {
43989
44737
  enumerable: true,
43990
- get: function () { return chunkIWMHQTVL_cjs.WorkflowStepMessage; }
44738
+ get: function () { return chunkMI3N3ZOT_cjs.WorkflowStepMessage; }
43991
44739
  });
43992
44740
  Object.defineProperty(exports, "backUpOnSignup", {
43993
44741
  enumerable: true,
43994
- get: function () { return chunkIWMHQTVL_cjs.backUpOnSignup; }
44742
+ get: function () { return chunkMI3N3ZOT_cjs.backUpOnSignup; }
43995
44743
  });
43996
44744
  Object.defineProperty(exports, "createRemoteControl", {
43997
44745
  enumerable: true,
43998
- get: function () { return chunkIWMHQTVL_cjs.createRemoteControl; }
44746
+ get: function () { return chunkMI3N3ZOT_cjs.createRemoteControl; }
43999
44747
  });
44000
44748
  Object.defineProperty(exports, "defaultHost", {
44001
44749
  enumerable: true,
44002
- get: function () { return chunkIWMHQTVL_cjs.defaultHost; }
44750
+ get: function () { return chunkMI3N3ZOT_cjs.defaultHost; }
44003
44751
  });
44004
44752
  Object.defineProperty(exports, "renderConnectedUser", {
44005
44753
  enumerable: true,
44006
- get: function () { return chunkIWMHQTVL_cjs.renderConnectedUser; }
44754
+ get: function () { return chunkMI3N3ZOT_cjs.renderConnectedUser; }
44007
44755
  });
44008
44756
  Object.defineProperty(exports, "renderSessionStatusIcon", {
44009
44757
  enumerable: true,
44010
- get: function () { return chunkIWMHQTVL_cjs.renderSessionStatusIcon; }
44758
+ get: function () { return chunkMI3N3ZOT_cjs.renderSessionStatusIcon; }
44011
44759
  });
44012
44760
  Object.defineProperty(exports, "resolveSsoName", {
44013
44761
  enumerable: true,
44014
- get: function () { return chunkIWMHQTVL_cjs.resolveSsoName; }
44762
+ get: function () { return chunkMI3N3ZOT_cjs.resolveSsoName; }
44015
44763
  });
44016
44764
  Object.defineProperty(exports, "useAuthPages", {
44017
44765
  enumerable: true,
44018
- get: function () { return chunkIWMHQTVL_cjs.useAuthPages; }
44766
+ get: function () { return chunkMI3N3ZOT_cjs.useAuthPages; }
44019
44767
  });
44020
44768
  Object.defineProperty(exports, "useContextualHints", {
44021
44769
  enumerable: true,
44022
- get: function () { return chunkIWMHQTVL_cjs.useContextualHints; }
44770
+ get: function () { return chunkMI3N3ZOT_cjs.useContextualHints; }
44023
44771
  });
44024
44772
  Object.defineProperty(exports, "useModelPicker", {
44025
44773
  enumerable: true,
44026
- get: function () { return chunkIWMHQTVL_cjs.useModelPicker; }
44774
+ get: function () { return chunkMI3N3ZOT_cjs.useModelPicker; }
44027
44775
  });
44028
44776
  Object.defineProperty(exports, "useOpenChunk", {
44029
44777
  enumerable: true,
44030
- get: function () { return chunkIWMHQTVL_cjs.useOpenChunk; }
44778
+ get: function () { return chunkMI3N3ZOT_cjs.useOpenChunk; }
44031
44779
  });
44032
44780
  Object.defineProperty(exports, "useOpenWorkspaceIcon", {
44033
44781
  enumerable: true,
44034
- get: function () { return chunkIWMHQTVL_cjs.useOpenWorkspaceIcon; }
44782
+ get: function () { return chunkMI3N3ZOT_cjs.useOpenWorkspaceIcon; }
44035
44783
  });
44036
44784
  Object.defineProperty(exports, "useRemoteControlActions", {
44037
44785
  enumerable: true,
44038
- get: function () { return chunkIWMHQTVL_cjs.useRemoteControlActions; }
44786
+ get: function () { return chunkMI3N3ZOT_cjs.useRemoteControlActions; }
44039
44787
  });
44040
44788
  Object.defineProperty(exports, "useRemoteControlHandlers", {
44041
44789
  enumerable: true,
44042
- get: function () { return chunkIWMHQTVL_cjs.useRemoteControlHandlers; }
44790
+ get: function () { return chunkMI3N3ZOT_cjs.useRemoteControlHandlers; }
44043
44791
  });
44044
44792
  Object.defineProperty(exports, "useSsoSignIn", {
44045
44793
  enumerable: true,
44046
- get: function () { return chunkIWMHQTVL_cjs.useSsoSignIn; }
44794
+ get: function () { return chunkMI3N3ZOT_cjs.useSsoSignIn; }
44047
44795
  });
44048
44796
  Object.defineProperty(exports, "useWorkspaceDocTitles", {
44049
44797
  enumerable: true,
44050
- get: function () { return chunkIWMHQTVL_cjs.useWorkspaceDocTitles; }
44798
+ get: function () { return chunkMI3N3ZOT_cjs.useWorkspaceDocTitles; }
44051
44799
  });
44052
44800
  Object.defineProperty(exports, "parseTypedSkill", {
44053
44801
  enumerable: true,
44054
- get: function () { return chunkXF355M7O_cjs.parseTypedSkill; }
44802
+ get: function () { return chunk2Z25MUAY_cjs.parseTypedSkill; }
44055
44803
  });
44056
44804
  Object.defineProperty(exports, "useSlashItems", {
44057
44805
  enumerable: true,
44058
- get: function () { return chunkXF355M7O_cjs.useSlashItems; }
44806
+ get: function () { return chunk2Z25MUAY_cjs.useSlashItems; }
44059
44807
  });
44060
44808
  Object.defineProperty(exports, "useSlashMenuItems", {
44061
44809
  enumerable: true,
44062
- get: function () { return chunkXF355M7O_cjs.useSlashMenuItems; }
44810
+ get: function () { return chunk2Z25MUAY_cjs.useSlashMenuItems; }
44063
44811
  });
44064
44812
  Object.defineProperty(exports, "useSlashSkillWorkflows", {
44065
44813
  enumerable: true,
44066
- get: function () { return chunkXF355M7O_cjs.useSlashSkillWorkflows; }
44814
+ get: function () { return chunk2Z25MUAY_cjs.useSlashSkillWorkflows; }
44067
44815
  });
44068
44816
  Object.defineProperty(exports, "ConnectedWorkflowStart", {
44069
44817
  enumerable: true,
44070
- get: function () { return chunk2F57IO7S_cjs.ConnectedWorkflowStart; }
44818
+ get: function () { return chunkXCW6OY7E_cjs.ConnectedWorkflowStart; }
44071
44819
  });
44072
44820
  Object.defineProperty(exports, "PROMPT_BINDINGS", {
44073
44821
  enumerable: true,
44074
- get: function () { return chunk2F57IO7S_cjs.PROMPT_BINDINGS; }
44822
+ get: function () { return chunkXCW6OY7E_cjs.PROMPT_BINDINGS; }
44075
44823
  });
44076
44824
  Object.defineProperty(exports, "useLaunchWorkflow", {
44077
44825
  enumerable: true,
44078
- get: function () { return chunk2F57IO7S_cjs.useLaunchWorkflow; }
44826
+ get: function () { return chunkXCW6OY7E_cjs.useLaunchWorkflow; }
44079
44827
  });
44080
44828
  Object.defineProperty(exports, "useConnectedThreadActivity", {
44081
44829
  enumerable: true,
44082
- get: function () { return chunk7NLO7ASW_cjs.useConnectedThreadActivity; }
44830
+ get: function () { return chunkMXGXKUSW_cjs.useConnectedThreadActivity; }
44083
44831
  });
44084
44832
  Object.defineProperty(exports, "DocumentUser", {
44085
44833
  enumerable: true,
@@ -44087,23 +44835,23 @@ Object.defineProperty(exports, "DocumentUser", {
44087
44835
  });
44088
44836
  Object.defineProperty(exports, "useCanBrowseSkills", {
44089
44837
  enumerable: true,
44090
- get: function () { return chunkUFT22LAB_cjs.useCanBrowseSkills; }
44838
+ get: function () { return chunkHBUHOCWF_cjs.useCanBrowseSkills; }
44091
44839
  });
44092
44840
  Object.defineProperty(exports, "useIsExternalAccount", {
44093
44841
  enumerable: true,
44094
- get: function () { return chunkUFT22LAB_cjs.useIsExternalAccount; }
44842
+ get: function () { return chunkHBUHOCWF_cjs.useIsExternalAccount; }
44095
44843
  });
44096
44844
  Object.defineProperty(exports, "useSkillsEnabled", {
44097
44845
  enumerable: true,
44098
- get: function () { return chunkUFT22LAB_cjs.useSkillsEnabled; }
44846
+ get: function () { return chunkHBUHOCWF_cjs.useSkillsEnabled; }
44099
44847
  });
44100
44848
  Object.defineProperty(exports, "useWorkflowDefinitions", {
44101
44849
  enumerable: true,
44102
- get: function () { return chunkUFT22LAB_cjs.useWorkflowDefinitions; }
44850
+ get: function () { return chunkHBUHOCWF_cjs.useWorkflowDefinitions; }
44103
44851
  });
44104
44852
  Object.defineProperty(exports, "useWorkflowTasks", {
44105
44853
  enumerable: true,
44106
- get: function () { return chunkUFT22LAB_cjs.useWorkflowTasks; }
44854
+ get: function () { return chunkHBUHOCWF_cjs.useWorkflowTasks; }
44107
44855
  });
44108
44856
  Object.defineProperty(exports, "EMBEDDED_SELECTED_DOCS_KEY", {
44109
44857
  enumerable: true,
@@ -44263,23 +45011,23 @@ Object.defineProperty(exports, "useDocumentFolders", {
44263
45011
  });
44264
45012
  Object.defineProperty(exports, "ConnectedWorkflowsTable", {
44265
45013
  enumerable: true,
44266
- get: function () { return chunkVLQCLQAS_cjs.ConnectedWorkflowsTable; }
45014
+ get: function () { return chunkTZYB22FM_cjs.ConnectedWorkflowsTable; }
44267
45015
  });
44268
45016
  Object.defineProperty(exports, "DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS", {
44269
45017
  enumerable: true,
44270
- get: function () { return chunkVLQCLQAS_cjs.DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS; }
45018
+ get: function () { return chunkTZYB22FM_cjs.DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS; }
44271
45019
  });
44272
45020
  Object.defineProperty(exports, "useConnectedWorkspaceRole", {
44273
45021
  enumerable: true,
44274
- get: function () { return chunkVLQCLQAS_cjs.useConnectedWorkspaceRole; }
45022
+ get: function () { return chunkTZYB22FM_cjs.useConnectedWorkspaceRole; }
44275
45023
  });
44276
45024
  Object.defineProperty(exports, "useDocxCommentTarget", {
44277
45025
  enumerable: true,
44278
- get: function () { return chunkVLQCLQAS_cjs.useDocxCommentTarget; }
45026
+ get: function () { return chunkTZYB22FM_cjs.useDocxCommentTarget; }
44279
45027
  });
44280
45028
  Object.defineProperty(exports, "useNativeDocxSupport", {
44281
45029
  enumerable: true,
44282
- get: function () { return chunkVLQCLQAS_cjs.useNativeDocxSupport; }
45030
+ get: function () { return chunkTZYB22FM_cjs.useNativeDocxSupport; }
44283
45031
  });
44284
45032
  Object.defineProperty(exports, "useOpenWorkflow", {
44285
45033
  enumerable: true,
@@ -44287,19 +45035,19 @@ Object.defineProperty(exports, "useOpenWorkflow", {
44287
45035
  });
44288
45036
  Object.defineProperty(exports, "ConnectedWorkflowDocumentsField", {
44289
45037
  enumerable: true,
44290
- get: function () { return chunkWAV762GP_cjs.ConnectedWorkflowDocumentsField; }
45038
+ get: function () { return chunkDBN6GBRQ_cjs.ConnectedWorkflowDocumentsField; }
44291
45039
  });
44292
45040
  Object.defineProperty(exports, "ConnectedWorkflowLauncher", {
44293
45041
  enumerable: true,
44294
- get: function () { return chunkWAV762GP_cjs.ConnectedWorkflowLauncher; }
45042
+ get: function () { return chunkDBN6GBRQ_cjs.ConnectedWorkflowLauncher; }
44295
45043
  });
44296
45044
  Object.defineProperty(exports, "toWorkflowFieldDocument", {
44297
45045
  enumerable: true,
44298
- get: function () { return chunkWAV762GP_cjs.toWorkflowFieldDocument; }
45046
+ get: function () { return chunkDBN6GBRQ_cjs.toWorkflowFieldDocument; }
44299
45047
  });
44300
45048
  Object.defineProperty(exports, "useConnectedWorkflowScopeSource", {
44301
45049
  enumerable: true,
44302
- get: function () { return chunkWAV762GP_cjs.useConnectedWorkflowScopeSource; }
45050
+ get: function () { return chunkDBN6GBRQ_cjs.useConnectedWorkflowScopeSource; }
44303
45051
  });
44304
45052
  Object.defineProperty(exports, "useMeetingThreadMessages", {
44305
45053
  enumerable: true,
@@ -44369,6 +45117,7 @@ exports.AddAddonDialog = AddAddonDialog;
44369
45117
  exports.AddFromAccountsButton = AddFromAccountsButton;
44370
45118
  exports.AgentBarShell = AgentBarShell;
44371
45119
  exports.AgentControlBar = AgentControlBar;
45120
+ exports.AssistantStatusPanel = AssistantStatusPanel;
44372
45121
  exports.BACKFILL_OPTIONS = BACKFILL_OPTIONS;
44373
45122
  exports.BUILTIN_GLOBAL_DIALOGS = BUILTIN_GLOBAL_DIALOGS;
44374
45123
  exports.BULK_REPROCESS_LIMIT = BULK_REPROCESS_LIMIT;
@@ -44397,6 +45146,7 @@ exports.ConnectedAppShell = ConnectedAppShell;
44397
45146
  exports.ConnectedAppsSettings = ConnectedAppsSettings;
44398
45147
  exports.ConnectedArchiveWorkspaceButton = ConnectedArchiveWorkspaceButton;
44399
45148
  exports.ConnectedAskField = ConnectedAskField;
45149
+ exports.ConnectedAssistantPage = ConnectedAssistantPage;
44400
45150
  exports.ConnectedAuthorizeAgent = ConnectedAuthorizeAgent;
44401
45151
  exports.ConnectedBulkTagCrumbs = ConnectedBulkTagCrumbs;
44402
45152
  exports.ConnectedBulkTagEditor = ConnectedBulkTagEditor;
@@ -44543,6 +45293,8 @@ exports.ConversationSendButton = ConversationSendButton;
44543
45293
  exports.ConversationStatusCell = ConversationStatusCell;
44544
45294
  exports.DEFAULT_AGENTS_PAGE_SECTIONS = DEFAULT_AGENTS_PAGE_SECTIONS;
44545
45295
  exports.DEFAULT_AGENT_CHAT_CARD_LABELS = DEFAULT_AGENT_CHAT_CARD_LABELS;
45296
+ exports.DEFAULT_ASSISTANT_LABELS = DEFAULT_ASSISTANT_LABELS;
45297
+ exports.DEFAULT_ASSISTANT_STATUS_LABELS = DEFAULT_ASSISTANT_STATUS_LABELS;
44546
45298
  exports.DEFAULT_CONNECTED_AGENTS_PAGE_LABELS = DEFAULT_CONNECTED_AGENTS_PAGE_LABELS;
44547
45299
  exports.DEFAULT_CONNECTED_SEARCH_PAGE_LABELS = DEFAULT_CONNECTED_SEARCH_PAGE_LABELS;
44548
45300
  exports.DEFAULT_CONNECTED_SKILLS_BROWSER_LABELS = DEFAULT_CONNECTED_SKILLS_BROWSER_LABELS;