@arbidocs/blocks 0.5.140 → 0.5.141

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 (95) hide show
  1. package/dist/ConnectedCallDock-ZNS5BS2R.cjs +1 -1
  2. package/dist/ConnectedCallRoom-ACNVSFH7.cjs +1 -1
  3. package/dist/{ConnectedNativeDocxComparison-W4KIGO54.cjs → ConnectedNativeDocxComparison-QKY66ZJ7.cjs} +10 -10
  4. package/dist/{ConnectedStreamedWordArtifact-764NSXPQ.cjs.map → ConnectedNativeDocxComparison-QKY66ZJ7.cjs.map} +1 -1
  5. package/dist/ConnectedPresentation-3JXN6SRT.cjs +1 -1
  6. package/dist/{ConnectedProductionSetDialog-EOWZQ6J3.cjs → ConnectedProductionSetDialog-GM5D7IUG.cjs} +3 -3
  7. package/dist/{ConnectedProductionSetDialog-EOWZQ6J3.cjs.map → ConnectedProductionSetDialog-GM5D7IUG.cjs.map} +1 -1
  8. package/dist/ConnectedSlidesTab-IECS2MJI.cjs +1 -1
  9. package/dist/{ConnectedStreamedWordArtifact-764NSXPQ.cjs → ConnectedStreamedWordArtifact-PHEOVHKH.cjs} +10 -10
  10. package/dist/{ConnectedNativeDocxComparison-W4KIGO54.cjs.map → ConnectedStreamedWordArtifact-PHEOVHKH.cjs.map} +1 -1
  11. package/dist/{DocumentReviewCard-QPFP7BV7.cjs → DocumentReviewCard-ENCPTGJE.cjs} +4 -4
  12. package/dist/{DocumentReviewCard-QPFP7BV7.cjs.map → DocumentReviewCard-ENCPTGJE.cjs.map} +1 -1
  13. package/dist/{FilesViewerDialog-KBDKIQGD.cjs → FilesViewerDialog-OFUBS5VA.cjs} +13 -13
  14. package/dist/{FilesViewerDialog-KBDKIQGD.cjs.map → FilesViewerDialog-OFUBS5VA.cjs.map} +1 -1
  15. package/dist/{NativeDocxEditor-KM6U4ZLA.cjs → NativeDocxEditor-7A3SYDAJ.cjs} +6 -6
  16. package/dist/{NativeDocxEditor-KM6U4ZLA.cjs.map → NativeDocxEditor-7A3SYDAJ.cjs.map} +1 -1
  17. package/dist/{WorkspaceTableView-HMQ6PXUC.cjs → WorkspaceTableView-A2YTG4OQ.cjs} +7 -7
  18. package/dist/{WorkspaceTableView-HMQ6PXUC.cjs.map → WorkspaceTableView-A2YTG4OQ.cjs.map} +1 -1
  19. package/dist/agents/index.cjs +1 -1
  20. package/dist/ai-QEXZ4SYR.cjs +1 -1
  21. package/dist/calls/index.cjs +1 -1
  22. package/dist/chat/index.cjs +1 -1
  23. package/dist/{chunk-5Z22EXHJ.cjs → chunk-2EY52GDM.cjs} +6 -6
  24. package/dist/{chunk-5Z22EXHJ.cjs.map → chunk-2EY52GDM.cjs.map} +1 -1
  25. package/dist/{chunk-C6DF6WB2.cjs → chunk-6JLRF7N6.cjs} +4 -3
  26. package/dist/chunk-6JLRF7N6.cjs.map +1 -0
  27. package/dist/{chunk-L62EU3TQ.cjs → chunk-A53YMUOX.cjs} +3 -3
  28. package/dist/{chunk-L62EU3TQ.cjs.map → chunk-A53YMUOX.cjs.map} +1 -1
  29. package/dist/{chunk-FABKMTAI.cjs → chunk-FRRF2OQ7.cjs} +5 -5
  30. package/dist/{chunk-FABKMTAI.cjs.map → chunk-FRRF2OQ7.cjs.map} +1 -1
  31. package/dist/{chunk-3Y75LUCT.cjs → chunk-HZG4GRDA.cjs} +3 -3
  32. package/dist/{chunk-3Y75LUCT.cjs.map → chunk-HZG4GRDA.cjs.map} +1 -1
  33. package/dist/{chunk-DBGBAD4J.cjs → chunk-INNHU46B.cjs} +4 -4
  34. package/dist/{chunk-DBGBAD4J.cjs.map → chunk-INNHU46B.cjs.map} +1 -1
  35. package/dist/{chunk-C4Z6LOLA.cjs → chunk-IZNSTFAT.cjs} +28 -28
  36. package/dist/{chunk-C4Z6LOLA.cjs.map → chunk-IZNSTFAT.cjs.map} +1 -1
  37. package/dist/{chunk-LG36LSVZ.cjs → chunk-N2YDYEUL.cjs} +6 -6
  38. package/dist/{chunk-LG36LSVZ.cjs.map → chunk-N2YDYEUL.cjs.map} +1 -1
  39. package/dist/{chunk-C5APAFUY.cjs → chunk-N3H3YAKY.cjs} +2 -2
  40. package/dist/{chunk-C5APAFUY.cjs.map → chunk-N3H3YAKY.cjs.map} +1 -1
  41. package/dist/{chunk-Z5YJKM57.cjs → chunk-NGPYPW7M.cjs} +15 -13
  42. package/dist/chunk-NGPYPW7M.cjs.map +1 -0
  43. package/dist/{chunk-FDRZJFNV.cjs → chunk-O6OLY43S.cjs} +5 -5
  44. package/dist/{chunk-FDRZJFNV.cjs.map → chunk-O6OLY43S.cjs.map} +1 -1
  45. package/dist/chunk-QCC57APO.cjs +18 -0
  46. package/dist/{chunk-MMMGOZYH.cjs.map → chunk-QCC57APO.cjs.map} +1 -1
  47. package/dist/{chunk-TENWM7BH.cjs → chunk-QW6NCUR7.cjs} +5 -5
  48. package/dist/{chunk-TENWM7BH.cjs.map → chunk-QW6NCUR7.cjs.map} +1 -1
  49. package/dist/{chunk-CESE7GLT.cjs → chunk-RGSFPWG2.cjs} +8 -8
  50. package/dist/{chunk-CESE7GLT.cjs.map → chunk-RGSFPWG2.cjs.map} +1 -1
  51. package/dist/{chunk-SK6LFIU2.cjs → chunk-TIBTTITZ.cjs} +3 -3
  52. package/dist/{chunk-SK6LFIU2.cjs.map → chunk-TIBTTITZ.cjs.map} +1 -1
  53. package/dist/connect/docx.cjs +14 -14
  54. package/dist/connect/index.cjs +598 -539
  55. package/dist/connect/index.cjs.map +1 -1
  56. package/dist/connect/viewer.cjs +10 -10
  57. package/dist/connection/billing/ChangeProPlan.d.ts +1 -1
  58. package/dist/connection/billing/ChangeProPlan.js +9 -3
  59. package/dist/connection/billing/ChangeProPlan.js.map +2 -2
  60. package/dist/connection/billing/ConnectedPricesPrefetch.d.ts +1 -0
  61. package/dist/connection/billing/ConnectedPricesPrefetch.js +12 -0
  62. package/dist/connection/billing/ConnectedPricesPrefetch.js.map +7 -0
  63. package/dist/connection/billing/ConnectedWelcomeDialog.js +21 -3
  64. package/dist/connection/billing/ConnectedWelcomeDialog.js.map +2 -2
  65. package/dist/connection/billing/NewProjectFlow.js +3 -14
  66. package/dist/connection/billing/NewProjectFlow.js.map +2 -2
  67. package/dist/connection/billing/PlanPricesSkeleton.d.ts +3 -0
  68. package/dist/connection/billing/PlanPricesSkeleton.js +40 -0
  69. package/dist/connection/billing/PlanPricesSkeleton.js.map +7 -0
  70. package/dist/connection/billing/SubscriptionPlans.d.ts +1 -1
  71. package/dist/connection/billing/SubscriptionPlans.js +19 -6
  72. package/dist/connection/billing/SubscriptionPlans.js.map +2 -2
  73. package/dist/connection/billing/index.d.ts +1 -0
  74. package/dist/connection/billing/index.js +2 -0
  75. package/dist/connection/billing/index.js.map +2 -2
  76. package/dist/connection/viewer/useViewerBlobs.d.ts +3 -3
  77. package/dist/connection/viewer/useViewerBlobs.js +3 -1
  78. package/dist/connection/viewer/useViewerBlobs.js.map +2 -2
  79. package/dist/docx/index.cjs +38 -38
  80. package/dist/docx/review/DocxEditorReview.js +2 -1
  81. package/dist/docx/review/DocxEditorReview.js.map +2 -2
  82. package/dist/embed/index.cjs +13 -13
  83. package/dist/facts/index.cjs +43 -43
  84. package/dist/index.cjs +104 -104
  85. package/dist/settings/WelcomeDialog.d.ts +1 -1
  86. package/dist/settings/WelcomeDialog.js.map +1 -1
  87. package/dist/settings/index.cjs +145 -145
  88. package/dist/studio/index.cjs +1 -1
  89. package/dist/styles.css +1 -1
  90. package/dist/workflow-canvas/index.cjs +13 -13
  91. package/node_modules/@arbidocs/coedit/package.json +1 -1
  92. package/package.json +5 -5
  93. package/dist/chunk-C6DF6WB2.cjs.map +0 -1
  94. package/dist/chunk-MMMGOZYH.cjs +0 -18
  95. package/dist/chunk-Z5YJKM57.cjs.map +0 -1
@@ -3,23 +3,23 @@
3
3
 
4
4
  var chunkTXBXIUTX_cjs = require('../chunk-TXBXIUTX.cjs');
5
5
  var chunk6OK7ESTL_cjs = require('../chunk-6OK7ESTL.cjs');
6
- var chunkTENWM7BH_cjs = require('../chunk-TENWM7BH.cjs');
6
+ var chunkQW6NCUR7_cjs = require('../chunk-QW6NCUR7.cjs');
7
7
  var chunkK3ZZ6IH3_cjs = require('../chunk-K3ZZ6IH3.cjs');
8
8
  var chunkMBXXWTKT_cjs = require('../chunk-MBXXWTKT.cjs');
9
9
  var chunk2FA7UVLG_cjs = require('../chunk-2FA7UVLG.cjs');
10
10
  var chunk5GCCUXMT_cjs = require('../chunk-5GCCUXMT.cjs');
11
11
  var chunkUWTCK5IN_cjs = require('../chunk-UWTCK5IN.cjs');
12
- var chunkCESE7GLT_cjs = require('../chunk-CESE7GLT.cjs');
12
+ var chunkRGSFPWG2_cjs = require('../chunk-RGSFPWG2.cjs');
13
13
  var chunkWNAZM2YS_cjs = require('../chunk-WNAZM2YS.cjs');
14
14
  var chunk32W2S6DE_cjs = require('../chunk-32W2S6DE.cjs');
15
15
  var chunkKWJW5TMH_cjs = require('../chunk-KWJW5TMH.cjs');
16
- var chunkC4Z6LOLA_cjs = require('../chunk-C4Z6LOLA.cjs');
16
+ var chunkIZNSTFAT_cjs = require('../chunk-IZNSTFAT.cjs');
17
17
  var chunkMEYQLQWS_cjs = require('../chunk-MEYQLQWS.cjs');
18
18
  var chunkTOYKBRAU_cjs = require('../chunk-TOYKBRAU.cjs');
19
19
  var chunkORQXGMCC_cjs = require('../chunk-ORQXGMCC.cjs');
20
20
  var chunk33GOYI3O_cjs = require('../chunk-33GOYI3O.cjs');
21
21
  var chunk6CGMSJLB_cjs = require('../chunk-6CGMSJLB.cjs');
22
- var chunk3Y75LUCT_cjs = require('../chunk-3Y75LUCT.cjs');
22
+ var chunkHZG4GRDA_cjs = require('../chunk-HZG4GRDA.cjs');
23
23
  var chunkTJY7XPDE_cjs = require('../chunk-TJY7XPDE.cjs');
24
24
  var chunkC6RJQQLG_cjs = require('../chunk-C6RJQQLG.cjs');
25
25
  var chunkE5TPRRAW_cjs = require('../chunk-E5TPRRAW.cjs');
@@ -27,6 +27,9 @@ require('../chunk-UMMZNZV3.cjs');
27
27
  require('../chunk-AEQT2QQX.cjs');
28
28
  var chunkSFRKKPBB_cjs = require('../chunk-SFRKKPBB.cjs');
29
29
  require('../chunk-XNW62J54.cjs');
30
+ var chunk4M3OIBIS_cjs = require('../chunk-4M3OIBIS.cjs');
31
+ var chunk6U3CYVZC_cjs = require('../chunk-6U3CYVZC.cjs');
32
+ var chunkQUMUAJ2P_cjs = require('../chunk-QUMUAJ2P.cjs');
30
33
  var chunkVG5XNE4H_cjs = require('../chunk-VG5XNE4H.cjs');
31
34
  var chunkDDWLMYRO_cjs = require('../chunk-DDWLMYRO.cjs');
32
35
  var chunk4CIVQWAX_cjs = require('../chunk-4CIVQWAX.cjs');
@@ -34,14 +37,14 @@ var chunk57LUHZLV_cjs = require('../chunk-57LUHZLV.cjs');
34
37
  var chunkQWVUBTW3_cjs = require('../chunk-QWVUBTW3.cjs');
35
38
  var chunkJVEDKKNO_cjs = require('../chunk-JVEDKKNO.cjs');
36
39
  var chunkUD56Y6UA_cjs = require('../chunk-UD56Y6UA.cjs');
37
- var chunkSK6LFIU2_cjs = require('../chunk-SK6LFIU2.cjs');
40
+ var chunkTIBTTITZ_cjs = require('../chunk-TIBTTITZ.cjs');
38
41
  var chunkKP7BQIZL_cjs = require('../chunk-KP7BQIZL.cjs');
39
- var chunkC5APAFUY_cjs = require('../chunk-C5APAFUY.cjs');
42
+ var chunkN3H3YAKY_cjs = require('../chunk-N3H3YAKY.cjs');
40
43
  require('../chunk-HYUKPHCT.cjs');
41
44
  var chunkZPIZINH2_cjs = require('../chunk-ZPIZINH2.cjs');
42
45
  var chunk223D4727_cjs = require('../chunk-223D4727.cjs');
43
46
  var chunkSNUBQMIS_cjs = require('../chunk-SNUBQMIS.cjs');
44
- var chunkFABKMTAI_cjs = require('../chunk-FABKMTAI.cjs');
47
+ var chunkFRRF2OQ7_cjs = require('../chunk-FRRF2OQ7.cjs');
45
48
  var chunk4ONPEVTP_cjs = require('../chunk-4ONPEVTP.cjs');
46
49
  require('../chunk-V3KLUWQQ.cjs');
47
50
  var chunkOA3AN6WW_cjs = require('../chunk-OA3AN6WW.cjs');
@@ -55,7 +58,7 @@ require('../chunk-OUYBYZ7Y.cjs');
55
58
  var chunkQQMMCXBP_cjs = require('../chunk-QQMMCXBP.cjs');
56
59
  require('../chunk-DTMBAFIL.cjs');
57
60
  require('../chunk-7NJKDJVO.cjs');
58
- var chunk5Z22EXHJ_cjs = require('../chunk-5Z22EXHJ.cjs');
61
+ var chunk2EY52GDM_cjs = require('../chunk-2EY52GDM.cjs');
59
62
  var chunkEYXU32D7_cjs = require('../chunk-EYXU32D7.cjs');
60
63
  require('../chunk-NEGFHF3V.cjs');
61
64
  var chunkZ3LFF3YT_cjs = require('../chunk-Z3LFF3YT.cjs');
@@ -67,6 +70,7 @@ var chunkNX56DIG3_cjs = require('../chunk-NX56DIG3.cjs');
67
70
  var chunkZM6B5WJW_cjs = require('../chunk-ZM6B5WJW.cjs');
68
71
  var chunkP7VUIW24_cjs = require('../chunk-P7VUIW24.cjs');
69
72
  require('../chunk-7G2LJMUG.cjs');
73
+ var chunkZKKSTMMI_cjs = require('../chunk-ZKKSTMMI.cjs');
70
74
  var chunkUKOYN2WD_cjs = require('../chunk-UKOYN2WD.cjs');
71
75
  var chunkRC25WMVB_cjs = require('../chunk-RC25WMVB.cjs');
72
76
  var chunkIFJBE7M5_cjs = require('../chunk-IFJBE7M5.cjs');
@@ -80,9 +84,7 @@ var chunkNZNBJF3M_cjs = require('../chunk-NZNBJF3M.cjs');
80
84
  require('../chunk-NWNVWO6L.cjs');
81
85
  require('../chunk-SK6HQ46Q.cjs');
82
86
  require('../chunk-TG2GM7WJ.cjs');
83
- var chunkMNIQDXM6_cjs = require('../chunk-MNIQDXM6.cjs');
84
- var chunkT6WA6S5T_cjs = require('../chunk-T6WA6S5T.cjs');
85
- var chunkL62EU3TQ_cjs = require('../chunk-L62EU3TQ.cjs');
87
+ var chunkA53YMUOX_cjs = require('../chunk-A53YMUOX.cjs');
86
88
  var chunkSD7GUB44_cjs = require('../chunk-SD7GUB44.cjs');
87
89
  var chunkZU2B2RZK_cjs = require('../chunk-ZU2B2RZK.cjs');
88
90
  var chunkNSD37OF5_cjs = require('../chunk-NSD37OF5.cjs');
@@ -105,17 +107,13 @@ require('../chunk-AHDJXIUB.cjs');
105
107
  var chunkRL2HI6NP_cjs = require('../chunk-RL2HI6NP.cjs');
106
108
  var chunk6UZC4XVV_cjs = require('../chunk-6UZC4XVV.cjs');
107
109
  var chunkS5OGPQSB_cjs = require('../chunk-S5OGPQSB.cjs');
110
+ var chunkVZOOGA47_cjs = require('../chunk-VZOOGA47.cjs');
108
111
  var chunkOUGRCQM7_cjs = require('../chunk-OUGRCQM7.cjs');
109
112
  var chunkZVEW3JBT_cjs = require('../chunk-ZVEW3JBT.cjs');
110
113
  var chunkU2FFG2B3_cjs = require('../chunk-U2FFG2B3.cjs');
111
114
  var chunkJOUMBLGL_cjs = require('../chunk-JOUMBLGL.cjs');
112
115
  var chunkV6C2MBFY_cjs = require('../chunk-V6C2MBFY.cjs');
113
116
  var chunkM74FWYNL_cjs = require('../chunk-M74FWYNL.cjs');
114
- var chunk4M3OIBIS_cjs = require('../chunk-4M3OIBIS.cjs');
115
- var chunk6U3CYVZC_cjs = require('../chunk-6U3CYVZC.cjs');
116
- var chunkQUMUAJ2P_cjs = require('../chunk-QUMUAJ2P.cjs');
117
- var chunkZKKSTMMI_cjs = require('../chunk-ZKKSTMMI.cjs');
118
- var chunkVZOOGA47_cjs = require('../chunk-VZOOGA47.cjs');
119
117
  var chunkVF26CUE3_cjs = require('../chunk-VF26CUE3.cjs');
120
118
  require('../chunk-OAIOOVFN.cjs');
121
119
  var chunk6THN5ZGA_cjs = require('../chunk-6THN5ZGA.cjs');
@@ -153,10 +151,12 @@ require('../chunk-UDSHVNU3.cjs');
153
151
  var chunkIPSHAMO2_cjs = require('../chunk-IPSHAMO2.cjs');
154
152
  var chunkZBP4ZSAJ_cjs = require('../chunk-ZBP4ZSAJ.cjs');
155
153
  require('../chunk-PPCATBOY.cjs');
154
+ var chunkLJJJ6CYH_cjs = require('../chunk-LJJJ6CYH.cjs');
155
+ var chunkMNIQDXM6_cjs = require('../chunk-MNIQDXM6.cjs');
156
+ var chunkT6WA6S5T_cjs = require('../chunk-T6WA6S5T.cjs');
156
157
  var chunkLIKDQBNJ_cjs = require('../chunk-LIKDQBNJ.cjs');
157
158
  var chunkYZBDHBKI_cjs = require('../chunk-YZBDHBKI.cjs');
158
159
  var chunkCVPV4I7Z_cjs = require('../chunk-CVPV4I7Z.cjs');
159
- var chunkLJJJ6CYH_cjs = require('../chunk-LJJJ6CYH.cjs');
160
160
  require('../chunk-PLIF5CUV.cjs');
161
161
  var react = require('@arbidocs/react');
162
162
  var ui = require('@arbidocs/react/ui');
@@ -265,7 +265,7 @@ function ConnectedWorkspaceActivity({
265
265
  [feed.data]
266
266
  );
267
267
  return /* @__PURE__ */ jsxRuntime.jsx(
268
- chunk5Z22EXHJ_cjs.WorkspaceActivityList,
268
+ chunk2EY52GDM_cjs.WorkspaceActivityList,
269
269
  {
270
270
  ...listProps,
271
271
  items,
@@ -1145,7 +1145,7 @@ function NotificationCenter({
1145
1145
  }
1146
1146
  ];
1147
1147
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col h-full bg-background", "data-testid": "notifications-page", children: [
1148
- /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.DraggableHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(
1148
+ /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.DraggableHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(
1149
1149
  chunkSJSGSHIT_cjs.TabHeader,
1150
1150
  {
1151
1151
  tabs,
@@ -2092,7 +2092,7 @@ function ConnectedSkillsBrowser({
2092
2092
  }
2093
2093
  ) }),
2094
2094
  runSkillId && /* @__PURE__ */ jsxRuntime.jsx(
2095
- chunkCESE7GLT_cjs.ConnectedTaskComposer,
2095
+ chunkRGSFPWG2_cjs.ConnectedTaskComposer,
2096
2096
  {
2097
2097
  kind: "workflow",
2098
2098
  open: true,
@@ -2457,7 +2457,7 @@ function AgentChat({ agentId, workspaceId, onOpenFull }) {
2457
2457
  placeholder: "Ask your agent\u2026",
2458
2458
  conversations: "Agent chats"
2459
2459
  },
2460
- renderContent: (message) => /* @__PURE__ */ jsxRuntime.jsx(chunkSK6LFIU2_cjs.DocumentWorkspaceContext.Provider, { value: workspaceId, children: /* @__PURE__ */ jsxRuntime.jsx(chunkSK6LFIU2_cjs.ConnectedMarkdown, { isStreaming: message.status === "streaming", children: message.content }) })
2460
+ renderContent: (message) => /* @__PURE__ */ jsxRuntime.jsx(chunkTIBTTITZ_cjs.DocumentWorkspaceContext.Provider, { value: workspaceId, children: /* @__PURE__ */ jsxRuntime.jsx(chunkTIBTTITZ_cjs.ConnectedMarkdown, { isStreaming: message.status === "streaming", children: message.content }) })
2461
2461
  }
2462
2462
  )
2463
2463
  ] });
@@ -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 } = chunkLIKDQBNJ_cjs.useBlocksEnvironment();
2705
- const people = chunkCESE7GLT_cjs.useTaskPeople();
2705
+ const people = chunkRGSFPWG2_cjs.useTaskPeople();
2706
2706
  const canEditShared = react.useCanEditShared();
2707
2707
  const isWorkspaceOwner = react.useIsWorkspaceOwner();
2708
2708
  const { data: workflows = [] } = react.useWorkflows({ live: true });
@@ -2755,7 +2755,7 @@ function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
2755
2755
  }
2756
2756
  ),
2757
2757
  activityFor && /* @__PURE__ */ jsxRuntime.jsx(
2758
- chunkCESE7GLT_cjs.ConnectedTaskActivityDialog,
2758
+ chunkRGSFPWG2_cjs.ConnectedTaskActivityDialog,
2759
2759
  {
2760
2760
  conversationId: activityFor.external_id,
2761
2761
  taskName: activityFor.title || l.untitledTask,
@@ -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
- chunkCESE7GLT_cjs.ConnectedTaskComposer,
2917
+ chunkRGSFPWG2_cjs.ConnectedTaskComposer,
2918
2918
  {
2919
2919
  open: true,
2920
2920
  onOpenChange: (open) => !open && setTaskDialog(null),
@@ -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
- chunkFABKMTAI_cjs.ConnectedWorkflowsTable,
3074
+ chunkFRRF2OQ7_cjs.ConnectedWorkflowsTable,
3075
3075
  {
3076
3076
  filter: "scheduled",
3077
3077
  onEdit: (w) => openWorkflow?.(w.external_id),
@@ -3133,7 +3133,7 @@ function ConnectedAgentsPage({
3133
3133
  className: "flex h-full flex-col",
3134
3134
  "data-testid": scope.testIds?.root ?? DEFAULT_TEST_IDS.root,
3135
3135
  children: [
3136
- /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.DraggableHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(
3136
+ /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.DraggableHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(
3137
3137
  chunkSJSGSHIT_cjs.TabHeader,
3138
3138
  {
3139
3139
  tabs: [
@@ -3245,10 +3245,10 @@ function cascadeTagCombination(tags, previous, next) {
3245
3245
  function tagCombinationMatches(combination, items) {
3246
3246
  if (!isCombining(combination)) return void 0;
3247
3247
  const pass = (list) => new Set(
3248
- chunkC5APAFUY_cjs.applyInvertedIndexFilter(
3248
+ chunkN3H3YAKY_cjs.applyInvertedIndexFilter(
3249
3249
  [...list],
3250
3250
  combination,
3251
- chunkC5APAFUY_cjs.buildInvertedIndex(
3251
+ chunkN3H3YAKY_cjs.buildInvertedIndex(
3252
3252
  [...list],
3253
3253
  (item) => item.id,
3254
3254
  (item) => item.tagIds
@@ -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 = chunk5Z22EXHJ_cjs.tagTableDocx(data, {
3378
+ const bytes = chunk2EY52GDM_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
- chunk5Z22EXHJ_cjs.TagTable,
3387
+ chunk2EY52GDM_cjs.TagTable,
3388
3388
  {
3389
3389
  ...props,
3390
3390
  table,
@@ -4509,9 +4509,9 @@ function GlossaryExport({ labelId, nameOf }) {
4509
4509
  const narrowed = agreements.find((a) => a.id === narrowTo);
4510
4510
  const title = narrowed ? `Glossary - ${narrowed.name}` : "Glossary";
4511
4511
  const download = (format) => {
4512
- const entries = chunk5Z22EXHJ_cjs.glossaryEntries(sources, { labelId: narrowed?.id });
4513
- const blob = format === "docx" ? new Blob([chunk5Z22EXHJ_cjs.glossaryDocx(entries, { title })], { type: chunkUKOYN2WD_cjs.DOCX_MIME_TYPE }) : new Blob([chunk5Z22EXHJ_cjs.glossaryMarkdown(entries, { title })], { type: "text/markdown" });
4514
- documentTools.downloadBlob(blob, chunk5Z22EXHJ_cjs.glossaryFileName(title, format));
4512
+ const entries = chunk2EY52GDM_cjs.glossaryEntries(sources, { labelId: narrowed?.id });
4513
+ const blob = format === "docx" ? new Blob([chunk2EY52GDM_cjs.glossaryDocx(entries, { title })], { type: chunkUKOYN2WD_cjs.DOCX_MIME_TYPE }) : new Blob([chunk2EY52GDM_cjs.glossaryMarkdown(entries, { title })], { type: "text/markdown" });
4514
+ documentTools.downloadBlob(blob, chunk2EY52GDM_cjs.glossaryFileName(title, format));
4515
4515
  };
4516
4516
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", "data-testid": "tags-glossary", children: [
4517
4517
  agreements.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
@@ -4975,7 +4975,7 @@ function TagFilterChips({
4975
4975
  const name = (id) => tags.find((t) => t.external_id === id)?.name ?? id;
4976
4976
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-1.5", "data-testid": "tags-filter-chips", children: [
4977
4977
  set.map(([id, state]) => /* @__PURE__ */ jsxRuntime.jsx(
4978
- chunkC5APAFUY_cjs.FilterChip,
4978
+ chunkN3H3YAKY_cjs.FilterChip,
4979
4979
  {
4980
4980
  label: name(id),
4981
4981
  labelContent: /* @__PURE__ */ jsxRuntime.jsx(
@@ -5040,7 +5040,7 @@ function KindSection({
5040
5040
  {
5041
5041
  testId: `tags-kind-${kind}`,
5042
5042
  title: ui.tagKindTitle(kind, { plural: true }),
5043
- description: chunk5Z22EXHJ_cjs.tagKindDescription(kind),
5043
+ description: chunk2EY52GDM_cjs.tagKindDescription(kind),
5044
5044
  children: [
5045
5045
  browser.isEntityTag({ kind }) && extractingCount > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
5046
5046
  "p",
@@ -5050,9 +5050,9 @@ function KindSection({
5050
5050
  children: [
5051
5051
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-4 animate-spin" }),
5052
5052
  "Extracting ",
5053
- chunk5Z22EXHJ_cjs.entitiesPhrase().toLowerCase(),
5053
+ chunk2EY52GDM_cjs.entitiesPhrase().toLowerCase(),
5054
5054
  " from ",
5055
- chunk5Z22EXHJ_cjs.documentCount(extractingCount),
5055
+ chunk2EY52GDM_cjs.documentCount(extractingCount),
5056
5056
  "\u2026"
5057
5057
  ]
5058
5058
  }
@@ -5070,7 +5070,7 @@ function KindSection({
5070
5070
  onOpenTag: ctx.onOpenTag,
5071
5071
  onOpenRow: ctx.onOpenTag,
5072
5072
  onOpenTaggedItems: ctx.onOpenTaggedItems,
5073
- labels: chunk5Z22EXHJ_cjs.tagTableLabels(kind),
5073
+ labels: chunk2EY52GDM_cjs.tagTableLabels(kind),
5074
5074
  testId: `tags-table-${kind}`
5075
5075
  }
5076
5076
  )
@@ -5178,15 +5178,15 @@ function TagSection({
5178
5178
  onOpenTag: ctx.onOpenTag,
5179
5179
  onOpenRow: ctx.onOpenTag,
5180
5180
  onOpenTaggedItems: ctx.onOpenTaggedItems,
5181
- labels: chunk5Z22EXHJ_cjs.tagTableLabels(tag.kind),
5181
+ labels: chunk2EY52GDM_cjs.tagTableLabels(tag.kind),
5182
5182
  testId: "tags-rows"
5183
5183
  }
5184
5184
  ),
5185
5185
  /* @__PURE__ */ jsxRuntime.jsx(
5186
- chunk5Z22EXHJ_cjs.TagDetail,
5186
+ chunk2EY52GDM_cjs.TagDetail,
5187
5187
  {
5188
5188
  onOpenTaggedItems: ctx.onOpenTaggedItems,
5189
- fieldLabels: chunk5Z22EXHJ_cjs.tagTableLabels(tag.kind),
5189
+ fieldLabels: chunk2EY52GDM_cjs.tagTableLabels(tag.kind),
5190
5190
  row: detailRow,
5191
5191
  fields: schema.data?.fields ?? [],
5192
5192
  isLoading: detail.isLoading,
@@ -5200,7 +5200,7 @@ function TagSection({
5200
5200
  throw e;
5201
5201
  })
5202
5202
  ),
5203
- labels: chunk5Z22EXHJ_cjs.tagDetailLabels(),
5203
+ labels: chunk2EY52GDM_cjs.tagDetailLabels(),
5204
5204
  testId: "tags-detail"
5205
5205
  }
5206
5206
  )
@@ -5275,7 +5275,7 @@ function ConnectedTagsPage() {
5275
5275
  const onDelete = async (t) => {
5276
5276
  const nested = browser.getChildTags([...tags], t.external_id);
5277
5277
  const uses = browser.tagUseCount(t);
5278
- const n2 = chunk5Z22EXHJ_cjs.tagsPageNouns();
5278
+ const n2 = chunk2EY52GDM_cjs.tagsPageNouns();
5279
5279
  const tagNoun = (count2) => (count2 === 1 ? n2.tag : n2.tags).toLowerCase();
5280
5280
  const carriers = uses === 1 ? `${n2.document}, ${n2.fact} or ${n2.thread}` : `${n2.documents}, ${n2.facts} and ${n2.threads}`;
5281
5281
  const message = `Delete ${ui.tagKindNouns(t.kind).singular} "${t.name}"?` + (uses > 0 ? `
@@ -5296,11 +5296,11 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
5296
5296
  try {
5297
5297
  await extract.mutateAsync(docIds);
5298
5298
  notify19(
5299
- `Extracting ${chunk5Z22EXHJ_cjs.entitiesPhrase().toLowerCase()} from ${chunk5Z22EXHJ_cjs.documentCount(docIds.length)}. You will be notified when it is done.`,
5299
+ `Extracting ${chunk2EY52GDM_cjs.entitiesPhrase().toLowerCase()} from ${chunk2EY52GDM_cjs.documentCount(docIds.length)}. You will be notified when it is done.`,
5300
5300
  "info"
5301
5301
  );
5302
5302
  } catch (error) {
5303
- notify19(browser.refusalReason(error, `Could not extract ${chunk5Z22EXHJ_cjs.entitiesPhrase().toLowerCase()}`), "error");
5303
+ notify19(browser.refusalReason(error, `Could not extract ${chunk2EY52GDM_cjs.entitiesPhrase().toLowerCase()}`), "error");
5304
5304
  throw error;
5305
5305
  }
5306
5306
  };
@@ -5314,10 +5314,10 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
5314
5314
  onOpenTag: openTag,
5315
5315
  onOpenTaggedItems
5316
5316
  };
5317
- const n = chunk5Z22EXHJ_cjs.tagsPageNouns();
5317
+ const n = chunk2EY52GDM_cjs.tagsPageNouns();
5318
5318
  const action = view === "person" || view === "organisation" ? {
5319
5319
  label: "Extract",
5320
- title: `Extract ${chunk5Z22EXHJ_cjs.entitiesPhrase().toLowerCase()} from ${n.documents.toLowerCase()}`,
5320
+ title: `Extract ${chunk2EY52GDM_cjs.entitiesPhrase().toLowerCase()} from ${n.documents.toLowerCase()}`,
5321
5321
  icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { className: "h-4 w-4" }),
5322
5322
  run: () => setExtracting(true),
5323
5323
  testId: "tags-extract-entities"
@@ -5486,7 +5486,7 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
5486
5486
  }
5487
5487
  ),
5488
5488
  /* @__PURE__ */ jsxRuntime.jsx(
5489
- chunk5Z22EXHJ_cjs.ExtractEntitiesDialog,
5489
+ chunk2EY52GDM_cjs.ExtractEntitiesDialog,
5490
5490
  {
5491
5491
  open: extracting,
5492
5492
  onOpenChange: setExtracting,
@@ -6729,7 +6729,7 @@ function ConnectedFieldsManager({
6729
6729
  ) })
6730
6730
  ] });
6731
6731
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col h-full", children: [
6732
- /* @__PURE__ */ jsxRuntime.jsxs(chunkC5APAFUY_cjs.DraggableHeader, { children: [
6732
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkN3H3YAKY_cjs.DraggableHeader, { children: [
6733
6733
  /* @__PURE__ */ jsxRuntime.jsx(chunkZPIZINH2_cjs.FieldsManagerTitle, { title, className: "px-4 pt-3.5 pb-2" }),
6734
6734
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-3", children: tabHeader })
6735
6735
  ] }),
@@ -6846,7 +6846,7 @@ function ConnectedFactsSmartSearch({
6846
6846
  const runSearch = () => search().catch(() => notify19(`Could not search ${factsWord}. Please try again.`, "error"));
6847
6847
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full min-h-0 flex-col", "data-testid": "facts-smart-search", children: [
6848
6848
  /* @__PURE__ */ jsxRuntime.jsx(
6849
- chunk3Y75LUCT_cjs.FactSearchBar,
6849
+ chunkHZG4GRDA_cjs.FactSearchBar,
6850
6850
  {
6851
6851
  query,
6852
6852
  onQueryChange: setQuery,
@@ -6855,7 +6855,7 @@ function ConnectedFactsSmartSearch({
6855
6855
  isSearching
6856
6856
  }
6857
6857
  ),
6858
- !isSearching && hits !== null && hits.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(chunk3Y75LUCT_cjs.FactSearchTotals, { children: [
6858
+ !isSearching && hits !== null && hits.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(chunkHZG4GRDA_cjs.FactSearchTotals, { children: [
6859
6859
  hits.length.toLocaleString(),
6860
6860
  " ",
6861
6861
  hits.length === 1 ? factWord : factsWord,
@@ -6863,18 +6863,18 @@ function ConnectedFactsSmartSearch({
6863
6863
  lastQuery,
6864
6864
  "\u201D"
6865
6865
  ] }),
6866
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "scrollbar-subtle min-h-0 flex-1 overflow-y-auto px-4 pb-3", children: isSearching ? /* @__PURE__ */ jsxRuntime.jsxs(chunk3Y75LUCT_cjs.FactSearchPending, { children: [
6866
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "scrollbar-subtle min-h-0 flex-1 overflow-y-auto px-4 pb-3", children: isSearching ? /* @__PURE__ */ jsxRuntime.jsxs(chunkHZG4GRDA_cjs.FactSearchPending, { children: [
6867
6867
  "Searching ",
6868
6868
  factsWord,
6869
6869
  "\u2026"
6870
- ] }) : hits === null ? /* @__PURE__ */ jsxRuntime.jsx(chunkNX56DIG3_cjs.SearchEmptyState, { nouns, count: allFacts.length }) : hits.length === 0 ? /* @__PURE__ */ jsxRuntime.jsxs(chunk3Y75LUCT_cjs.FactSearchNoMatches, { children: [
6870
+ ] }) : hits === null ? /* @__PURE__ */ jsxRuntime.jsx(chunkNX56DIG3_cjs.SearchEmptyState, { nouns, count: allFacts.length }) : hits.length === 0 ? /* @__PURE__ */ jsxRuntime.jsxs(chunkHZG4GRDA_cjs.FactSearchNoMatches, { children: [
6871
6871
  "No ",
6872
6872
  factsWord,
6873
6873
  " matched \u201C",
6874
6874
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-foreground", children: lastQuery }),
6875
6875
  "\u201D."
6876
6876
  ] }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-2", children: hits.map((h, i) => /* @__PURE__ */ jsxRuntime.jsx(
6877
- chunk3Y75LUCT_cjs.FactSearchResult,
6877
+ chunkHZG4GRDA_cjs.FactSearchResult,
6878
6878
  {
6879
6879
  id: h.external_id,
6880
6880
  rank: i + 1,
@@ -6974,7 +6974,7 @@ function FactSourcesPopover({
6974
6974
  const olderVersion = refOf(docId) !== docId ? refOf(docId).split("@v")[1] : null;
6975
6975
  const cited = passagesOf(docId);
6976
6976
  return /* @__PURE__ */ jsxRuntime.jsx(
6977
- chunk3Y75LUCT_cjs.FactSourceGroup,
6977
+ chunkHZG4GRDA_cjs.FactSourceGroup,
6978
6978
  {
6979
6979
  docId,
6980
6980
  isViewing,
@@ -7063,7 +7063,7 @@ function FactMarkdownEditor({
7063
7063
  const editorRef = react$1.useRef(null);
7064
7064
  react$1.useEffect(() => {
7065
7065
  if (!editorRef.current) return;
7066
- return chunk3Y75LUCT_cjs.enableFactTableColumnResize(editorRef.current);
7066
+ return chunkHZG4GRDA_cjs.enableFactTableColumnResize(editorRef.current);
7067
7067
  }, []);
7068
7068
  react$1.useEffect(() => {
7069
7069
  if (!editing) return;
@@ -7629,10 +7629,10 @@ function useFactFilters(notes, view, chat) {
7629
7629
  );
7630
7630
  const setFactFilters = view.setFilters;
7631
7631
  const quickFilteredNotes = react$1.useMemo(
7632
- () => chunkC5APAFUY_cjs.applyInvertedIndexFilter(
7632
+ () => chunkN3H3YAKY_cjs.applyInvertedIndexFilter(
7633
7633
  notes,
7634
7634
  factFilters,
7635
- chunkC5APAFUY_cjs.buildInvertedIndex(
7635
+ chunkN3H3YAKY_cjs.buildInvertedIndex(
7636
7636
  notes,
7637
7637
  (f) => f.external_id,
7638
7638
  (f) => Object.entries(getFactFilterAttributes(f)).filter(([id, on]) => on && factFilterIds.includes(id)).map(([id]) => id)
@@ -7702,7 +7702,7 @@ function useFactFilters(notes, view, chat) {
7702
7702
  const makeTagPicker = react$1.useCallback(
7703
7703
  (selected, setSelected, opts) => {
7704
7704
  const applied = new Set(selected);
7705
- return /* @__PURE__ */ jsxRuntime.jsx(chunk3Y75LUCT_cjs.FactFieldRow, { label: "Labels", children: /* @__PURE__ */ jsxRuntime.jsx(
7705
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkHZG4GRDA_cjs.FactFieldRow, { label: "Labels", children: /* @__PURE__ */ jsxRuntime.jsx(
7706
7706
  chunkZPIZINH2_cjs.FieldLabelsSelect,
7707
7707
  {
7708
7708
  options: labelOptions,
@@ -7894,14 +7894,14 @@ function useFactSelection(notes, gridApiRef, setFactTags, chat) {
7894
7894
  }
7895
7895
  function renderSourcesCell(params) {
7896
7896
  const fact = params.data;
7897
- const count2 = chunk3Y75LUCT_cjs.sourceDocCount(fact);
7897
+ const count2 = chunkHZG4GRDA_cjs.sourceDocCount(fact);
7898
7898
  if (!fact || count2 === 0) return /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground/40", children: "\u2014" });
7899
7899
  return /* @__PURE__ */ jsxRuntime.jsxs(
7900
7900
  "button",
7901
7901
  {
7902
7902
  type: "button",
7903
7903
  onClick: () => params.context?.openEdit?.(fact),
7904
- title: chunk3Y75LUCT_cjs.DEFAULT_FACT_COLUMN_LABELS.sourcedFrom(count2),
7904
+ title: chunkHZG4GRDA_cjs.DEFAULT_FACT_COLUMN_LABELS.sourcedFrom(count2),
7905
7905
  "data-testid": `facts-grid-sources-${fact.external_id}`,
7906
7906
  className: "inline-flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground",
7907
7907
  children: [
@@ -7958,14 +7958,14 @@ function createFactPageColumns({
7958
7958
  onToggleConfirmed,
7959
7959
  onToggleShared
7960
7960
  }) {
7961
- const columns = chunk3Y75LUCT_cjs.createFactColumns({
7961
+ const columns = chunkHZG4GRDA_cjs.createFactColumns({
7962
7962
  onToggleInChat,
7963
7963
  isInChat,
7964
7964
  renderHeader: (params, colId) => /* @__PURE__ */ jsxRuntime.jsx(FactHeader, { params, colId }),
7965
7965
  renderRowActions: (fact, params) => {
7966
7966
  const ctx = params.context;
7967
7967
  return /* @__PURE__ */ jsxRuntime.jsx(
7968
- chunk3Y75LUCT_cjs.FactRowActions,
7968
+ chunkHZG4GRDA_cjs.FactRowActions,
7969
7969
  {
7970
7970
  onEdit: () => ctx?.openEdit?.(fact),
7971
7971
  canEdit: ctx?.canRewrite?.(fact) !== false,
@@ -8094,7 +8094,7 @@ function useFactsGrid({
8094
8094
  );
8095
8095
  const renderFactTags = react$1.useCallback(
8096
8096
  (fact, rowHeight) => /* @__PURE__ */ jsxRuntime.jsx(
8097
- chunk3Y75LUCT_cjs.FactLabelsCell,
8097
+ chunkHZG4GRDA_cjs.FactLabelsCell,
8098
8098
  {
8099
8099
  options: labelOptions,
8100
8100
  selectedIds: fact.tags.map((t) => t.tag_ext_id),
@@ -8459,7 +8459,7 @@ function ConnectedFactsPage() {
8459
8459
  };
8460
8460
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: setFactSection, className: "relative flex h-full flex-col", "data-testid": "facts-page", children: [
8461
8461
  /* @__PURE__ */ jsxRuntime.jsx(
8462
- chunk3Y75LUCT_cjs.FactsToolbar,
8462
+ chunkHZG4GRDA_cjs.FactsToolbar,
8463
8463
  {
8464
8464
  count: filteredNotes.length,
8465
8465
  hasActiveFilters: filters.hasActiveFilters,
@@ -8488,7 +8488,7 @@ function ConnectedFactsPage() {
8488
8488
  onNewFact: composing && !editingId ? () => void 0 : composer.startNewFact,
8489
8489
  navSlotRef: setNavSlot,
8490
8490
  navigator: view === "table" ? /* @__PURE__ */ jsxRuntime.jsx(
8491
- chunk5Z22EXHJ_cjs.GridRowNavigator,
8491
+ chunk2EY52GDM_cjs.GridRowNavigator,
8492
8492
  {
8493
8493
  gridApi,
8494
8494
  selectedId: editingId,
@@ -8499,7 +8499,7 @@ function ConnectedFactsPage() {
8499
8499
  ) : null,
8500
8500
  showToolbarRow: view !== "smart_search",
8501
8501
  tools: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
8502
- view === "table" && /* @__PURE__ */ jsxRuntime.jsx(chunk3Y75LUCT_cjs.FactsFieldsButton, { getGridApi: () => gridApiRef.current }),
8502
+ view === "table" && /* @__PURE__ */ jsxRuntime.jsx(chunkHZG4GRDA_cjs.FactsFieldsButton, { getGridApi: () => gridApiRef.current }),
8503
8503
  view === "table" && /* @__PURE__ */ jsxRuntime.jsx(
8504
8504
  chunkZPIZINH2_cjs.RowDensityControl,
8505
8505
  {
@@ -8537,7 +8537,7 @@ function ConnectedFactsPage() {
8537
8537
  }
8538
8538
  ) }),
8539
8539
  /* @__PURE__ */ jsxRuntime.jsx(
8540
- chunk3Y75LUCT_cjs.FactComposer,
8540
+ chunkHZG4GRDA_cjs.FactComposer,
8541
8541
  {
8542
8542
  isOpen: composing,
8543
8543
  isEditing: !!editingId,
@@ -8567,7 +8567,7 @@ function ConnectedFactsPage() {
8567
8567
  reserveSourcesSpace: view === "gantt" || view === "calendar",
8568
8568
  citationContainer: factSection,
8569
8569
  renderDocumentPicker: (onSelect, selectedIds, onOpen, sourcesToggle, sourcesOpen) => /* @__PURE__ */ jsxRuntime.jsx(
8570
- chunk3Y75LUCT_cjs.FactSourcesRow,
8570
+ chunkHZG4GRDA_cjs.FactSourcesRow,
8571
8571
  {
8572
8572
  toggle: sourcesToggle,
8573
8573
  picker: /* @__PURE__ */ jsxRuntime.jsx(
@@ -8613,7 +8613,7 @@ function ConnectedFactsPage() {
8613
8613
  }
8614
8614
  ),
8615
8615
  dateInput: /* @__PURE__ */ jsxRuntime.jsx(
8616
- chunk3Y75LUCT_cjs.FactDateInput,
8616
+ chunkHZG4GRDA_cjs.FactDateInput,
8617
8617
  {
8618
8618
  value: composer.draftDateFields,
8619
8619
  onChange: composer.setDraftDateFields,
@@ -8623,7 +8623,7 @@ function ConnectedFactsPage() {
8623
8623
  }
8624
8624
  ),
8625
8625
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "scrollbar-subtle flex-1 overflow-y-auto pb-2", children: [
8626
- isLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunk3Y75LUCT_cjs.FactsLoading, {}) : isError ? /* @__PURE__ */ jsxRuntime.jsx(chunk3Y75LUCT_cjs.FactsLoadError, { onRetry: () => refetch() }) : view === "smart_search" ? (
8626
+ isLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunkHZG4GRDA_cjs.FactsLoading, {}) : isError ? /* @__PURE__ */ jsxRuntime.jsx(chunkHZG4GRDA_cjs.FactsLoadError, { onRetry: () => refetch() }) : view === "smart_search" ? (
8627
8627
  // Searches facts only (never documents). Kept before the empty-state guard so the
8628
8628
  // search UI is reachable even in an empty workspace.
8629
8629
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -8636,7 +8636,7 @@ function ConnectedFactsPage() {
8636
8636
  )
8637
8637
  ) : notes.length === 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-full flex-col items-center justify-center", children: [
8638
8638
  /* @__PURE__ */ jsxRuntime.jsx(
8639
- chunk3Y75LUCT_cjs.FactsEmptyState,
8639
+ chunkHZG4GRDA_cjs.FactsEmptyState,
8640
8640
  {
8641
8641
  onUseExample: (text) => {
8642
8642
  composer.setDraft(text);
@@ -8647,7 +8647,7 @@ function ConnectedFactsPage() {
8647
8647
  ),
8648
8648
  /* @__PURE__ */ jsxRuntime.jsx(FactsFindInDocuments, {})
8649
8649
  ] }) : view === "calendar" ? /* @__PURE__ */ jsxRuntime.jsx(
8650
- chunk3Y75LUCT_cjs.FactsCalendar,
8650
+ chunkHZG4GRDA_cjs.FactsCalendar,
8651
8651
  {
8652
8652
  facts: filteredNotes,
8653
8653
  onSelect: (n) => openEditIfAllowed(n),
@@ -8656,7 +8656,7 @@ function ConnectedFactsPage() {
8656
8656
  navigatorTotal: filteredNotes.length
8657
8657
  }
8658
8658
  ) : view === "gantt" ? /* @__PURE__ */ jsxRuntime.jsx(
8659
- chunk3Y75LUCT_cjs.FactsGanttPane,
8659
+ chunkHZG4GRDA_cjs.FactsGanttPane,
8660
8660
  {
8661
8661
  items: ganttItems,
8662
8662
  labelWidth: pageView.labelWidth,
@@ -8706,7 +8706,7 @@ function ConnectedFactsPage() {
8706
8706
  )
8707
8707
  ] }),
8708
8708
  selectable && notes.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
8709
- chunk3Y75LUCT_cjs.FactsBulkBar,
8709
+ chunkHZG4GRDA_cjs.FactsBulkBar,
8710
8710
  {
8711
8711
  count: selection.selectedFacts.length,
8712
8712
  onClear: selection.clearSelection,
@@ -8765,7 +8765,7 @@ function useConnectedShellWorkspaces(options = {}) {
8765
8765
  function ConnectedSsoDisconnect() {
8766
8766
  const { client } = react.useAccountClient();
8767
8767
  const { data: profile } = react.useProfile();
8768
- const auth = chunkC4Z6LOLA_cjs.useAuthPages();
8768
+ const auth = chunkIZNSTFAT_cjs.useAuthPages();
8769
8769
  const { notify: notify19 } = chunkLIKDQBNJ_cjs.useBlocksEnvironment();
8770
8770
  const [open, setOpen] = react$1.useState(false);
8771
8771
  const [step, setStep] = react$1.useState("email");
@@ -8910,7 +8910,7 @@ function ConnectedBoxPortalSection() {
8910
8910
  function ServerConnectionRow({ onRefresh, ...status }) {
8911
8911
  const { runtimeConfig } = chunkLIKDQBNJ_cjs.useBlocksEnvironment();
8912
8912
  const [isRefreshing, setIsRefreshing] = react$1.useState(false);
8913
- const view = chunkC5APAFUY_cjs.serverConnectionView(status, runtimeConfig.deploymentDomain || "server");
8913
+ const view = chunkN3H3YAKY_cjs.serverConnectionView(status, runtimeConfig.deploymentDomain || "server");
8914
8914
  const refresh = async () => {
8915
8915
  setIsRefreshing(true);
8916
8916
  try {
@@ -8920,7 +8920,7 @@ function ServerConnectionRow({ onRefresh, ...status }) {
8920
8920
  }
8921
8921
  };
8922
8922
  return /* @__PURE__ */ jsxRuntime.jsx(chunkQQMMCXBP_cjs.SettingsRow, { label: "Server connection", description: view.description, children: /* @__PURE__ */ jsxRuntime.jsx(
8923
- chunkC5APAFUY_cjs.ServerConnectionButton,
8923
+ chunkN3H3YAKY_cjs.ServerConnectionButton,
8924
8924
  {
8925
8925
  state: view.state,
8926
8926
  label: view.label,
@@ -8943,14 +8943,14 @@ function ConnectedAccountSettings({
8943
8943
  }) {
8944
8944
  const [logoutOpen, setLogoutOpen] = react$1.useState(false);
8945
8945
  return /* @__PURE__ */ jsxRuntime.jsxs(chunkQQMMCXBP_cjs.SettingsPanel, { className: "max-w-2xl", children: [
8946
- /* @__PURE__ */ jsxRuntime.jsx(chunkC4Z6LOLA_cjs.ConnectedProfileCard, { avatarClassName, nameBadge: profileBadge }),
8946
+ /* @__PURE__ */ jsxRuntime.jsx(chunkIZNSTFAT_cjs.ConnectedProfileCard, { avatarClassName, nameBadge: profileBadge }),
8947
8947
  /* @__PURE__ */ jsxRuntime.jsx(ConnectedBoxPortalSection, {}),
8948
8948
  /* @__PURE__ */ jsxRuntime.jsxs(chunkQQMMCXBP_cjs.SettingsDisclosure, { title: "More", testId: "account-more-settings", children: [
8949
8949
  /* @__PURE__ */ jsxRuntime.jsx(ConnectedSsoDisconnect, {}),
8950
- /* @__PURE__ */ jsxRuntime.jsx(chunkC4Z6LOLA_cjs.ConnectedSecuritySection, { children: securityRows }),
8950
+ /* @__PURE__ */ jsxRuntime.jsx(chunkIZNSTFAT_cjs.ConnectedSecuritySection, { children: securityRows }),
8951
8951
  moreSettings,
8952
8952
  /* @__PURE__ */ jsxRuntime.jsx(
8953
- chunkC4Z6LOLA_cjs.ConnectedIdentityVerification,
8953
+ chunkIZNSTFAT_cjs.ConnectedIdentityVerification,
8954
8954
  {
8955
8955
  collapsible: true,
8956
8956
  onManageBilling,
@@ -8960,7 +8960,7 @@ function ConnectedAccountSettings({
8960
8960
  ] }),
8961
8961
  /* @__PURE__ */ jsxRuntime.jsx(chunkQQMMCXBP_cjs.SettingsSection, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Wifi, {}), title: "Session", children: /* @__PURE__ */ jsxRuntime.jsxs(chunkQQMMCXBP_cjs.SettingsCard, { children: [
8962
8962
  connection && /* @__PURE__ */ jsxRuntime.jsx(ServerConnectionRow, { ...connection }),
8963
- /* @__PURE__ */ jsxRuntime.jsx(chunkC4Z6LOLA_cjs.ConnectedSessionsRow, { renderSessionIcon }),
8963
+ /* @__PURE__ */ jsxRuntime.jsx(chunkIZNSTFAT_cjs.ConnectedSessionsRow, { renderSessionIcon }),
8964
8964
  /* @__PURE__ */ jsxRuntime.jsx(chunkQQMMCXBP_cjs.SettingsRow, { label: "Logout", description: "Sign out of your account on this device.", children: /* @__PURE__ */ jsxRuntime.jsxs(
8965
8965
  ui.Button,
8966
8966
  {
@@ -8977,9 +8977,9 @@ function ConnectedAccountSettings({
8977
8977
  }
8978
8978
  ) })
8979
8979
  ] }) }),
8980
- /* @__PURE__ */ jsxRuntime.jsx(chunkC4Z6LOLA_cjs.ConnectedDangerZone, { renderSubscriptionLink }),
8980
+ /* @__PURE__ */ jsxRuntime.jsx(chunkIZNSTFAT_cjs.ConnectedDangerZone, { renderSubscriptionLink }),
8981
8981
  !onLogout && /* @__PURE__ */ jsxRuntime.jsx(
8982
- chunkC4Z6LOLA_cjs.ConnectedLogoutDialog,
8982
+ chunkIZNSTFAT_cjs.ConnectedLogoutDialog,
8983
8983
  {
8984
8984
  open: logoutOpen,
8985
8985
  onClose: () => setLogoutOpen(false),
@@ -9322,7 +9322,7 @@ function ConnectedPrivacySettings({
9322
9322
  }
9323
9323
  )
9324
9324
  ] }) }),
9325
- /* @__PURE__ */ jsxRuntime.jsx(chunkC4Z6LOLA_cjs.ConnectedNotificationPreferences, {})
9325
+ /* @__PURE__ */ jsxRuntime.jsx(chunkIZNSTFAT_cjs.ConnectedNotificationPreferences, {})
9326
9326
  ] });
9327
9327
  }
9328
9328
  var PROVIDER_NAMES = {
@@ -9363,13 +9363,13 @@ var COLUMNS = [
9363
9363
  flex: 1,
9364
9364
  minWidth: 120,
9365
9365
  cellRenderer: (params) => isStandard(params.data) ? /* @__PURE__ */ jsxRuntime.jsx(
9366
- chunkC5APAFUY_cjs.ModelProviderLabel,
9366
+ chunkN3H3YAKY_cjs.ModelProviderLabel,
9367
9367
  {
9368
9368
  logo: /* @__PURE__ */ jsxRuntime.jsx(ui.ArbiIcon, { size: 14, "aria-label": "ARBI", className: "flex-shrink-0 rounded-sm" }),
9369
9369
  children: "ARBI CITY"
9370
9370
  }
9371
9371
  ) : /* @__PURE__ */ jsxRuntime.jsx(
9372
- chunkC5APAFUY_cjs.ModelProviderLabel,
9372
+ chunkN3H3YAKY_cjs.ModelProviderLabel,
9373
9373
  {
9374
9374
  logo: /* @__PURE__ */ jsxRuntime.jsx(ui.ProviderIcon, { modelName: params.data?.model_name, provider: params.value, size: 14 }),
9375
9375
  children: PROVIDER_NAMES[params.value ?? ""] || params.value || "\u2014"
@@ -9446,7 +9446,7 @@ function ConnectedPremiumModels() {
9446
9446
  );
9447
9447
  if (premiumModels.length === 0) return null;
9448
9448
  return /* @__PURE__ */ jsxRuntime.jsx(chunkQQMMCXBP_cjs.SettingsPanel, { className: "max-w-2xl space-y-4", children: /* @__PURE__ */ jsxRuntime.jsx(chunkQQMMCXBP_cjs.SettingsSection, { title: "Premium models", children: /* @__PURE__ */ jsxRuntime.jsx(chunkQQMMCXBP_cjs.SettingsCard, { className: "space-y-0", children: /* @__PURE__ */ jsxRuntime.jsx(
9449
- chunkC5APAFUY_cjs.PremiumModelsFrame,
9449
+ chunkN3H3YAKY_cjs.PremiumModelsFrame,
9450
9450
  {
9451
9451
  enabled: premiumModel !== "",
9452
9452
  onEnabledChange: (enabled) => {
@@ -9782,10 +9782,10 @@ function ConnectedAppsSettings({
9782
9782
  }
9783
9783
  };
9784
9784
  if (isLoading) {
9785
- return /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.ConnectionsLoading, { message: "Loading connected apps\u2026" });
9785
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.ConnectionsLoading, { message: "Loading connected apps\u2026" });
9786
9786
  }
9787
9787
  if (catalogError) {
9788
- return /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.ConnectionsError, { message: "Failed to load connector catalog. Please refresh and try again." });
9788
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.ConnectionsError, { message: "Failed to load connector catalog. Please refresh and try again." });
9789
9789
  }
9790
9790
  const visibleCatalog = catalog.filter((c) => isVendorVisible(c.vendor_key));
9791
9791
  const sharePointVisible = isVendorVisible("microsoft_sharepoint");
@@ -9794,7 +9794,7 @@ function ConnectedAppsSettings({
9794
9794
  (c) => !react.isMailboxSyncVendor(c.vendor_key) && !react.isSharePointVendor(c.vendor_key)
9795
9795
  );
9796
9796
  const renderCard = (entry) => /* @__PURE__ */ jsxRuntime.jsx(
9797
- chunkC5APAFUY_cjs.ConnectionCard,
9797
+ chunkN3H3YAKY_cjs.ConnectionCard,
9798
9798
  {
9799
9799
  connection: toConnectionCardView(entry, connectedByVendor[entry.vendor_key], {
9800
9800
  isDisconnecting: disconnect.isPending && disconnect.variables?.vendorKey === entry.vendor_key,
@@ -9922,7 +9922,7 @@ function ConnectedAppsSettings({
9922
9922
  }
9923
9923
  )
9924
9924
  ] }),
9925
- catalog.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(chunkQQMMCXBP_cjs.SettingsCard, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.ConnectionsEmpty, { message: "No connectors available yet." }) }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
9925
+ catalog.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(chunkQQMMCXBP_cjs.SettingsCard, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.ConnectionsEmpty, { message: "No connectors available yet." }) }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
9926
9926
  renderGroup("Email & Drive", EMAIL_AND_DRIVE_SUBTITLE, /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Mail, {}), emailCatalog),
9927
9927
  renderGroup(
9928
9928
  "Apps & Integrations (MCP)",
@@ -10375,7 +10375,7 @@ function ConnectedStorageProjectCard({
10375
10375
  project.personal && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-0.5 text-sm text-muted-foreground", children: "Mail, recordings of calls you host, chat attachments and everything not in a project." })
10376
10376
  ] }),
10377
10377
  /* @__PURE__ */ jsxRuntime.jsx(
10378
- chunkC5APAFUY_cjs.UsageToggle,
10378
+ chunkN3H3YAKY_cjs.UsageToggle,
10379
10379
  {
10380
10380
  value: view,
10381
10381
  onChange: setView,
@@ -10460,7 +10460,7 @@ function ConnectedStorageProjectCard({
10460
10460
  ] })
10461
10461
  ] }),
10462
10462
  view === "largest" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
10463
- /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.UsageToggle, { value: kind, onChange: setKind, options: KIND_FILTERS, ariaLabel: "Kind" }),
10463
+ /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.UsageToggle, { value: kind, onChange: setKind, options: KIND_FILTERS, ariaLabel: "Kind" }),
10464
10464
  largest.isLoading ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground", children: "Loading\u2026" }) : /* @__PURE__ */ jsxRuntime.jsx(
10465
10465
  StorageItemsTable,
10466
10466
  {
@@ -10719,7 +10719,7 @@ function ConnectedSettingsPage({
10719
10719
  }, [requested]);
10720
10720
  const controlled = section !== void 0;
10721
10721
  return /* @__PURE__ */ jsxRuntime.jsx(
10722
- chunkC5APAFUY_cjs.SettingsPage,
10722
+ chunkN3H3YAKY_cjs.SettingsPage,
10723
10723
  {
10724
10724
  ...page,
10725
10725
  sections,
@@ -10751,7 +10751,7 @@ function UsageSettings({ icon: icon2 }) {
10751
10751
  description: "AI usage today, in \xA3 (ex VAT).",
10752
10752
  testId: "settings-usage",
10753
10753
  children: /* @__PURE__ */ jsxRuntime.jsx(
10754
- chunkC5APAFUY_cjs.UsageSummary,
10754
+ chunkN3H3YAKY_cjs.UsageSummary,
10755
10755
  {
10756
10756
  stats: [
10757
10757
  {
@@ -10869,7 +10869,7 @@ function ReaderAppearance({ bundle }) {
10869
10869
  const { defaults } = bundle;
10870
10870
  const isDefault = state.pairingId === defaults.pairingId && state.colorScheme === defaults.colorScheme && state.textSize === defaults.textSize;
10871
10871
  return /* @__PURE__ */ jsxRuntime.jsx(
10872
- chunkC5APAFUY_cjs.AppearanceSettings,
10872
+ chunkN3H3YAKY_cjs.AppearanceSettings,
10873
10873
  {
10874
10874
  colorScheme: state.colorScheme,
10875
10875
  onColorSchemeChange: state.setColorScheme,
@@ -11096,7 +11096,7 @@ function SwitchRow({ row: row2 }) {
11096
11096
  const { on, set } = react.useFeatureSwitch(row2.feature);
11097
11097
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
11098
11098
  /* @__PURE__ */ jsxRuntime.jsx(
11099
- chunkC5APAFUY_cjs.SettingsSwitchRow,
11099
+ chunkN3H3YAKY_cjs.SettingsSwitchRow,
11100
11100
  {
11101
11101
  id: row2.id ?? row2.feature,
11102
11102
  testId: row2.testId ?? `toggle-${row2.feature}`,
@@ -11107,14 +11107,14 @@ function SwitchRow({ row: row2 }) {
11107
11107
  onCheckedChange: set
11108
11108
  }
11109
11109
  ),
11110
- on && row2.rows && row2.rows.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.SettingsSwitchGroup, { children: row2.rows.map((sub) => /* @__PURE__ */ jsxRuntime.jsx(FeatureRow, { row: sub }, sub.feature)) })
11110
+ on && row2.rows && row2.rows.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.SettingsSwitchGroup, { children: row2.rows.map((sub) => /* @__PURE__ */ jsxRuntime.jsx(FeatureRow, { row: sub }, sub.feature)) })
11111
11111
  ] });
11112
11112
  }
11113
11113
  function CallsRow({ row: row2 }) {
11114
11114
  const { on, set } = react.useFeatureSwitch(row2.feature);
11115
- const state = chunkC5APAFUY_cjs.callsSwitchState(react.useCallsConfig(), on);
11115
+ const state = chunkN3H3YAKY_cjs.callsSwitchState(react.useCallsConfig(), on);
11116
11116
  return /* @__PURE__ */ jsxRuntime.jsx(
11117
- chunkC5APAFUY_cjs.SettingsSwitchRow,
11117
+ chunkN3H3YAKY_cjs.SettingsSwitchRow,
11118
11118
  {
11119
11119
  id: row2.id ?? row2.feature,
11120
11120
  testId: row2.testId ?? `toggle-${row2.feature}`,
@@ -11318,7 +11318,7 @@ function ConnectedRecoveryKeyDialog({
11318
11318
  const arbi = react.useArbi();
11319
11319
  const { user, isSso: isSsoMode } = react.useArbiSession();
11320
11320
  const userEmail = user?.email;
11321
- const sso = chunkC4Z6LOLA_cjs.useSsoSignIn();
11321
+ const sso = chunkIZNSTFAT_cjs.useSsoSignIn();
11322
11322
  const handleVerify = async () => {
11323
11323
  setError(null);
11324
11324
  if (!password) {
@@ -11479,7 +11479,7 @@ function ConnectedRemoteControlSwitch() {
11479
11479
  }
11480
11480
  function RemoteControlSwitch() {
11481
11481
  const enabled = react.useRemoteControl((state) => state.enabled);
11482
- const remote = chunkC4Z6LOLA_cjs.useRemoteControlActions();
11482
+ const remote = chunkIZNSTFAT_cjs.useRemoteControlActions();
11483
11483
  return /* @__PURE__ */ jsxRuntime.jsx(
11484
11484
  chunkQQMMCXBP_cjs.SettingsRow,
11485
11485
  {
@@ -11501,7 +11501,7 @@ function RemoteControlSwitch() {
11501
11501
  );
11502
11502
  }
11503
11503
  var JUST_CONNECTED_VIEW = "settings.justConnected";
11504
- var identityFeeLabel = (status) => `${chunkTENWM7BH_cjs.formatMoney(status.price_pence, status.currency.toLowerCase())} incl. VAT`;
11504
+ var identityFeeLabel = (status) => `${chunkQW6NCUR7_cjs.formatMoney(status.price_pence, status.currency.toLowerCase())} incl. VAT`;
11505
11505
  var openLogout = () => chunkYZBDHBKI_cjs.openDialog("logout");
11506
11506
  function RecoveryKeyRow() {
11507
11507
  const [open, setOpen] = react$1.useState(false);
@@ -11592,7 +11592,7 @@ function useSettingsSections({
11592
11592
  ] })
11593
11593
  }),
11594
11594
  // "Work offline" flips the one offline switch even while the server is reachable.
11595
- actions: /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.WorkOfflineToggle, { isOffline: forceOffline, onToggle: setWorkOffline })
11595
+ actions: /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.WorkOfflineToggle, { isOffline: forceOffline, onToggle: setWorkOffline })
11596
11596
  },
11597
11597
  ...showMail ? [
11598
11598
  mailSettingsSection({
@@ -11740,7 +11740,7 @@ function ConnectedDeploymentStorage() {
11740
11740
  deployment.unattributed_bytes > 0 && ` \xB7 ${chunkF6F375V7_cjs.formatBytes(deployment.unattributed_bytes)} not owned by any ${ui.entityNoun("PROJECT")}`
11741
11741
  ] }),
11742
11742
  trend.dates.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
11743
- chunkC5APAFUY_cjs.UsageLineChart,
11743
+ chunkN3H3YAKY_cjs.UsageLineChart,
11744
11744
  {
11745
11745
  dates: trend.dates,
11746
11746
  series: trend.series,
@@ -11749,7 +11749,7 @@ function ConnectedDeploymentStorage() {
11749
11749
  }
11750
11750
  ),
11751
11751
  /* @__PURE__ */ jsxRuntime.jsx(
11752
- chunkC5APAFUY_cjs.UsageToggle,
11752
+ chunkN3H3YAKY_cjs.UsageToggle,
11753
11753
  {
11754
11754
  value: view,
11755
11755
  onChange: setView,
@@ -11822,14 +11822,14 @@ function usePaidWorkspaceMembers() {
11822
11822
  try {
11823
11823
  return await mutation.mutateAsync(...args);
11824
11824
  } catch (error) {
11825
- const detail = chunkTENWM7BH_cjs.apiErrorDetail(error);
11825
+ const detail = chunkQW6NCUR7_cjs.apiErrorDetail(error);
11826
11826
  if (detail?.code !== "COLLABORATOR_CAPACITY_REQUIRED" || !detail.can_buy || !arbi || !detail.project_ext_id || !detail.blocks_required || !detail.block_size)
11827
11827
  throw error;
11828
11828
  const project = detail.project_ext_id;
11829
11829
  const quote = await arbi.projects.quoteAddon(project, "collaborators");
11830
11830
  const count2 = detail.blocks_required;
11831
- const today = chunkTENWM7BH_cjs.formatMoney(quote.now.total_pence * count2, "gbp");
11832
- const renewal = chunkTENWM7BH_cjs.formatMoney(quote.renewal.total_pence * count2, "gbp");
11831
+ const today = chunkQW6NCUR7_cjs.formatMoney(quote.now.total_pence * count2, "gbp");
11832
+ const renewal = chunkQW6NCUR7_cjs.formatMoney(quote.renewal.total_pence * count2, "gbp");
11833
11833
  const confirmed = await confirm({
11834
11834
  title: "More collaborator places needed",
11835
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.`,
@@ -12682,7 +12682,7 @@ function ConnectedProjectEntity({
12682
12682
  subscription = "none",
12683
12683
  ...props
12684
12684
  }) {
12685
- const { stripeEnabled } = chunkTENWM7BH_cjs.useBillingSupport();
12685
+ const { stripeEnabled } = chunkQW6NCUR7_cjs.useBillingSupport();
12686
12686
  return /* @__PURE__ */ jsxRuntime.jsx(
12687
12687
  ui.ProjectEntity,
12688
12688
  {
@@ -12779,7 +12779,7 @@ function StripeCheckoutModal({
12779
12779
  const [clientSecret, setClientSecret] = react$1.useState(null);
12780
12780
  const [isCreating, setIsCreating] = react$1.useState(false);
12781
12781
  const [stripe, setStripe] = react$1.useState(null);
12782
- const { stripeEnabled, checkout } = chunkTENWM7BH_cjs.useBillingSupport();
12782
+ const { stripeEnabled, checkout } = chunkQW6NCUR7_cjs.useBillingSupport();
12783
12783
  const createCheckout = react.useCreateProjectCheckout();
12784
12784
  const refreshProject = react.useRefreshProject();
12785
12785
  const invalidateProjects = react.useInvalidateProjects();
@@ -12820,7 +12820,7 @@ function StripeCheckoutModal({
12820
12820
  projectExtId,
12821
12821
  body: {
12822
12822
  interval,
12823
- packs: chunkTENWM7BH_cjs.PRO_PACKS,
12823
+ packs: chunkQW6NCUR7_cjs.PRO_PACKS,
12824
12824
  ai_blocks: aiBlocks,
12825
12825
  storage_blocks: storageBlocks,
12826
12826
  collaborator_blocks: collaboratorBlocks,
@@ -12838,7 +12838,7 @@ function StripeCheckoutModal({
12838
12838
  },
12839
12839
  onError: (error) => {
12840
12840
  console.error("Failed to create checkout session:", error);
12841
- const detail = chunkTENWM7BH_cjs.apiErrorDetail(error);
12841
+ const detail = chunkQW6NCUR7_cjs.apiErrorDetail(error);
12842
12842
  const reason = typeof detail === "string" ? detail : detail?.message;
12843
12843
  shell.notify.error(
12844
12844
  reason ? `Checkout didn't start: ${reason}` : "Checkout didn't start. Try again."
@@ -12874,9 +12874,9 @@ function StripeCheckoutModal({
12874
12874
  }
12875
12875
  }, [open]);
12876
12876
  const isStripeConfigured = stripeEnabled;
12877
- const vatNote = quote ? `${chunkTENWM7BH_cjs.checkoutItemsLabel(aiBlocks, storageBlocks, collaboratorBlocks, price)} \xB7 ${promoCode && !quote.promo_code ? "Before promo code: " : ""}${chunkTENWM7BH_cjs.quoteTotalLine(quote)}` : null;
12877
+ const vatNote = quote ? `${chunkQW6NCUR7_cjs.checkoutItemsLabel(aiBlocks, storageBlocks, collaboratorBlocks, price)} \xB7 ${promoCode && !quote.promo_code ? "Before promo code: " : ""}${chunkQW6NCUR7_cjs.quoteTotalLine(quote)}` : null;
12878
12878
  return /* @__PURE__ */ jsxRuntime.jsx(
12879
- chunkC5APAFUY_cjs.CheckoutDialogFrame,
12879
+ chunkN3H3YAKY_cjs.CheckoutDialogFrame,
12880
12880
  {
12881
12881
  open,
12882
12882
  onOpenChange,
@@ -12886,7 +12886,7 @@ function StripeCheckoutModal({
12886
12886
  children: clientSecret && !!stripe && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
12887
12887
  vatNote && /* @__PURE__ */ jsxRuntime.jsx("p", { "data-testid": "checkout-vat-note", className: "mb-4 text-sm text-muted-foreground", children: vatNote }),
12888
12888
  checkout?.render(stripe, { clientSecret, onComplete: handleComplete }),
12889
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3", children: /* @__PURE__ */ jsxRuntime.jsxs(chunkC5APAFUY_cjs.MoreInfo, { title: "Paying", label: "Payment help", testId: "checkout-payment-help", children: [
12889
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-3", children: /* @__PURE__ */ jsxRuntime.jsxs(chunkN3H3YAKY_cjs.MoreInfo, { title: "Paying", label: "Payment help", testId: "checkout-payment-help", children: [
12890
12890
  /* @__PURE__ */ jsxRuntime.jsx("p", { "data-testid": "checkout-decline-note", children: "Card declined? Nothing was charged. Try again or use another card." }),
12891
12891
  /* @__PURE__ */ jsxRuntime.jsx("p", { "data-testid": "checkout-vat-id-note", children: "No VAT number? Leave \u2018purchasing as a business\u2019 unticked." }),
12892
12892
  /* @__PURE__ */ jsxRuntime.jsx("p", { children: "Add-ons chosen here are on the first invoice with the subscription and renew with it until you reduce them." })
@@ -12895,6 +12895,39 @@ function StripeCheckoutModal({
12895
12895
  }
12896
12896
  );
12897
12897
  }
12898
+ function Bar({ className }) {
12899
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { "aria-hidden": "true", className: ui.cn("animate-pulse rounded bg-muted", className) });
12900
+ }
12901
+ function Card2() {
12902
+ return /* @__PURE__ */ jsxRuntime.jsxs(
12903
+ "div",
12904
+ {
12905
+ "aria-hidden": "true",
12906
+ className: "flex min-w-0 flex-col gap-3 rounded-[10px] border border-secondary/30 bg-secondary/5 px-3.5 py-2.5",
12907
+ style: { minHeight: 330 },
12908
+ children: [
12909
+ /* @__PURE__ */ jsxRuntime.jsx(Bar, { className: "h-8 w-full" }),
12910
+ /* @__PURE__ */ jsxRuntime.jsx(Bar, { className: "h-4 w-4/5" }),
12911
+ /* @__PURE__ */ jsxRuntime.jsx(Bar, { className: "h-4 w-3/5" }),
12912
+ /* @__PURE__ */ jsxRuntime.jsx(Bar, { className: "h-4 w-2/3" }),
12913
+ /* @__PURE__ */ jsxRuntime.jsx(Bar, { className: "mt-auto h-6 w-1/3" })
12914
+ ]
12915
+ }
12916
+ );
12917
+ }
12918
+ function PlanPricesSkeleton({ cards = 2 }) {
12919
+ return /* @__PURE__ */ jsxRuntime.jsx(
12920
+ "div",
12921
+ {
12922
+ role: "status",
12923
+ "aria-busy": "true",
12924
+ "aria-label": "Loading prices",
12925
+ "data-testid": "plan-prices-skeleton",
12926
+ className: ui.cn("grid gap-2.5", cards === 2 ? "grid-cols-2" : "grid-cols-1"),
12927
+ children: Array.from({ length: cards }, (_, i) => /* @__PURE__ */ jsxRuntime.jsx(Card2, {}, i))
12928
+ }
12929
+ );
12930
+ }
12898
12931
  function useReferralOffer(enabled = true) {
12899
12932
  const { data } = react.useProducts({ enabled });
12900
12933
  const product = data?.[0];
@@ -12952,7 +12985,7 @@ function SubscriptionIntervalToggle({
12952
12985
  );
12953
12986
  }
12954
12987
  function purchaseNet(price, ai, storage, collaborators) {
12955
- const base = chunkTENWM7BH_cjs.packPrice(price)?.amount_ex_vat ?? price?.amount_ex_vat;
12988
+ const base = chunkQW6NCUR7_cjs.packPrice(price)?.amount_ex_vat ?? price?.amount_ex_vat;
12956
12989
  if (base == null) return null;
12957
12990
  let total = base;
12958
12991
  for (const [kind, count2] of [
@@ -12984,8 +13017,8 @@ function ProjectPurchaseOptions({
12984
13017
  const freeSummaryId = react$1.useId();
12985
13018
  const [promoOpen, setPromoOpen] = react$1.useState(false);
12986
13019
  const [activePromo, setActivePromo] = react$1.useState("");
12987
- const reward = chunkTENWM7BH_cjs.useRewardBalance();
12988
- const prices = chunkTENWM7BH_cjs.findProPrices(products);
13020
+ const reward = chunkQW6NCUR7_cjs.useRewardBalance();
13021
+ const prices = chunkQW6NCUR7_cjs.findProPrices(products);
12989
13022
  const monthlyNet = purchaseNet(prices.monthly, 0, 0, 0);
12990
13023
  const annualNet = purchaseNet(prices.annual, 0, 0, 0);
12991
13024
  const extras = { ai_usage: 0, storage: 0, collaborators: 0 };
@@ -13031,7 +13064,7 @@ function ProjectPurchaseOptions({
13031
13064
  )
13032
13065
  ] });
13033
13066
  const currency = prices.monthly?.currency ?? prices.annual?.currency ?? "gbp";
13034
- const money = (pence) => chunkTENWM7BH_cjs.formatMoney(pence, currency);
13067
+ const money = (pence) => chunkQW6NCUR7_cjs.formatMoney(pence, currency);
13035
13068
  const ai = product.included_ai_gbp;
13036
13069
  const storage = product.included_storage_gb;
13037
13070
  const collaborators = product.included_collaborators;
@@ -13046,7 +13079,7 @@ function ProjectPurchaseOptions({
13046
13079
  };
13047
13080
  const saving = monthlyNet && annualNet != null ? Math.max(0, Math.round(100 * (1 - annualNet / (monthlyNet * 12)))) : 0;
13048
13081
  const quoteFor = (interval) => interval === "month" ? monthlyQuote.data : annualQuote.data;
13049
- const usage = chunkTENWM7BH_cjs.getQuotaItems({
13082
+ const usage = chunkQW6NCUR7_cjs.getQuotaItems({
13050
13083
  ai_usage: currentQuotas?.ai_usage ?? { used: 0, limit: product.free_ai_gbp ?? 0 },
13051
13084
  storage_gb: currentQuotas?.storage_gb ?? { used: 0, limit: product.free_storage_gb ?? 0 },
13052
13085
  collaborators: currentQuotas?.collaborators ?? {
@@ -13141,7 +13174,7 @@ function ProjectPurchaseOptions({
13141
13174
  ),
13142
13175
  periodControl
13143
13176
  ] }),
13144
- promoOpen && !!promoError && !promoApplied && !promoChecking && /* @__PURE__ */ jsxRuntime.jsx("p", { id: `${promoId}-status`, role: "status", className: "text-sm text-destructive", children: chunkTENWM7BH_cjs.quoteError(promoError).message ?? "This promo code could not be applied." })
13177
+ promoOpen && !!promoError && !promoApplied && !promoChecking && /* @__PURE__ */ jsxRuntime.jsx("p", { id: `${promoId}-status`, role: "status", className: "text-sm text-destructive", children: chunkQW6NCUR7_cjs.quoteError(promoError).message ?? "This promo code could not be applied." })
13145
13178
  ] }),
13146
13179
  /* @__PURE__ */ jsxRuntime.jsxs(
13147
13180
  "div",
@@ -13371,7 +13404,7 @@ function refusal(what, next) {
13371
13404
  return `${sentence(what)}. Nothing was charged. ${sentence(next)}.`;
13372
13405
  }
13373
13406
  function createProjectErrorMessage(error, fallback = `Failed to create ${ui.entityNoun("PROJECT")}`) {
13374
- const detail = chunkTENWM7BH_cjs.apiErrorDetail(error);
13407
+ const detail = chunkQW6NCUR7_cjs.apiErrorDetail(error);
13375
13408
  if (typeof detail === "string" && detail) return detail;
13376
13409
  const message = detail?.message;
13377
13410
  return typeof message === "string" && message ? message : fallback;
@@ -13393,8 +13426,8 @@ function NewProjectFlow({
13393
13426
  const [checkoutQuote, setCheckoutQuote] = react$1.useState();
13394
13427
  const paymentCompleted = react$1.useRef(false);
13395
13428
  const attempt = react$1.useRef(0);
13396
- const { stripeEnabled } = chunkTENWM7BH_cjs.useBillingSupport();
13397
- const { data: products, isLoading: productsLoading } = react.useProducts({ enabled: stripeEnabled });
13429
+ const { stripeEnabled } = chunkQW6NCUR7_cjs.useBillingSupport();
13430
+ const { data: products, isPending: productsLoading } = react.useProducts({ enabled: stripeEnabled });
13398
13431
  const createProject = react.useCreateProject();
13399
13432
  const deleteProject = react.useDeleteProject();
13400
13433
  const refreshProject = react.useRefreshProject();
@@ -13482,7 +13515,7 @@ function NewProjectFlow({
13482
13515
  description: stripeEnabled ? "Choose Free or Pro. Set your project name and spending limits after payment." : "Name your project.",
13483
13516
  size: "md",
13484
13517
  className: stripeEnabled ? "project-purchase-modal sm:max-w-[640px]" : void 0,
13485
- children: /* @__PURE__ */ jsxRuntime.jsxs(chunkC5APAFUY_cjs.PlanStack, { gap: 4, children: [
13518
+ children: /* @__PURE__ */ jsxRuntime.jsxs(chunkN3H3YAKY_cjs.PlanStack, { gap: 4, children: [
13486
13519
  !stripeEnabled && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
13487
13520
  /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "new-project-name", children: "Name" }),
13488
13521
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -13499,19 +13532,7 @@ function NewProjectFlow({
13499
13532
  }
13500
13533
  )
13501
13534
  ] }),
13502
- stripeEnabled && (productsLoading ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
13503
- /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.PlanNotice, { children: "Loading prices\u2026" }),
13504
- /* @__PURE__ */ jsxRuntime.jsx(
13505
- ui.Button,
13506
- {
13507
- type: "button",
13508
- variant: "outline",
13509
- disabled: !canSubmit,
13510
- onClick: () => create3(void 0, void 0, void 0, "free"),
13511
- children: "Stay on Free"
13512
- }
13513
- )
13514
- ] }) : /* @__PURE__ */ jsxRuntime.jsx(
13535
+ stripeEnabled && (productsLoading ? /* @__PURE__ */ jsxRuntime.jsx(PlanPricesSkeleton, {}) : /* @__PURE__ */ jsxRuntime.jsx(
13515
13536
  ProjectPurchaseOptions,
13516
13537
  {
13517
13538
  products,
@@ -13526,9 +13547,9 @@ function NewProjectFlow({
13526
13547
  )),
13527
13548
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-end gap-2", children: [
13528
13549
  /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { variant: "ghost", onClick: close, children: "Cancel" }),
13529
- !stripeEnabled && /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.PlanActionButton, { onClick: () => create3(), disabled: !canSubmit, children: isCreating ? "Creating\u2026" : `Create ${ui.entityNoun("PROJECT")}` })
13550
+ !stripeEnabled && /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.PlanActionButton, { onClick: () => create3(), disabled: !canSubmit, children: isCreating ? "Creating\u2026" : `Create ${ui.entityNoun("PROJECT")}` })
13530
13551
  ] }),
13531
- isSlow && /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.PlanNotice, { className: "text-xs", testId: "new-project-still-working", children: "Still working. We'll update here." })
13552
+ isSlow && /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.PlanNotice, { className: "text-xs", testId: "new-project-still-working", children: "Still working. We'll update here." })
13532
13553
  ] })
13533
13554
  }
13534
13555
  ),
@@ -13536,7 +13557,7 @@ function NewProjectFlow({
13536
13557
  StripeCheckoutModal,
13537
13558
  {
13538
13559
  promoCode: checkoutPromoCode,
13539
- price: chunkTENWM7BH_cjs.findProPrices(products)[checkoutInterval === "year" ? "annual" : "monthly"],
13560
+ price: chunkQW6NCUR7_cjs.findProPrices(products)[checkoutInterval === "year" ? "annual" : "monthly"],
13540
13561
  projectExtId: checkoutProject.id,
13541
13562
  interval: checkoutInterval,
13542
13563
  addonBudgetPence: 0,
@@ -13566,7 +13587,7 @@ function ConnectedProjectSelector({
13566
13587
  readOnly,
13567
13588
  className
13568
13589
  }) {
13569
- const { stripeEnabled } = chunkTENWM7BH_cjs.useBillingSupport();
13590
+ const { stripeEnabled } = chunkQW6NCUR7_cjs.useBillingSupport();
13570
13591
  return /* @__PURE__ */ jsxRuntime.jsx(
13571
13592
  chunk32W2S6DE_cjs.ProjectPicker,
13572
13593
  {
@@ -13710,13 +13731,13 @@ function ConnectedWorkspaceSettings({
13710
13731
  const [membersExpanded, setMembersExpanded] = react$1.useState(false);
13711
13732
  const [shareOpen, setShareOpen] = react$1.useState(false);
13712
13733
  if (!workspace) {
13713
- return /* @__PURE__ */ jsxRuntime.jsx(chunkWNAZM2YS_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(chunk5Z22EXHJ_cjs.LoadingIndicator, { message: "Loading workspace..." }) });
13734
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkWNAZM2YS_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(chunk2EY52GDM_cjs.LoadingIndicator, { message: "Loading workspace..." }) });
13714
13735
  }
13715
13736
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
13716
13737
  /* @__PURE__ */ jsxRuntime.jsxs(chunkWNAZM2YS_cjs.WorkspacePageFrame, { testId, children: [
13717
13738
  /* @__PURE__ */ jsxRuntime.jsxs(chunkWNAZM2YS_cjs.WorkspaceIdentityPanel, { children: [
13718
13739
  /* @__PURE__ */ jsxRuntime.jsx(
13719
- chunk5Z22EXHJ_cjs.EntityIdentityBar,
13740
+ chunk2EY52GDM_cjs.EntityIdentityBar,
13720
13741
  {
13721
13742
  testId: "workspace-identity-bar",
13722
13743
  canEdit: isOwner,
@@ -13733,7 +13754,7 @@ function ConnectedWorkspaceSettings({
13733
13754
  label: "Name",
13734
13755
  value: workspace.name,
13735
13756
  placeholder: "Untitled",
13736
- maxLength: chunk5Z22EXHJ_cjs.IDENTITY_NAME_MAX_LENGTH,
13757
+ maxLength: chunk2EY52GDM_cjs.IDENTITY_NAME_MAX_LENGTH,
13737
13758
  valueClassName: "truncate text-base font-semibold",
13738
13759
  testId: "workspace-home-title",
13739
13760
  hideLabel: true,
@@ -14364,20 +14385,20 @@ function ConnectedEmailWorkspaceDialog({
14364
14385
  else if (activeSession)
14365
14386
  access = {
14366
14387
  kind: "session",
14367
- expiresIn: chunkC5APAFUY_cjs.formatSessionTtl(activeSession.ttl),
14388
+ expiresIn: chunkN3H3YAKY_cjs.formatSessionTtl(activeSession.ttl),
14368
14389
  isEnding: terminateSession.isPending,
14369
14390
  onEnd: handleEndSession
14370
14391
  };
14371
14392
  else
14372
14393
  access = {
14373
14394
  kind: "idle",
14374
- defaultTtl: limits ? chunkC5APAFUY_cjs.formatSessionTtl(limits.default_ttl_seconds) : void 0,
14395
+ defaultTtl: limits ? chunkN3H3YAKY_cjs.formatSessionTtl(limits.default_ttl_seconds) : void 0,
14375
14396
  isAuthorizing: grantAgentAccess.isPending && grantAgentAccess.variables?.mode?.kind === "temporary",
14376
14397
  onAuthorize: handleAuthorize
14377
14398
  };
14378
14399
  }
14379
14400
  return /* @__PURE__ */ jsxRuntime.jsx(
14380
- chunkC5APAFUY_cjs.EmailWorkspaceDialogView,
14401
+ chunkN3H3YAKY_cjs.EmailWorkspaceDialogView,
14381
14402
  {
14382
14403
  open,
14383
14404
  onOpenChange,
@@ -14943,9 +14964,9 @@ function ConnectedMailboxSyncDialog({
14943
14964
  showDescription: true,
14944
14965
  className: "w-[92vw] sm:max-w-lg",
14945
14966
  children: [
14946
- /* @__PURE__ */ jsxRuntime.jsxs(chunkC5APAFUY_cjs.SyncDialogBody, { children: [
14947
- !lockedWorkspaceExtId && /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.SyncField, { label: "Target workspace", htmlFor: "sync-workspace", children: /* @__PURE__ */ jsxRuntime.jsx(
14948
- chunkC5APAFUY_cjs.SyncSelect,
14967
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkN3H3YAKY_cjs.SyncDialogBody, { children: [
14968
+ !lockedWorkspaceExtId && /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.SyncField, { label: "Target workspace", htmlFor: "sync-workspace", children: /* @__PURE__ */ jsxRuntime.jsx(
14969
+ chunkN3H3YAKY_cjs.SyncSelect,
14949
14970
  {
14950
14971
  id: "sync-workspace",
14951
14972
  value: workspaceExtId,
@@ -14954,9 +14975,9 @@ function ConnectedMailboxSyncDialog({
14954
14975
  options: memberWorkspaces.map((w) => ({ value: w.external_id, label: w.name }))
14955
14976
  }
14956
14977
  ) }),
14957
- /* @__PURE__ */ jsxRuntime.jsxs(chunkC5APAFUY_cjs.SyncField, { label: "Backfill window", htmlFor: "sync-backfill", children: [
14978
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkN3H3YAKY_cjs.SyncField, { label: "Backfill window", htmlFor: "sync-backfill", children: [
14958
14979
  /* @__PURE__ */ jsxRuntime.jsx(
14959
- chunkC5APAFUY_cjs.SyncSelect,
14980
+ chunkN3H3YAKY_cjs.SyncSelect,
14960
14981
  {
14961
14982
  id: "sync-backfill",
14962
14983
  value: backfill,
@@ -14976,17 +14997,17 @@ function ConnectedMailboxSyncDialog({
14976
14997
  "aria-label": "Import emails since date"
14977
14998
  }
14978
14999
  ),
14979
- /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.SyncSmallNote, { children: "Emails are always imported from this date onward \u2014 the start point never moves." })
15000
+ /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.SyncSmallNote, { children: "Emails are always imported from this date onward \u2014 the start point never moves." })
14980
15001
  ] })
14981
15002
  ] }),
14982
15003
  /* @__PURE__ */ jsxRuntime.jsx(
14983
- chunkC5APAFUY_cjs.SyncField,
15004
+ chunkN3H3YAKY_cjs.SyncField,
14984
15005
  {
14985
15006
  label: `Folders to import${selectedFolders.length > 0 ? ` (${selectedFolders.length})` : ""}`,
14986
15007
  hint: "Select at least one folder to import.",
14987
- actions: folders.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(chunkC5APAFUY_cjs.SyncLinkRow, { children: [
15008
+ actions: folders.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(chunkN3H3YAKY_cjs.SyncLinkRow, { children: [
14988
15009
  /* @__PURE__ */ jsxRuntime.jsx(
14989
- chunkC5APAFUY_cjs.SyncLinkButton,
15010
+ chunkN3H3YAKY_cjs.SyncLinkButton,
14990
15011
  {
14991
15012
  onClick: () => setExpandAllNonce((n) => n + 1),
14992
15013
  testId: "mail-folders-expand-all",
@@ -14994,20 +15015,20 @@ function ConnectedMailboxSyncDialog({
14994
15015
  }
14995
15016
  ),
14996
15017
  /* @__PURE__ */ jsxRuntime.jsx(
14997
- chunkC5APAFUY_cjs.SyncLinkButton,
15018
+ chunkN3H3YAKY_cjs.SyncLinkButton,
14998
15019
  {
14999
15020
  onClick: () => setCollapseAllNonce((n) => n + 1),
15000
15021
  testId: "mail-folders-collapse-all",
15001
15022
  children: "Collapse all"
15002
15023
  }
15003
15024
  ),
15004
- /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.SyncLinkButton, { onClick: toggleAllFolders, children: allSelected ? "Clear all" : "Select all" })
15025
+ /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.SyncLinkButton, { onClick: toggleAllFolders, children: allSelected ? "Clear all" : "Select all" })
15005
15026
  ] }),
15006
- children: foldersLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.SyncLoading, { children: "Loading folders\u2026" }) : foldersError ? (
15027
+ children: foldersLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.SyncLoading, { children: "Loading folders\u2026" }) : foldersError ? (
15007
15028
  // A failed fetch is not an empty mailbox: it hides auth/scope errors (e.g. a Gmail
15008
15029
  // account needing reconnect).
15009
15030
  /* @__PURE__ */ jsxRuntime.jsx(
15010
- chunkC5APAFUY_cjs.SyncReconnectNotice,
15031
+ chunkN3H3YAKY_cjs.SyncReconnectNotice,
15011
15032
  {
15012
15033
  message: `Couldn\u2019t load folders from ${catalog.display_name}. Reconnect the account and try again.`,
15013
15034
  onReconnect: () => void reconnect(),
@@ -15015,7 +15036,7 @@ function ConnectedMailboxSyncDialog({
15015
15036
  testId: "folders-reconnect"
15016
15037
  }
15017
15038
  )
15018
- ) : folders.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.SyncNote, { children: "No folders found." }) : /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.SyncTreeFrame, { children: /* @__PURE__ */ jsxRuntime.jsx(
15039
+ ) : folders.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.SyncNote, { children: "No folders found." }) : /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.SyncTreeFrame, { children: /* @__PURE__ */ jsxRuntime.jsx(
15019
15040
  chunkP7VUIW24_cjs.MailFolderTree,
15020
15041
  {
15021
15042
  nodes: folderTree,
@@ -15027,9 +15048,9 @@ function ConnectedMailboxSyncDialog({
15027
15048
  ) })
15028
15049
  }
15029
15050
  ),
15030
- isNative ? /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.SyncNote, { children: turningOff ? "Saving with no folders stops adding new mail from them. What was added stays." : "Only you can see mail added from your mailbox. New mail is added when you open this workspace." }) : /* @__PURE__ */ jsxRuntime.jsxs(chunkC5APAFUY_cjs.SyncOptions, { children: [
15051
+ isNative ? /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.SyncNote, { children: turningOff ? "Saving with no folders stops adding new mail from them. What was added stays." : "Only you can see mail added from your mailbox. New mail is added when you open this workspace." }) : /* @__PURE__ */ jsxRuntime.jsxs(chunkN3H3YAKY_cjs.SyncOptions, { children: [
15031
15052
  /* @__PURE__ */ jsxRuntime.jsx(
15032
- chunkC5APAFUY_cjs.SyncOptionToggle,
15053
+ chunkN3H3YAKY_cjs.SyncOptionToggle,
15033
15054
  {
15034
15055
  checked: skipDuplicates,
15035
15056
  onCheckedChange: setSkipDuplicates,
@@ -15039,7 +15060,7 @@ function ConnectedMailboxSyncDialog({
15039
15060
  }
15040
15061
  ),
15041
15062
  /* @__PURE__ */ jsxRuntime.jsx(
15042
- chunkC5APAFUY_cjs.SyncOptionToggle,
15063
+ chunkN3H3YAKY_cjs.SyncOptionToggle,
15043
15064
  {
15044
15065
  checked: autoRename,
15045
15066
  onCheckedChange: setAutoRename,
@@ -15049,7 +15070,7 @@ function ConnectedMailboxSyncDialog({
15049
15070
  }
15050
15071
  ),
15051
15072
  /* @__PURE__ */ jsxRuntime.jsx(
15052
- chunkC5APAFUY_cjs.SyncOptionToggle,
15073
+ chunkN3H3YAKY_cjs.SyncOptionToggle,
15053
15074
  {
15054
15075
  checked: shared,
15055
15076
  onCheckedChange: setShared,
@@ -15059,7 +15080,7 @@ function ConnectedMailboxSyncDialog({
15059
15080
  }
15060
15081
  ),
15061
15082
  /* @__PURE__ */ jsxRuntime.jsx(
15062
- chunkC5APAFUY_cjs.SyncOptionToggle,
15083
+ chunkN3H3YAKY_cjs.SyncOptionToggle,
15063
15084
  {
15064
15085
  checked: autoSync,
15065
15086
  onCheckedChange: setAutoSync,
@@ -15071,7 +15092,7 @@ function ConnectedMailboxSyncDialog({
15071
15092
  ] })
15072
15093
  ] }),
15073
15094
  /* @__PURE__ */ jsxRuntime.jsx(
15074
- chunkC5APAFUY_cjs.SyncDialogFooter,
15095
+ chunkN3H3YAKY_cjs.SyncDialogFooter,
15075
15096
  {
15076
15097
  onCancel: () => onOpenChange(false),
15077
15098
  onSave: handleEnableSubmit,
@@ -15133,7 +15154,7 @@ function DriveFolderNode({
15133
15154
  const mightHaveChildren = docCount == null || docCount > 0;
15134
15155
  const orderedChildren = [...children].sort((a, b) => a.name.localeCompare(b.name));
15135
15156
  return /* @__PURE__ */ jsxRuntime.jsx(
15136
- chunkC5APAFUY_cjs.SyncFolderRow,
15157
+ chunkN3H3YAKY_cjs.SyncFolderRow,
15137
15158
  {
15138
15159
  id: folder.id,
15139
15160
  name: folder.name,
@@ -15147,7 +15168,7 @@ function DriveFolderNode({
15147
15168
  onCheckedChange: () => onToggle(folder.id),
15148
15169
  count: typeof docCount === "number" ? docCount : void 0,
15149
15170
  isCountLoading: isSelectable && countLoading,
15150
- children: isLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.SyncFolderStatus, { depth, kind: "loading" }) : orderedChildren.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.SyncFolderStatus, { depth, kind: "empty" }) : orderedChildren.map((child) => /* @__PURE__ */ jsxRuntime.jsx(
15171
+ children: isLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.SyncFolderStatus, { depth, kind: "loading" }) : orderedChildren.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.SyncFolderStatus, { depth, kind: "empty" }) : orderedChildren.map((child) => /* @__PURE__ */ jsxRuntime.jsx(
15151
15172
  DriveFolderNode,
15152
15173
  {
15153
15174
  vendorKey,
@@ -15293,9 +15314,9 @@ function ConnectedDriveSyncDialog({
15293
15314
  showDescription: true,
15294
15315
  className: "w-[92vw] sm:max-w-lg",
15295
15316
  children: [
15296
- /* @__PURE__ */ jsxRuntime.jsxs(chunkC5APAFUY_cjs.SyncDialogBody, { children: [
15297
- !lockedWorkspaceExtId && /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.SyncField, { label: "Target workspace", htmlFor: "drive-sync-workspace", children: /* @__PURE__ */ jsxRuntime.jsx(
15298
- chunkC5APAFUY_cjs.SyncSelect,
15317
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkN3H3YAKY_cjs.SyncDialogBody, { children: [
15318
+ !lockedWorkspaceExtId && /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.SyncField, { label: "Target workspace", htmlFor: "drive-sync-workspace", children: /* @__PURE__ */ jsxRuntime.jsx(
15319
+ chunkN3H3YAKY_cjs.SyncSelect,
15299
15320
  {
15300
15321
  id: "drive-sync-workspace",
15301
15322
  value: workspaceExtId,
@@ -15305,13 +15326,13 @@ function ConnectedDriveSyncDialog({
15305
15326
  }
15306
15327
  ) }),
15307
15328
  /* @__PURE__ */ jsxRuntime.jsx(
15308
- chunkC5APAFUY_cjs.SyncField,
15329
+ chunkN3H3YAKY_cjs.SyncField,
15309
15330
  {
15310
15331
  label: `Folders to import${selectedFolders.length > 0 ? ` (${selectedFolders.length})` : ""}`,
15311
15332
  hint: "Select at least one folder. Importing a folder includes everything inside it.",
15312
- actions: orderedFolders.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(chunkC5APAFUY_cjs.SyncLinkRow, { children: [
15333
+ actions: orderedFolders.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(chunkN3H3YAKY_cjs.SyncLinkRow, { children: [
15313
15334
  /* @__PURE__ */ jsxRuntime.jsx(
15314
- chunkC5APAFUY_cjs.SyncLinkButton,
15335
+ chunkN3H3YAKY_cjs.SyncLinkButton,
15315
15336
  {
15316
15337
  onClick: () => setExpandAllNonce((n) => n + 1),
15317
15338
  testId: "drive-folders-expand-all",
@@ -15319,7 +15340,7 @@ function ConnectedDriveSyncDialog({
15319
15340
  }
15320
15341
  ),
15321
15342
  /* @__PURE__ */ jsxRuntime.jsx(
15322
- chunkC5APAFUY_cjs.SyncLinkButton,
15343
+ chunkN3H3YAKY_cjs.SyncLinkButton,
15323
15344
  {
15324
15345
  onClick: () => setCollapseAllNonce((n) => n + 1),
15325
15346
  testId: "drive-folders-collapse-all",
@@ -15327,19 +15348,19 @@ function ConnectedDriveSyncDialog({
15327
15348
  }
15328
15349
  )
15329
15350
  ] }),
15330
- children: foldersLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.SyncLoading, { children: "Loading folders\u2026" }) : needsReconnect ? /* @__PURE__ */ jsxRuntime.jsx(
15331
- chunkC5APAFUY_cjs.SyncReconnectNotice,
15351
+ children: foldersLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.SyncLoading, { children: "Loading folders\u2026" }) : needsReconnect ? /* @__PURE__ */ jsxRuntime.jsx(
15352
+ chunkN3H3YAKY_cjs.SyncReconnectNotice,
15332
15353
  {
15333
15354
  ...reconnectButtonProps,
15334
15355
  message: `Reconnect ${catalog.display_name} to enable ${productName} \u2014 your account needs to grant file access.`
15335
15356
  }
15336
15357
  ) : foldersError ? /* @__PURE__ */ jsxRuntime.jsx(
15337
- chunkC5APAFUY_cjs.SyncReconnectNotice,
15358
+ chunkN3H3YAKY_cjs.SyncReconnectNotice,
15338
15359
  {
15339
15360
  ...reconnectButtonProps,
15340
15361
  message: `Couldn\u2019t load folders from ${productName}. Reconnect the account and try again.`
15341
15362
  }
15342
- ) : orderedFolders.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.SyncNote, { children: "No folders found." }) : /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.SyncTreeFrame, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-0.5", "data-testid": "drive-folder-tree", children: orderedFolders.map((f) => /* @__PURE__ */ jsxRuntime.jsx(
15363
+ ) : orderedFolders.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.SyncNote, { children: "No folders found." }) : /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.SyncTreeFrame, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-0.5", "data-testid": "drive-folder-tree", children: orderedFolders.map((f) => /* @__PURE__ */ jsxRuntime.jsx(
15343
15364
  DriveFolderNode,
15344
15365
  {
15345
15366
  vendorKey: catalog.vendor_key,
@@ -15356,9 +15377,9 @@ function ConnectedDriveSyncDialog({
15356
15377
  )) }) })
15357
15378
  }
15358
15379
  ),
15359
- /* @__PURE__ */ jsxRuntime.jsxs(chunkC5APAFUY_cjs.SyncOptions, { children: [
15380
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkN3H3YAKY_cjs.SyncOptions, { children: [
15360
15381
  /* @__PURE__ */ jsxRuntime.jsx(
15361
- chunkC5APAFUY_cjs.SyncOptionToggle,
15382
+ chunkN3H3YAKY_cjs.SyncOptionToggle,
15362
15383
  {
15363
15384
  checked: skipDuplicates,
15364
15385
  onCheckedChange: setSkipDuplicates,
@@ -15367,7 +15388,7 @@ function ConnectedDriveSyncDialog({
15367
15388
  }
15368
15389
  ),
15369
15390
  /* @__PURE__ */ jsxRuntime.jsx(
15370
- chunkC5APAFUY_cjs.SyncOptionToggle,
15391
+ chunkN3H3YAKY_cjs.SyncOptionToggle,
15371
15392
  {
15372
15393
  checked: autoRename,
15373
15394
  onCheckedChange: setAutoRename,
@@ -15376,7 +15397,7 @@ function ConnectedDriveSyncDialog({
15376
15397
  }
15377
15398
  ),
15378
15399
  /* @__PURE__ */ jsxRuntime.jsx(
15379
- chunkC5APAFUY_cjs.SyncOptionToggle,
15400
+ chunkN3H3YAKY_cjs.SyncOptionToggle,
15380
15401
  {
15381
15402
  checked: shared,
15382
15403
  onCheckedChange: setShared,
@@ -15385,7 +15406,7 @@ function ConnectedDriveSyncDialog({
15385
15406
  }
15386
15407
  ),
15387
15408
  /* @__PURE__ */ jsxRuntime.jsx(
15388
- chunkC5APAFUY_cjs.SyncOptionToggle,
15409
+ chunkN3H3YAKY_cjs.SyncOptionToggle,
15389
15410
  {
15390
15411
  checked: autoSync,
15391
15412
  onCheckedChange: setAutoSync,
@@ -15397,7 +15418,7 @@ function ConnectedDriveSyncDialog({
15397
15418
  ] })
15398
15419
  ] }),
15399
15420
  /* @__PURE__ */ jsxRuntime.jsx(
15400
- chunkC5APAFUY_cjs.SyncDialogFooter,
15421
+ chunkN3H3YAKY_cjs.SyncDialogFooter,
15401
15422
  {
15402
15423
  onCancel: () => onOpenChange(false),
15403
15424
  onSave: handleEnableSubmit,
@@ -15488,8 +15509,8 @@ function InvoicesModal({
15488
15509
  key: inv.number ?? String(i),
15489
15510
  date: formatInvoiceDate(inv.date),
15490
15511
  kind: KIND_LABELS2[inv.kind],
15491
- amount: chunkTENWM7BH_cjs.formatMoney(inv.amount, inv.currency),
15492
- amountNote: inv.amount_ex_vat != null && inv.amount_ex_vat !== inv.amount ? `${chunkTENWM7BH_cjs.formatMoney(inv.amount_ex_vat, inv.currency)} ex VAT` : void 0,
15512
+ amount: chunkQW6NCUR7_cjs.formatMoney(inv.amount, inv.currency),
15513
+ amountNote: inv.amount_ex_vat != null && inv.amount_ex_vat !== inv.amount ? `${chunkQW6NCUR7_cjs.formatMoney(inv.amount_ex_vat, inv.currency)} ex VAT` : void 0,
15493
15514
  status: inv.status,
15494
15515
  isPaid: isPaid2,
15495
15516
  href: inv.hosted_invoice_url ?? inv.url ?? inv.pdf_url ?? void 0,
@@ -15497,7 +15518,7 @@ function InvoicesModal({
15497
15518
  };
15498
15519
  });
15499
15520
  return /* @__PURE__ */ jsxRuntime.jsx(
15500
- chunkC5APAFUY_cjs.InvoicesDialog,
15521
+ chunkN3H3YAKY_cjs.InvoicesDialog,
15501
15522
  {
15502
15523
  open,
15503
15524
  onOpenChange,
@@ -15514,16 +15535,27 @@ function SubscriptionPlans({
15514
15535
  onCompleted,
15515
15536
  enabled = true
15516
15537
  }) {
15517
- const { data: products, isLoading, error } = react.useProducts({ enabled });
15538
+ const { stripeEnabled } = chunkQW6NCUR7_cjs.useBillingSupport();
15539
+ const {
15540
+ data: products,
15541
+ isPending,
15542
+ error,
15543
+ refetch
15544
+ } = react.useProducts({ enabled: enabled && stripeEnabled });
15518
15545
  const [promoCode, setPromoCode] = react$1.useState("");
15519
15546
  const [checkout, setCheckout] = react$1.useState(null);
15520
15547
  const [checkoutOpen, setCheckoutOpen] = react$1.useState(false);
15521
- if (isLoading || error || !products?.length)
15548
+ if (!stripeEnabled) return null;
15549
+ if (isPending) return /* @__PURE__ */ jsxRuntime.jsx(PlanPricesSkeleton, {});
15550
+ if (error || !products?.length)
15522
15551
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
15523
- /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.PlanNotice, { tone: error ? "error" : void 0, children: isLoading ? "Loading prices\u2026" : error ? "Prices didn't load. Try again." : "No subscriptions available." }),
15524
- onDismiss && /* @__PURE__ */ jsxRuntime.jsxs(ui.Button, { type: "button", variant: "outline", onClick: onDismiss, children: [
15525
- "Stay on Free ",
15526
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowRight, { "aria-hidden": "true", size: 16 })
15552
+ /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.PlanNotice, { tone: error ? "error" : void 0, children: error ? "Prices didn't load. Try again." : "No subscriptions available." }),
15553
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-2", children: [
15554
+ error && /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { type: "button", variant: "outline", onClick: () => void refetch(), children: "Try again" }),
15555
+ onDismiss && /* @__PURE__ */ jsxRuntime.jsxs(ui.Button, { type: "button", variant: "outline", onClick: onDismiss, children: [
15556
+ "Stay on Free ",
15557
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowRight, { "aria-hidden": "true", size: 16 })
15558
+ ] })
15527
15559
  ] })
15528
15560
  ] });
15529
15561
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
@@ -15547,7 +15579,7 @@ function SubscriptionPlans({
15547
15579
  StripeCheckoutModal,
15548
15580
  {
15549
15581
  promoCode: checkout.promoCode,
15550
- price: chunkTENWM7BH_cjs.findProPrices(products)[checkout.interval === "year" ? "annual" : "monthly"],
15582
+ price: chunkQW6NCUR7_cjs.findProPrices(products)[checkout.interval === "year" ? "annual" : "monthly"],
15551
15583
  projectExtId,
15552
15584
  interval: checkout.interval,
15553
15585
  addonBudgetPence: 0,
@@ -15593,7 +15625,7 @@ var FALLBACK_MESSAGES = {
15593
15625
  BILLING_ADDRESS_REQUIRED: "Add a billing address first."
15594
15626
  };
15595
15627
  function addonErrorMessage(error) {
15596
- const detail = chunkTENWM7BH_cjs.apiErrorDetail(error);
15628
+ const detail = chunkQW6NCUR7_cjs.apiErrorDetail(error);
15597
15629
  if (detail && typeof detail === "object") {
15598
15630
  const { code, message } = detail;
15599
15631
  if (message) return message;
@@ -15619,14 +15651,14 @@ function chargeRefusalMessage(error) {
15619
15651
  return code ? REFUSALS[code] : null;
15620
15652
  }
15621
15653
  function addonErrorCode(error) {
15622
- const detail = chunkTENWM7BH_cjs.apiErrorDetail(error);
15654
+ const detail = chunkQW6NCUR7_cjs.apiErrorDetail(error);
15623
15655
  if (detail && typeof detail === "object") {
15624
15656
  const code = detail.code;
15625
15657
  if (code && code in FALLBACK_MESSAGES) return code;
15626
15658
  }
15627
15659
  return null;
15628
15660
  }
15629
- var addedMessage = (kind, blockAiGbp, blockStorageGb) => kind === "ai_usage" ? `${react.formatGbp(blockAiGbp ?? chunkTENWM7BH_cjs.ADDON_BLOCK_AI_GBP)} of AI credits added` : `${blockStorageGb ?? chunkTENWM7BH_cjs.STORAGE_BLOCK_GB} GB added`;
15661
+ var addedMessage = (kind, blockAiGbp, blockStorageGb) => kind === "ai_usage" ? `${react.formatGbp(blockAiGbp ?? chunkQW6NCUR7_cjs.ADDON_BLOCK_AI_GBP)} of AI credits added` : `${blockStorageGb ?? chunkQW6NCUR7_cjs.STORAGE_BLOCK_GB} GB added`;
15630
15662
  function useAddonPurchase() {
15631
15663
  const addBlock = react.useAddProjectAddonBlock();
15632
15664
  const { mutate } = addBlock;
@@ -15676,14 +15708,14 @@ function useAddonPurchase() {
15676
15708
  function ConnectedReferralRewardNote() {
15677
15709
  const reward = useReferralReward();
15678
15710
  if (!reward) return null;
15679
- return /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.ReferralRewardNote, { amountLabel: chunkTENWM7BH_cjs.formatMoney(reward.amount, reward.currency) });
15711
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.ReferralRewardNote, { amountLabel: chunkQW6NCUR7_cjs.formatMoney(reward.amount, reward.currency) });
15680
15712
  }
15681
15713
  function PlanChangeLines({
15682
15714
  preview,
15683
15715
  isError,
15684
15716
  className
15685
15717
  }) {
15686
- const lines = preview ? chunkTENWM7BH_cjs.planPreviewLines(preview) : [{ id: "pay-today", text: isError ? chunkTENWM7BH_cjs.PAY_TODAY_UNPRICED : "Checking price\u2026" }];
15718
+ const lines = preview ? chunkQW6NCUR7_cjs.planPreviewLines(preview) : [{ id: "pay-today", text: isError ? chunkQW6NCUR7_cjs.PAY_TODAY_UNPRICED : "Checking price\u2026" }];
15687
15719
  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)) });
15688
15720
  }
15689
15721
  var BANK_CONFIRM_PLAN_CHANGE = "Confirm with your bank. Nothing is charged until you do.";
@@ -15691,13 +15723,13 @@ function notifyPlanChange(data, fallback, planName2) {
15691
15723
  const outcome = data?.plan_change;
15692
15724
  switch (outcome?.result) {
15693
15725
  case "upgraded": {
15694
- const plan = chunkTENWM7BH_cjs.planNameForPacks(data?.addons?.packs ?? data?.packs);
15695
- const charged = outcome.charged_pence > 0 ? ` \xB7 ${chunkTENWM7BH_cjs.formatMoney(outcome.charged_pence, "gbp")} charged` : "";
15726
+ const plan = chunkQW6NCUR7_cjs.planNameForPacks(data?.addons?.packs ?? data?.packs);
15727
+ const charged = outcome.charged_pence > 0 ? ` \xB7 ${chunkQW6NCUR7_cjs.formatMoney(outcome.charged_pence, "gbp")} charged` : "";
15696
15728
  shell.notify.success(`Upgraded to ${plan}${charged}`);
15697
15729
  break;
15698
15730
  }
15699
15731
  case "scheduled": {
15700
- const when2 = chunkTENWM7BH_cjs.formatPeriodEnd(data?.addons?.period_end ?? data?.current_period_end);
15732
+ const when2 = chunkQW6NCUR7_cjs.formatPeriodEnd(data?.addons?.period_end ?? data?.current_period_end);
15701
15733
  shell.notify.success(when2 ? `Scheduled for ${when2}` : fallback);
15702
15734
  break;
15703
15735
  }
@@ -15723,31 +15755,36 @@ function formatDate(unix) {
15723
15755
  });
15724
15756
  }
15725
15757
  var intervalWord = (i) => i === "year" ? "annual" : "monthly";
15726
- function ChangeProPlan({
15758
+ function ChangeProPlan(props) {
15759
+ const { data: products, isPending } = react.useProducts();
15760
+ if (isPending) return /* @__PURE__ */ jsxRuntime.jsx(PlanPricesSkeleton, { cards: 1 });
15761
+ return /* @__PURE__ */ jsxRuntime.jsx(ChangeProPlanForm, { ...props, products });
15762
+ }
15763
+ function ChangeProPlanForm({
15727
15764
  project,
15728
- onDone
15765
+ onDone,
15766
+ products
15729
15767
  }) {
15730
- const { data: products } = react.useProducts();
15731
15768
  const changePlan = react.useChangeProjectPlan();
15732
15769
  const cancel = react.useCancelProjectSubscription();
15733
- const prices = chunkTENWM7BH_cjs.findProPrices(products);
15770
+ const prices = chunkQW6NCUR7_cjs.findProPrices(products);
15734
15771
  const product = products?.[0];
15735
15772
  const addons = project.addons;
15736
15773
  const isCanceling = project.cancel_at_period_end === true || project.subscription === "canceled";
15737
- const currentPacks = Math.max(addons?.packs ?? project.packs ?? chunkTENWM7BH_cjs.PRO_PACKS, chunkTENWM7BH_cjs.PRO_PACKS);
15738
- const isLegacyMultiPack = currentPacks > chunkTENWM7BH_cjs.PRO_PACKS;
15774
+ const currentPacks = Math.max(addons?.packs ?? project.packs ?? chunkQW6NCUR7_cjs.PRO_PACKS, chunkQW6NCUR7_cjs.PRO_PACKS);
15775
+ const isLegacyMultiPack = currentPacks > chunkQW6NCUR7_cjs.PRO_PACKS;
15739
15776
  const currentInterval = project.plan_interval === "year" ? "year" : "month";
15740
15777
  const scheduledPacks = isCanceling ? 0 : addons?.packs_next ?? currentPacks;
15741
15778
  const scheduledInterval = addons?.pending_interval ?? currentInterval;
15742
15779
  const [targetPacks, setTargetPacks] = react$1.useState(scheduledPacks);
15743
15780
  const [chosenInterval, setChosenInterval] = react$1.useState(scheduledInterval);
15744
- const targetInterval = targetPacks > chunkTENWM7BH_cjs.PRO_PACKS ? currentInterval : chosenInterval;
15781
+ const targetInterval = targetPacks > chunkQW6NCUR7_cjs.PRO_PACKS ? currentInterval : chosenInterval;
15745
15782
  const periodEnd = formatDate(addons?.period_end ?? project.current_period_end);
15746
15783
  const when2 = periodEnd ?? "the end of the period";
15747
15784
  const shortWhen = periodEnd ? periodEnd.replace(/ \d{4}$/, "") : "period end";
15748
15785
  const isPending = changePlan.isPending || cancel.isPending;
15749
15786
  const sameAsScheduled = targetPacks === scheduledPacks && (targetPacks === 0 || targetInterval === scheduledInterval);
15750
- const packOptions = isLegacyMultiPack ? [currentPacks, chunkTENWM7BH_cjs.PRO_PACKS, 0] : [chunkTENWM7BH_cjs.PRO_PACKS, 0];
15787
+ const packOptions = isLegacyMultiPack ? [currentPacks, chunkQW6NCUR7_cjs.PRO_PACKS, 0] : [chunkQW6NCUR7_cjs.PRO_PACKS, 0];
15751
15788
  const intervalPrice = targetInterval === "year" ? prices.annual : prices.monthly;
15752
15789
  const currency = intervalPrice?.currency ?? project.currency ?? "gbp";
15753
15790
  const preview = react.usePreviewProjectPlanChange(
@@ -15756,7 +15793,7 @@ function ChangeProPlan({
15756
15793
  );
15757
15794
  const noChange = sameAsScheduled || preview.data?.unchanged === true;
15758
15795
  const isPersonal = project.is_personal === true;
15759
- const nameFor = (packs) => packs === 0 && !isPersonal ? "Cancel subscription" : packs === currentPacks && packs > 0 ? chunkTENWM7BH_cjs.proTierName(project) : chunkTENWM7BH_cjs.planNameForPacks(packs);
15796
+ const nameFor = (packs) => packs === 0 && !isPersonal ? "Cancel subscription" : packs === currentPacks && packs > 0 ? chunkQW6NCUR7_cjs.proTierName(project) : chunkQW6NCUR7_cjs.planNameForPacks(packs);
15760
15797
  const effects = [];
15761
15798
  const target = nameFor(targetPacks);
15762
15799
  if (targetPacks === 0) {
@@ -15768,7 +15805,7 @@ function ChangeProPlan({
15768
15805
  if (targetPacks < currentPacks) {
15769
15806
  effects.push(`Changes to one Pro licence on ${when2}. No refund.`);
15770
15807
  } else if (!isCanceling && addons?.packs_next != null) {
15771
- effects.push(`Cancels the change to ${chunkTENWM7BH_cjs.planNameForPacks(addons.packs_next)}.`);
15808
+ effects.push(`Cancels the change to ${chunkQW6NCUR7_cjs.planNameForPacks(addons.packs_next)}.`);
15772
15809
  }
15773
15810
  if (targetInterval !== currentInterval) {
15774
15811
  effects.push(`${targetInterval === "year" ? "Annual" : "Monthly"} billing from ${when2}.`);
@@ -15811,29 +15848,29 @@ function ChangeProPlan({
15811
15848
  };
15812
15849
  }
15813
15850
  const allowance = product ? `${react.formatGbp(product.included_ai_gbp * packs)} of AI credits \xB7 ${product.included_storage_gb * packs} GB` : "AI credits and storage";
15814
- const legacy = packs > chunkTENWM7BH_cjs.PRO_PACKS;
15815
- const exVat = legacy ? project.amount_ex_vat : chunkTENWM7BH_cjs.packPrice(intervalPrice)?.amount_ex_vat;
15851
+ const legacy = packs > chunkQW6NCUR7_cjs.PRO_PACKS;
15852
+ const exVat = legacy ? project.amount_ex_vat : chunkQW6NCUR7_cjs.packPrice(intervalPrice)?.amount_ex_vat;
15816
15853
  return {
15817
- total: exVat != null ? chunkTENWM7BH_cjs.plusVat(exVat, currency) : void 0,
15854
+ total: exVat != null ? chunkQW6NCUR7_cjs.plusVat(exVat, currency) : void 0,
15818
15855
  summary: allowance
15819
15856
  };
15820
15857
  };
15821
- return /* @__PURE__ */ jsxRuntime.jsxs(chunkC5APAFUY_cjs.PlanStack, { gap: 4, testId: "change-pro-plan", children: [
15858
+ return /* @__PURE__ */ jsxRuntime.jsxs(chunkN3H3YAKY_cjs.PlanStack, { gap: 4, testId: "change-pro-plan", children: [
15822
15859
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center justify-between gap-2", children: [
15823
15860
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium text-foreground", children: "Billing" }),
15824
- targetPacks > chunkTENWM7BH_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(
15825
- chunkC5APAFUY_cjs.PricingToggle,
15861
+ targetPacks > chunkQW6NCUR7_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(
15862
+ chunkN3H3YAKY_cjs.PricingToggle,
15826
15863
  {
15827
15864
  isAnnual: targetInterval === "year",
15828
15865
  onToggle: () => setChosenInterval(targetInterval === "year" ? "month" : "year"),
15829
- savingsPercent: chunkTENWM7BH_cjs.calcSavingsPercent(prices.monthly, prices.annual)
15866
+ savingsPercent: chunkQW6NCUR7_cjs.calcSavingsPercent(prices.monthly, prices.annual)
15830
15867
  }
15831
15868
  )
15832
15869
  ] }),
15833
- /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.PlanStack, { gap: 2, children: packOptions.map((packs) => {
15870
+ /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.PlanStack, { gap: 2, children: packOptions.map((packs) => {
15834
15871
  const { total, summary } = optionFor(packs);
15835
15872
  return /* @__PURE__ */ jsxRuntime.jsx(
15836
- chunkC5APAFUY_cjs.PlanTierOption,
15873
+ chunkN3H3YAKY_cjs.PlanTierOption,
15837
15874
  {
15838
15875
  onSelect: setTargetPacks,
15839
15876
  option: {
@@ -15850,13 +15887,13 @@ function ChangeProPlan({
15850
15887
  );
15851
15888
  }) }),
15852
15889
  isLegacyMultiPack && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-x-3 gap-y-1", children: [
15853
- /* @__PURE__ */ jsxRuntime.jsxs(chunkC5APAFUY_cjs.PlanNotice, { className: "text-xs", testId: "change-plan-legacy-note", children: [
15854
- chunkTENWM7BH_cjs.proTierName(project),
15890
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkN3H3YAKY_cjs.PlanNotice, { className: "text-xs", testId: "change-plan-legacy-note", children: [
15891
+ chunkQW6NCUR7_cjs.proTierName(project),
15855
15892
  " is no longer sold"
15856
15893
  ] }),
15857
- /* @__PURE__ */ jsxRuntime.jsxs(chunkC5APAFUY_cjs.MoreInfo, { title: "Legacy subscription", testId: "change-plan-legacy-more-info", children: [
15894
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkN3H3YAKY_cjs.MoreInfo, { title: "Legacy subscription", testId: "change-plan-legacy-more-info", children: [
15858
15895
  /* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
15859
- chunkTENWM7BH_cjs.proTierName(project),
15896
+ chunkQW6NCUR7_cjs.proTierName(project),
15860
15897
  " keeps renewing at its own price, with its allowance and add-ons, until you change it."
15861
15898
  ] }),
15862
15899
  /* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
@@ -15877,7 +15914,7 @@ function ChangeProPlan({
15877
15914
  ),
15878
15915
  targetPacks > 0 && /* @__PURE__ */ jsxRuntime.jsx(ConnectedReferralRewardNote, {}),
15879
15916
  /* @__PURE__ */ jsxRuntime.jsx(
15880
- chunkC5APAFUY_cjs.PlanActionButton,
15917
+ chunkN3H3YAKY_cjs.PlanActionButton,
15881
15918
  {
15882
15919
  onClick: apply,
15883
15920
  disabled: noChange || isPending,
@@ -15888,9 +15925,9 @@ function ChangeProPlan({
15888
15925
  ] });
15889
15926
  }
15890
15927
  function ChangePlanDialog({ project, open, onOpenChange, onBack }) {
15891
- const isPro = !!project && chunkTENWM7BH_cjs.isProProject(project);
15928
+ const isPro = !!project && chunkQW6NCUR7_cjs.isProProject(project);
15892
15929
  return /* @__PURE__ */ jsxRuntime.jsx(
15893
- chunkC5APAFUY_cjs.PlanDialogFrame,
15930
+ chunkN3H3YAKY_cjs.PlanDialogFrame,
15894
15931
  {
15895
15932
  compact: !isPro,
15896
15933
  className: isPro ? void 0 : "project-purchase-upgrade",
@@ -15915,14 +15952,14 @@ function ChangePlanDialog({ project, open, onOpenChange, onBack }) {
15915
15952
  }
15916
15953
  function ProjectsTable() {
15917
15954
  const { data: projects, isLoading } = react.useProjects();
15918
- const currentUserExtId = chunkTENWM7BH_cjs.useSelfExtId();
15955
+ const currentUserExtId = chunkQW6NCUR7_cjs.useSelfExtId();
15919
15956
  const { openProject } = chunkLIKDQBNJ_cjs.useBlocksEnvironment();
15920
15957
  const updateProject = react.useUpdateProjectFields();
15921
15958
  const [renameTarget, setRenameTarget] = react$1.useState(null);
15922
15959
  const [renameValue, setRenameValue] = react$1.useState("");
15923
15960
  const [invoicesTarget, setInvoicesTarget] = react$1.useState(null);
15924
15961
  const [upgradeTarget, setUpgradeTarget] = react$1.useState(null);
15925
- const { stripeEnabled } = chunkTENWM7BH_cjs.useBillingSupport();
15962
+ const { stripeEnabled } = chunkQW6NCUR7_cjs.useBillingSupport();
15926
15963
  const ownedProjects = react$1.useMemo(
15927
15964
  () => (projects ?? []).filter((p) => p.created_by === currentUserExtId),
15928
15965
  [projects, currentUserExtId]
@@ -15961,13 +15998,13 @@ function ProjectsTable() {
15961
15998
  const hasPaid = p.subscription === "active" || p.subscription === "past_due";
15962
15999
  const canUpgrade = stripeEnabled && !hasPaid && p.subscription !== "canceled" && p.subscription !== "dev";
15963
16000
  return /* @__PURE__ */ jsxRuntime.jsx(
15964
- chunkC5APAFUY_cjs.ProjectRow,
16001
+ chunkN3H3YAKY_cjs.ProjectRow,
15965
16002
  {
15966
16003
  testId: `project-row-${p.external_id}`,
15967
16004
  onOpen: () => openProject(p.external_id),
15968
16005
  identity: /* @__PURE__ */ jsxRuntime.jsx(ConnectedProjectEntity, { name: p.name, relation: "mine", subscription: p.subscription }),
15969
- summary: stripeEnabled ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex items-center whitespace-nowrap", children: /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.PlanBadge, { ...chunkTENWM7BH_cjs.planBadgeView(p) }) }) : void 0,
15970
- usage: p.quotas ? /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.QuotaMeter, { items: chunkTENWM7BH_cjs.getQuotaItems(p.quotas), size: "lg" }) : void 0,
16006
+ summary: stripeEnabled ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex items-center whitespace-nowrap", children: /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.PlanBadge, { ...chunkQW6NCUR7_cjs.planBadgeView(p) }) }) : void 0,
16007
+ usage: p.quotas ? /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.QuotaMeter, { items: chunkQW6NCUR7_cjs.getQuotaItems(p.quotas), size: "lg" }) : void 0,
15971
16008
  actions: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
15972
16009
  canUpgrade && /* @__PURE__ */ jsxRuntime.jsxs(
15973
16010
  ui.Button,
@@ -16001,9 +16038,9 @@ function ProjectsTable() {
16001
16038
  );
16002
16039
  };
16003
16040
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
16004
- /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.ProjectList, { isLoading, isEmpty: ownedProjects.length === 0, isFilteredOut: false, children: ownedProjects.map(renderRow) }),
16041
+ /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.ProjectList, { isLoading, isEmpty: ownedProjects.length === 0, isFilteredOut: false, children: ownedProjects.map(renderRow) }),
16005
16042
  /* @__PURE__ */ jsxRuntime.jsx(
16006
- chunkC5APAFUY_cjs.RenameDialog,
16043
+ chunkN3H3YAKY_cjs.RenameDialog,
16007
16044
  {
16008
16045
  open: !!renameTarget,
16009
16046
  onClose: () => setRenameTarget(null),
@@ -16034,7 +16071,7 @@ function ProjectsTable() {
16034
16071
  }
16035
16072
  function SharedProjects() {
16036
16073
  const { data: projects } = react.useProjects();
16037
- const currentUserExtId = chunkTENWM7BH_cjs.useSelfExtId();
16074
+ const currentUserExtId = chunkQW6NCUR7_cjs.useSelfExtId();
16038
16075
  const { data: usageToday } = react.useUserUsageToday();
16039
16076
  const shared = react$1.useMemo(
16040
16077
  () => (projects ?? []).filter((p) => p.created_by !== currentUserExtId),
@@ -16043,13 +16080,13 @@ function SharedProjects() {
16043
16080
  if (shared.length === 0) return null;
16044
16081
  const usedToday = usageToday?.used_gbp ?? 0;
16045
16082
  return /* @__PURE__ */ jsxRuntime.jsx(
16046
- chunkC5APAFUY_cjs.SharedProjectsSection,
16083
+ chunkN3H3YAKY_cjs.SharedProjectsSection,
16047
16084
  {
16048
16085
  footnote: `Your daily AI credits allowance in ${ui.entityNoun("PROJECT", "PLURAL")} other people run \u2014 their subscription and billing are theirs.`,
16049
16086
  children: shared.map((p) => {
16050
16087
  const cap = p.daily_cap_per_user;
16051
16088
  return /* @__PURE__ */ jsxRuntime.jsx(
16052
- chunkC5APAFUY_cjs.SharedProjectRow,
16089
+ chunkN3H3YAKY_cjs.SharedProjectRow,
16053
16090
  {
16054
16091
  testId: `shared-project-${p.external_id}`,
16055
16092
  identity: /* @__PURE__ */ jsxRuntime.jsx(ConnectedProjectEntity, { name: p.name, relation: "other" }),
@@ -16160,10 +16197,10 @@ function CollaboratorPlan({
16160
16197
  const next = addons.collaborator_blocks_next ?? blocks;
16161
16198
  const included = addons.included_collaborators ?? 0;
16162
16199
  const size = addons.block_collaborators ?? 0;
16163
- const from = chunkTENWM7BH_cjs.formatPeriodEnd(addons.period_end ?? project.current_period_end) ?? "the next billing period";
16200
+ const from = chunkQW6NCUR7_cjs.formatPeriodEnd(addons.period_end ?? project.current_period_end) ?? "the next billing period";
16164
16201
  const annual = project.plan_interval === "year";
16165
- const now = quote.data ? chunkTENWM7BH_cjs.quoteParts(quote.data.now) : null;
16166
- const renewal = quote.data ? chunkTENWM7BH_cjs.quoteParts(quote.data.renewal) : null;
16202
+ const now = quote.data ? chunkQW6NCUR7_cjs.quoteParts(quote.data.now) : null;
16203
+ const renewal = quote.data ? chunkQW6NCUR7_cjs.quoteParts(quote.data.renewal) : null;
16167
16204
  const busy = add.isPending || update.isPending;
16168
16205
  const setNext = (count2) => update.mutate(
16169
16206
  { projectExtId: project.external_id, body: { collaborator_blocks: count2 } },
@@ -16210,20 +16247,20 @@ function CollaboratorPlan({
16210
16247
  now && renewal && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2 text-sm", children: [
16211
16248
  /* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
16212
16249
  "Pay ",
16213
- chunkTENWM7BH_cjs.money2(now.total),
16250
+ chunkQW6NCUR7_cjs.money2(now.total),
16214
16251
  " today (",
16215
- chunkTENWM7BH_cjs.taxDetail(now),
16252
+ chunkQW6NCUR7_cjs.taxDetail(now),
16216
16253
  "), covering until ",
16217
16254
  from,
16218
16255
  "."
16219
16256
  ] }),
16220
16257
  /* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
16221
16258
  "Then ",
16222
- chunkTENWM7BH_cjs.money2(renewal.total),
16259
+ chunkQW6NCUR7_cjs.money2(renewal.total),
16223
16260
  " every ",
16224
16261
  annual ? "year" : "month",
16225
16262
  " (",
16226
- chunkTENWM7BH_cjs.taxDetail(renewal),
16263
+ chunkQW6NCUR7_cjs.taxDetail(renewal),
16227
16264
  "), starting ",
16228
16265
  from,
16229
16266
  ", until you remove the pack."
@@ -16236,7 +16273,7 @@ function CollaboratorPlan({
16236
16273
  ] }),
16237
16274
  /* @__PURE__ */ jsxRuntime.jsxs(ui.DialogFooter, { children: [
16238
16275
  /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { variant: "outline", onClick: () => setOpen(false), children: "Cancel" }),
16239
- /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { onClick: buy, disabled: !now || !renewal || quote.isFetching || busy, children: add.isPending ? "Paying\u2026" : now ? `Pay ${chunkTENWM7BH_cjs.money2(now.total)}` : "Add collaborators" })
16276
+ /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { onClick: buy, disabled: !now || !renewal || quote.isFetching || busy, children: add.isPending ? "Paying\u2026" : now ? `Pay ${chunkQW6NCUR7_cjs.money2(now.total)}` : "Add collaborators" })
16240
16277
  ] })
16241
16278
  ] }) });
16242
16279
  if (compact)
@@ -16308,7 +16345,7 @@ function CollaboratorPlan({
16308
16345
  project.quotas.collaborators.limit,
16309
16346
  " available \xB7 you don't count towards the limit."
16310
16347
  ] }),
16311
- /* @__PURE__ */ jsxRuntime.jsx("p", { children: addons.collaborator_block_period_ex_vat_pence != null ? `${chunkTENWM7BH_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." }),
16348
+ /* @__PURE__ */ jsxRuntime.jsx("p", { children: addons.collaborator_block_period_ex_vat_pence != null ? `${chunkQW6NCUR7_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." }),
16312
16349
  /* @__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." }),
16313
16350
  /* @__PURE__ */ jsxRuntime.jsxs(
16314
16351
  ui.Button,
@@ -16382,7 +16419,7 @@ function DailyCapEditor({ project }) {
16382
16419
  );
16383
16420
  };
16384
16421
  return /* @__PURE__ */ jsxRuntime.jsx(
16385
- chunkC5APAFUY_cjs.DailyCapField,
16422
+ chunkN3H3YAKY_cjs.DailyCapField,
16386
16423
  {
16387
16424
  value,
16388
16425
  onChange: setValue,
@@ -16395,11 +16432,11 @@ function DailyCapEditor({ project }) {
16395
16432
  function SubscriptionStatus({ project }) {
16396
16433
  const { quotas, cancel_at_period_end, subscription, current_period_end, addons } = project;
16397
16434
  return /* @__PURE__ */ jsxRuntime.jsx(
16398
- chunkC5APAFUY_cjs.SubscriptionStatusView,
16435
+ chunkN3H3YAKY_cjs.SubscriptionStatusView,
16399
16436
  {
16400
- resetDate: chunkTENWM7BH_cjs.formatResetDate(addons?.ai_usage_reset_at ?? current_period_end),
16437
+ resetDate: chunkQW6NCUR7_cjs.formatResetDate(addons?.ai_usage_reset_at ?? current_period_end),
16401
16438
  isCanceling: subscription === "canceled" || cancel_at_period_end === true,
16402
- meters: chunkTENWM7BH_cjs.getQuotaItems(quotas).map((q) => ({
16439
+ meters: chunkQW6NCUR7_cjs.getQuotaItems(quotas).map((q) => ({
16403
16440
  key: q.key,
16404
16441
  icon: q.icon,
16405
16442
  label: q.label,
@@ -16490,7 +16527,7 @@ function MonthlySpendCap({
16490
16527
  const min = (basePence + minimumExtra) / 100;
16491
16528
  const max = (basePence + maximumExtra) / 100;
16492
16529
  const pounds = (basePence + extra) / 100;
16493
- const money = (n) => chunkTENWM7BH_cjs.formatMoney(n, "gbp");
16530
+ const money = (n) => chunkQW6NCUR7_cjs.formatMoney(n, "gbp");
16494
16531
  if (control === "purchase")
16495
16532
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "project-purchase-auto-summary", children: [
16496
16533
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "project-purchase-ceiling-intro text-muted-foreground", children: "Project spend cap if I exceed my quota:" }),
@@ -16611,7 +16648,7 @@ function MonthlySpendCap({
16611
16648
  !compact && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: "You can also adjust usage add-ons with + and \u2212." })
16612
16649
  ] });
16613
16650
  }
16614
- var titleFor = (kind, blockAiGbp, blockStorageGb) => kind === "ai_usage" ? `Add ${react.formatGbp(blockAiGbp ?? chunkTENWM7BH_cjs.ADDON_BLOCK_AI_GBP)} of AI credits` : `Add ${blockStorageGb ?? chunkTENWM7BH_cjs.STORAGE_BLOCK_GB} GB storage`;
16651
+ var titleFor = (kind, blockAiGbp, blockStorageGb) => kind === "ai_usage" ? `Add ${react.formatGbp(blockAiGbp ?? chunkQW6NCUR7_cjs.ADDON_BLOCK_AI_GBP)} of AI credits` : `Add ${blockStorageGb ?? chunkQW6NCUR7_cjs.STORAGE_BLOCK_GB} GB storage`;
16615
16652
  var blocksOf = (kind, project) => (kind === "ai_usage" ? project.addons?.ai_blocks : project.addons?.storage_blocks) ?? 0;
16616
16653
  function Row({ label, children }) {
16617
16654
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-baseline justify-between gap-4", children: [
@@ -16632,11 +16669,11 @@ function AddAddonDialog({
16632
16669
  const addons = project.addons;
16633
16670
  if (!addons) return null;
16634
16671
  const isAnnual = project.plan_interval === "year";
16635
- const price = chunkTENWM7BH_cjs.addonCharge(kind, addons, isAnnual, addons.period_end ?? project.current_period_end);
16636
- const nextCharge = chunkTENWM7BH_cjs.formatPeriodEnd(addons.period_end ?? project.current_period_end);
16637
- const now = quote.data ? chunkTENWM7BH_cjs.quoteParts(quote.data.now) : null;
16638
- const renewal = quote.data ? chunkTENWM7BH_cjs.quoteParts(quote.data.renewal) : null;
16639
- const today = now ? { total: chunkTENWM7BH_cjs.money2(now.total), detail: chunkTENWM7BH_cjs.taxDetail(now) } : { total: price.now, detail: `incl. VAT (${price.nowExVat} + ${price.nowVat} VAT)` };
16672
+ const price = chunkQW6NCUR7_cjs.addonCharge(kind, addons, isAnnual, addons.period_end ?? project.current_period_end);
16673
+ const nextCharge = chunkQW6NCUR7_cjs.formatPeriodEnd(addons.period_end ?? project.current_period_end);
16674
+ const now = quote.data ? chunkQW6NCUR7_cjs.quoteParts(quote.data.now) : null;
16675
+ const renewal = quote.data ? chunkQW6NCUR7_cjs.quoteParts(quote.data.renewal) : null;
16676
+ const today = now ? { total: chunkQW6NCUR7_cjs.money2(now.total), detail: chunkQW6NCUR7_cjs.taxDetail(now) } : { total: price.now, detail: `incl. VAT (${price.nowExVat} + ${price.nowVat} VAT)` };
16640
16677
  const pricing = quote.isLoading;
16641
16678
  const confirm = () => {
16642
16679
  const before = blocksOf(kind, project);
@@ -16675,8 +16712,8 @@ function AddAddonDialog({
16675
16712
  isAnnual ? "yearly" : "monthly",
16676
16713
  " \xB7 no refund"
16677
16714
  ] }),
16678
- /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.MoreInfo, { title: "Adding a top-up", testId: "add-addon-more-info", children: /* @__PURE__ */ jsxRuntime.jsx(
16679
- chunkC5APAFUY_cjs.MoreInfoList,
16715
+ /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.MoreInfo, { title: "Adding a top-up", testId: "add-addon-more-info", children: /* @__PURE__ */ jsxRuntime.jsx(
16716
+ chunkN3H3YAKY_cjs.MoreInfoList,
16680
16717
  {
16681
16718
  items: [
16682
16719
  {
@@ -16691,7 +16728,7 @@ function AddAddonDialog({
16691
16728
  term: "Usage cap",
16692
16729
  text: "Adding by hand is never blocked by the usage cap; the cap limits automatic top-ups only."
16693
16730
  },
16694
- ...isAnnual && kind === "ai_usage" ? [{ term: "Annual", text: `${chunkTENWM7BH_cjs.ANNUAL_PREMIUM_AI_NOTE}.` }] : []
16731
+ ...isAnnual && kind === "ai_usage" ? [{ term: "Annual", text: `${chunkQW6NCUR7_cjs.ANNUAL_PREMIUM_AI_NOTE}.` }] : []
16695
16732
  ]
16696
16733
  }
16697
16734
  ) })
@@ -16714,7 +16751,7 @@ function AddAddonDialog({
16714
16751
  )
16715
16752
  ] }) }),
16716
16753
  !pricing && /* @__PURE__ */ jsxRuntime.jsxs(Row, { label: "Next charge", children: [
16717
- renewal ? chunkTENWM7BH_cjs.totalWithTaxWord(renewal) : price.then.replace(/\/(month|year)/, ""),
16754
+ renewal ? chunkQW6NCUR7_cjs.totalWithTaxWord(renewal) : price.then.replace(/\/(month|year)/, ""),
16718
16755
  nextCharge ? ` on ${nextCharge}` : " at renewal"
16719
16756
  ] })
16720
16757
  ] }) }),
@@ -16745,11 +16782,11 @@ function ReduceAddonDialog({
16745
16782
  const update = react.useUpdateProjectNextPeriodAddons();
16746
16783
  const addons = project.addons;
16747
16784
  if (!addons) return null;
16748
- const { min, next } = chunkTENWM7BH_cjs.reduceBounds(kind, addons);
16785
+ const { min, next } = chunkQW6NCUR7_cjs.reduceBounds(kind, addons);
16749
16786
  const keep2 = Math.max(min, next - 1);
16750
- const size = chunkTENWM7BH_cjs.nextRemovedBlockSize(kind, addons);
16751
- const what = chunkTENWM7BH_cjs.stepLabel(kind, size);
16752
- const from = chunkTENWM7BH_cjs.formatPeriodEnd(addons.period_end ?? project.current_period_end) ?? "your next renewal";
16787
+ const size = chunkQW6NCUR7_cjs.nextRemovedBlockSize(kind, addons);
16788
+ const what = chunkQW6NCUR7_cjs.stepLabel(kind, size);
16789
+ const from = chunkQW6NCUR7_cjs.formatPeriodEnd(addons.period_end ?? project.current_period_end) ?? "your next renewal";
16753
16790
  const fromShort = from.replace(/ \d{4}$/, "");
16754
16791
  const allowanceNext = kind === "ai_usage" ? addons.ai_allowance_next_gbp - size : addons.storage_allowance_next_gb - size;
16755
16792
  const allowanceNow = kind === "ai_usage" ? addons.ai_allowance_gbp : addons.storage_allowance_gb;
@@ -16757,7 +16794,7 @@ function ReduceAddonDialog({
16757
16794
  const save = () => update.mutate(
16758
16795
  {
16759
16796
  projectExtId: project.external_id,
16760
- body: chunkTENWM7BH_cjs.nextPeriodBody(kind, keep2)
16797
+ body: chunkQW6NCUR7_cjs.nextPeriodBody(kind, keep2)
16761
16798
  },
16762
16799
  {
16763
16800
  onSuccess: () => {
@@ -16785,7 +16822,7 @@ function ReduceAddonDialog({
16785
16822
  fromShort,
16786
16823
  " \xB7 no refund"
16787
16824
  ] }),
16788
- /* @__PURE__ */ jsxRuntime.jsxs(chunkC5APAFUY_cjs.MoreInfo, { title: "Reducing a top-up", testId: "reduce-addon-more-info", children: [
16825
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkN3H3YAKY_cjs.MoreInfo, { title: "Reducing a top-up", testId: "reduce-addon-more-info", children: [
16789
16826
  /* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
16790
16827
  "The reduction applies from your next renewal (",
16791
16828
  from,
@@ -16842,7 +16879,7 @@ function ReduceAddonDialog({
16842
16879
  }
16843
16880
  ) });
16844
16881
  }
16845
- var gbp = (pence) => chunkTENWM7BH_cjs.formatMoney(pence, "gbp");
16882
+ var gbp = (pence) => chunkQW6NCUR7_cjs.formatMoney(pence, "gbp");
16846
16883
  var gb2 = (n) => `${Math.round(n * 10) / 10} GB`;
16847
16884
  function formatShortDate(unix) {
16848
16885
  if (!unix) return null;
@@ -16853,20 +16890,20 @@ function AutoTopupThreshold({
16853
16890
  addons
16854
16891
  }) {
16855
16892
  const updateSettings = react.useUpdateProjectAddonSettings();
16856
- const min = addons.min_auto_topup_threshold_gbp || chunkTENWM7BH_cjs.MIN_AUTO_TOPUP_THRESHOLD_GBP;
16893
+ const min = addons.min_auto_topup_threshold_gbp || chunkQW6NCUR7_cjs.MIN_AUTO_TOPUP_THRESHOLD_GBP;
16857
16894
  const saved = addons.auto_topup_threshold_gbp;
16858
16895
  const [value, setValue] = react$1.useState(String(saved));
16859
16896
  react$1.useEffect(() => setValue(String(saved)), [saved]);
16860
16897
  const parsed = Number(value);
16861
16898
  const valid = Number.isFinite(parsed) && parsed >= min;
16862
16899
  const dirty = valid && parsed !== saved;
16863
- const off = chunkTENWM7BH_cjs.isAddonBudgetZero(addons);
16900
+ const off = chunkQW6NCUR7_cjs.isAddonBudgetZero(addons);
16864
16901
  const save = () => {
16865
16902
  if (!dirty) return;
16866
16903
  updateSettings.mutate(
16867
16904
  {
16868
16905
  projectExtId: project.external_id,
16869
- body: chunkTENWM7BH_cjs.addonSettingsBody(addons, { auto_topup_threshold_gbp: parsed })
16906
+ body: chunkQW6NCUR7_cjs.addonSettingsBody(addons, { auto_topup_threshold_gbp: parsed })
16870
16907
  },
16871
16908
  {
16872
16909
  onSuccess: () => shell.notify.success(`Auto-add below ${react.formatGbp(parsed)} of AI credits left`),
@@ -16963,10 +17000,10 @@ function ResourceMeter({
16963
17000
  const update = react.useUpdateProjectNextPeriodAddons();
16964
17001
  const isAi = kind === "ai_usage";
16965
17002
  const slug = isAi ? "ai-usage" : "storage";
16966
- const periodEnd = chunkTENWM7BH_cjs.formatPeriodEnd(addons.period_end ?? project.current_period_end);
17003
+ const periodEnd = chunkQW6NCUR7_cjs.formatPeriodEnd(addons.period_end ?? project.current_period_end);
16967
17004
  const from = periodEnd ?? "your next renewal";
16968
17005
  const fromShort = formatShortDate(addons.period_end ?? project.current_period_end) ?? "renewal";
16969
- const { min, current, next } = chunkTENWM7BH_cjs.reduceBounds(kind, addons);
17006
+ const { min, current, next } = chunkQW6NCUR7_cjs.reduceBounds(kind, addons);
16970
17007
  const fmt = (n) => isAi ? react.formatGbp(n) : gb2(n);
16971
17008
  const used = isAi ? addons.ai_used_gbp : addons.storage_used_gb;
16972
17009
  const allowance = isAi ? addons.ai_allowance_gbp : addons.storage_allowance_gb;
@@ -16974,15 +17011,15 @@ function ResourceMeter({
16974
17011
  const plan = isAi ? addons.plan_ai_gbp : addons.plan_storage_gb;
16975
17012
  const topUps = Math.max(0, allowance - plan);
16976
17013
  const blocks = isAi ? addons.ai_blocks : addons.storage_blocks;
16977
- const hasLegacy = chunkTENWM7BH_cjs.splitBlocks(kind, blocks, addons).legacy > 0;
16978
- const room = chunkTENWM7BH_cjs.autoRoom(kind, addons);
16979
- const capZero = chunkTENWM7BH_cjs.isAddonBudgetZero(addons);
16980
- const resets = isAi ? formatShortDate(chunkTENWM7BH_cjs.aiUsageResetTimestamp(project)) : null;
16981
- const removeSize = chunkTENWM7BH_cjs.nextRemovedBlockSize(kind, addons);
17014
+ const hasLegacy = chunkQW6NCUR7_cjs.splitBlocks(kind, blocks, addons).legacy > 0;
17015
+ const room = chunkQW6NCUR7_cjs.autoRoom(kind, addons);
17016
+ const capZero = chunkQW6NCUR7_cjs.isAddonBudgetZero(addons);
17017
+ const resets = isAi ? formatShortDate(chunkQW6NCUR7_cjs.aiUsageResetTimestamp(project)) : null;
17018
+ const removeSize = chunkQW6NCUR7_cjs.nextRemovedBlockSize(kind, addons);
16982
17019
  const undo = () => update.mutate(
16983
17020
  {
16984
17021
  projectExtId: project.external_id,
16985
- body: chunkTENWM7BH_cjs.nextPeriodBody(kind, current)
17022
+ body: chunkQW6NCUR7_cjs.nextPeriodBody(kind, current)
16986
17023
  },
16987
17024
  {
16988
17025
  onSuccess: () => shell.notify.success("Kept"),
@@ -16999,7 +17036,7 @@ function ResourceMeter({
16999
17036
  allowance: { used, plan, topUps, autoRoom: capZero ? 0 : room },
17000
17037
  legend: {
17001
17038
  plan: `Subscription ${fmt(plan)}`,
17002
- topUps: topUps > 0 ? `Top-ups ${fmt(topUps)}${hasLegacy ? ` (${chunkTENWM7BH_cjs.blocksLabel(kind, blocks, addons)})` : ""}` : void 0,
17039
+ topUps: topUps > 0 ? `Top-ups ${fmt(topUps)}${hasLegacy ? ` (${chunkQW6NCUR7_cjs.blocksLabel(kind, blocks, addons)})` : ""}` : void 0,
17003
17040
  autoRoom: room != null && room > 0 && !capZero ? `Automatic up to ${fmt(room)}` : void 0
17004
17041
  },
17005
17042
  testId: `usage-meter-${slug}`,
@@ -17028,9 +17065,9 @@ function ResourceMeter({
17028
17065
  {
17029
17066
  icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { className: "size-3.5" }),
17030
17067
  label: isAi ? react.formatGbp(addons.block_ai_gbp) : `${addons.block_storage_gb} GB`,
17031
- caption: chunkTENWM7BH_cjs.addStepCaption(kind, addons),
17068
+ caption: chunkQW6NCUR7_cjs.addStepCaption(kind, addons),
17032
17069
  onClick: onAdd,
17033
- ariaLabel: `Add ${chunkTENWM7BH_cjs.stepLabel(kind, isAi ? addons.block_ai_gbp : addons.block_storage_gb)}`,
17070
+ ariaLabel: `Add ${chunkQW6NCUR7_cjs.stepLabel(kind, isAi ? addons.block_ai_gbp : addons.block_storage_gb)}`,
17034
17071
  testId: isAi ? "add-ai-block-button" : "add-storage-block-button"
17035
17072
  }
17036
17073
  ),
@@ -17043,7 +17080,7 @@ function ResourceMeter({
17043
17080
  label: isAi ? react.formatGbp(removeSize) : `${removeSize} GB`,
17044
17081
  caption: `from ${fromShort}`,
17045
17082
  onClick: onReduce,
17046
- ariaLabel: `Remove ${chunkTENWM7BH_cjs.stepLabel(kind, removeSize)} from ${from}`,
17083
+ ariaLabel: `Remove ${chunkQW6NCUR7_cjs.stepLabel(kind, removeSize)} from ${from}`,
17047
17084
  testId: `reduce-${slug}-button`
17048
17085
  }
17049
17086
  )
@@ -17076,10 +17113,10 @@ function UsageCapEditor({ project, addons }) {
17076
17113
  const save = () => updateSettings.mutate(
17077
17114
  {
17078
17115
  projectExtId: project.external_id,
17079
- body: chunkTENWM7BH_cjs.addonSettingsBody(addons, { spend_cap_pence: value })
17116
+ body: chunkQW6NCUR7_cjs.addonSettingsBody(addons, { spend_cap_pence: value })
17080
17117
  },
17081
17118
  {
17082
- onSuccess: () => shell.notify.success(chunkTENWM7BH_cjs.budgetSavedMessage(value)),
17119
+ onSuccess: () => shell.notify.success(chunkQW6NCUR7_cjs.budgetSavedMessage(value)),
17083
17120
  onError: (error) => shell.notify.error(addonErrorMessage(error))
17084
17121
  }
17085
17122
  );
@@ -17116,8 +17153,8 @@ function UsageCapEditor({ project, addons }) {
17116
17153
  function UsageInfo({ addons, isAnnual }) {
17117
17154
  const period = isAnnual ? "year" : "month";
17118
17155
  const legacy = (addons.legacy_ai_blocks ?? 0) > 0 || (addons.legacy_storage_blocks ?? 0) > 0;
17119
- return /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.MoreInfo, { title: "Usage and top-ups", testId: "usage-more-info", children: /* @__PURE__ */ jsxRuntime.jsx(
17120
- chunkC5APAFUY_cjs.MoreInfoList,
17156
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.MoreInfo, { title: "Usage and top-ups", testId: "usage-more-info", children: /* @__PURE__ */ jsxRuntime.jsx(
17157
+ chunkN3H3YAKY_cjs.MoreInfoList,
17121
17158
  {
17122
17159
  items: [
17123
17160
  {
@@ -17132,7 +17169,7 @@ function UsageInfo({ addons, isAnnual }) {
17132
17169
  term: "Automatic top-ups",
17133
17170
  text: "One step is added when AI credits drops below your auto top-up level, or when an upload needs more storage."
17134
17171
  },
17135
- { term: "Usage cap", text: chunkTENWM7BH_cjs.USAGE_CAP_HELP },
17172
+ { term: "Usage cap", text: chunkQW6NCUR7_cjs.USAGE_CAP_HELP },
17136
17173
  {
17137
17174
  term: "Reducing",
17138
17175
  text: "\u2212 removes one step from your next renewal. You keep this period's allowance. No refunds."
@@ -17143,7 +17180,7 @@ function UsageInfo({ addons, isAnnual }) {
17143
17180
  text: "Top-ups bought on an earlier price keep their size and price until removed; they are removed last."
17144
17181
  }
17145
17182
  ] : [],
17146
- ...isAnnual ? [{ term: "Annual", text: `${chunkTENWM7BH_cjs.ANNUAL_PREMIUM_AI_NOTE}.` }] : [],
17183
+ ...isAnnual ? [{ term: "Annual", text: `${chunkQW6NCUR7_cjs.ANNUAL_PREMIUM_AI_NOTE}.` }] : [],
17147
17184
  {
17148
17185
  term: "Prices",
17149
17186
  text: "Shown ex VAT. The confirm step shows the total with VAT before you pay."
@@ -17236,7 +17273,7 @@ function formatShortDate2(unix) {
17236
17273
  if (!unix) return null;
17237
17274
  return new Date(unix * 1e3).toLocaleDateString("en-GB", { day: "numeric", month: "short" });
17238
17275
  }
17239
- var gbp2 = (pence) => chunkTENWM7BH_cjs.formatMoney(pence, "gbp");
17276
+ var gbp2 = (pence) => chunkQW6NCUR7_cjs.formatMoney(pence, "gbp");
17240
17277
  var gbNum = (n) => `${Math.round(n * 10) / 10}`;
17241
17278
  var pct = (used, limit) => limit > 0 ? Math.min(100, used / limit * 100) : 0;
17242
17279
  function Meter({
@@ -17254,15 +17291,15 @@ function Meter({
17254
17291
  ] });
17255
17292
  }
17256
17293
  function usePlanPrice(project) {
17257
- const { data: products } = react.useProducts({ enabled: chunkTENWM7BH_cjs.isProProject(project) });
17258
- if (!chunkTENWM7BH_cjs.isProProject(project)) return null;
17294
+ const { data: products } = react.useProducts({ enabled: chunkQW6NCUR7_cjs.isProProject(project) });
17295
+ if (!chunkQW6NCUR7_cjs.isProProject(project)) return null;
17259
17296
  const isAnnual = project.plan_interval === "year";
17260
17297
  if (project.amount != null) {
17261
17298
  return { incl: project.amount, ex: project.amount_ex_vat ?? null, isAnnual };
17262
17299
  }
17263
- if ((project.packs ?? chunkTENWM7BH_cjs.PRO_PACKS) > chunkTENWM7BH_cjs.PRO_PACKS) return null;
17264
- const prices = chunkTENWM7BH_cjs.findProPrices(products);
17265
- const pp = chunkTENWM7BH_cjs.packPrice(isAnnual ? prices.annual : prices.monthly);
17300
+ if ((project.packs ?? chunkQW6NCUR7_cjs.PRO_PACKS) > chunkQW6NCUR7_cjs.PRO_PACKS) return null;
17301
+ const prices = chunkQW6NCUR7_cjs.findProPrices(products);
17302
+ const pp = chunkQW6NCUR7_cjs.packPrice(isAnnual ? prices.annual : prices.monthly);
17266
17303
  return pp ? { incl: pp.amount, ex: pp.amount_ex_vat, isAnnual } : null;
17267
17304
  }
17268
17305
  function paidLine(payment, addons) {
@@ -17275,11 +17312,11 @@ function ProjectPlanCard({
17275
17312
  onChangePlan
17276
17313
  }) {
17277
17314
  const { quotas, addons } = project;
17278
- const isPro = chunkTENWM7BH_cjs.isProProject(project);
17315
+ const isPro = chunkQW6NCUR7_cjs.isProProject(project);
17279
17316
  const used = quotas?.ai_usage?.used ?? 0;
17280
17317
  const limit = quotas?.ai_usage?.limit ?? 0;
17281
- const resetDate = formatShortDate2(chunkTENWM7BH_cjs.aiUsageResetTimestamp(project));
17282
- const periodEnd = chunkTENWM7BH_cjs.formatPeriodEnd(addons?.period_end ?? project.current_period_end);
17318
+ const resetDate = formatShortDate2(chunkQW6NCUR7_cjs.aiUsageResetTimestamp(project));
17319
+ const periodEnd = chunkQW6NCUR7_cjs.formatPeriodEnd(addons?.period_end ?? project.current_period_end);
17283
17320
  const when2 = periodEnd ?? "the end of the period";
17284
17321
  const storageUsed = quotas?.storage_gb?.used ?? 0;
17285
17322
  const storageLimit = quotas?.storage_gb?.limit ?? 0;
@@ -17295,7 +17332,7 @@ function ProjectPlanCard({
17295
17332
  project.external_id,
17296
17333
  hasScheduledChange && addons ? { packs: packsNext ?? addons.packs, interval: pending ?? currentInterval } : null
17297
17334
  ).data;
17298
- const tier = isPro ? chunkTENWM7BH_cjs.proTierName(project) : project.subscription === "dev" ? "Dev" : "Free";
17335
+ const tier = isPro ? chunkQW6NCUR7_cjs.proTierName(project) : project.subscription === "dev" ? "Dev" : "Free";
17299
17336
  const pendingPayment = addons?.payment?.status === "pending" ? addons.payment : null;
17300
17337
  const confirmUrl = pendingPayment?.confirm_url ?? addons?.confirm_url;
17301
17338
  const paidPayment = addons?.payment?.status === "paid" ? addons.payment : null;
@@ -17329,7 +17366,7 @@ function ProjectPlanCard({
17329
17366
  isPro && " ",
17330
17367
  isPro && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ml-1 text-sm font-normal text-muted-foreground", children: currentInterval === "year" ? "Annual" : "Monthly" })
17331
17368
  ] }),
17332
- 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 ${chunkTENWM7BH_cjs.totalWithTaxWord({
17369
+ 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 ${chunkQW6NCUR7_cjs.totalWithTaxWord({
17333
17370
  subtotal: nextBill.next_renewal_ex_vat_pence,
17334
17371
  tax: nextBill.next_renewal_tax_pence,
17335
17372
  total: nextBill.next_renewal_pence,
@@ -17338,7 +17375,7 @@ function ProjectPlanCard({
17338
17375
  ] }),
17339
17376
  price && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ml-auto text-right", "data-testid": "project-plan-price", children: [
17340
17377
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-lg font-semibold tabular-nums text-foreground", children: [
17341
- price.ex != null ? chunkTENWM7BH_cjs.plusVat(price.ex) : gbp2(price.incl),
17378
+ price.ex != null ? chunkQW6NCUR7_cjs.plusVat(price.ex) : gbp2(price.incl),
17342
17379
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-normal text-muted-foreground", children: price.isAnnual ? "/year" : "/month" })
17343
17380
  ] }),
17344
17381
  price.ex != null && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-xs text-muted-foreground", children: [
@@ -17376,7 +17413,7 @@ function ProjectPlanCard({
17376
17413
  undoTestId: "undo-plan-change-button",
17377
17414
  children: [
17378
17415
  "Changes to ",
17379
- chunkTENWM7BH_cjs.planNameForPacks(packsNext),
17416
+ chunkQW6NCUR7_cjs.planNameForPacks(packsNext),
17380
17417
  " on ",
17381
17418
  when2,
17382
17419
  "."
@@ -17421,8 +17458,8 @@ function ProjectPlanCard({
17421
17458
  }
17422
17459
  )
17423
17460
  ] }),
17424
- addons?.billing_error && /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.PlanNotice, { tone: "error", testId: "plan-billing-error", children: addons.billing_error }),
17425
- confirmUrl ? /* @__PURE__ */ jsxRuntime.jsxs(chunkC5APAFUY_cjs.PlanNotice, { testId: "plan-payment-state", children: [
17461
+ addons?.billing_error && /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.PlanNotice, { tone: "error", testId: "plan-billing-error", children: addons.billing_error }),
17462
+ confirmUrl ? /* @__PURE__ */ jsxRuntime.jsxs(chunkN3H3YAKY_cjs.PlanNotice, { testId: "plan-payment-state", children: [
17426
17463
  "Waiting for your bank",
17427
17464
  pendingPayment?.amount_pence ? ` \xB7 ${gbp2(pendingPayment.amount_pence)}` : "",
17428
17465
  " \xB7",
@@ -17440,7 +17477,7 @@ function ProjectPlanCard({
17440
17477
  ]
17441
17478
  }
17442
17479
  )
17443
- ] }) : paidPayment && addons && /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.PlanNotice, { testId: "plan-payment-state", children: paidLine(paidPayment, addons) }),
17480
+ ] }) : paidPayment && addons && /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.PlanNotice, { testId: "plan-payment-state", children: paidLine(paidPayment, addons) }),
17444
17481
  isPro && /* @__PURE__ */ jsxRuntime.jsxs(
17445
17482
  "button",
17446
17483
  {
@@ -17467,7 +17504,7 @@ function ProjectBilling({
17467
17504
  const { addons } = project;
17468
17505
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", "data-testid": "project-billing", children: [
17469
17506
  /* @__PURE__ */ jsxRuntime.jsx(ProjectPlanCard, { project, onChangePlan }),
17470
- addons && chunkTENWM7BH_cjs.isProProject(project) && /* @__PURE__ */ jsxRuntime.jsx(ProjectUsageCard, { project, addons })
17507
+ addons && chunkQW6NCUR7_cjs.isProProject(project) && /* @__PURE__ */ jsxRuntime.jsx(ProjectUsageCard, { project, addons })
17471
17508
  ] });
17472
17509
  }
17473
17510
  var BREAKDOWN_LABELS = react.DEFAULT_USAGE_BREAKDOWN_SOURCE_LABELS.by;
@@ -17505,13 +17542,13 @@ function ProjectUsageContent({
17505
17542
  };
17506
17543
  const quotaPct = effectiveUsage && aiUsageLimit ? Math.round(effectiveUsage.total_spend / aiUsageLimit * 100) : 0;
17507
17544
  return /* @__PURE__ */ jsxRuntime.jsx(
17508
- chunkC5APAFUY_cjs.UsagePanel,
17545
+ chunkN3H3YAKY_cjs.UsagePanel,
17509
17546
  {
17510
17547
  state,
17511
17548
  dateRange,
17512
17549
  emptyMessage: `No usage ${period === "current" ? "yet this month" : "last month"}.`,
17513
17550
  period: /* @__PURE__ */ jsxRuntime.jsx(
17514
- chunkC5APAFUY_cjs.UsageToggle,
17551
+ chunkN3H3YAKY_cjs.UsageToggle,
17515
17552
  {
17516
17553
  ariaLabel: "Period",
17517
17554
  value: period,
@@ -17524,7 +17561,7 @@ function ProjectUsageContent({
17524
17561
  ),
17525
17562
  actions: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
17526
17563
  effectiveUsage?.invoice_pdf && /* @__PURE__ */ jsxRuntime.jsx(
17527
- chunkC5APAFUY_cjs.UsageActionButton,
17564
+ chunkN3H3YAKY_cjs.UsageActionButton,
17528
17565
  {
17529
17566
  label: "Download Stripe invoice PDF",
17530
17567
  icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Download, { className: "size-3.5" }),
@@ -17532,7 +17569,7 @@ function ProjectUsageContent({
17532
17569
  }
17533
17570
  ),
17534
17571
  /* @__PURE__ */ jsxRuntime.jsx(
17535
- chunkC5APAFUY_cjs.UsageActionButton,
17572
+ chunkN3H3YAKY_cjs.UsageActionButton,
17536
17573
  {
17537
17574
  label: "Print usage summary",
17538
17575
  icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Printer, { className: "size-3.5" }),
@@ -17569,7 +17606,7 @@ function ProjectUsagePanels({
17569
17606
  [spend, panels.requests, panels.tokens].map((p) => /* @__PURE__ */ jsxRuntime.jsx(chunkF6F375V7_cjs.DashboardCell, { width: p.width, children: /* @__PURE__ */ jsxRuntime.jsx(chunkF6F375V7_cjs.DashboardPanel, { panel: p, testId: `project-usage-${p.id}` }) }, p.id)),
17570
17607
  /* @__PURE__ */ jsxRuntime.jsx(chunkF6F375V7_cjs.DashboardCell, { width: 12, children: /* @__PURE__ */ jsxRuntime.jsx(chunkF6F375V7_cjs.DashboardPanel, { panel: { ...panels.spendByModel, width: 12 } }) }),
17571
17608
  /* @__PURE__ */ jsxRuntime.jsx(chunkF6F375V7_cjs.DashboardCell, { width: 12, children: /* @__PURE__ */ jsxRuntime.jsx(
17572
- chunkC5APAFUY_cjs.UsageToggle,
17609
+ chunkN3H3YAKY_cjs.UsageToggle,
17573
17610
  {
17574
17611
  ariaLabel: "Breakdown by",
17575
17612
  size: "fill",
@@ -17584,7 +17621,7 @@ function ProjectUsagePanels({
17584
17621
  panel: panels.breakdown(breakdown, metric, 12),
17585
17622
  testId: "project-usage-breakdown",
17586
17623
  actions: /* @__PURE__ */ jsxRuntime.jsx(
17587
- chunkC5APAFUY_cjs.UsageToggle,
17624
+ chunkN3H3YAKY_cjs.UsageToggle,
17588
17625
  {
17589
17626
  ariaLabel: "Breakdown metric",
17590
17627
  value: metric,
@@ -17600,14 +17637,14 @@ function ProjectUsagePanels({
17600
17637
  ] });
17601
17638
  }
17602
17639
  function ProjectDetail({ projectExtId, storage }) {
17603
- const { stripeEnabled } = chunkTENWM7BH_cjs.useBillingSupport();
17640
+ const { stripeEnabled } = chunkQW6NCUR7_cjs.useBillingSupport();
17604
17641
  const { openDialog: openDialog2 } = chunkLIKDQBNJ_cjs.useBlocksEnvironment();
17605
17642
  const [planOpen, setPlanOpen] = react$1.useState(false);
17606
17643
  const [renameOpen, setRenameOpen] = react$1.useState(false);
17607
17644
  const [renameValue, setRenameValue] = react$1.useState("");
17608
17645
  const updateProject = react.useUpdateProjectFields();
17609
17646
  const { data: projects, isLoading } = react.useProjects();
17610
- const currentUserExtId = chunkTENWM7BH_cjs.useSelfExtId();
17647
+ const currentUserExtId = chunkQW6NCUR7_cjs.useSelfExtId();
17611
17648
  const project = projects?.find((p) => p.external_id === projectExtId);
17612
17649
  const handleSaveRename = react$1.useCallback(() => {
17613
17650
  const trimmed = renameValue.trim();
@@ -17658,7 +17695,7 @@ function ProjectDetail({ projectExtId, storage }) {
17658
17695
  )
17659
17696
  ] }),
17660
17697
  /* @__PURE__ */ jsxRuntime.jsx(
17661
- chunkC5APAFUY_cjs.ProjectDetailHeader,
17698
+ chunkN3H3YAKY_cjs.ProjectDetailHeader,
17662
17699
  {
17663
17700
  icon: /* @__PURE__ */ jsxRuntime.jsx(ui.EntityIcon, { entityType: "PROJECT" }),
17664
17701
  name: project.name,
@@ -17666,12 +17703,12 @@ function ProjectDetail({ projectExtId, storage }) {
17666
17703
  setRenameValue(project.name);
17667
17704
  setRenameOpen(true);
17668
17705
  },
17669
- badge: stripeEnabled ? /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.PlanBadge, { ...chunkTENWM7BH_cjs.planBadgeView(project), size: "md" }) : void 0
17706
+ badge: stripeEnabled ? /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.PlanBadge, { ...chunkQW6NCUR7_cjs.planBadgeView(project), size: "md" }) : void 0
17670
17707
  }
17671
17708
  ),
17672
17709
  hasBilling && project.subscription === "suspended" ? /* @__PURE__ */ jsxRuntime.jsx(SuspendedProjectRecovery, { project, onResubscribe: () => setPlanOpen(true) }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
17673
17710
  hasBilling && /* @__PURE__ */ jsxRuntime.jsx(ProjectBilling, { project, onChangePlan: () => setPlanOpen(true) }),
17674
- /* @__PURE__ */ jsxRuntime.jsxs(chunkC5APAFUY_cjs.ProjectDetailSection, { title: hasBilling ? "Collaborator limits" : "Subscription limits", children: [
17711
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkN3H3YAKY_cjs.ProjectDetailSection, { title: hasBilling ? "Collaborator limits" : "Subscription limits", children: [
17675
17712
  !hasBilling && /* @__PURE__ */ jsxRuntime.jsx(SubscriptionStatus, { project }),
17676
17713
  hasBilling && project.addons && /* @__PURE__ */ jsxRuntime.jsx(CollaboratorPlan, { project }),
17677
17714
  /* @__PURE__ */ jsxRuntime.jsxs(
@@ -17688,7 +17725,7 @@ function ProjectDetail({ projectExtId, storage }) {
17688
17725
  }
17689
17726
  )
17690
17727
  ] }),
17691
- /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.ProjectDetailSection, { title: "Usage", children: /* @__PURE__ */ jsxRuntime.jsx(
17728
+ /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.ProjectDetailSection, { title: "Usage", children: /* @__PURE__ */ jsxRuntime.jsx(
17692
17729
  ProjectUsageContent,
17693
17730
  {
17694
17731
  projectExtId: project.external_id,
@@ -17699,7 +17736,7 @@ function ProjectDetail({ projectExtId, storage }) {
17699
17736
  storage
17700
17737
  ] }),
17701
17738
  /* @__PURE__ */ jsxRuntime.jsx(
17702
- chunkC5APAFUY_cjs.RenameDialog,
17739
+ chunkN3H3YAKY_cjs.RenameDialog,
17703
17740
  {
17704
17741
  open: renameOpen,
17705
17742
  onClose: () => setRenameOpen(false),
@@ -17716,7 +17753,7 @@ function ProjectDetail({ projectExtId, storage }) {
17716
17753
  function useAutoRefreshPendingProjects() {
17717
17754
  const { data: projects } = react.useProjects();
17718
17755
  const refreshProject = react.useRefreshProject();
17719
- const currentUserExtId = chunkTENWM7BH_cjs.useSelfExtId();
17756
+ const currentUserExtId = chunkQW6NCUR7_cjs.useSelfExtId();
17720
17757
  const refreshedRef = react$1.useRef(/* @__PURE__ */ new Set());
17721
17758
  react$1.useEffect(() => {
17722
17759
  if (!projects || !currentUserExtId) return;
@@ -17747,7 +17784,7 @@ function ConnectedQuotaDialog({ info, onClose: close }) {
17747
17784
  if (quotaProjectId) void refetchProjects();
17748
17785
  }, [quotaProjectId, refetchProjects]);
17749
17786
  const project = info?.projectExtId ? projects?.find((p) => p.external_id === info.projectExtId) : void 0;
17750
- const addons = project && chunkTENWM7BH_cjs.isProProject(project) ? project.addons : null;
17787
+ const addons = project && chunkQW6NCUR7_cjs.isProProject(project) ? project.addons : null;
17751
17788
  const handleUpgrade = () => {
17752
17789
  if (info?.projectExtId) {
17753
17790
  requestProjectBillingFocus({ projectExtId: info.projectExtId, openUpgrade: true });
@@ -17783,8 +17820,8 @@ function ConnectedQuotaDialog({ info, onClose: close }) {
17783
17820
  /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {})
17784
17821
  );
17785
17822
  } else if (addons) {
17786
- const price = `${chunkTENWM7BH_cjs.formatMoney(addons.ai_block_price_ex_vat_pence, "gbp")} ex VAT`;
17787
- const capZero = chunkTENWM7BH_cjs.isAddonBudgetZero(addons);
17823
+ const price = `${chunkQW6NCUR7_cjs.formatMoney(addons.ai_block_price_ex_vat_pence, "gbp")} ex VAT`;
17824
+ const capZero = chunkQW6NCUR7_cjs.isAddonBudgetZero(addons);
17788
17825
  const addAiUsage = /* @__PURE__ */ jsxRuntime.jsxs(ui.Button, { onClick: handleAddAiUsage, "data-testid": "quota-add-ai-usage-button", children: [
17789
17826
  "Add ",
17790
17827
  react.formatGbp(addons.block_ai_gbp),
@@ -17792,7 +17829,7 @@ function ConnectedQuotaDialog({ info, onClose: close }) {
17792
17829
  price
17793
17830
  ] });
17794
17831
  if (capZero || addons.cap_reached) {
17795
- message = capZero ? chunkTENWM7BH_cjs.ZERO_BUDGET_MESSAGE : chunkTENWM7BH_cjs.CAP_REACHED_MESSAGE;
17832
+ message = capZero ? chunkQW6NCUR7_cjs.ZERO_BUDGET_MESSAGE : chunkQW6NCUR7_cjs.CAP_REACHED_MESSAGE;
17796
17833
  actions = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
17797
17834
  addAiUsage,
17798
17835
  /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { variant: "outline", onClick: handleRaiseCap, "data-testid": "quota-raise-cap-button", children: capZero ? "Set cap" : "Raise cap" })
@@ -17805,7 +17842,7 @@ function ConnectedQuotaDialog({ info, onClose: close }) {
17805
17842
  const addAiUsageProject = addAiUsageFor ? projects?.find((p) => p.external_id === addAiUsageFor) : void 0;
17806
17843
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
17807
17844
  /* @__PURE__ */ jsxRuntime.jsx(
17808
- chunkC5APAFUY_cjs.QuotaExceededDialogView,
17845
+ chunkN3H3YAKY_cjs.QuotaExceededDialogView,
17809
17846
  {
17810
17847
  open,
17811
17848
  onClose: close,
@@ -17909,6 +17946,11 @@ function createPaymentRequiredMiddleware(options) {
17909
17946
  }
17910
17947
  };
17911
17948
  }
17949
+ function ConnectedPricesPrefetch() {
17950
+ const { stripeEnabled } = chunkQW6NCUR7_cjs.useBillingSupport();
17951
+ react.useProducts({ enabled: stripeEnabled });
17952
+ return null;
17953
+ }
17912
17954
  function ConnectedAddContacts({
17913
17955
  onSuccess,
17914
17956
  onClose,
@@ -18036,7 +18078,7 @@ function ConnectedWelcomeInvitations({
18036
18078
  const pending = invitations.filter((row2) => row2.status === "pending").length;
18037
18079
  const unavailable = !history.data;
18038
18080
  const currency = history.data?.currency;
18039
- const money = (amount) => amount != null && currency ? chunkTENWM7BH_cjs.formatMoney(amount, currency) : "\u2014";
18081
+ const money = (amount) => amount != null && currency ? chunkQW6NCUR7_cjs.formatMoney(amount, currency) : "\u2014";
18040
18082
  const potential = invitations.reduce((sum, row2) => sum + row2.potential_bonus, 0);
18041
18083
  const earned = invitations.reduce((sum, row2) => sum + row2.earned_bonus, 0);
18042
18084
  const deleteInvitation = async (row2) => {
@@ -18176,8 +18218,9 @@ function ConnectedWelcomeDialog({
18176
18218
  const environment = chunkLIKDQBNJ_cjs.useBlocksEnvironment();
18177
18219
  const currentUser = react.useArbiSession().user;
18178
18220
  const { data: projects } = react.useProjects();
18179
- const balance = chunkTENWM7BH_cjs.useRewardBalance();
18180
- const { data: products } = react.useProducts({ enabled: open });
18221
+ const balance = chunkQW6NCUR7_cjs.useRewardBalance();
18222
+ const { stripeEnabled } = chunkQW6NCUR7_cjs.useBillingSupport();
18223
+ const { data: products, isPending: pricesPending } = react.useProducts({ enabled: stripeEnabled });
18181
18224
  const [showInvite, setShowInvite] = react$1.useState(false);
18182
18225
  const ownedProjects = react$1.useMemo(
18183
18226
  () => (projects ?? []).filter((p) => p.created_by === currentUser?.external_id),
@@ -18201,21 +18244,21 @@ function ConnectedWelcomeDialog({
18201
18244
  action: { label: "View subscriptions", onClick: () => environment.openDialog("welcome") }
18202
18245
  });
18203
18246
  };
18204
- const { monthly } = chunkTENWM7BH_cjs.findProPrices(products);
18205
- const monthlyExVat = chunkTENWM7BH_cjs.packPrice(monthly)?.amount_ex_vat ?? monthly?.amount_ex_vat;
18247
+ const { monthly } = chunkQW6NCUR7_cjs.findProPrices(products);
18248
+ const monthlyExVat = chunkQW6NCUR7_cjs.packPrice(monthly)?.amount_ex_vat ?? monthly?.amount_ex_vat;
18206
18249
  const firstName = currentUser?.given_name;
18207
18250
  const hasBalance = balance !== null;
18208
- const quotaItems = chunkTENWM7BH_cjs.getQuotaItems(selectedProject.quotas);
18209
- const resetTs = chunkTENWM7BH_cjs.aiUsageResetTimestamp(selectedProject);
18210
- const aiUsageHint = resetTs ? `resets ${chunkTENWM7BH_cjs.formatResetDate(resetTs)}` : void 0;
18251
+ const quotaItems = chunkQW6NCUR7_cjs.getQuotaItems(selectedProject.quotas);
18252
+ const resetTs = chunkQW6NCUR7_cjs.aiUsageResetTimestamp(selectedProject);
18253
+ const aiUsageHint = resetTs ? `resets ${chunkQW6NCUR7_cjs.formatResetDate(resetTs)}` : void 0;
18211
18254
  return /* @__PURE__ */ jsxRuntime.jsx(
18212
- chunkC5APAFUY_cjs.WelcomeDialog,
18255
+ chunkN3H3YAKY_cjs.WelcomeDialog,
18213
18256
  {
18214
18257
  open,
18215
18258
  onClose: dismiss,
18216
18259
  firstName,
18217
18260
  hasReward: hasBalance,
18218
- planBadge: /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.PlanBadge, { ...chunkTENWM7BH_cjs.planBadgeView(selectedProject), size: "md" }),
18261
+ planBadge: /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.PlanBadge, { ...chunkQW6NCUR7_cjs.planBadgeView(selectedProject), size: "md" }),
18219
18262
  quotas: quotaItems.map((q) => ({
18220
18263
  key: q.key,
18221
18264
  icon: q.icon,
@@ -18224,7 +18267,16 @@ function ConnectedWelcomeDialog({
18224
18267
  pct: q.pct,
18225
18268
  hint: q.key === "ai-usage" ? aiUsageHint : void 0
18226
18269
  })),
18227
- subscriptionChoices: /* @__PURE__ */ jsxRuntime.jsx(
18270
+ subscriptionChoices: !stripeEnabled ? /* @__PURE__ */ jsxRuntime.jsx(
18271
+ ui.Button,
18272
+ {
18273
+ type: "button",
18274
+ variant: "outline",
18275
+ onClick: dismiss,
18276
+ "data-testid": "welcome-modal-dismiss",
18277
+ children: "Continue"
18278
+ }
18279
+ ) : /* @__PURE__ */ jsxRuntime.jsx(
18228
18280
  SubscriptionPlans,
18229
18281
  {
18230
18282
  projectExtId: selectedProject.external_id,
@@ -18235,8 +18287,14 @@ function ConnectedWelcomeDialog({
18235
18287
  },
18236
18288
  selectedProject.external_id
18237
18289
  ),
18238
- proMonthlyPriceLabel: monthlyExVat != null ? chunkTENWM7BH_cjs.formatMoney(monthlyExVat, monthly?.currency ?? "gbp") : void 0,
18239
- referralOfferLabel: products?.[0]?.inviter_reward_amount != null ? chunkTENWM7BH_cjs.formatMoney(products[0].inviter_reward_amount, products[0].reward_currency) : "\u2014",
18290
+ proMonthlyPriceLabel: monthlyExVat != null ? chunkQW6NCUR7_cjs.formatMoney(monthlyExVat, monthly?.currency ?? "gbp") : void 0,
18291
+ referralOfferLabel: products?.[0]?.inviter_reward_amount != null ? chunkQW6NCUR7_cjs.formatMoney(products[0].inviter_reward_amount, products[0].reward_currency) : stripeEnabled && pricesPending ? /* @__PURE__ */ jsxRuntime.jsx(
18292
+ "span",
18293
+ {
18294
+ "aria-hidden": "true",
18295
+ className: "inline-block h-4 w-12 animate-pulse rounded bg-muted align-middle"
18296
+ }
18297
+ ) : "\u2014",
18240
18298
  onInvite: () => setShowInvite(true),
18241
18299
  inviteStep: {
18242
18300
  active: showInvite,
@@ -18250,8 +18308,8 @@ function ConnectedWelcomeDialog({
18250
18308
  }
18251
18309
  )
18252
18310
  },
18253
- rewardBalanceLabel: hasBalance ? chunkTENWM7BH_cjs.formatMoney(balance.amount, balance.currency) : void 0,
18254
- labels: { emptyBalance: chunkTENWM7BH_cjs.formatMoney(0, products?.[0]?.reward_currency ?? monthly?.currency) }
18311
+ rewardBalanceLabel: hasBalance ? chunkQW6NCUR7_cjs.formatMoney(balance.amount, balance.currency) : void 0,
18312
+ labels: { emptyBalance: chunkQW6NCUR7_cjs.formatMoney(0, products?.[0]?.reward_currency ?? monthly?.currency) }
18255
18313
  }
18256
18314
  );
18257
18315
  }
@@ -18314,7 +18372,7 @@ function WorkspaceCardsView({
18314
18372
  createDisabledReason,
18315
18373
  workspaceState
18316
18374
  }) {
18317
- const { stripeEnabled } = chunkTENWM7BH_cjs.useBillingSupport();
18375
+ const { stripeEnabled } = chunkQW6NCUR7_cjs.useBillingSupport();
18318
18376
  const { hrefFor: hrefFor2 } = chunkLIKDQBNJ_cjs.useBlocksEnvironment();
18319
18377
  const workspaceLabel = ui.getEntityLabel("WORKSPACE");
18320
18378
  const projectLabel = ui.getEntityLabel("PROJECT").toLowerCase();
@@ -18334,7 +18392,7 @@ function WorkspaceCardsView({
18334
18392
  }
18335
18393
  return /* @__PURE__ */ jsxRuntime.jsx(chunkWNAZM2YS_cjs.WorkspaceList, { testId: "workspace-cards-list", children: groups.map((group) => {
18336
18394
  const project = projects.find((p) => p.external_id === group.projectExtId);
18337
- const { breakdown, readout } = chunkTENWM7BH_cjs.projectGroupBilling(project, {
18395
+ const { breakdown, readout } = chunkQW6NCUR7_cjs.projectGroupBilling(project, {
18338
18396
  isOwned: group.isOwned,
18339
18397
  stripeEnabled
18340
18398
  });
@@ -18497,7 +18555,7 @@ function useConnectedWorkspaceList({
18497
18555
  [selfId, pinned]
18498
18556
  );
18499
18557
  const filtered = react$1.useMemo(
18500
- () => chunkC5APAFUY_cjs.applyTriStateFilters(workspaces, filterMap, attributesOf),
18558
+ () => chunkN3H3YAKY_cjs.applyTriStateFilters(workspaces, filterMap, attributesOf),
18501
18559
  [workspaces, filterMap, attributesOf]
18502
18560
  );
18503
18561
  const groups = react$1.useMemo(
@@ -18563,7 +18621,7 @@ function useConnectedWorkspaceList({
18563
18621
  };
18564
18622
  }
18565
18623
  var WorkspaceTableView = react$1.lazy(
18566
- () => import('../WorkspaceTableView-HMQ6PXUC.cjs').then((m) => ({ default: m.WorkspaceTableView }))
18624
+ () => import('../WorkspaceTableView-A2YTG4OQ.cjs').then((m) => ({ default: m.WorkspaceTableView }))
18567
18625
  );
18568
18626
  var WORKSPACES_TAB_ID = "workspaces";
18569
18627
  var renderMember = (user, size) => /* @__PURE__ */ jsxRuntime.jsx(chunkJZQ47OW5_cjs.ConnectedUserEntity, { user, size, variant: "icon" });
@@ -18623,7 +18681,7 @@ function ConnectedWorkspaceList({
18623
18681
  }
18624
18682
  );
18625
18683
  }
18626
- if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(chunk5Z22EXHJ_cjs.LoadingIndicator, { message: "Loading workspaces..." });
18684
+ if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(chunk2EY52GDM_cjs.LoadingIndicator, { message: "Loading workspaces..." });
18627
18685
  if (list.error) {
18628
18686
  return /* @__PURE__ */ jsxRuntime.jsx(
18629
18687
  chunkC6RJQQLG_cjs.HomeLoadError,
@@ -18696,7 +18754,7 @@ function ConnectedWorkspaceList({
18696
18754
  workspaceState
18697
18755
  }
18698
18756
  ) })
18699
- ) : /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunk5Z22EXHJ_cjs.LoadingIndicator, { message: "Loading grid..." }), children: /* @__PURE__ */ jsxRuntime.jsx(chunkC6RJQQLG_cjs.HomeCenteredColumn, { children: /* @__PURE__ */ jsxRuntime.jsx(
18757
+ ) : /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunk2EY52GDM_cjs.LoadingIndicator, { message: "Loading grid..." }), children: /* @__PURE__ */ jsxRuntime.jsx(chunkC6RJQQLG_cjs.HomeCenteredColumn, { children: /* @__PURE__ */ jsxRuntime.jsx(
18700
18758
  WorkspaceTableView,
18701
18759
  {
18702
18760
  list,
@@ -18741,7 +18799,7 @@ function ConnectedProjectsPanel({
18741
18799
  const { data: projects } = react.useProjects();
18742
18800
  const denial = react.useProjectCreationDenial();
18743
18801
  const { userId } = chunkYKOPKLYP_cjs.useConnectedWorkspace();
18744
- const { stripeEnabled } = chunkTENWM7BH_cjs.useBillingSupport();
18802
+ const { stripeEnabled } = chunkQW6NCUR7_cjs.useBillingSupport();
18745
18803
  const billingPortal = useOpenBillingPortal();
18746
18804
  const [newProjectOpen, setNewProjectOpen] = react$1.useState(false);
18747
18805
  const [upgradeOpen, setUpgradeOpen] = react$1.useState(false);
@@ -18771,15 +18829,15 @@ function ConnectedProjectsPanel({
18771
18829
  const paidProject = projects?.find(isPaid);
18772
18830
  const personalProject = projects?.find((p) => p.is_personal && p.created_by === userId);
18773
18831
  const upgradeFirst = denial?.refusal === "pro_required" && !!personalProject;
18774
- const panel = /* @__PURE__ */ jsxRuntime.jsxs(chunkC5APAFUY_cjs.PanelFrame, { className, testId: "projects-panel", children: [
18775
- /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.DraggableHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(
18832
+ const panel = /* @__PURE__ */ jsxRuntime.jsxs(chunkN3H3YAKY_cjs.PanelFrame, { className, testId: "projects-panel", children: [
18833
+ /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.DraggableHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(
18776
18834
  chunkSJSGSHIT_cjs.TabHeader,
18777
18835
  {
18778
18836
  tabs: headerTabs,
18779
18837
  activeTabId: activeProjectId ?? PROJECTS_BASE_TAB_ID,
18780
18838
  onTabChange: (id) => tabs.onSelect(id === PROJECTS_BASE_TAB_ID ? null : id),
18781
18839
  afterTabs: (isCompact) => /* @__PURE__ */ jsxRuntime.jsx(
18782
- chunkC5APAFUY_cjs.PanelAddButton,
18840
+ chunkN3H3YAKY_cjs.PanelAddButton,
18783
18841
  {
18784
18842
  label: `New ${ui.entityNoun("PROJECT")}`,
18785
18843
  onClick: () => upgradeFirst ? setUpgradeOpen(true) : setNewProjectOpen(true),
@@ -18795,15 +18853,15 @@ function ConnectedProjectsPanel({
18795
18853
  compactBreakpoint: 360
18796
18854
  }
18797
18855
  ) }),
18798
- /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.PanelFrameBody, { children: activeProjectId ? /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.PanelScroll, { children: /* @__PURE__ */ jsxRuntime.jsx(
18856
+ /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.PanelFrameBody, { children: activeProjectId ? /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.PanelScroll, { children: /* @__PURE__ */ jsxRuntime.jsx(
18799
18857
  ProjectDetail,
18800
18858
  {
18801
18859
  projectExtId: activeProjectId,
18802
18860
  storage: /* @__PURE__ */ jsxRuntime.jsx(ConnectedProjectStorage, { projectExtId: activeProjectId })
18803
18861
  }
18804
- ) }) : /* @__PURE__ */ jsxRuntime.jsxs(chunkC5APAFUY_cjs.PanelScroll, { variant: "padded", children: [
18862
+ ) }) : /* @__PURE__ */ jsxRuntime.jsxs(chunkN3H3YAKY_cjs.PanelScroll, { variant: "padded", children: [
18805
18863
  /* @__PURE__ */ jsxRuntime.jsx(ProjectsTable, {}),
18806
- stripeEnabled && paidProject && /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.PanelActionsRow, { children: /* @__PURE__ */ jsxRuntime.jsxs(
18864
+ stripeEnabled && paidProject && /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.PanelActionsRow, { children: /* @__PURE__ */ jsxRuntime.jsxs(
18807
18865
  ui.Button,
18808
18866
  {
18809
18867
  onClick: () => billingPortal.open(paidProject.external_id),
@@ -18898,7 +18956,7 @@ function ConnectedProjectsListPage({
18898
18956
  };
18899
18957
  const { openProject } = chunkLIKDQBNJ_cjs.useBlocksEnvironment();
18900
18958
  const [search, setSearch] = react$1.useState("");
18901
- const { projects, isLoading } = chunkCESE7GLT_cjs.useProjectSummaries();
18959
+ const { projects, isLoading } = chunkRGSFPWG2_cjs.useProjectSummaries();
18902
18960
  const rows = react$1.useMemo(() => {
18903
18961
  const q = search.trim().toLowerCase();
18904
18962
  if (!q) return projects;
@@ -18969,7 +19027,7 @@ function ConnectedProjectsListPage({
18969
19027
  }
18970
19028
  ),
18971
19029
  /* @__PURE__ */ jsxRuntime.jsx(
18972
- chunk5Z22EXHJ_cjs.Toolbar,
19030
+ chunk2EY52GDM_cjs.Toolbar,
18973
19031
  {
18974
19032
  search,
18975
19033
  onSearch: setSearch,
@@ -19031,7 +19089,7 @@ function ProjectDetailsForm({
19031
19089
  const labels = { ...DEFAULT_PROJECT_DETAILS_LABELS, ...given };
19032
19090
  const { notify: notify19 } = chunkLIKDQBNJ_cjs.useBlocksEnvironment();
19033
19091
  const update = react.useUpdateProjectFields();
19034
- const workspace = chunkCESE7GLT_cjs.primaryProjectWorkspace(project);
19092
+ const workspace = chunkRGSFPWG2_cjs.primaryProjectWorkspace(project);
19035
19093
  const { data: members = [] } = react.useWorkspaceUsers(workspace?.id);
19036
19094
  const people = members.filter((m) => !m.user.external_id.startsWith("agt-"));
19037
19095
  const currency = project.budget?.currency ?? "GBP";
@@ -19156,7 +19214,7 @@ var COMPACT_BELOW = 132;
19156
19214
  var NO_DOCUMENTS = [];
19157
19215
  function useFilesWorkspace() {
19158
19216
  const { workspaceId, userId, live } = chunkYKOPKLYP_cjs.useConnectedWorkspace();
19159
- const { members, role } = chunkFABKMTAI_cjs.useConnectedWorkspaceRole();
19217
+ const { members, role } = chunkFRRF2OQ7_cjs.useConnectedWorkspaceRole();
19160
19218
  const { data: workspaces } = react.useWorkspaces({ enabled: live });
19161
19219
  const workspaceName = workspaces?.find((w) => w.external_id === workspaceId)?.name;
19162
19220
  return {
@@ -19916,7 +19974,7 @@ function ProjectChronology({
19916
19974
  })),
19917
19975
  [facts]
19918
19976
  );
19919
- return /* @__PURE__ */ jsxRuntime.jsx(ui.Card, { className: "h-[min(70dvh,640px)] overflow-hidden", "data-testid": testId, children: isLoading ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "p-4 text-sm text-muted-foreground", children: loading }) : /* @__PURE__ */ jsxRuntime.jsx(chunk3Y75LUCT_cjs.FactsGanttPane, { items, testId: `${testId}-gantt`, labels: { ganttEmpty: empty } }) });
19977
+ return /* @__PURE__ */ jsxRuntime.jsx(ui.Card, { className: "h-[min(70dvh,640px)] overflow-hidden", "data-testid": testId, children: isLoading ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "p-4 text-sm text-muted-foreground", children: loading }) : /* @__PURE__ */ jsxRuntime.jsx(chunkHZG4GRDA_cjs.FactsGanttPane, { items, testId: `${testId}-gantt`, labels: { ganttEmpty: empty } }) });
19920
19978
  }
19921
19979
  function ProjectThreads({
19922
19980
  projectId,
@@ -20093,11 +20151,11 @@ function ConnectedProjectPage({
20093
20151
  figures: { ...DEFAULT_PROJECT_PAGE_LABELS.figures, ...given?.figures },
20094
20152
  threads: { ...DEFAULT_PROJECT_PAGE_LABELS.threads, ...given?.threads }
20095
20153
  };
20096
- const { project, usage, isLoading } = chunkCESE7GLT_cjs.useProjectSummary(projectId);
20154
+ const { project, usage, isLoading } = chunkRGSFPWG2_cjs.useProjectSummary(projectId);
20097
20155
  const { workspaceId } = chunkYKOPKLYP_cjs.useConnectedWorkspace();
20098
20156
  const { notify: notify19 } = chunkLIKDQBNJ_cjs.useBlocksEnvironment();
20099
20157
  const selectWorkspace = chunkORQXGMCC_cjs.useSelectWorkspace();
20100
- const workspace = project ? chunkCESE7GLT_cjs.primaryProjectWorkspace(project) : void 0;
20158
+ const workspace = project ? chunkRGSFPWG2_cjs.primaryProjectWorkspace(project) : void 0;
20101
20159
  const open = !!workspace && workspace.id === workspaceId;
20102
20160
  react$1.useEffect(() => {
20103
20161
  if (!workspace || workspace.id === workspaceId) return;
@@ -21126,7 +21184,7 @@ function ChatAttachmentList({ files, error }) {
21126
21184
  ] });
21127
21185
  }
21128
21186
  function MessageText({ message }) {
21129
- const workspaceId = chunkSK6LFIU2_cjs.useDocumentWorkspace();
21187
+ const workspaceId = chunkTIBTTITZ_cjs.useDocumentWorkspace();
21130
21188
  const selectedWorkspaceId = react.useArbiSessionState((s) => s.workspaceId);
21131
21189
  const documentIds = react$1.useMemo(
21132
21190
  () => workspaceId === selectedWorkspaceId ? Array.from(
@@ -21141,11 +21199,11 @@ function MessageText({ message }) {
21141
21199
  );
21142
21200
  const thumbnails = react.useDocumentThumbnails(documentIds);
21143
21201
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
21144
- /* @__PURE__ */ jsxRuntime.jsx(chunkSK6LFIU2_cjs.ConnectedMarkdown, { children: message }),
21202
+ /* @__PURE__ */ jsxRuntime.jsx(chunkTIBTTITZ_cjs.ConnectedMarkdown, { children: message }),
21145
21203
  workspaceId && documentIds.map((docId) => {
21146
21204
  const thumbnail = thumbnails.get(docId);
21147
21205
  return thumbnail ? /* @__PURE__ */ jsxRuntime.jsx(
21148
- chunkSK6LFIU2_cjs.WorkspaceDocumentReference,
21206
+ chunkTIBTTITZ_cjs.WorkspaceDocumentReference,
21149
21207
  {
21150
21208
  workspaceId,
21151
21209
  docId,
@@ -21166,7 +21224,7 @@ function MessageText({ message }) {
21166
21224
  }
21167
21225
  function ConnectedChatMessageBody({ text, workspaceId }) {
21168
21226
  const documentWorkspace = workspaceId ?? Array.from(text.matchAll(/\/(wrk-[a-zA-Z0-9]{8})\/con-[a-zA-Z0-9]{8}/g)).at(-1)?.[1] ?? null;
21169
- return /* @__PURE__ */ jsxRuntime.jsx(chunkSK6LFIU2_cjs.DocumentWorkspaceContext.Provider, { value: documentWorkspace, children: /* @__PURE__ */ jsxRuntime.jsx(MessageText, { message: text }) });
21227
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkTIBTTITZ_cjs.DocumentWorkspaceContext.Provider, { value: documentWorkspace, children: /* @__PURE__ */ jsxRuntime.jsx(MessageText, { message: text }) });
21170
21228
  }
21171
21229
  function renderMessengerUser(user, variant) {
21172
21230
  switch (variant) {
@@ -22481,7 +22539,7 @@ function ConnectedMessengerThread({
22481
22539
  const activeIsSelf = !!activePeer && activePeer.external_id === meId;
22482
22540
  const groupTitle = active?.title ?? null;
22483
22541
  const presence = activePeer ? host.presenceOf?.(activePeer.external_id) : void 0;
22484
- return /* @__PURE__ */ jsxRuntime.jsxs(chunkC5APAFUY_cjs.PanelFrame, { testId, className, children: [
22542
+ return /* @__PURE__ */ jsxRuntime.jsxs(chunkN3H3YAKY_cjs.PanelFrame, { testId, className, children: [
22485
22543
  children,
22486
22544
  groupChat ? /* @__PURE__ */ jsxRuntime.jsx(
22487
22545
  chunkMOIZ2R5X_cjs.DmThreadHeader,
@@ -22531,7 +22589,7 @@ function ConnectedMessengerThread({
22531
22589
  groupChat.external_id
22532
22590
  ) : null,
22533
22591
  picker.element,
22534
- /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.PanelFrameBody, { className: "flex flex-col overflow-visible", children: active ? /* @__PURE__ */ jsxRuntime.jsx(ConnectedChatThread, { chat: active.chat, peer: activePeer, host }, activeId) : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "p-4 text-sm text-muted-foreground", children: isLoading ? "Loading conversation\u2026" : "This conversation is no longer available." }) })
22592
+ /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.PanelFrameBody, { className: "flex flex-col overflow-visible", children: active ? /* @__PURE__ */ jsxRuntime.jsx(ConnectedChatThread, { chat: active.chat, peer: activePeer, host }, activeId) : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "p-4 text-sm text-muted-foreground", children: isLoading ? "Loading conversation\u2026" : "This conversation is no longer available." }) })
22535
22593
  ] });
22536
22594
  }
22537
22595
  function ConnectedMessenger({
@@ -22553,7 +22611,7 @@ function ConnectedMessenger({
22553
22611
  testId: "dm-messenger"
22554
22612
  }
22555
22613
  );
22556
- return /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.PanelFrame, { testId: "dm-messenger", children: /* @__PURE__ */ jsxRuntime.jsx(
22614
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.PanelFrame, { testId: "dm-messenger", children: /* @__PURE__ */ jsxRuntime.jsx(
22557
22615
  ConnectedMessengerList,
22558
22616
  {
22559
22617
  activeId: null,
@@ -22769,7 +22827,7 @@ function ConnectedContactsPanel({
22769
22827
  ];
22770
22828
  }, [contactCount, hasActiveFilters, tabActions, dmHeaderTabs]);
22771
22829
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: ui.cn("flex flex-col h-full", className), children: [
22772
- /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.DraggableHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(
22830
+ /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.DraggableHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(
22773
22831
  chunkSJSGSHIT_cjs.TabHeader,
22774
22832
  {
22775
22833
  tabs,
@@ -22804,7 +22862,7 @@ function ConnectedContactsPanel({
22804
22862
  function ConnectedConfigForm({ availableModels, ...rest }) {
22805
22863
  const hasModels = !!availableModels && availableModels.length > 0;
22806
22864
  const renderModelSelect = react$1.useCallback(
22807
- ({ value, onChange }) => /* @__PURE__ */ jsxRuntime.jsx(chunkC4Z6LOLA_cjs.ConnectedModelSelector, { value, onValueChange: onChange, className: "w-full" }),
22865
+ ({ value, onChange }) => /* @__PURE__ */ jsxRuntime.jsx(chunkIZNSTFAT_cjs.ConnectedModelSelector, { value, onValueChange: onChange, className: "w-full" }),
22808
22866
  []
22809
22867
  );
22810
22868
  return /* @__PURE__ */ jsxRuntime.jsx(chunkR5NTEW4L_cjs.ConfigForm, { ...rest, renderModelSelect: hasModels ? renderModelSelect : void 0 });
@@ -23036,7 +23094,7 @@ function ConnectedInviteContactsDialog({
23036
23094
  ConnectedAddContacts,
23037
23095
  {
23038
23096
  onClose: handleClose,
23039
- rewardAmount: offer ? chunkTENWM7BH_cjs.formatMoney(offer.amount, offer.currency) : void 0
23097
+ rewardAmount: offer ? chunkQW6NCUR7_cjs.formatMoney(offer.amount, offer.currency) : void 0
23040
23098
  }
23041
23099
  ),
23042
23100
  isDeveloper && /* @__PURE__ */ jsxRuntime.jsxs(
@@ -24409,7 +24467,7 @@ function ConnectedRemoteControlConsent() {
24409
24467
  }
24410
24468
  function ConsentPrompt() {
24411
24469
  const pending = react.useRemoteControl((s) => s.pending);
24412
- const remote = chunkC4Z6LOLA_cjs.useRemoteControlActions();
24470
+ const remote = chunkIZNSTFAT_cjs.useRemoteControlActions();
24413
24471
  const onceRef = react$1.useRef(null);
24414
24472
  chunkNZNBJF3M_cjs.useMountedSurface("consent");
24415
24473
  const handleOpenChange = (next) => {
@@ -24502,7 +24560,7 @@ function Indicator() {
24502
24560
  const enabled = react.useRemoteControl((s) => s.enabled);
24503
24561
  const sharing = react.useRemoteControl((s) => !!s.sharing);
24504
24562
  const controllingAgent = react.useRemoteControl((s) => s.controllingAgent);
24505
- const remote = chunkC4Z6LOLA_cjs.useRemoteControlActions();
24563
+ const remote = chunkIZNSTFAT_cjs.useRemoteControlActions();
24506
24564
  if (!enabled && !controllingAgent) return null;
24507
24565
  const isActive = controllingAgent !== null;
24508
24566
  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";
@@ -25069,7 +25127,7 @@ function useDocumentFilters({
25069
25127
  [documentFilters]
25070
25128
  );
25071
25129
  const baseFilteredDocuments = react$1.useMemo(
25072
- () => chunkC5APAFUY_cjs.applyInvertedIndexFilter(documents, documentFilters, invertedIndex, getDocId),
25130
+ () => chunkN3H3YAKY_cjs.applyInvertedIndexFilter(documents, documentFilters, invertedIndex, getDocId),
25073
25131
  [documents, documentFilters, invertedIndex]
25074
25132
  );
25075
25133
  const filteredDocuments = react$1.useMemo(() => {
@@ -26921,7 +26979,7 @@ function MailComposerForm({
26921
26979
  "data-testid": "mail-word-body",
26922
26980
  onSubmit: (event) => event.stopPropagation(),
26923
26981
  children: /* @__PURE__ */ jsxRuntime.jsx(
26924
- chunkL62EU3TQ_cjs.NativeDocxEditor,
26982
+ chunkA53YMUOX_cjs.NativeDocxEditor,
26925
26983
  {
26926
26984
  compact: true,
26927
26985
  adapter: wordBody.adapter,
@@ -28393,7 +28451,7 @@ function ConnectedSecureMailClaimPage({
28393
28451
  }) {
28394
28452
  const authenticated = react.useArbiSession().status === "signed-in";
28395
28453
  const { openMail } = chunkLIKDQBNJ_cjs.useBlocksEnvironment();
28396
- const { loading } = chunkC4Z6LOLA_cjs.useAuthPages();
28454
+ const { loading } = chunkIZNSTFAT_cjs.useAuthPages();
28397
28455
  const claim = react.useClaimSecureMail();
28398
28456
  const [, setFirstLoginWorkspaces] = react.useTransientView(FIRST_LOGIN_WORKSPACES_VIEW, null);
28399
28457
  const [failure, setFailure] = react$1.useState(null);
@@ -28433,7 +28491,7 @@ function ConnectedSecureMailClaimPage({
28433
28491
  }
28434
28492
  })();
28435
28493
  }, [authenticated, claimId, key]);
28436
- if (!error) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: loading ?? /* @__PURE__ */ jsxRuntime.jsx(chunk5Z22EXHJ_cjs.LoadingIndicator, { variant: "splash" }) });
28494
+ if (!error) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: loading ?? /* @__PURE__ */ jsxRuntime.jsx(chunk2EY52GDM_cjs.LoadingIndicator, { variant: "splash" }) });
28437
28495
  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: [
28438
28496
  /* @__PURE__ */ jsxRuntime.jsx("p", { role: "alert", className: "mb-4 text-sm text-destructive", children: error }),
28439
28497
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -34563,7 +34621,7 @@ function useBatchCompleteToasts() {
34563
34621
  }
34564
34622
  }, AI_FIELDS_NOTICE_WINDOW_MS);
34565
34623
  } else if (message.batch_type === "entity_extract") {
34566
- say(`${chunk5Z22EXHJ_cjs.entitiesPhrase()} extracted from ${chunk5Z22EXHJ_cjs.documentCount(docIds.length)}`, "success", {
34624
+ say(`${chunk2EY52GDM_cjs.entitiesPhrase()} extracted from ${chunk2EY52GDM_cjs.documentCount(docIds.length)}`, "success", {
34567
34625
  ...openTags && { action: { label: "View", onClick: openTags } }
34568
34626
  });
34569
34627
  } else if (message.batch_type === "upload") {
@@ -35375,13 +35433,13 @@ var TABLET_TABLE_BELOW = 860;
35375
35433
  var TABLET_VIEWPORT_BELOW = 1100;
35376
35434
  var NO_CONVERSATION_DOCUMENTS2 = [];
35377
35435
  var DocumentReviewCard = react$1.lazy(
35378
- () => import('../DocumentReviewCard-QPFP7BV7.cjs').then((module) => ({ default: module.DocumentReviewCard }))
35436
+ () => import('../DocumentReviewCard-ENCPTGJE.cjs').then((module) => ({ default: module.DocumentReviewCard }))
35379
35437
  );
35380
35438
  var FilesViewerDialog = react$1.lazy(
35381
- () => import('../FilesViewerDialog-KBDKIQGD.cjs').then((module) => ({ default: module.FilesViewerDialog }))
35439
+ () => import('../FilesViewerDialog-OFUBS5VA.cjs').then((module) => ({ default: module.FilesViewerDialog }))
35382
35440
  );
35383
35441
  function defaultReviewCard(props) {
35384
- return /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunk5Z22EXHJ_cjs.LoadingIndicator, { message: "Loading document viewer..." }), children: /* @__PURE__ */ jsxRuntime.jsx(DocumentReviewCard, { ...props }, `navigator-${props.currentDocument.external_id}`) });
35442
+ return /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunk2EY52GDM_cjs.LoadingIndicator, { message: "Loading document viewer..." }), children: /* @__PURE__ */ jsxRuntime.jsx(DocumentReviewCard, { ...props }, `navigator-${props.currentDocument.external_id}`) });
35385
35443
  }
35386
35444
  function ConnectedFilesPage({
35387
35445
  isModal = false,
@@ -35424,7 +35482,7 @@ function ConnectedFilesPage({
35424
35482
  const deleteDocuments = react.useDeleteDocuments();
35425
35483
  const isDocumentsPending = isLoading && documents.length === 0;
35426
35484
  const { workspaceId, userId, live } = chunkYKOPKLYP_cjs.useConnectedWorkspace();
35427
- const { role, members } = chunkFABKMTAI_cjs.useConnectedWorkspaceRole();
35485
+ const { role, members } = chunkFRRF2OQ7_cjs.useConnectedWorkspaceRole();
35428
35486
  const { data: workspaces } = react.useWorkspaces({ enabled: live });
35429
35487
  const workspace = workspaces?.find((w) => w.external_id === workspaceId);
35430
35488
  const workspaceName = workspace?.name;
@@ -35959,7 +36017,7 @@ function ConnectedFilesPage({
35959
36017
  viewMode === "grid" ? (
35960
36018
  // ‹ n / N › over the table's displayed rows; a step opens the document.
35961
36019
  /* @__PURE__ */ jsxRuntime.jsx(
35962
- chunk5Z22EXHJ_cjs.GridRowNavigator,
36020
+ chunk2EY52GDM_cjs.GridRowNavigator,
35963
36021
  {
35964
36022
  gridApi,
35965
36023
  selectedId: viewingDocumentId ?? selectedDocumentIds[0] ?? null,
@@ -37152,7 +37210,7 @@ function DeveloperFooter({
37152
37210
  }, [configVersions, configToLoad, parentMessage?.config_ext_id]);
37153
37211
  const hasLoadedConfig = !!loadedConfigId && loadedConfigId !== "default";
37154
37212
  return /* @__PURE__ */ jsxRuntime.jsx(
37155
- chunkC5APAFUY_cjs.ConfigSwitcherBar,
37213
+ chunkN3H3YAKY_cjs.ConfigSwitcherBar,
37156
37214
  {
37157
37215
  options,
37158
37216
  value: loadedConfigId || "default",
@@ -37421,8 +37479,8 @@ function ConnectedDeveloperConfig({ modeSwitcher } = {}) {
37421
37479
  handleDeleteConfig,
37422
37480
  handleLoadConfig
37423
37481
  } = useDeveloperConfig();
37424
- return /* @__PURE__ */ jsxRuntime.jsxs(chunkC5APAFUY_cjs.PanelFrame, { testId: "developer-config", children: [
37425
- /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.DraggableHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(
37482
+ return /* @__PURE__ */ jsxRuntime.jsxs(chunkN3H3YAKY_cjs.PanelFrame, { testId: "developer-config", children: [
37483
+ /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.DraggableHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(
37426
37484
  chunkSJSGSHIT_cjs.TabHeader,
37427
37485
  {
37428
37486
  tabs: [{ id: "config", label: "Developer Config", icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Code2, { className: "size-4" }) }],
@@ -37432,7 +37490,7 @@ function ConnectedDeveloperConfig({ modeSwitcher } = {}) {
37432
37490
  rightContent: modeSwitcher
37433
37491
  }
37434
37492
  ) }),
37435
- /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.PanelFrameBody, { className: "overflow-auto p-4", children: configSchema ? /* @__PURE__ */ jsxRuntime.jsx(
37493
+ /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.PanelFrameBody, { className: "overflow-auto p-4", children: configSchema ? /* @__PURE__ */ jsxRuntime.jsx(
37436
37494
  ConnectedConfigForm,
37437
37495
  {
37438
37496
  schema: configSchema,
@@ -37440,7 +37498,7 @@ function ConnectedDeveloperConfig({ modeSwitcher } = {}) {
37440
37498
  onChange: handleConfigChange,
37441
37499
  availableModels: availableModels?.models
37442
37500
  }
37443
- ) : /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.PanelNote, { children: "Loading configuration schema..." }) }),
37501
+ ) : /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.PanelNote, { children: "Loading configuration schema..." }) }),
37444
37502
  /* @__PURE__ */ jsxRuntime.jsx(
37445
37503
  DeveloperFooter,
37446
37504
  {
@@ -37986,7 +38044,7 @@ function ConnectedAccountCluster({
37986
38044
  }
37987
38045
  );
37988
38046
  }
37989
- var gbp3 = (pence) => chunkTENWM7BH_cjs.formatMoney(pence, "gbp");
38047
+ var gbp3 = (pence) => chunkQW6NCUR7_cjs.formatMoney(pence, "gbp");
37990
38048
  function addonArrivalMessage(addons, added) {
37991
38049
  const parts = [];
37992
38050
  if (added.ai > 0) parts.push(`${react.formatGbp(added.ai * addons.block_ai_gbp)} of AI usage`);
@@ -38435,10 +38493,10 @@ var FreshChatModel = () => (useFreshChatModel(), null);
38435
38493
  var WorkspaceOpenMetrics = ({ measure }) => (useWorkspaceOpenMetrics(measure), null);
38436
38494
  var Prefetch = ({ loaders }) => (usePrefetchChunks(loaders), null);
38437
38495
  function GuidedRuns() {
38438
- chunkC4Z6LOLA_cjs.useRemoteControlSessionReset();
38496
+ chunkIZNSTFAT_cjs.useRemoteControlSessionReset();
38439
38497
  const { cursorMark } = chunkNZNBJF3M_cjs.useGuidedRuns();
38440
38498
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
38441
- /* @__PURE__ */ jsxRuntime.jsx(chunk5Z22EXHJ_cjs.GuidedCursor, { markSrc: cursorMark }),
38499
+ /* @__PURE__ */ jsxRuntime.jsx(chunk2EY52GDM_cjs.GuidedCursor, { markSrc: cursorMark }),
38442
38500
  /* @__PURE__ */ jsxRuntime.jsx(ConnectedRemoteControlConsent, {})
38443
38501
  ] });
38444
38502
  }
@@ -38449,7 +38507,7 @@ function ConnectedAppRuntime({
38449
38507
  prefetch
38450
38508
  }) {
38451
38509
  const on = (effect) => effects[effect] !== false;
38452
- const { stripeEnabled } = chunkTENWM7BH_cjs.useBillingSupport();
38510
+ const { stripeEnabled } = chunkQW6NCUR7_cjs.useBillingSupport();
38453
38511
  const welcomeDialog = on("welcomeDialog") && stripeEnabled;
38454
38512
  const resolveFirstLogin = () => {
38455
38513
  if (welcomeDialog) skipWelcomeDialogThisSession();
@@ -38472,7 +38530,7 @@ function ConnectedAppRuntime({
38472
38530
  on("pageTransition") && /* @__PURE__ */ jsxRuntime.jsx(PageTransition, {}),
38473
38531
  on("freshChatModel") && /* @__PURE__ */ jsxRuntime.jsx(FreshChatModel, {}),
38474
38532
  on("workspaceOpenMetrics") && measure && /* @__PURE__ */ jsxRuntime.jsx(WorkspaceOpenMetrics, { measure }),
38475
- on("prefetch") && /* @__PURE__ */ jsxRuntime.jsx(Prefetch, { loaders: [...prefetch ?? [], ...chunk5Z22EXHJ_cjs.KIT_CHUNK_LOADERS] }),
38533
+ on("prefetch") && /* @__PURE__ */ jsxRuntime.jsx(Prefetch, { loaders: [...prefetch ?? [], ...chunk2EY52GDM_cjs.KIT_CHUNK_LOADERS] }),
38476
38534
  on("guidedRuns") && /* @__PURE__ */ jsxRuntime.jsx(GuidedRuns, {})
38477
38535
  ] });
38478
38536
  }
@@ -38937,7 +38995,7 @@ async function renderAnnotatedScreenshot(image, marks, text) {
38937
38995
  )
38938
38996
  );
38939
38997
  }
38940
- return chunkC4Z6LOLA_cjs.canvasToBlob(canvas);
38998
+ return chunkIZNSTFAT_cjs.canvasToBlob(canvas);
38941
38999
  }
38942
39000
  function ReportProblemDialog({
38943
39001
  open,
@@ -39231,7 +39289,7 @@ function ReportProblemDialog({
39231
39289
  hidden: ticketId !== null,
39232
39290
  children: [
39233
39291
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground", children: "No screenshot attached." }),
39234
- chunkC4Z6LOLA_cjs.canCaptureScreen() ? /* @__PURE__ */ jsxRuntime.jsxs(ui.Button, { size: "sm", variant: "outline", onClick: onRetake, "data-testid": "report-retake", children: [
39292
+ chunkIZNSTFAT_cjs.canCaptureScreen() ? /* @__PURE__ */ jsxRuntime.jsxs(ui.Button, { size: "sm", variant: "outline", onClick: onRetake, "data-testid": "report-retake", children: [
39235
39293
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Camera, { className: "mr-1 size-4" }),
39236
39294
  " Take a screenshot"
39237
39295
  ] }) : /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "inline-flex cursor-pointer items-center gap-1 font-medium text-primary", children: [
@@ -39295,10 +39353,10 @@ function useReportProblem(options = {}) {
39295
39353
  setPhase("capturing");
39296
39354
  await new Promise((resolve) => window.setTimeout(resolve, 200));
39297
39355
  try {
39298
- setFrame(await chunkC4Z6LOLA_cjs.captureCurrentTab());
39356
+ setFrame(await chunkIZNSTFAT_cjs.captureCurrentTab());
39299
39357
  setImage(null);
39300
39358
  } catch (error) {
39301
- const code = error instanceof chunkC4Z6LOLA_cjs.ScreenCaptureError ? error.code : "failed";
39359
+ const code = error instanceof chunkIZNSTFAT_cjs.ScreenCaptureError ? error.code : "failed";
39302
39360
  if (code === "failed") {
39303
39361
  notify19("Couldn't capture the screen. You can still describe the problem.", "error");
39304
39362
  }
@@ -39483,8 +39541,8 @@ function ManualSubscriptionAdjustments({
39483
39541
  );
39484
39542
  const intervalRenewal = billingChanged && !kinds.some((kind) => draft[kind] !== scheduled[kind]) ? intervalQuote.data?.next_renewal_pence : void 0;
39485
39543
  const taxed = additions.some((k) => (quotes[k].data?.now.tax_pence ?? 0) > 0);
39486
- const money = (pence) => chunkTENWM7BH_cjs.formatMoney(pence, project.currency ?? "gbp");
39487
- const aiResetAt = chunkTENWM7BH_cjs.aiUsageResetTimestamp(project);
39544
+ const money = (pence) => chunkQW6NCUR7_cjs.formatMoney(pence, project.currency ?? "gbp");
39545
+ const aiResetAt = chunkQW6NCUR7_cjs.aiUsageResetTimestamp(project);
39488
39546
  const aiResetDays = aiResetAt ? Math.max(0, Math.ceil((aiResetAt * 1e3 - Date.now()) / 864e5)) : null;
39489
39547
  const renewalAt = project.addons?.period_end ?? project.current_period_end;
39490
39548
  const renewalDays = renewalAt ? Math.max(0, Math.ceil((renewalAt * 1e3 - Date.now()) / 864e5)) : null;
@@ -39504,7 +39562,7 @@ function ManualSubscriptionAdjustments({
39504
39562
  const preview = { ...project.quotas };
39505
39563
  if (editing && addons) {
39506
39564
  const size = (kind, count2) => {
39507
- const parts = chunkTENWM7BH_cjs.splitBlocks(kind, count2, addons);
39565
+ const parts = chunkQW6NCUR7_cjs.splitBlocks(kind, count2, addons);
39508
39566
  return parts.legacy * (kind === "ai_usage" ? addons.legacy_block_ai_gbp : addons.legacy_block_storage_gb) + parts.current * (kind === "ai_usage" ? addons.block_ai_gbp : addons.block_storage_gb);
39509
39567
  };
39510
39568
  preview.ai_usage = {
@@ -39520,7 +39578,7 @@ function ManualSubscriptionAdjustments({
39520
39578
  limit: project.quotas.collaborators.limit + (draft.collaborators - current.collaborators) * addons.block_collaborators
39521
39579
  };
39522
39580
  }
39523
- const quotas = chunkTENWM7BH_cjs.getQuotaItems(preview);
39581
+ const quotas = chunkQW6NCUR7_cjs.getQuotaItems(preview);
39524
39582
  const publish = cache.publish;
39525
39583
  const confirm = async () => {
39526
39584
  if (!addons || !changes || !priced || !name.trim() || locked.current || uncertain) return;
@@ -39590,7 +39648,7 @@ function ManualSubscriptionAdjustments({
39590
39648
  /* @__PURE__ */ jsxRuntime.jsxs("h3", { children: [
39591
39649
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { size: 15, className: "text-green-600", "aria-hidden": "true" }),
39592
39650
  /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
39593
- chunkTENWM7BH_cjs.proTierName(project),
39651
+ chunkQW6NCUR7_cjs.proTierName(project),
39594
39652
  " subscription"
39595
39653
  ] })
39596
39654
  ] }),
@@ -39686,7 +39744,7 @@ function ManualSubscriptionAdjustments({
39686
39744
  {
39687
39745
  "data-testid": "subscription-ai-reset",
39688
39746
  "data-reset-at": aiResetAt ?? void 0,
39689
- title: `AI usage resets on ${chunkTENWM7BH_cjs.formatPeriodEnd(aiResetAt) ?? "\u2014"}`,
39747
+ title: `AI usage resets on ${chunkQW6NCUR7_cjs.formatPeriodEnd(aiResetAt) ?? "\u2014"}`,
39690
39748
  children: aiResetDays == null ? "Monthly AI usage reset date unavailable" : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
39691
39749
  /* @__PURE__ */ jsxRuntime.jsx("strong", { children: aiResetDays }),
39692
39750
  " ",
@@ -39701,7 +39759,7 @@ function ManualSubscriptionAdjustments({
39701
39759
  {
39702
39760
  "data-testid": "subscription-renewal-date",
39703
39761
  "data-renewal-at": renewalAt,
39704
- title: `${wantsRenewal ? "Renews" : "Ends"} on ${chunkTENWM7BH_cjs.formatPeriodEnd(renewalAt) ?? "\u2014"}`,
39762
+ title: `${wantsRenewal ? "Renews" : "Ends"} on ${chunkQW6NCUR7_cjs.formatPeriodEnd(renewalAt) ?? "\u2014"}`,
39705
39763
  children: [
39706
39764
  "Subscription ",
39707
39765
  wantsRenewal ? "renews" : "ends",
@@ -39798,7 +39856,7 @@ function ManualSubscriptionAdjustments({
39798
39856
  "p",
39799
39857
  {
39800
39858
  className: `subscription-edit-explanation subscription-setup-hint ${editing && changes || kinds.some((kind) => scheduled[kind] < current[kind]) ? "" : "invisible"}`,
39801
- children: editing && !renews ? `Does not renew after ${chunkTENWM7BH_cjs.formatPeriodEnd(project.addons?.period_end ?? project.current_period_end) ?? "this billing cycle"}.` : "Upgrades now; billing & downgrades next cycle."
39859
+ children: editing && !renews ? `Does not renew after ${chunkQW6NCUR7_cjs.formatPeriodEnd(project.addons?.period_end ?? project.current_period_end) ?? "this billing cycle"}.` : "Upgrades now; billing & downgrades next cycle."
39802
39860
  }
39803
39861
  ),
39804
39862
  error && /* @__PURE__ */ jsxRuntime.jsx("p", { role: "alert", className: "text-sm text-destructive", children: error }),
@@ -39827,7 +39885,7 @@ function SubscriptionSetupDialog({
39827
39885
  const [savingSubscription, setSavingSubscription] = react$1.useState(false);
39828
39886
  const busy = savingLimits || savingSubscription;
39829
39887
  const product = products[0];
39830
- const prices = chunkTENWM7BH_cjs.findProPrices(products);
39888
+ const prices = chunkQW6NCUR7_cjs.findProPrices(products);
39831
39889
  const [name, setName] = react$1.useState(project.name);
39832
39890
  const [autoEnabled, setAutoEnabled] = react$1.useState(
39833
39891
  project.spend_limits_confirmation_required ? true : (project.addons?.spend_cap_pence ?? 0) > 0
@@ -39855,7 +39913,7 @@ function SubscriptionSetupDialog({
39855
39913
  addons?.collaborator_blocks ?? 0
39856
39914
  );
39857
39915
  const currency = prices.monthly?.currency ?? project.currency ?? "gbp";
39858
- const money = (pence) => chunkTENWM7BH_cjs.formatMoney(pence, currency);
39916
+ const money = (pence) => chunkQW6NCUR7_cjs.formatMoney(pence, currency);
39859
39917
  const dailyStep = product?.collaborator_daily_limit_step_gbp;
39860
39918
  const ready = product && product.spend_cap_step_pence > 0 && dailyStep != null && dailyStep > 0 && monthly != null;
39861
39919
  const dailyValue = daily.trim() === "" ? null : Number(daily);
@@ -40048,7 +40106,7 @@ function SubscriptionSetupDialog({
40048
40106
  );
40049
40107
  }
40050
40108
  function SetupController() {
40051
- const self = chunkTENWM7BH_cjs.useSelfExtId();
40109
+ const self = chunkQW6NCUR7_cjs.useSelfExtId();
40052
40110
  const { data: projects } = react.useProjects();
40053
40111
  const { mutateAsync: refreshProject } = react.useRefreshProject();
40054
40112
  const attempts = react$1.useRef(/* @__PURE__ */ new Map());
@@ -40061,7 +40119,7 @@ function SetupController() {
40061
40119
  }, [self]);
40062
40120
  react$1.useEffect(() => {
40063
40121
  const pending = (projects ?? []).filter(
40064
- (p) => p.created_by === self && p.checkout_pending && !chunkTENWM7BH_cjs.isProProject(p)
40122
+ (p) => p.created_by === self && p.checkout_pending && !chunkQW6NCUR7_cjs.isProProject(p)
40065
40123
  );
40066
40124
  if (!pending.length) return;
40067
40125
  const reconcile = () => {
@@ -40100,7 +40158,7 @@ function SetupController() {
40100
40158
  const { openProject, closeDialog: closeDialog2, notify: notify19 } = chunkLIKDQBNJ_cjs.useBlocksEnvironment();
40101
40159
  const confirm = react.useConfirmProjectSpendLimits();
40102
40160
  const project = projects?.find(
40103
- (p) => p.created_by === self && chunkTENWM7BH_cjs.isProProject(p) && (selectedId ? p.external_id === selectedId : p.spend_limits_confirmation_required && (request ? p.external_id === request.projectId : !deferred.includes(p.external_id)))
40161
+ (p) => p.created_by === self && chunkQW6NCUR7_cjs.isProProject(p) && (selectedId ? p.external_id === selectedId : p.spend_limits_confirmation_required && (request ? p.external_id === request.projectId : !deferred.includes(p.external_id)))
40104
40162
  );
40105
40163
  const { data: products } = react.useProducts({ enabled: !!project });
40106
40164
  const projectId = project?.external_id;
@@ -40160,7 +40218,7 @@ function SetupController() {
40160
40218
  }
40161
40219
  )
40162
40220
  ] });
40163
- const detail = confirm.error ? chunkTENWM7BH_cjs.apiErrorDetail(confirm.error) : null;
40221
+ const detail = confirm.error ? chunkQW6NCUR7_cjs.apiErrorDetail(confirm.error) : null;
40164
40222
  const message = typeof detail === "string" ? detail : confirm.isError ? "Could not confirm your saved limits. Check your connection and try again." : null;
40165
40223
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
40166
40224
  secondaryDialogs,
@@ -40183,7 +40241,7 @@ function SetupController() {
40183
40241
  setDeferred((previous) => [...previous, project.external_id]);
40184
40242
  const next = ownedProjects.find((p) => p.external_id === id);
40185
40243
  confirm.reset();
40186
- if (next && chunkTENWM7BH_cjs.isProProject(next)) setSelectedId(id);
40244
+ if (next && chunkQW6NCUR7_cjs.isProProject(next)) setSelectedId(id);
40187
40245
  else {
40188
40246
  close();
40189
40247
  openProject(id);
@@ -40219,7 +40277,7 @@ function SetupController() {
40219
40277
  ] });
40220
40278
  }
40221
40279
  function ConnectedSubscriptionSetup() {
40222
- const { stripeEnabled } = chunkTENWM7BH_cjs.useBillingSupport();
40280
+ const { stripeEnabled } = chunkQW6NCUR7_cjs.useBillingSupport();
40223
40281
  return stripeEnabled ? /* @__PURE__ */ jsxRuntime.jsx(SetupController, {}) : null;
40224
40282
  }
40225
40283
  function suppliedKinds(context) {
@@ -40593,9 +40651,9 @@ function ConnectedConversationSettings() {
40593
40651
  });
40594
40652
  if (confirmed) settings.share();
40595
40653
  };
40596
- return /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.PanelFrame, { testId: "conversation-settings", className: "bg-transparent", children: /* @__PURE__ */ jsxRuntime.jsx(chunkC5APAFUY_cjs.PanelFrameBody, { className: "overflow-auto p-4", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-6", children: [
40654
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.PanelFrame, { testId: "conversation-settings", className: "bg-transparent", children: /* @__PURE__ */ jsxRuntime.jsx(chunkN3H3YAKY_cjs.PanelFrameBody, { className: "overflow-auto p-4", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-6", children: [
40597
40655
  !settings.isNewConversation && /* @__PURE__ */ jsxRuntime.jsx(
40598
- chunkC5APAFUY_cjs.ConversationTitleSection,
40656
+ chunkN3H3YAKY_cjs.ConversationTitleSection,
40599
40657
  {
40600
40658
  title: settings.title,
40601
40659
  onTitleChange: settings.setTitle,
@@ -40613,9 +40671,9 @@ function ConnectedConversationSettings() {
40613
40671
  }
40614
40672
  ),
40615
40673
  /* @__PURE__ */ jsxRuntime.jsx(
40616
- chunkC5APAFUY_cjs.ModelSelectionSection,
40674
+ chunkN3H3YAKY_cjs.ModelSelectionSection,
40617
40675
  {
40618
- selector: /* @__PURE__ */ jsxRuntime.jsx(chunkC4Z6LOLA_cjs.ConnectedModelSelector, {}),
40676
+ selector: /* @__PURE__ */ jsxRuntime.jsx(chunkIZNSTFAT_cjs.ConnectedModelSelector, {}),
40619
40677
  onUseDefaults: settings.resetToDefaults
40620
40678
  }
40621
40679
  )
@@ -40641,7 +40699,7 @@ function ConnectedConversationSettingsDialog({
40641
40699
  }
40642
40700
  ) });
40643
40701
  }
40644
- var ConnectedProductionSetDialog = react$1.lazy(() => import('../ConnectedProductionSetDialog-EOWZQ6J3.cjs'));
40702
+ var ConnectedProductionSetDialog = react$1.lazy(() => import('../ConnectedProductionSetDialog-GM5D7IUG.cjs'));
40645
40703
  var BUILTIN_GLOBAL_DIALOGS = {
40646
40704
  support: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(
40647
40705
  ConnectedSupportTicketsDialog,
@@ -40674,7 +40732,7 @@ var BUILTIN_GLOBAL_DIALOGS = {
40674
40732
  testId: "workspace-transfer-modal"
40675
40733
  }
40676
40734
  ),
40677
- logout: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(chunkC4Z6LOLA_cjs.ConnectedLogoutDialog, { open: props !== null, onClose }),
40735
+ logout: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(chunkIZNSTFAT_cjs.ConnectedLogoutDialog, { open: props !== null, onClose }),
40678
40736
  conversationSettings: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(ConnectedConversationSettingsDialog, { open: props !== null, onClose }),
40679
40737
  unarchiveWorkspace: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(ConnectedUnarchiveWorkspaceDialog, { workspaceId: props?.workspaceId ?? null, onClose }),
40680
40738
  productionSet: ConnectedProductionSetDialog,
@@ -41107,7 +41165,7 @@ function ConnectedThreadLauncher({ autoFocus }) {
41107
41165
  return /* @__PURE__ */ jsxRuntime.jsxs(chunkF6CEPWIF_cjs.ComposerDock, { children: [
41108
41166
  slashWorkflows.launcher,
41109
41167
  /* @__PURE__ */ jsxRuntime.jsx(chunkF6CEPWIF_cjs.ComposerContainer, { className: "mx-auto max-w-[49rem] px-3 sm:px-6", children: /* @__PURE__ */ jsxRuntime.jsx(
41110
- chunkC4Z6LOLA_cjs.ConversationComposer,
41168
+ chunkIZNSTFAT_cjs.ConversationComposer,
41111
41169
  {
41112
41170
  value: draft,
41113
41171
  onValueChange: setDraft,
@@ -41116,7 +41174,7 @@ function ConnectedThreadLauncher({ autoFocus }) {
41116
41174
  isConversationEmpty: true,
41117
41175
  shouldOfferFollowUp: false,
41118
41176
  skills,
41119
- modelSelector: /* @__PURE__ */ jsxRuntime.jsx(chunkC4Z6LOLA_cjs.ConnectedModelSelector, { variant: "compact" }),
41177
+ modelSelector: /* @__PURE__ */ jsxRuntime.jsx(chunkIZNSTFAT_cjs.ConnectedModelSelector, { variant: "compact" }),
41120
41178
  rightButton: /* @__PURE__ */ jsxRuntime.jsx(chunkF6CEPWIF_cjs.ComposerSend, { onSend: send, disabled: !draft.trim() })
41121
41179
  }
41122
41180
  ) })
@@ -41259,7 +41317,7 @@ function AgentBarShell({
41259
41317
  drawerRef: scrollRef,
41260
41318
  onDrawerScroll: handleDrawerScroll,
41261
41319
  drawer: /* @__PURE__ */ jsxRuntime.jsx(
41262
- chunkC4Z6LOLA_cjs.AgentSteps,
41320
+ chunkIZNSTFAT_cjs.AgentSteps,
41263
41321
  {
41264
41322
  steps: stepList,
41265
41323
  isStreaming,
@@ -41311,7 +41369,7 @@ function AgentControlBar({
41311
41369
  const waitingOnChildren = runningLanes.length > 0 && ["sub_agent", "spawn_subagent", "deep_research", "run_skill"].includes(currentTool ?? "");
41312
41370
  const waitingLabel = runningLanes.length === 1 ? `Waiting on ${runningLanes[0].job}` : `Waiting on ${runningLanes.length} sub-agents`;
41313
41371
  const liveTimerNode = liveTimer && /* @__PURE__ */ jsxRuntime.jsx(
41314
- chunkC4Z6LOLA_cjs.MessageLiveSeconds,
41372
+ chunkIZNSTFAT_cjs.MessageLiveSeconds,
41315
41373
  {
41316
41374
  ...liveTimer,
41317
41375
  offsetSeconds: currentStep?.t ?? 0,
@@ -42501,7 +42559,7 @@ function ConversationThread({
42501
42559
  useStartRequestedDraft();
42502
42560
  const orphanedMessage = react.getOrphanedLastMessage(messageHistory, isGenerating, assistantMode);
42503
42561
  return /* @__PURE__ */ jsxRuntime.jsxs(chunkKLMNCBLY_cjs.ConversationBody, { children: [
42504
- /* @__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(chunkC4Z6LOLA_cjs.AskAgainContext.Provider, { value: handleAskAgain, children: /* @__PURE__ */ jsxRuntime.jsxs(chunk6THN5ZGA_cjs.TranscriptRunsContext.Provider, { value: transcriptRunInfo, children: [
42562
+ /* @__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(chunkIZNSTFAT_cjs.AskAgainContext.Provider, { value: handleAskAgain, children: /* @__PURE__ */ jsxRuntime.jsxs(chunk6THN5ZGA_cjs.TranscriptRunsContext.Provider, { value: transcriptRunInfo, children: [
42505
42563
  meetingCallExtId && transcriptLineCount > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center py-2", children: /* @__PURE__ */ jsxRuntime.jsx(
42506
42564
  chunkZBP4ZSAJ_cjs.ConversationFilter,
42507
42565
  {
@@ -42519,7 +42577,7 @@ function ConversationThread({
42519
42577
  ]
42520
42578
  }
42521
42579
  ) }),
42522
- /* @__PURE__ */ jsxRuntime.jsx(chunkC4Z6LOLA_cjs.ConnectedMessageArea, { ref: containerRef, messages: visibleMessages }),
42580
+ /* @__PURE__ */ jsxRuntime.jsx(chunkIZNSTFAT_cjs.ConnectedMessageArea, { ref: containerRef, messages: visibleMessages }),
42523
42581
  showProvisional && /* @__PURE__ */ jsxRuntime.jsx(chunkVF26CUE3_cjs.ProvisionalSpeakers, { ids: provisionalSpeakers })
42524
42582
  ] }) }) : meetingCallExtId ? (
42525
42583
  // A meeting thread with nothing yet: call-aware, not the upload prompt.
@@ -42527,7 +42585,7 @@ function ConversationThread({
42527
42585
  /* @__PURE__ */ jsxRuntime.jsx(chunkVF26CUE3_cjs.CallConversationEmpty, { callExtId: meetingCallExtId }),
42528
42586
  /* @__PURE__ */ jsxRuntime.jsx(chunkVF26CUE3_cjs.ProvisionalSpeakers, { ids: provisionalSpeakers })
42529
42587
  ] })
42530
- ) : currentTask && currentTask.status != null ? /* @__PURE__ */ jsxRuntime.jsx(chunkR5NTEW4L_cjs.TaskEmptyState, { task: currentTask }) : pendingFirstTurn && isGenerating ? /* @__PURE__ */ jsxRuntime.jsx(chunkC4Z6LOLA_cjs.ConnectedMessageArea, { ref: containerRef, messages: pendingFirstTurn }) : /* @__PURE__ */ jsxRuntime.jsx(
42588
+ ) : currentTask && currentTask.status != null ? /* @__PURE__ */ jsxRuntime.jsx(chunkR5NTEW4L_cjs.TaskEmptyState, { task: currentTask }) : pendingFirstTurn && isGenerating ? /* @__PURE__ */ jsxRuntime.jsx(chunkIZNSTFAT_cjs.ConnectedMessageArea, { ref: containerRef, messages: pendingFirstTurn }) : /* @__PURE__ */ jsxRuntime.jsx(
42531
42589
  ConnectedConversationEmpty,
42532
42590
  {
42533
42591
  hasDocuments: allWorkspaceDocuments.length > 0,
@@ -42625,7 +42683,7 @@ function ConversationThread({
42625
42683
  }
42626
42684
  ),
42627
42685
  /* @__PURE__ */ jsxRuntime.jsx(
42628
- chunkC4Z6LOLA_cjs.ConversationComposer,
42686
+ chunkIZNSTFAT_cjs.ConversationComposer,
42629
42687
  {
42630
42688
  handleSendMessage: handleUserSend,
42631
42689
  placeholder: pendingAnswer ? assistant.answerPlaceholder : void 0,
@@ -43022,7 +43080,7 @@ function ConnectedThreadsPage({
43022
43080
  }
43023
43081
  ),
43024
43082
  /* @__PURE__ */ jsxRuntime.jsx(
43025
- chunkC5APAFUY_cjs.RenameDialog,
43083
+ chunkN3H3YAKY_cjs.RenameDialog,
43026
43084
  {
43027
43085
  open: !!renaming,
43028
43086
  onClose: () => {
@@ -43952,7 +44010,7 @@ function ConnectedConversationPage({
43952
44010
  ] })
43953
44011
  }
43954
44012
  ),
43955
- isInChat && /* @__PURE__ */ jsxRuntime.jsx(chunkCESE7GLT_cjs.ConnectedThreadTaskBar, { conversationId: currentConversationId })
44013
+ isInChat && /* @__PURE__ */ jsxRuntime.jsx(chunkRGSFPWG2_cjs.ConnectedThreadTaskBar, { conversationId: currentConversationId })
43956
44014
  ] }),
43957
44015
  isInChat && /* @__PURE__ */ jsxRuntime.jsx(
43958
44016
  ConversationThread,
@@ -44161,7 +44219,7 @@ function SsoResendVerificationButton({
44161
44219
  onClick: async () => handleResendEmailVerification(),
44162
44220
  disabled: loading || disabled,
44163
44221
  "aria-label": "Resend verification email",
44164
- children: loading ? /* @__PURE__ */ jsxRuntime.jsx(chunk5Z22EXHJ_cjs.LoadingIndicator, {}) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
44222
+ children: loading ? /* @__PURE__ */ jsxRuntime.jsx(chunk2EY52GDM_cjs.LoadingIndicator, {}) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
44165
44223
  "Didn't get a verification email? ",
44166
44224
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold", children: "Resend" })
44167
44225
  ] })
@@ -44172,9 +44230,9 @@ function SsoResendVerificationButton({
44172
44230
  }
44173
44231
  var NO_RECOVERY_KEY_WARNING = "Without your password or a recovery key, we cannot recover your account or data.";
44174
44232
  function ConnectedSsoCallback() {
44175
- const sso = chunkC4Z6LOLA_cjs.useSsoSignIn();
44233
+ const sso = chunkIZNSTFAT_cjs.useSsoSignIn();
44176
44234
  const { isAuthenticated: isAuthenticated2, isLoading, user } = sso;
44177
- const auth = chunkC4Z6LOLA_cjs.useAuthPages();
44235
+ const auth = chunkIZNSTFAT_cjs.useAuthPages();
44178
44236
  const { notify: notify19, navigate } = chunkLIKDQBNJ_cjs.useBlocksEnvironment();
44179
44237
  const passwordRules = auth.passwordRules;
44180
44238
  const isProcessing = react$1.useRef(false);
@@ -44182,7 +44240,7 @@ function ConnectedSsoCallback() {
44182
44240
  const [statusAttempt, setStatusAttempt] = react$1.useState(0);
44183
44241
  const [accessToken, setAccessToken] = react$1.useState(null);
44184
44242
  const [ssoStatus, setSsoStatus] = react$1.useState(null);
44185
- const ssoName = react$1.useMemo(() => chunkC4Z6LOLA_cjs.resolveSsoName(user ?? {}, ssoStatus ?? {}), [user, ssoStatus]);
44243
+ const ssoName = react$1.useMemo(() => chunkIZNSTFAT_cjs.resolveSsoName(user ?? {}, ssoStatus ?? {}), [user, ssoStatus]);
44186
44244
  const [password, setPassword] = react$1.useState("");
44187
44245
  const [confirmPassword, setConfirmPassword] = react$1.useState("");
44188
44246
  const [error, setError] = react$1.useState(null);
@@ -44360,7 +44418,7 @@ function ConnectedSsoCallback() {
44360
44418
  setIsCheckingStatus(true);
44361
44419
  try {
44362
44420
  console.info("[SSO] Checking user status...");
44363
- const response = await chunkC4Z6LOLA_cjs.ssoAccountStatus(arbi, accessToken, user);
44421
+ const response = await chunkIZNSTFAT_cjs.ssoAccountStatus(arbi, accessToken, user);
44364
44422
  console.info("[SSO] User status:", response.status);
44365
44423
  setSsoStatus(response);
44366
44424
  } catch (error2) {
@@ -44401,7 +44459,7 @@ function ConnectedSsoCallback() {
44401
44459
  setIsSubmitting(true);
44402
44460
  setError(null);
44403
44461
  try {
44404
- const { login, registered, linked } = await chunkC4Z6LOLA_cjs.completeSsoSignIn(arbi, {
44462
+ const { login, registered, linked } = await chunkIZNSTFAT_cjs.completeSsoSignIn(arbi, {
44405
44463
  token: accessToken,
44406
44464
  user,
44407
44465
  status: ssoStatus,
@@ -44701,7 +44759,7 @@ function ConnectedSsoCallback() {
44701
44759
  ssoStatus.status !== "new_user" && auth.footer
44702
44760
  ] }),
44703
44761
  /* @__PURE__ */ jsxRuntime.jsx(
44704
- chunkC4Z6LOLA_cjs.ConnectedForgotPassword,
44762
+ chunkIZNSTFAT_cjs.ConnectedForgotPassword,
44705
44763
  {
44706
44764
  open: showForgotPasswordModal,
44707
44765
  onOpenChange: setShowForgotPasswordModal,
@@ -44709,7 +44767,7 @@ function ConnectedSsoCallback() {
44709
44767
  }
44710
44768
  ),
44711
44769
  /* @__PURE__ */ jsxRuntime.jsx(
44712
- chunkC4Z6LOLA_cjs.ConnectedPasswordChangeDialog,
44770
+ chunkIZNSTFAT_cjs.ConnectedPasswordChangeDialog,
44713
44771
  {
44714
44772
  open: showChangePasswordModal,
44715
44773
  onClose: () => setShowChangePasswordModal(false),
@@ -45621,7 +45679,7 @@ function ConnectedTipBar({
45621
45679
  className,
45622
45680
  revealOnHover = false
45623
45681
  }) {
45624
- const { showHints, settingsLoaded, setShowHintsPersisted, setShowHints } = chunkC4Z6LOLA_cjs.useContextualHints();
45682
+ const { showHints, settingsLoaded, setShowHintsPersisted, setShowHints } = chunkIZNSTFAT_cjs.useContextualHints();
45625
45683
  const { dismissed, dismissTip } = react.useDismissedTips();
45626
45684
  const { notify: notify19 } = chunkLIKDQBNJ_cjs.useBlocksEnvironment();
45627
45685
  const { data: workspaces } = react.useWorkspaces();
@@ -45632,7 +45690,7 @@ function ConnectedTipBar({
45632
45690
  workspaceOpen,
45633
45691
  ...state
45634
45692
  };
45635
- const { tip, index, count: count2, previous, next, onHoverChange } = chunk5Z22EXHJ_cjs.useTipsPlacement({
45693
+ const { tip, index, count: count2, previous, next, onHoverChange } = chunk2EY52GDM_cjs.useTipsPlacement({
45636
45694
  registry,
45637
45695
  context,
45638
45696
  state: situation,
@@ -45710,7 +45768,7 @@ function useGettingStarted({
45710
45768
  const { user } = react.useArbiSession();
45711
45769
  const userExtId = user?.external_id;
45712
45770
  const temporaryOnly = user?.temporary_access_only === true;
45713
- const { showHints, settingsLoaded, setShowHints, setShowHintsPersisted } = chunkC4Z6LOLA_cjs.useContextualHints();
45771
+ const { showHints, settingsLoaded, setShowHints, setShowHintsPersisted } = chunkIZNSTFAT_cjs.useContextualHints();
45714
45772
  const { dismissed, loaded: dismissedLoaded, dismissTip } = react.useDismissedTips();
45715
45773
  const welcomeJourneyEnabled = react.useFeature("welcomeJourney");
45716
45774
  const session = react.useArbiSessionStore();
@@ -45952,55 +46010,55 @@ Object.defineProperty(exports, "useSessionPanelMode", {
45952
46010
  });
45953
46011
  Object.defineProperty(exports, "CAP_REACHED_MESSAGE", {
45954
46012
  enumerable: true,
45955
- get: function () { return chunkTENWM7BH_cjs.CAP_REACHED_MESSAGE; }
46013
+ get: function () { return chunkQW6NCUR7_cjs.CAP_REACHED_MESSAGE; }
45956
46014
  });
45957
46015
  Object.defineProperty(exports, "ZERO_BUDGET_MESSAGE", {
45958
46016
  enumerable: true,
45959
- get: function () { return chunkTENWM7BH_cjs.ZERO_BUDGET_MESSAGE; }
46017
+ get: function () { return chunkQW6NCUR7_cjs.ZERO_BUDGET_MESSAGE; }
45960
46018
  });
45961
46019
  Object.defineProperty(exports, "aiUsageResetTimestamp", {
45962
46020
  enumerable: true,
45963
- get: function () { return chunkTENWM7BH_cjs.aiUsageResetTimestamp; }
46021
+ get: function () { return chunkQW6NCUR7_cjs.aiUsageResetTimestamp; }
45964
46022
  });
45965
46023
  Object.defineProperty(exports, "formatMoney", {
45966
46024
  enumerable: true,
45967
- get: function () { return chunkTENWM7BH_cjs.formatMoney; }
46025
+ get: function () { return chunkQW6NCUR7_cjs.formatMoney; }
45968
46026
  });
45969
46027
  Object.defineProperty(exports, "formatResetDate", {
45970
46028
  enumerable: true,
45971
- get: function () { return chunkTENWM7BH_cjs.formatResetDate; }
46029
+ get: function () { return chunkQW6NCUR7_cjs.formatResetDate; }
45972
46030
  });
45973
46031
  Object.defineProperty(exports, "getQuotaItems", {
45974
46032
  enumerable: true,
45975
- get: function () { return chunkTENWM7BH_cjs.getQuotaItems; }
46033
+ get: function () { return chunkQW6NCUR7_cjs.getQuotaItems; }
45976
46034
  });
45977
46035
  Object.defineProperty(exports, "isAddonBudgetZero", {
45978
46036
  enumerable: true,
45979
- get: function () { return chunkTENWM7BH_cjs.isAddonBudgetZero; }
46037
+ get: function () { return chunkQW6NCUR7_cjs.isAddonBudgetZero; }
45980
46038
  });
45981
46039
  Object.defineProperty(exports, "isProProject", {
45982
46040
  enumerable: true,
45983
- get: function () { return chunkTENWM7BH_cjs.isProProject; }
46041
+ get: function () { return chunkQW6NCUR7_cjs.isProProject; }
45984
46042
  });
45985
46043
  Object.defineProperty(exports, "planBadgeView", {
45986
46044
  enumerable: true,
45987
- get: function () { return chunkTENWM7BH_cjs.planBadgeView; }
46045
+ get: function () { return chunkQW6NCUR7_cjs.planBadgeView; }
45988
46046
  });
45989
46047
  Object.defineProperty(exports, "planName", {
45990
46048
  enumerable: true,
45991
- get: function () { return chunkTENWM7BH_cjs.planName; }
46049
+ get: function () { return chunkQW6NCUR7_cjs.planName; }
45992
46050
  });
45993
46051
  Object.defineProperty(exports, "projectGroupBilling", {
45994
46052
  enumerable: true,
45995
- get: function () { return chunkTENWM7BH_cjs.projectGroupBilling; }
46053
+ get: function () { return chunkQW6NCUR7_cjs.projectGroupBilling; }
45996
46054
  });
45997
46055
  Object.defineProperty(exports, "useBillingSupport", {
45998
46056
  enumerable: true,
45999
- get: function () { return chunkTENWM7BH_cjs.useBillingSupport; }
46057
+ get: function () { return chunkQW6NCUR7_cjs.useBillingSupport; }
46000
46058
  });
46001
46059
  Object.defineProperty(exports, "useRewardBalance", {
46002
46060
  enumerable: true,
46003
- get: function () { return chunkTENWM7BH_cjs.useRewardBalance; }
46061
+ get: function () { return chunkQW6NCUR7_cjs.useRewardBalance; }
46004
46062
  });
46005
46063
  Object.defineProperty(exports, "ConnectedMailInviteCard", {
46006
46064
  enumerable: true,
@@ -46052,279 +46110,279 @@ Object.defineProperty(exports, "useWorkspaceDocs", {
46052
46110
  });
46053
46111
  Object.defineProperty(exports, "ConnectedTaskActivityDialog", {
46054
46112
  enumerable: true,
46055
- get: function () { return chunkCESE7GLT_cjs.ConnectedTaskActivityDialog; }
46113
+ get: function () { return chunkRGSFPWG2_cjs.ConnectedTaskActivityDialog; }
46056
46114
  });
46057
46115
  Object.defineProperty(exports, "ConnectedTaskComposer", {
46058
46116
  enumerable: true,
46059
- get: function () { return chunkCESE7GLT_cjs.ConnectedTaskComposer; }
46117
+ get: function () { return chunkRGSFPWG2_cjs.ConnectedTaskComposer; }
46060
46118
  });
46061
46119
  Object.defineProperty(exports, "ConnectedThreadTaskBar", {
46062
46120
  enumerable: true,
46063
- get: function () { return chunkCESE7GLT_cjs.ConnectedThreadTaskBar; }
46121
+ get: function () { return chunkRGSFPWG2_cjs.ConnectedThreadTaskBar; }
46064
46122
  });
46065
46123
  Object.defineProperty(exports, "ConnectedWorkflowHistory", {
46066
46124
  enumerable: true,
46067
- get: function () { return chunkCESE7GLT_cjs.ConnectedWorkflowHistory; }
46125
+ get: function () { return chunkRGSFPWG2_cjs.ConnectedWorkflowHistory; }
46068
46126
  });
46069
46127
  Object.defineProperty(exports, "ConnectedWorkflowRunPage", {
46070
46128
  enumerable: true,
46071
- get: function () { return chunkCESE7GLT_cjs.ConnectedWorkflowRunPage; }
46129
+ get: function () { return chunkRGSFPWG2_cjs.ConnectedWorkflowRunPage; }
46072
46130
  });
46073
46131
  Object.defineProperty(exports, "ConnectedWorkflowRunner", {
46074
46132
  enumerable: true,
46075
- get: function () { return chunkCESE7GLT_cjs.ConnectedWorkflowRunner; }
46133
+ get: function () { return chunkRGSFPWG2_cjs.ConnectedWorkflowRunner; }
46076
46134
  });
46077
46135
  Object.defineProperty(exports, "DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS", {
46078
46136
  enumerable: true,
46079
- get: function () { return chunkCESE7GLT_cjs.DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS; }
46137
+ get: function () { return chunkRGSFPWG2_cjs.DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS; }
46080
46138
  });
46081
46139
  Object.defineProperty(exports, "DEFAULT_WORKFLOW_RUN_PAGE_LABELS", {
46082
46140
  enumerable: true,
46083
- get: function () { return chunkCESE7GLT_cjs.DEFAULT_WORKFLOW_RUN_PAGE_LABELS; }
46141
+ get: function () { return chunkRGSFPWG2_cjs.DEFAULT_WORKFLOW_RUN_PAGE_LABELS; }
46084
46142
  });
46085
46143
  Object.defineProperty(exports, "WorkflowRunThread", {
46086
46144
  enumerable: true,
46087
- get: function () { return chunkCESE7GLT_cjs.WorkflowRunThread; }
46145
+ get: function () { return chunkRGSFPWG2_cjs.WorkflowRunThread; }
46088
46146
  });
46089
46147
  Object.defineProperty(exports, "WorkflowRunWorkspaceChangedError", {
46090
46148
  enumerable: true,
46091
- get: function () { return chunkCESE7GLT_cjs.WorkflowRunWorkspaceChangedError; }
46149
+ get: function () { return chunkRGSFPWG2_cjs.WorkflowRunWorkspaceChangedError; }
46092
46150
  });
46093
46151
  Object.defineProperty(exports, "buildProjectSummaries", {
46094
46152
  enumerable: true,
46095
- get: function () { return chunkCESE7GLT_cjs.buildProjectSummaries; }
46153
+ get: function () { return chunkRGSFPWG2_cjs.buildProjectSummaries; }
46096
46154
  });
46097
46155
  Object.defineProperty(exports, "primaryProjectWorkspace", {
46098
46156
  enumerable: true,
46099
- get: function () { return chunkCESE7GLT_cjs.primaryProjectWorkspace; }
46157
+ get: function () { return chunkRGSFPWG2_cjs.primaryProjectWorkspace; }
46100
46158
  });
46101
46159
  Object.defineProperty(exports, "useEnsureRequiredLabels", {
46102
46160
  enumerable: true,
46103
- get: function () { return chunkCESE7GLT_cjs.useEnsureRequiredLabels; }
46161
+ get: function () { return chunkRGSFPWG2_cjs.useEnsureRequiredLabels; }
46104
46162
  });
46105
46163
  Object.defineProperty(exports, "useProjectSummaries", {
46106
46164
  enumerable: true,
46107
- get: function () { return chunkCESE7GLT_cjs.useProjectSummaries; }
46165
+ get: function () { return chunkRGSFPWG2_cjs.useProjectSummaries; }
46108
46166
  });
46109
46167
  Object.defineProperty(exports, "useProjectSummary", {
46110
46168
  enumerable: true,
46111
- get: function () { return chunkCESE7GLT_cjs.useProjectSummary; }
46169
+ get: function () { return chunkRGSFPWG2_cjs.useProjectSummary; }
46112
46170
  });
46113
46171
  Object.defineProperty(exports, "useRenderTaskPerson", {
46114
46172
  enumerable: true,
46115
- get: function () { return chunkCESE7GLT_cjs.useRenderTaskPerson; }
46173
+ get: function () { return chunkRGSFPWG2_cjs.useRenderTaskPerson; }
46116
46174
  });
46117
46175
  Object.defineProperty(exports, "useRequiredLabels", {
46118
46176
  enumerable: true,
46119
- get: function () { return chunkCESE7GLT_cjs.useRequiredLabels; }
46177
+ get: function () { return chunkRGSFPWG2_cjs.useRequiredLabels; }
46120
46178
  });
46121
46179
  Object.defineProperty(exports, "useTaskPeople", {
46122
46180
  enumerable: true,
46123
- get: function () { return chunkCESE7GLT_cjs.useTaskPeople; }
46181
+ get: function () { return chunkRGSFPWG2_cjs.useTaskPeople; }
46124
46182
  });
46125
46183
  Object.defineProperty(exports, "useWorkflowsPageState", {
46126
46184
  enumerable: true,
46127
- get: function () { return chunkCESE7GLT_cjs.useWorkflowsPageState; }
46185
+ get: function () { return chunkRGSFPWG2_cjs.useWorkflowsPageState; }
46128
46186
  });
46129
46187
  Object.defineProperty(exports, "workflowRunView", {
46130
46188
  enumerable: true,
46131
- get: function () { return chunkCESE7GLT_cjs.workflowRunView; }
46189
+ get: function () { return chunkRGSFPWG2_cjs.workflowRunView; }
46132
46190
  });
46133
46191
  Object.defineProperty(exports, "AgentSteps", {
46134
46192
  enumerable: true,
46135
- get: function () { return chunkC4Z6LOLA_cjs.AgentSteps; }
46193
+ get: function () { return chunkIZNSTFAT_cjs.AgentSteps; }
46136
46194
  });
46137
46195
  Object.defineProperty(exports, "AnswerTable", {
46138
46196
  enumerable: true,
46139
- get: function () { return chunkC4Z6LOLA_cjs.AnswerTable; }
46197
+ get: function () { return chunkIZNSTFAT_cjs.AnswerTable; }
46140
46198
  });
46141
46199
  Object.defineProperty(exports, "ArbiChat", {
46142
46200
  enumerable: true,
46143
- get: function () { return chunkC4Z6LOLA_cjs.ArbiChat; }
46201
+ get: function () { return chunkIZNSTFAT_cjs.ArbiChat; }
46144
46202
  });
46145
46203
  Object.defineProperty(exports, "AskAgainContext", {
46146
46204
  enumerable: true,
46147
- get: function () { return chunkC4Z6LOLA_cjs.AskAgainContext; }
46205
+ get: function () { return chunkIZNSTFAT_cjs.AskAgainContext; }
46148
46206
  });
46149
46207
  Object.defineProperty(exports, "ConnectedBranchControls", {
46150
46208
  enumerable: true,
46151
- get: function () { return chunkC4Z6LOLA_cjs.ConnectedBranchControls; }
46209
+ get: function () { return chunkIZNSTFAT_cjs.ConnectedBranchControls; }
46152
46210
  });
46153
46211
  Object.defineProperty(exports, "ConnectedCitationRenderer", {
46154
46212
  enumerable: true,
46155
- get: function () { return chunkC4Z6LOLA_cjs.ConnectedCitationRenderer; }
46213
+ get: function () { return chunkIZNSTFAT_cjs.ConnectedCitationRenderer; }
46156
46214
  });
46157
46215
  Object.defineProperty(exports, "ConnectedCompactConversation", {
46158
46216
  enumerable: true,
46159
- get: function () { return chunkC4Z6LOLA_cjs.ConnectedCompactConversation; }
46217
+ get: function () { return chunkIZNSTFAT_cjs.ConnectedCompactConversation; }
46160
46218
  });
46161
46219
  Object.defineProperty(exports, "ConnectedCompactLogin", {
46162
46220
  enumerable: true,
46163
- get: function () { return chunkC4Z6LOLA_cjs.ConnectedCompactLogin; }
46221
+ get: function () { return chunkIZNSTFAT_cjs.ConnectedCompactLogin; }
46164
46222
  });
46165
46223
  Object.defineProperty(exports, "ConnectedConversationDocumentPicker", {
46166
46224
  enumerable: true,
46167
- get: function () { return chunkC4Z6LOLA_cjs.ConnectedConversationDocumentPicker; }
46225
+ get: function () { return chunkIZNSTFAT_cjs.ConnectedConversationDocumentPicker; }
46168
46226
  });
46169
46227
  Object.defineProperty(exports, "ConnectedDangerZone", {
46170
46228
  enumerable: true,
46171
- get: function () { return chunkC4Z6LOLA_cjs.ConnectedDangerZone; }
46229
+ get: function () { return chunkIZNSTFAT_cjs.ConnectedDangerZone; }
46172
46230
  });
46173
46231
  Object.defineProperty(exports, "ConnectedEmbeddedChat", {
46174
46232
  enumerable: true,
46175
- get: function () { return chunkC4Z6LOLA_cjs.ConnectedEmbeddedChat; }
46233
+ get: function () { return chunkIZNSTFAT_cjs.ConnectedEmbeddedChat; }
46176
46234
  });
46177
46235
  Object.defineProperty(exports, "ConnectedForgotPassword", {
46178
46236
  enumerable: true,
46179
- get: function () { return chunkC4Z6LOLA_cjs.ConnectedForgotPassword; }
46237
+ get: function () { return chunkIZNSTFAT_cjs.ConnectedForgotPassword; }
46180
46238
  });
46181
46239
  Object.defineProperty(exports, "ConnectedIdentityVerification", {
46182
46240
  enumerable: true,
46183
- get: function () { return chunkC4Z6LOLA_cjs.ConnectedIdentityVerification; }
46241
+ get: function () { return chunkIZNSTFAT_cjs.ConnectedIdentityVerification; }
46184
46242
  });
46185
46243
  Object.defineProperty(exports, "ConnectedLoginPage", {
46186
46244
  enumerable: true,
46187
- get: function () { return chunkC4Z6LOLA_cjs.ConnectedLoginPage; }
46245
+ get: function () { return chunkIZNSTFAT_cjs.ConnectedLoginPage; }
46188
46246
  });
46189
46247
  Object.defineProperty(exports, "ConnectedLogoutDialog", {
46190
46248
  enumerable: true,
46191
- get: function () { return chunkC4Z6LOLA_cjs.ConnectedLogoutDialog; }
46249
+ get: function () { return chunkIZNSTFAT_cjs.ConnectedLogoutDialog; }
46192
46250
  });
46193
46251
  Object.defineProperty(exports, "ConnectedMessage", {
46194
46252
  enumerable: true,
46195
- get: function () { return chunkC4Z6LOLA_cjs.ConnectedMessage; }
46253
+ get: function () { return chunkIZNSTFAT_cjs.ConnectedMessage; }
46196
46254
  });
46197
46255
  Object.defineProperty(exports, "ConnectedMessageArea", {
46198
46256
  enumerable: true,
46199
- get: function () { return chunkC4Z6LOLA_cjs.ConnectedMessageArea; }
46257
+ get: function () { return chunkIZNSTFAT_cjs.ConnectedMessageArea; }
46200
46258
  });
46201
46259
  Object.defineProperty(exports, "ConnectedMessageList", {
46202
46260
  enumerable: true,
46203
- get: function () { return chunkC4Z6LOLA_cjs.ConnectedMessageList; }
46261
+ get: function () { return chunkIZNSTFAT_cjs.ConnectedMessageList; }
46204
46262
  });
46205
46263
  Object.defineProperty(exports, "ConnectedModelSelector", {
46206
46264
  enumerable: true,
46207
- get: function () { return chunkC4Z6LOLA_cjs.ConnectedModelSelector; }
46265
+ get: function () { return chunkIZNSTFAT_cjs.ConnectedModelSelector; }
46208
46266
  });
46209
46267
  Object.defineProperty(exports, "ConnectedNotificationPreferences", {
46210
46268
  enumerable: true,
46211
- get: function () { return chunkC4Z6LOLA_cjs.ConnectedNotificationPreferences; }
46269
+ get: function () { return chunkIZNSTFAT_cjs.ConnectedNotificationPreferences; }
46212
46270
  });
46213
46271
  Object.defineProperty(exports, "ConnectedPasswordChangeDialog", {
46214
46272
  enumerable: true,
46215
- get: function () { return chunkC4Z6LOLA_cjs.ConnectedPasswordChangeDialog; }
46273
+ get: function () { return chunkIZNSTFAT_cjs.ConnectedPasswordChangeDialog; }
46216
46274
  });
46217
46275
  Object.defineProperty(exports, "ConnectedProfileCard", {
46218
46276
  enumerable: true,
46219
- get: function () { return chunkC4Z6LOLA_cjs.ConnectedProfileCard; }
46277
+ get: function () { return chunkIZNSTFAT_cjs.ConnectedProfileCard; }
46220
46278
  });
46221
46279
  Object.defineProperty(exports, "ConnectedSecuritySection", {
46222
46280
  enumerable: true,
46223
- get: function () { return chunkC4Z6LOLA_cjs.ConnectedSecuritySection; }
46281
+ get: function () { return chunkIZNSTFAT_cjs.ConnectedSecuritySection; }
46224
46282
  });
46225
46283
  Object.defineProperty(exports, "ConnectedSessionsRow", {
46226
46284
  enumerable: true,
46227
- get: function () { return chunkC4Z6LOLA_cjs.ConnectedSessionsRow; }
46285
+ get: function () { return chunkIZNSTFAT_cjs.ConnectedSessionsRow; }
46228
46286
  });
46229
46287
  Object.defineProperty(exports, "ConnectedThreadsPreview", {
46230
46288
  enumerable: true,
46231
- get: function () { return chunkC4Z6LOLA_cjs.ConnectedThreadsPreview; }
46289
+ get: function () { return chunkIZNSTFAT_cjs.ConnectedThreadsPreview; }
46232
46290
  });
46233
46291
  Object.defineProperty(exports, "ConversationComposer", {
46234
46292
  enumerable: true,
46235
- get: function () { return chunkC4Z6LOLA_cjs.ConversationComposer; }
46293
+ get: function () { return chunkIZNSTFAT_cjs.ConversationComposer; }
46236
46294
  });
46237
46295
  Object.defineProperty(exports, "EmbeddedChatPanel", {
46238
46296
  enumerable: true,
46239
- get: function () { return chunkC4Z6LOLA_cjs.EmbeddedChatPanel; }
46297
+ get: function () { return chunkIZNSTFAT_cjs.EmbeddedChatPanel; }
46240
46298
  });
46241
46299
  Object.defineProperty(exports, "MessageDetailsModal", {
46242
46300
  enumerable: true,
46243
- get: function () { return chunkC4Z6LOLA_cjs.MessageDetailsModal; }
46301
+ get: function () { return chunkIZNSTFAT_cjs.MessageDetailsModal; }
46244
46302
  });
46245
46303
  Object.defineProperty(exports, "MessageLiveSeconds", {
46246
46304
  enumerable: true,
46247
- get: function () { return chunkC4Z6LOLA_cjs.MessageLiveSeconds; }
46305
+ get: function () { return chunkIZNSTFAT_cjs.MessageLiveSeconds; }
46248
46306
  });
46249
46307
  Object.defineProperty(exports, "PENDING_RECOVERY_KEY", {
46250
46308
  enumerable: true,
46251
- get: function () { return chunkC4Z6LOLA_cjs.PENDING_RECOVERY_KEY; }
46309
+ get: function () { return chunkIZNSTFAT_cjs.PENDING_RECOVERY_KEY; }
46252
46310
  });
46253
46311
  Object.defineProperty(exports, "PREMIUM_TIER_TAG", {
46254
46312
  enumerable: true,
46255
- get: function () { return chunkC4Z6LOLA_cjs.PREMIUM_TIER_TAG; }
46313
+ get: function () { return chunkIZNSTFAT_cjs.PREMIUM_TIER_TAG; }
46256
46314
  });
46257
46315
  Object.defineProperty(exports, "RunningSubagents", {
46258
46316
  enumerable: true,
46259
- get: function () { return chunkC4Z6LOLA_cjs.RunningSubagents; }
46317
+ get: function () { return chunkIZNSTFAT_cjs.RunningSubagents; }
46260
46318
  });
46261
46319
  Object.defineProperty(exports, "STANDARD_TIER_TAG", {
46262
46320
  enumerable: true,
46263
- get: function () { return chunkC4Z6LOLA_cjs.STANDARD_TIER_TAG; }
46321
+ get: function () { return chunkIZNSTFAT_cjs.STANDARD_TIER_TAG; }
46264
46322
  });
46265
46323
  Object.defineProperty(exports, "WorkflowStepMessage", {
46266
46324
  enumerable: true,
46267
- get: function () { return chunkC4Z6LOLA_cjs.WorkflowStepMessage; }
46325
+ get: function () { return chunkIZNSTFAT_cjs.WorkflowStepMessage; }
46268
46326
  });
46269
46327
  Object.defineProperty(exports, "backUpOnSignup", {
46270
46328
  enumerable: true,
46271
- get: function () { return chunkC4Z6LOLA_cjs.backUpOnSignup; }
46329
+ get: function () { return chunkIZNSTFAT_cjs.backUpOnSignup; }
46272
46330
  });
46273
46331
  Object.defineProperty(exports, "createRemoteControl", {
46274
46332
  enumerable: true,
46275
- get: function () { return chunkC4Z6LOLA_cjs.createRemoteControl; }
46333
+ get: function () { return chunkIZNSTFAT_cjs.createRemoteControl; }
46276
46334
  });
46277
46335
  Object.defineProperty(exports, "defaultHost", {
46278
46336
  enumerable: true,
46279
- get: function () { return chunkC4Z6LOLA_cjs.defaultHost; }
46337
+ get: function () { return chunkIZNSTFAT_cjs.defaultHost; }
46280
46338
  });
46281
46339
  Object.defineProperty(exports, "renderConnectedUser", {
46282
46340
  enumerable: true,
46283
- get: function () { return chunkC4Z6LOLA_cjs.renderConnectedUser; }
46341
+ get: function () { return chunkIZNSTFAT_cjs.renderConnectedUser; }
46284
46342
  });
46285
46343
  Object.defineProperty(exports, "renderSessionStatusIcon", {
46286
46344
  enumerable: true,
46287
- get: function () { return chunkC4Z6LOLA_cjs.renderSessionStatusIcon; }
46345
+ get: function () { return chunkIZNSTFAT_cjs.renderSessionStatusIcon; }
46288
46346
  });
46289
46347
  Object.defineProperty(exports, "resolveSsoName", {
46290
46348
  enumerable: true,
46291
- get: function () { return chunkC4Z6LOLA_cjs.resolveSsoName; }
46349
+ get: function () { return chunkIZNSTFAT_cjs.resolveSsoName; }
46292
46350
  });
46293
46351
  Object.defineProperty(exports, "useAuthPages", {
46294
46352
  enumerable: true,
46295
- get: function () { return chunkC4Z6LOLA_cjs.useAuthPages; }
46353
+ get: function () { return chunkIZNSTFAT_cjs.useAuthPages; }
46296
46354
  });
46297
46355
  Object.defineProperty(exports, "useContextualHints", {
46298
46356
  enumerable: true,
46299
- get: function () { return chunkC4Z6LOLA_cjs.useContextualHints; }
46357
+ get: function () { return chunkIZNSTFAT_cjs.useContextualHints; }
46300
46358
  });
46301
46359
  Object.defineProperty(exports, "useModelPicker", {
46302
46360
  enumerable: true,
46303
- get: function () { return chunkC4Z6LOLA_cjs.useModelPicker; }
46361
+ get: function () { return chunkIZNSTFAT_cjs.useModelPicker; }
46304
46362
  });
46305
46363
  Object.defineProperty(exports, "useOpenChunk", {
46306
46364
  enumerable: true,
46307
- get: function () { return chunkC4Z6LOLA_cjs.useOpenChunk; }
46365
+ get: function () { return chunkIZNSTFAT_cjs.useOpenChunk; }
46308
46366
  });
46309
46367
  Object.defineProperty(exports, "useOpenWorkspaceIcon", {
46310
46368
  enumerable: true,
46311
- get: function () { return chunkC4Z6LOLA_cjs.useOpenWorkspaceIcon; }
46369
+ get: function () { return chunkIZNSTFAT_cjs.useOpenWorkspaceIcon; }
46312
46370
  });
46313
46371
  Object.defineProperty(exports, "useRemoteControlActions", {
46314
46372
  enumerable: true,
46315
- get: function () { return chunkC4Z6LOLA_cjs.useRemoteControlActions; }
46373
+ get: function () { return chunkIZNSTFAT_cjs.useRemoteControlActions; }
46316
46374
  });
46317
46375
  Object.defineProperty(exports, "useRemoteControlHandlers", {
46318
46376
  enumerable: true,
46319
- get: function () { return chunkC4Z6LOLA_cjs.useRemoteControlHandlers; }
46377
+ get: function () { return chunkIZNSTFAT_cjs.useRemoteControlHandlers; }
46320
46378
  });
46321
46379
  Object.defineProperty(exports, "useSsoSignIn", {
46322
46380
  enumerable: true,
46323
- get: function () { return chunkC4Z6LOLA_cjs.useSsoSignIn; }
46381
+ get: function () { return chunkIZNSTFAT_cjs.useSsoSignIn; }
46324
46382
  });
46325
46383
  Object.defineProperty(exports, "useWorkspaceDocTitles", {
46326
46384
  enumerable: true,
46327
- get: function () { return chunkC4Z6LOLA_cjs.useWorkspaceDocTitles; }
46385
+ get: function () { return chunkIZNSTFAT_cjs.useWorkspaceDocTitles; }
46328
46386
  });
46329
46387
  Object.defineProperty(exports, "parseTypedSkill", {
46330
46388
  enumerable: true,
@@ -46448,31 +46506,31 @@ Object.defineProperty(exports, "usePendingFolders", {
46448
46506
  });
46449
46507
  Object.defineProperty(exports, "ConnectedMarkdown", {
46450
46508
  enumerable: true,
46451
- get: function () { return chunkSK6LFIU2_cjs.ConnectedMarkdown; }
46509
+ get: function () { return chunkTIBTTITZ_cjs.ConnectedMarkdown; }
46452
46510
  });
46453
46511
  Object.defineProperty(exports, "DocumentWorkspaceContext", {
46454
46512
  enumerable: true,
46455
- get: function () { return chunkSK6LFIU2_cjs.DocumentWorkspaceContext; }
46513
+ get: function () { return chunkTIBTTITZ_cjs.DocumentWorkspaceContext; }
46456
46514
  });
46457
46515
  Object.defineProperty(exports, "ExternalLink", {
46458
46516
  enumerable: true,
46459
- get: function () { return chunkSK6LFIU2_cjs.ExternalLink; }
46517
+ get: function () { return chunkTIBTTITZ_cjs.ExternalLink; }
46460
46518
  });
46461
46519
  Object.defineProperty(exports, "InternalDocLink", {
46462
46520
  enumerable: true,
46463
- get: function () { return chunkSK6LFIU2_cjs.InternalDocLink; }
46521
+ get: function () { return chunkTIBTTITZ_cjs.InternalDocLink; }
46464
46522
  });
46465
46523
  Object.defineProperty(exports, "MermaidDiagram", {
46466
46524
  enumerable: true,
46467
- get: function () { return chunkSK6LFIU2_cjs.MermaidDiagram; }
46525
+ get: function () { return chunkTIBTTITZ_cjs.MermaidDiagram; }
46468
46526
  });
46469
46527
  Object.defineProperty(exports, "WorkspaceDocumentReference", {
46470
46528
  enumerable: true,
46471
- get: function () { return chunkSK6LFIU2_cjs.WorkspaceDocumentReference; }
46529
+ get: function () { return chunkTIBTTITZ_cjs.WorkspaceDocumentReference; }
46472
46530
  });
46473
46531
  Object.defineProperty(exports, "useDocumentWorkspace", {
46474
46532
  enumerable: true,
46475
- get: function () { return chunkSK6LFIU2_cjs.useDocumentWorkspace; }
46533
+ get: function () { return chunkTIBTTITZ_cjs.useDocumentWorkspace; }
46476
46534
  });
46477
46535
  Object.defineProperty(exports, "ConnectedPendingSyncDialog", {
46478
46536
  enumerable: true,
@@ -46540,23 +46598,23 @@ Object.defineProperty(exports, "useDocumentFolders", {
46540
46598
  });
46541
46599
  Object.defineProperty(exports, "ConnectedWorkflowsTable", {
46542
46600
  enumerable: true,
46543
- get: function () { return chunkFABKMTAI_cjs.ConnectedWorkflowsTable; }
46601
+ get: function () { return chunkFRRF2OQ7_cjs.ConnectedWorkflowsTable; }
46544
46602
  });
46545
46603
  Object.defineProperty(exports, "DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS", {
46546
46604
  enumerable: true,
46547
- get: function () { return chunkFABKMTAI_cjs.DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS; }
46605
+ get: function () { return chunkFRRF2OQ7_cjs.DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS; }
46548
46606
  });
46549
46607
  Object.defineProperty(exports, "useConnectedWorkspaceRole", {
46550
46608
  enumerable: true,
46551
- get: function () { return chunkFABKMTAI_cjs.useConnectedWorkspaceRole; }
46609
+ get: function () { return chunkFRRF2OQ7_cjs.useConnectedWorkspaceRole; }
46552
46610
  });
46553
46611
  Object.defineProperty(exports, "useDocxCommentTarget", {
46554
46612
  enumerable: true,
46555
- get: function () { return chunkFABKMTAI_cjs.useDocxCommentTarget; }
46613
+ get: function () { return chunkFRRF2OQ7_cjs.useDocxCommentTarget; }
46556
46614
  });
46557
46615
  Object.defineProperty(exports, "useNativeDocxSupport", {
46558
46616
  enumerable: true,
46559
- get: function () { return chunkFABKMTAI_cjs.useNativeDocxSupport; }
46617
+ get: function () { return chunkFRRF2OQ7_cjs.useNativeDocxSupport; }
46560
46618
  });
46561
46619
  Object.defineProperty(exports, "useOpenWorkflow", {
46562
46620
  enumerable: true,
@@ -46750,6 +46808,7 @@ exports.ConnectedPanelRegistry = ConnectedPanelRegistry;
46750
46808
  exports.ConnectedPeerActions = ConnectedPeerActions;
46751
46809
  exports.ConnectedPeopleMultiSelect = ConnectedPeopleMultiSelect;
46752
46810
  exports.ConnectedPremiumModels = ConnectedPremiumModels;
46811
+ exports.ConnectedPricesPrefetch = ConnectedPricesPrefetch;
46753
46812
  exports.ConnectedPrivacySettings = ConnectedPrivacySettings;
46754
46813
  exports.ConnectedProcessingPanel = ConnectedProcessingPanel;
46755
46814
  exports.ConnectedProcessingStatus = ConnectedProcessingStatus;