@burdenoff/microfe-sandbox 2026.625.2 → 2026.625.3

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.
@@ -14,12 +14,13 @@ import { SandboxActivityTab as T } from "../components/SandboxActivityTab.js";
14
14
  import { SandboxAgentAppPanel as re } from "../components/SandboxAgentAppPanel.js";
15
15
  import { SandboxScriptRunnerPanel as ie } from "../components/SandboxScriptRunnerPanel.js";
16
16
  import { useCallback as E, useEffect as D, useRef as O, useState as k } from "react";
17
- import { AlertCircle as ae, ArrowLeft as oe, CheckCircle2 as A, Clock as se, Cog as ce, Container as le, Copy as j, Database as M, Download as N, Info as P, Network as ue, Play as de, RefreshCw as F, Shield as fe, StopCircle as I, Terminal as L, Timer as R, Trash2 as z } from "lucide-react";
18
- import { useParams as B } from "react-router-dom";
19
- import { useI18n as V } from "@burdenoff/fe-libs/shared/providers/shell";
20
- import { Fragment as H, jsx as U, jsxs as W } from "react/jsx-runtime";
17
+ import { AlertCircle as ae, ArrowLeft as oe, CheckCircle2 as A, Clock as se, Cog as ce, Container as le, Copy as j, Database as M, Download as N, Info as P, Network as F, Play as ue, RefreshCw as I, Shield as de, StopCircle as L, Terminal as R, Timer as z, Trash2 as B } from "lucide-react";
18
+ import { useParams as V } from "react-router-dom";
19
+ import { useI18n as H } from "@burdenoff/fe-libs/shared/providers/shell";
20
+ import { Fragment as U, jsx as W, jsxs as G } from "react/jsx-runtime";
21
+ import { IllustratedEmptyState as fe } from "@burdenoff/fe-libs/ui";
21
22
  //#region src/sandbox/pages/SandboxDetailPage.tsx
22
- function G(e) {
23
+ function K(e) {
23
24
  return new Date(e).toLocaleString(void 0, {
24
25
  year: "numeric",
25
26
  month: "short",
@@ -28,11 +29,11 @@ function G(e) {
28
29
  minute: "2-digit"
29
30
  });
30
31
  }
31
- function K(e) {
32
+ function pe(e) {
32
33
  let t = Math.floor(e / 3600), n = Math.floor(e % 3600 / 60);
33
34
  return t > 0 ? `${t}h ${n}m` : `${n}m`;
34
35
  }
35
- function pe(e) {
36
+ function me(e) {
36
37
  if (!e) return null;
37
38
  let t = new Date(e).getTime() - Date.now();
38
39
  if (t <= 0) return "Expired";
@@ -40,35 +41,35 @@ function pe(e) {
40
41
  return n > 0 ? `${n}h ${r}m remaining` : `${r}m remaining`;
41
42
  }
42
43
  function q({ isCopied: e, onCopy: t, ariaLabel: n }) {
43
- return /* @__PURE__ */ U("button", {
44
+ return /* @__PURE__ */ W("button", {
44
45
  type: "button",
45
46
  onClick: t,
46
47
  className: "p-1 rounded hover:bg-bg-sunken transition-colors",
47
48
  "aria-label": n,
48
- children: e ? /* @__PURE__ */ U(A, {
49
+ children: e ? /* @__PURE__ */ W(A, {
49
50
  size: 14,
50
51
  className: "text-status-success-text"
51
- }) : /* @__PURE__ */ U(j, {
52
+ }) : /* @__PURE__ */ W(j, {
52
53
  size: 14,
53
54
  className: "text-text-secondary"
54
55
  })
55
56
  });
56
57
  }
57
58
  function J({ value: e, field: t, copiedField: n, onCopy: r, ariaLabel: i }) {
58
- return /* @__PURE__ */ U(q, {
59
+ return /* @__PURE__ */ W(q, {
59
60
  isCopied: n === t,
60
61
  onCopy: () => r(e, t),
61
62
  ariaLabel: i
62
63
  });
63
64
  }
64
- function me({ enabled: e, collapsedHeight: t, children: n }) {
65
- return e ? /* @__PURE__ */ U(c, {
65
+ function he({ enabled: e, collapsedHeight: t, children: n }) {
66
+ return e ? /* @__PURE__ */ W(c, {
66
67
  collapsedHeight: t,
67
68
  children: n
68
- }) : /* @__PURE__ */ U(H, { children: n });
69
+ }) : /* @__PURE__ */ W(U, { children: n });
69
70
  }
70
71
  function Y() {
71
- let { sandboxId: c } = B(), { basePath: v = "/", navigate: E, workspaceId: D } = e(), { t: O } = V(), [A, j] = k(null), [N, L] = k(!1), [q, Y] = k(!1), { data: ge, loading: _e, refetch: X } = y({
72
+ let { sandboxId: c } = V(), { basePath: v = "/", navigate: E, workspaceId: D } = e(), { t: O } = H(), [A, j] = k(null), [N, R] = k(!1), [q, Y] = k(!1), { data: _e, loading: ve, refetch: X } = y({
72
73
  variables: {
73
74
  context: { workspaceId: D },
74
75
  id: c
@@ -82,101 +83,98 @@ function Y() {
82
83
  },
83
84
  skip: !c || !D
84
85
  });
85
- let [ve] = te(), [ye] = g(), [be] = _(), xe = m(), Z = ge?.getSandbox, Se = async (e, t) => {
86
+ let [ye] = te(), [be] = g(), [xe] = _(), Se = m(), Z = _e?.getSandbox, Ce = async (e, t) => {
86
87
  S("light"), await x(e) ? (C("success"), b() && w(`Copied ${t}`), j(t), setTimeout(() => j(null), 2e3)) : C("error");
87
88
  }, Q = (e, t) => {
88
- Se(e, t);
89
+ Ce(e, t);
89
90
  }, $ = (e) => l(O, "sandbox.detail.actions.copy.ariaLabel", "Copy {field}", { field: e });
90
- if (_e) return /* @__PURE__ */ U(h, {
91
+ if (ve) return /* @__PURE__ */ W(h, {
91
92
  showHeader: !1,
92
- children: /* @__PURE__ */ U("div", {
93
+ children: /* @__PURE__ */ W("div", {
93
94
  className: "flex items-center justify-center h-64",
94
- children: /* @__PURE__ */ U(F, {
95
+ children: /* @__PURE__ */ W(I, {
95
96
  size: 24,
96
97
  className: "animate-spin text-text-secondary"
97
98
  })
98
99
  })
99
100
  });
100
- if (!Z) return /* @__PURE__ */ U(h, {
101
+ if (!Z) return /* @__PURE__ */ W(h, {
101
102
  showHeader: !1,
102
- children: /* @__PURE__ */ W("div", {
103
- className: "text-center py-16",
104
- children: [/* @__PURE__ */ U("p", {
105
- className: "text-text-secondary",
106
- children: l(O, "sandbox.detail.notFound.message", "Sandbox not found")
107
- }), /* @__PURE__ */ U(n, {
103
+ children: /* @__PURE__ */ W(fe, {
104
+ illustration: "empty-generic",
105
+ title: l(O, "sandbox.detail.notFound.message", "Sandbox not found"),
106
+ action: /* @__PURE__ */ W(n, {
108
107
  variant: "outline",
109
108
  onClick: () => E?.(v),
110
- className: "mt-4",
111
109
  children: l(O, "sandbox.detail.notFound.backButton", "Back to Sandboxes")
112
- })]
110
+ })
113
111
  })
114
112
  });
115
- let Ce = Z.status === "RUNNING" || Z.status === "PROVISIONING" || Z.status === "PENDING", we = Z.status === "RUNNING", Te = Z.status === "STOPPED" || Z.status === "ERROR" || Z.status === "EXPIRED" || Z.status === "FAILED", Ee = [
113
+ let we = Z.status === "RUNNING" || Z.status === "PROVISIONING" || Z.status === "PENDING", Te = Z.status === "RUNNING", Ee = Z.status === "STOPPED" || Z.status === "ERROR" || Z.status === "EXPIRED" || Z.status === "FAILED", De = [
116
114
  ...Z.status === "RUNNING" ? [{
117
115
  label: l(O, "sandbox.detail.actions.extendTtl", "Extend TTL"),
118
- onSelect: () => L(!0),
119
- icon: /* @__PURE__ */ U(R, { size: 16 })
116
+ onSelect: () => R(!0),
117
+ icon: /* @__PURE__ */ W(z, { size: 16 })
120
118
  }] : [],
121
- ...we ? [{
119
+ ...Te ? [{
122
120
  label: l(O, "sandbox.detail.actions.stop", "Stop"),
123
- onSelect: () => void ve({ variables: {
121
+ onSelect: () => void ye({ variables: {
124
122
  context: { workspaceId: D },
125
123
  id: Z.id
126
124
  } }).then(() => X()),
127
- icon: /* @__PURE__ */ U(I, { size: 16 })
125
+ icon: /* @__PURE__ */ W(L, { size: 16 })
128
126
  }] : [],
129
- ...Te ? [{
127
+ ...Ee ? [{
130
128
  label: l(O, "sandbox.detail.actions.delete", "Delete"),
131
- onSelect: () => void ye({ variables: {
129
+ onSelect: () => void be({ variables: {
132
130
  context: { workspaceId: D },
133
131
  id: Z.id
134
132
  } }).then(() => {
135
133
  E?.(v);
136
134
  }),
137
- icon: /* @__PURE__ */ U(z, { size: 16 }),
135
+ icon: /* @__PURE__ */ W(B, { size: 16 }),
138
136
  intent: "destructive"
139
137
  }] : []
140
138
  ];
141
- return /* @__PURE__ */ W(h, {
139
+ return /* @__PURE__ */ G(h, {
142
140
  showHeader: !1,
143
141
  children: [
144
- /* @__PURE__ */ W(o, {
142
+ /* @__PURE__ */ G(o, {
145
143
  className: "overflow-hidden bg-hero-mesh",
146
144
  children: [
147
- /* @__PURE__ */ W("div", {
145
+ /* @__PURE__ */ G("div", {
148
146
  className: "flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
149
- children: [/* @__PURE__ */ W("div", {
147
+ children: [/* @__PURE__ */ G("div", {
150
148
  className: "flex items-center gap-3 min-w-0",
151
149
  children: [
152
- /* @__PURE__ */ U("button", {
150
+ /* @__PURE__ */ W("button", {
153
151
  type: "button",
154
152
  onClick: () => E?.(v),
155
153
  className: "flex size-11 flex-shrink-0 items-center justify-center rounded-lg hover:bg-bg-sunken/60 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-action-primary-border",
156
154
  "aria-label": l(O, "sandbox.detail.header.back.ariaLabel", "Back to sandboxes"),
157
- children: /* @__PURE__ */ U(oe, { size: 20 })
155
+ children: /* @__PURE__ */ W(oe, { size: 20 })
158
156
  }),
159
- /* @__PURE__ */ U(f, {
157
+ /* @__PURE__ */ W(f, {
160
158
  type: Z.template,
161
159
  size: 28
162
160
  }),
163
- /* @__PURE__ */ W("div", {
161
+ /* @__PURE__ */ G("div", {
164
162
  className: "min-w-0",
165
- children: [/* @__PURE__ */ U("h1", {
163
+ children: [/* @__PURE__ */ W("h1", {
166
164
  className: "truncate text-2xl sm:text-3xl font-bold",
167
165
  children: Z.name
168
- }), /* @__PURE__ */ W("div", {
166
+ }), /* @__PURE__ */ G("div", {
169
167
  className: "flex flex-wrap items-center gap-2 mt-1",
170
168
  children: [
171
- /* @__PURE__ */ U(u, {
169
+ /* @__PURE__ */ W(u, {
172
170
  status: Z.status,
173
171
  size: "md"
174
172
  }),
175
- /* @__PURE__ */ U("span", {
173
+ /* @__PURE__ */ W("span", {
176
174
  className: "text-sm text-text-secondary font-mono truncate",
177
175
  children: Z.id
178
176
  }),
179
- /* @__PURE__ */ U(J, {
177
+ /* @__PURE__ */ W(J, {
180
178
  value: Z.id,
181
179
  field: "id",
182
180
  copiedField: A,
@@ -187,25 +185,25 @@ function Y() {
187
185
  })]
188
186
  })
189
187
  ]
190
- }), /* @__PURE__ */ U(r, {
188
+ }), /* @__PURE__ */ W(r, {
191
189
  className: "flex-shrink-0",
192
190
  primary: {
193
191
  label: l(O, "sandbox.detail.actions.refresh", "Refresh"),
194
192
  onSelect: () => void X(),
195
- icon: /* @__PURE__ */ U(F, { size: 16 })
193
+ icon: /* @__PURE__ */ W(I, { size: 16 })
196
194
  },
197
- actions: Ee
195
+ actions: De
198
196
  })]
199
197
  }),
200
- Z.network?.internalUrl && Z.status === "RUNNING" && /* @__PURE__ */ U("div", {
198
+ Z.network?.internalUrl && Z.status === "RUNNING" && /* @__PURE__ */ W("div", {
201
199
  className: "mt-4",
202
- children: /* @__PURE__ */ W(t, {
200
+ children: /* @__PURE__ */ G(t, {
203
201
  variant: "outline",
204
202
  className: "gap-1.5 px-3 py-1.5 text-sm border-border-seam",
205
203
  children: [
206
- /* @__PURE__ */ U(ue, { size: 14 }),
204
+ /* @__PURE__ */ W(F, { size: 14 }),
207
205
  Z.network.internalUrl,
208
- /* @__PURE__ */ U(J, {
206
+ /* @__PURE__ */ W(J, {
209
207
  value: Z.network.internalUrl,
210
208
  field: "internalUrl",
211
209
  copiedField: A,
@@ -215,50 +213,50 @@ function Y() {
215
213
  ]
216
214
  })
217
215
  }),
218
- Z.status === "RUNNING" && Z.expiresAt && /* @__PURE__ */ U("div", {
216
+ Z.status === "RUNNING" && Z.expiresAt && /* @__PURE__ */ W("div", {
219
217
  className: "mt-4",
220
- children: /* @__PURE__ */ U(p, {
218
+ children: /* @__PURE__ */ W(p, {
221
219
  expiresAt: Z.expiresAt,
222
220
  onExpired: () => X(),
223
- onExtend: () => L(!0)
221
+ onExtend: () => R(!0)
224
222
  })
225
223
  })
226
224
  ]
227
225
  }),
228
- Z.description && /* @__PURE__ */ U(i, {
226
+ Z.description && /* @__PURE__ */ W(i, {
229
227
  className: "border-border-seam",
230
- children: /* @__PURE__ */ U(a, {
228
+ children: /* @__PURE__ */ W(a, {
231
229
  className: "p-5",
232
- children: /* @__PURE__ */ W("div", {
230
+ children: /* @__PURE__ */ G("div", {
233
231
  className: "flex items-start gap-3",
234
- children: [/* @__PURE__ */ U(P, {
232
+ children: [/* @__PURE__ */ W(P, {
235
233
  size: 18,
236
234
  className: "text-primary flex-shrink-0 mt-0.5"
237
- }), /* @__PURE__ */ U("p", {
235
+ }), /* @__PURE__ */ W("p", {
238
236
  className: "text-sm text-text-secondary leading-relaxed",
239
237
  children: Z.description
240
238
  })]
241
239
  })
242
240
  })
243
241
  }),
244
- /* @__PURE__ */ W("div", {
242
+ /* @__PURE__ */ G("div", {
245
243
  className: "grid grid-cols-1 lg:grid-cols-2 gap-4",
246
244
  children: [
247
- /* @__PURE__ */ U(s, {
245
+ /* @__PURE__ */ W(s, {
248
246
  treatment: "plain",
249
247
  className: "border-border-seam",
250
- children: /* @__PURE__ */ W("div", {
248
+ children: /* @__PURE__ */ G("div", {
251
249
  className: "p-5",
252
- children: [/* @__PURE__ */ W("h3", {
250
+ children: [/* @__PURE__ */ G("h3", {
253
251
  className: "font-semibold mb-4 flex items-center gap-2",
254
- children: [/* @__PURE__ */ U("div", {
252
+ children: [/* @__PURE__ */ W("div", {
255
253
  className: "p-1.5 rounded-lg bg-action-primary-bg/10",
256
- children: /* @__PURE__ */ U(F, {
254
+ children: /* @__PURE__ */ W(I, {
257
255
  size: 14,
258
256
  className: "text-primary"
259
257
  })
260
258
  }), l(O, "sandbox.detail.cards.resources.title", "Resources")]
261
- }), /* @__PURE__ */ U(d, {
259
+ }), /* @__PURE__ */ W(d, {
262
260
  cpuRequest: Z.resources?.cpuRequest ?? "0",
263
261
  cpuLimit: Z.resources?.cpuLimit,
264
262
  memoryRequest: Z.resources?.memoryRequest ?? "0",
@@ -268,34 +266,34 @@ function Y() {
268
266
  })]
269
267
  })
270
268
  }),
271
- /* @__PURE__ */ U(s, {
269
+ /* @__PURE__ */ W(s, {
272
270
  treatment: "plain",
273
271
  className: "border-border-seam",
274
- children: /* @__PURE__ */ W("div", {
272
+ children: /* @__PURE__ */ G("div", {
275
273
  className: "p-5",
276
- children: [/* @__PURE__ */ W("h3", {
274
+ children: [/* @__PURE__ */ G("h3", {
277
275
  className: "font-semibold mb-4 flex items-center gap-2",
278
- children: [/* @__PURE__ */ U("div", {
276
+ children: [/* @__PURE__ */ W("div", {
279
277
  className: "p-1.5 rounded-lg bg-action-primary-bg/10",
280
- children: /* @__PURE__ */ U(fe, {
278
+ children: /* @__PURE__ */ W(de, {
281
279
  size: 14,
282
280
  className: "text-primary"
283
281
  })
284
282
  }), l(O, "sandbox.detail.cards.kubernetes.title", "Kubernetes")]
285
- }), /* @__PURE__ */ W("div", {
283
+ }), /* @__PURE__ */ G("div", {
286
284
  className: "space-y-3",
287
285
  children: [
288
- Z.crdName && /* @__PURE__ */ W("div", {
286
+ Z.crdName && /* @__PURE__ */ G("div", {
289
287
  className: "flex items-center justify-between",
290
- children: [/* @__PURE__ */ U("span", {
288
+ children: [/* @__PURE__ */ W("span", {
291
289
  className: "text-sm text-text-secondary",
292
290
  children: l(O, "sandbox.detail.cards.kubernetes.crdName", "CRD Name")
293
- }), /* @__PURE__ */ W("div", {
291
+ }), /* @__PURE__ */ G("div", {
294
292
  className: "flex items-center gap-1.5",
295
- children: [/* @__PURE__ */ U("span", {
293
+ children: [/* @__PURE__ */ W("span", {
296
294
  className: "text-sm font-mono",
297
295
  children: Z.crdName
298
- }), /* @__PURE__ */ U(J, {
296
+ }), /* @__PURE__ */ W(J, {
299
297
  value: Z.crdName,
300
298
  field: "crdName",
301
299
  copiedField: A,
@@ -304,17 +302,17 @@ function Y() {
304
302
  })]
305
303
  })]
306
304
  }),
307
- Z.podName && /* @__PURE__ */ W("div", {
305
+ Z.podName && /* @__PURE__ */ G("div", {
308
306
  className: "flex items-center justify-between",
309
- children: [/* @__PURE__ */ U("span", {
307
+ children: [/* @__PURE__ */ W("span", {
310
308
  className: "text-sm text-text-secondary",
311
309
  children: l(O, "sandbox.detail.cards.kubernetes.podName", "Pod Name")
312
- }), /* @__PURE__ */ W("div", {
310
+ }), /* @__PURE__ */ G("div", {
313
311
  className: "flex items-center gap-1.5",
314
- children: [/* @__PURE__ */ U("span", {
312
+ children: [/* @__PURE__ */ W("span", {
315
313
  className: "text-sm font-mono",
316
314
  children: Z.podName
317
- }), /* @__PURE__ */ U(J, {
315
+ }), /* @__PURE__ */ W(J, {
318
316
  value: Z.podName,
319
317
  field: "podName",
320
318
  copiedField: A,
@@ -323,38 +321,38 @@ function Y() {
323
321
  })]
324
322
  })]
325
323
  }),
326
- /* @__PURE__ */ W("div", {
324
+ /* @__PURE__ */ G("div", {
327
325
  className: "flex items-center justify-between",
328
- children: [/* @__PURE__ */ U("span", {
326
+ children: [/* @__PURE__ */ W("span", {
329
327
  className: "text-sm text-text-secondary",
330
328
  children: l(O, "sandbox.detail.cards.kubernetes.namespace", "Namespace")
331
- }), /* @__PURE__ */ U("span", {
329
+ }), /* @__PURE__ */ W("span", {
332
330
  className: "text-sm font-mono",
333
331
  children: Z.namespace
334
332
  })]
335
333
  }),
336
- /* @__PURE__ */ W("div", {
334
+ /* @__PURE__ */ G("div", {
337
335
  className: "flex items-center justify-between",
338
- children: [/* @__PURE__ */ U("span", {
336
+ children: [/* @__PURE__ */ W("span", {
339
337
  className: "text-sm text-text-secondary",
340
338
  children: l(O, "sandbox.detail.cards.kubernetes.runtimeClass", "Runtime Class")
341
- }), /* @__PURE__ */ U(t, {
339
+ }), /* @__PURE__ */ W(t, {
342
340
  variant: "secondary",
343
341
  className: "font-mono text-xs",
344
342
  children: Z.runtimeClass
345
343
  })]
346
344
  }),
347
- Z.network?.serviceName && /* @__PURE__ */ W("div", {
345
+ Z.network?.serviceName && /* @__PURE__ */ G("div", {
348
346
  className: "flex items-center justify-between",
349
- children: [/* @__PURE__ */ U("span", {
347
+ children: [/* @__PURE__ */ W("span", {
350
348
  className: "text-sm text-text-secondary",
351
349
  children: l(O, "sandbox.detail.cards.kubernetes.serviceName", "Service Name")
352
- }), /* @__PURE__ */ W("div", {
350
+ }), /* @__PURE__ */ G("div", {
353
351
  className: "flex items-center gap-1.5",
354
- children: [/* @__PURE__ */ U("span", {
352
+ children: [/* @__PURE__ */ W("span", {
355
353
  className: "text-sm font-mono",
356
354
  children: Z.network.serviceName
357
- }), /* @__PURE__ */ U(J, {
355
+ }), /* @__PURE__ */ W(J, {
358
356
  value: Z.network.serviceName,
359
357
  field: "serviceName",
360
358
  copiedField: A,
@@ -363,17 +361,17 @@ function Y() {
363
361
  })]
364
362
  })]
365
363
  }),
366
- Z.network?.internalUrl && /* @__PURE__ */ W("div", {
364
+ Z.network?.internalUrl && /* @__PURE__ */ G("div", {
367
365
  className: "flex items-center justify-between",
368
- children: [/* @__PURE__ */ U("span", {
366
+ children: [/* @__PURE__ */ W("span", {
369
367
  className: "text-sm text-text-secondary",
370
368
  children: l(O, "sandbox.detail.cards.kubernetes.internalUrl", "Internal URL")
371
- }), /* @__PURE__ */ W("div", {
369
+ }), /* @__PURE__ */ G("div", {
372
370
  className: "flex items-center gap-1.5",
373
- children: [/* @__PURE__ */ U("span", {
371
+ children: [/* @__PURE__ */ W("span", {
374
372
  className: "text-sm text-primary font-mono truncate max-w-48",
375
373
  children: Z.network.internalUrl
376
- }), /* @__PURE__ */ U(J, {
374
+ }), /* @__PURE__ */ W(J, {
377
375
  value: Z.network.internalUrl,
378
376
  field: "internalUrl",
379
377
  copiedField: A,
@@ -382,24 +380,24 @@ function Y() {
382
380
  })]
383
381
  })]
384
382
  }),
385
- Z.network?.containerUrls && typeof Z.network.containerUrls == "object" && Object.keys(Z.network.containerUrls).filter((e) => !e.includes(":")).length > 1 && /* @__PURE__ */ W("div", {
383
+ Z.network?.containerUrls && typeof Z.network.containerUrls == "object" && Object.keys(Z.network.containerUrls).filter((e) => !e.includes(":")).length > 1 && /* @__PURE__ */ G("div", {
386
384
  className: "mt-3 pt-3 border-t border-border-subtle/30",
387
- children: [/* @__PURE__ */ U("p", {
385
+ children: [/* @__PURE__ */ W("p", {
388
386
  className: "text-xs font-semibold text-text-secondary mb-2",
389
387
  children: l(O, "sandbox.detail.cards.kubernetes.containerEndpoints", "Container Endpoints")
390
- }), /* @__PURE__ */ U("div", {
388
+ }), /* @__PURE__ */ W("div", {
391
389
  className: "space-y-1.5",
392
- children: Object.entries(Z.network.containerUrls).reduce((e, [t, n]) => (t.includes(":") || e.push(/* @__PURE__ */ W("div", {
390
+ children: Object.entries(Z.network.containerUrls).reduce((e, [t, n]) => (t.includes(":") || e.push(/* @__PURE__ */ G("div", {
393
391
  className: "flex items-center justify-between",
394
- children: [/* @__PURE__ */ U("span", {
392
+ children: [/* @__PURE__ */ W("span", {
395
393
  className: "text-xs text-text-secondary font-mono",
396
394
  children: t
397
- }), /* @__PURE__ */ W("div", {
395
+ }), /* @__PURE__ */ G("div", {
398
396
  className: "flex items-center gap-1.5",
399
- children: [/* @__PURE__ */ U("span", {
397
+ children: [/* @__PURE__ */ W("span", {
400
398
  className: "text-xs text-primary font-mono truncate max-w-40",
401
399
  children: n
402
- }), /* @__PURE__ */ U(J, {
400
+ }), /* @__PURE__ */ W(J, {
403
401
  value: n,
404
402
  field: `container-${t}`,
405
403
  copiedField: A,
@@ -414,140 +412,140 @@ function Y() {
414
412
  })]
415
413
  })
416
414
  }),
417
- /* @__PURE__ */ U(s, {
415
+ /* @__PURE__ */ W(s, {
418
416
  treatment: "plain",
419
417
  className: "border-border-seam",
420
- children: /* @__PURE__ */ W("div", {
418
+ children: /* @__PURE__ */ G("div", {
421
419
  className: "p-5",
422
- children: [/* @__PURE__ */ W("h3", {
420
+ children: [/* @__PURE__ */ G("h3", {
423
421
  className: "font-semibold mb-4 flex items-center gap-2",
424
- children: [/* @__PURE__ */ U("div", {
422
+ children: [/* @__PURE__ */ W("div", {
425
423
  className: "p-1.5 rounded-lg bg-action-primary-bg/10",
426
- children: /* @__PURE__ */ U(se, {
424
+ children: /* @__PURE__ */ W(se, {
427
425
  size: 14,
428
426
  className: "text-primary"
429
427
  })
430
428
  }), l(O, "sandbox.detail.cards.lifecycle.title", "Lifecycle")]
431
- }), /* @__PURE__ */ W("div", {
429
+ }), /* @__PURE__ */ G("div", {
432
430
  className: "space-y-3",
433
431
  children: [
434
- /* @__PURE__ */ W("div", {
432
+ /* @__PURE__ */ G("div", {
435
433
  className: "flex items-center justify-between",
436
- children: [/* @__PURE__ */ U("span", {
434
+ children: [/* @__PURE__ */ W("span", {
437
435
  className: "text-sm text-text-secondary",
438
436
  children: l(O, "sandbox.detail.cards.lifecycle.ttl", "TTL")
439
- }), /* @__PURE__ */ U("span", {
437
+ }), /* @__PURE__ */ W("span", {
440
438
  className: "text-sm font-medium",
441
- children: K(Z.ttlSeconds)
439
+ children: pe(Z.ttlSeconds)
442
440
  })]
443
441
  }),
444
- Z.expiresAt && Ce && /* @__PURE__ */ W("div", {
442
+ Z.expiresAt && we && /* @__PURE__ */ G("div", {
445
443
  className: "flex items-center justify-between",
446
- children: [/* @__PURE__ */ U("span", {
444
+ children: [/* @__PURE__ */ W("span", {
447
445
  className: "text-sm text-text-secondary",
448
446
  children: l(O, "sandbox.detail.cards.lifecycle.expires", "Expires")
449
- }), /* @__PURE__ */ W(t, {
447
+ }), /* @__PURE__ */ G(t, {
450
448
  variant: "outline",
451
449
  className: "gap-1",
452
- children: [/* @__PURE__ */ U(R, { size: 12 }), pe(Z.expiresAt)]
450
+ children: [/* @__PURE__ */ W(z, { size: 12 }), me(Z.expiresAt)]
453
451
  })]
454
452
  }),
455
- /* @__PURE__ */ W("div", {
453
+ /* @__PURE__ */ G("div", {
456
454
  className: "flex items-center justify-between",
457
- children: [/* @__PURE__ */ U("span", {
455
+ children: [/* @__PURE__ */ W("span", {
458
456
  className: "text-sm text-text-secondary",
459
457
  children: l(O, "sandbox.detail.cards.lifecycle.created", "Created")
460
- }), /* @__PURE__ */ U("span", {
458
+ }), /* @__PURE__ */ W("span", {
461
459
  className: "text-sm",
462
- children: G(Z.createdAt)
460
+ children: K(Z.createdAt)
463
461
  })]
464
462
  }),
465
- /* @__PURE__ */ W("div", {
463
+ /* @__PURE__ */ G("div", {
466
464
  className: "flex items-center justify-between",
467
- children: [/* @__PURE__ */ U("span", {
465
+ children: [/* @__PURE__ */ W("span", {
468
466
  className: "text-sm text-text-secondary",
469
467
  children: l(O, "sandbox.detail.cards.lifecycle.updated", "Updated")
470
- }), /* @__PURE__ */ U("span", {
468
+ }), /* @__PURE__ */ W("span", {
471
469
  className: "text-sm",
472
- children: G(Z.updatedAt)
470
+ children: K(Z.updatedAt)
473
471
  })]
474
472
  }),
475
- Z.stoppedAt && /* @__PURE__ */ W("div", {
473
+ Z.stoppedAt && /* @__PURE__ */ G("div", {
476
474
  className: "flex items-center justify-between",
477
- children: [/* @__PURE__ */ U("span", {
475
+ children: [/* @__PURE__ */ W("span", {
478
476
  className: "text-sm text-text-secondary",
479
477
  children: l(O, "sandbox.detail.cards.lifecycle.stopped", "Stopped")
480
- }), /* @__PURE__ */ U("span", {
478
+ }), /* @__PURE__ */ W("span", {
481
479
  className: "text-sm",
482
- children: G(Z.stoppedAt)
480
+ children: K(Z.stoppedAt)
483
481
  })]
484
482
  })
485
483
  ]
486
484
  })]
487
485
  })
488
486
  }),
489
- /* @__PURE__ */ U(s, {
487
+ /* @__PURE__ */ W(s, {
490
488
  treatment: "plain",
491
489
  className: "border-border-seam",
492
- children: /* @__PURE__ */ W("div", {
490
+ children: /* @__PURE__ */ G("div", {
493
491
  className: "p-5",
494
- children: [/* @__PURE__ */ W("h3", {
492
+ children: [/* @__PURE__ */ G("h3", {
495
493
  className: "font-semibold mb-4 flex items-center gap-2",
496
- children: [/* @__PURE__ */ U("div", {
494
+ children: [/* @__PURE__ */ W("div", {
497
495
  className: "p-1.5 rounded-lg bg-action-primary-bg/10",
498
- children: /* @__PURE__ */ U(P, {
496
+ children: /* @__PURE__ */ W(P, {
499
497
  size: 14,
500
498
  className: "text-primary"
501
499
  })
502
500
  }), l(O, "sandbox.detail.cards.details.title", "Details")]
503
- }), /* @__PURE__ */ W("div", {
501
+ }), /* @__PURE__ */ G("div", {
504
502
  className: "space-y-3",
505
503
  children: [
506
- /* @__PURE__ */ W("div", {
504
+ /* @__PURE__ */ G("div", {
507
505
  className: "flex items-center justify-between",
508
- children: [/* @__PURE__ */ U("span", {
506
+ children: [/* @__PURE__ */ W("span", {
509
507
  className: "text-sm text-text-secondary",
510
508
  children: l(O, "sandbox.detail.cards.details.template", "Template")
511
- }), /* @__PURE__ */ U(f, {
509
+ }), /* @__PURE__ */ W(f, {
512
510
  type: Z.template,
513
511
  showLabel: !0
514
512
  })]
515
513
  }),
516
- /* @__PURE__ */ W("div", {
514
+ /* @__PURE__ */ G("div", {
517
515
  className: "flex items-center justify-between",
518
- children: [/* @__PURE__ */ U("span", {
516
+ children: [/* @__PURE__ */ W("span", {
519
517
  className: "text-sm text-text-secondary",
520
518
  children: l(O, "sandbox.detail.cards.details.mode", "Mode")
521
- }), /* @__PURE__ */ U(t, {
519
+ }), /* @__PURE__ */ W(t, {
522
520
  variant: "outline",
523
521
  className: "gap-1 text-xs font-mono",
524
- children: Z.mode === "JOB" ? /* @__PURE__ */ W(H, { children: [
525
- /* @__PURE__ */ U(de, { size: 12 }),
522
+ children: Z.mode === "JOB" ? /* @__PURE__ */ G(U, { children: [
523
+ /* @__PURE__ */ W(ue, { size: 12 }),
526
524
  " ",
527
525
  l(O, "sandbox.detail.cards.details.mode.job", "Job")
528
- ] }) : /* @__PURE__ */ W(H, { children: [
529
- /* @__PURE__ */ U(ce, { size: 12 }),
526
+ ] }) : /* @__PURE__ */ G(U, { children: [
527
+ /* @__PURE__ */ W(ce, { size: 12 }),
530
528
  " ",
531
529
  l(O, "sandbox.detail.cards.details.mode.deployment", "Deployment")
532
530
  ] })
533
531
  })]
534
532
  }),
535
- /* @__PURE__ */ W("div", {
533
+ /* @__PURE__ */ G("div", {
536
534
  className: "flex items-center justify-between",
537
- children: [/* @__PURE__ */ U("span", {
535
+ children: [/* @__PURE__ */ W("span", {
538
536
  className: "text-sm text-text-secondary",
539
537
  children: l(O, "sandbox.detail.cards.details.workspace", "Workspace")
540
- }), /* @__PURE__ */ U("span", {
538
+ }), /* @__PURE__ */ W("span", {
541
539
  className: "text-sm font-mono",
542
540
  children: Z.workspaceId
543
541
  })]
544
542
  }),
545
- /* @__PURE__ */ W("div", {
543
+ /* @__PURE__ */ G("div", {
546
544
  className: "flex items-center justify-between",
547
- children: [/* @__PURE__ */ U("span", {
545
+ children: [/* @__PURE__ */ W("span", {
548
546
  className: "text-sm text-text-secondary",
549
547
  children: l(O, "sandbox.detail.cards.details.createdBy", "Created By")
550
- }), /* @__PURE__ */ U("span", {
548
+ }), /* @__PURE__ */ W("span", {
551
549
  className: "text-sm",
552
550
  children: Z.createdBy
553
551
  })]
@@ -558,53 +556,53 @@ function Y() {
558
556
  })
559
557
  ]
560
558
  }),
561
- Z.containers && Z.containers.length > 0 && /* @__PURE__ */ U(s, {
559
+ Z.containers && Z.containers.length > 0 && /* @__PURE__ */ W(s, {
562
560
  treatment: "plain",
563
561
  className: "border-border-seam",
564
- children: /* @__PURE__ */ W("div", {
562
+ children: /* @__PURE__ */ G("div", {
565
563
  className: "p-5",
566
- children: [/* @__PURE__ */ W("h3", {
564
+ children: [/* @__PURE__ */ G("h3", {
567
565
  className: "font-semibold mb-4 flex items-center gap-2",
568
566
  children: [
569
- /* @__PURE__ */ U("div", {
567
+ /* @__PURE__ */ W("div", {
570
568
  className: "p-1.5 rounded-lg bg-action-primary-bg/10",
571
- children: /* @__PURE__ */ U(le, {
569
+ children: /* @__PURE__ */ W(le, {
572
570
  size: 14,
573
571
  className: "text-primary"
574
572
  })
575
573
  }),
576
574
  l(O, "sandbox.detail.cards.containers.title", "Containers"),
577
- /* @__PURE__ */ U(t, {
575
+ /* @__PURE__ */ W(t, {
578
576
  variant: "secondary",
579
577
  className: "ml-1",
580
578
  children: Z.containers.length
581
579
  })
582
580
  ]
583
- }), /* @__PURE__ */ U(me, {
581
+ }), /* @__PURE__ */ W(he, {
584
582
  enabled: Z.containers.length > 4,
585
583
  collapsedHeight: 220,
586
- children: /* @__PURE__ */ U("div", {
584
+ children: /* @__PURE__ */ W("div", {
587
585
  className: "space-y-3",
588
586
  children: Z.containers.map((e, n) => {
589
587
  let r = Z.containerStatuses?.find((t) => t.name === e.name);
590
- return /* @__PURE__ */ W("div", {
588
+ return /* @__PURE__ */ G("div", {
591
589
  className: "flex items-center justify-between p-3 rounded-lg border border-border-seam hover:bg-bg-sunken/30 transition-colors",
592
- children: [/* @__PURE__ */ W("div", {
590
+ children: [/* @__PURE__ */ G("div", {
593
591
  className: "flex items-center gap-3 min-w-0",
594
- children: [/* @__PURE__ */ U("div", { className: `w-2.5 h-2.5 rounded-full flex-shrink-0 ${r?.ready ? "bg-status-success-text" : r ? "bg-status-warning-text animate-pulse" : "bg-text-tertiary"}` }), /* @__PURE__ */ W("div", {
592
+ children: [/* @__PURE__ */ W("div", { className: `w-2.5 h-2.5 rounded-full flex-shrink-0 ${r?.ready ? "bg-status-success-text motion-safe:animate-vc-glow-pulse" : r ? "bg-status-warning-text animate-pulse" : "bg-text-tertiary"}` }), /* @__PURE__ */ G("div", {
595
593
  className: "min-w-0",
596
- children: [/* @__PURE__ */ U("p", {
594
+ children: [/* @__PURE__ */ W("p", {
597
595
  className: "text-sm font-medium",
598
596
  children: e.name
599
- }), /* @__PURE__ */ U("p", {
597
+ }), /* @__PURE__ */ W("p", {
600
598
  className: "text-xs text-text-secondary font-mono truncate",
601
599
  children: e.image
602
600
  })]
603
601
  })]
604
- }), /* @__PURE__ */ W("div", {
602
+ }), /* @__PURE__ */ G("div", {
605
603
  className: "flex items-center gap-2 flex-shrink-0",
606
604
  children: [
607
- e.ports?.map((e) => /* @__PURE__ */ W(t, {
605
+ e.ports?.map((e) => /* @__PURE__ */ G(t, {
608
606
  variant: "outline",
609
607
  className: "text-xs font-mono",
610
608
  children: [
@@ -613,12 +611,12 @@ function Y() {
613
611
  e.name ? ` (${e.name})` : ""
614
612
  ]
615
613
  }, e.containerPort)),
616
- r && /* @__PURE__ */ U(t, {
614
+ r && /* @__PURE__ */ W(t, {
617
615
  variant: r.ready ? "default" : "secondary",
618
616
  className: `text-xs ${r.ready ? "bg-status-success-bg-subtle text-status-success-text" : ""}`,
619
617
  children: r.ready ? l(O, "sandbox.detail.cards.containers.status.ready", "Ready") : l(O, "sandbox.detail.cards.containers.status.notReady", "Not Ready")
620
618
  }),
621
- r?.restartCount !== void 0 && r.restartCount > 0 && /* @__PURE__ */ W(t, {
619
+ r?.restartCount !== void 0 && r.restartCount > 0 && /* @__PURE__ */ G(t, {
622
620
  variant: "outline",
623
621
  className: "text-xs text-status-warning-text",
624
622
  children: [
@@ -635,59 +633,59 @@ function Y() {
635
633
  })]
636
634
  })
637
635
  }),
638
- Z.storage && Z.storage.mode !== "NONE" && /* @__PURE__ */ U(s, {
636
+ Z.storage && Z.storage.mode !== "NONE" && /* @__PURE__ */ W(s, {
639
637
  treatment: "plain",
640
638
  className: "border-border-seam",
641
- children: /* @__PURE__ */ W("div", {
639
+ children: /* @__PURE__ */ G("div", {
642
640
  className: "p-5",
643
- children: [/* @__PURE__ */ W("h3", {
641
+ children: [/* @__PURE__ */ G("h3", {
644
642
  className: "font-semibold mb-4 flex items-center gap-2",
645
- children: [/* @__PURE__ */ U("div", {
643
+ children: [/* @__PURE__ */ W("div", {
646
644
  className: "p-1.5 rounded-lg bg-action-primary-bg/10",
647
- children: /* @__PURE__ */ U(M, {
645
+ children: /* @__PURE__ */ W(M, {
648
646
  size: 14,
649
647
  className: "text-primary"
650
648
  })
651
649
  }), l(O, "sandbox.detail.cards.storage.title", "Storage")]
652
- }), /* @__PURE__ */ W("div", {
650
+ }), /* @__PURE__ */ G("div", {
653
651
  className: "space-y-3",
654
652
  children: [
655
- /* @__PURE__ */ W("div", {
653
+ /* @__PURE__ */ G("div", {
656
654
  className: "flex items-center justify-between",
657
- children: [/* @__PURE__ */ U("span", {
655
+ children: [/* @__PURE__ */ W("span", {
658
656
  className: "text-sm text-text-secondary",
659
657
  children: l(O, "sandbox.detail.cards.storage.mode", "Mode")
660
- }), /* @__PURE__ */ U(t, {
658
+ }), /* @__PURE__ */ W(t, {
661
659
  variant: "outline",
662
660
  children: Z.storage.mode === "EPHEMERAL" ? l(O, "sandbox.detail.cards.storage.ephemeral", "Ephemeral") : l(O, "sandbox.detail.cards.storage.persistent", "Persistent")
663
661
  })]
664
662
  }),
665
- Z.storage.sizeGi && /* @__PURE__ */ W("div", {
663
+ Z.storage.sizeGi && /* @__PURE__ */ G("div", {
666
664
  className: "flex items-center justify-between",
667
- children: [/* @__PURE__ */ U("span", {
665
+ children: [/* @__PURE__ */ W("span", {
668
666
  className: "text-sm text-text-secondary",
669
667
  children: l(O, "sandbox.detail.cards.storage.size", "Size")
670
- }), /* @__PURE__ */ W("span", {
668
+ }), /* @__PURE__ */ G("span", {
671
669
  className: "text-sm font-medium",
672
670
  children: [Z.storage.sizeGi, " GiB"]
673
671
  })]
674
672
  }),
675
- Z.storage.mountPath && /* @__PURE__ */ W("div", {
673
+ Z.storage.mountPath && /* @__PURE__ */ G("div", {
676
674
  className: "flex items-center justify-between",
677
- children: [/* @__PURE__ */ U("span", {
675
+ children: [/* @__PURE__ */ W("span", {
678
676
  className: "text-sm text-text-secondary",
679
677
  children: l(O, "sandbox.detail.cards.storage.mountPath", "Mount Path")
680
- }), /* @__PURE__ */ U("span", {
678
+ }), /* @__PURE__ */ W("span", {
681
679
  className: "text-sm font-mono",
682
680
  children: Z.storage.mountPath
683
681
  })]
684
682
  }),
685
- /* @__PURE__ */ W("div", {
683
+ /* @__PURE__ */ G("div", {
686
684
  className: "flex items-center justify-between",
687
- children: [/* @__PURE__ */ U("span", {
685
+ children: [/* @__PURE__ */ W("span", {
688
686
  className: "text-sm text-text-secondary",
689
687
  children: l(O, "sandbox.detail.cards.storage.retainOnDelete", "Retain on Delete")
690
- }), /* @__PURE__ */ U(t, {
688
+ }), /* @__PURE__ */ W(t, {
691
689
  variant: Z.storage.retainOnDelete ? "default" : "secondary",
692
690
  children: Z.storage.retainOnDelete ? l(O, "sandbox.detail.cards.storage.retainYes", "Yes") : l(O, "sandbox.detail.cards.storage.retainNo", "No")
693
691
  })]
@@ -696,14 +694,14 @@ function Y() {
696
694
  })]
697
695
  })
698
696
  }),
699
- Z.errorMessage && /* @__PURE__ */ U(i, {
697
+ Z.errorMessage && /* @__PURE__ */ W(i, {
700
698
  className: "border-status-error-border/50 bg-status-error-bg/5",
701
- children: /* @__PURE__ */ W(a, {
699
+ children: /* @__PURE__ */ G(a, {
702
700
  className: "p-5",
703
- children: [/* @__PURE__ */ W("h3", {
701
+ children: [/* @__PURE__ */ G("h3", {
704
702
  className: "font-semibold text-status-error-text mb-2 flex items-center gap-2",
705
- children: [/* @__PURE__ */ U(ae, { size: 18 }), l(O, "sandbox.detail.cards.errorDetails.title", "Error Details")]
706
- }), /* @__PURE__ */ U("p", {
703
+ children: [/* @__PURE__ */ W(ae, { size: 18 }), l(O, "sandbox.detail.cards.errorDetails.title", "Error Details")]
704
+ }), /* @__PURE__ */ W("p", {
707
705
  className: "text-sm text-status-error-text/80 font-mono bg-status-error-bg/5 rounded-lg p-3",
708
706
  children: Z.errorMessage
709
707
  })]
@@ -711,12 +709,12 @@ function Y() {
711
709
  }),
712
710
  (() => {
713
711
  let e = Z.metadata ?? null, t = e?.devPortalApplicationId ?? e?.appId, n = e?.clientId, r = e?.clientSecretRevealOnce;
714
- return !t && !n ? null : /* @__PURE__ */ U(s, {
712
+ return !t && !n ? null : /* @__PURE__ */ W(s, {
715
713
  treatment: "plain",
716
714
  className: "border-border-seam",
717
- children: /* @__PURE__ */ U("div", {
715
+ children: /* @__PURE__ */ W("div", {
718
716
  className: "p-5",
719
- children: /* @__PURE__ */ U(re, {
717
+ children: /* @__PURE__ */ W(re, {
720
718
  appId: t,
721
719
  clientId: n,
722
720
  clientSecret: r
@@ -724,41 +722,41 @@ function Y() {
724
722
  })
725
723
  });
726
724
  })(),
727
- /* @__PURE__ */ U(s, {
725
+ /* @__PURE__ */ W(s, {
728
726
  treatment: "plain",
729
727
  className: "border-border-seam",
730
- children: /* @__PURE__ */ W("div", {
728
+ children: /* @__PURE__ */ G("div", {
731
729
  className: "p-5",
732
- children: [/* @__PURE__ */ U("h3", {
730
+ children: [/* @__PURE__ */ W("h3", {
733
731
  className: "mb-3 text-sm font-semibold text-text-primary",
734
732
  children: l(O, "sandbox.detail.cards.activity.title", "Activity")
735
- }), /* @__PURE__ */ U(T, {
733
+ }), /* @__PURE__ */ W(T, {
736
734
  sandboxId: Z.id,
737
735
  workspaceId: D ?? ""
738
736
  })]
739
737
  })
740
738
  }),
741
- /* @__PURE__ */ U(he, {
739
+ /* @__PURE__ */ W(ge, {
742
740
  sandbox: Z,
743
741
  workspaceId: D ?? ""
744
742
  }),
745
- /* @__PURE__ */ U(ie, {
743
+ /* @__PURE__ */ W(ie, {
746
744
  sandbox: Z,
747
745
  workspaceId: D ?? ""
748
746
  }),
749
- Z.expiresAt && /* @__PURE__ */ U(ne, {
747
+ Z.expiresAt && /* @__PURE__ */ W(ne, {
750
748
  isOpen: N,
751
- onClose: () => L(!1),
749
+ onClose: () => R(!1),
752
750
  currentExpiresAt: Z.expiresAt,
753
751
  isLoading: q,
754
752
  onExtend: (e) => {
755
- Y(!0), be({ variables: {
753
+ Y(!0), xe({ variables: {
756
754
  context: { workspaceId: D },
757
755
  id: Z.id,
758
756
  additionalSeconds: e
759
757
  } }).then((t) => {
760
758
  let n = t.data?.extendSandboxTTL;
761
- n && xe.sandboxExtended({
759
+ n && Se.sandboxExtended({
762
760
  sandboxId: n.id,
763
761
  addedSeconds: e,
764
762
  newExpiresAt: n.expiresAt
@@ -766,15 +764,15 @@ function Y() {
766
764
  }).catch((e) => {
767
765
  console.error("Failed to extend TTL:", e);
768
766
  }).finally(() => {
769
- Y(!1), L(!1);
767
+ Y(!1), R(!1);
770
768
  });
771
769
  }
772
770
  })
773
771
  ]
774
772
  });
775
773
  }
776
- function he({ sandbox: e, workspaceId: t }) {
777
- let { t: r } = V(), [i, a] = k(e.containers?.[0]?.name ?? ""), [o, c] = k(100), u = O(null), [d, { data: f, loading: p, error: m }] = v(), h = e.status === "RUNNING" || e.status === "PROVISIONING", g = E(() => {
774
+ function ge({ sandbox: e, workspaceId: t }) {
775
+ let { t: r } = H(), [i, a] = k(e.containers?.[0]?.name ?? ""), [o, c] = k(100), u = O(null), [d, { data: f, loading: p, error: m }] = v(), h = e.status === "RUNNING" || e.status === "PROVISIONING", g = E(() => {
778
776
  !i || !h || d({ variables: {
779
777
  context: { workspaceId: t },
780
778
  id: e.id,
@@ -799,68 +797,68 @@ function he({ sandbox: e, workspaceId: t }) {
799
797
  u.current?.scrollIntoView({ behavior: "smooth" });
800
798
  }, [f]);
801
799
  let _ = f?.getSandboxLogs?.split("\n") ?? [];
802
- return /* @__PURE__ */ U(s, {
800
+ return /* @__PURE__ */ W(s, {
803
801
  treatment: "plain",
804
802
  className: "border-border-seam",
805
- children: /* @__PURE__ */ W("div", {
803
+ children: /* @__PURE__ */ G("div", {
806
804
  className: "p-5",
807
- children: [/* @__PURE__ */ W("div", {
805
+ children: [/* @__PURE__ */ G("div", {
808
806
  className: "flex items-center justify-between mb-4",
809
- children: [/* @__PURE__ */ W("h3", {
807
+ children: [/* @__PURE__ */ G("h3", {
810
808
  className: "font-semibold flex items-center gap-2",
811
- children: [/* @__PURE__ */ U("div", {
809
+ children: [/* @__PURE__ */ W("div", {
812
810
  className: "p-1.5 rounded-lg bg-action-primary-bg/10",
813
- children: /* @__PURE__ */ U(L, {
811
+ children: /* @__PURE__ */ W(R, {
814
812
  size: 14,
815
813
  className: "text-primary"
816
814
  })
817
815
  }), l(r, "sandbox.detail.logs.title", "Logs")]
818
- }), /* @__PURE__ */ W("div", {
816
+ }), /* @__PURE__ */ G("div", {
819
817
  className: "flex items-center gap-2",
820
818
  children: [
821
- e.containers && e.containers.length > 1 && /* @__PURE__ */ U("select", {
819
+ e.containers && e.containers.length > 1 && /* @__PURE__ */ W("select", {
822
820
  value: i,
823
821
  onChange: (e) => a(e.target.value),
824
822
  className: "px-2 py-1 text-xs border rounded-lg bg-bg-surface font-mono",
825
- children: e.containers.map((e) => /* @__PURE__ */ U("option", {
823
+ children: e.containers.map((e) => /* @__PURE__ */ W("option", {
826
824
  value: e.name,
827
825
  children: e.name
828
826
  }, e.name))
829
827
  }),
830
- /* @__PURE__ */ W("select", {
828
+ /* @__PURE__ */ G("select", {
831
829
  value: o,
832
830
  onChange: (e) => c(Number(e.target.value)),
833
831
  className: "px-2 py-1 text-xs border rounded-lg bg-bg-surface font-mono",
834
832
  children: [
835
- /* @__PURE__ */ U("option", {
833
+ /* @__PURE__ */ W("option", {
836
834
  value: 50,
837
835
  children: l(r, "sandbox.detail.logs.tailLines.50", "50 lines")
838
836
  }),
839
- /* @__PURE__ */ U("option", {
837
+ /* @__PURE__ */ W("option", {
840
838
  value: 100,
841
839
  children: l(r, "sandbox.detail.logs.tailLines.100", "100 lines")
842
840
  }),
843
- /* @__PURE__ */ U("option", {
841
+ /* @__PURE__ */ W("option", {
844
842
  value: 500,
845
843
  children: l(r, "sandbox.detail.logs.tailLines.500", "500 lines")
846
844
  }),
847
- /* @__PURE__ */ U("option", {
845
+ /* @__PURE__ */ W("option", {
848
846
  value: 1e3,
849
847
  children: l(r, "sandbox.detail.logs.tailLines.1000", "1000 lines")
850
848
  })
851
849
  ]
852
850
  }),
853
- /* @__PURE__ */ W(n, {
851
+ /* @__PURE__ */ G(n, {
854
852
  variant: "ghost",
855
853
  size: "sm",
856
854
  onClick: g,
857
855
  disabled: !h || p,
858
- children: [/* @__PURE__ */ U(F, {
856
+ children: [/* @__PURE__ */ W(I, {
859
857
  size: 14,
860
858
  className: p ? "animate-spin" : ""
861
859
  }), l(r, "sandbox.detail.logs.refresh", "Refresh")]
862
860
  }),
863
- _.length > 0 && /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(n, {
861
+ _.length > 0 && /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W(n, {
864
862
  variant: "ghost",
865
863
  size: "sm",
866
864
  onClick: () => {
@@ -869,8 +867,8 @@ function he({ sandbox: e, workspaceId: t }) {
869
867
  });
870
868
  },
871
869
  title: l(r, "sandbox.detail.logs.copy.title", "Copy logs to clipboard"),
872
- children: /* @__PURE__ */ U(j, { size: 14 })
873
- }), /* @__PURE__ */ U(n, {
870
+ children: /* @__PURE__ */ W(j, { size: 14 })
871
+ }), /* @__PURE__ */ W(n, {
874
872
  variant: "ghost",
875
873
  size: "sm",
876
874
  onClick: () => {
@@ -878,33 +876,33 @@ function he({ sandbox: e, workspaceId: t }) {
878
876
  r.href = n, r.download = `sandbox-${e.name}-logs.txt`, r.click(), URL.revokeObjectURL(n);
879
877
  },
880
878
  title: l(r, "sandbox.detail.logs.download.title", "Download logs"),
881
- children: /* @__PURE__ */ U(N, { size: 14 })
879
+ children: /* @__PURE__ */ W(N, { size: 14 })
882
880
  })] })
883
881
  ]
884
882
  })]
885
- }), /* @__PURE__ */ W("div", {
883
+ }), /* @__PURE__ */ G("div", {
886
884
  className: "bg-zinc-950 text-zinc-300 rounded-lg p-4 font-mono text-xs leading-relaxed min-h-[200px] max-h-[500px] overflow-y-auto",
887
885
  children: [
888
- !h && /* @__PURE__ */ U("p", {
886
+ !h && /* @__PURE__ */ W("p", {
889
887
  className: "text-zinc-500",
890
888
  children: l(r, "sandbox.detail.logs.unavailable", "Logs are available when the sandbox is running.")
891
889
  }),
892
- p && /* @__PURE__ */ U("p", {
890
+ p && /* @__PURE__ */ W("p", {
893
891
  className: "text-zinc-500 animate-pulse",
894
892
  children: l(r, "sandbox.detail.logs.fetching", "Fetching logs...")
895
893
  }),
896
- m && /* @__PURE__ */ U("p", {
894
+ m && /* @__PURE__ */ W("p", {
897
895
  className: "text-status-error-text",
898
896
  children: l(r, "sandbox.detail.logs.fetchError", "Failed to fetch logs: {message}", { message: m.message })
899
897
  }),
900
- _.length > 0 && !p ? _.map((e, t) => /* @__PURE__ */ U("p", {
898
+ _.length > 0 && !p ? _.map((e, t) => /* @__PURE__ */ W("p", {
901
899
  className: e.toLowerCase().includes("error") ? "text-status-error-text" : e.toLowerCase().includes("warn") ? "text-status-warning-text" : "text-zinc-300",
902
900
  children: e
903
- }, `${t}:${e}`)) : !p && h && !m && /* @__PURE__ */ U("p", {
901
+ }, `${t}:${e}`)) : !p && h && !m && /* @__PURE__ */ W("p", {
904
902
  className: "text-zinc-500",
905
903
  children: l(r, "sandbox.detail.logs.empty", "No logs yet. Click Refresh to fetch.")
906
904
  }),
907
- /* @__PURE__ */ U("div", { ref: u })
905
+ /* @__PURE__ */ W("div", { ref: u })
908
906
  ]
909
907
  })]
910
908
  })