@arbidocs/blocks 0.5.128 → 0.5.129
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.
- package/dist/ConnectedCallDock-XJOYVVAH.cjs +1 -1
- package/dist/ConnectedCallRoom-CUDYAPQK.cjs +1 -1
- package/dist/{ConnectedNativeDocxComparison-JUF2TI2P.cjs → ConnectedNativeDocxComparison-7KTAOUE3.cjs} +10 -10
- package/dist/{ConnectedStreamedWordArtifact-Q64DRRQD.cjs.map → ConnectedNativeDocxComparison-7KTAOUE3.cjs.map} +1 -1
- package/dist/ConnectedPresentation-SI3L77J4.cjs +1 -1
- package/dist/{ConnectedProductionSetDialog-LHB4VQWC.cjs → ConnectedProductionSetDialog-4EAY6KAZ.cjs} +3 -3
- package/dist/{ConnectedProductionSetDialog-LHB4VQWC.cjs.map → ConnectedProductionSetDialog-4EAY6KAZ.cjs.map} +1 -1
- package/dist/ConnectedSlidesTab-E76OVY34.cjs +1 -1
- package/dist/{ConnectedStreamedWordArtifact-Q64DRRQD.cjs → ConnectedStreamedWordArtifact-J4MYBABA.cjs} +10 -10
- package/dist/{ConnectedNativeDocxComparison-JUF2TI2P.cjs.map → ConnectedStreamedWordArtifact-J4MYBABA.cjs.map} +1 -1
- package/dist/DocumentReviewCard-M53XFLI2.cjs +1 -1
- package/dist/{FilesViewerDialog-C7XHGK36.cjs → FilesViewerDialog-GGF4WMU4.cjs} +13 -13
- package/dist/{FilesViewerDialog-C7XHGK36.cjs.map → FilesViewerDialog-GGF4WMU4.cjs.map} +1 -1
- package/dist/{WorkspaceTableView-3XYAV4BV.cjs → WorkspaceTableView-CUCTCA2O.cjs} +6 -6
- package/dist/{WorkspaceTableView-3XYAV4BV.cjs.map → WorkspaceTableView-CUCTCA2O.cjs.map} +1 -1
- package/dist/agents/index.cjs +177 -177
- package/dist/ai-IEIR7SC2.cjs +1 -1
- package/dist/calls/index.cjs +1 -1
- package/dist/chat/index.cjs +1 -1
- package/dist/{chunk-VLQCLQAS.cjs → chunk-5GA65VBW.cjs} +5 -5
- package/dist/{chunk-VLQCLQAS.cjs.map → chunk-5GA65VBW.cjs.map} +1 -1
- package/dist/{chunk-ERRXU2HL.cjs → chunk-CNLIXB6S.cjs} +3 -3
- package/dist/{chunk-ERRXU2HL.cjs.map → chunk-CNLIXB6S.cjs.map} +1 -1
- package/dist/{chunk-MXBXZXXQ.cjs → chunk-ENOPKX7E.cjs} +3 -3
- package/dist/{chunk-MXBXZXXQ.cjs.map → chunk-ENOPKX7E.cjs.map} +1 -1
- package/dist/{chunk-E3L5DB5F.cjs → chunk-GEZB3OEC.cjs} +4 -4
- package/dist/{chunk-E3L5DB5F.cjs.map → chunk-GEZB3OEC.cjs.map} +1 -1
- package/dist/{chunk-YP5EBGLU.cjs → chunk-HH5RDNO5.cjs} +23 -23
- package/dist/{chunk-YP5EBGLU.cjs.map → chunk-HH5RDNO5.cjs.map} +1 -1
- package/dist/{chunk-IWMHQTVL.cjs → chunk-I3A6KKWY.cjs} +10 -10
- package/dist/{chunk-IWMHQTVL.cjs.map → chunk-I3A6KKWY.cjs.map} +1 -1
- package/dist/{chunk-NTDQQLDD.cjs → chunk-I7J3ED6P.cjs} +4 -4
- package/dist/{chunk-NTDQQLDD.cjs.map → chunk-I7J3ED6P.cjs.map} +1 -1
- package/dist/{chunk-QG2U2JGX.cjs → chunk-L4CIFLCU.cjs} +4 -4
- package/dist/{chunk-QG2U2JGX.cjs.map → chunk-L4CIFLCU.cjs.map} +1 -1
- package/dist/{chunk-IZJ5L246.cjs → chunk-LXFCED4Z.cjs} +7 -7
- package/dist/{chunk-IZJ5L246.cjs.map → chunk-LXFCED4Z.cjs.map} +1 -1
- package/dist/{chunk-CQQQIZU4.cjs → chunk-NQML7IUC.cjs} +3 -3
- package/dist/{chunk-CQQQIZU4.cjs.map → chunk-NQML7IUC.cjs.map} +1 -1
- package/dist/{chunk-ZQNTYINE.cjs → chunk-U7D6ZDR2.cjs} +12 -12
- package/dist/{chunk-ZQNTYINE.cjs.map → chunk-U7D6ZDR2.cjs.map} +1 -1
- package/dist/{chunk-MMSHIIKG.cjs → chunk-XGTMC54Q.cjs} +4 -4
- package/dist/{chunk-MMSHIIKG.cjs.map → chunk-XGTMC54Q.cjs.map} +1 -1
- package/dist/connect/docx.cjs +13 -13
- package/dist/connect/index.cjs +462 -462
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/viewer.cjs +11 -11
- package/dist/connection/billing/AddAddonDialog.d.ts +2 -2
- package/dist/connection/billing/AddAddonDialog.js.map +1 -1
- package/dist/connection/billing/ConnectedQuotaDialog.d.ts +1 -1
- package/dist/connection/billing/ConnectedQuotaDialog.js.map +1 -1
- package/dist/connection/billing/MonthlySpendCap.js +1 -1
- package/dist/connection/billing/MonthlySpendCap.js.map +1 -1
- package/dist/connection/billing/ProjectBilling.js.map +1 -1
- package/dist/connection/billing/ProjectPurchaseOptions.js +1 -1
- package/dist/connection/billing/ProjectPurchaseOptions.js.map +1 -1
- package/dist/connection/billing/ProjectUsageCard.js +1 -1
- package/dist/connection/billing/ProjectUsageCard.js.map +1 -1
- package/dist/connection/billing/ReduceAddonDialog.d.ts +1 -1
- package/dist/connection/billing/ReduceAddonDialog.js.map +1 -1
- package/dist/connection/billing/StripeCheckoutModal.d.ts +1 -1
- package/dist/connection/billing/StripeCheckoutModal.js.map +1 -1
- package/dist/connection/billing/addon-pricing.d.ts +4 -4
- package/dist/connection/billing/addon-pricing.js.map +1 -1
- package/dist/connection/billing/plan-constants.d.ts +3 -3
- package/dist/connection/billing/plan-constants.js +2 -2
- package/dist/connection/billing/plan-constants.js.map +1 -1
- package/dist/connection/billing/plan-pricing.d.ts +2 -2
- package/dist/connection/billing/plan-pricing.js.map +1 -1
- package/dist/connection/billing/useAddonPurchase.d.ts +1 -1
- package/dist/connection/billing/useAddonPurchase.js.map +1 -1
- package/dist/embed/index.cjs +13 -13
- package/dist/facts/index.cjs +43 -43
- package/dist/index.cjs +283 -283
- package/dist/settings/index.cjs +1 -1
- package/dist/site/index.cjs +5 -5
- package/dist/studio/index.cjs +2 -2
- package/dist/workflow-canvas/index.cjs +19 -19
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
package/dist/connect/index.cjs
CHANGED
|
@@ -3,30 +3,33 @@
|
|
|
3
3
|
|
|
4
4
|
var chunkVWBYE3XY_cjs = require('../chunk-VWBYE3XY.cjs');
|
|
5
5
|
var chunk6OK7ESTL_cjs = require('../chunk-6OK7ESTL.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkGEZB3OEC_cjs = require('../chunk-GEZB3OEC.cjs');
|
|
7
7
|
var chunkVWTOIGX4_cjs = require('../chunk-VWTOIGX4.cjs');
|
|
8
8
|
var chunkMLA2BJ2Y_cjs = require('../chunk-MLA2BJ2Y.cjs');
|
|
9
9
|
var chunkPSIKUQYM_cjs = require('../chunk-PSIKUQYM.cjs');
|
|
10
10
|
var chunk5GCCUXMT_cjs = require('../chunk-5GCCUXMT.cjs');
|
|
11
11
|
var chunk7L4X6QN2_cjs = require('../chunk-7L4X6QN2.cjs');
|
|
12
|
-
var
|
|
12
|
+
var chunkHH5RDNO5_cjs = require('../chunk-HH5RDNO5.cjs');
|
|
13
13
|
var chunkCMGNRMPA_cjs = require('../chunk-CMGNRMPA.cjs');
|
|
14
14
|
var chunkYZ6YOOTF_cjs = require('../chunk-YZ6YOOTF.cjs');
|
|
15
15
|
var chunkKWJW5TMH_cjs = require('../chunk-KWJW5TMH.cjs');
|
|
16
|
-
var
|
|
16
|
+
var chunkI3A6KKWY_cjs = require('../chunk-I3A6KKWY.cjs');
|
|
17
17
|
var chunkXF355M7O_cjs = require('../chunk-XF355M7O.cjs');
|
|
18
18
|
var chunk2F57IO7S_cjs = require('../chunk-2F57IO7S.cjs');
|
|
19
19
|
var chunk7NLO7ASW_cjs = require('../chunk-7NLO7ASW.cjs');
|
|
20
20
|
var chunk7PN3YENO_cjs = require('../chunk-7PN3YENO.cjs');
|
|
21
21
|
var chunkUFT22LAB_cjs = require('../chunk-UFT22LAB.cjs');
|
|
22
|
-
var chunkMXBXZXXQ_cjs = require('../chunk-MXBXZXXQ.cjs');
|
|
23
|
-
var chunkTJY7XPDE_cjs = require('../chunk-TJY7XPDE.cjs');
|
|
24
22
|
var chunkH7PHOTX2_cjs = require('../chunk-H7PHOTX2.cjs');
|
|
25
23
|
var chunkE5TPRRAW_cjs = require('../chunk-E5TPRRAW.cjs');
|
|
26
24
|
require('../chunk-UMMZNZV3.cjs');
|
|
27
25
|
require('../chunk-AEQT2QQX.cjs');
|
|
26
|
+
var chunkENOPKX7E_cjs = require('../chunk-ENOPKX7E.cjs');
|
|
27
|
+
var chunkTJY7XPDE_cjs = require('../chunk-TJY7XPDE.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,18 +37,18 @@ var chunkPL7HUTM3_cjs = require('../chunk-PL7HUTM3.cjs');
|
|
|
34
37
|
var chunkQWVUBTW3_cjs = require('../chunk-QWVUBTW3.cjs');
|
|
35
38
|
var chunkJVEDKKNO_cjs = require('../chunk-JVEDKKNO.cjs');
|
|
36
39
|
var chunkADDQKZ5I_cjs = require('../chunk-ADDQKZ5I.cjs');
|
|
37
|
-
var
|
|
40
|
+
var chunkCNLIXB6S_cjs = require('../chunk-CNLIXB6S.cjs');
|
|
38
41
|
var chunk5QERK4PK_cjs = require('../chunk-5QERK4PK.cjs');
|
|
39
42
|
var chunkT73BHNQX_cjs = require('../chunk-T73BHNQX.cjs');
|
|
40
43
|
require('../chunk-HYUKPHCT.cjs');
|
|
41
44
|
var chunkALK3PUUB_cjs = require('../chunk-ALK3PUUB.cjs');
|
|
42
45
|
var chunk223D4727_cjs = require('../chunk-223D4727.cjs');
|
|
43
46
|
var chunkSNUBQMIS_cjs = require('../chunk-SNUBQMIS.cjs');
|
|
44
|
-
var
|
|
45
|
-
var chunk4ONPEVTP_cjs = require('../chunk-4ONPEVTP.cjs');
|
|
46
|
-
require('../chunk-V3KLUWQQ.cjs');
|
|
47
|
+
var chunk5GA65VBW_cjs = require('../chunk-5GA65VBW.cjs');
|
|
47
48
|
var chunkP5AQYC4D_cjs = require('../chunk-P5AQYC4D.cjs');
|
|
48
49
|
var chunkWAV762GP_cjs = require('../chunk-WAV762GP.cjs');
|
|
50
|
+
var chunk4ONPEVTP_cjs = require('../chunk-4ONPEVTP.cjs');
|
|
51
|
+
require('../chunk-V3KLUWQQ.cjs');
|
|
49
52
|
var chunkLVIQWRC5_cjs = require('../chunk-LVIQWRC5.cjs');
|
|
50
53
|
var chunkUZHWXKS6_cjs = require('../chunk-UZHWXKS6.cjs');
|
|
51
54
|
require('../chunk-PBPO54KZ.cjs');
|
|
@@ -55,18 +58,19 @@ require('../chunk-JH6JTI76.cjs');
|
|
|
55
58
|
var chunkQQMMCXBP_cjs = require('../chunk-QQMMCXBP.cjs');
|
|
56
59
|
require('../chunk-DTMBAFIL.cjs');
|
|
57
60
|
require('../chunk-ZESMRGDV.cjs');
|
|
58
|
-
var
|
|
61
|
+
var chunkLXFCED4Z_cjs = require('../chunk-LXFCED4Z.cjs');
|
|
59
62
|
var chunkSGYSDABK_cjs = require('../chunk-SGYSDABK.cjs');
|
|
60
63
|
require('../chunk-NEGFHF3V.cjs');
|
|
61
64
|
var chunkZ3LFF3YT_cjs = require('../chunk-Z3LFF3YT.cjs');
|
|
62
65
|
var chunkI6GEQWIV_cjs = require('../chunk-I6GEQWIV.cjs');
|
|
63
66
|
var chunk4B6HYQTW_cjs = require('../chunk-4B6HYQTW.cjs');
|
|
64
|
-
var chunkADMNU2CR_cjs = require('../chunk-ADMNU2CR.cjs');
|
|
65
67
|
require('../chunk-PCB2BPN3.cjs');
|
|
68
|
+
var chunkADMNU2CR_cjs = require('../chunk-ADMNU2CR.cjs');
|
|
66
69
|
var chunkNX56DIG3_cjs = require('../chunk-NX56DIG3.cjs');
|
|
67
70
|
var chunkGNX3FBBX_cjs = require('../chunk-GNX3FBBX.cjs');
|
|
68
71
|
var chunkTXP2N3DC_cjs = require('../chunk-TXP2N3DC.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 chunkIWHP7FAB_cjs = require('../chunk-IWHP7FAB.cjs');
|
|
@@ -79,8 +83,6 @@ require('../chunk-WQMR3O2D.cjs');
|
|
|
79
83
|
var chunkORELHENJ_cjs = require('../chunk-ORELHENJ.cjs');
|
|
80
84
|
require('../chunk-NWNVWO6L.cjs');
|
|
81
85
|
require('../chunk-SK6HQ46Q.cjs');
|
|
82
|
-
var chunkMNIQDXM6_cjs = require('../chunk-MNIQDXM6.cjs');
|
|
83
|
-
var chunkE3Y7RI3J_cjs = require('../chunk-E3Y7RI3J.cjs');
|
|
84
86
|
require('../chunk-TG2GM7WJ.cjs');
|
|
85
87
|
var chunkZYGAXD3N_cjs = require('../chunk-ZYGAXD3N.cjs');
|
|
86
88
|
var chunkULPTSXXO_cjs = require('../chunk-ULPTSXXO.cjs');
|
|
@@ -88,7 +90,7 @@ var chunkZU2B2RZK_cjs = require('../chunk-ZU2B2RZK.cjs');
|
|
|
88
90
|
var chunkNSD37OF5_cjs = require('../chunk-NSD37OF5.cjs');
|
|
89
91
|
require('../chunk-OEJQFPWO.cjs');
|
|
90
92
|
require('../chunk-BQOL4XNZ.cjs');
|
|
91
|
-
var
|
|
93
|
+
var chunkNQML7IUC_cjs = require('../chunk-NQML7IUC.cjs');
|
|
92
94
|
var chunkQECKDZ47_cjs = require('../chunk-QECKDZ47.cjs');
|
|
93
95
|
var chunkTP5PGWIO_cjs = require('../chunk-TP5PGWIO.cjs');
|
|
94
96
|
require('../chunk-I4IS6ST6.cjs');
|
|
@@ -102,20 +104,16 @@ require('../chunk-3YEXZX4H.cjs');
|
|
|
102
104
|
var chunk4PA6VCCR_cjs = require('../chunk-4PA6VCCR.cjs');
|
|
103
105
|
require('../chunk-WXUU3COI.cjs');
|
|
104
106
|
require('../chunk-AHDJXIUB.cjs');
|
|
107
|
+
var chunkYVCOQHCE_cjs = require('../chunk-YVCOQHCE.cjs');
|
|
105
108
|
var chunkRL2HI6NP_cjs = require('../chunk-RL2HI6NP.cjs');
|
|
106
109
|
var chunk6UZC4XVV_cjs = require('../chunk-6UZC4XVV.cjs');
|
|
107
|
-
var
|
|
110
|
+
var chunkVZOOGA47_cjs = require('../chunk-VZOOGA47.cjs');
|
|
108
111
|
var chunkJV5TVUOU_cjs = require('../chunk-JV5TVUOU.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 chunkBQ5RIWWT_cjs = require('../chunk-BQ5RIWWT.cjs');
|
|
120
118
|
require('../chunk-OAIOOVFN.cjs');
|
|
121
119
|
var chunkVJCSEMXT_cjs = require('../chunk-VJCSEMXT.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 chunkE3Y7RI3J_cjs = require('../chunk-E3Y7RI3J.cjs');
|
|
156
157
|
var chunkTKHCIHE2_cjs = require('../chunk-TKHCIHE2.cjs');
|
|
157
158
|
var chunkJDFBEGQO_cjs = require('../chunk-JDFBEGQO.cjs');
|
|
158
159
|
var chunkULWRNGGE_cjs = require('../chunk-ULWRNGGE.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
|
-
|
|
268
|
+
chunkLXFCED4Z_cjs.WorkspaceActivityList,
|
|
269
269
|
{
|
|
270
270
|
...listProps,
|
|
271
271
|
items,
|
|
@@ -1587,7 +1587,7 @@ function ConnectedSkillUpload({ onDone, labels, className }) {
|
|
|
1587
1587
|
onChange: (e) => {
|
|
1588
1588
|
const file = e.target.files?.[0];
|
|
1589
1589
|
e.target.value = "";
|
|
1590
|
-
if (file) void add(() =>
|
|
1590
|
+
if (file) void add(() => chunkNQML7IUC_cjs.importSkillFile(file));
|
|
1591
1591
|
}
|
|
1592
1592
|
}
|
|
1593
1593
|
),
|
|
@@ -1612,7 +1612,7 @@ function ConnectedSkillUpload({ onDone, labels, className }) {
|
|
|
1612
1612
|
className: "space-y-2",
|
|
1613
1613
|
onSubmit: (e) => {
|
|
1614
1614
|
e.preventDefault();
|
|
1615
|
-
if (url.trim()) void add(() =>
|
|
1615
|
+
if (url.trim()) void add(() => chunkNQML7IUC_cjs.importSkillFromUrl(url));
|
|
1616
1616
|
},
|
|
1617
1617
|
children: [
|
|
1618
1618
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "skills-add-url", children: l.fromLink }),
|
|
@@ -1680,9 +1680,9 @@ function ConnectedSkillsLibrary({
|
|
|
1680
1680
|
const [type, setType] = react$1.useState("all");
|
|
1681
1681
|
const [view, setView] = react$1.useState("gallery");
|
|
1682
1682
|
const [isBusy, setIsBusy] = react$1.useState(false);
|
|
1683
|
-
const all = react$1.useMemo(() =>
|
|
1683
|
+
const all = react$1.useMemo(() => chunkNQML7IUC_cjs.buildLibrarySkills(builtins, listings ?? []), [builtins, listings]);
|
|
1684
1684
|
const shown = react$1.useMemo(
|
|
1685
|
-
() =>
|
|
1685
|
+
() => chunkNQML7IUC_cjs.filterLibrarySkills(all, { query, source, type }),
|
|
1686
1686
|
[all, query, source, type]
|
|
1687
1687
|
);
|
|
1688
1688
|
const current = all.find((s) => s.slug === selected) ?? null;
|
|
@@ -1693,21 +1693,21 @@ function ConnectedSkillsLibrary({
|
|
|
1693
1693
|
const count2 = (s) => all.filter((x) => x.source === s).length;
|
|
1694
1694
|
const sourceOptions = [
|
|
1695
1695
|
{ id: "all", label: "All", count: all.length },
|
|
1696
|
-
{ id: "builtin", label:
|
|
1697
|
-
{ id: "mine", label:
|
|
1698
|
-
{ id: "shared", label:
|
|
1696
|
+
{ id: "builtin", label: chunkNQML7IUC_cjs.SKILL_SOURCE_LABELS.builtin, count: count2("builtin") },
|
|
1697
|
+
{ id: "mine", label: chunkNQML7IUC_cjs.SKILL_SOURCE_LABELS.mine, count: count2("mine") },
|
|
1698
|
+
{ id: "shared", label: chunkNQML7IUC_cjs.SKILL_SOURCE_LABELS.shared, count: count2("shared") }
|
|
1699
1699
|
];
|
|
1700
1700
|
const types = [...new Set(all.map((s) => s.type))];
|
|
1701
1701
|
const typeOptions = [
|
|
1702
1702
|
{ id: "all", label: "Any kind" },
|
|
1703
|
-
...types.map((t) => ({ id: t, label:
|
|
1703
|
+
...types.map((t) => ({ id: t, label: chunkNQML7IUC_cjs.SKILL_TYPE_LABELS[t] ?? t }))
|
|
1704
1704
|
];
|
|
1705
1705
|
const pick = (slug) => {
|
|
1706
1706
|
setSelected(slug);
|
|
1707
1707
|
setMode("detail");
|
|
1708
1708
|
};
|
|
1709
1709
|
const markdownOf = async (skill) => {
|
|
1710
|
-
if (!skill.docExtId) return
|
|
1710
|
+
if (!skill.docExtId) return chunkNQML7IUC_cjs.workflowToSkillMarkdown(skill.workflow);
|
|
1711
1711
|
const response = await arbi.documents.download(skill.docExtId);
|
|
1712
1712
|
if (!response.ok) throw new Error(`Could not read the skill (${response.status})`);
|
|
1713
1713
|
return response.text();
|
|
@@ -1771,7 +1771,7 @@ function ConnectedSkillsLibrary({
|
|
|
1771
1771
|
try {
|
|
1772
1772
|
documentTools.downloadBlob(
|
|
1773
1773
|
new Blob([await markdownOf(skill)], { type: "text/markdown" }),
|
|
1774
|
-
|
|
1774
|
+
chunkNQML7IUC_cjs.SKILL_MAIN_FILENAME
|
|
1775
1775
|
);
|
|
1776
1776
|
} catch (error) {
|
|
1777
1777
|
notify19(errorText(error, "Could not export the skill"), "error");
|
|
@@ -1812,10 +1812,10 @@ function ConnectedSkillsLibrary({
|
|
|
1812
1812
|
}
|
|
1813
1813
|
)
|
|
1814
1814
|
] }),
|
|
1815
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1815
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.SkillViewToggle, { value: view, onChange: setView })
|
|
1816
1816
|
] }),
|
|
1817
1817
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1818
|
-
|
|
1818
|
+
chunkNQML7IUC_cjs.SkillFilterChips,
|
|
1819
1819
|
{
|
|
1820
1820
|
label: "Show",
|
|
1821
1821
|
value: source,
|
|
@@ -1824,7 +1824,7 @@ function ConnectedSkillsLibrary({
|
|
|
1824
1824
|
}
|
|
1825
1825
|
),
|
|
1826
1826
|
types.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1827
|
-
|
|
1827
|
+
chunkNQML7IUC_cjs.SkillFilterChips,
|
|
1828
1828
|
{
|
|
1829
1829
|
label: "Kind",
|
|
1830
1830
|
value: type,
|
|
@@ -1871,12 +1871,12 @@ function ConnectedSkillsLibrary({
|
|
|
1871
1871
|
view === "gallery" ? "grid grid-cols-[repeat(auto-fill,minmax(9.5rem,1fr))]" : "flex flex-col"
|
|
1872
1872
|
),
|
|
1873
1873
|
children: shown.map((skill) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1874
|
-
|
|
1874
|
+
chunkNQML7IUC_cjs.SkillTile,
|
|
1875
1875
|
{
|
|
1876
1876
|
name: skill.title,
|
|
1877
1877
|
testId: `skill-tile-${skill.slug}`,
|
|
1878
1878
|
description: skill.description,
|
|
1879
|
-
sourceLabel: skill.isShared ? `${
|
|
1879
|
+
sourceLabel: skill.isShared ? `${chunkNQML7IUC_cjs.SKILL_SOURCE_LABELS.mine}, shared` : chunkNQML7IUC_cjs.SKILL_SOURCE_LABELS[skill.source],
|
|
1880
1880
|
type: skill.type,
|
|
1881
1881
|
icon,
|
|
1882
1882
|
layout: view,
|
|
@@ -1911,7 +1911,7 @@ function ConnectedSkillsLibrary({
|
|
|
1911
1911
|
}
|
|
1912
1912
|
),
|
|
1913
1913
|
mode === "new" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1914
|
-
|
|
1914
|
+
chunkNQML7IUC_cjs.SkillGenerateForm,
|
|
1915
1915
|
{
|
|
1916
1916
|
icon,
|
|
1917
1917
|
onGenerate: (desc) => {
|
|
@@ -1938,11 +1938,11 @@ function ConnectedSkillsLibrary({
|
|
|
1938
1938
|
),
|
|
1939
1939
|
mode === "add" && /* @__PURE__ */ jsxRuntime.jsx(ConnectedSkillUpload, { onDone: done }),
|
|
1940
1940
|
mode === "detail" && current && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1941
|
-
|
|
1941
|
+
chunkNQML7IUC_cjs.SkillLibraryDetail,
|
|
1942
1942
|
{
|
|
1943
1943
|
skill: current,
|
|
1944
1944
|
icon,
|
|
1945
|
-
instructions: current.docExtId ? currentText ?
|
|
1945
|
+
instructions: current.docExtId ? currentText ? chunkNQML7IUC_cjs.parseSkillFrontmatter(currentText, chunkNQML7IUC_cjs.SKILL_MAIN_FILENAME).content : "" : current.workflow.run.kind === "prompt" ? current.workflow.run.promptTemplate : "",
|
|
1946
1946
|
isLoading: !!current.docExtId && textLoading,
|
|
1947
1947
|
actions: {
|
|
1948
1948
|
onRun: () => onRun(current.slug),
|
|
@@ -1977,7 +1977,7 @@ function SkillEditor({
|
|
|
1977
1977
|
const [seeded, setSeeded] = react$1.useState(!isEditing);
|
|
1978
1978
|
const [nameError, setNameError] = react$1.useState(null);
|
|
1979
1979
|
if (isEditing && !seeded && text !== void 0) {
|
|
1980
|
-
const parsed =
|
|
1980
|
+
const parsed = chunkNQML7IUC_cjs.parseSkillFrontmatter(text, chunkNQML7IUC_cjs.SKILL_MAIN_FILENAME);
|
|
1981
1981
|
setDescription(parsed.description ?? "");
|
|
1982
1982
|
setBody(parsed.content ?? "");
|
|
1983
1983
|
setSeeded(true);
|
|
@@ -1991,15 +1991,15 @@ function SkillEditor({
|
|
|
1991
1991
|
notify19("Add a short description.", "error");
|
|
1992
1992
|
return;
|
|
1993
1993
|
}
|
|
1994
|
-
const slug =
|
|
1994
|
+
const slug = chunkNQML7IUC_cjs.skillSlug(name);
|
|
1995
1995
|
try {
|
|
1996
|
-
await onSave(slug,
|
|
1996
|
+
await onSave(slug, chunkNQML7IUC_cjs.serializeSkill({ name: slug, description, body }), isEditing);
|
|
1997
1997
|
} catch (err) {
|
|
1998
1998
|
notify19(errorText(err, "Could not save the skill"), "error");
|
|
1999
1999
|
}
|
|
2000
2000
|
};
|
|
2001
2001
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2002
|
-
|
|
2002
|
+
chunkNQML7IUC_cjs.SkillEditForm,
|
|
2003
2003
|
{
|
|
2004
2004
|
name,
|
|
2005
2005
|
onNameChange: setName,
|
|
@@ -2092,7 +2092,7 @@ function ConnectedSkillsBrowser({
|
|
|
2092
2092
|
}
|
|
2093
2093
|
) }),
|
|
2094
2094
|
runSkillId && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2095
|
-
|
|
2095
|
+
chunkHH5RDNO5_cjs.ConnectedTaskComposer,
|
|
2096
2096
|
{
|
|
2097
2097
|
kind: "workflow",
|
|
2098
2098
|
open: true,
|
|
@@ -2116,9 +2116,9 @@ function ConnectedAgentCreator({
|
|
|
2116
2116
|
agent,
|
|
2117
2117
|
initialName,
|
|
2118
2118
|
onSaved,
|
|
2119
|
-
capabilities =
|
|
2120
|
-
templates =
|
|
2121
|
-
types =
|
|
2119
|
+
capabilities = chunkNQML7IUC_cjs.DEFAULT_AGENT_CAPABILITIES,
|
|
2120
|
+
templates = chunkNQML7IUC_cjs.DEFAULT_AGENT_TEMPLATES,
|
|
2121
|
+
types = chunkNQML7IUC_cjs.DEFAULT_AGENT_TYPES,
|
|
2122
2122
|
canRevokeWorkspaces = false,
|
|
2123
2123
|
labels
|
|
2124
2124
|
}) {
|
|
@@ -2160,7 +2160,7 @@ function ConnectedAgentCreator({
|
|
|
2160
2160
|
const initialValues = react$1.useMemo(
|
|
2161
2161
|
() => ({
|
|
2162
2162
|
name: agent?.given_name ?? initialName ?? "",
|
|
2163
|
-
persona: isEdit ?
|
|
2163
|
+
persona: isEdit ? chunkNQML7IUC_cjs.stripPersonaPreamble(String(agents.PERSONA ?? "")) : "",
|
|
2164
2164
|
modelName: String(agents.AGENT_MODEL_NAME ?? ""),
|
|
2165
2165
|
capabilities: Object.fromEntries(capabilities.map(({ key }) => [key, Boolean(agents[key])])),
|
|
2166
2166
|
type: "builtin",
|
|
@@ -2179,7 +2179,7 @@ function ConnectedAgentCreator({
|
|
|
2179
2179
|
try {
|
|
2180
2180
|
let agentExtId = agent?.external_id ?? early?.id ?? "";
|
|
2181
2181
|
if (!agentExtId) {
|
|
2182
|
-
if (!
|
|
2182
|
+
if (!chunkNQML7IUC_cjs.isValidAgentName(values.name)) {
|
|
2183
2183
|
notify19("Give the agent a name first.", "error");
|
|
2184
2184
|
return;
|
|
2185
2185
|
}
|
|
@@ -2215,7 +2215,7 @@ function ConnectedAgentCreator({
|
|
|
2215
2215
|
title: `agent-${name}`,
|
|
2216
2216
|
sections: {
|
|
2217
2217
|
Agents: {
|
|
2218
|
-
PERSONA:
|
|
2218
|
+
PERSONA: chunkNQML7IUC_cjs.composePersona(name, values.persona),
|
|
2219
2219
|
...values.modelName ? { AGENT_MODEL_NAME: values.modelName } : {},
|
|
2220
2220
|
...Object.fromEntries(capabilities.map(({ key }) => [key, !!values.capabilities[key]])),
|
|
2221
2221
|
ENABLED_SKILLS: values.capabilities.SKILLS_ENABLED && skills.length ? skills : null,
|
|
@@ -2238,7 +2238,7 @@ function ConnectedAgentCreator({
|
|
|
2238
2238
|
};
|
|
2239
2239
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2240
2240
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2241
|
-
|
|
2241
|
+
chunkNQML7IUC_cjs.AgentCreator,
|
|
2242
2242
|
{
|
|
2243
2243
|
open: ready,
|
|
2244
2244
|
onOpenChange,
|
|
@@ -2254,11 +2254,11 @@ function ConnectedAgentCreator({
|
|
|
2254
2254
|
) : void 0,
|
|
2255
2255
|
revokingWorkspaceId: revokeAccess.isPending ? revokeAccess.variables?.workspaceId : void 0,
|
|
2256
2256
|
avatar: (values) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2257
|
-
|
|
2257
|
+
chunkNQML7IUC_cjs.AgentAvatarField,
|
|
2258
2258
|
{
|
|
2259
2259
|
picture,
|
|
2260
2260
|
isBusy: avatarBusy,
|
|
2261
|
-
canGenerate: isEdit ||
|
|
2261
|
+
canGenerate: isEdit || chunkNQML7IUC_cjs.isValidAgentName(values.name),
|
|
2262
2262
|
onGenerate: () => handleGenerateAvatar(values)
|
|
2263
2263
|
}
|
|
2264
2264
|
),
|
|
@@ -2310,7 +2310,7 @@ function ConnectedAgentCreator({
|
|
|
2310
2310
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { children: "Connect your agent" }),
|
|
2311
2311
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogDescription, { children: "This key is shown once. Run the script on the machine that will host the agent." })
|
|
2312
2312
|
] }),
|
|
2313
|
-
connect && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2313
|
+
connect && /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.AgentConnectInstructions, { email: connect.email, signingKey: connect.signingKey })
|
|
2314
2314
|
]
|
|
2315
2315
|
}
|
|
2316
2316
|
) })
|
|
@@ -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(
|
|
2460
|
+
renderContent: (message) => /* @__PURE__ */ jsxRuntime.jsx(chunkCNLIXB6S_cjs.DocumentWorkspaceContext.Provider, { value: workspaceId, children: /* @__PURE__ */ jsxRuntime.jsx(chunkCNLIXB6S_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 } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
2705
|
-
const people =
|
|
2705
|
+
const people = chunkHH5RDNO5_cjs.useTaskPeople();
|
|
2706
2706
|
const canEditShared = react.useCanEditShared();
|
|
2707
2707
|
const isWorkspaceOwner = react.useIsWorkspaceOwner();
|
|
2708
2708
|
const { data: workflows = [] } = react.useWorkflows({ live: true });
|
|
@@ -2728,7 +2728,7 @@ function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
|
|
|
2728
2728
|
}, [documents]);
|
|
2729
2729
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2730
2730
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2731
|
-
|
|
2731
|
+
chunkNQML7IUC_cjs.TaskTable,
|
|
2732
2732
|
{
|
|
2733
2733
|
tasks,
|
|
2734
2734
|
isLoading,
|
|
@@ -2755,7 +2755,7 @@ function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
|
|
|
2755
2755
|
}
|
|
2756
2756
|
),
|
|
2757
2757
|
activityFor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2758
|
-
|
|
2758
|
+
chunkHH5RDNO5_cjs.ConnectedTaskActivityDialog,
|
|
2759
2759
|
{
|
|
2760
2760
|
conversationId: activityFor.external_id,
|
|
2761
2761
|
taskName: activityFor.title || l.untitledTask,
|
|
@@ -2794,7 +2794,7 @@ function AgentsLauncher({ workflows, renderIcon, labels: l, testId }) {
|
|
|
2794
2794
|
[workflows, skills, l.skillFiles]
|
|
2795
2795
|
);
|
|
2796
2796
|
const launch = async ({ workflow, inputs, agentId }) => {
|
|
2797
|
-
const values =
|
|
2797
|
+
const values = chunkNQML7IUC_cjs.defaultTaskComposerValues(launchable, {
|
|
2798
2798
|
workflowId: workflow.id,
|
|
2799
2799
|
assignee: "agent",
|
|
2800
2800
|
inputs,
|
|
@@ -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
|
-
|
|
2917
|
+
chunkHH5RDNO5_cjs.ConnectedTaskComposer,
|
|
2918
2918
|
{
|
|
2919
2919
|
open: true,
|
|
2920
2920
|
onOpenChange: (open) => !open && setTaskDialog(null),
|
|
@@ -2936,7 +2936,7 @@ function AgentsGallery() {
|
|
|
2936
2936
|
cardTestIds
|
|
2937
2937
|
} = agentOptions;
|
|
2938
2938
|
const { openConversation } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
2939
|
-
const tasksByAgent = react$1.useMemo(() =>
|
|
2939
|
+
const tasksByAgent = react$1.useMemo(() => chunkNQML7IUC_cjs.groupAgentTasks(tasks), [tasks]);
|
|
2940
2940
|
const behaviour = useAgentBehaviour(l.defaultBehaviour, details.includes("behaviour"));
|
|
2941
2941
|
const { agents } = management;
|
|
2942
2942
|
const cardDetails = (agent) => details.map(
|
|
@@ -2951,7 +2951,7 @@ function AgentsGallery() {
|
|
|
2951
2951
|
) : detail === "workspaces" ? /* @__PURE__ */ jsxRuntime.jsx(AgentWorkspaceAccess, { agentExtId: agent.external_id, labels: l }, detail) : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: behaviour.behaviourOf(agent.given_name) }, detail)
|
|
2952
2952
|
);
|
|
2953
2953
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2954
|
-
|
|
2954
|
+
chunkNQML7IUC_cjs.AgentGallery,
|
|
2955
2955
|
{
|
|
2956
2956
|
count: agents.length,
|
|
2957
2957
|
onCreate: management.create,
|
|
@@ -2961,9 +2961,9 @@ function AgentsGallery() {
|
|
|
2961
2961
|
const agentTasks = tasksByAgent.get(agent.external_id) ?? [];
|
|
2962
2962
|
const running = agentTasks.filter((t) => t.in_progress);
|
|
2963
2963
|
const watchConversationId = running[0]?.external_id ?? null;
|
|
2964
|
-
const progress = agentTasks[0] ?
|
|
2964
|
+
const progress = agentTasks[0] ? chunkNQML7IUC_cjs.goalProgress(agentTasks[0]) : null;
|
|
2965
2965
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2966
|
-
|
|
2966
|
+
chunkNQML7IUC_cjs.AgentCard,
|
|
2967
2967
|
{
|
|
2968
2968
|
name: displayName(agent),
|
|
2969
2969
|
avatar: /* @__PURE__ */ jsxRuntime.jsx(AgentInitialsAvatar, { agent }),
|
|
@@ -3071,7 +3071,7 @@ function AgentsSectionBody({ id }) {
|
|
|
3071
3071
|
) });
|
|
3072
3072
|
case "scheduled":
|
|
3073
3073
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-[min(32rem,70dvh)] min-h-64 flex-col", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3074
|
-
|
|
3074
|
+
chunk5GA65VBW_cjs.ConnectedWorkflowsTable,
|
|
3075
3075
|
{
|
|
3076
3076
|
filter: "scheduled",
|
|
3077
3077
|
onEdit: (w) => openWorkflow?.(w.external_id),
|
|
@@ -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 =
|
|
3378
|
+
const bytes = chunkLXFCED4Z_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
|
-
|
|
3387
|
+
chunkLXFCED4Z_cjs.TagTable,
|
|
3388
3388
|
{
|
|
3389
3389
|
...props,
|
|
3390
3390
|
table,
|
|
@@ -3761,9 +3761,9 @@ function GlossaryExport({ labelId, nameOf }) {
|
|
|
3761
3761
|
const narrowed = agreements.find((a) => a.id === narrowTo);
|
|
3762
3762
|
const title = narrowed ? `Glossary - ${narrowed.name}` : "Glossary";
|
|
3763
3763
|
const download = (format) => {
|
|
3764
|
-
const entries =
|
|
3765
|
-
const blob = format === "docx" ? new Blob([
|
|
3766
|
-
documentTools.downloadBlob(blob,
|
|
3764
|
+
const entries = chunkLXFCED4Z_cjs.glossaryEntries(sources, { labelId: narrowed?.id });
|
|
3765
|
+
const blob = format === "docx" ? new Blob([chunkLXFCED4Z_cjs.glossaryDocx(entries, { title })], { type: chunkUKOYN2WD_cjs.DOCX_MIME_TYPE }) : new Blob([chunkLXFCED4Z_cjs.glossaryMarkdown(entries, { title })], { type: "text/markdown" });
|
|
3766
|
+
documentTools.downloadBlob(blob, chunkLXFCED4Z_cjs.glossaryFileName(title, format));
|
|
3767
3767
|
};
|
|
3768
3768
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", "data-testid": "tags-glossary", children: [
|
|
3769
3769
|
agreements.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -4292,7 +4292,7 @@ function KindSection({
|
|
|
4292
4292
|
{
|
|
4293
4293
|
testId: `tags-kind-${kind}`,
|
|
4294
4294
|
title: ui.tagKindTitle(kind, { plural: true }),
|
|
4295
|
-
description:
|
|
4295
|
+
description: chunkLXFCED4Z_cjs.tagKindDescription(kind),
|
|
4296
4296
|
children: [
|
|
4297
4297
|
browser.isEntityTag({ kind }) && extractingCount > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4298
4298
|
"p",
|
|
@@ -4302,9 +4302,9 @@ function KindSection({
|
|
|
4302
4302
|
children: [
|
|
4303
4303
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-4 animate-spin" }),
|
|
4304
4304
|
"Extracting ",
|
|
4305
|
-
|
|
4305
|
+
chunkLXFCED4Z_cjs.entitiesPhrase().toLowerCase(),
|
|
4306
4306
|
" from ",
|
|
4307
|
-
|
|
4307
|
+
chunkLXFCED4Z_cjs.documentCount(extractingCount),
|
|
4308
4308
|
"\u2026"
|
|
4309
4309
|
]
|
|
4310
4310
|
}
|
|
@@ -4322,7 +4322,7 @@ function KindSection({
|
|
|
4322
4322
|
onOpenTag: ctx.onOpenTag,
|
|
4323
4323
|
onOpenRow: ctx.onOpenTag,
|
|
4324
4324
|
onOpenTaggedItems: ctx.onOpenTaggedItems,
|
|
4325
|
-
labels:
|
|
4325
|
+
labels: chunkLXFCED4Z_cjs.tagTableLabels(kind),
|
|
4326
4326
|
testId: `tags-table-${kind}`
|
|
4327
4327
|
}
|
|
4328
4328
|
)
|
|
@@ -4430,15 +4430,15 @@ function TagSection({
|
|
|
4430
4430
|
onOpenTag: ctx.onOpenTag,
|
|
4431
4431
|
onOpenRow: ctx.onOpenTag,
|
|
4432
4432
|
onOpenTaggedItems: ctx.onOpenTaggedItems,
|
|
4433
|
-
labels:
|
|
4433
|
+
labels: chunkLXFCED4Z_cjs.tagTableLabels(tag.kind),
|
|
4434
4434
|
testId: "tags-rows"
|
|
4435
4435
|
}
|
|
4436
4436
|
),
|
|
4437
4437
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4438
|
-
|
|
4438
|
+
chunkLXFCED4Z_cjs.TagDetail,
|
|
4439
4439
|
{
|
|
4440
4440
|
onOpenTaggedItems: ctx.onOpenTaggedItems,
|
|
4441
|
-
fieldLabels:
|
|
4441
|
+
fieldLabels: chunkLXFCED4Z_cjs.tagTableLabels(tag.kind),
|
|
4442
4442
|
row: detailRow,
|
|
4443
4443
|
fields: schema.data?.fields ?? [],
|
|
4444
4444
|
isLoading: detail.isLoading,
|
|
@@ -4452,7 +4452,7 @@ function TagSection({
|
|
|
4452
4452
|
throw e;
|
|
4453
4453
|
})
|
|
4454
4454
|
),
|
|
4455
|
-
labels:
|
|
4455
|
+
labels: chunkLXFCED4Z_cjs.tagDetailLabels(),
|
|
4456
4456
|
testId: "tags-detail"
|
|
4457
4457
|
}
|
|
4458
4458
|
)
|
|
@@ -4527,7 +4527,7 @@ function ConnectedTagsPage() {
|
|
|
4527
4527
|
const onDelete = async (t) => {
|
|
4528
4528
|
const nested = browser.getChildTags([...tags], t.external_id);
|
|
4529
4529
|
const uses = browser.tagUseCount(t);
|
|
4530
|
-
const n2 =
|
|
4530
|
+
const n2 = chunkLXFCED4Z_cjs.tagsPageNouns();
|
|
4531
4531
|
const tagNoun = (count2) => (count2 === 1 ? n2.tag : n2.tags).toLowerCase();
|
|
4532
4532
|
const carriers = uses === 1 ? `${n2.document}, ${n2.fact} or ${n2.thread}` : `${n2.documents}, ${n2.facts} and ${n2.threads}`;
|
|
4533
4533
|
const message = `Delete ${ui.tagKindNouns(t.kind).singular} "${t.name}"?` + (uses > 0 ? `
|
|
@@ -4548,11 +4548,11 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
4548
4548
|
try {
|
|
4549
4549
|
await extract.mutateAsync(docIds);
|
|
4550
4550
|
notify19(
|
|
4551
|
-
`Extracting ${
|
|
4551
|
+
`Extracting ${chunkLXFCED4Z_cjs.entitiesPhrase().toLowerCase()} from ${chunkLXFCED4Z_cjs.documentCount(docIds.length)}. You will be notified when it is done.`,
|
|
4552
4552
|
"info"
|
|
4553
4553
|
);
|
|
4554
4554
|
} catch (error) {
|
|
4555
|
-
notify19(browser.refusalReason(error, `Could not extract ${
|
|
4555
|
+
notify19(browser.refusalReason(error, `Could not extract ${chunkLXFCED4Z_cjs.entitiesPhrase().toLowerCase()}`), "error");
|
|
4556
4556
|
throw error;
|
|
4557
4557
|
}
|
|
4558
4558
|
};
|
|
@@ -4566,10 +4566,10 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
4566
4566
|
onOpenTag: openTag,
|
|
4567
4567
|
onOpenTaggedItems
|
|
4568
4568
|
};
|
|
4569
|
-
const n =
|
|
4569
|
+
const n = chunkLXFCED4Z_cjs.tagsPageNouns();
|
|
4570
4570
|
const action = view === "person" || view === "organisation" ? {
|
|
4571
4571
|
label: "Extract",
|
|
4572
|
-
title: `Extract ${
|
|
4572
|
+
title: `Extract ${chunkLXFCED4Z_cjs.entitiesPhrase().toLowerCase()} from ${n.documents.toLowerCase()}`,
|
|
4573
4573
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { className: "h-4 w-4" }),
|
|
4574
4574
|
run: () => setExtracting(true),
|
|
4575
4575
|
testId: "tags-extract-entities"
|
|
@@ -4738,7 +4738,7 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
4738
4738
|
}
|
|
4739
4739
|
),
|
|
4740
4740
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4741
|
-
|
|
4741
|
+
chunkLXFCED4Z_cjs.ExtractEntitiesDialog,
|
|
4742
4742
|
{
|
|
4743
4743
|
open: extracting,
|
|
4744
4744
|
onOpenChange: setExtracting,
|
|
@@ -6098,7 +6098,7 @@ function ConnectedFactsSmartSearch({
|
|
|
6098
6098
|
const runSearch = () => search().catch(() => notify19(`Could not search ${factsWord}. Please try again.`, "error"));
|
|
6099
6099
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full min-h-0 flex-col", "data-testid": "facts-smart-search", children: [
|
|
6100
6100
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6101
|
-
|
|
6101
|
+
chunkENOPKX7E_cjs.FactSearchBar,
|
|
6102
6102
|
{
|
|
6103
6103
|
query,
|
|
6104
6104
|
onQueryChange: setQuery,
|
|
@@ -6107,7 +6107,7 @@ function ConnectedFactsSmartSearch({
|
|
|
6107
6107
|
isSearching
|
|
6108
6108
|
}
|
|
6109
6109
|
),
|
|
6110
|
-
!isSearching && hits !== null && hits.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6110
|
+
!isSearching && hits !== null && hits.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(chunkENOPKX7E_cjs.FactSearchTotals, { children: [
|
|
6111
6111
|
hits.length.toLocaleString(),
|
|
6112
6112
|
" ",
|
|
6113
6113
|
hits.length === 1 ? factWord : factsWord,
|
|
@@ -6115,18 +6115,18 @@ function ConnectedFactsSmartSearch({
|
|
|
6115
6115
|
lastQuery,
|
|
6116
6116
|
"\u201D"
|
|
6117
6117
|
] }),
|
|
6118
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "scrollbar-subtle min-h-0 flex-1 overflow-y-auto px-4 pb-3", children: isSearching ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6118
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "scrollbar-subtle min-h-0 flex-1 overflow-y-auto px-4 pb-3", children: isSearching ? /* @__PURE__ */ jsxRuntime.jsxs(chunkENOPKX7E_cjs.FactSearchPending, { children: [
|
|
6119
6119
|
"Searching ",
|
|
6120
6120
|
factsWord,
|
|
6121
6121
|
"\u2026"
|
|
6122
|
-
] }) : hits === null ? /* @__PURE__ */ jsxRuntime.jsx(chunkNX56DIG3_cjs.SearchEmptyState, { nouns, count: allFacts.length }) : hits.length === 0 ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6122
|
+
] }) : hits === null ? /* @__PURE__ */ jsxRuntime.jsx(chunkNX56DIG3_cjs.SearchEmptyState, { nouns, count: allFacts.length }) : hits.length === 0 ? /* @__PURE__ */ jsxRuntime.jsxs(chunkENOPKX7E_cjs.FactSearchNoMatches, { children: [
|
|
6123
6123
|
"No ",
|
|
6124
6124
|
factsWord,
|
|
6125
6125
|
" matched \u201C",
|
|
6126
6126
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-foreground", children: lastQuery }),
|
|
6127
6127
|
"\u201D."
|
|
6128
6128
|
] }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-2", children: hits.map((h, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6129
|
-
|
|
6129
|
+
chunkENOPKX7E_cjs.FactSearchResult,
|
|
6130
6130
|
{
|
|
6131
6131
|
id: h.external_id,
|
|
6132
6132
|
rank: i + 1,
|
|
@@ -6226,7 +6226,7 @@ function FactSourcesPopover({
|
|
|
6226
6226
|
const olderVersion = refOf(docId) !== docId ? refOf(docId).split("@v")[1] : null;
|
|
6227
6227
|
const cited = passagesOf(docId);
|
|
6228
6228
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6229
|
-
|
|
6229
|
+
chunkENOPKX7E_cjs.FactSourceGroup,
|
|
6230
6230
|
{
|
|
6231
6231
|
docId,
|
|
6232
6232
|
isViewing,
|
|
@@ -6315,7 +6315,7 @@ function FactMarkdownEditor({
|
|
|
6315
6315
|
const editorRef = react$1.useRef(null);
|
|
6316
6316
|
react$1.useEffect(() => {
|
|
6317
6317
|
if (!editorRef.current) return;
|
|
6318
|
-
return
|
|
6318
|
+
return chunkENOPKX7E_cjs.enableFactTableColumnResize(editorRef.current);
|
|
6319
6319
|
}, []);
|
|
6320
6320
|
react$1.useEffect(() => {
|
|
6321
6321
|
if (!editing) return;
|
|
@@ -6954,7 +6954,7 @@ function useFactFilters(notes, view, chat) {
|
|
|
6954
6954
|
const makeTagPicker = react$1.useCallback(
|
|
6955
6955
|
(selected, setSelected, opts) => {
|
|
6956
6956
|
const applied = new Set(selected);
|
|
6957
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6957
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkENOPKX7E_cjs.FactFieldRow, { label: "Labels", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6958
6958
|
chunkALK3PUUB_cjs.FieldLabelsSelect,
|
|
6959
6959
|
{
|
|
6960
6960
|
options: labelOptions,
|
|
@@ -7146,14 +7146,14 @@ function useFactSelection(notes, gridApiRef, setFactTags, chat) {
|
|
|
7146
7146
|
}
|
|
7147
7147
|
function renderSourcesCell(params) {
|
|
7148
7148
|
const fact = params.data;
|
|
7149
|
-
const count2 =
|
|
7149
|
+
const count2 = chunkENOPKX7E_cjs.sourceDocCount(fact);
|
|
7150
7150
|
if (!fact || count2 === 0) return /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground/40", children: "\u2014" });
|
|
7151
7151
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7152
7152
|
"button",
|
|
7153
7153
|
{
|
|
7154
7154
|
type: "button",
|
|
7155
7155
|
onClick: () => params.context?.openEdit?.(fact),
|
|
7156
|
-
title:
|
|
7156
|
+
title: chunkENOPKX7E_cjs.DEFAULT_FACT_COLUMN_LABELS.sourcedFrom(count2),
|
|
7157
7157
|
"data-testid": `facts-grid-sources-${fact.external_id}`,
|
|
7158
7158
|
className: "inline-flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground",
|
|
7159
7159
|
children: [
|
|
@@ -7210,14 +7210,14 @@ function createFactPageColumns({
|
|
|
7210
7210
|
onToggleConfirmed,
|
|
7211
7211
|
onToggleShared
|
|
7212
7212
|
}) {
|
|
7213
|
-
const columns =
|
|
7213
|
+
const columns = chunkENOPKX7E_cjs.createFactColumns({
|
|
7214
7214
|
onToggleInChat,
|
|
7215
7215
|
isInChat,
|
|
7216
7216
|
renderHeader: (params, colId) => /* @__PURE__ */ jsxRuntime.jsx(FactHeader, { params, colId }),
|
|
7217
7217
|
renderRowActions: (fact, params) => {
|
|
7218
7218
|
const ctx = params.context;
|
|
7219
7219
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7220
|
-
|
|
7220
|
+
chunkENOPKX7E_cjs.FactRowActions,
|
|
7221
7221
|
{
|
|
7222
7222
|
onEdit: () => ctx?.openEdit?.(fact),
|
|
7223
7223
|
canEdit: ctx?.canRewrite?.(fact) !== false,
|
|
@@ -7346,7 +7346,7 @@ function useFactsGrid({
|
|
|
7346
7346
|
);
|
|
7347
7347
|
const renderFactTags = react$1.useCallback(
|
|
7348
7348
|
(fact, rowHeight) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
7349
|
-
|
|
7349
|
+
chunkENOPKX7E_cjs.FactLabelsCell,
|
|
7350
7350
|
{
|
|
7351
7351
|
options: labelOptions,
|
|
7352
7352
|
selectedIds: fact.tags.map((t) => t.tag_ext_id),
|
|
@@ -7711,7 +7711,7 @@ function ConnectedFactsPage() {
|
|
|
7711
7711
|
};
|
|
7712
7712
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: setFactSection, className: "relative flex h-full flex-col", "data-testid": "facts-page", children: [
|
|
7713
7713
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7714
|
-
|
|
7714
|
+
chunkENOPKX7E_cjs.FactsToolbar,
|
|
7715
7715
|
{
|
|
7716
7716
|
count: filteredNotes.length,
|
|
7717
7717
|
hasActiveFilters: filters.hasActiveFilters,
|
|
@@ -7740,7 +7740,7 @@ function ConnectedFactsPage() {
|
|
|
7740
7740
|
onNewFact: composing && !editingId ? () => void 0 : composer.startNewFact,
|
|
7741
7741
|
navSlotRef: setNavSlot,
|
|
7742
7742
|
navigator: view === "table" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
7743
|
-
|
|
7743
|
+
chunkLXFCED4Z_cjs.GridRowNavigator,
|
|
7744
7744
|
{
|
|
7745
7745
|
gridApi,
|
|
7746
7746
|
selectedId: editingId,
|
|
@@ -7751,7 +7751,7 @@ function ConnectedFactsPage() {
|
|
|
7751
7751
|
) : null,
|
|
7752
7752
|
showToolbarRow: view !== "smart_search",
|
|
7753
7753
|
tools: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
7754
|
-
view === "table" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7754
|
+
view === "table" && /* @__PURE__ */ jsxRuntime.jsx(chunkENOPKX7E_cjs.FactsFieldsButton, { getGridApi: () => gridApiRef.current }),
|
|
7755
7755
|
view === "table" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7756
7756
|
chunkALK3PUUB_cjs.RowDensityControl,
|
|
7757
7757
|
{
|
|
@@ -7789,7 +7789,7 @@ function ConnectedFactsPage() {
|
|
|
7789
7789
|
}
|
|
7790
7790
|
) }),
|
|
7791
7791
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7792
|
-
|
|
7792
|
+
chunkENOPKX7E_cjs.FactComposer,
|
|
7793
7793
|
{
|
|
7794
7794
|
isOpen: composing,
|
|
7795
7795
|
isEditing: !!editingId,
|
|
@@ -7819,7 +7819,7 @@ function ConnectedFactsPage() {
|
|
|
7819
7819
|
reserveSourcesSpace: view === "gantt" || view === "calendar",
|
|
7820
7820
|
citationContainer: factSection,
|
|
7821
7821
|
renderDocumentPicker: (onSelect, selectedIds, onOpen, sourcesToggle, sourcesOpen) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
7822
|
-
|
|
7822
|
+
chunkENOPKX7E_cjs.FactSourcesRow,
|
|
7823
7823
|
{
|
|
7824
7824
|
toggle: sourcesToggle,
|
|
7825
7825
|
picker: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -7865,7 +7865,7 @@ function ConnectedFactsPage() {
|
|
|
7865
7865
|
}
|
|
7866
7866
|
),
|
|
7867
7867
|
dateInput: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7868
|
-
|
|
7868
|
+
chunkENOPKX7E_cjs.FactDateInput,
|
|
7869
7869
|
{
|
|
7870
7870
|
value: composer.draftDateFields,
|
|
7871
7871
|
onChange: composer.setDraftDateFields,
|
|
@@ -7875,7 +7875,7 @@ function ConnectedFactsPage() {
|
|
|
7875
7875
|
}
|
|
7876
7876
|
),
|
|
7877
7877
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "scrollbar-subtle flex-1 overflow-y-auto pb-2", children: [
|
|
7878
|
-
isLoading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
7878
|
+
isLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunkENOPKX7E_cjs.FactsLoading, {}) : isError ? /* @__PURE__ */ jsxRuntime.jsx(chunkENOPKX7E_cjs.FactsLoadError, { onRetry: () => refetch() }) : view === "smart_search" ? (
|
|
7879
7879
|
// Searches facts only (never documents). Kept before the empty-state guard so the
|
|
7880
7880
|
// search UI is reachable even in an empty workspace.
|
|
7881
7881
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -7888,7 +7888,7 @@ function ConnectedFactsPage() {
|
|
|
7888
7888
|
)
|
|
7889
7889
|
) : notes.length === 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-full flex-col items-center justify-center", children: [
|
|
7890
7890
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7891
|
-
|
|
7891
|
+
chunkENOPKX7E_cjs.FactsEmptyState,
|
|
7892
7892
|
{
|
|
7893
7893
|
onUseExample: (text) => {
|
|
7894
7894
|
composer.setDraft(text);
|
|
@@ -7899,7 +7899,7 @@ function ConnectedFactsPage() {
|
|
|
7899
7899
|
),
|
|
7900
7900
|
/* @__PURE__ */ jsxRuntime.jsx(FactsFindInDocuments, {})
|
|
7901
7901
|
] }) : view === "calendar" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
7902
|
-
|
|
7902
|
+
chunkENOPKX7E_cjs.FactsCalendar,
|
|
7903
7903
|
{
|
|
7904
7904
|
facts: filteredNotes,
|
|
7905
7905
|
onSelect: (n) => openEditIfAllowed(n),
|
|
@@ -7908,7 +7908,7 @@ function ConnectedFactsPage() {
|
|
|
7908
7908
|
navigatorTotal: filteredNotes.length
|
|
7909
7909
|
}
|
|
7910
7910
|
) : view === "gantt" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
7911
|
-
|
|
7911
|
+
chunkENOPKX7E_cjs.FactsGanttPane,
|
|
7912
7912
|
{
|
|
7913
7913
|
items: ganttItems,
|
|
7914
7914
|
labelWidth: pageView.labelWidth,
|
|
@@ -7958,7 +7958,7 @@ function ConnectedFactsPage() {
|
|
|
7958
7958
|
)
|
|
7959
7959
|
] }),
|
|
7960
7960
|
selectable && notes.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7961
|
-
|
|
7961
|
+
chunkENOPKX7E_cjs.FactsBulkBar,
|
|
7962
7962
|
{
|
|
7963
7963
|
count: selection.selectedFacts.length,
|
|
7964
7964
|
onClear: selection.clearSelection,
|
|
@@ -8017,7 +8017,7 @@ function useConnectedShellWorkspaces(options = {}) {
|
|
|
8017
8017
|
function ConnectedSsoDisconnect() {
|
|
8018
8018
|
const { client } = react.useAccountClient();
|
|
8019
8019
|
const { data: profile } = react.useProfile();
|
|
8020
|
-
const auth =
|
|
8020
|
+
const auth = chunkI3A6KKWY_cjs.useAuthPages();
|
|
8021
8021
|
const { notify: notify19 } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
8022
8022
|
const [open, setOpen] = react$1.useState(false);
|
|
8023
8023
|
const [step, setStep] = react$1.useState("email");
|
|
@@ -8195,14 +8195,14 @@ function ConnectedAccountSettings({
|
|
|
8195
8195
|
}) {
|
|
8196
8196
|
const [logoutOpen, setLogoutOpen] = react$1.useState(false);
|
|
8197
8197
|
return /* @__PURE__ */ jsxRuntime.jsxs(chunkQQMMCXBP_cjs.SettingsPanel, { className: "max-w-2xl", children: [
|
|
8198
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8198
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkI3A6KKWY_cjs.ConnectedProfileCard, { avatarClassName, nameBadge: profileBadge }),
|
|
8199
8199
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedBoxPortalSection, {}),
|
|
8200
8200
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkQQMMCXBP_cjs.SettingsDisclosure, { title: "More", testId: "account-more-settings", children: [
|
|
8201
8201
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedSsoDisconnect, {}),
|
|
8202
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8202
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkI3A6KKWY_cjs.ConnectedSecuritySection, { children: securityRows }),
|
|
8203
8203
|
moreSettings,
|
|
8204
8204
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8205
|
-
|
|
8205
|
+
chunkI3A6KKWY_cjs.ConnectedIdentityVerification,
|
|
8206
8206
|
{
|
|
8207
8207
|
collapsible: true,
|
|
8208
8208
|
onManageBilling,
|
|
@@ -8212,7 +8212,7 @@ function ConnectedAccountSettings({
|
|
|
8212
8212
|
] }),
|
|
8213
8213
|
/* @__PURE__ */ jsxRuntime.jsx(chunkQQMMCXBP_cjs.SettingsSection, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Wifi, {}), title: "Session", children: /* @__PURE__ */ jsxRuntime.jsxs(chunkQQMMCXBP_cjs.SettingsCard, { children: [
|
|
8214
8214
|
connection && /* @__PURE__ */ jsxRuntime.jsx(ServerConnectionRow, { ...connection }),
|
|
8215
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8215
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkI3A6KKWY_cjs.ConnectedSessionsRow, { renderSessionIcon }),
|
|
8216
8216
|
/* @__PURE__ */ jsxRuntime.jsx(chunkQQMMCXBP_cjs.SettingsRow, { label: "Logout", description: "Sign out of your account on this device.", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8217
8217
|
ui.Button,
|
|
8218
8218
|
{
|
|
@@ -8229,9 +8229,9 @@ function ConnectedAccountSettings({
|
|
|
8229
8229
|
}
|
|
8230
8230
|
) })
|
|
8231
8231
|
] }) }),
|
|
8232
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8232
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkI3A6KKWY_cjs.ConnectedDangerZone, { renderSubscriptionLink }),
|
|
8233
8233
|
!onLogout && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8234
|
-
|
|
8234
|
+
chunkI3A6KKWY_cjs.ConnectedLogoutDialog,
|
|
8235
8235
|
{
|
|
8236
8236
|
open: logoutOpen,
|
|
8237
8237
|
onClose: () => setLogoutOpen(false),
|
|
@@ -8574,7 +8574,7 @@ function ConnectedPrivacySettings({
|
|
|
8574
8574
|
}
|
|
8575
8575
|
)
|
|
8576
8576
|
] }) }),
|
|
8577
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8577
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkI3A6KKWY_cjs.ConnectedNotificationPreferences, {})
|
|
8578
8578
|
] });
|
|
8579
8579
|
}
|
|
8580
8580
|
var PROVIDER_NAMES = {
|
|
@@ -10570,7 +10570,7 @@ function ConnectedRecoveryKeyDialog({
|
|
|
10570
10570
|
const arbi = react.useArbi();
|
|
10571
10571
|
const { user, isSso: isSsoMode } = react.useArbiSession();
|
|
10572
10572
|
const userEmail = user?.email;
|
|
10573
|
-
const sso =
|
|
10573
|
+
const sso = chunkI3A6KKWY_cjs.useSsoSignIn();
|
|
10574
10574
|
const handleVerify = async () => {
|
|
10575
10575
|
setError(null);
|
|
10576
10576
|
if (!password) {
|
|
@@ -10731,7 +10731,7 @@ function ConnectedRemoteControlSwitch() {
|
|
|
10731
10731
|
}
|
|
10732
10732
|
function RemoteControlSwitch() {
|
|
10733
10733
|
const enabled = react.useRemoteControl((state) => state.enabled);
|
|
10734
|
-
const remote =
|
|
10734
|
+
const remote = chunkI3A6KKWY_cjs.useRemoteControlActions();
|
|
10735
10735
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10736
10736
|
chunkQQMMCXBP_cjs.SettingsRow,
|
|
10737
10737
|
{
|
|
@@ -10753,7 +10753,7 @@ function RemoteControlSwitch() {
|
|
|
10753
10753
|
);
|
|
10754
10754
|
}
|
|
10755
10755
|
var JUST_CONNECTED_VIEW = "settings.justConnected";
|
|
10756
|
-
var identityFeeLabel = (status) => `${
|
|
10756
|
+
var identityFeeLabel = (status) => `${chunkGEZB3OEC_cjs.formatMoney(status.price_pence, status.currency.toLowerCase())} incl. VAT`;
|
|
10757
10757
|
var openLogout = () => chunkJDFBEGQO_cjs.openDialog("logout");
|
|
10758
10758
|
function RecoveryKeyRow() {
|
|
10759
10759
|
const [open, setOpen] = react$1.useState(false);
|
|
@@ -11074,14 +11074,14 @@ function usePaidWorkspaceMembers() {
|
|
|
11074
11074
|
try {
|
|
11075
11075
|
return await mutation.mutateAsync(...args);
|
|
11076
11076
|
} catch (error) {
|
|
11077
|
-
const detail =
|
|
11077
|
+
const detail = chunkGEZB3OEC_cjs.apiErrorDetail(error);
|
|
11078
11078
|
if (detail?.code !== "COLLABORATOR_CAPACITY_REQUIRED" || !detail.can_buy || !arbi || !detail.project_ext_id || !detail.blocks_required || !detail.block_size)
|
|
11079
11079
|
throw error;
|
|
11080
11080
|
const project = detail.project_ext_id;
|
|
11081
11081
|
const quote = await arbi.projects.quoteAddon(project, "collaborators");
|
|
11082
11082
|
const count2 = detail.blocks_required;
|
|
11083
|
-
const today =
|
|
11084
|
-
const renewal =
|
|
11083
|
+
const today = chunkGEZB3OEC_cjs.formatMoney(quote.now.total_pence * count2, "gbp");
|
|
11084
|
+
const renewal = chunkGEZB3OEC_cjs.formatMoney(quote.renewal.total_pence * count2, "gbp");
|
|
11085
11085
|
const confirmed = await confirm({
|
|
11086
11086
|
title: "More collaborator places needed",
|
|
11087
11087
|
message: `This invitation exceeds your ${detail.limit}-collaborator allowance. Add ${count2 * detail.block_size} places for ${today} today, including tax, then ${renewal} per ${detail.interval === "year" ? "year" : "month"} until removed? You are not counted.`,
|
|
@@ -11934,7 +11934,7 @@ function ConnectedProjectEntity({
|
|
|
11934
11934
|
subscription = "none",
|
|
11935
11935
|
...props
|
|
11936
11936
|
}) {
|
|
11937
|
-
const { stripeEnabled } =
|
|
11937
|
+
const { stripeEnabled } = chunkGEZB3OEC_cjs.useBillingSupport();
|
|
11938
11938
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11939
11939
|
ui.ProjectEntity,
|
|
11940
11940
|
{
|
|
@@ -12029,7 +12029,7 @@ function StripeCheckoutModal({
|
|
|
12029
12029
|
const [clientSecret, setClientSecret] = react$1.useState(null);
|
|
12030
12030
|
const [isCreating, setIsCreating] = react$1.useState(false);
|
|
12031
12031
|
const [stripe, setStripe] = react$1.useState(null);
|
|
12032
|
-
const { stripeEnabled, checkout } =
|
|
12032
|
+
const { stripeEnabled, checkout } = chunkGEZB3OEC_cjs.useBillingSupport();
|
|
12033
12033
|
const createCheckout = react.useCreateProjectCheckout();
|
|
12034
12034
|
const refreshProject = react.useRefreshProject();
|
|
12035
12035
|
const invalidateProjects = react.useInvalidateProjects();
|
|
@@ -12058,7 +12058,7 @@ function StripeCheckoutModal({
|
|
|
12058
12058
|
projectExtId,
|
|
12059
12059
|
body: {
|
|
12060
12060
|
interval,
|
|
12061
|
-
packs:
|
|
12061
|
+
packs: chunkGEZB3OEC_cjs.PRO_PACKS,
|
|
12062
12062
|
ai_blocks: aiBlocks,
|
|
12063
12063
|
storage_blocks: storageBlocks,
|
|
12064
12064
|
collaborator_blocks: collaboratorBlocks,
|
|
@@ -12075,7 +12075,7 @@ function StripeCheckoutModal({
|
|
|
12075
12075
|
},
|
|
12076
12076
|
onError: (error) => {
|
|
12077
12077
|
console.error("Failed to create checkout session:", error);
|
|
12078
|
-
const reason =
|
|
12078
|
+
const reason = chunkGEZB3OEC_cjs.apiErrorDetail(error)?.message;
|
|
12079
12079
|
shell.notify.error(
|
|
12080
12080
|
reason ? `Checkout didn't start: ${reason}` : "Checkout didn't start. Try again."
|
|
12081
12081
|
);
|
|
@@ -12109,7 +12109,7 @@ function StripeCheckoutModal({
|
|
|
12109
12109
|
}
|
|
12110
12110
|
}, [open]);
|
|
12111
12111
|
const isStripeConfigured = stripeEnabled;
|
|
12112
|
-
const vatNote = quote ? `${
|
|
12112
|
+
const vatNote = quote ? `${chunkGEZB3OEC_cjs.checkoutItemsLabel(aiBlocks, storageBlocks, collaboratorBlocks, price)} \xB7 ${chunkGEZB3OEC_cjs.quoteTotalLine(quote)}` : null;
|
|
12113
12113
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12114
12114
|
chunkT73BHNQX_cjs.CheckoutDialogFrame,
|
|
12115
12115
|
{
|
|
@@ -12134,7 +12134,7 @@ function MonthlySpendCap({
|
|
|
12134
12134
|
value,
|
|
12135
12135
|
minimum,
|
|
12136
12136
|
maximum,
|
|
12137
|
-
stepPence =
|
|
12137
|
+
stepPence = 2e3,
|
|
12138
12138
|
onChange,
|
|
12139
12139
|
inputRef,
|
|
12140
12140
|
testId = "spend-cap-input",
|
|
@@ -12145,7 +12145,7 @@ function MonthlySpendCap({
|
|
|
12145
12145
|
const min = Math.ceil(minimum / 100 / step) * step;
|
|
12146
12146
|
const max = Math.max(Math.floor((maximum ?? 5e4) / 100 / step) * step, min);
|
|
12147
12147
|
const pounds = Math.max(min, Math.min(max, Math.floor(value / stepPence) * step));
|
|
12148
|
-
const money = (n) =>
|
|
12148
|
+
const money = (n) => chunkGEZB3OEC_cjs.formatMoney(n, "gbp");
|
|
12149
12149
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full space-y-2", children: [
|
|
12150
12150
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-baseline justify-between gap-4", children: [
|
|
12151
12151
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: id, children: "Auto-upgrade limit" }),
|
|
@@ -12202,7 +12202,7 @@ function applyReferralReward(totalCents, reward, priceCurrency) {
|
|
|
12202
12202
|
};
|
|
12203
12203
|
}
|
|
12204
12204
|
function purchaseNet(price, ai, storage, collaborators) {
|
|
12205
|
-
const base =
|
|
12205
|
+
const base = chunkGEZB3OEC_cjs.packPrice(price)?.amount_ex_vat ?? price?.amount_ex_vat;
|
|
12206
12206
|
if (base == null) return null;
|
|
12207
12207
|
let total = base;
|
|
12208
12208
|
for (const [kind, count2] of [
|
|
@@ -12231,8 +12231,8 @@ function ProjectPurchaseOptions({
|
|
|
12231
12231
|
onChoose
|
|
12232
12232
|
}) {
|
|
12233
12233
|
const [spendCap, setSpendCap] = react$1.useState(null);
|
|
12234
|
-
const reward =
|
|
12235
|
-
const prices =
|
|
12234
|
+
const reward = chunkGEZB3OEC_cjs.useRewardBalance();
|
|
12235
|
+
const prices = chunkGEZB3OEC_cjs.findProPrices(products);
|
|
12236
12236
|
const monthlyNet = purchaseNet(prices.monthly, aiBlocks, storageBlocks, collaboratorBlocks);
|
|
12237
12237
|
const annualNet = purchaseNet(prices.annual, aiBlocks, storageBlocks, collaboratorBlocks);
|
|
12238
12238
|
const extras = { ai_usage: aiBlocks, storage: storageBlocks, collaborators: collaboratorBlocks };
|
|
@@ -12246,12 +12246,12 @@ function ProjectPurchaseOptions({
|
|
|
12246
12246
|
);
|
|
12247
12247
|
const product = products?.[0];
|
|
12248
12248
|
const currency = prices.monthly?.currency ?? prices.annual?.currency ?? "gbp";
|
|
12249
|
-
const money = (pence) =>
|
|
12250
|
-
const ai = (product?.included_ai_gbp ?? 0) + aiBlocks * (
|
|
12251
|
-
const storage = (product?.included_storage_gb ?? 0) + storageBlocks * (
|
|
12249
|
+
const money = (pence) => chunkGEZB3OEC_cjs.formatMoney(pence, currency);
|
|
12250
|
+
const ai = (product?.included_ai_gbp ?? 0) + aiBlocks * (chunkGEZB3OEC_cjs.addonPrice(prices.monthly, "ai_usage")?.ai_gbp ?? 0);
|
|
12251
|
+
const storage = (product?.included_storage_gb ?? 0) + storageBlocks * (chunkGEZB3OEC_cjs.addonPrice(prices.monthly, "storage")?.storage_gb ?? 0);
|
|
12252
12252
|
const collaborators = (product?.included_collaborators ?? 0) + collaboratorBlocks * (prices.monthly?.addon_prices?.find((p) => p.kind === "collaborators")?.collaborators ?? 0);
|
|
12253
12253
|
const saving = monthlyNet && annualNet != null ? Math.max(0, Math.round(100 * (1 - annualNet / (monthlyNet * 12)))) : 0;
|
|
12254
|
-
const stepPence = product?.spend_cap_step_pence ??
|
|
12254
|
+
const stepPence = product?.spend_cap_step_pence ?? 2e3;
|
|
12255
12255
|
const defaultCap = product?.default_spend_cap_pence ?? 1e4;
|
|
12256
12256
|
const maximumCap = product?.maximum_spend_cap_pence ?? 5e4;
|
|
12257
12257
|
const cap = Math.max(
|
|
@@ -12289,7 +12289,7 @@ function ProjectPurchaseOptions({
|
|
|
12289
12289
|
size: "icon",
|
|
12290
12290
|
variant: "outline",
|
|
12291
12291
|
"aria-label": `Add ${label}`,
|
|
12292
|
-
disabled: busy || !available || count2 >=
|
|
12292
|
+
disabled: busy || !available || count2 >= chunkGEZB3OEC_cjs.MAX_CHECKOUT_BLOCKS,
|
|
12293
12293
|
onClick: () => onChange(count2 + 1),
|
|
12294
12294
|
"data-testid": `checkout-${kind}-blocks-increment`,
|
|
12295
12295
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { size: 14, "aria-hidden": "true" })
|
|
@@ -12307,7 +12307,7 @@ function ProjectPurchaseOptions({
|
|
|
12307
12307
|
aiBlocks,
|
|
12308
12308
|
onAiBlocksChange,
|
|
12309
12309
|
"AI credits",
|
|
12310
|
-
!!
|
|
12310
|
+
!!chunkGEZB3OEC_cjs.addonPrice(prices.monthly, "ai_usage")
|
|
12311
12311
|
)
|
|
12312
12312
|
] }),
|
|
12313
12313
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
@@ -12329,7 +12329,7 @@ function ProjectPurchaseOptions({
|
|
|
12329
12329
|
storageBlocks,
|
|
12330
12330
|
onStorageBlocksChange,
|
|
12331
12331
|
"storage",
|
|
12332
|
-
!!
|
|
12332
|
+
!!chunkGEZB3OEC_cjs.addonPrice(prices.monthly, "storage")
|
|
12333
12333
|
)
|
|
12334
12334
|
] }),
|
|
12335
12335
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
@@ -12437,7 +12437,7 @@ function refusal(what, next) {
|
|
|
12437
12437
|
return `${sentence(what)}. Nothing was charged. ${sentence(next)}.`;
|
|
12438
12438
|
}
|
|
12439
12439
|
function createProjectErrorMessage(error, fallback = `Failed to create ${ui.entityNoun("PROJECT")}`) {
|
|
12440
|
-
const detail =
|
|
12440
|
+
const detail = chunkGEZB3OEC_cjs.apiErrorDetail(error);
|
|
12441
12441
|
if (typeof detail === "string" && detail) return detail;
|
|
12442
12442
|
const message = detail?.message;
|
|
12443
12443
|
return typeof message === "string" && message ? message : fallback;
|
|
@@ -12456,7 +12456,7 @@ function NewProjectFlow({ open, onOpenChange, defaultName }) {
|
|
|
12456
12456
|
const [checkoutQuote, setCheckoutQuote] = react$1.useState();
|
|
12457
12457
|
const paymentCompleted = react$1.useRef(false);
|
|
12458
12458
|
const attempt = react$1.useRef(0);
|
|
12459
|
-
const { stripeEnabled } =
|
|
12459
|
+
const { stripeEnabled } = chunkGEZB3OEC_cjs.useBillingSupport();
|
|
12460
12460
|
const { data: products, isLoading: productsLoading } = react.useProducts({ enabled: stripeEnabled });
|
|
12461
12461
|
const createProject = react.useCreateProject();
|
|
12462
12462
|
const deleteProject = react.useDeleteProject();
|
|
@@ -12496,7 +12496,7 @@ function NewProjectFlow({ open, onOpenChange, defaultName }) {
|
|
|
12496
12496
|
{
|
|
12497
12497
|
name: projectName.trim(),
|
|
12498
12498
|
plan: stripeEnabled ? "pro" : "free",
|
|
12499
|
-
daily_cap_per_user:
|
|
12499
|
+
daily_cap_per_user: chunkGEZB3OEC_cjs.SUGGESTED_DAILY_CAP_PER_USER
|
|
12500
12500
|
},
|
|
12501
12501
|
{
|
|
12502
12502
|
onSuccess: (project) => {
|
|
@@ -12585,7 +12585,7 @@ function NewProjectFlow({ open, onOpenChange, defaultName }) {
|
|
|
12585
12585
|
checkoutProject && /* @__PURE__ */ jsxRuntime.jsx(
|
|
12586
12586
|
StripeCheckoutModal,
|
|
12587
12587
|
{
|
|
12588
|
-
price:
|
|
12588
|
+
price: chunkGEZB3OEC_cjs.findProPrices(products)[checkoutInterval === "year" ? "annual" : "monthly"],
|
|
12589
12589
|
projectExtId: checkoutProject.id,
|
|
12590
12590
|
interval: checkoutInterval,
|
|
12591
12591
|
addonBudgetPence: checkoutBudget,
|
|
@@ -12617,7 +12617,7 @@ function ConnectedProjectSelector({
|
|
|
12617
12617
|
readOnly,
|
|
12618
12618
|
className
|
|
12619
12619
|
}) {
|
|
12620
|
-
const { stripeEnabled } =
|
|
12620
|
+
const { stripeEnabled } = chunkGEZB3OEC_cjs.useBillingSupport();
|
|
12621
12621
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12622
12622
|
chunkYZ6YOOTF_cjs.ProjectPicker,
|
|
12623
12623
|
{
|
|
@@ -12761,13 +12761,13 @@ function ConnectedWorkspaceSettings({
|
|
|
12761
12761
|
const [membersExpanded, setMembersExpanded] = react$1.useState(false);
|
|
12762
12762
|
const [shareOpen, setShareOpen] = react$1.useState(false);
|
|
12763
12763
|
if (!workspace) {
|
|
12764
|
-
return /* @__PURE__ */ jsxRuntime.jsx(chunkCMGNRMPA_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12764
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkCMGNRMPA_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkLXFCED4Z_cjs.LoadingIndicator, { message: "Loading workspace..." }) });
|
|
12765
12765
|
}
|
|
12766
12766
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
12767
12767
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkCMGNRMPA_cjs.WorkspacePageFrame, { testId, children: [
|
|
12768
12768
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkCMGNRMPA_cjs.WorkspaceIdentityPanel, { children: [
|
|
12769
12769
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12770
|
-
|
|
12770
|
+
chunkLXFCED4Z_cjs.EntityIdentityBar,
|
|
12771
12771
|
{
|
|
12772
12772
|
testId: "workspace-identity-bar",
|
|
12773
12773
|
canEdit: isOwner,
|
|
@@ -12784,7 +12784,7 @@ function ConnectedWorkspaceSettings({
|
|
|
12784
12784
|
label: "Name",
|
|
12785
12785
|
value: workspace.name,
|
|
12786
12786
|
placeholder: "Untitled",
|
|
12787
|
-
maxLength:
|
|
12787
|
+
maxLength: chunkLXFCED4Z_cjs.IDENTITY_NAME_MAX_LENGTH,
|
|
12788
12788
|
valueClassName: "truncate text-base font-semibold",
|
|
12789
12789
|
testId: "workspace-home-title",
|
|
12790
12790
|
hideLabel: true,
|
|
@@ -14469,36 +14469,36 @@ function ConnectedSharePointAdminConsentPage({
|
|
|
14469
14469
|
const result = givenResult === void 0 ? queryResult : givenResult;
|
|
14470
14470
|
const { apiBaseUrl } = chunkTKHCIHE2_cjs.useBlocksEnvironment().runtimeConfig;
|
|
14471
14471
|
const consentUrl = `${apiBaseUrl}/v1/connectors/microsoft_sharepoint/admin-consent`;
|
|
14472
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
14472
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkNQML7IUC_cjs.ConsentCard, { size: "md", children: [
|
|
14473
14473
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14474
|
-
|
|
14474
|
+
chunkNQML7IUC_cjs.ConsentHeader,
|
|
14475
14475
|
{
|
|
14476
14476
|
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkALK3PUUB_cjs.VendorLogo, { vendorKey: "microsoft_sharepoint", product: "sharepoint" }),
|
|
14477
14477
|
title: "Approve ARBI for SharePoint access",
|
|
14478
14478
|
children: "A member of your organization uses ARBI and wants to sync documents from SharePoint. Your Microsoft 365 organization requires an administrator to approve this once for the whole organization."
|
|
14479
14479
|
}
|
|
14480
14480
|
),
|
|
14481
|
-
result === "granted" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
14482
|
-
result === "declined" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
14483
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
14481
|
+
result === "granted" && /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentNotice, { tone: "success", title: "Access approved \u2014 you\u2019re all set.", className: "mt-4", children: "People in your organization can now connect SharePoint from their own ARBI account. Nothing is synced until each user connects and chooses what to import." }),
|
|
14482
|
+
result === "declined" && /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentNotice, { tone: "warning", title: "The approval didn\u2019t complete.", className: "mt-4", children: "The request was declined or canceled on the Microsoft screen. You can try again below \u2014 you must sign in with a Microsoft 365 administrator account of your organization." }),
|
|
14483
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkNQML7IUC_cjs.ConsentSection, { title: "What you are approving", children: [
|
|
14484
14484
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14485
|
-
|
|
14485
|
+
chunkNQML7IUC_cjs.ConsentBulletList,
|
|
14486
14486
|
{
|
|
14487
14487
|
items: [
|
|
14488
14488
|
/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
14489
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14489
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentStrong, { children: "Read SharePoint sites and files" }),
|
|
14490
14490
|
" \u2014 lets each user who connects their own account import documents from sites they already have access to. ARBI never gets more access than the user has."
|
|
14491
14491
|
] }),
|
|
14492
14492
|
/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
14493
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14493
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentStrong, { children: "Sign users in and keep access" }),
|
|
14494
14494
|
" \u2014 standard sign-in (openid, profile, email) and offline access so syncs keep working between sessions."
|
|
14495
14495
|
] })
|
|
14496
14496
|
]
|
|
14497
14497
|
}
|
|
14498
14498
|
),
|
|
14499
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14499
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentText, { children: "Approving does not sync anything by itself and grants ARBI no standing access to your tenant. Each user still connects their own Microsoft account, and their tokens are end-to-end encrypted so ARBI\u2019s servers cannot read them at rest." }),
|
|
14500
14500
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Button, { asChild: true, className: "w-full pointer-coarse:h-11", children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: consentUrl, children: "Review and approve in Microsoft" }) }),
|
|
14501
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14501
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentText, { variant: "footnote", children: "You\u2019ll sign in at login.microsoftonline.com and see Microsoft\u2019s own summary of these permissions before anything is granted." })
|
|
14502
14502
|
] })
|
|
14503
14503
|
] }) });
|
|
14504
14504
|
}
|
|
@@ -14539,8 +14539,8 @@ function InvoicesModal({
|
|
|
14539
14539
|
key: inv.number ?? String(i),
|
|
14540
14540
|
date: formatInvoiceDate(inv.date),
|
|
14541
14541
|
kind: KIND_LABELS2[inv.kind],
|
|
14542
|
-
amount:
|
|
14543
|
-
amountNote: inv.amount_ex_vat != null && inv.amount_ex_vat !== inv.amount ? `${
|
|
14542
|
+
amount: chunkGEZB3OEC_cjs.formatMoney(inv.amount, inv.currency),
|
|
14543
|
+
amountNote: inv.amount_ex_vat != null && inv.amount_ex_vat !== inv.amount ? `${chunkGEZB3OEC_cjs.formatMoney(inv.amount_ex_vat, inv.currency)} ex VAT` : void 0,
|
|
14544
14544
|
status: inv.status,
|
|
14545
14545
|
isPaid: isPaid2,
|
|
14546
14546
|
href: inv.hosted_invoice_url ?? inv.url ?? inv.pdf_url ?? void 0,
|
|
@@ -14592,7 +14592,7 @@ function SubscriptionPlans({ projectExtId, onDismiss }) {
|
|
|
14592
14592
|
checkout && /* @__PURE__ */ jsxRuntime.jsx(
|
|
14593
14593
|
StripeCheckoutModal,
|
|
14594
14594
|
{
|
|
14595
|
-
price:
|
|
14595
|
+
price: chunkGEZB3OEC_cjs.findProPrices(products)[checkout.interval === "year" ? "annual" : "monthly"],
|
|
14596
14596
|
projectExtId,
|
|
14597
14597
|
interval: checkout.interval,
|
|
14598
14598
|
addonBudgetPence: checkout.capPence,
|
|
@@ -14639,7 +14639,7 @@ var FALLBACK_MESSAGES = {
|
|
|
14639
14639
|
BILLING_ADDRESS_REQUIRED: "Add a billing address first."
|
|
14640
14640
|
};
|
|
14641
14641
|
function addonErrorMessage(error) {
|
|
14642
|
-
const detail =
|
|
14642
|
+
const detail = chunkGEZB3OEC_cjs.apiErrorDetail(error);
|
|
14643
14643
|
if (detail && typeof detail === "object") {
|
|
14644
14644
|
const { code, message } = detail;
|
|
14645
14645
|
if (message) return message;
|
|
@@ -14665,14 +14665,14 @@ function chargeRefusalMessage(error) {
|
|
|
14665
14665
|
return code ? REFUSALS[code] : null;
|
|
14666
14666
|
}
|
|
14667
14667
|
function addonErrorCode(error) {
|
|
14668
|
-
const detail =
|
|
14668
|
+
const detail = chunkGEZB3OEC_cjs.apiErrorDetail(error);
|
|
14669
14669
|
if (detail && typeof detail === "object") {
|
|
14670
14670
|
const code = detail.code;
|
|
14671
14671
|
if (code && code in FALLBACK_MESSAGES) return code;
|
|
14672
14672
|
}
|
|
14673
14673
|
return null;
|
|
14674
14674
|
}
|
|
14675
|
-
var addedMessage = (kind, blockAiGbp, blockStorageGb) => kind === "ai_usage" ? `${react.formatGbp(blockAiGbp ??
|
|
14675
|
+
var addedMessage = (kind, blockAiGbp, blockStorageGb) => kind === "ai_usage" ? `${react.formatGbp(blockAiGbp ?? chunkGEZB3OEC_cjs.ADDON_BLOCK_AI_GBP)} of AI credits added` : `${blockStorageGb ?? chunkGEZB3OEC_cjs.STORAGE_BLOCK_GB} GB added`;
|
|
14676
14676
|
function useAddonPurchase() {
|
|
14677
14677
|
const addBlock = react.useAddProjectAddonBlock();
|
|
14678
14678
|
const { mutate } = addBlock;
|
|
@@ -14722,14 +14722,14 @@ function useAddonPurchase() {
|
|
|
14722
14722
|
function ConnectedReferralRewardNote() {
|
|
14723
14723
|
const reward = useReferralReward();
|
|
14724
14724
|
if (!reward) return null;
|
|
14725
|
-
return /* @__PURE__ */ jsxRuntime.jsx(chunkT73BHNQX_cjs.ReferralRewardNote, { amountLabel:
|
|
14725
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkT73BHNQX_cjs.ReferralRewardNote, { amountLabel: chunkGEZB3OEC_cjs.formatMoney(reward.amount, reward.currency) });
|
|
14726
14726
|
}
|
|
14727
14727
|
function PlanChangeLines({
|
|
14728
14728
|
preview,
|
|
14729
14729
|
isError,
|
|
14730
14730
|
className
|
|
14731
14731
|
}) {
|
|
14732
|
-
const lines = preview ?
|
|
14732
|
+
const lines = preview ? chunkGEZB3OEC_cjs.planPreviewLines(preview) : [{ id: "pay-today", text: isError ? chunkGEZB3OEC_cjs.PAY_TODAY_UNPRICED : "Checking price\u2026" }];
|
|
14733
14733
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className, "data-testid": "plan-change-lines", children: lines.map((line) => /* @__PURE__ */ jsxRuntime.jsx("p", { "data-testid": `plan-change-${line.id}`, children: line.text }, line.id)) });
|
|
14734
14734
|
}
|
|
14735
14735
|
var BANK_CONFIRM_PLAN_CHANGE = "Confirm with your bank. Nothing is charged until you do.";
|
|
@@ -14737,13 +14737,13 @@ function notifyPlanChange(data, fallback, planName2) {
|
|
|
14737
14737
|
const outcome = data?.plan_change;
|
|
14738
14738
|
switch (outcome?.result) {
|
|
14739
14739
|
case "upgraded": {
|
|
14740
|
-
const plan =
|
|
14741
|
-
const charged = outcome.charged_pence > 0 ? ` \xB7 ${
|
|
14740
|
+
const plan = chunkGEZB3OEC_cjs.planNameForPacks(data?.addons?.packs ?? data?.packs);
|
|
14741
|
+
const charged = outcome.charged_pence > 0 ? ` \xB7 ${chunkGEZB3OEC_cjs.formatMoney(outcome.charged_pence, "gbp")} charged` : "";
|
|
14742
14742
|
shell.notify.success(`Upgraded to ${plan}${charged}`);
|
|
14743
14743
|
break;
|
|
14744
14744
|
}
|
|
14745
14745
|
case "scheduled": {
|
|
14746
|
-
const when2 =
|
|
14746
|
+
const when2 = chunkGEZB3OEC_cjs.formatPeriodEnd(data?.addons?.period_end ?? data?.current_period_end);
|
|
14747
14747
|
shell.notify.success(when2 ? `Scheduled for ${when2}` : fallback);
|
|
14748
14748
|
break;
|
|
14749
14749
|
}
|
|
@@ -14776,23 +14776,23 @@ function ChangeProPlan({
|
|
|
14776
14776
|
const { data: products } = react.useProducts();
|
|
14777
14777
|
const changePlan = react.useChangeProjectPlan();
|
|
14778
14778
|
const cancel = react.useCancelProjectSubscription();
|
|
14779
|
-
const prices =
|
|
14779
|
+
const prices = chunkGEZB3OEC_cjs.findProPrices(products);
|
|
14780
14780
|
const addons = project.addons;
|
|
14781
14781
|
const isCanceling = project.cancel_at_period_end === true || project.subscription === "canceled";
|
|
14782
|
-
const currentPacks = Math.max(addons?.packs ?? project.packs ??
|
|
14783
|
-
const isLegacyMultiPack = currentPacks >
|
|
14782
|
+
const currentPacks = Math.max(addons?.packs ?? project.packs ?? chunkGEZB3OEC_cjs.PRO_PACKS, chunkGEZB3OEC_cjs.PRO_PACKS);
|
|
14783
|
+
const isLegacyMultiPack = currentPacks > chunkGEZB3OEC_cjs.PRO_PACKS;
|
|
14784
14784
|
const currentInterval = project.plan_interval === "year" ? "year" : "month";
|
|
14785
14785
|
const scheduledPacks = isCanceling ? 0 : addons?.packs_next ?? currentPacks;
|
|
14786
14786
|
const scheduledInterval = addons?.pending_interval ?? currentInterval;
|
|
14787
14787
|
const [targetPacks, setTargetPacks] = react$1.useState(scheduledPacks);
|
|
14788
14788
|
const [chosenInterval, setChosenInterval] = react$1.useState(scheduledInterval);
|
|
14789
|
-
const targetInterval = targetPacks >
|
|
14789
|
+
const targetInterval = targetPacks > chunkGEZB3OEC_cjs.PRO_PACKS ? currentInterval : chosenInterval;
|
|
14790
14790
|
const periodEnd = formatDate(addons?.period_end ?? project.current_period_end);
|
|
14791
14791
|
const when2 = periodEnd ?? "the end of the period";
|
|
14792
14792
|
const shortWhen = periodEnd ? periodEnd.replace(/ \d{4}$/, "") : "period end";
|
|
14793
14793
|
const isPending = changePlan.isPending || cancel.isPending;
|
|
14794
14794
|
const sameAsScheduled = targetPacks === scheduledPacks && (targetPacks === 0 || targetInterval === scheduledInterval);
|
|
14795
|
-
const packOptions = isLegacyMultiPack ? [currentPacks,
|
|
14795
|
+
const packOptions = isLegacyMultiPack ? [currentPacks, chunkGEZB3OEC_cjs.PRO_PACKS, 0] : [chunkGEZB3OEC_cjs.PRO_PACKS, 0];
|
|
14796
14796
|
const intervalPrice = targetInterval === "year" ? prices.annual : prices.monthly;
|
|
14797
14797
|
const currency = intervalPrice?.currency ?? project.currency ?? "gbp";
|
|
14798
14798
|
const preview = react.usePreviewProjectPlanChange(
|
|
@@ -14801,7 +14801,7 @@ function ChangeProPlan({
|
|
|
14801
14801
|
);
|
|
14802
14802
|
const noChange = sameAsScheduled || preview.data?.unchanged === true;
|
|
14803
14803
|
const isPersonal = project.is_personal === true;
|
|
14804
|
-
const nameFor = (packs) => packs === 0 && !isPersonal ? "Cancel subscription" : packs === currentPacks && packs > 0 ?
|
|
14804
|
+
const nameFor = (packs) => packs === 0 && !isPersonal ? "Cancel subscription" : packs === currentPacks && packs > 0 ? chunkGEZB3OEC_cjs.proTierName(project) : chunkGEZB3OEC_cjs.planNameForPacks(packs);
|
|
14805
14805
|
const effects = [];
|
|
14806
14806
|
const target = nameFor(targetPacks);
|
|
14807
14807
|
if (targetPacks === 0) {
|
|
@@ -14813,7 +14813,7 @@ function ChangeProPlan({
|
|
|
14813
14813
|
if (targetPacks < currentPacks) {
|
|
14814
14814
|
effects.push(`Changes to one Pro licence on ${when2}. No refund.`);
|
|
14815
14815
|
} else if (!isCanceling && addons?.packs_next != null) {
|
|
14816
|
-
effects.push(`Cancels the change to ${
|
|
14816
|
+
effects.push(`Cancels the change to ${chunkGEZB3OEC_cjs.planNameForPacks(addons.packs_next)}.`);
|
|
14817
14817
|
}
|
|
14818
14818
|
if (targetInterval !== currentInterval) {
|
|
14819
14819
|
effects.push(`${targetInterval === "year" ? "Annual" : "Monthly"} billing from ${when2}.`);
|
|
@@ -14852,26 +14852,26 @@ function ChangeProPlan({
|
|
|
14852
14852
|
if (packs === 0) {
|
|
14853
14853
|
return {
|
|
14854
14854
|
total: isPersonal ? "\xA30" : void 0,
|
|
14855
|
-
summary: isPersonal ? `${react.formatGbp(
|
|
14855
|
+
summary: isPersonal ? `${react.formatGbp(chunkGEZB3OEC_cjs.FREE_AI_GBP)} of AI credits \xB7 ${chunkGEZB3OEC_cjs.FREE_STORAGE_MB} MB \xB7 just you` : "Suspended after the paid period. 30 days to export or resubscribe."
|
|
14856
14856
|
};
|
|
14857
14857
|
}
|
|
14858
|
-
const allowance = `${react.formatGbp(
|
|
14859
|
-
const legacy = packs >
|
|
14860
|
-
const exVat = legacy ? project.amount_ex_vat :
|
|
14858
|
+
const allowance = `${react.formatGbp(chunkGEZB3OEC_cjs.PRO_AI_GBP * packs)} of AI credits \xB7 ${chunkGEZB3OEC_cjs.PRO_STORAGE_GB * packs} GB`;
|
|
14859
|
+
const legacy = packs > chunkGEZB3OEC_cjs.PRO_PACKS;
|
|
14860
|
+
const exVat = legacy ? project.amount_ex_vat : chunkGEZB3OEC_cjs.packPrice(intervalPrice)?.amount_ex_vat;
|
|
14861
14861
|
return {
|
|
14862
|
-
total: exVat != null ?
|
|
14862
|
+
total: exVat != null ? chunkGEZB3OEC_cjs.plusVat(exVat, currency) : void 0,
|
|
14863
14863
|
summary: allowance
|
|
14864
14864
|
};
|
|
14865
14865
|
};
|
|
14866
14866
|
return /* @__PURE__ */ jsxRuntime.jsxs(chunkT73BHNQX_cjs.PlanStack, { gap: 4, testId: "change-pro-plan", children: [
|
|
14867
14867
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center justify-between gap-2", children: [
|
|
14868
14868
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium text-foreground", children: "Billing" }),
|
|
14869
|
-
targetPacks >
|
|
14869
|
+
targetPacks > chunkGEZB3OEC_cjs.PRO_PACKS ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-muted-foreground", "data-testid": "change-plan-interval-fixed", children: currentInterval === "year" ? "Annual" : "Monthly" }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
14870
14870
|
chunkT73BHNQX_cjs.PricingToggle,
|
|
14871
14871
|
{
|
|
14872
14872
|
isAnnual: targetInterval === "year",
|
|
14873
14873
|
onToggle: () => setChosenInterval(targetInterval === "year" ? "month" : "year"),
|
|
14874
|
-
savingsPercent:
|
|
14874
|
+
savingsPercent: chunkGEZB3OEC_cjs.calcSavingsPercent(prices.monthly, prices.annual)
|
|
14875
14875
|
}
|
|
14876
14876
|
)
|
|
14877
14877
|
] }),
|
|
@@ -14896,12 +14896,12 @@ function ChangeProPlan({
|
|
|
14896
14896
|
}) }),
|
|
14897
14897
|
isLegacyMultiPack && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-x-3 gap-y-1", children: [
|
|
14898
14898
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkT73BHNQX_cjs.PlanNotice, { className: "text-xs", testId: "change-plan-legacy-note", children: [
|
|
14899
|
-
|
|
14899
|
+
chunkGEZB3OEC_cjs.proTierName(project),
|
|
14900
14900
|
" is no longer sold"
|
|
14901
14901
|
] }),
|
|
14902
14902
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkT73BHNQX_cjs.MoreInfo, { title: "Legacy plan", testId: "change-plan-legacy-more-info", children: [
|
|
14903
14903
|
/* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
|
|
14904
|
-
|
|
14904
|
+
chunkGEZB3OEC_cjs.proTierName(project),
|
|
14905
14905
|
" keeps renewing at its own price, with its allowance and add-ons, until you change it."
|
|
14906
14906
|
] }),
|
|
14907
14907
|
/* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
|
|
@@ -14933,7 +14933,7 @@ function ChangeProPlan({
|
|
|
14933
14933
|
] });
|
|
14934
14934
|
}
|
|
14935
14935
|
function ChangePlanDialog({ project, open, onOpenChange }) {
|
|
14936
|
-
const isPro = !!project &&
|
|
14936
|
+
const isPro = !!project && chunkGEZB3OEC_cjs.isProProject(project);
|
|
14937
14937
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
14938
14938
|
chunkT73BHNQX_cjs.PlanDialogFrame,
|
|
14939
14939
|
{
|
|
@@ -14958,14 +14958,14 @@ function ChangePlanDialog({ project, open, onOpenChange }) {
|
|
|
14958
14958
|
}
|
|
14959
14959
|
function ProjectsTable() {
|
|
14960
14960
|
const { data: projects, isLoading } = react.useProjects();
|
|
14961
|
-
const currentUserExtId =
|
|
14961
|
+
const currentUserExtId = chunkGEZB3OEC_cjs.useSelfExtId();
|
|
14962
14962
|
const { openProject } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
14963
14963
|
const updateProject = react.useUpdateProjectFields();
|
|
14964
14964
|
const [renameTarget, setRenameTarget] = react$1.useState(null);
|
|
14965
14965
|
const [renameValue, setRenameValue] = react$1.useState("");
|
|
14966
14966
|
const [invoicesTarget, setInvoicesTarget] = react$1.useState(null);
|
|
14967
14967
|
const [upgradeTarget, setUpgradeTarget] = react$1.useState(null);
|
|
14968
|
-
const { stripeEnabled } =
|
|
14968
|
+
const { stripeEnabled } = chunkGEZB3OEC_cjs.useBillingSupport();
|
|
14969
14969
|
const ownedProjects = react$1.useMemo(
|
|
14970
14970
|
() => (projects ?? []).filter((p) => p.created_by === currentUserExtId),
|
|
14971
14971
|
[projects, currentUserExtId]
|
|
@@ -15009,8 +15009,8 @@ function ProjectsTable() {
|
|
|
15009
15009
|
testId: `project-row-${p.external_id}`,
|
|
15010
15010
|
onOpen: () => openProject(p.external_id),
|
|
15011
15011
|
identity: /* @__PURE__ */ jsxRuntime.jsx(ConnectedProjectEntity, { name: p.name, relation: "mine", subscription: p.subscription }),
|
|
15012
|
-
summary: stripeEnabled ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex items-center whitespace-nowrap", children: /* @__PURE__ */ jsxRuntime.jsx(chunkT73BHNQX_cjs.PlanBadge, { ...
|
|
15013
|
-
usage: p.quotas ? /* @__PURE__ */ jsxRuntime.jsx(chunkT73BHNQX_cjs.QuotaMeter, { items:
|
|
15012
|
+
summary: stripeEnabled ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex items-center whitespace-nowrap", children: /* @__PURE__ */ jsxRuntime.jsx(chunkT73BHNQX_cjs.PlanBadge, { ...chunkGEZB3OEC_cjs.planBadgeView(p) }) }) : void 0,
|
|
15013
|
+
usage: p.quotas ? /* @__PURE__ */ jsxRuntime.jsx(chunkT73BHNQX_cjs.QuotaMeter, { items: chunkGEZB3OEC_cjs.getQuotaItems(p.quotas), size: "lg" }) : void 0,
|
|
15014
15014
|
actions: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
15015
15015
|
canUpgrade && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
15016
15016
|
ui.Button,
|
|
@@ -15077,7 +15077,7 @@ function ProjectsTable() {
|
|
|
15077
15077
|
}
|
|
15078
15078
|
function SharedProjects() {
|
|
15079
15079
|
const { data: projects } = react.useProjects();
|
|
15080
|
-
const currentUserExtId =
|
|
15080
|
+
const currentUserExtId = chunkGEZB3OEC_cjs.useSelfExtId();
|
|
15081
15081
|
const { data: usageToday } = react.useUserUsageToday();
|
|
15082
15082
|
const shared = react$1.useMemo(
|
|
15083
15083
|
() => (projects ?? []).filter((p) => p.created_by !== currentUserExtId),
|
|
@@ -15199,10 +15199,10 @@ function CollaboratorPlan({ project }) {
|
|
|
15199
15199
|
const next = addons.collaborator_blocks_next ?? blocks;
|
|
15200
15200
|
const included = addons.included_collaborators ?? 0;
|
|
15201
15201
|
const size = addons.block_collaborators ?? 0;
|
|
15202
|
-
const from =
|
|
15202
|
+
const from = chunkGEZB3OEC_cjs.formatPeriodEnd(addons.period_end ?? project.current_period_end) ?? "the next billing period";
|
|
15203
15203
|
const annual = project.plan_interval === "year";
|
|
15204
|
-
const now = quote.data ?
|
|
15205
|
-
const renewal = quote.data ?
|
|
15204
|
+
const now = quote.data ? chunkGEZB3OEC_cjs.quoteParts(quote.data.now) : null;
|
|
15205
|
+
const renewal = quote.data ? chunkGEZB3OEC_cjs.quoteParts(quote.data.renewal) : null;
|
|
15206
15206
|
const busy = add.isPending || update.isPending;
|
|
15207
15207
|
const setNext = (count2) => update.mutate(
|
|
15208
15208
|
{ projectExtId: project.external_id, body: { collaborator_blocks: count2 } },
|
|
@@ -15241,7 +15241,7 @@ function CollaboratorPlan({ project }) {
|
|
|
15241
15241
|
project.quotas.collaborators.limit,
|
|
15242
15242
|
" available \xB7 you don't count towards the limit."
|
|
15243
15243
|
] }),
|
|
15244
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { children: addons.collaborator_block_period_ex_vat_pence != null ? `${
|
|
15244
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { children: addons.collaborator_block_period_ex_vat_pence != null ? `${chunkGEZB3OEC_cjs.formatMoney(addons.collaborator_block_period_ex_vat_pence, project.currency ?? "gbp")}/${annual ? "year" : "month"} per pack, plus tax.` : "The price is confirmed before purchase." }),
|
|
15245
15245
|
/* @__PURE__ */ jsxRuntime.jsx("p", { children: "Adding a pack charges your saved card for the rest of this billing period, then renews until removed. Collaborators share the project's AI credits budget." }),
|
|
15246
15246
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
15247
15247
|
ui.Button,
|
|
@@ -15304,20 +15304,20 @@ function CollaboratorPlan({ project }) {
|
|
|
15304
15304
|
now && renewal && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2 text-sm", children: [
|
|
15305
15305
|
/* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
|
|
15306
15306
|
"Pay ",
|
|
15307
|
-
|
|
15307
|
+
chunkGEZB3OEC_cjs.money2(now.total),
|
|
15308
15308
|
" today (",
|
|
15309
|
-
|
|
15309
|
+
chunkGEZB3OEC_cjs.taxDetail(now),
|
|
15310
15310
|
"), covering until ",
|
|
15311
15311
|
from,
|
|
15312
15312
|
"."
|
|
15313
15313
|
] }),
|
|
15314
15314
|
/* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
|
|
15315
15315
|
"Then ",
|
|
15316
|
-
|
|
15316
|
+
chunkGEZB3OEC_cjs.money2(renewal.total),
|
|
15317
15317
|
" every ",
|
|
15318
15318
|
annual ? "year" : "month",
|
|
15319
15319
|
" (",
|
|
15320
|
-
|
|
15320
|
+
chunkGEZB3OEC_cjs.taxDetail(renewal),
|
|
15321
15321
|
"), starting ",
|
|
15322
15322
|
from,
|
|
15323
15323
|
", until you remove the pack."
|
|
@@ -15330,7 +15330,7 @@ function CollaboratorPlan({ project }) {
|
|
|
15330
15330
|
] }),
|
|
15331
15331
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.DialogFooter, { children: [
|
|
15332
15332
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Button, { variant: "outline", onClick: () => setOpen(false), children: "Cancel" }),
|
|
15333
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui.Button, { onClick: buy, disabled: !now || !renewal || quote.isFetching || busy, children: add.isPending ? "Paying\u2026" : now ? `Pay ${
|
|
15333
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.Button, { onClick: buy, disabled: !now || !renewal || quote.isFetching || busy, children: add.isPending ? "Paying\u2026" : now ? `Pay ${chunkGEZB3OEC_cjs.money2(now.total)}` : "Add collaborators" })
|
|
15334
15334
|
] })
|
|
15335
15335
|
] }) })
|
|
15336
15336
|
] });
|
|
@@ -15376,9 +15376,9 @@ function SubscriptionStatus({ project }) {
|
|
|
15376
15376
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15377
15377
|
chunkT73BHNQX_cjs.SubscriptionStatusView,
|
|
15378
15378
|
{
|
|
15379
|
-
resetDate:
|
|
15379
|
+
resetDate: chunkGEZB3OEC_cjs.formatResetDate(addons?.ai_usage_reset_at ?? current_period_end),
|
|
15380
15380
|
isCanceling: subscription === "canceled" || cancel_at_period_end === true,
|
|
15381
|
-
meters:
|
|
15381
|
+
meters: chunkGEZB3OEC_cjs.getQuotaItems(quotas).map((q) => ({
|
|
15382
15382
|
key: q.key,
|
|
15383
15383
|
icon: q.icon,
|
|
15384
15384
|
label: q.label,
|
|
@@ -15442,7 +15442,7 @@ function PendingChange({
|
|
|
15442
15442
|
}
|
|
15443
15443
|
);
|
|
15444
15444
|
}
|
|
15445
|
-
var titleFor = (kind, blockAiGbp, blockStorageGb) => kind === "ai_usage" ? `Add ${react.formatGbp(blockAiGbp ??
|
|
15445
|
+
var titleFor = (kind, blockAiGbp, blockStorageGb) => kind === "ai_usage" ? `Add ${react.formatGbp(blockAiGbp ?? chunkGEZB3OEC_cjs.ADDON_BLOCK_AI_GBP)} of AI credits` : `Add ${blockStorageGb ?? chunkGEZB3OEC_cjs.STORAGE_BLOCK_GB} GB storage`;
|
|
15446
15446
|
var blocksOf = (kind, project) => (kind === "ai_usage" ? project.addons?.ai_blocks : project.addons?.storage_blocks) ?? 0;
|
|
15447
15447
|
function Row({ label, children }) {
|
|
15448
15448
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-baseline justify-between gap-4", children: [
|
|
@@ -15463,11 +15463,11 @@ function AddAddonDialog({
|
|
|
15463
15463
|
const addons = project.addons;
|
|
15464
15464
|
if (!addons) return null;
|
|
15465
15465
|
const isAnnual = project.plan_interval === "year";
|
|
15466
|
-
const price =
|
|
15467
|
-
const nextCharge =
|
|
15468
|
-
const now = quote.data ?
|
|
15469
|
-
const renewal = quote.data ?
|
|
15470
|
-
const today = now ? { total:
|
|
15466
|
+
const price = chunkGEZB3OEC_cjs.addonCharge(kind, addons, isAnnual, addons.period_end ?? project.current_period_end);
|
|
15467
|
+
const nextCharge = chunkGEZB3OEC_cjs.formatPeriodEnd(addons.period_end ?? project.current_period_end);
|
|
15468
|
+
const now = quote.data ? chunkGEZB3OEC_cjs.quoteParts(quote.data.now) : null;
|
|
15469
|
+
const renewal = quote.data ? chunkGEZB3OEC_cjs.quoteParts(quote.data.renewal) : null;
|
|
15470
|
+
const today = now ? { total: chunkGEZB3OEC_cjs.money2(now.total), detail: chunkGEZB3OEC_cjs.taxDetail(now) } : { total: price.now, detail: `incl. VAT (${price.nowExVat} + ${price.nowVat} VAT)` };
|
|
15471
15471
|
const pricing = quote.isLoading;
|
|
15472
15472
|
const confirm = () => {
|
|
15473
15473
|
const before = blocksOf(kind, project);
|
|
@@ -15522,7 +15522,7 @@ function AddAddonDialog({
|
|
|
15522
15522
|
term: "Usage cap",
|
|
15523
15523
|
text: "Adding by hand is never blocked by the usage cap; the cap limits automatic top-ups only."
|
|
15524
15524
|
},
|
|
15525
|
-
...isAnnual && kind === "ai_usage" ? [{ term: "Annual", text: `${
|
|
15525
|
+
...isAnnual && kind === "ai_usage" ? [{ term: "Annual", text: `${chunkGEZB3OEC_cjs.ANNUAL_PREMIUM_AI_NOTE}.` }] : []
|
|
15526
15526
|
]
|
|
15527
15527
|
}
|
|
15528
15528
|
) })
|
|
@@ -15545,7 +15545,7 @@ function AddAddonDialog({
|
|
|
15545
15545
|
)
|
|
15546
15546
|
] }) }),
|
|
15547
15547
|
!pricing && /* @__PURE__ */ jsxRuntime.jsxs(Row, { label: "Next charge", children: [
|
|
15548
|
-
renewal ?
|
|
15548
|
+
renewal ? chunkGEZB3OEC_cjs.totalWithTaxWord(renewal) : price.then.replace(/\/(month|year)/, ""),
|
|
15549
15549
|
nextCharge ? ` on ${nextCharge}` : " at renewal"
|
|
15550
15550
|
] })
|
|
15551
15551
|
] }) }),
|
|
@@ -15576,11 +15576,11 @@ function ReduceAddonDialog({
|
|
|
15576
15576
|
const update = react.useUpdateProjectNextPeriodAddons();
|
|
15577
15577
|
const addons = project.addons;
|
|
15578
15578
|
if (!addons) return null;
|
|
15579
|
-
const { min, next } =
|
|
15579
|
+
const { min, next } = chunkGEZB3OEC_cjs.reduceBounds(kind, addons);
|
|
15580
15580
|
const keep2 = Math.max(min, next - 1);
|
|
15581
|
-
const size =
|
|
15582
|
-
const what =
|
|
15583
|
-
const from =
|
|
15581
|
+
const size = chunkGEZB3OEC_cjs.nextRemovedBlockSize(kind, addons);
|
|
15582
|
+
const what = chunkGEZB3OEC_cjs.stepLabel(kind, size);
|
|
15583
|
+
const from = chunkGEZB3OEC_cjs.formatPeriodEnd(addons.period_end ?? project.current_period_end) ?? "your next renewal";
|
|
15584
15584
|
const fromShort = from.replace(/ \d{4}$/, "");
|
|
15585
15585
|
const allowanceNext = kind === "ai_usage" ? addons.ai_allowance_next_gbp - size : addons.storage_allowance_next_gb - size;
|
|
15586
15586
|
const allowanceNow = kind === "ai_usage" ? addons.ai_allowance_gbp : addons.storage_allowance_gb;
|
|
@@ -15588,7 +15588,7 @@ function ReduceAddonDialog({
|
|
|
15588
15588
|
const save = () => update.mutate(
|
|
15589
15589
|
{
|
|
15590
15590
|
projectExtId: project.external_id,
|
|
15591
|
-
body:
|
|
15591
|
+
body: chunkGEZB3OEC_cjs.nextPeriodBody(kind, keep2)
|
|
15592
15592
|
},
|
|
15593
15593
|
{
|
|
15594
15594
|
onSuccess: () => {
|
|
@@ -15673,7 +15673,7 @@ function ReduceAddonDialog({
|
|
|
15673
15673
|
}
|
|
15674
15674
|
) });
|
|
15675
15675
|
}
|
|
15676
|
-
var gbp = (pence) =>
|
|
15676
|
+
var gbp = (pence) => chunkGEZB3OEC_cjs.formatMoney(pence, "gbp");
|
|
15677
15677
|
var gb2 = (n) => `${Math.round(n * 10) / 10} GB`;
|
|
15678
15678
|
function formatShortDate(unix) {
|
|
15679
15679
|
if (!unix) return null;
|
|
@@ -15684,20 +15684,20 @@ function AutoTopupThreshold({
|
|
|
15684
15684
|
addons
|
|
15685
15685
|
}) {
|
|
15686
15686
|
const updateSettings = react.useUpdateProjectAddonSettings();
|
|
15687
|
-
const min = addons.min_auto_topup_threshold_gbp ||
|
|
15687
|
+
const min = addons.min_auto_topup_threshold_gbp || chunkGEZB3OEC_cjs.MIN_AUTO_TOPUP_THRESHOLD_GBP;
|
|
15688
15688
|
const saved = addons.auto_topup_threshold_gbp;
|
|
15689
15689
|
const [value, setValue] = react$1.useState(String(saved));
|
|
15690
15690
|
react$1.useEffect(() => setValue(String(saved)), [saved]);
|
|
15691
15691
|
const parsed = Number(value);
|
|
15692
15692
|
const valid = Number.isFinite(parsed) && parsed >= min;
|
|
15693
15693
|
const dirty = valid && parsed !== saved;
|
|
15694
|
-
const off =
|
|
15694
|
+
const off = chunkGEZB3OEC_cjs.isAddonBudgetZero(addons);
|
|
15695
15695
|
const save = () => {
|
|
15696
15696
|
if (!dirty) return;
|
|
15697
15697
|
updateSettings.mutate(
|
|
15698
15698
|
{
|
|
15699
15699
|
projectExtId: project.external_id,
|
|
15700
|
-
body:
|
|
15700
|
+
body: chunkGEZB3OEC_cjs.addonSettingsBody(addons, { auto_topup_threshold_gbp: parsed })
|
|
15701
15701
|
},
|
|
15702
15702
|
{
|
|
15703
15703
|
onSuccess: () => shell.notify.success(`Auto-add below ${react.formatGbp(parsed)} of AI credits left`),
|
|
@@ -15794,10 +15794,10 @@ function ResourceMeter({
|
|
|
15794
15794
|
const update = react.useUpdateProjectNextPeriodAddons();
|
|
15795
15795
|
const isAi = kind === "ai_usage";
|
|
15796
15796
|
const slug = isAi ? "ai-usage" : "storage";
|
|
15797
|
-
const periodEnd =
|
|
15797
|
+
const periodEnd = chunkGEZB3OEC_cjs.formatPeriodEnd(addons.period_end ?? project.current_period_end);
|
|
15798
15798
|
const from = periodEnd ?? "your next renewal";
|
|
15799
15799
|
const fromShort = formatShortDate(addons.period_end ?? project.current_period_end) ?? "renewal";
|
|
15800
|
-
const { min, current, next } =
|
|
15800
|
+
const { min, current, next } = chunkGEZB3OEC_cjs.reduceBounds(kind, addons);
|
|
15801
15801
|
const fmt = (n) => isAi ? react.formatGbp(n) : gb2(n);
|
|
15802
15802
|
const used = isAi ? addons.ai_used_gbp : addons.storage_used_gb;
|
|
15803
15803
|
const allowance = isAi ? addons.ai_allowance_gbp : addons.storage_allowance_gb;
|
|
@@ -15805,15 +15805,15 @@ function ResourceMeter({
|
|
|
15805
15805
|
const plan = isAi ? addons.plan_ai_gbp : addons.plan_storage_gb;
|
|
15806
15806
|
const topUps = Math.max(0, allowance - plan);
|
|
15807
15807
|
const blocks = isAi ? addons.ai_blocks : addons.storage_blocks;
|
|
15808
|
-
const hasLegacy =
|
|
15809
|
-
const room =
|
|
15810
|
-
const capZero =
|
|
15811
|
-
const resets = isAi ? formatShortDate(
|
|
15812
|
-
const removeSize =
|
|
15808
|
+
const hasLegacy = chunkGEZB3OEC_cjs.splitBlocks(kind, blocks, addons).legacy > 0;
|
|
15809
|
+
const room = chunkGEZB3OEC_cjs.autoRoom(kind, addons);
|
|
15810
|
+
const capZero = chunkGEZB3OEC_cjs.isAddonBudgetZero(addons);
|
|
15811
|
+
const resets = isAi ? formatShortDate(chunkGEZB3OEC_cjs.aiUsageResetTimestamp(project)) : null;
|
|
15812
|
+
const removeSize = chunkGEZB3OEC_cjs.nextRemovedBlockSize(kind, addons);
|
|
15813
15813
|
const undo = () => update.mutate(
|
|
15814
15814
|
{
|
|
15815
15815
|
projectExtId: project.external_id,
|
|
15816
|
-
body:
|
|
15816
|
+
body: chunkGEZB3OEC_cjs.nextPeriodBody(kind, current)
|
|
15817
15817
|
},
|
|
15818
15818
|
{
|
|
15819
15819
|
onSuccess: () => shell.notify.success("Kept"),
|
|
@@ -15830,7 +15830,7 @@ function ResourceMeter({
|
|
|
15830
15830
|
allowance: { used, plan, topUps, autoRoom: capZero ? 0 : room },
|
|
15831
15831
|
legend: {
|
|
15832
15832
|
plan: `Plan ${fmt(plan)}`,
|
|
15833
|
-
topUps: topUps > 0 ? `Top-ups ${fmt(topUps)}${hasLegacy ? ` (${
|
|
15833
|
+
topUps: topUps > 0 ? `Top-ups ${fmt(topUps)}${hasLegacy ? ` (${chunkGEZB3OEC_cjs.blocksLabel(kind, blocks, addons)})` : ""}` : void 0,
|
|
15834
15834
|
autoRoom: room != null && room > 0 && !capZero ? `Automatic up to ${fmt(room)}` : void 0
|
|
15835
15835
|
},
|
|
15836
15836
|
testId: `usage-meter-${slug}`,
|
|
@@ -15859,9 +15859,9 @@ function ResourceMeter({
|
|
|
15859
15859
|
{
|
|
15860
15860
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { className: "size-3.5" }),
|
|
15861
15861
|
label: isAi ? react.formatGbp(addons.block_ai_gbp) : `${addons.block_storage_gb} GB`,
|
|
15862
|
-
caption:
|
|
15862
|
+
caption: chunkGEZB3OEC_cjs.addStepCaption(kind, addons),
|
|
15863
15863
|
onClick: onAdd,
|
|
15864
|
-
ariaLabel: `Add ${
|
|
15864
|
+
ariaLabel: `Add ${chunkGEZB3OEC_cjs.stepLabel(kind, isAi ? addons.block_ai_gbp : addons.block_storage_gb)}`,
|
|
15865
15865
|
testId: isAi ? "add-ai-block-button" : "add-storage-block-button"
|
|
15866
15866
|
}
|
|
15867
15867
|
),
|
|
@@ -15874,7 +15874,7 @@ function ResourceMeter({
|
|
|
15874
15874
|
label: isAi ? react.formatGbp(removeSize) : `${removeSize} GB`,
|
|
15875
15875
|
caption: `from ${fromShort}`,
|
|
15876
15876
|
onClick: onReduce,
|
|
15877
|
-
ariaLabel: `Remove ${
|
|
15877
|
+
ariaLabel: `Remove ${chunkGEZB3OEC_cjs.stepLabel(kind, removeSize)} from ${from}`,
|
|
15878
15878
|
testId: `reduce-${slug}-button`
|
|
15879
15879
|
}
|
|
15880
15880
|
)
|
|
@@ -15888,8 +15888,8 @@ function UsageCapEditor({ project, addons }) {
|
|
|
15888
15888
|
const sectionRef = react$1.useRef(null);
|
|
15889
15889
|
const inputRef = react$1.useRef(null);
|
|
15890
15890
|
const minimum = 0;
|
|
15891
|
-
const stepPence = addons.spend_cap_step_pence ??
|
|
15892
|
-
const saved = addons.spend_cap_pence ?? addons.default_spend_cap_pence ??
|
|
15891
|
+
const stepPence = addons.spend_cap_step_pence ?? 2e3;
|
|
15892
|
+
const saved = addons.spend_cap_pence ?? addons.default_spend_cap_pence ?? chunkGEZB3OEC_cjs.DEFAULT_SPEND_CAP_PENCE;
|
|
15893
15893
|
const maximum = addons.maximum_spend_cap_pence ?? 5e4;
|
|
15894
15894
|
const normalize = (n) => Math.max(0, Math.min(maximum, Math.floor(n / stepPence) * stepPence));
|
|
15895
15895
|
const [value, setValue] = react$1.useState(normalize(saved));
|
|
@@ -15907,10 +15907,10 @@ function UsageCapEditor({ project, addons }) {
|
|
|
15907
15907
|
const save = () => updateSettings.mutate(
|
|
15908
15908
|
{
|
|
15909
15909
|
projectExtId: project.external_id,
|
|
15910
|
-
body:
|
|
15910
|
+
body: chunkGEZB3OEC_cjs.addonSettingsBody(addons, { spend_cap_pence: value })
|
|
15911
15911
|
},
|
|
15912
15912
|
{
|
|
15913
|
-
onSuccess: () => shell.notify.success(
|
|
15913
|
+
onSuccess: () => shell.notify.success(chunkGEZB3OEC_cjs.budgetSavedMessage(value)),
|
|
15914
15914
|
onError: (error) => shell.notify.error(addonErrorMessage(error))
|
|
15915
15915
|
}
|
|
15916
15916
|
);
|
|
@@ -15963,7 +15963,7 @@ function UsageInfo({ addons, isAnnual }) {
|
|
|
15963
15963
|
term: "Automatic top-ups",
|
|
15964
15964
|
text: "One step is added when AI credits drops below your auto top-up level, or when an upload needs more storage."
|
|
15965
15965
|
},
|
|
15966
|
-
{ term: "Usage cap", text:
|
|
15966
|
+
{ term: "Usage cap", text: chunkGEZB3OEC_cjs.USAGE_CAP_HELP },
|
|
15967
15967
|
{
|
|
15968
15968
|
term: "Reducing",
|
|
15969
15969
|
text: "\u2212 removes one step from your next renewal. You keep this period's allowance. No refunds."
|
|
@@ -15974,7 +15974,7 @@ function UsageInfo({ addons, isAnnual }) {
|
|
|
15974
15974
|
text: "Top-ups bought on an earlier price keep their size and price until removed; they are removed last."
|
|
15975
15975
|
}
|
|
15976
15976
|
] : [],
|
|
15977
|
-
...isAnnual ? [{ term: "Annual", text: `${
|
|
15977
|
+
...isAnnual ? [{ term: "Annual", text: `${chunkGEZB3OEC_cjs.ANNUAL_PREMIUM_AI_NOTE}.` }] : [],
|
|
15978
15978
|
{
|
|
15979
15979
|
term: "Prices",
|
|
15980
15980
|
text: "Shown ex VAT. The confirm step shows the total with VAT before you pay."
|
|
@@ -16067,7 +16067,7 @@ function formatShortDate2(unix) {
|
|
|
16067
16067
|
if (!unix) return null;
|
|
16068
16068
|
return new Date(unix * 1e3).toLocaleDateString("en-GB", { day: "numeric", month: "short" });
|
|
16069
16069
|
}
|
|
16070
|
-
var gbp2 = (pence) =>
|
|
16070
|
+
var gbp2 = (pence) => chunkGEZB3OEC_cjs.formatMoney(pence, "gbp");
|
|
16071
16071
|
var gbNum = (n) => `${Math.round(n * 10) / 10}`;
|
|
16072
16072
|
var pct = (used, limit) => limit > 0 ? Math.min(100, used / limit * 100) : 0;
|
|
16073
16073
|
function Meter({
|
|
@@ -16085,15 +16085,15 @@ function Meter({
|
|
|
16085
16085
|
] });
|
|
16086
16086
|
}
|
|
16087
16087
|
function usePlanPrice(project) {
|
|
16088
|
-
const { data: products } = react.useProducts({ enabled:
|
|
16089
|
-
if (!
|
|
16088
|
+
const { data: products } = react.useProducts({ enabled: chunkGEZB3OEC_cjs.isProProject(project) });
|
|
16089
|
+
if (!chunkGEZB3OEC_cjs.isProProject(project)) return null;
|
|
16090
16090
|
const isAnnual = project.plan_interval === "year";
|
|
16091
16091
|
if (project.amount != null) {
|
|
16092
16092
|
return { incl: project.amount, ex: project.amount_ex_vat ?? null, isAnnual };
|
|
16093
16093
|
}
|
|
16094
|
-
if ((project.packs ??
|
|
16095
|
-
const prices =
|
|
16096
|
-
const pp =
|
|
16094
|
+
if ((project.packs ?? chunkGEZB3OEC_cjs.PRO_PACKS) > chunkGEZB3OEC_cjs.PRO_PACKS) return null;
|
|
16095
|
+
const prices = chunkGEZB3OEC_cjs.findProPrices(products);
|
|
16096
|
+
const pp = chunkGEZB3OEC_cjs.packPrice(isAnnual ? prices.annual : prices.monthly);
|
|
16097
16097
|
return pp ? { incl: pp.amount, ex: pp.amount_ex_vat, isAnnual } : null;
|
|
16098
16098
|
}
|
|
16099
16099
|
function paidLine(payment, addons) {
|
|
@@ -16106,11 +16106,11 @@ function ProjectPlanCard({
|
|
|
16106
16106
|
onChangePlan
|
|
16107
16107
|
}) {
|
|
16108
16108
|
const { quotas, addons } = project;
|
|
16109
|
-
const isPro =
|
|
16109
|
+
const isPro = chunkGEZB3OEC_cjs.isProProject(project);
|
|
16110
16110
|
const used = quotas?.ai_usage?.used ?? 0;
|
|
16111
16111
|
const limit = quotas?.ai_usage?.limit ?? 0;
|
|
16112
|
-
const resetDate = formatShortDate2(
|
|
16113
|
-
const periodEnd =
|
|
16112
|
+
const resetDate = formatShortDate2(chunkGEZB3OEC_cjs.aiUsageResetTimestamp(project));
|
|
16113
|
+
const periodEnd = chunkGEZB3OEC_cjs.formatPeriodEnd(addons?.period_end ?? project.current_period_end);
|
|
16114
16114
|
const when2 = periodEnd ?? "the end of the period";
|
|
16115
16115
|
const storageUsed = quotas?.storage_gb?.used ?? 0;
|
|
16116
16116
|
const storageLimit = quotas?.storage_gb?.limit ?? 0;
|
|
@@ -16126,7 +16126,7 @@ function ProjectPlanCard({
|
|
|
16126
16126
|
project.external_id,
|
|
16127
16127
|
hasScheduledChange && addons ? { packs: packsNext ?? addons.packs, interval: pending ?? currentInterval } : null
|
|
16128
16128
|
).data;
|
|
16129
|
-
const tier = isPro ?
|
|
16129
|
+
const tier = isPro ? chunkGEZB3OEC_cjs.proTierName(project) : project.subscription === "dev" ? "Dev" : "Free";
|
|
16130
16130
|
const pendingPayment = addons?.payment?.status === "pending" ? addons.payment : null;
|
|
16131
16131
|
const confirmUrl = pendingPayment?.confirm_url ?? addons?.confirm_url;
|
|
16132
16132
|
const paidPayment = addons?.payment?.status === "paid" ? addons.payment : null;
|
|
@@ -16160,7 +16160,7 @@ function ProjectPlanCard({
|
|
|
16160
16160
|
isPro && " ",
|
|
16161
16161
|
isPro && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ml-1 text-sm font-normal text-muted-foreground", children: currentInterval === "year" ? "Annual" : "Monthly" })
|
|
16162
16162
|
] }),
|
|
16163
|
-
isPro && periodEnd && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm text-muted-foreground", "data-testid": "project-plan-renews", children: isCanceling ? `Ends ${periodEnd}` : hasScheduledChange && nextBill ? `Next bill ${
|
|
16163
|
+
isPro && periodEnd && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm text-muted-foreground", "data-testid": "project-plan-renews", children: isCanceling ? `Ends ${periodEnd}` : hasScheduledChange && nextBill ? `Next bill ${chunkGEZB3OEC_cjs.totalWithTaxWord({
|
|
16164
16164
|
subtotal: nextBill.next_renewal_ex_vat_pence,
|
|
16165
16165
|
tax: nextBill.next_renewal_tax_pence,
|
|
16166
16166
|
total: nextBill.next_renewal_pence,
|
|
@@ -16169,7 +16169,7 @@ function ProjectPlanCard({
|
|
|
16169
16169
|
] }),
|
|
16170
16170
|
price && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ml-auto text-right", "data-testid": "project-plan-price", children: [
|
|
16171
16171
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-lg font-semibold tabular-nums text-foreground", children: [
|
|
16172
|
-
price.ex != null ?
|
|
16172
|
+
price.ex != null ? chunkGEZB3OEC_cjs.plusVat(price.ex) : gbp2(price.incl),
|
|
16173
16173
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-normal text-muted-foreground", children: price.isAnnual ? "/year" : "/month" })
|
|
16174
16174
|
] }),
|
|
16175
16175
|
price.ex != null && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-xs text-muted-foreground", children: [
|
|
@@ -16207,7 +16207,7 @@ function ProjectPlanCard({
|
|
|
16207
16207
|
undoTestId: "undo-plan-change-button",
|
|
16208
16208
|
children: [
|
|
16209
16209
|
"Changes to ",
|
|
16210
|
-
|
|
16210
|
+
chunkGEZB3OEC_cjs.planNameForPacks(packsNext),
|
|
16211
16211
|
" on ",
|
|
16212
16212
|
when2,
|
|
16213
16213
|
"."
|
|
@@ -16298,7 +16298,7 @@ function ProjectBilling({
|
|
|
16298
16298
|
const { addons } = project;
|
|
16299
16299
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-4", "data-testid": "project-billing", children: [
|
|
16300
16300
|
/* @__PURE__ */ jsxRuntime.jsx(ProjectPlanCard, { project, onChangePlan }),
|
|
16301
|
-
addons &&
|
|
16301
|
+
addons && chunkGEZB3OEC_cjs.isProProject(project) && /* @__PURE__ */ jsxRuntime.jsx(ProjectUsageCard, { project, addons })
|
|
16302
16302
|
] });
|
|
16303
16303
|
}
|
|
16304
16304
|
var BREAKDOWN_LABELS = react.DEFAULT_USAGE_BREAKDOWN_SOURCE_LABELS.by;
|
|
@@ -16431,13 +16431,13 @@ function ProjectUsagePanels({
|
|
|
16431
16431
|
] });
|
|
16432
16432
|
}
|
|
16433
16433
|
function ProjectDetail({ projectExtId, storage }) {
|
|
16434
|
-
const { stripeEnabled } =
|
|
16434
|
+
const { stripeEnabled } = chunkGEZB3OEC_cjs.useBillingSupport();
|
|
16435
16435
|
const [planOpen, setPlanOpen] = react$1.useState(false);
|
|
16436
16436
|
const [renameOpen, setRenameOpen] = react$1.useState(false);
|
|
16437
16437
|
const [renameValue, setRenameValue] = react$1.useState("");
|
|
16438
16438
|
const updateProject = react.useUpdateProjectFields();
|
|
16439
16439
|
const { data: projects, isLoading } = react.useProjects();
|
|
16440
|
-
const currentUserExtId =
|
|
16440
|
+
const currentUserExtId = chunkGEZB3OEC_cjs.useSelfExtId();
|
|
16441
16441
|
const project = projects?.find((p) => p.external_id === projectExtId);
|
|
16442
16442
|
const handleSaveRename = react$1.useCallback(() => {
|
|
16443
16443
|
const trimmed = renameValue.trim();
|
|
@@ -16483,7 +16483,7 @@ function ProjectDetail({ projectExtId, storage }) {
|
|
|
16483
16483
|
setRenameValue(project.name);
|
|
16484
16484
|
setRenameOpen(true);
|
|
16485
16485
|
},
|
|
16486
|
-
badge: stripeEnabled ? /* @__PURE__ */ jsxRuntime.jsx(chunkT73BHNQX_cjs.PlanBadge, { ...
|
|
16486
|
+
badge: stripeEnabled ? /* @__PURE__ */ jsxRuntime.jsx(chunkT73BHNQX_cjs.PlanBadge, { ...chunkGEZB3OEC_cjs.planBadgeView(project), size: "md" }) : void 0
|
|
16487
16487
|
}
|
|
16488
16488
|
),
|
|
16489
16489
|
hasBilling && project.subscription === "suspended" ? /* @__PURE__ */ jsxRuntime.jsx(SuspendedProjectRecovery, { project, onResubscribe: () => setPlanOpen(true) }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -16533,7 +16533,7 @@ function ProjectDetail({ projectExtId, storage }) {
|
|
|
16533
16533
|
function useAutoRefreshPendingProjects() {
|
|
16534
16534
|
const { data: projects } = react.useProjects();
|
|
16535
16535
|
const refreshProject = react.useRefreshProject();
|
|
16536
|
-
const currentUserExtId =
|
|
16536
|
+
const currentUserExtId = chunkGEZB3OEC_cjs.useSelfExtId();
|
|
16537
16537
|
const refreshedRef = react$1.useRef(/* @__PURE__ */ new Set());
|
|
16538
16538
|
react$1.useEffect(() => {
|
|
16539
16539
|
if (!projects || !currentUserExtId) return;
|
|
@@ -16564,7 +16564,7 @@ function ConnectedQuotaDialog({ info, onClose: close }) {
|
|
|
16564
16564
|
if (quotaProjectId) void refetchProjects();
|
|
16565
16565
|
}, [quotaProjectId, refetchProjects]);
|
|
16566
16566
|
const project = info?.projectExtId ? projects?.find((p) => p.external_id === info.projectExtId) : void 0;
|
|
16567
|
-
const addons = project &&
|
|
16567
|
+
const addons = project && chunkGEZB3OEC_cjs.isProProject(project) ? project.addons : null;
|
|
16568
16568
|
const handleUpgrade = () => {
|
|
16569
16569
|
if (info?.projectExtId) {
|
|
16570
16570
|
requestProjectBillingFocus({ projectExtId: info.projectExtId, openUpgrade: true });
|
|
@@ -16600,8 +16600,8 @@ function ConnectedQuotaDialog({ info, onClose: close }) {
|
|
|
16600
16600
|
/* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {})
|
|
16601
16601
|
);
|
|
16602
16602
|
} else if (addons) {
|
|
16603
|
-
const price = `${
|
|
16604
|
-
const capZero =
|
|
16603
|
+
const price = `${chunkGEZB3OEC_cjs.formatMoney(addons.ai_block_price_ex_vat_pence, "gbp")} ex VAT`;
|
|
16604
|
+
const capZero = chunkGEZB3OEC_cjs.isAddonBudgetZero(addons);
|
|
16605
16605
|
const addAiUsage = /* @__PURE__ */ jsxRuntime.jsxs(ui.Button, { onClick: handleAddAiUsage, "data-testid": "quota-add-ai-usage-button", children: [
|
|
16606
16606
|
"Add ",
|
|
16607
16607
|
react.formatGbp(addons.block_ai_gbp),
|
|
@@ -16609,7 +16609,7 @@ function ConnectedQuotaDialog({ info, onClose: close }) {
|
|
|
16609
16609
|
price
|
|
16610
16610
|
] });
|
|
16611
16611
|
if (capZero || addons.cap_reached) {
|
|
16612
|
-
message = capZero ?
|
|
16612
|
+
message = capZero ? chunkGEZB3OEC_cjs.ZERO_BUDGET_MESSAGE : chunkGEZB3OEC_cjs.CAP_REACHED_MESSAGE;
|
|
16613
16613
|
actions = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
16614
16614
|
addAiUsage,
|
|
16615
16615
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Button, { variant: "outline", onClick: handleRaiseCap, "data-testid": "quota-raise-cap-button", children: capZero ? "Set cap" : "Raise cap" })
|
|
@@ -16798,7 +16798,7 @@ function ConnectedWelcomeDialog({
|
|
|
16798
16798
|
}) {
|
|
16799
16799
|
const currentUser = react.useArbiSession().user;
|
|
16800
16800
|
const { data: projects } = react.useProjects();
|
|
16801
|
-
const balance =
|
|
16801
|
+
const balance = chunkGEZB3OEC_cjs.useRewardBalance();
|
|
16802
16802
|
const [showPlans, setShowPlans] = react$1.useState(false);
|
|
16803
16803
|
const [showInvite, setShowInvite] = react$1.useState(false);
|
|
16804
16804
|
const [selectedProjectId, setSelectedProjectId] = react$1.useState(null);
|
|
@@ -16823,15 +16823,15 @@ function ConnectedWelcomeDialog({
|
|
|
16823
16823
|
ConnectedAddContacts,
|
|
16824
16824
|
{
|
|
16825
16825
|
onClose: () => handleOpenChange(false),
|
|
16826
|
-
rewardAmount:
|
|
16826
|
+
rewardAmount: chunkGEZB3OEC_cjs.formatMoney(REFERRAL_OFFER.amount, REFERRAL_OFFER.currency)
|
|
16827
16827
|
}
|
|
16828
16828
|
) });
|
|
16829
16829
|
}
|
|
16830
16830
|
const firstName = currentUser?.given_name;
|
|
16831
16831
|
const hasBalance = balance !== null;
|
|
16832
|
-
const quotaItems =
|
|
16833
|
-
const resetTs =
|
|
16834
|
-
const aiUsageHint = resetTs ? `resets ${
|
|
16832
|
+
const quotaItems = chunkGEZB3OEC_cjs.getQuotaItems(selectedProject.quotas);
|
|
16833
|
+
const resetTs = chunkGEZB3OEC_cjs.aiUsageResetTimestamp(selectedProject);
|
|
16834
|
+
const aiUsageHint = resetTs ? `resets ${chunkGEZB3OEC_cjs.formatResetDate(resetTs)}` : void 0;
|
|
16835
16835
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
16836
16836
|
chunkT73BHNQX_cjs.WelcomeDialog,
|
|
16837
16837
|
{
|
|
@@ -16848,7 +16848,7 @@ function ConnectedWelcomeDialog({
|
|
|
16848
16848
|
onChange: setSelectedProjectId
|
|
16849
16849
|
}
|
|
16850
16850
|
),
|
|
16851
|
-
planBadge: /* @__PURE__ */ jsxRuntime.jsx(chunkT73BHNQX_cjs.PlanBadge, { ...
|
|
16851
|
+
planBadge: /* @__PURE__ */ jsxRuntime.jsx(chunkT73BHNQX_cjs.PlanBadge, { ...chunkGEZB3OEC_cjs.planBadgeView(selectedProject), size: "md" }),
|
|
16852
16852
|
quotas: quotaItems.map((q) => ({
|
|
16853
16853
|
key: q.key,
|
|
16854
16854
|
icon: q.icon,
|
|
@@ -16858,9 +16858,9 @@ function ConnectedWelcomeDialog({
|
|
|
16858
16858
|
hint: q.key === "ai-usage" ? aiUsageHint : void 0
|
|
16859
16859
|
})),
|
|
16860
16860
|
onSeePlans: () => setShowPlans(true),
|
|
16861
|
-
referralOfferLabel: `${
|
|
16861
|
+
referralOfferLabel: `${chunkGEZB3OEC_cjs.formatMoney(REFERRAL_OFFER.amount, REFERRAL_OFFER.currency)} off your plan`,
|
|
16862
16862
|
onInvite: () => setShowInvite(true),
|
|
16863
|
-
rewardBalanceLabel: hasBalance ?
|
|
16863
|
+
rewardBalanceLabel: hasBalance ? chunkGEZB3OEC_cjs.formatMoney(balance.amount, balance.currency) : void 0
|
|
16864
16864
|
}
|
|
16865
16865
|
);
|
|
16866
16866
|
}
|
|
@@ -16923,7 +16923,7 @@ function WorkspaceCardsView({
|
|
|
16923
16923
|
createDisabledReason,
|
|
16924
16924
|
workspaceState
|
|
16925
16925
|
}) {
|
|
16926
|
-
const { stripeEnabled } =
|
|
16926
|
+
const { stripeEnabled } = chunkGEZB3OEC_cjs.useBillingSupport();
|
|
16927
16927
|
const { hrefFor: hrefFor2 } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
16928
16928
|
const workspaceLabel = ui.getEntityLabel("WORKSPACE");
|
|
16929
16929
|
const projectLabel = ui.getEntityLabel("PROJECT").toLowerCase();
|
|
@@ -16943,7 +16943,7 @@ function WorkspaceCardsView({
|
|
|
16943
16943
|
}
|
|
16944
16944
|
return /* @__PURE__ */ jsxRuntime.jsx(chunkCMGNRMPA_cjs.WorkspaceList, { testId: "workspace-cards-list", children: groups.map((group) => {
|
|
16945
16945
|
const project = projects.find((p) => p.external_id === group.projectExtId);
|
|
16946
|
-
const { breakdown, readout } =
|
|
16946
|
+
const { breakdown, readout } = chunkGEZB3OEC_cjs.projectGroupBilling(project, {
|
|
16947
16947
|
isOwned: group.isOwned,
|
|
16948
16948
|
stripeEnabled
|
|
16949
16949
|
});
|
|
@@ -17172,7 +17172,7 @@ function useConnectedWorkspaceList({
|
|
|
17172
17172
|
};
|
|
17173
17173
|
}
|
|
17174
17174
|
var WorkspaceTableView = react$1.lazy(
|
|
17175
|
-
() => import('../WorkspaceTableView-
|
|
17175
|
+
() => import('../WorkspaceTableView-CUCTCA2O.cjs').then((m) => ({ default: m.WorkspaceTableView }))
|
|
17176
17176
|
);
|
|
17177
17177
|
var WORKSPACES_TAB_ID = "workspaces";
|
|
17178
17178
|
var renderMember = (user, size) => /* @__PURE__ */ jsxRuntime.jsx(chunkQMIHLJMH_cjs.ConnectedUserEntity, { user, size, variant: "icon" });
|
|
@@ -17232,7 +17232,7 @@ function ConnectedWorkspaceList({
|
|
|
17232
17232
|
}
|
|
17233
17233
|
);
|
|
17234
17234
|
}
|
|
17235
|
-
if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17235
|
+
if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(chunkLXFCED4Z_cjs.LoadingIndicator, { message: "Loading workspaces..." });
|
|
17236
17236
|
if (list.error) {
|
|
17237
17237
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17238
17238
|
chunkH7PHOTX2_cjs.HomeLoadError,
|
|
@@ -17305,7 +17305,7 @@ function ConnectedWorkspaceList({
|
|
|
17305
17305
|
workspaceState
|
|
17306
17306
|
}
|
|
17307
17307
|
) })
|
|
17308
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
17308
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkLXFCED4Z_cjs.LoadingIndicator, { message: "Loading grid..." }), children: /* @__PURE__ */ jsxRuntime.jsx(chunkH7PHOTX2_cjs.HomeCenteredColumn, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
17309
17309
|
WorkspaceTableView,
|
|
17310
17310
|
{
|
|
17311
17311
|
list,
|
|
@@ -17350,7 +17350,7 @@ function ConnectedProjectsPanel({
|
|
|
17350
17350
|
const { data: projects } = react.useProjects();
|
|
17351
17351
|
const canCreateProjects = react.useCanCreateProjects();
|
|
17352
17352
|
const { userId } = chunkJR2YSBD5_cjs.useConnectedWorkspace();
|
|
17353
|
-
const { stripeEnabled } =
|
|
17353
|
+
const { stripeEnabled } = chunkGEZB3OEC_cjs.useBillingSupport();
|
|
17354
17354
|
const billingPortal = useOpenBillingPortal();
|
|
17355
17355
|
const [newProjectOpen, setNewProjectOpen] = react$1.useState(false);
|
|
17356
17356
|
useAutoRefreshPendingProjects();
|
|
@@ -17495,7 +17495,7 @@ function ConnectedProjectsListPage({
|
|
|
17495
17495
|
};
|
|
17496
17496
|
const { openProject } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
17497
17497
|
const [search, setSearch] = react$1.useState("");
|
|
17498
|
-
const { projects, isLoading } =
|
|
17498
|
+
const { projects, isLoading } = chunkHH5RDNO5_cjs.useProjectSummaries();
|
|
17499
17499
|
const rows = react$1.useMemo(() => {
|
|
17500
17500
|
const q = search.trim().toLowerCase();
|
|
17501
17501
|
if (!q) return projects;
|
|
@@ -17566,7 +17566,7 @@ function ConnectedProjectsListPage({
|
|
|
17566
17566
|
}
|
|
17567
17567
|
),
|
|
17568
17568
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
17569
|
-
|
|
17569
|
+
chunkLXFCED4Z_cjs.Toolbar,
|
|
17570
17570
|
{
|
|
17571
17571
|
search,
|
|
17572
17572
|
onSearch: setSearch,
|
|
@@ -17628,7 +17628,7 @@ function ProjectDetailsForm({
|
|
|
17628
17628
|
const labels = { ...DEFAULT_PROJECT_DETAILS_LABELS, ...given };
|
|
17629
17629
|
const { notify: notify19 } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
17630
17630
|
const update = react.useUpdateProjectFields();
|
|
17631
|
-
const workspace =
|
|
17631
|
+
const workspace = chunkHH5RDNO5_cjs.primaryProjectWorkspace(project);
|
|
17632
17632
|
const { data: members = [] } = react.useWorkspaceUsers(workspace?.id);
|
|
17633
17633
|
const people = members.filter((m) => !m.user.external_id.startsWith("agt-"));
|
|
17634
17634
|
const currency = project.budget?.currency ?? "GBP";
|
|
@@ -17753,7 +17753,7 @@ var COMPACT_BELOW = 132;
|
|
|
17753
17753
|
var NO_DOCUMENTS = [];
|
|
17754
17754
|
function useFilesWorkspace() {
|
|
17755
17755
|
const { workspaceId, userId, live } = chunkJR2YSBD5_cjs.useConnectedWorkspace();
|
|
17756
|
-
const { members, role } =
|
|
17756
|
+
const { members, role } = chunk5GA65VBW_cjs.useConnectedWorkspaceRole();
|
|
17757
17757
|
const { data: workspaces } = react.useWorkspaces({ enabled: live });
|
|
17758
17758
|
const workspaceName = workspaces?.find((w) => w.external_id === workspaceId)?.name;
|
|
17759
17759
|
return {
|
|
@@ -18513,7 +18513,7 @@ function ProjectChronology({
|
|
|
18513
18513
|
})),
|
|
18514
18514
|
[facts]
|
|
18515
18515
|
);
|
|
18516
|
-
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(
|
|
18516
|
+
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(chunkENOPKX7E_cjs.FactsGanttPane, { items, testId: `${testId}-gantt`, labels: { ganttEmpty: empty } }) });
|
|
18517
18517
|
}
|
|
18518
18518
|
function ProjectThreads({
|
|
18519
18519
|
projectId,
|
|
@@ -18690,11 +18690,11 @@ function ConnectedProjectPage({
|
|
|
18690
18690
|
figures: { ...DEFAULT_PROJECT_PAGE_LABELS.figures, ...given?.figures },
|
|
18691
18691
|
threads: { ...DEFAULT_PROJECT_PAGE_LABELS.threads, ...given?.threads }
|
|
18692
18692
|
};
|
|
18693
|
-
const { project, usage, isLoading } =
|
|
18693
|
+
const { project, usage, isLoading } = chunkHH5RDNO5_cjs.useProjectSummary(projectId);
|
|
18694
18694
|
const { workspaceId } = chunkJR2YSBD5_cjs.useConnectedWorkspace();
|
|
18695
18695
|
const { notify: notify19 } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
18696
18696
|
const selectWorkspace = chunk7NLO7ASW_cjs.useSelectWorkspace();
|
|
18697
|
-
const workspace = project ?
|
|
18697
|
+
const workspace = project ? chunkHH5RDNO5_cjs.primaryProjectWorkspace(project) : void 0;
|
|
18698
18698
|
const open = !!workspace && workspace.id === workspaceId;
|
|
18699
18699
|
react$1.useEffect(() => {
|
|
18700
18700
|
if (!workspace || workspace.id === workspaceId) return;
|
|
@@ -19723,7 +19723,7 @@ function ChatAttachmentList({ files, error }) {
|
|
|
19723
19723
|
] });
|
|
19724
19724
|
}
|
|
19725
19725
|
function MessageText({ message }) {
|
|
19726
|
-
const workspaceId =
|
|
19726
|
+
const workspaceId = chunkCNLIXB6S_cjs.useDocumentWorkspace();
|
|
19727
19727
|
const selectedWorkspaceId = react.useArbiSessionState((s) => s.workspaceId);
|
|
19728
19728
|
const documentIds = react$1.useMemo(
|
|
19729
19729
|
() => workspaceId === selectedWorkspaceId ? Array.from(
|
|
@@ -19738,11 +19738,11 @@ function MessageText({ message }) {
|
|
|
19738
19738
|
);
|
|
19739
19739
|
const thumbnails = react.useDocumentThumbnails(documentIds);
|
|
19740
19740
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
19741
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19741
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkCNLIXB6S_cjs.ConnectedMarkdown, { children: message }),
|
|
19742
19742
|
workspaceId && documentIds.map((docId) => {
|
|
19743
19743
|
const thumbnail = thumbnails.get(docId);
|
|
19744
19744
|
return thumbnail ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
19745
|
-
|
|
19745
|
+
chunkCNLIXB6S_cjs.WorkspaceDocumentReference,
|
|
19746
19746
|
{
|
|
19747
19747
|
workspaceId,
|
|
19748
19748
|
docId,
|
|
@@ -19763,7 +19763,7 @@ function MessageText({ message }) {
|
|
|
19763
19763
|
}
|
|
19764
19764
|
function ConnectedChatMessageBody({ text, workspaceId }) {
|
|
19765
19765
|
const documentWorkspace = workspaceId ?? Array.from(text.matchAll(/\/(wrk-[a-zA-Z0-9]{8})\/con-[a-zA-Z0-9]{8}/g)).at(-1)?.[1] ?? null;
|
|
19766
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
19766
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkCNLIXB6S_cjs.DocumentWorkspaceContext.Provider, { value: documentWorkspace, children: /* @__PURE__ */ jsxRuntime.jsx(MessageText, { message: text }) });
|
|
19767
19767
|
}
|
|
19768
19768
|
function renderMessengerUser(user, variant) {
|
|
19769
19769
|
switch (variant) {
|
|
@@ -21401,10 +21401,10 @@ function ConnectedContactsPanel({
|
|
|
21401
21401
|
function ConnectedConfigForm({ availableModels, ...rest }) {
|
|
21402
21402
|
const hasModels = !!availableModels && availableModels.length > 0;
|
|
21403
21403
|
const renderModelSelect = react$1.useCallback(
|
|
21404
|
-
({ value, onChange }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
21404
|
+
({ value, onChange }) => /* @__PURE__ */ jsxRuntime.jsx(chunkI3A6KKWY_cjs.ConnectedModelSelector, { value, onValueChange: onChange, className: "w-full" }),
|
|
21405
21405
|
[]
|
|
21406
21406
|
);
|
|
21407
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21407
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConfigForm, { ...rest, renderModelSelect: hasModels ? renderModelSelect : void 0 });
|
|
21408
21408
|
}
|
|
21409
21409
|
function ConnectedAgentConfigForm({ agentExtId, agentName, onSaved }) {
|
|
21410
21410
|
const { notify: notify19 } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
@@ -21521,7 +21521,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
21521
21521
|
}, [name, selectedWorkspaces, role, createAgent, addWorkspaceUsers, arbi, notify19]);
|
|
21522
21522
|
if (editAgent) {
|
|
21523
21523
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21524
|
-
|
|
21524
|
+
chunkNQML7IUC_cjs.AgentEditView,
|
|
21525
21525
|
{
|
|
21526
21526
|
agentName: editAgent.name,
|
|
21527
21527
|
config: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -21537,7 +21537,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
21537
21537
|
}
|
|
21538
21538
|
if (view === "main") {
|
|
21539
21539
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21540
|
-
|
|
21540
|
+
chunkNQML7IUC_cjs.AgentMainView,
|
|
21541
21541
|
{
|
|
21542
21542
|
onConnectExternal: () => setView("connect"),
|
|
21543
21543
|
config: mainAgent ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -21553,11 +21553,11 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
21553
21553
|
}
|
|
21554
21554
|
if (result) {
|
|
21555
21555
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21556
|
-
|
|
21556
|
+
chunkNQML7IUC_cjs.AgentCreatedView,
|
|
21557
21557
|
{
|
|
21558
21558
|
email: result.email,
|
|
21559
21559
|
signingKey: result.signingKey,
|
|
21560
|
-
instructions: /* @__PURE__ */ jsxRuntime.jsx(
|
|
21560
|
+
instructions: /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.AgentConnectInstructions, { email: result.email, signingKey: result.signingKey }),
|
|
21561
21561
|
config: /* @__PURE__ */ jsxRuntime.jsx(ConnectedAgentConfigForm, { agentExtId: result.extId, agentName: result.name }),
|
|
21562
21562
|
isConfigOpen: configOpen,
|
|
21563
21563
|
onToggleConfig: () => setConfigOpen((v) => !v),
|
|
@@ -21566,7 +21566,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
21566
21566
|
);
|
|
21567
21567
|
}
|
|
21568
21568
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21569
|
-
|
|
21569
|
+
chunkNQML7IUC_cjs.AgentCreateView,
|
|
21570
21570
|
{
|
|
21571
21571
|
name,
|
|
21572
21572
|
onNameChange: setName,
|
|
@@ -21632,7 +21632,7 @@ function ConnectedInviteContactsDialog({
|
|
|
21632
21632
|
ConnectedAddContacts,
|
|
21633
21633
|
{
|
|
21634
21634
|
onClose: handleClose,
|
|
21635
|
-
rewardAmount:
|
|
21635
|
+
rewardAmount: chunkGEZB3OEC_cjs.formatMoney(REFERRAL_OFFER.amount, REFERRAL_OFFER.currency)
|
|
21636
21636
|
}
|
|
21637
21637
|
),
|
|
21638
21638
|
isDeveloper && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -21761,7 +21761,7 @@ function ConnectedNewThreadDialog({
|
|
|
21761
21761
|
});
|
|
21762
21762
|
const parentOptions = react$1.useMemo(() => {
|
|
21763
21763
|
const leaf = { external_id: "__new__" };
|
|
21764
|
-
return
|
|
21764
|
+
return chunkNQML7IUC_cjs.moveTargets([...tasks, leaf], leaf).map((t) => ({
|
|
21765
21765
|
id: t.external_id,
|
|
21766
21766
|
name: t.title?.trim() || "Untitled task"
|
|
21767
21767
|
}));
|
|
@@ -21808,7 +21808,7 @@ function ConnectedNewThreadDialog({
|
|
|
21808
21808
|
}
|
|
21809
21809
|
};
|
|
21810
21810
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21811
|
-
|
|
21811
|
+
chunkNQML7IUC_cjs.NewThreadDialog,
|
|
21812
21812
|
{
|
|
21813
21813
|
open,
|
|
21814
21814
|
onOpenChange,
|
|
@@ -21986,7 +21986,7 @@ function recentConversations(conversations) {
|
|
|
21986
21986
|
return [...conversations].sort((a, b) => time(b.updated_at) - time(a.updated_at)).slice(0, RECENT_ROWS).map((c) => ({
|
|
21987
21987
|
id: c.external_id,
|
|
21988
21988
|
title: c.title?.trim() || "Untitled thread",
|
|
21989
|
-
subtitle: c.status ? [
|
|
21989
|
+
subtitle: c.status ? [chunkNQML7IUC_cjs.STATUS_LABELS[chunkNQML7IUC_cjs.asTaskStatus(c.status)], c.due_at ? `due ${shortDate(c.due_at)}` : null].filter(Boolean).join(" \xB7 ") : `${c.message_count} ${c.message_count === 1 ? "message" : "messages"}`,
|
|
21990
21990
|
time: timeAndDate(c.updated_at)
|
|
21991
21991
|
}));
|
|
21992
21992
|
}
|
|
@@ -22443,7 +22443,7 @@ function createBuiltinActions(environment, session) {
|
|
|
22443
22443
|
const startWorkflowOnDocuments = (workflowId) => {
|
|
22444
22444
|
const { viewingDocument, selectedDocumentIds } = session.getState();
|
|
22445
22445
|
const documents = viewingDocument ? [viewingDocument.id] : [...selectedDocumentIds];
|
|
22446
|
-
|
|
22446
|
+
chunkNQML7IUC_cjs.openWorkflowLaunch({ workflowId, context: { documents } });
|
|
22447
22447
|
};
|
|
22448
22448
|
const setFilesView = (mode) => () => chunkADDQKZ5I_cjs.useFilesPrefs.getState().setViewMode(mode);
|
|
22449
22449
|
const actions = [
|
|
@@ -23004,7 +23004,7 @@ function ConnectedRemoteControlConsent() {
|
|
|
23004
23004
|
}
|
|
23005
23005
|
function ConsentPrompt() {
|
|
23006
23006
|
const pending = react.useRemoteControl((s) => s.pending);
|
|
23007
|
-
const remote =
|
|
23007
|
+
const remote = chunkI3A6KKWY_cjs.useRemoteControlActions();
|
|
23008
23008
|
const onceRef = react$1.useRef(null);
|
|
23009
23009
|
chunkORELHENJ_cjs.useMountedSurface("consent");
|
|
23010
23010
|
const handleOpenChange = (next) => {
|
|
@@ -23097,7 +23097,7 @@ function Indicator() {
|
|
|
23097
23097
|
const enabled = react.useRemoteControl((s) => s.enabled);
|
|
23098
23098
|
const sharing = react.useRemoteControl((s) => !!s.sharing);
|
|
23099
23099
|
const controllingAgent = react.useRemoteControl((s) => s.controllingAgent);
|
|
23100
|
-
const remote =
|
|
23100
|
+
const remote = chunkI3A6KKWY_cjs.useRemoteControlActions();
|
|
23101
23101
|
if (!enabled && !controllingAgent) return null;
|
|
23102
23102
|
const isActive = controllingAgent !== null;
|
|
23103
23103
|
const label = sharing ? controllingAgent ? `${controllingAgent.name} \xB7 screen sharing and control on` : "Sharing screen \xB7 remote control on" : isActive ? `${controllingAgent.name} is controlling your screen` : "Remote control on";
|
|
@@ -26988,7 +26988,7 @@ function ConnectedSecureMailClaimPage({
|
|
|
26988
26988
|
}) {
|
|
26989
26989
|
const authenticated = react.useArbiSession().status === "signed-in";
|
|
26990
26990
|
const { openMail } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
26991
|
-
const { loading } =
|
|
26991
|
+
const { loading } = chunkI3A6KKWY_cjs.useAuthPages();
|
|
26992
26992
|
const claim = react.useClaimSecureMail();
|
|
26993
26993
|
const [, setFirstLoginWorkspaces] = react.useTransientView(FIRST_LOGIN_WORKSPACES_VIEW, null);
|
|
26994
26994
|
const [failure, setFailure] = react$1.useState(null);
|
|
@@ -27028,7 +27028,7 @@ function ConnectedSecureMailClaimPage({
|
|
|
27028
27028
|
}
|
|
27029
27029
|
})();
|
|
27030
27030
|
}, [authenticated, claimId, key]);
|
|
27031
|
-
if (!error) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: loading ?? /* @__PURE__ */ jsxRuntime.jsx(
|
|
27031
|
+
if (!error) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: loading ?? /* @__PURE__ */ jsxRuntime.jsx(chunkLXFCED4Z_cjs.LoadingIndicator, { variant: "splash" }) });
|
|
27032
27032
|
return /* @__PURE__ */ jsxRuntime.jsx("main", { className: "flex min-h-screen items-center justify-center bg-background p-6", children: /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "w-full max-w-md rounded-lg border border-border bg-card p-6", children: [
|
|
27033
27033
|
/* @__PURE__ */ jsxRuntime.jsx("p", { role: "alert", className: "mb-4 text-sm text-destructive", children: error }),
|
|
27034
27034
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -33158,7 +33158,7 @@ function useBatchCompleteToasts() {
|
|
|
33158
33158
|
}
|
|
33159
33159
|
}, AI_FIELDS_NOTICE_WINDOW_MS);
|
|
33160
33160
|
} else if (message.batch_type === "entity_extract") {
|
|
33161
|
-
say(`${
|
|
33161
|
+
say(`${chunkLXFCED4Z_cjs.entitiesPhrase()} extracted from ${chunkLXFCED4Z_cjs.documentCount(docIds.length)}`, "success", {
|
|
33162
33162
|
...openTags && { action: { label: "View", onClick: openTags } }
|
|
33163
33163
|
});
|
|
33164
33164
|
} else if (message.batch_type === "upload") {
|
|
@@ -33973,10 +33973,10 @@ var DocumentReviewCard = react$1.lazy(
|
|
|
33973
33973
|
() => import('../DocumentReviewCard-M53XFLI2.cjs').then((module) => ({ default: module.DocumentReviewCard }))
|
|
33974
33974
|
);
|
|
33975
33975
|
var FilesViewerDialog = react$1.lazy(
|
|
33976
|
-
() => import('../FilesViewerDialog-
|
|
33976
|
+
() => import('../FilesViewerDialog-GGF4WMU4.cjs').then((module) => ({ default: module.FilesViewerDialog }))
|
|
33977
33977
|
);
|
|
33978
33978
|
function defaultReviewCard(props) {
|
|
33979
|
-
return /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
33979
|
+
return /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkLXFCED4Z_cjs.LoadingIndicator, { message: "Loading document viewer..." }), children: /* @__PURE__ */ jsxRuntime.jsx(DocumentReviewCard, { ...props }, `navigator-${props.currentDocument.external_id}`) });
|
|
33980
33980
|
}
|
|
33981
33981
|
function ConnectedFilesPage({
|
|
33982
33982
|
isModal = false,
|
|
@@ -34019,7 +34019,7 @@ function ConnectedFilesPage({
|
|
|
34019
34019
|
const deleteDocuments = react.useDeleteDocuments();
|
|
34020
34020
|
const isDocumentsPending = isLoading && documents.length === 0;
|
|
34021
34021
|
const { workspaceId, userId, live } = chunkJR2YSBD5_cjs.useConnectedWorkspace();
|
|
34022
|
-
const { role, members } =
|
|
34022
|
+
const { role, members } = chunk5GA65VBW_cjs.useConnectedWorkspaceRole();
|
|
34023
34023
|
const { data: workspaces } = react.useWorkspaces({ enabled: live });
|
|
34024
34024
|
const workspace = workspaces?.find((w) => w.external_id === workspaceId);
|
|
34025
34025
|
const workspaceName = workspace?.name;
|
|
@@ -34554,7 +34554,7 @@ function ConnectedFilesPage({
|
|
|
34554
34554
|
viewMode === "grid" ? (
|
|
34555
34555
|
// ‹ n / N › over the table's displayed rows; a step opens the document.
|
|
34556
34556
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
34557
|
-
|
|
34557
|
+
chunkLXFCED4Z_cjs.GridRowNavigator,
|
|
34558
34558
|
{
|
|
34559
34559
|
gridApi,
|
|
34560
34560
|
selectedId: viewingDocumentId ?? selectedDocumentIds[0] ?? null,
|
|
@@ -34857,7 +34857,7 @@ function ProcessingSection({
|
|
|
34857
34857
|
tasks,
|
|
34858
34858
|
onDelete
|
|
34859
34859
|
}) {
|
|
34860
|
-
return /* @__PURE__ */ jsxRuntime.jsx(chunkALK3PUUB_cjs.TaskSection, { title, count: count2, status, tooltip: SECTION_TOOLTIPS[status], children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
34860
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkALK3PUUB_cjs.TaskSection, { title, count: count2, status, tooltip: SECTION_TOOLTIPS[status], children: /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.UploadTaskList, { tasks, title: "", onDelete, renderFileIcon: renderFileIcon2 }) });
|
|
34861
34861
|
}
|
|
34862
34862
|
function ConnectedDocumentProcessingPanel({
|
|
34863
34863
|
workspaceId,
|
|
@@ -36581,7 +36581,7 @@ function ConnectedAccountCluster({
|
|
|
36581
36581
|
}
|
|
36582
36582
|
);
|
|
36583
36583
|
}
|
|
36584
|
-
var gbp3 = (pence) =>
|
|
36584
|
+
var gbp3 = (pence) => chunkGEZB3OEC_cjs.formatMoney(pence, "gbp");
|
|
36585
36585
|
function addonArrivalMessage(addons, added) {
|
|
36586
36586
|
const parts = [];
|
|
36587
36587
|
if (added.ai > 0) parts.push(`${react.formatGbp(added.ai * addons.block_ai_gbp)} of AI usage`);
|
|
@@ -36988,10 +36988,10 @@ var FreshChatModel = () => (useFreshChatModel(), null);
|
|
|
36988
36988
|
var WorkspaceOpenMetrics = ({ measure }) => (useWorkspaceOpenMetrics(measure), null);
|
|
36989
36989
|
var Prefetch = ({ loaders }) => (usePrefetchChunks(loaders), null);
|
|
36990
36990
|
function GuidedRuns() {
|
|
36991
|
-
|
|
36991
|
+
chunkI3A6KKWY_cjs.useRemoteControlSessionReset();
|
|
36992
36992
|
const { cursorMark } = chunkORELHENJ_cjs.useGuidedRuns();
|
|
36993
36993
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
36994
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
36994
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkLXFCED4Z_cjs.GuidedCursor, { markSrc: cursorMark }),
|
|
36995
36995
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedRemoteControlConsent, {})
|
|
36996
36996
|
] });
|
|
36997
36997
|
}
|
|
@@ -37002,7 +37002,7 @@ function ConnectedAppRuntime({
|
|
|
37002
37002
|
prefetch
|
|
37003
37003
|
}) {
|
|
37004
37004
|
const on = (effect) => effects[effect] !== false;
|
|
37005
|
-
const { stripeEnabled } =
|
|
37005
|
+
const { stripeEnabled } = chunkGEZB3OEC_cjs.useBillingSupport();
|
|
37006
37006
|
const welcomeDialog = on("welcomeDialog") && stripeEnabled;
|
|
37007
37007
|
const resolveFirstLogin = () => {
|
|
37008
37008
|
if (welcomeDialog) skipWelcomeDialogThisSession();
|
|
@@ -37025,7 +37025,7 @@ function ConnectedAppRuntime({
|
|
|
37025
37025
|
on("pageTransition") && /* @__PURE__ */ jsxRuntime.jsx(PageTransition, {}),
|
|
37026
37026
|
on("freshChatModel") && /* @__PURE__ */ jsxRuntime.jsx(FreshChatModel, {}),
|
|
37027
37027
|
on("workspaceOpenMetrics") && measure && /* @__PURE__ */ jsxRuntime.jsx(WorkspaceOpenMetrics, { measure }),
|
|
37028
|
-
on("prefetch") && /* @__PURE__ */ jsxRuntime.jsx(Prefetch, { loaders: [...prefetch ?? [], ...
|
|
37028
|
+
on("prefetch") && /* @__PURE__ */ jsxRuntime.jsx(Prefetch, { loaders: [...prefetch ?? [], ...chunkLXFCED4Z_cjs.KIT_CHUNK_LOADERS] }),
|
|
37029
37029
|
on("guidedRuns") && /* @__PURE__ */ jsxRuntime.jsx(GuidedRuns, {})
|
|
37030
37030
|
] });
|
|
37031
37031
|
}
|
|
@@ -37490,7 +37490,7 @@ async function renderAnnotatedScreenshot(image, marks, text) {
|
|
|
37490
37490
|
)
|
|
37491
37491
|
);
|
|
37492
37492
|
}
|
|
37493
|
-
return
|
|
37493
|
+
return chunkI3A6KKWY_cjs.canvasToBlob(canvas);
|
|
37494
37494
|
}
|
|
37495
37495
|
function ReportProblemDialog({
|
|
37496
37496
|
open,
|
|
@@ -37784,7 +37784,7 @@ function ReportProblemDialog({
|
|
|
37784
37784
|
hidden: ticketId !== null,
|
|
37785
37785
|
children: [
|
|
37786
37786
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground", children: "No screenshot attached." }),
|
|
37787
|
-
|
|
37787
|
+
chunkI3A6KKWY_cjs.canCaptureScreen() ? /* @__PURE__ */ jsxRuntime.jsxs(ui.Button, { size: "sm", variant: "outline", onClick: onRetake, "data-testid": "report-retake", children: [
|
|
37788
37788
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Camera, { className: "mr-1 size-4" }),
|
|
37789
37789
|
" Take a screenshot"
|
|
37790
37790
|
] }) : /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "inline-flex cursor-pointer items-center gap-1 font-medium text-primary", children: [
|
|
@@ -37848,10 +37848,10 @@ function useReportProblem(options = {}) {
|
|
|
37848
37848
|
setPhase("capturing");
|
|
37849
37849
|
await new Promise((resolve) => window.setTimeout(resolve, 200));
|
|
37850
37850
|
try {
|
|
37851
|
-
setFrame(await
|
|
37851
|
+
setFrame(await chunkI3A6KKWY_cjs.captureCurrentTab());
|
|
37852
37852
|
setImage(null);
|
|
37853
37853
|
} catch (error) {
|
|
37854
|
-
const code = error instanceof
|
|
37854
|
+
const code = error instanceof chunkI3A6KKWY_cjs.ScreenCaptureError ? error.code : "failed";
|
|
37855
37855
|
if (code === "failed") {
|
|
37856
37856
|
notify19("Couldn't capture the screen. You can still describe the problem.", "error");
|
|
37857
37857
|
}
|
|
@@ -37980,7 +37980,7 @@ function resolveLaunchInputs(workflow, request) {
|
|
|
37980
37980
|
function useWorkflowLaunch() {
|
|
37981
37981
|
const { skills } = chunkUFT22LAB_cjs.useWorkflowDefinitions();
|
|
37982
37982
|
const launch = react$1.useCallback(
|
|
37983
|
-
(workflowId, options = {}) =>
|
|
37983
|
+
(workflowId, options = {}) => chunkNQML7IUC_cjs.openWorkflowLaunch({ workflowId, ...options }),
|
|
37984
37984
|
[]
|
|
37985
37985
|
);
|
|
37986
37986
|
const itemsFor = react$1.useCallback(
|
|
@@ -38009,8 +38009,8 @@ function useWorkflowLaunch() {
|
|
|
38009
38009
|
return { launch, itemsFor, scopeItemsFor };
|
|
38010
38010
|
}
|
|
38011
38011
|
function Inner() {
|
|
38012
|
-
const request =
|
|
38013
|
-
const close =
|
|
38012
|
+
const request = chunkNQML7IUC_cjs.useWorkflowLaunchRequest();
|
|
38013
|
+
const close = chunkNQML7IUC_cjs.closeWorkflowLaunch;
|
|
38014
38014
|
const { skills } = chunkUFT22LAB_cjs.useWorkflowDefinitions();
|
|
38015
38015
|
const run = chunk2F57IO7S_cjs.useLaunchWorkflow({ landing: request?.landing });
|
|
38016
38016
|
const workflow = skills.find((w) => w.id === request?.workflowId);
|
|
@@ -38048,7 +38048,7 @@ function Inner() {
|
|
|
38048
38048
|
);
|
|
38049
38049
|
}
|
|
38050
38050
|
function WorkflowLaunchHost() {
|
|
38051
|
-
return
|
|
38051
|
+
return chunkNQML7IUC_cjs.useWorkflowLaunchRequest() ? /* @__PURE__ */ jsxRuntime.jsx(Inner, {}) : null;
|
|
38052
38052
|
}
|
|
38053
38053
|
function isNeedsConfirmationDetail(detail) {
|
|
38054
38054
|
return typeof detail === "object" && detail !== null && detail.needs_confirmation === "resource_private";
|
|
@@ -38357,7 +38357,7 @@ function ConnectedConversationSettings() {
|
|
|
38357
38357
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
38358
38358
|
chunkT73BHNQX_cjs.ModelSelectionSection,
|
|
38359
38359
|
{
|
|
38360
|
-
selector: /* @__PURE__ */ jsxRuntime.jsx(
|
|
38360
|
+
selector: /* @__PURE__ */ jsxRuntime.jsx(chunkI3A6KKWY_cjs.ConnectedModelSelector, {}),
|
|
38361
38361
|
onUseDefaults: settings.resetToDefaults
|
|
38362
38362
|
}
|
|
38363
38363
|
)
|
|
@@ -38383,7 +38383,7 @@ function ConnectedConversationSettingsDialog({
|
|
|
38383
38383
|
}
|
|
38384
38384
|
) });
|
|
38385
38385
|
}
|
|
38386
|
-
var ConnectedProductionSetDialog = react$1.lazy(() => import('../ConnectedProductionSetDialog-
|
|
38386
|
+
var ConnectedProductionSetDialog = react$1.lazy(() => import('../ConnectedProductionSetDialog-4EAY6KAZ.cjs'));
|
|
38387
38387
|
var BUILTIN_GLOBAL_DIALOGS = {
|
|
38388
38388
|
support: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
38389
38389
|
ConnectedSupportTicketsDialog,
|
|
@@ -38416,7 +38416,7 @@ var BUILTIN_GLOBAL_DIALOGS = {
|
|
|
38416
38416
|
testId: "workspace-transfer-modal"
|
|
38417
38417
|
}
|
|
38418
38418
|
),
|
|
38419
|
-
logout: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
38419
|
+
logout: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(chunkI3A6KKWY_cjs.ConnectedLogoutDialog, { open: props !== null, onClose }),
|
|
38420
38420
|
conversationSettings: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(ConnectedConversationSettingsDialog, { open: props !== null, onClose }),
|
|
38421
38421
|
unarchiveWorkspace: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(ConnectedUnarchiveWorkspaceDialog, { workspaceId: props?.workspaceId ?? null, onClose }),
|
|
38422
38422
|
productionSet: ConnectedProductionSetDialog,
|
|
@@ -38493,7 +38493,7 @@ function WorkflowRunStatusCell({ conversation }) {
|
|
|
38493
38493
|
return person ? ui.getUserDisplayName(person) : void 0;
|
|
38494
38494
|
};
|
|
38495
38495
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
38496
|
-
|
|
38496
|
+
chunkNQML7IUC_cjs.WorkflowRunStatus,
|
|
38497
38497
|
{
|
|
38498
38498
|
steps,
|
|
38499
38499
|
states,
|
|
@@ -38527,7 +38527,7 @@ function ConversationStatusCell({ conversation }) {
|
|
|
38527
38527
|
if (conversation.plan?.steps?.length && !isLiveGenerating)
|
|
38528
38528
|
return /* @__PURE__ */ jsxRuntime.jsx(WorkflowRunStatusCell, { conversation });
|
|
38529
38529
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
38530
|
-
|
|
38530
|
+
chunkNQML7IUC_cjs.ThreadStatusLine,
|
|
38531
38531
|
{
|
|
38532
38532
|
state: threadStateOf(conversation, isLiveGenerating),
|
|
38533
38533
|
className: "h-full",
|
|
@@ -38846,7 +38846,7 @@ function ConnectedThreadLauncher({ autoFocus }) {
|
|
|
38846
38846
|
return /* @__PURE__ */ jsxRuntime.jsxs(chunkM2FOXGJU_cjs.ComposerDock, { children: [
|
|
38847
38847
|
slashWorkflows.launcher,
|
|
38848
38848
|
/* @__PURE__ */ jsxRuntime.jsx(chunkM2FOXGJU_cjs.ComposerContainer, { className: "mx-auto max-w-[49rem] px-3 sm:px-6", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
38849
|
-
|
|
38849
|
+
chunkI3A6KKWY_cjs.ConversationComposer,
|
|
38850
38850
|
{
|
|
38851
38851
|
value: draft,
|
|
38852
38852
|
onValueChange: setDraft,
|
|
@@ -38855,7 +38855,7 @@ function ConnectedThreadLauncher({ autoFocus }) {
|
|
|
38855
38855
|
isConversationEmpty: true,
|
|
38856
38856
|
shouldOfferFollowUp: false,
|
|
38857
38857
|
skills,
|
|
38858
|
-
modelSelector: /* @__PURE__ */ jsxRuntime.jsx(
|
|
38858
|
+
modelSelector: /* @__PURE__ */ jsxRuntime.jsx(chunkI3A6KKWY_cjs.ConnectedModelSelector, { variant: "compact" }),
|
|
38859
38859
|
rightButton: /* @__PURE__ */ jsxRuntime.jsx(chunkM2FOXGJU_cjs.ComposerSend, { onSend: send, disabled: !draft.trim() })
|
|
38860
38860
|
}
|
|
38861
38861
|
) })
|
|
@@ -38986,7 +38986,7 @@ function AgentBarShell({
|
|
|
38986
38986
|
}, [isStepsExpanded, steps]);
|
|
38987
38987
|
const visibleStepCount = react$1.useMemo(() => browser.topLevelAgentSteps(steps ?? []).length, [steps]);
|
|
38988
38988
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
38989
|
-
|
|
38989
|
+
chunkNQML7IUC_cjs.AgentBar,
|
|
38990
38990
|
{
|
|
38991
38991
|
className,
|
|
38992
38992
|
testId,
|
|
@@ -38998,7 +38998,7 @@ function AgentBarShell({
|
|
|
38998
38998
|
drawerRef: scrollRef,
|
|
38999
38999
|
onDrawerScroll: handleDrawerScroll,
|
|
39000
39000
|
drawer: /* @__PURE__ */ jsxRuntime.jsx(
|
|
39001
|
-
|
|
39001
|
+
chunkI3A6KKWY_cjs.AgentSteps,
|
|
39002
39002
|
{
|
|
39003
39003
|
steps: stepList,
|
|
39004
39004
|
isStreaming,
|
|
@@ -39050,7 +39050,7 @@ function AgentControlBar({
|
|
|
39050
39050
|
const waitingOnChildren = runningLanes.length > 0 && ["sub_agent", "spawn_subagent", "deep_research", "run_skill"].includes(currentTool ?? "");
|
|
39051
39051
|
const waitingLabel = runningLanes.length === 1 ? `Waiting on ${runningLanes[0].job}` : `Waiting on ${runningLanes.length} sub-agents`;
|
|
39052
39052
|
const liveTimerNode = liveTimer && /* @__PURE__ */ jsxRuntime.jsx(
|
|
39053
|
-
|
|
39053
|
+
chunkI3A6KKWY_cjs.MessageLiveSeconds,
|
|
39054
39054
|
{
|
|
39055
39055
|
...liveTimer,
|
|
39056
39056
|
offsetSeconds: currentStep?.t ?? 0,
|
|
@@ -39059,7 +39059,7 @@ function AgentControlBar({
|
|
|
39059
39059
|
}
|
|
39060
39060
|
);
|
|
39061
39061
|
const status = /* @__PURE__ */ jsxRuntime.jsx(
|
|
39062
|
-
|
|
39062
|
+
chunkNQML7IUC_cjs.AgentBarStatus,
|
|
39063
39063
|
{
|
|
39064
39064
|
state: showState ? controlState : void 0,
|
|
39065
39065
|
stateLabel: STATE_LABEL[controlState],
|
|
@@ -39101,7 +39101,7 @@ function AgentControlBar({
|
|
|
39101
39101
|
];
|
|
39102
39102
|
const controls = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
39103
39103
|
onStop && /* @__PURE__ */ jsxRuntime.jsx(
|
|
39104
|
-
|
|
39104
|
+
chunkNQML7IUC_cjs.AgentBarIconButton,
|
|
39105
39105
|
{
|
|
39106
39106
|
onClick: onStop,
|
|
39107
39107
|
title: "Stop",
|
|
@@ -39110,22 +39110,22 @@ function AgentControlBar({
|
|
|
39110
39110
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Square, { className: "h-3 w-3", fill: "currentColor" })
|
|
39111
39111
|
}
|
|
39112
39112
|
),
|
|
39113
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
39113
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.AgentBarMenu, { items: menuItems })
|
|
39114
39114
|
] });
|
|
39115
39115
|
const displayedQueuedMessages = (transientQueuedMessages ?? []).filter(
|
|
39116
39116
|
(message) => !message.serverId || !queuedMessages.some((queued) => queued.external_id === message.serverId)
|
|
39117
39117
|
);
|
|
39118
39118
|
const queuedNotes = displayedQueuedMessages.filter((message) => message.content);
|
|
39119
|
-
const below = probeAnswer || queuedNotes.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
39119
|
+
const below = probeAnswer || queuedNotes.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(chunkNQML7IUC_cjs.AgentBarNotes, { children: [
|
|
39120
39120
|
queuedNotes.map((message, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
39121
|
-
|
|
39121
|
+
chunkNQML7IUC_cjs.AgentBarQueuedNote,
|
|
39122
39122
|
{
|
|
39123
39123
|
text: message.content ?? "",
|
|
39124
39124
|
isAcknowledged: message.acknowledged
|
|
39125
39125
|
},
|
|
39126
39126
|
index
|
|
39127
39127
|
)),
|
|
39128
|
-
probeAnswer && /* @__PURE__ */ jsxRuntime.jsx(
|
|
39128
|
+
probeAnswer && /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.AgentBarProbeAnswer, { answer: probeAnswer.answer })
|
|
39129
39129
|
] }) : null;
|
|
39130
39130
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
39131
39131
|
AgentBarShell,
|
|
@@ -40240,7 +40240,7 @@ function ConversationThread({
|
|
|
40240
40240
|
useStartRequestedDraft();
|
|
40241
40241
|
const orphanedMessage = react.getOrphanedLastMessage(messageHistory, isGenerating, assistantMode);
|
|
40242
40242
|
return /* @__PURE__ */ jsxRuntime.jsxs(chunkKLMNCBLY_cjs.ConversationBody, { children: [
|
|
40243
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunkKLMNCBLY_cjs.ConversationMain, { "data-testid": `conversation-${currentConversationId}`, children: threadsLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunkKLMNCBLY_cjs.ConversationLoading, {}) : messageHistory.length > 0 || isBranching ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
40243
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkKLMNCBLY_cjs.ConversationMain, { "data-testid": `conversation-${currentConversationId}`, children: threadsLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunkKLMNCBLY_cjs.ConversationLoading, {}) : messageHistory.length > 0 || isBranching ? /* @__PURE__ */ jsxRuntime.jsx(chunkI3A6KKWY_cjs.AskAgainContext.Provider, { value: handleAskAgain, children: /* @__PURE__ */ jsxRuntime.jsxs(chunkVJCSEMXT_cjs.TranscriptRunsContext.Provider, { value: transcriptRunInfo, children: [
|
|
40244
40244
|
meetingCallExtId && transcriptLineCount > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center py-2", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
40245
40245
|
chunkZBP4ZSAJ_cjs.ConversationFilter,
|
|
40246
40246
|
{
|
|
@@ -40258,7 +40258,7 @@ function ConversationThread({
|
|
|
40258
40258
|
]
|
|
40259
40259
|
}
|
|
40260
40260
|
) }),
|
|
40261
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
40261
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkI3A6KKWY_cjs.ConnectedMessageArea, { ref: containerRef, messages: visibleMessages }),
|
|
40262
40262
|
showProvisional && /* @__PURE__ */ jsxRuntime.jsx(chunkBQ5RIWWT_cjs.ProvisionalSpeakers, { ids: provisionalSpeakers })
|
|
40263
40263
|
] }) }) : meetingCallExtId ? (
|
|
40264
40264
|
// A meeting thread with nothing yet: call-aware, not the upload prompt.
|
|
@@ -40266,7 +40266,7 @@ function ConversationThread({
|
|
|
40266
40266
|
/* @__PURE__ */ jsxRuntime.jsx(chunkBQ5RIWWT_cjs.CallConversationEmpty, { callExtId: meetingCallExtId }),
|
|
40267
40267
|
/* @__PURE__ */ jsxRuntime.jsx(chunkBQ5RIWWT_cjs.ProvisionalSpeakers, { ids: provisionalSpeakers })
|
|
40268
40268
|
] })
|
|
40269
|
-
) : currentTask && currentTask.status != null ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
40269
|
+
) : currentTask && currentTask.status != null ? /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.TaskEmptyState, { task: currentTask }) : pendingFirstTurn && isGenerating ? /* @__PURE__ */ jsxRuntime.jsx(chunkI3A6KKWY_cjs.ConnectedMessageArea, { ref: containerRef, messages: pendingFirstTurn }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
40270
40270
|
ConnectedConversationEmpty,
|
|
40271
40271
|
{
|
|
40272
40272
|
hasDocuments: allWorkspaceDocuments.length > 0,
|
|
@@ -40364,7 +40364,7 @@ function ConversationThread({
|
|
|
40364
40364
|
}
|
|
40365
40365
|
),
|
|
40366
40366
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
40367
|
-
|
|
40367
|
+
chunkI3A6KKWY_cjs.ConversationComposer,
|
|
40368
40368
|
{
|
|
40369
40369
|
handleSendMessage: handleUserSend,
|
|
40370
40370
|
placeholder: pendingAnswer ? assistant.answerPlaceholder : void 0,
|
|
@@ -40709,7 +40709,7 @@ function ConnectedThreadsPage({
|
|
|
40709
40709
|
};
|
|
40710
40710
|
const page = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full min-h-0 flex-col", "data-testid": "threads-page", children: [
|
|
40711
40711
|
/* @__PURE__ */ jsxRuntime.jsx("main", { className: "flex min-h-0 flex-1 flex-col bg-background", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
40712
|
-
|
|
40712
|
+
chunkNQML7IUC_cjs.ConversationListView,
|
|
40713
40713
|
{
|
|
40714
40714
|
showHeader,
|
|
40715
40715
|
conversations: tasks,
|
|
@@ -40728,7 +40728,7 @@ function ConnectedThreadsPage({
|
|
|
40728
40728
|
renderLabels: threadLabels.renderLabels,
|
|
40729
40729
|
labelText: threadLabels.labelText,
|
|
40730
40730
|
renderBy: (row2) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
40731
|
-
|
|
40731
|
+
chunkNQML7IUC_cjs.ConversationTurnSpeaker,
|
|
40732
40732
|
{
|
|
40733
40733
|
variant: "icon",
|
|
40734
40734
|
role: row2.last_message_role,
|
|
@@ -41609,7 +41609,7 @@ function ConnectedConversationPage({
|
|
|
41609
41609
|
);
|
|
41610
41610
|
const { data: workspaceTags = [] } = react.useTags();
|
|
41611
41611
|
const { tagId: threadTagId, clear: clearThreadTag } = useThreadTagFilter();
|
|
41612
|
-
const historyCount =
|
|
41612
|
+
const historyCount = chunkNQML7IUC_cjs.filterConversationRows(
|
|
41613
41613
|
threadTagId ? conversations.filter((row2) => row2.label_ext_ids?.includes(threadTagId)) : conversations,
|
|
41614
41614
|
threadFilter,
|
|
41615
41615
|
(row2) => workspaceTags.filter((tag) => row2.label_ext_ids?.includes(tag.external_id)).map((tag) => tag.name).join(" "),
|
|
@@ -41691,7 +41691,7 @@ function ConnectedConversationPage({
|
|
|
41691
41691
|
] })
|
|
41692
41692
|
}
|
|
41693
41693
|
),
|
|
41694
|
-
isInChat && /* @__PURE__ */ jsxRuntime.jsx(
|
|
41694
|
+
isInChat && /* @__PURE__ */ jsxRuntime.jsx(chunkHH5RDNO5_cjs.ConnectedThreadTaskBar, { conversationId: currentConversationId })
|
|
41695
41695
|
] }),
|
|
41696
41696
|
isInChat && /* @__PURE__ */ jsxRuntime.jsx(
|
|
41697
41697
|
ConversationThread,
|
|
@@ -41900,7 +41900,7 @@ function SsoResendVerificationButton({
|
|
|
41900
41900
|
onClick: async () => handleResendEmailVerification(),
|
|
41901
41901
|
disabled: loading || disabled,
|
|
41902
41902
|
"aria-label": "Resend verification email",
|
|
41903
|
-
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
41903
|
+
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(chunkLXFCED4Z_cjs.LoadingIndicator, {}) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
41904
41904
|
"Didn't get a verification email? ",
|
|
41905
41905
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold", children: "Resend" })
|
|
41906
41906
|
] })
|
|
@@ -41911,16 +41911,16 @@ function SsoResendVerificationButton({
|
|
|
41911
41911
|
}
|
|
41912
41912
|
var NO_RECOVERY_KEY_WARNING = "Without your password or a recovery key, we cannot recover your account or data.";
|
|
41913
41913
|
function ConnectedSsoCallback() {
|
|
41914
|
-
const sso =
|
|
41914
|
+
const sso = chunkI3A6KKWY_cjs.useSsoSignIn();
|
|
41915
41915
|
const { isAuthenticated: isAuthenticated2, isLoading, user } = sso;
|
|
41916
|
-
const auth =
|
|
41916
|
+
const auth = chunkI3A6KKWY_cjs.useAuthPages();
|
|
41917
41917
|
const { notify: notify19, navigate } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
41918
41918
|
const passwordRules = auth.passwordRules;
|
|
41919
41919
|
const isProcessing = react$1.useRef(false);
|
|
41920
41920
|
const hasCheckedStatus = react$1.useRef(false);
|
|
41921
41921
|
const [accessToken, setAccessToken] = react$1.useState(null);
|
|
41922
41922
|
const [ssoStatus, setSsoStatus] = react$1.useState(null);
|
|
41923
|
-
const ssoName = react$1.useMemo(() =>
|
|
41923
|
+
const ssoName = react$1.useMemo(() => chunkI3A6KKWY_cjs.resolveSsoName(user ?? {}, ssoStatus ?? {}), [user, ssoStatus]);
|
|
41924
41924
|
const [password, setPassword] = react$1.useState("");
|
|
41925
41925
|
const [confirmPassword, setConfirmPassword] = react$1.useState("");
|
|
41926
41926
|
const [error, setError] = react$1.useState(null);
|
|
@@ -42098,7 +42098,7 @@ function ConnectedSsoCallback() {
|
|
|
42098
42098
|
setIsCheckingStatus(true);
|
|
42099
42099
|
try {
|
|
42100
42100
|
console.info("[SSO] Checking user status...");
|
|
42101
|
-
const response = await
|
|
42101
|
+
const response = await chunkI3A6KKWY_cjs.ssoAccountStatus(arbi, accessToken, user);
|
|
42102
42102
|
console.info("[SSO] User status:", response.status);
|
|
42103
42103
|
setSsoStatus(response);
|
|
42104
42104
|
} catch (error2) {
|
|
@@ -42142,7 +42142,7 @@ function ConnectedSsoCallback() {
|
|
|
42142
42142
|
setIsSubmitting(true);
|
|
42143
42143
|
setError(null);
|
|
42144
42144
|
try {
|
|
42145
|
-
const { login, registered, linked } = await
|
|
42145
|
+
const { login, registered, linked } = await chunkI3A6KKWY_cjs.completeSsoSignIn(arbi, {
|
|
42146
42146
|
token: accessToken,
|
|
42147
42147
|
user,
|
|
42148
42148
|
status: ssoStatus,
|
|
@@ -42424,7 +42424,7 @@ function ConnectedSsoCallback() {
|
|
|
42424
42424
|
ssoStatus.status !== "new_user" && auth.footer
|
|
42425
42425
|
] }),
|
|
42426
42426
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
42427
|
-
|
|
42427
|
+
chunkI3A6KKWY_cjs.ConnectedForgotPassword,
|
|
42428
42428
|
{
|
|
42429
42429
|
open: showForgotPasswordModal,
|
|
42430
42430
|
onOpenChange: setShowForgotPasswordModal,
|
|
@@ -42432,7 +42432,7 @@ function ConnectedSsoCallback() {
|
|
|
42432
42432
|
}
|
|
42433
42433
|
),
|
|
42434
42434
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
42435
|
-
|
|
42435
|
+
chunkI3A6KKWY_cjs.ConnectedPasswordChangeDialog,
|
|
42436
42436
|
{
|
|
42437
42437
|
open: showChangePasswordModal,
|
|
42438
42438
|
onClose: () => setShowChangePasswordModal(false),
|
|
@@ -42591,27 +42591,27 @@ function ConnectedOAuthConsentPage({
|
|
|
42591
42591
|
oauthErrorRedirect(params.redirectUri, params.state, "access_denied");
|
|
42592
42592
|
}
|
|
42593
42593
|
if (error && !params) {
|
|
42594
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
42594
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentMessage, { tone: "error", title: "Invalid Request", children: error }) });
|
|
42595
42595
|
}
|
|
42596
42596
|
if (!params) {
|
|
42597
42597
|
return null;
|
|
42598
42598
|
}
|
|
42599
42599
|
if (clientInfo?.isLocalAgentFlow) {
|
|
42600
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
42600
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentMessage, { tone: "warning", title: "Close this tab", children: "This tab opened alongside the correct authorization page. Please close this tab and complete the connection in the other tab that opened at the same time." }) });
|
|
42601
42601
|
}
|
|
42602
42602
|
if (!isAuthenticated2) {
|
|
42603
42603
|
return null;
|
|
42604
42604
|
}
|
|
42605
42605
|
if (callbackUrl) {
|
|
42606
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
42607
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
42606
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkNQML7IUC_cjs.ConsentCard, { size: "md", children: [
|
|
42607
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkNQML7IUC_cjs.ConsentHeader, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ClipboardList, {}), title: "Almost there", children: [
|
|
42608
42608
|
"A new tab has opened to complete the connection. If it succeeded, you can close this page. If you see a connection error there, paste the URL below into Claude Cowork \u2014",
|
|
42609
42609
|
" ",
|
|
42610
42610
|
copied ? "it's already copied to your clipboard." : "copy it first."
|
|
42611
42611
|
] }),
|
|
42612
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
42613
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
42614
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
42612
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkNQML7IUC_cjs.ConsentSection, { title: "Callback URL", children: [
|
|
42613
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.CopyableUrl, { url: callbackUrl, copied, onCopy: handleCopy }),
|
|
42614
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkNQML7IUC_cjs.ConsentText, { variant: "hint", children: [
|
|
42615
42615
|
"In Claude Code, paste the URL at the prompt that says",
|
|
42616
42616
|
" ",
|
|
42617
42617
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-mono text-foreground", children: '"paste the full redirect URL here"' }),
|
|
@@ -42620,17 +42620,17 @@ function ConnectedOAuthConsentPage({
|
|
|
42620
42620
|
] })
|
|
42621
42621
|
] }) });
|
|
42622
42622
|
}
|
|
42623
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
42624
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
42625
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
42623
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunkNQML7IUC_cjs.ConsentCard, { children: [
|
|
42624
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkNQML7IUC_cjs.ConsentHeader, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Link2, {}), title: `Connect to ${appName}`, children: [
|
|
42625
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentStrong, { children: clientInfo?.name ?? params.clientId }),
|
|
42626
42626
|
" is requesting access to your ",
|
|
42627
42627
|
appName,
|
|
42628
42628
|
" workspace."
|
|
42629
42629
|
] }),
|
|
42630
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
42631
|
-
error && /* @__PURE__ */ jsxRuntime.jsx(
|
|
42632
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
42633
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
42630
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentSection, { title: "This will allow", children: /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentPermissionList, { items: permissions }) }),
|
|
42631
|
+
error && /* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentNotice, { tone: "error", children: error }),
|
|
42632
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentActions, { isLoading: loading, onDeny: handleDeny, onAllow: handleAllow }),
|
|
42633
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNQML7IUC_cjs.ConsentFootnote, { children: footnote })
|
|
42634
42634
|
] }) });
|
|
42635
42635
|
}
|
|
42636
42636
|
function ConnectedSharedFilesPage({
|
|
@@ -43344,7 +43344,7 @@ function ConnectedTipBar({
|
|
|
43344
43344
|
className,
|
|
43345
43345
|
revealOnHover = false
|
|
43346
43346
|
}) {
|
|
43347
|
-
const { showHints, settingsLoaded, setShowHintsPersisted, setShowHints } =
|
|
43347
|
+
const { showHints, settingsLoaded, setShowHintsPersisted, setShowHints } = chunkI3A6KKWY_cjs.useContextualHints();
|
|
43348
43348
|
const { dismissed, dismissTip } = react.useDismissedTips();
|
|
43349
43349
|
const { notify: notify19 } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
43350
43350
|
const { data: workspaces } = react.useWorkspaces();
|
|
@@ -43355,7 +43355,7 @@ function ConnectedTipBar({
|
|
|
43355
43355
|
workspaceOpen,
|
|
43356
43356
|
...state
|
|
43357
43357
|
};
|
|
43358
|
-
const { tip, index, count: count2, previous, next, onHoverChange } =
|
|
43358
|
+
const { tip, index, count: count2, previous, next, onHoverChange } = chunkLXFCED4Z_cjs.useTipsPlacement({
|
|
43359
43359
|
registry,
|
|
43360
43360
|
context,
|
|
43361
43361
|
state: situation,
|
|
@@ -43433,7 +43433,7 @@ function useGettingStarted({
|
|
|
43433
43433
|
const { user } = react.useArbiSession();
|
|
43434
43434
|
const userExtId = user?.external_id;
|
|
43435
43435
|
const temporaryOnly = user?.temporary_access_only === true;
|
|
43436
|
-
const { showHints, settingsLoaded, setShowHints, setShowHintsPersisted } =
|
|
43436
|
+
const { showHints, settingsLoaded, setShowHints, setShowHintsPersisted } = chunkI3A6KKWY_cjs.useContextualHints();
|
|
43437
43437
|
const { dismissed, loaded: dismissedLoaded, dismissTip } = react.useDismissedTips();
|
|
43438
43438
|
const welcomeJourneyEnabled = react.useFeature("welcomeJourney");
|
|
43439
43439
|
const session = react.useArbiSessionStore();
|
|
@@ -43675,55 +43675,55 @@ Object.defineProperty(exports, "useSessionPanelMode", {
|
|
|
43675
43675
|
});
|
|
43676
43676
|
Object.defineProperty(exports, "CAP_REACHED_MESSAGE", {
|
|
43677
43677
|
enumerable: true,
|
|
43678
|
-
get: function () { return
|
|
43678
|
+
get: function () { return chunkGEZB3OEC_cjs.CAP_REACHED_MESSAGE; }
|
|
43679
43679
|
});
|
|
43680
43680
|
Object.defineProperty(exports, "ZERO_BUDGET_MESSAGE", {
|
|
43681
43681
|
enumerable: true,
|
|
43682
|
-
get: function () { return
|
|
43682
|
+
get: function () { return chunkGEZB3OEC_cjs.ZERO_BUDGET_MESSAGE; }
|
|
43683
43683
|
});
|
|
43684
43684
|
Object.defineProperty(exports, "aiUsageResetTimestamp", {
|
|
43685
43685
|
enumerable: true,
|
|
43686
|
-
get: function () { return
|
|
43686
|
+
get: function () { return chunkGEZB3OEC_cjs.aiUsageResetTimestamp; }
|
|
43687
43687
|
});
|
|
43688
43688
|
Object.defineProperty(exports, "formatMoney", {
|
|
43689
43689
|
enumerable: true,
|
|
43690
|
-
get: function () { return
|
|
43690
|
+
get: function () { return chunkGEZB3OEC_cjs.formatMoney; }
|
|
43691
43691
|
});
|
|
43692
43692
|
Object.defineProperty(exports, "formatResetDate", {
|
|
43693
43693
|
enumerable: true,
|
|
43694
|
-
get: function () { return
|
|
43694
|
+
get: function () { return chunkGEZB3OEC_cjs.formatResetDate; }
|
|
43695
43695
|
});
|
|
43696
43696
|
Object.defineProperty(exports, "getQuotaItems", {
|
|
43697
43697
|
enumerable: true,
|
|
43698
|
-
get: function () { return
|
|
43698
|
+
get: function () { return chunkGEZB3OEC_cjs.getQuotaItems; }
|
|
43699
43699
|
});
|
|
43700
43700
|
Object.defineProperty(exports, "isAddonBudgetZero", {
|
|
43701
43701
|
enumerable: true,
|
|
43702
|
-
get: function () { return
|
|
43702
|
+
get: function () { return chunkGEZB3OEC_cjs.isAddonBudgetZero; }
|
|
43703
43703
|
});
|
|
43704
43704
|
Object.defineProperty(exports, "isProProject", {
|
|
43705
43705
|
enumerable: true,
|
|
43706
|
-
get: function () { return
|
|
43706
|
+
get: function () { return chunkGEZB3OEC_cjs.isProProject; }
|
|
43707
43707
|
});
|
|
43708
43708
|
Object.defineProperty(exports, "planBadgeView", {
|
|
43709
43709
|
enumerable: true,
|
|
43710
|
-
get: function () { return
|
|
43710
|
+
get: function () { return chunkGEZB3OEC_cjs.planBadgeView; }
|
|
43711
43711
|
});
|
|
43712
43712
|
Object.defineProperty(exports, "planName", {
|
|
43713
43713
|
enumerable: true,
|
|
43714
|
-
get: function () { return
|
|
43714
|
+
get: function () { return chunkGEZB3OEC_cjs.planName; }
|
|
43715
43715
|
});
|
|
43716
43716
|
Object.defineProperty(exports, "projectGroupBilling", {
|
|
43717
43717
|
enumerable: true,
|
|
43718
|
-
get: function () { return
|
|
43718
|
+
get: function () { return chunkGEZB3OEC_cjs.projectGroupBilling; }
|
|
43719
43719
|
});
|
|
43720
43720
|
Object.defineProperty(exports, "useBillingSupport", {
|
|
43721
43721
|
enumerable: true,
|
|
43722
|
-
get: function () { return
|
|
43722
|
+
get: function () { return chunkGEZB3OEC_cjs.useBillingSupport; }
|
|
43723
43723
|
});
|
|
43724
43724
|
Object.defineProperty(exports, "useRewardBalance", {
|
|
43725
43725
|
enumerable: true,
|
|
43726
|
-
get: function () { return
|
|
43726
|
+
get: function () { return chunkGEZB3OEC_cjs.useRewardBalance; }
|
|
43727
43727
|
});
|
|
43728
43728
|
Object.defineProperty(exports, "ConnectedMailInviteCard", {
|
|
43729
43729
|
enumerable: true,
|
|
@@ -43775,279 +43775,279 @@ Object.defineProperty(exports, "useWorkspaceDocs", {
|
|
|
43775
43775
|
});
|
|
43776
43776
|
Object.defineProperty(exports, "ConnectedTaskActivityDialog", {
|
|
43777
43777
|
enumerable: true,
|
|
43778
|
-
get: function () { return
|
|
43778
|
+
get: function () { return chunkHH5RDNO5_cjs.ConnectedTaskActivityDialog; }
|
|
43779
43779
|
});
|
|
43780
43780
|
Object.defineProperty(exports, "ConnectedTaskComposer", {
|
|
43781
43781
|
enumerable: true,
|
|
43782
|
-
get: function () { return
|
|
43782
|
+
get: function () { return chunkHH5RDNO5_cjs.ConnectedTaskComposer; }
|
|
43783
43783
|
});
|
|
43784
43784
|
Object.defineProperty(exports, "ConnectedThreadTaskBar", {
|
|
43785
43785
|
enumerable: true,
|
|
43786
|
-
get: function () { return
|
|
43786
|
+
get: function () { return chunkHH5RDNO5_cjs.ConnectedThreadTaskBar; }
|
|
43787
43787
|
});
|
|
43788
43788
|
Object.defineProperty(exports, "ConnectedWorkflowHistory", {
|
|
43789
43789
|
enumerable: true,
|
|
43790
|
-
get: function () { return
|
|
43790
|
+
get: function () { return chunkHH5RDNO5_cjs.ConnectedWorkflowHistory; }
|
|
43791
43791
|
});
|
|
43792
43792
|
Object.defineProperty(exports, "ConnectedWorkflowRunPage", {
|
|
43793
43793
|
enumerable: true,
|
|
43794
|
-
get: function () { return
|
|
43794
|
+
get: function () { return chunkHH5RDNO5_cjs.ConnectedWorkflowRunPage; }
|
|
43795
43795
|
});
|
|
43796
43796
|
Object.defineProperty(exports, "ConnectedWorkflowRunner", {
|
|
43797
43797
|
enumerable: true,
|
|
43798
|
-
get: function () { return
|
|
43798
|
+
get: function () { return chunkHH5RDNO5_cjs.ConnectedWorkflowRunner; }
|
|
43799
43799
|
});
|
|
43800
43800
|
Object.defineProperty(exports, "DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS", {
|
|
43801
43801
|
enumerable: true,
|
|
43802
|
-
get: function () { return
|
|
43802
|
+
get: function () { return chunkHH5RDNO5_cjs.DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS; }
|
|
43803
43803
|
});
|
|
43804
43804
|
Object.defineProperty(exports, "DEFAULT_WORKFLOW_RUN_PAGE_LABELS", {
|
|
43805
43805
|
enumerable: true,
|
|
43806
|
-
get: function () { return
|
|
43806
|
+
get: function () { return chunkHH5RDNO5_cjs.DEFAULT_WORKFLOW_RUN_PAGE_LABELS; }
|
|
43807
43807
|
});
|
|
43808
43808
|
Object.defineProperty(exports, "WorkflowRunThread", {
|
|
43809
43809
|
enumerable: true,
|
|
43810
|
-
get: function () { return
|
|
43810
|
+
get: function () { return chunkHH5RDNO5_cjs.WorkflowRunThread; }
|
|
43811
43811
|
});
|
|
43812
43812
|
Object.defineProperty(exports, "WorkflowRunWorkspaceChangedError", {
|
|
43813
43813
|
enumerable: true,
|
|
43814
|
-
get: function () { return
|
|
43814
|
+
get: function () { return chunkHH5RDNO5_cjs.WorkflowRunWorkspaceChangedError; }
|
|
43815
43815
|
});
|
|
43816
43816
|
Object.defineProperty(exports, "buildProjectSummaries", {
|
|
43817
43817
|
enumerable: true,
|
|
43818
|
-
get: function () { return
|
|
43818
|
+
get: function () { return chunkHH5RDNO5_cjs.buildProjectSummaries; }
|
|
43819
43819
|
});
|
|
43820
43820
|
Object.defineProperty(exports, "primaryProjectWorkspace", {
|
|
43821
43821
|
enumerable: true,
|
|
43822
|
-
get: function () { return
|
|
43822
|
+
get: function () { return chunkHH5RDNO5_cjs.primaryProjectWorkspace; }
|
|
43823
43823
|
});
|
|
43824
43824
|
Object.defineProperty(exports, "useEnsureRequiredLabels", {
|
|
43825
43825
|
enumerable: true,
|
|
43826
|
-
get: function () { return
|
|
43826
|
+
get: function () { return chunkHH5RDNO5_cjs.useEnsureRequiredLabels; }
|
|
43827
43827
|
});
|
|
43828
43828
|
Object.defineProperty(exports, "useProjectSummaries", {
|
|
43829
43829
|
enumerable: true,
|
|
43830
|
-
get: function () { return
|
|
43830
|
+
get: function () { return chunkHH5RDNO5_cjs.useProjectSummaries; }
|
|
43831
43831
|
});
|
|
43832
43832
|
Object.defineProperty(exports, "useProjectSummary", {
|
|
43833
43833
|
enumerable: true,
|
|
43834
|
-
get: function () { return
|
|
43834
|
+
get: function () { return chunkHH5RDNO5_cjs.useProjectSummary; }
|
|
43835
43835
|
});
|
|
43836
43836
|
Object.defineProperty(exports, "useRenderTaskPerson", {
|
|
43837
43837
|
enumerable: true,
|
|
43838
|
-
get: function () { return
|
|
43838
|
+
get: function () { return chunkHH5RDNO5_cjs.useRenderTaskPerson; }
|
|
43839
43839
|
});
|
|
43840
43840
|
Object.defineProperty(exports, "useRequiredLabels", {
|
|
43841
43841
|
enumerable: true,
|
|
43842
|
-
get: function () { return
|
|
43842
|
+
get: function () { return chunkHH5RDNO5_cjs.useRequiredLabels; }
|
|
43843
43843
|
});
|
|
43844
43844
|
Object.defineProperty(exports, "useTaskPeople", {
|
|
43845
43845
|
enumerable: true,
|
|
43846
|
-
get: function () { return
|
|
43846
|
+
get: function () { return chunkHH5RDNO5_cjs.useTaskPeople; }
|
|
43847
43847
|
});
|
|
43848
43848
|
Object.defineProperty(exports, "useWorkflowsPageState", {
|
|
43849
43849
|
enumerable: true,
|
|
43850
|
-
get: function () { return
|
|
43850
|
+
get: function () { return chunkHH5RDNO5_cjs.useWorkflowsPageState; }
|
|
43851
43851
|
});
|
|
43852
43852
|
Object.defineProperty(exports, "workflowRunView", {
|
|
43853
43853
|
enumerable: true,
|
|
43854
|
-
get: function () { return
|
|
43854
|
+
get: function () { return chunkHH5RDNO5_cjs.workflowRunView; }
|
|
43855
43855
|
});
|
|
43856
43856
|
Object.defineProperty(exports, "AgentSteps", {
|
|
43857
43857
|
enumerable: true,
|
|
43858
|
-
get: function () { return
|
|
43858
|
+
get: function () { return chunkI3A6KKWY_cjs.AgentSteps; }
|
|
43859
43859
|
});
|
|
43860
43860
|
Object.defineProperty(exports, "AnswerTable", {
|
|
43861
43861
|
enumerable: true,
|
|
43862
|
-
get: function () { return
|
|
43862
|
+
get: function () { return chunkI3A6KKWY_cjs.AnswerTable; }
|
|
43863
43863
|
});
|
|
43864
43864
|
Object.defineProperty(exports, "ArbiChat", {
|
|
43865
43865
|
enumerable: true,
|
|
43866
|
-
get: function () { return
|
|
43866
|
+
get: function () { return chunkI3A6KKWY_cjs.ArbiChat; }
|
|
43867
43867
|
});
|
|
43868
43868
|
Object.defineProperty(exports, "AskAgainContext", {
|
|
43869
43869
|
enumerable: true,
|
|
43870
|
-
get: function () { return
|
|
43870
|
+
get: function () { return chunkI3A6KKWY_cjs.AskAgainContext; }
|
|
43871
43871
|
});
|
|
43872
43872
|
Object.defineProperty(exports, "ConnectedBranchControls", {
|
|
43873
43873
|
enumerable: true,
|
|
43874
|
-
get: function () { return
|
|
43874
|
+
get: function () { return chunkI3A6KKWY_cjs.ConnectedBranchControls; }
|
|
43875
43875
|
});
|
|
43876
43876
|
Object.defineProperty(exports, "ConnectedCitationRenderer", {
|
|
43877
43877
|
enumerable: true,
|
|
43878
|
-
get: function () { return
|
|
43878
|
+
get: function () { return chunkI3A6KKWY_cjs.ConnectedCitationRenderer; }
|
|
43879
43879
|
});
|
|
43880
43880
|
Object.defineProperty(exports, "ConnectedCompactConversation", {
|
|
43881
43881
|
enumerable: true,
|
|
43882
|
-
get: function () { return
|
|
43882
|
+
get: function () { return chunkI3A6KKWY_cjs.ConnectedCompactConversation; }
|
|
43883
43883
|
});
|
|
43884
43884
|
Object.defineProperty(exports, "ConnectedCompactLogin", {
|
|
43885
43885
|
enumerable: true,
|
|
43886
|
-
get: function () { return
|
|
43886
|
+
get: function () { return chunkI3A6KKWY_cjs.ConnectedCompactLogin; }
|
|
43887
43887
|
});
|
|
43888
43888
|
Object.defineProperty(exports, "ConnectedConversationDocumentPicker", {
|
|
43889
43889
|
enumerable: true,
|
|
43890
|
-
get: function () { return
|
|
43890
|
+
get: function () { return chunkI3A6KKWY_cjs.ConnectedConversationDocumentPicker; }
|
|
43891
43891
|
});
|
|
43892
43892
|
Object.defineProperty(exports, "ConnectedDangerZone", {
|
|
43893
43893
|
enumerable: true,
|
|
43894
|
-
get: function () { return
|
|
43894
|
+
get: function () { return chunkI3A6KKWY_cjs.ConnectedDangerZone; }
|
|
43895
43895
|
});
|
|
43896
43896
|
Object.defineProperty(exports, "ConnectedEmbeddedChat", {
|
|
43897
43897
|
enumerable: true,
|
|
43898
|
-
get: function () { return
|
|
43898
|
+
get: function () { return chunkI3A6KKWY_cjs.ConnectedEmbeddedChat; }
|
|
43899
43899
|
});
|
|
43900
43900
|
Object.defineProperty(exports, "ConnectedForgotPassword", {
|
|
43901
43901
|
enumerable: true,
|
|
43902
|
-
get: function () { return
|
|
43902
|
+
get: function () { return chunkI3A6KKWY_cjs.ConnectedForgotPassword; }
|
|
43903
43903
|
});
|
|
43904
43904
|
Object.defineProperty(exports, "ConnectedIdentityVerification", {
|
|
43905
43905
|
enumerable: true,
|
|
43906
|
-
get: function () { return
|
|
43906
|
+
get: function () { return chunkI3A6KKWY_cjs.ConnectedIdentityVerification; }
|
|
43907
43907
|
});
|
|
43908
43908
|
Object.defineProperty(exports, "ConnectedLoginPage", {
|
|
43909
43909
|
enumerable: true,
|
|
43910
|
-
get: function () { return
|
|
43910
|
+
get: function () { return chunkI3A6KKWY_cjs.ConnectedLoginPage; }
|
|
43911
43911
|
});
|
|
43912
43912
|
Object.defineProperty(exports, "ConnectedLogoutDialog", {
|
|
43913
43913
|
enumerable: true,
|
|
43914
|
-
get: function () { return
|
|
43914
|
+
get: function () { return chunkI3A6KKWY_cjs.ConnectedLogoutDialog; }
|
|
43915
43915
|
});
|
|
43916
43916
|
Object.defineProperty(exports, "ConnectedMessage", {
|
|
43917
43917
|
enumerable: true,
|
|
43918
|
-
get: function () { return
|
|
43918
|
+
get: function () { return chunkI3A6KKWY_cjs.ConnectedMessage; }
|
|
43919
43919
|
});
|
|
43920
43920
|
Object.defineProperty(exports, "ConnectedMessageArea", {
|
|
43921
43921
|
enumerable: true,
|
|
43922
|
-
get: function () { return
|
|
43922
|
+
get: function () { return chunkI3A6KKWY_cjs.ConnectedMessageArea; }
|
|
43923
43923
|
});
|
|
43924
43924
|
Object.defineProperty(exports, "ConnectedMessageList", {
|
|
43925
43925
|
enumerable: true,
|
|
43926
|
-
get: function () { return
|
|
43926
|
+
get: function () { return chunkI3A6KKWY_cjs.ConnectedMessageList; }
|
|
43927
43927
|
});
|
|
43928
43928
|
Object.defineProperty(exports, "ConnectedModelSelector", {
|
|
43929
43929
|
enumerable: true,
|
|
43930
|
-
get: function () { return
|
|
43930
|
+
get: function () { return chunkI3A6KKWY_cjs.ConnectedModelSelector; }
|
|
43931
43931
|
});
|
|
43932
43932
|
Object.defineProperty(exports, "ConnectedNotificationPreferences", {
|
|
43933
43933
|
enumerable: true,
|
|
43934
|
-
get: function () { return
|
|
43934
|
+
get: function () { return chunkI3A6KKWY_cjs.ConnectedNotificationPreferences; }
|
|
43935
43935
|
});
|
|
43936
43936
|
Object.defineProperty(exports, "ConnectedPasswordChangeDialog", {
|
|
43937
43937
|
enumerable: true,
|
|
43938
|
-
get: function () { return
|
|
43938
|
+
get: function () { return chunkI3A6KKWY_cjs.ConnectedPasswordChangeDialog; }
|
|
43939
43939
|
});
|
|
43940
43940
|
Object.defineProperty(exports, "ConnectedProfileCard", {
|
|
43941
43941
|
enumerable: true,
|
|
43942
|
-
get: function () { return
|
|
43942
|
+
get: function () { return chunkI3A6KKWY_cjs.ConnectedProfileCard; }
|
|
43943
43943
|
});
|
|
43944
43944
|
Object.defineProperty(exports, "ConnectedSecuritySection", {
|
|
43945
43945
|
enumerable: true,
|
|
43946
|
-
get: function () { return
|
|
43946
|
+
get: function () { return chunkI3A6KKWY_cjs.ConnectedSecuritySection; }
|
|
43947
43947
|
});
|
|
43948
43948
|
Object.defineProperty(exports, "ConnectedSessionsRow", {
|
|
43949
43949
|
enumerable: true,
|
|
43950
|
-
get: function () { return
|
|
43950
|
+
get: function () { return chunkI3A6KKWY_cjs.ConnectedSessionsRow; }
|
|
43951
43951
|
});
|
|
43952
43952
|
Object.defineProperty(exports, "ConnectedThreadsPreview", {
|
|
43953
43953
|
enumerable: true,
|
|
43954
|
-
get: function () { return
|
|
43954
|
+
get: function () { return chunkI3A6KKWY_cjs.ConnectedThreadsPreview; }
|
|
43955
43955
|
});
|
|
43956
43956
|
Object.defineProperty(exports, "ConversationComposer", {
|
|
43957
43957
|
enumerable: true,
|
|
43958
|
-
get: function () { return
|
|
43958
|
+
get: function () { return chunkI3A6KKWY_cjs.ConversationComposer; }
|
|
43959
43959
|
});
|
|
43960
43960
|
Object.defineProperty(exports, "EmbeddedChatPanel", {
|
|
43961
43961
|
enumerable: true,
|
|
43962
|
-
get: function () { return
|
|
43962
|
+
get: function () { return chunkI3A6KKWY_cjs.EmbeddedChatPanel; }
|
|
43963
43963
|
});
|
|
43964
43964
|
Object.defineProperty(exports, "MessageDetailsModal", {
|
|
43965
43965
|
enumerable: true,
|
|
43966
|
-
get: function () { return
|
|
43966
|
+
get: function () { return chunkI3A6KKWY_cjs.MessageDetailsModal; }
|
|
43967
43967
|
});
|
|
43968
43968
|
Object.defineProperty(exports, "MessageLiveSeconds", {
|
|
43969
43969
|
enumerable: true,
|
|
43970
|
-
get: function () { return
|
|
43970
|
+
get: function () { return chunkI3A6KKWY_cjs.MessageLiveSeconds; }
|
|
43971
43971
|
});
|
|
43972
43972
|
Object.defineProperty(exports, "PENDING_RECOVERY_KEY", {
|
|
43973
43973
|
enumerable: true,
|
|
43974
|
-
get: function () { return
|
|
43974
|
+
get: function () { return chunkI3A6KKWY_cjs.PENDING_RECOVERY_KEY; }
|
|
43975
43975
|
});
|
|
43976
43976
|
Object.defineProperty(exports, "PREMIUM_TIER_TAG", {
|
|
43977
43977
|
enumerable: true,
|
|
43978
|
-
get: function () { return
|
|
43978
|
+
get: function () { return chunkI3A6KKWY_cjs.PREMIUM_TIER_TAG; }
|
|
43979
43979
|
});
|
|
43980
43980
|
Object.defineProperty(exports, "RunningSubagents", {
|
|
43981
43981
|
enumerable: true,
|
|
43982
|
-
get: function () { return
|
|
43982
|
+
get: function () { return chunkI3A6KKWY_cjs.RunningSubagents; }
|
|
43983
43983
|
});
|
|
43984
43984
|
Object.defineProperty(exports, "STANDARD_TIER_TAG", {
|
|
43985
43985
|
enumerable: true,
|
|
43986
|
-
get: function () { return
|
|
43986
|
+
get: function () { return chunkI3A6KKWY_cjs.STANDARD_TIER_TAG; }
|
|
43987
43987
|
});
|
|
43988
43988
|
Object.defineProperty(exports, "WorkflowStepMessage", {
|
|
43989
43989
|
enumerable: true,
|
|
43990
|
-
get: function () { return
|
|
43990
|
+
get: function () { return chunkI3A6KKWY_cjs.WorkflowStepMessage; }
|
|
43991
43991
|
});
|
|
43992
43992
|
Object.defineProperty(exports, "backUpOnSignup", {
|
|
43993
43993
|
enumerable: true,
|
|
43994
|
-
get: function () { return
|
|
43994
|
+
get: function () { return chunkI3A6KKWY_cjs.backUpOnSignup; }
|
|
43995
43995
|
});
|
|
43996
43996
|
Object.defineProperty(exports, "createRemoteControl", {
|
|
43997
43997
|
enumerable: true,
|
|
43998
|
-
get: function () { return
|
|
43998
|
+
get: function () { return chunkI3A6KKWY_cjs.createRemoteControl; }
|
|
43999
43999
|
});
|
|
44000
44000
|
Object.defineProperty(exports, "defaultHost", {
|
|
44001
44001
|
enumerable: true,
|
|
44002
|
-
get: function () { return
|
|
44002
|
+
get: function () { return chunkI3A6KKWY_cjs.defaultHost; }
|
|
44003
44003
|
});
|
|
44004
44004
|
Object.defineProperty(exports, "renderConnectedUser", {
|
|
44005
44005
|
enumerable: true,
|
|
44006
|
-
get: function () { return
|
|
44006
|
+
get: function () { return chunkI3A6KKWY_cjs.renderConnectedUser; }
|
|
44007
44007
|
});
|
|
44008
44008
|
Object.defineProperty(exports, "renderSessionStatusIcon", {
|
|
44009
44009
|
enumerable: true,
|
|
44010
|
-
get: function () { return
|
|
44010
|
+
get: function () { return chunkI3A6KKWY_cjs.renderSessionStatusIcon; }
|
|
44011
44011
|
});
|
|
44012
44012
|
Object.defineProperty(exports, "resolveSsoName", {
|
|
44013
44013
|
enumerable: true,
|
|
44014
|
-
get: function () { return
|
|
44014
|
+
get: function () { return chunkI3A6KKWY_cjs.resolveSsoName; }
|
|
44015
44015
|
});
|
|
44016
44016
|
Object.defineProperty(exports, "useAuthPages", {
|
|
44017
44017
|
enumerable: true,
|
|
44018
|
-
get: function () { return
|
|
44018
|
+
get: function () { return chunkI3A6KKWY_cjs.useAuthPages; }
|
|
44019
44019
|
});
|
|
44020
44020
|
Object.defineProperty(exports, "useContextualHints", {
|
|
44021
44021
|
enumerable: true,
|
|
44022
|
-
get: function () { return
|
|
44022
|
+
get: function () { return chunkI3A6KKWY_cjs.useContextualHints; }
|
|
44023
44023
|
});
|
|
44024
44024
|
Object.defineProperty(exports, "useModelPicker", {
|
|
44025
44025
|
enumerable: true,
|
|
44026
|
-
get: function () { return
|
|
44026
|
+
get: function () { return chunkI3A6KKWY_cjs.useModelPicker; }
|
|
44027
44027
|
});
|
|
44028
44028
|
Object.defineProperty(exports, "useOpenChunk", {
|
|
44029
44029
|
enumerable: true,
|
|
44030
|
-
get: function () { return
|
|
44030
|
+
get: function () { return chunkI3A6KKWY_cjs.useOpenChunk; }
|
|
44031
44031
|
});
|
|
44032
44032
|
Object.defineProperty(exports, "useOpenWorkspaceIcon", {
|
|
44033
44033
|
enumerable: true,
|
|
44034
|
-
get: function () { return
|
|
44034
|
+
get: function () { return chunkI3A6KKWY_cjs.useOpenWorkspaceIcon; }
|
|
44035
44035
|
});
|
|
44036
44036
|
Object.defineProperty(exports, "useRemoteControlActions", {
|
|
44037
44037
|
enumerable: true,
|
|
44038
|
-
get: function () { return
|
|
44038
|
+
get: function () { return chunkI3A6KKWY_cjs.useRemoteControlActions; }
|
|
44039
44039
|
});
|
|
44040
44040
|
Object.defineProperty(exports, "useRemoteControlHandlers", {
|
|
44041
44041
|
enumerable: true,
|
|
44042
|
-
get: function () { return
|
|
44042
|
+
get: function () { return chunkI3A6KKWY_cjs.useRemoteControlHandlers; }
|
|
44043
44043
|
});
|
|
44044
44044
|
Object.defineProperty(exports, "useSsoSignIn", {
|
|
44045
44045
|
enumerable: true,
|
|
44046
|
-
get: function () { return
|
|
44046
|
+
get: function () { return chunkI3A6KKWY_cjs.useSsoSignIn; }
|
|
44047
44047
|
});
|
|
44048
44048
|
Object.defineProperty(exports, "useWorkspaceDocTitles", {
|
|
44049
44049
|
enumerable: true,
|
|
44050
|
-
get: function () { return
|
|
44050
|
+
get: function () { return chunkI3A6KKWY_cjs.useWorkspaceDocTitles; }
|
|
44051
44051
|
});
|
|
44052
44052
|
Object.defineProperty(exports, "parseTypedSkill", {
|
|
44053
44053
|
enumerable: true,
|
|
@@ -44171,31 +44171,31 @@ Object.defineProperty(exports, "usePendingFolders", {
|
|
|
44171
44171
|
});
|
|
44172
44172
|
Object.defineProperty(exports, "ConnectedMarkdown", {
|
|
44173
44173
|
enumerable: true,
|
|
44174
|
-
get: function () { return
|
|
44174
|
+
get: function () { return chunkCNLIXB6S_cjs.ConnectedMarkdown; }
|
|
44175
44175
|
});
|
|
44176
44176
|
Object.defineProperty(exports, "DocumentWorkspaceContext", {
|
|
44177
44177
|
enumerable: true,
|
|
44178
|
-
get: function () { return
|
|
44178
|
+
get: function () { return chunkCNLIXB6S_cjs.DocumentWorkspaceContext; }
|
|
44179
44179
|
});
|
|
44180
44180
|
Object.defineProperty(exports, "ExternalLink", {
|
|
44181
44181
|
enumerable: true,
|
|
44182
|
-
get: function () { return
|
|
44182
|
+
get: function () { return chunkCNLIXB6S_cjs.ExternalLink; }
|
|
44183
44183
|
});
|
|
44184
44184
|
Object.defineProperty(exports, "InternalDocLink", {
|
|
44185
44185
|
enumerable: true,
|
|
44186
|
-
get: function () { return
|
|
44186
|
+
get: function () { return chunkCNLIXB6S_cjs.InternalDocLink; }
|
|
44187
44187
|
});
|
|
44188
44188
|
Object.defineProperty(exports, "MermaidDiagram", {
|
|
44189
44189
|
enumerable: true,
|
|
44190
|
-
get: function () { return
|
|
44190
|
+
get: function () { return chunkCNLIXB6S_cjs.MermaidDiagram; }
|
|
44191
44191
|
});
|
|
44192
44192
|
Object.defineProperty(exports, "WorkspaceDocumentReference", {
|
|
44193
44193
|
enumerable: true,
|
|
44194
|
-
get: function () { return
|
|
44194
|
+
get: function () { return chunkCNLIXB6S_cjs.WorkspaceDocumentReference; }
|
|
44195
44195
|
});
|
|
44196
44196
|
Object.defineProperty(exports, "useDocumentWorkspace", {
|
|
44197
44197
|
enumerable: true,
|
|
44198
|
-
get: function () { return
|
|
44198
|
+
get: function () { return chunkCNLIXB6S_cjs.useDocumentWorkspace; }
|
|
44199
44199
|
});
|
|
44200
44200
|
Object.defineProperty(exports, "ConnectedPendingSyncDialog", {
|
|
44201
44201
|
enumerable: true,
|
|
@@ -44263,23 +44263,23 @@ Object.defineProperty(exports, "useDocumentFolders", {
|
|
|
44263
44263
|
});
|
|
44264
44264
|
Object.defineProperty(exports, "ConnectedWorkflowsTable", {
|
|
44265
44265
|
enumerable: true,
|
|
44266
|
-
get: function () { return
|
|
44266
|
+
get: function () { return chunk5GA65VBW_cjs.ConnectedWorkflowsTable; }
|
|
44267
44267
|
});
|
|
44268
44268
|
Object.defineProperty(exports, "DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS", {
|
|
44269
44269
|
enumerable: true,
|
|
44270
|
-
get: function () { return
|
|
44270
|
+
get: function () { return chunk5GA65VBW_cjs.DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS; }
|
|
44271
44271
|
});
|
|
44272
44272
|
Object.defineProperty(exports, "useConnectedWorkspaceRole", {
|
|
44273
44273
|
enumerable: true,
|
|
44274
|
-
get: function () { return
|
|
44274
|
+
get: function () { return chunk5GA65VBW_cjs.useConnectedWorkspaceRole; }
|
|
44275
44275
|
});
|
|
44276
44276
|
Object.defineProperty(exports, "useDocxCommentTarget", {
|
|
44277
44277
|
enumerable: true,
|
|
44278
|
-
get: function () { return
|
|
44278
|
+
get: function () { return chunk5GA65VBW_cjs.useDocxCommentTarget; }
|
|
44279
44279
|
});
|
|
44280
44280
|
Object.defineProperty(exports, "useNativeDocxSupport", {
|
|
44281
44281
|
enumerable: true,
|
|
44282
|
-
get: function () { return
|
|
44282
|
+
get: function () { return chunk5GA65VBW_cjs.useNativeDocxSupport; }
|
|
44283
44283
|
});
|
|
44284
44284
|
Object.defineProperty(exports, "useOpenWorkflow", {
|
|
44285
44285
|
enumerable: true,
|