@loopstack/loopstack-studio 0.30.0 → 0.31.0
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/components/layout/StudioSidebar.js +116 -131
- package/dist/components/lists/ListView.js +46 -46
- package/dist/features/dashboard/AppLauncher.js +84 -0
- package/dist/features/runs/Runs.js +69 -69
- package/dist/features/workbench/components/WorkbenchIconSidebar.js +73 -108
- package/dist/features/workspaces/Workspaces.js +124 -103
- package/dist/features/workspaces/components/CreateWorkspace.js +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/pages/DashboardPage.js +20 -74
- package/dist/routing/LocalRouter.js +1 -1
- package/package.json +1 -1
- package/dist/features/dashboard/Dashboard.js +0 -125
- package/dist/features/dashboard/RunItem.js +0 -78
- package/dist/features/dashboard/RunList.js +0 -32
- package/dist/hooks/useDashboard.js +0 -16
|
@@ -2,12 +2,11 @@ import { useStudio } from "../../providers/StudioProvider.js";
|
|
|
2
2
|
import { useBatchDeleteWorkflows, useDeleteWorkflow, useFilterWorkflows } from "../../hooks/useWorkflows.js";
|
|
3
3
|
import { useFilterWorkspaces } from "../../hooks/useWorkspaces.js";
|
|
4
4
|
import { Badge } from "../../components/ui/badge.js";
|
|
5
|
-
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../../components/ui/tooltip.js";
|
|
6
5
|
import ListView_default from "../../components/lists/ListView.js";
|
|
7
6
|
import { useDebounce } from "../../hooks/useDebounce.js";
|
|
8
7
|
import { c } from "react/compiler-runtime";
|
|
9
8
|
import { useMemo, useState } from "react";
|
|
10
|
-
import { jsx
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
11
10
|
var statusColors = {
|
|
12
11
|
completed: "bg-green-50 text-green-900 border-green-200",
|
|
13
12
|
failed: "bg-destructive/10 text-destructive border-destructive/20",
|
|
@@ -15,55 +14,58 @@ var statusColors = {
|
|
|
15
14
|
running: "bg-blue-50 text-blue-900 border-blue-200",
|
|
16
15
|
paused: "bg-yellow-50 text-yellow-900 border-yellow-200",
|
|
17
16
|
pending: "bg-muted text-muted-foreground border-border"
|
|
18
|
-
}, Runs_default = (
|
|
19
|
-
let
|
|
20
|
-
|
|
21
|
-
let
|
|
22
|
-
|
|
17
|
+
}, Runs_default = (de) => {
|
|
18
|
+
let i = c(52), { defaultFilters: a } = de, o;
|
|
19
|
+
i[0] === a ? o = i[1] : (o = a === void 0 ? {} : a, i[0] = a, i[1] = o);
|
|
20
|
+
let s = o, { router: l } = useStudio(), [u, d] = useState(0), [f, p] = useState(10), [m, h] = useState("createdAt"), [g, _] = useState("DESC"), [v, fe] = useState(), [y, b] = useState(s), pe = useDebounce(v, 500), x;
|
|
21
|
+
i[2] === y ? x = i[3] : (x = {
|
|
23
22
|
...y,
|
|
24
23
|
parentId: null
|
|
25
|
-
},
|
|
26
|
-
let S = useFilterWorkflows(
|
|
27
|
-
|
|
24
|
+
}, i[2] = y, i[3] = x);
|
|
25
|
+
let S = useFilterWorkflows(pe, x, m, g, u, f), C;
|
|
26
|
+
i[4] === Symbol.for("react.memo_cache_sentinel") ? (C = {}, i[4] = C) : C = i[4];
|
|
28
27
|
let w = useFilterWorkspaces(void 0, C, "title", "ASC", 0, 100), T = useDeleteWorkflow(), E = useBatchDeleteWorkflows(), D;
|
|
29
|
-
if (
|
|
28
|
+
if (i[5] !== w.data?.data) {
|
|
30
29
|
D = /* @__PURE__ */ new Map();
|
|
31
|
-
for (let e of w.data?.data ?? []) D.set(e.id,
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
for (let e of w.data?.data ?? []) D.set(e.id, {
|
|
31
|
+
title: e.title,
|
|
32
|
+
appName: e.appName
|
|
33
|
+
});
|
|
34
|
+
i[5] = w.data?.data, i[6] = D;
|
|
35
|
+
} else D = i[6];
|
|
34
36
|
let O = D, k;
|
|
35
|
-
|
|
37
|
+
i[7] === w.data?.data ? k = i[8] : (k = w.data?.data ?? [], i[7] = w.data?.data, i[8] = k);
|
|
36
38
|
let A;
|
|
37
|
-
|
|
39
|
+
i[9] === k ? A = i[10] : (A = k.map(_temp), i[9] = k, i[10] = A);
|
|
38
40
|
let j = A, M;
|
|
39
|
-
if (
|
|
41
|
+
if (i[11] !== S.data?.data) {
|
|
40
42
|
let e = /* @__PURE__ */ new Set();
|
|
41
43
|
for (let t of S.data?.data ?? []) t.workflowName && e.add(t.workflowName);
|
|
42
|
-
M = Array.from(e).sort(),
|
|
43
|
-
} else M =
|
|
44
|
+
M = Array.from(e).sort(), i[11] = S.data?.data, i[12] = M;
|
|
45
|
+
} else M = i[12];
|
|
44
46
|
let N = M, P;
|
|
45
|
-
|
|
47
|
+
i[13] === T ? P = i[14] : (P = (e) => {
|
|
46
48
|
T.mutate(e);
|
|
47
|
-
},
|
|
49
|
+
}, i[13] = T, i[14] = P);
|
|
48
50
|
let F = P, I;
|
|
49
|
-
|
|
51
|
+
i[15] === E ? I = i[16] : (I = (e) => {
|
|
50
52
|
E.mutate(e);
|
|
51
|
-
},
|
|
53
|
+
}, i[15] = E, i[16] = I);
|
|
52
54
|
let L = I, R;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
},
|
|
55
|
+
i[17] === l ? R = i[18] : (R = (e) => {
|
|
56
|
+
l.navigateToWorkflow(e);
|
|
57
|
+
}, i[17] = l, i[18] = R);
|
|
56
58
|
let z = R, B = S.error ?? null, V;
|
|
57
|
-
|
|
59
|
+
i[19] === S.data?.data ? V = i[20] : (V = S.data?.data ?? [], i[19] = S.data?.data, i[20] = V);
|
|
58
60
|
let H = S.data?.total ?? 0, U;
|
|
59
|
-
|
|
61
|
+
i[21] === Symbol.for("react.memo_cache_sentinel") ? (U = {
|
|
60
62
|
id: "run",
|
|
61
63
|
label: "Run",
|
|
62
64
|
minWidth: 60,
|
|
63
65
|
format: _temp2
|
|
64
|
-
},
|
|
66
|
+
}, i[21] = U) : U = i[21];
|
|
65
67
|
let W;
|
|
66
|
-
|
|
68
|
+
i[22] === O ? W = i[23] : (W = {
|
|
67
69
|
id: "workspaceId",
|
|
68
70
|
label: "Workspace",
|
|
69
71
|
minWidth: 120,
|
|
@@ -78,14 +80,24 @@ var statusColors = {
|
|
|
78
80
|
workspaceId: t
|
|
79
81
|
}));
|
|
80
82
|
},
|
|
81
|
-
children: O.get(t) ?? t.slice(0, 8)
|
|
83
|
+
children: O.get(t)?.title ?? t.slice(0, 8)
|
|
82
84
|
});
|
|
83
85
|
}
|
|
84
|
-
},
|
|
85
|
-
let G
|
|
86
|
-
|
|
86
|
+
}, i[22] = O, i[23] = W);
|
|
87
|
+
let G;
|
|
88
|
+
i[24] === O ? G = i[25] : (G = {
|
|
89
|
+
id: "appName",
|
|
90
|
+
label: "App",
|
|
91
|
+
minWidth: 100,
|
|
92
|
+
format: (e, t) => {
|
|
93
|
+
let n = t.workspaceId, r = O.get(n);
|
|
94
|
+
return r ? r.appName : "—";
|
|
95
|
+
}
|
|
96
|
+
}, i[24] = O, i[25] = G);
|
|
97
|
+
let K, q, J;
|
|
98
|
+
i[26] === Symbol.for("react.memo_cache_sentinel") ? (K = {
|
|
87
99
|
id: "workflowName",
|
|
88
|
-
label: "
|
|
100
|
+
label: "Workflow",
|
|
89
101
|
minWidth: 100,
|
|
90
102
|
format: (e) => {
|
|
91
103
|
let t = e;
|
|
@@ -101,71 +113,66 @@ var statusColors = {
|
|
|
101
113
|
children: t
|
|
102
114
|
});
|
|
103
115
|
}
|
|
104
|
-
}, K = {
|
|
105
|
-
id: "title",
|
|
106
|
-
label: "Title",
|
|
107
|
-
minWidth: 150,
|
|
108
|
-
format: _temp3
|
|
109
116
|
}, q = {
|
|
110
117
|
id: "status",
|
|
111
118
|
label: "Status",
|
|
112
119
|
minWidth: 100,
|
|
113
|
-
format:
|
|
120
|
+
format: _temp3
|
|
114
121
|
}, J = {
|
|
115
122
|
id: "createdAt",
|
|
116
123
|
label: "Date Created",
|
|
117
124
|
minWidth: 100,
|
|
118
|
-
format:
|
|
119
|
-
},
|
|
125
|
+
format: _temp4
|
|
126
|
+
}, i[26] = K, i[27] = q, i[28] = J) : (K = i[26], q = i[27], J = i[28]);
|
|
120
127
|
let Y;
|
|
121
|
-
|
|
128
|
+
i[29] !== W || i[30] !== G ? (Y = [
|
|
122
129
|
U,
|
|
123
130
|
W,
|
|
124
131
|
G,
|
|
125
132
|
K,
|
|
126
133
|
q,
|
|
127
134
|
J
|
|
128
|
-
],
|
|
135
|
+
], i[29] = W, i[30] = G, i[31] = Y) : Y = i[31];
|
|
129
136
|
let X = Y, Z;
|
|
130
|
-
|
|
137
|
+
i[32] === Symbol.for("react.memo_cache_sentinel") ? (Z = [
|
|
131
138
|
"pending",
|
|
132
139
|
"running",
|
|
133
140
|
"paused",
|
|
134
141
|
"completed",
|
|
135
142
|
"failed",
|
|
136
143
|
"canceled"
|
|
137
|
-
],
|
|
144
|
+
], i[32] = Z) : Z = i[32];
|
|
138
145
|
let Q;
|
|
139
|
-
|
|
146
|
+
i[33] !== N || i[34] !== j ? (Q = {
|
|
140
147
|
status: Z,
|
|
141
148
|
workspaceId: j,
|
|
142
149
|
workflowName: N
|
|
143
|
-
},
|
|
150
|
+
}, i[33] = N, i[34] = j, i[35] = Q) : Q = i[35];
|
|
144
151
|
let $;
|
|
145
|
-
return
|
|
152
|
+
return i[36] !== S.isPending || i[37] !== y || i[38] !== L || i[39] !== F || i[40] !== z || i[41] !== g || i[42] !== m || i[43] !== u || i[44] !== f || i[45] !== v || i[46] !== B || i[47] !== V || i[48] !== H || i[49] !== X || i[50] !== Q ? ($ = /* @__PURE__ */ jsx(ListView_default, {
|
|
146
153
|
loading: S.isPending,
|
|
147
154
|
error: B,
|
|
148
155
|
items: V,
|
|
149
156
|
totalItems: H,
|
|
150
|
-
setPage:
|
|
151
|
-
setRowsPerPage:
|
|
152
|
-
setOrderBy:
|
|
153
|
-
setOrder:
|
|
154
|
-
setSearchTerm:
|
|
157
|
+
setPage: d,
|
|
158
|
+
setRowsPerPage: p,
|
|
159
|
+
setOrderBy: h,
|
|
160
|
+
setOrder: _,
|
|
161
|
+
setSearchTerm: fe,
|
|
155
162
|
setFilters: b,
|
|
156
|
-
orderBy:
|
|
157
|
-
order:
|
|
158
|
-
searchTerm:
|
|
163
|
+
orderBy: m,
|
|
164
|
+
order: g,
|
|
165
|
+
searchTerm: v,
|
|
159
166
|
filters: y,
|
|
160
|
-
page:
|
|
161
|
-
rowsPerPage:
|
|
167
|
+
page: u,
|
|
168
|
+
rowsPerPage: f,
|
|
162
169
|
deleteItem: F,
|
|
163
170
|
onClick: z,
|
|
164
171
|
enableBatchActions: !0,
|
|
165
172
|
batchDelete: L,
|
|
166
173
|
columns: X,
|
|
167
174
|
filterConfig: Q
|
|
168
|
-
}),
|
|
175
|
+
}), i[36] = S.isPending, i[37] = y, i[38] = L, i[39] = F, i[40] = z, i[41] = g, i[42] = m, i[43] = u, i[44] = f, i[45] = v, i[46] = B, i[47] = V, i[48] = H, i[49] = X, i[50] = Q, i[51] = $) : $ = i[51], $;
|
|
169
176
|
};
|
|
170
177
|
function _temp(e) {
|
|
171
178
|
return {
|
|
@@ -178,20 +185,13 @@ function _temp2(e) {
|
|
|
178
185
|
return t == null ? "—" : `#${t}`;
|
|
179
186
|
}
|
|
180
187
|
function _temp3(e) {
|
|
181
|
-
let t = e;
|
|
182
|
-
return t ? /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
|
|
183
|
-
asChild: !0,
|
|
184
|
-
children: /* @__PURE__ */ jsx("span", { children: t.length > 40 ? t.slice(0, 40) + "..." : t })
|
|
185
|
-
}), t.length > 40 && /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: t }) })] }) }) : "—";
|
|
186
|
-
}
|
|
187
|
-
function _temp4(e) {
|
|
188
188
|
let t = e;
|
|
189
189
|
return /* @__PURE__ */ jsx(Badge, {
|
|
190
190
|
className: `rounded-full border px-2 py-1 text-xs whitespace-nowrap ${statusColors[t] || "bg-muted text-muted-foreground border-border"}`,
|
|
191
191
|
children: t
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function _temp4(e) {
|
|
195
195
|
return new Date(e).toLocaleString();
|
|
196
196
|
}
|
|
197
197
|
export { Runs_default as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { useStudio } from "../../../providers/StudioProvider.js";
|
|
2
1
|
import { cn } from "../../../lib/utils.js";
|
|
3
2
|
import { Tooltip, TooltipContent, TooltipTrigger } from "../../../components/ui/tooltip.js";
|
|
4
3
|
import { useWorkbenchLayout } from "../providers/WorkbenchLayoutProvider.js";
|
|
@@ -6,131 +5,97 @@ import { useFeatureRegistry } from "../../feature-registry/FeatureRegistryProvid
|
|
|
6
5
|
import "../../feature-registry/index.js";
|
|
7
6
|
import { c } from "react/compiler-runtime";
|
|
8
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
l[0] === _ ? v = l[1] : (v = cn("flex h-10 w-10 items-center justify-center rounded-md transition-colors", _), l[0] = _, l[1] = v);
|
|
14
|
-
let y;
|
|
15
|
-
l[2] !== m || l[3] !== u || l[4] !== g || l[5] !== v ? (y = /* @__PURE__ */ jsx(TooltipTrigger, {
|
|
16
|
-
asChild: !0,
|
|
17
|
-
children: /* @__PURE__ */ jsx("button", {
|
|
18
|
-
onClick: g,
|
|
19
|
-
disabled: m,
|
|
20
|
-
className: v,
|
|
21
|
-
children: u
|
|
22
|
-
})
|
|
23
|
-
}), l[2] = m, l[3] = u, l[4] = g, l[5] = v, l[6] = y) : y = l[6];
|
|
24
|
-
let b;
|
|
25
|
-
l[7] === f ? b = l[8] : (b = /* @__PURE__ */ jsx(TooltipContent, {
|
|
26
|
-
side: "left",
|
|
27
|
-
children: f
|
|
28
|
-
}), l[7] = f, l[8] = b);
|
|
29
|
-
let x;
|
|
30
|
-
return l[9] !== y || l[10] !== b ? (x = /* @__PURE__ */ jsxs(Tooltip, { children: [y, b] }), l[9] = y, l[10] = b, l[11] = x) : x = l[11], x;
|
|
31
|
-
}
|
|
32
|
-
function IconLink(e) {
|
|
33
|
-
let l = c(11), { icon: u, label: p, to: m, active: h } = e, g = h ? "bg-foreground text-background" : "text-muted-foreground hover:bg-accent/50 hover:text-accent-foreground", _;
|
|
34
|
-
l[0] === g ? _ = l[1] : (_ = cn("flex h-10 w-10 items-center justify-center rounded-md transition-colors", g), l[0] = g, l[1] = _);
|
|
8
|
+
import { MonitorPlay, Play, Server } from "lucide-react";
|
|
9
|
+
function IconButton(a) {
|
|
10
|
+
let o = c(12), { icon: u, label: d, active: f, disabled: p, onClick: m } = a, h = p ? void 0 : m, g = p ? "text-muted-foreground/40 cursor-not-allowed" : f ? "bg-foreground text-background hover:cursor-pointer" : "text-muted-foreground hover:bg-accent/50 hover:text-accent-foreground hover:cursor-pointer", _;
|
|
11
|
+
o[0] === g ? _ = o[1] : (_ = cn("flex h-10 w-10 items-center justify-center rounded-md transition-colors", g), o[0] = g, o[1] = _);
|
|
35
12
|
let v;
|
|
36
|
-
|
|
13
|
+
o[2] !== p || o[3] !== u || o[4] !== h || o[5] !== _ ? (v = /* @__PURE__ */ jsx(TooltipTrigger, {
|
|
37
14
|
asChild: !0,
|
|
38
|
-
children: /* @__PURE__ */ jsx(
|
|
39
|
-
|
|
15
|
+
children: /* @__PURE__ */ jsx("button", {
|
|
16
|
+
onClick: h,
|
|
17
|
+
disabled: p,
|
|
40
18
|
className: _,
|
|
41
19
|
children: u
|
|
42
20
|
})
|
|
43
|
-
}),
|
|
21
|
+
}), o[2] = p, o[3] = u, o[4] = h, o[5] = _, o[6] = v) : v = o[6];
|
|
44
22
|
let y;
|
|
45
|
-
|
|
23
|
+
o[7] === d ? y = o[8] : (y = /* @__PURE__ */ jsx(TooltipContent, {
|
|
46
24
|
side: "left",
|
|
47
|
-
children:
|
|
48
|
-
}),
|
|
25
|
+
children: d
|
|
26
|
+
}), o[7] = d, o[8] = y);
|
|
49
27
|
let b;
|
|
50
|
-
return
|
|
28
|
+
return o[9] !== v || o[10] !== y ? (b = /* @__PURE__ */ jsxs(Tooltip, { children: [v, y] }), o[9] = v, o[10] = y, o[11] = b) : b = o[11], b;
|
|
51
29
|
}
|
|
52
30
|
function WorkbenchIconSidebar() {
|
|
53
|
-
let
|
|
54
|
-
|
|
55
|
-
let
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
let
|
|
60
|
-
|
|
61
|
-
let l;
|
|
62
|
-
|
|
63
|
-
let u = w.pathname === k, d;
|
|
64
|
-
i[22] !== u || i[23] !== k ? (d = /* @__PURE__ */ jsx(IconLink, {
|
|
65
|
-
icon: l,
|
|
66
|
-
label: "Workspace",
|
|
67
|
-
to: k,
|
|
68
|
-
active: u
|
|
69
|
-
}), i[22] = u, i[23] = k, i[24] = d) : d = i[24];
|
|
70
|
-
let f;
|
|
71
|
-
i[25] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ jsx(Play, { className: "h-5 w-5" }), i[25] = f) : f = i[25];
|
|
72
|
-
let p = o === "runs", b;
|
|
73
|
-
i[26] === s ? b = i[27] : (b = () => s("runs"), i[26] = s, i[27] = b);
|
|
74
|
-
let S;
|
|
75
|
-
i[28] !== p || i[29] !== b ? (S = /* @__PURE__ */ jsx(IconButton, {
|
|
76
|
-
icon: f,
|
|
77
|
-
label: "Runs",
|
|
78
|
-
active: p,
|
|
79
|
-
onClick: b
|
|
80
|
-
}), i[28] = p, i[29] = b, i[30] = S) : S = i[30], i[31] !== d || i[32] !== S ? (I = /* @__PURE__ */ jsxs("div", {
|
|
31
|
+
let e = c(53), { previewPanelEnabled: n, activePanel: r, togglePanel: i, environments: m } = useWorkbenchLayout(), v = useFeatureRegistry(), y;
|
|
32
|
+
e[0] === m ? y = e[1] : (y = m?.some(_temp) ?? !1, e[0] = m, e[1] = y);
|
|
33
|
+
let b = y, x, S, C, w, T, E, D, O;
|
|
34
|
+
if (e[2] !== r || e[3] !== v || e[4] !== b || e[5] !== n || e[6] !== i) {
|
|
35
|
+
let a = v.filter(_temp2).map(_temp3);
|
|
36
|
+
T = "border-l bg-background flex w-12 shrink-0 flex-col items-center", e[15] === Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ jsx("div", { className: "flex h-12 shrink-0 items-center justify-center border-b w-full" }), e[15] = E) : E = e[15];
|
|
37
|
+
let o;
|
|
38
|
+
e[16] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ jsx(Play, { className: "h-5 w-5" }), e[16] = o) : o = e[16];
|
|
39
|
+
let s = r === "runs", l;
|
|
40
|
+
e[17] === i ? l = e[18] : (l = () => i("runs"), e[17] = i, e[18] = l), e[19] !== s || e[20] !== l ? (D = /* @__PURE__ */ jsx("div", {
|
|
81
41
|
className: "flex flex-col items-center gap-1 py-2",
|
|
82
|
-
children:
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
42
|
+
children: /* @__PURE__ */ jsx(IconButton, {
|
|
43
|
+
icon: o,
|
|
44
|
+
label: "Runs",
|
|
45
|
+
active: s,
|
|
46
|
+
onClick: l
|
|
47
|
+
})
|
|
48
|
+
}), e[19] = s, e[20] = l, e[21] = D) : D = e[21], e[22] === Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ jsx("div", { className: "mx-2 w-6 border-t" }), e[22] = O) : O = e[22], x = "flex flex-col items-center gap-1 py-2";
|
|
49
|
+
let m;
|
|
50
|
+
e[23] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ jsx(MonitorPlay, { className: "h-5 w-5" }), e[23] = m) : m = e[23];
|
|
51
|
+
let _ = n ? "Environment Preview" : "Preview not available for this environment", y = r === "preview", k = !n, A;
|
|
52
|
+
e[24] === i ? A = e[25] : (A = () => i("preview"), e[24] = i, e[25] = A), e[26] !== _ || e[27] !== y || e[28] !== k || e[29] !== A ? (S = /* @__PURE__ */ jsx(IconButton, {
|
|
53
|
+
icon: m,
|
|
54
|
+
label: _,
|
|
55
|
+
active: y,
|
|
56
|
+
disabled: k,
|
|
57
|
+
onClick: A
|
|
58
|
+
}), e[26] = _, e[27] = y, e[28] = k, e[29] = A, e[30] = S) : S = e[30];
|
|
59
|
+
let j;
|
|
60
|
+
e[31] === Symbol.for("react.memo_cache_sentinel") ? (j = /* @__PURE__ */ jsx(Server, { className: "h-5 w-5" }), e[31] = j) : j = e[31];
|
|
61
|
+
let M = b ? "Environment Settings" : "Settings not available for this environment", N = r === "environment", P = !b, F;
|
|
62
|
+
e[32] === i ? F = e[33] : (F = () => i("environment"), e[32] = i, e[33] = F), e[34] !== M || e[35] !== N || e[36] !== P || e[37] !== F ? (C = /* @__PURE__ */ jsx(IconButton, {
|
|
63
|
+
icon: j,
|
|
64
|
+
label: M,
|
|
65
|
+
active: N,
|
|
66
|
+
disabled: P,
|
|
67
|
+
onClick: F
|
|
68
|
+
}), e[34] = M, e[35] = N, e[36] = P, e[37] = F, e[38] = C) : C = e[38];
|
|
69
|
+
let I;
|
|
70
|
+
e[39] !== r || e[40] !== i ? (I = (e) => {
|
|
71
|
+
let n = e.icon;
|
|
107
72
|
return /* @__PURE__ */ jsx(IconButton, {
|
|
108
|
-
icon: /* @__PURE__ */ jsx(
|
|
73
|
+
icon: /* @__PURE__ */ jsx(n, { className: "h-5 w-5" }),
|
|
109
74
|
label: e.label,
|
|
110
|
-
active:
|
|
111
|
-
onClick: () =>
|
|
75
|
+
active: r === e.id,
|
|
76
|
+
onClick: () => i(e.id)
|
|
112
77
|
}, e.id);
|
|
113
|
-
},
|
|
114
|
-
} else
|
|
115
|
-
let
|
|
116
|
-
|
|
117
|
-
className:
|
|
78
|
+
}, e[39] = r, e[40] = i, e[41] = I) : I = e[41], w = a.map(I), e[2] = r, e[3] = v, e[4] = b, e[5] = n, e[6] = i, e[7] = x, e[8] = S, e[9] = C, e[10] = w, e[11] = T, e[12] = E, e[13] = D, e[14] = O;
|
|
79
|
+
} else x = e[7], S = e[8], C = e[9], w = e[10], T = e[11], E = e[12], D = e[13], O = e[14];
|
|
80
|
+
let k;
|
|
81
|
+
e[42] !== x || e[43] !== S || e[44] !== C || e[45] !== w ? (k = /* @__PURE__ */ jsxs("div", {
|
|
82
|
+
className: x,
|
|
118
83
|
children: [
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
84
|
+
S,
|
|
85
|
+
C,
|
|
86
|
+
w
|
|
122
87
|
]
|
|
123
|
-
}),
|
|
124
|
-
let
|
|
125
|
-
return
|
|
126
|
-
className:
|
|
88
|
+
}), e[42] = x, e[43] = S, e[44] = C, e[45] = w, e[46] = k) : k = e[46];
|
|
89
|
+
let A;
|
|
90
|
+
return e[47] !== T || e[48] !== E || e[49] !== D || e[50] !== O || e[51] !== k ? (A = /* @__PURE__ */ jsxs("div", {
|
|
91
|
+
className: T,
|
|
127
92
|
children: [
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
93
|
+
E,
|
|
94
|
+
D,
|
|
95
|
+
O,
|
|
96
|
+
k
|
|
132
97
|
]
|
|
133
|
-
}),
|
|
98
|
+
}), e[47] = T, e[48] = E, e[49] = D, e[50] = O, e[51] = k, e[52] = A) : A = e[52], A;
|
|
134
99
|
}
|
|
135
100
|
function _temp3(e) {
|
|
136
101
|
return e.sidebarPanel;
|