@burdenoff/microfe-sandbox 2026.1101.2 → 2026.1109.1

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