@burdenoff/microfe-sandbox 2026.1101.2 → 2026.1113.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,28 +1,28 @@
1
- import { useSandbox as e } from "../providers/SandboxProvider.js";
2
- import { joinPath as t } from "../utils/navigation.js";
3
- import { Badge as n, Button as r, CTAOverflowMenu as i, Card as a, CardContent as o, Checkbox as ee, GlassCard as te, Input as ne, Select as re, SelectContent as ie, SelectItem as s, SelectTrigger as ae, SelectValue as oe, Skeleton as c } from "../components/ui.js";
4
- import { cn as l } from "../utils/cn.js";
5
- import { tWithFallback as u } from "../utils/i18n.js";
6
- import { StatusBadge as se } from "../components/StatusBadge.js";
7
- import { ResourceDisplay as ce } from "../components/ResourceDisplay.js";
8
- import { SandboxTypeIcon as le } from "../components/SandboxTypeIcon.js";
9
- import { CountdownTimer as ue } from "../components/CountdownTimer.js";
10
- import { useSandboxStore as de } from "../store/sandboxStore.js";
1
+ import { Badge as e, Button as t, CTAOverflowMenu as n, Card as r, CardContent as i, Checkbox as a, GlassCard as ee, Input as te, Select as ne, SelectContent as re, SelectItem as o, SelectTrigger as ie, SelectValue as ae, Skeleton as s } from "../components/ui.js";
2
+ import { cn as c } from "../utils/cn.js";
3
+ import { StatusBadge as oe } from "../components/StatusBadge.js";
4
+ import { ResourceDisplay as se } from "../components/ResourceDisplay.js";
5
+ import { SandboxTypeIcon as ce } from "../components/SandboxTypeIcon.js";
6
+ import { CountdownTimer as le } from "../components/CountdownTimer.js";
7
+ import { useSandboxStore as ue } from "../store/sandboxStore.js";
8
+ import { useSandbox as de } from "../providers/SandboxProvider.js";
11
9
  import { useSandboxEvents as fe } from "../utils/sandboxEvents.js";
12
- import { PageLayout as pe } from "../components/PageLayout.js";
13
- import { SandboxUsageBanner as me } from "../components/SandboxUsageBanner.js";
14
- import { ExportSandboxesDialog as he } from "../components/ExportSandboxesDialog.js";
15
- import { ListSandboxesDocument as ge, useDeleteSandboxMutation as _e, useExtendSandboxTtlMutation as ve, useListSandboxesQuery as ye, useOnSandboxesChangedSubscription as be, useStopSandboxMutation as xe } from "../../generated/wspace-operations.js";
16
- import { SandboxKind as d } from "../../generated/wspace-types.js";
17
- import { nativeImpact as Se, nativeNotify as Ce } from "../../utils/nativeBridge.js";
18
- import { useCallback as f, useMemo as p, useState as m } from "react";
19
- import { PermissionGate as we } from "@burdenoff/fe-libs/shared/components";
20
- import { AlertCircle as Te, Box as Ee, CheckCircle2 as De, ChevronLeft as Oe, ChevronRight as ke, Container as Ae, Database as je, Download as Me, Filter as Ne, Loader2 as h, Plus as Pe, Search as Fe, StopCircle as Ie, Timer as Le, Trash2 as g, X as _ } from "lucide-react";
10
+ import { joinPath as pe } from "../utils/navigation.js";
11
+ import { PageLayout as me } from "../components/PageLayout.js";
12
+ import { tWithFallback as l } from "../utils/i18n.js";
13
+ import { SandboxUsageBanner as he } from "../components/SandboxUsageBanner.js";
14
+ import { ExportSandboxesDialog as ge } from "../components/ExportSandboxesDialog.js";
15
+ import { ListSandboxesDocument as _e, useDeleteSandboxMutation as ve, useExtendSandboxTtlMutation as ye, useListSandboxesQuery as be, useOnSandboxesChangedSubscription as xe, useStopSandboxMutation as Se } from "../../generated/wspace-operations.js";
16
+ import { SandboxKind as u } from "../../generated/wspace-types.js";
17
+ import { nativeImpact as Ce, nativeNotify as we } from "../../utils/nativeBridge.js";
18
+ import { useCallback as d, useMemo as f, useState as p } from "react";
19
+ import { PermissionGate as Te } from "@burdenoff/fe-libs/shared/components";
20
+ import { AlertCircle as Ee, Box as De, CheckCircle2 as Oe, ChevronLeft as ke, ChevronRight as Ae, Container as je, Database as Me, Download as Ne, Filter as Pe, Loader2 as m, Plus as Fe, Search as Ie, StopCircle as h, Timer as Le, Trash2 as g, X as _ } from "lucide-react";
21
21
  import { useApolloClient as Re } from "@apollo/client/react";
22
22
  import { useI18n as ze } from "@burdenoff/fe-libs/shared/providers/shell";
23
23
  import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
24
24
  import { AlertDialog as Be, AlertDialogAction as Ve, AlertDialogCancel as He, AlertDialogContent as Ue, AlertDialogDescription as We, AlertDialogFooter as Ge, AlertDialogHeader as Ke, AlertDialogTitle as qe, AuroraBackground as Je, EmphasisPanel as Ye, GradientText as Xe, IllustratedEmptyState as Ze, PagePurpose as Qe } from "@burdenoff/fe-libs/ui";
25
- //#region src/sandbox/pages/SandboxListPage.tsx
25
+ // src/sandbox/pages/SandboxListPage.tsx
26
26
  var x = ["RUNNING"], S = ["RUNNING", "PENDING"], C = [
27
27
  "STOPPED",
28
28
  "ERROR",
@@ -41,95 +41,95 @@ function et(e) {
41
41
  ...e.search?.trim() ? { search: e.search.trim() } : {},
42
42
  ...e.template && e.template !== "all" ? { template: e.template } : {},
43
43
  ...e.status && e.status !== "all" ? { status: e.status } : {},
44
- kind: d.User
44
+ kind: u.User
45
45
  };
46
46
  }
47
- function T(e) {
47
+ function tt(e) {
48
48
  return x.includes(e.status);
49
49
  }
50
- function tt(e) {
50
+ function nt(e) {
51
51
  return S.includes(e.status);
52
52
  }
53
- function nt(e) {
53
+ function rt(e) {
54
54
  return C.includes(e.status);
55
55
  }
56
- function E(e, t) {
56
+ function T(e, t) {
57
57
  return e instanceof Error && e.message.trim() ? e.message : t;
58
58
  }
59
- function rt(e, t, n, r) {
59
+ function it(e, t, n, r) {
60
60
  let i = [`${e} ${t} sandbox${t === 1 ? "" : "es"}`];
61
61
  return n > 0 && i.push(`${n} failed`), r > 0 && i.push(`${r} skipped`), i.join(" • ");
62
62
  }
63
- async function it(e, t, n = w) {
63
+ async function at(e, t, n = w) {
64
64
  let r = [];
65
65
  for (let i = 0; i < e.length; i += n) {
66
- let a = e.slice(i, i + n), o = await Promise.allSettled(a.map(t));
67
- r.push(...o);
66
+ let a = e.slice(i, i + n), ee = await Promise.allSettled(a.map(t));
67
+ r.push(...ee);
68
68
  }
69
69
  return r;
70
70
  }
71
- function D() {
72
- let { basePath: d = "/", navigate: x } = e(), { sandboxFilter: S, updateFilter: C, resetFilter: w } = de(), D = Re(), { t: O } = ze(), [k, at] = m(!1), [A, j] = m(1), [M, N] = m(/* @__PURE__ */ new Map()), [P, F] = m(null), [I, L] = m(null), [ot, R] = m(null), { workspaceId: z } = e(), B = et(S), { data: st, loading: ct, refetch: V } = ye({
71
+ function E() {
72
+ let { basePath: u = "/", navigate: x } = de(), { sandboxFilter: S, updateFilter: C, resetFilter: w } = ue(), E = Re(), { t: D } = ze(), [O, ot] = p(!1), [k, A] = p(1), [j, M] = p(/* @__PURE__ */ new Map()), [N, P] = p(null), [F, I] = p(null), [st, L] = p(null), { workspaceId: R } = de(), z = et(S), { data: ct, loading: lt, refetch: B } = be({
73
73
  variables: {
74
- context: { workspaceId: z },
75
- filter: B,
74
+ context: { workspaceId: R },
75
+ filter: z,
76
76
  pagination: {
77
- page: A,
77
+ page: k,
78
78
  limit: 20
79
79
  }
80
80
  },
81
- skip: !z
82
- }), [H] = xe(), [U] = _e(), [lt] = ve(), ut = fe(), [dt, ft] = m(!1);
83
- be({
84
- variables: { workspaceId: z },
85
- skip: !z,
81
+ skip: !R
82
+ }), [V] = Se(), [H] = ve(), [ut] = ye(), dt = fe(), [ft, pt] = p(!1);
83
+ xe({
84
+ variables: { workspaceId: R },
85
+ skip: !R,
86
86
  onData: ({ data: e }) => {
87
87
  let t = e.data?.onSandboxesChanged;
88
- t && (t.changeType === "CREATED" || t.changeType === "DELETED") && V();
88
+ t && (t.changeType === "CREATED" || t.changeType === "DELETED") && B();
89
89
  }
90
90
  });
91
- let pt = st?.listSandboxes?.items ?? [], W = st?.listSandboxes?.total ?? 0, mt = ct, ht = pt, G = Math.ceil(W / 20), K = ht, q = S.search || S.template && S.template !== "all" || S.status && S.status !== "all", J = pt.filter((e) => e.status === "RUNNING").length, gt = W, _t = p(() => Array.from(M.keys()), [M]), Y = p(() => Array.from(M.values()), [M]), X = p(() => K.filter((e) => M.has(e.id)).length, [K, M]), Z = p(() => Y.filter(T), [Y]), Q = p(() => Y.filter(nt), [Y]), vt = _t.length > 0, yt = K.length > 0 && X === K.length, bt = X > 0 && X < K.length, $ = P !== null, xt = P === "select-all", St = P === "stop", Ct = P === "delete", wt = f((e) => {
92
- C({ search: e }), j(1);
93
- }, [C]), Tt = f(() => {
94
- w(), j(1);
95
- }, [w]), Et = () => {
96
- x?.(t(d, "new"));
91
+ let mt = ct?.listSandboxes?.items ?? [], U = ct?.listSandboxes?.total ?? 0, ht = lt, gt = mt, W = Math.ceil(U / 20), G = gt, K = S.search || S.template && S.template !== "all" || S.status && S.status !== "all", q = mt.filter((e) => e.status === "RUNNING").length, _t = U, vt = f(() => Array.from(j.keys()), [j]), J = f(() => Array.from(j.values()), [j]), Y = f(() => G.filter((e) => j.has(e.id)).length, [G, j]), X = f(() => J.filter(tt), [J]), Z = f(() => J.filter(rt), [J]), yt = vt.length > 0, bt = G.length > 0 && Y === G.length, xt = Y > 0 && Y < G.length, Q = N !== null, St = N === "select-all", Ct = N === "stop", wt = N === "delete", Tt = d((e) => {
92
+ C({ search: e }), A(1);
93
+ }, [C]), Et = d(() => {
94
+ w(), A(1);
95
+ }, [w]), $ = () => {
96
+ x?.(pe(u, "new"));
97
97
  }, Dt = (e) => {
98
- x?.(t(d, e));
99
- }, Ot = f((e, t) => {
100
- N((n) => {
98
+ x?.(pe(u, e));
99
+ }, Ot = d((e, t) => {
100
+ M((n) => {
101
101
  let r = new Map(n);
102
102
  return t ? r.set(e.id, e) : r.delete(e.id), r;
103
103
  });
104
- }, []), kt = f((e) => {
105
- N((t) => {
104
+ }, []), kt = d((e) => {
105
+ M((t) => {
106
106
  let n = new Map(t);
107
- for (let t of K) e ? n.set(t.id, t) : n.delete(t.id);
107
+ for (let t of G) e ? n.set(t.id, t) : n.delete(t.id);
108
108
  return n;
109
109
  });
110
- }, [K]), At = f(() => {
111
- N(/* @__PURE__ */ new Map());
112
- }, []), jt = f((e) => {
113
- N((t) => {
110
+ }, [G]), At = d(() => {
111
+ M(/* @__PURE__ */ new Map());
112
+ }, []), jt = d((e) => {
113
+ M((t) => {
114
114
  if (!t.has(e)) return t;
115
115
  let n = new Map(t);
116
116
  return n.delete(e), n;
117
117
  });
118
- }, []), Mt = f((e) => {
119
- N((t) => {
118
+ }, []), Mt = d((e) => {
119
+ M((t) => {
120
120
  if (!t.has(e.id)) return t;
121
121
  let n = new Map(t);
122
122
  return n.set(e.id, e), n;
123
123
  });
124
- }, []), Nt = f(async () => {
125
- if (!z) return [];
124
+ }, []), Nt = d(async () => {
125
+ if (!R) return [];
126
126
  let e = [], t = 1;
127
127
  for (;;) {
128
- let n = (await D.query({
129
- query: ge,
128
+ let n = (await E.query({
129
+ query: _e,
130
130
  variables: {
131
- context: { workspaceId: z },
132
- filter: B,
131
+ context: { workspaceId: R },
132
+ filter: z,
133
133
  pagination: {
134
134
  page: t,
135
135
  limit: 100
@@ -142,13 +142,13 @@ function D() {
142
142
  }
143
143
  return e;
144
144
  }, [
145
- D,
146
- B,
147
- z
148
- ]), Pt = f(async (e) => {
145
+ E,
146
+ z,
147
+ R
148
+ ]), Pt = d(async (e) => {
149
149
  try {
150
- let t = (await H({ variables: {
151
- context: { workspaceId: z },
150
+ let t = (await V({ variables: {
151
+ context: { workspaceId: R },
152
152
  id: e.id
153
153
  } })).data?.stopSandbox;
154
154
  if (!t) throw Error(`Failed to stop sandbox "${e.name}".`);
@@ -156,173 +156,173 @@ function D() {
156
156
  ...e,
157
157
  status: t.status,
158
158
  stoppedAt: t.stoppedAt ?? e.stoppedAt
159
- }), await V();
159
+ }), await B();
160
160
  } catch (t) {
161
- L({
161
+ I({
162
162
  kind: "error",
163
- message: E(t, `Failed to stop sandbox "${e.name}".`)
163
+ message: T(t, `Failed to stop sandbox "${e.name}".`)
164
164
  });
165
165
  }
166
166
  }, [
167
+ B,
167
168
  V,
168
- H,
169
169
  Mt,
170
- z
171
- ]), Ft = f(async (e) => {
172
- Se("medium");
170
+ R
171
+ ]), Ft = d(async (e) => {
172
+ Ce("medium");
173
173
  try {
174
- if (!(await U({ variables: {
175
- context: { workspaceId: z },
174
+ if (!(await H({ variables: {
175
+ context: { workspaceId: R },
176
176
  id: e.id
177
177
  } })).data?.deleteSandbox) throw Error(`Failed to delete sandbox "${e.name}".`);
178
- Ce("success"), ut.sandboxDeleted({ sandboxId: e.id }), jt(e.id), await V();
178
+ we("success"), dt.sandboxDeleted({ sandboxId: e.id }), jt(e.id), await B();
179
179
  } catch (t) {
180
- Ce("error"), L({
180
+ we("error"), I({
181
181
  kind: "error",
182
- message: E(t, `Failed to delete sandbox "${e.name}".`)
182
+ message: T(t, `Failed to delete sandbox "${e.name}".`)
183
183
  });
184
184
  }
185
185
  }, [
186
- U,
187
- V,
186
+ H,
187
+ B,
188
188
  jt,
189
- ut,
190
- z
191
- ]), It = f(async () => {
192
- F("select-all");
189
+ dt,
190
+ R
191
+ ]), It = d(async () => {
192
+ P("select-all");
193
193
  try {
194
194
  let e = await Nt();
195
- N(new Map(e.map((e) => [e.id, e]))), L({
195
+ M(new Map(e.map((e) => [e.id, e]))), I({
196
196
  kind: "success",
197
197
  message: `Selected ${e.length} sandbox${e.length === 1 ? "" : "es"}.`
198
198
  });
199
199
  } catch (e) {
200
- L({
200
+ I({
201
201
  kind: "error",
202
- message: E(e, "Failed to select all matching sandboxes.")
202
+ message: T(e, "Failed to select all matching sandboxes.")
203
203
  });
204
204
  } finally {
205
- F(null);
205
+ P(null);
206
206
  }
207
- }, [Nt]), Lt = f(async () => {
208
- if (Z.length === 0) {
209
- L({
207
+ }, [Nt]), Lt = d(async () => {
208
+ if (X.length === 0) {
209
+ I({
210
210
  kind: "error",
211
211
  message: "Select at least one running sandbox to stop."
212
212
  });
213
213
  return;
214
214
  }
215
- let e = Y.length - Z.length;
216
- F("stop");
215
+ let e = J.length - X.length;
216
+ P("stop");
217
217
  try {
218
- let t = await it(Z, async (e) => {
219
- let t = await H({ variables: {
220
- context: { workspaceId: z },
218
+ let t = await at(X, async (e) => {
219
+ let t = await V({ variables: {
220
+ context: { workspaceId: R },
221
221
  id: e.id
222
222
  } });
223
223
  if (!t.data?.stopSandbox) throw Error(`Failed to stop sandbox "${e.name}".`);
224
224
  return t.data.stopSandbox;
225
225
  }), n = t.filter((e) => e.status === "fulfilled").length, r = t.length - n;
226
- N(/* @__PURE__ */ new Map()), await V(), L({
226
+ M(/* @__PURE__ */ new Map()), await B(), I({
227
227
  kind: r === 0 ? "success" : "error",
228
- message: rt("Stopped", n, r, e)
228
+ message: it("Stopped", n, r, e)
229
229
  });
230
230
  } catch (e) {
231
- L({
231
+ I({
232
232
  kind: "error",
233
- message: E(e, "Failed to stop selected sandboxes.")
233
+ message: T(e, "Failed to stop selected sandboxes.")
234
234
  });
235
235
  } finally {
236
- F(null);
236
+ P(null);
237
237
  }
238
238
  }, [
239
+ B,
240
+ J.length,
241
+ X,
239
242
  V,
240
- Y.length,
241
- Z,
242
- H,
243
- z
244
- ]), Rt = f(() => {
245
- if (Q.length === 0) {
246
- L({
243
+ R
244
+ ]), Rt = d(() => {
245
+ if (Z.length === 0) {
246
+ I({
247
247
  kind: "error",
248
248
  message: "Select at least one stopped, failed, expired, or errored sandbox to delete."
249
249
  });
250
250
  return;
251
251
  }
252
- let e = Y.length - Q.length;
253
- R({ message: e > 0 ? `Delete ${Q.length} selected sandbox(es)? ${e} selected sandbox(es) cannot be deleted right now and will be skipped. This cannot be undone.` : `Delete ${Q.length} selected sandbox(es)? This cannot be undone.` });
254
- }, [Q.length, Y.length]), zt = f(async () => {
255
- if (R(null), Q.length === 0) return;
256
- let e = Y.length - Q.length;
257
- F("delete");
252
+ let e = J.length - Z.length;
253
+ L({ message: e > 0 ? `Delete ${Z.length} selected sandbox(es)? ${e} selected sandbox(es) cannot be deleted right now and will be skipped. This cannot be undone.` : `Delete ${Z.length} selected sandbox(es)? This cannot be undone.` });
254
+ }, [Z.length, J.length]), zt = d(async () => {
255
+ if (L(null), Z.length === 0) return;
256
+ let e = J.length - Z.length;
257
+ P("delete");
258
258
  try {
259
- let t = await it(Q, async (e) => {
260
- let t = await U({ variables: {
261
- context: { workspaceId: z },
259
+ let t = await at(Z, async (e) => {
260
+ let t = await H({ variables: {
261
+ context: { workspaceId: R },
262
262
  id: e.id
263
263
  } });
264
264
  if (!t.data?.deleteSandbox) throw Error(`Failed to delete sandbox "${e.name}".`);
265
265
  return t.data.deleteSandbox;
266
266
  }), n = t.filter((e) => e.status === "fulfilled").length, r = t.length - n;
267
- N(/* @__PURE__ */ new Map()), await V(), L({
267
+ M(/* @__PURE__ */ new Map()), await B(), I({
268
268
  kind: r === 0 ? "success" : "error",
269
- message: rt("Deleted", n, r, e)
269
+ message: it("Deleted", n, r, e)
270
270
  });
271
271
  } catch (e) {
272
- L({
272
+ I({
273
273
  kind: "error",
274
- message: E(e, "Failed to delete selected sandboxes.")
274
+ message: T(e, "Failed to delete selected sandboxes.")
275
275
  });
276
276
  } finally {
277
- F(null);
277
+ P(null);
278
278
  }
279
279
  }, [
280
- U,
281
- V,
282
- Q,
283
- Y.length,
284
- z
280
+ H,
281
+ B,
282
+ Z,
283
+ J.length,
284
+ R
285
285
  ]);
286
- return /* @__PURE__ */ b(pe, {
286
+ return /* @__PURE__ */ b(me, {
287
287
  heroBackdrop: /* @__PURE__ */ y(Je, { intensity: "subtle" }),
288
- title: /* @__PURE__ */ y(Xe, { children: u(O, "sandbox.list.title", "Sandboxes") }),
289
- subtitle: u(O, "sandbox.list.subtitle", "Manage ephemeral sandbox environments for development and testing"),
290
- icon: /* @__PURE__ */ y(Ee, { size: 24 }),
288
+ title: /* @__PURE__ */ y(Xe, { children: l(D, "sandbox.list.title", "Sandboxes") }),
289
+ subtitle: l(D, "sandbox.list.subtitle", "Manage ephemeral sandbox environments for development and testing"),
290
+ icon: /* @__PURE__ */ y(De, { size: 24 }),
291
291
  headerActions: /* @__PURE__ */ b("div", {
292
292
  className: "flex items-center gap-2",
293
- children: [/* @__PURE__ */ y(we, {
293
+ children: [/* @__PURE__ */ y(Te, {
294
294
  permission: "sandbox:create",
295
- children: /* @__PURE__ */ b(r, {
296
- onClick: Et,
295
+ children: /* @__PURE__ */ b(t, {
296
+ onClick: $,
297
297
  size: "lg",
298
298
  "data-tour": "sandbox-list-create-button",
299
- children: [/* @__PURE__ */ y(Pe, { size: 18 }), u(O, "sandbox.list.actions.create", "Create Sandbox")]
299
+ children: [/* @__PURE__ */ y(Fe, { size: 18 }), l(D, "sandbox.list.actions.create", "Create Sandbox")]
300
300
  })
301
- }), /* @__PURE__ */ y(i, { actions: [{
302
- label: u(O, "sandbox.list.actions.export.label", "Export"),
303
- onSelect: () => ft(!0),
304
- icon: /* @__PURE__ */ y(Me, { size: 16 })
301
+ }), /* @__PURE__ */ y(n, { actions: [{
302
+ label: l(D, "sandbox.list.actions.export.label", "Export"),
303
+ onSelect: () => pt(!0),
304
+ icon: /* @__PURE__ */ y(Ne, { size: 16 })
305
305
  }] })]
306
306
  }),
307
- headerContent: gt > 0 ? /* @__PURE__ */ b("div", {
307
+ headerContent: _t > 0 ? /* @__PURE__ */ b("div", {
308
308
  className: "flex items-center gap-3 flex-wrap",
309
- children: [/* @__PURE__ */ y(n, {
309
+ children: [/* @__PURE__ */ y(e, {
310
310
  variant: "secondary",
311
311
  className: "gap-1.5",
312
- children: u(O, "sandbox.list.header.total", "{count} total", { count: gt })
313
- }), /* @__PURE__ */ y(n, {
312
+ children: l(D, "sandbox.list.header.total", "{count} total", { count: _t })
313
+ }), /* @__PURE__ */ y(e, {
314
314
  variant: "default",
315
315
  className: "gap-1.5 bg-status-success-bg-subtle text-status-success-text border-border-default",
316
- children: u(O, "sandbox.list.header.running", "{count} running", { count: J })
316
+ children: l(D, "sandbox.list.header.running", "{count} running", { count: q })
317
317
  })]
318
318
  }) : null,
319
319
  children: [
320
- /* @__PURE__ */ y(Qe, { children: u(O, "sandbox.list.purpose", "Sandboxes are disposable, isolated environments where you can safely run code, try an AI builder, reproduce a bug, or test a workflow without touching your real projects. Spin one up, experiment, and let it expire — nothing here affects production.") }),
320
+ /* @__PURE__ */ y(Qe, { children: l(D, "sandbox.list.purpose", "Sandboxes are disposable, isolated environments where you can safely run code, try an AI builder, reproduce a bug, or test a workflow without touching your real projects. Spin one up, experiment, and let it expire — nothing here affects production.") }),
321
321
  /* @__PURE__ */ y(Ye, {
322
322
  className: "p-4",
323
- children: /* @__PURE__ */ y(me, {
324
- runningCount: J,
325
- maxConcurrent: Math.max(J, 10)
323
+ children: /* @__PURE__ */ y(he, {
324
+ runningCount: q,
325
+ maxConcurrent: Math.max(q, 10)
326
326
  })
327
327
  }),
328
328
  /* @__PURE__ */ b("div", {
@@ -332,27 +332,27 @@ function D() {
332
332
  className: "flex flex-col sm:flex-row gap-3",
333
333
  children: [/* @__PURE__ */ b("div", {
334
334
  className: "flex-1 relative group",
335
- children: [/* @__PURE__ */ y(Fe, {
335
+ children: [/* @__PURE__ */ y(Ie, {
336
336
  size: 18,
337
337
  className: "absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary group-focus-within:text-primary transition-colors"
338
- }), /* @__PURE__ */ y(ne, {
338
+ }), /* @__PURE__ */ y(te, {
339
339
  type: "text",
340
- placeholder: u(O, "sandbox.list.search.placeholder", "Search sandboxes by name, description, or ID..."),
340
+ placeholder: l(D, "sandbox.list.search.placeholder", "Search sandboxes by name, description, or ID..."),
341
341
  value: S.search,
342
- onChange: (e) => wt(e.target.value),
342
+ onChange: (e) => Tt(e.target.value),
343
343
  className: "pl-[3.25rem] h-10",
344
- "aria-label": u(O, "sandbox.list.search.ariaLabel", "Search sandboxes"),
344
+ "aria-label": l(D, "sandbox.list.search.ariaLabel", "Search sandboxes"),
345
345
  "data-tour": "sandbox-list-search-input"
346
346
  })]
347
- }), /* @__PURE__ */ b(r, {
348
- variant: k || q ? "default" : "outline",
349
- onClick: () => at(!k),
350
- "aria-label": u(O, "sandbox.list.filters.toggle.ariaLabel", "Toggle filters"),
347
+ }), /* @__PURE__ */ b(t, {
348
+ variant: O || K ? "default" : "outline",
349
+ onClick: () => ot(!O),
350
+ "aria-label": l(D, "sandbox.list.filters.toggle.ariaLabel", "Toggle filters"),
351
351
  "data-tour": "sandbox-list-filters-button",
352
352
  children: [
353
- /* @__PURE__ */ y(Ne, { size: 16 }),
354
- k ? u(O, "sandbox.list.filters.toggle.hide", "Hide") : u(O, "sandbox.list.filters.toggle.show", "Filter"),
355
- q && /* @__PURE__ */ y(n, {
353
+ /* @__PURE__ */ y(Pe, { size: 16 }),
354
+ O ? l(D, "sandbox.list.filters.toggle.hide", "Hide") : l(D, "sandbox.list.filters.toggle.show", "Filter"),
355
+ K && /* @__PURE__ */ y(e, {
356
356
  variant: "secondary",
357
357
  className: "ml-1 h-5 min-w-5 px-1.5",
358
358
  children: [
@@ -364,24 +364,24 @@ function D() {
364
364
  ]
365
365
  })]
366
366
  }),
367
- k && /* @__PURE__ */ y(a, {
367
+ O && /* @__PURE__ */ y(r, {
368
368
  className: "animate-in slide-in-from-top-2 duration-200",
369
- children: /* @__PURE__ */ b(o, {
369
+ children: /* @__PURE__ */ b(i, {
370
370
  className: "p-4",
371
371
  children: [/* @__PURE__ */ b("div", {
372
372
  className: "flex items-center justify-between mb-4",
373
373
  children: [/* @__PURE__ */ b("h3", {
374
374
  className: "font-semibold text-text-primary flex items-center gap-2",
375
- children: [/* @__PURE__ */ y(Ne, {
375
+ children: [/* @__PURE__ */ y(Pe, {
376
376
  size: 16,
377
377
  className: "text-primary"
378
- }), u(O, "sandbox.list.filters.panel.title", "Filter Sandboxes")]
379
- }), q && /* @__PURE__ */ b(r, {
378
+ }), l(D, "sandbox.list.filters.panel.title", "Filter Sandboxes")]
379
+ }), K && /* @__PURE__ */ b(t, {
380
380
  variant: "ghost",
381
381
  size: "sm",
382
- onClick: Tt,
382
+ onClick: Et,
383
383
  className: "text-text-secondary hover:text-status-error-text",
384
- children: [/* @__PURE__ */ y(_, { size: 16 }), u(O, "sandbox.list.filters.clearAll", "Clear All")]
384
+ children: [/* @__PURE__ */ y(_, { size: 16 }), l(D, "sandbox.list.filters.clearAll", "Clear All")]
385
385
  })]
386
386
  }), /* @__PURE__ */ b("div", {
387
387
  className: "grid grid-cols-1 sm:grid-cols-2 gap-4",
@@ -389,32 +389,32 @@ function D() {
389
389
  className: "space-y-2",
390
390
  children: [/* @__PURE__ */ y("label", {
391
391
  className: "block text-sm font-medium text-text-primary",
392
- children: u(O, "sandbox.list.filters.template.label", "Template")
393
- }), /* @__PURE__ */ b(re, {
392
+ children: l(D, "sandbox.list.filters.template.label", "Template")
393
+ }), /* @__PURE__ */ b(ne, {
394
394
  value: S.template || "all",
395
395
  onValueChange: (e) => {
396
- C({ template: e }), j(1);
396
+ C({ template: e }), A(1);
397
397
  },
398
- children: [/* @__PURE__ */ y(ae, { children: /* @__PURE__ */ y(oe, { placeholder: u(O, "sandbox.list.filters.template.all", "All Templates") }) }), /* @__PURE__ */ b(ie, { children: [
399
- /* @__PURE__ */ y(s, {
398
+ children: [/* @__PURE__ */ y(ie, { children: /* @__PURE__ */ y(ae, { placeholder: l(D, "sandbox.list.filters.template.all", "All Templates") }) }), /* @__PURE__ */ b(re, { children: [
399
+ /* @__PURE__ */ y(o, {
400
400
  value: "all",
401
- children: u(O, "sandbox.list.filters.template.all", "All Templates")
401
+ children: l(D, "sandbox.list.filters.template.all", "All Templates")
402
402
  }),
403
- /* @__PURE__ */ y(s, {
403
+ /* @__PURE__ */ y(o, {
404
404
  value: "AI_BUILDER",
405
- children: u(O, "sandbox.list.filters.template.aiBuilder", "AI Builder")
405
+ children: l(D, "sandbox.list.filters.template.aiBuilder", "AI Builder")
406
406
  }),
407
- /* @__PURE__ */ y(s, {
407
+ /* @__PURE__ */ y(o, {
408
408
  value: "WORKFLOW_MULTI_NODE",
409
- children: u(O, "sandbox.list.filters.template.workflowMultiNode", "Workflow Multi-Node")
409
+ children: l(D, "sandbox.list.filters.template.workflowMultiNode", "Workflow Multi-Node")
410
410
  }),
411
- /* @__PURE__ */ y(s, {
411
+ /* @__PURE__ */ y(o, {
412
412
  value: "MISC_SHELL",
413
- children: u(O, "sandbox.list.filters.template.miscShell", "Misc Shell")
413
+ children: l(D, "sandbox.list.filters.template.miscShell", "Misc Shell")
414
414
  }),
415
- /* @__PURE__ */ y(s, {
415
+ /* @__PURE__ */ y(o, {
416
416
  value: "CUSTOM",
417
- children: u(O, "sandbox.list.filters.template.custom", "Custom")
417
+ children: l(D, "sandbox.list.filters.template.custom", "Custom")
418
418
  })
419
419
  ] })]
420
420
  })]
@@ -422,48 +422,48 @@ function D() {
422
422
  className: "space-y-2",
423
423
  children: [/* @__PURE__ */ y("label", {
424
424
  className: "block text-sm font-medium text-text-primary",
425
- children: u(O, "sandbox.list.filters.status.label", "Status")
426
- }), /* @__PURE__ */ b(re, {
425
+ children: l(D, "sandbox.list.filters.status.label", "Status")
426
+ }), /* @__PURE__ */ b(ne, {
427
427
  value: S.status || "all",
428
428
  onValueChange: (e) => {
429
- C({ status: e }), j(1);
429
+ C({ status: e }), A(1);
430
430
  },
431
- children: [/* @__PURE__ */ y(ae, { children: /* @__PURE__ */ y(oe, { placeholder: u(O, "sandbox.list.filters.status.all", "All Statuses") }) }), /* @__PURE__ */ b(ie, { children: [
432
- /* @__PURE__ */ y(s, {
431
+ children: [/* @__PURE__ */ y(ie, { children: /* @__PURE__ */ y(ae, { placeholder: l(D, "sandbox.list.filters.status.all", "All Statuses") }) }), /* @__PURE__ */ b(re, { children: [
432
+ /* @__PURE__ */ y(o, {
433
433
  value: "all",
434
- children: u(O, "sandbox.list.filters.status.all", "All Statuses")
434
+ children: l(D, "sandbox.list.filters.status.all", "All Statuses")
435
435
  }),
436
- /* @__PURE__ */ y(s, {
436
+ /* @__PURE__ */ y(o, {
437
437
  value: "PENDING",
438
- children: u(O, "sandbox.list.filters.status.pending", "Pending")
438
+ children: l(D, "sandbox.list.filters.status.pending", "Pending")
439
439
  }),
440
- /* @__PURE__ */ y(s, {
440
+ /* @__PURE__ */ y(o, {
441
441
  value: "PROVISIONING",
442
- children: u(O, "sandbox.list.filters.status.provisioning", "Provisioning")
442
+ children: l(D, "sandbox.list.filters.status.provisioning", "Provisioning")
443
443
  }),
444
- /* @__PURE__ */ y(s, {
444
+ /* @__PURE__ */ y(o, {
445
445
  value: "RUNNING",
446
- children: u(O, "sandbox.list.filters.status.running", "Running")
446
+ children: l(D, "sandbox.list.filters.status.running", "Running")
447
447
  }),
448
- /* @__PURE__ */ y(s, {
448
+ /* @__PURE__ */ y(o, {
449
449
  value: "STOPPING",
450
- children: u(O, "sandbox.list.filters.status.stopping", "Stopping")
450
+ children: l(D, "sandbox.list.filters.status.stopping", "Stopping")
451
451
  }),
452
- /* @__PURE__ */ y(s, {
452
+ /* @__PURE__ */ y(o, {
453
453
  value: "STOPPED",
454
- children: u(O, "sandbox.list.filters.status.stopped", "Stopped")
454
+ children: l(D, "sandbox.list.filters.status.stopped", "Stopped")
455
455
  }),
456
- /* @__PURE__ */ y(s, {
456
+ /* @__PURE__ */ y(o, {
457
457
  value: "ERROR",
458
- children: u(O, "sandbox.list.filters.status.error", "Error")
458
+ children: l(D, "sandbox.list.filters.status.error", "Error")
459
459
  }),
460
- /* @__PURE__ */ y(s, {
460
+ /* @__PURE__ */ y(o, {
461
461
  value: "EXPIRED",
462
- children: u(O, "sandbox.list.filters.status.expired", "Expired")
462
+ children: l(D, "sandbox.list.filters.status.expired", "Expired")
463
463
  }),
464
- /* @__PURE__ */ y(s, {
464
+ /* @__PURE__ */ y(o, {
465
465
  value: "FAILED",
466
- children: u(O, "sandbox.list.filters.status.failed", "Failed")
466
+ children: l(D, "sandbox.list.filters.status.failed", "Failed")
467
467
  })
468
468
  ] })]
469
469
  })]
@@ -471,64 +471,64 @@ function D() {
471
471
  })]
472
472
  })
473
473
  }),
474
- I && /* @__PURE__ */ y(a, {
475
- className: l("border-l-4", I.kind === "success" ? "border-l-status-success-text bg-status-success-bg-subtle" : "border-l-destructive bg-status-error-bg/5"),
476
- children: /* @__PURE__ */ b(o, {
474
+ F && /* @__PURE__ */ y(r, {
475
+ className: c("border-l-4", F.kind === "success" ? "border-l-status-success-text bg-status-success-bg-subtle" : "border-l-destructive bg-status-error-bg/5"),
476
+ children: /* @__PURE__ */ b(i, {
477
477
  className: "p-4 flex items-start justify-between gap-3",
478
478
  children: [/* @__PURE__ */ b("div", {
479
- role: I.kind === "error" ? "alert" : "status",
479
+ role: F.kind === "error" ? "alert" : "status",
480
480
  className: "flex items-start gap-2 text-sm",
481
- children: [I.kind === "success" ? /* @__PURE__ */ y(De, {
481
+ children: [F.kind === "success" ? /* @__PURE__ */ y(Oe, {
482
482
  size: 16,
483
483
  className: "mt-0.5 text-status-success-text"
484
- }) : /* @__PURE__ */ y(Te, {
484
+ }) : /* @__PURE__ */ y(Ee, {
485
485
  size: 16,
486
486
  className: "mt-0.5 text-status-error-text"
487
487
  }), /* @__PURE__ */ y("span", {
488
- className: l("font-medium", I.kind === "success" ? "text-status-success-text" : "text-status-error-text"),
489
- children: I.message
488
+ className: c("font-medium", F.kind === "success" ? "text-status-success-text" : "text-status-error-text"),
489
+ children: F.message
490
490
  })]
491
- }), /* @__PURE__ */ y(r, {
491
+ }), /* @__PURE__ */ y(t, {
492
492
  variant: "ghost",
493
493
  size: "icon",
494
- onClick: () => L(null),
495
- "aria-label": u(O, "sandbox.list.bulk.feedback.dismiss.ariaLabel", "Dismiss bulk action message"),
494
+ onClick: () => I(null),
495
+ "aria-label": l(D, "sandbox.list.bulk.feedback.dismiss.ariaLabel", "Dismiss bulk action message"),
496
496
  children: /* @__PURE__ */ y(_, { size: 16 })
497
497
  })]
498
498
  })
499
499
  })
500
500
  ]
501
501
  }),
502
- mt && /* @__PURE__ */ y("div", {
502
+ ht && /* @__PURE__ */ y("div", {
503
503
  className: "space-y-4 animate-in fade-in-0 duration-200",
504
504
  children: [...[
505
505
  ,
506
506
  ,
507
507
  ,
508
- ]].map((e, t) => /* @__PURE__ */ y(a, { children: /* @__PURE__ */ y(o, {
508
+ ]].map((e, t) => /* @__PURE__ */ y(r, { children: /* @__PURE__ */ y(i, {
509
509
  className: "p-5",
510
510
  children: /* @__PURE__ */ b("div", {
511
511
  className: "flex items-start gap-4 motion-safe:animate-vc-shimmer",
512
- children: [/* @__PURE__ */ y(c, { className: "size-12 rounded-lg" }), /* @__PURE__ */ b("div", {
512
+ children: [/* @__PURE__ */ y(s, { className: "size-12 rounded-lg" }), /* @__PURE__ */ b("div", {
513
513
  className: "flex-1 space-y-2",
514
514
  children: [
515
- /* @__PURE__ */ y(c, { className: "h-5 w-1/3" }),
516
- /* @__PURE__ */ y(c, { className: "h-4 w-2/3" }),
515
+ /* @__PURE__ */ y(s, { className: "h-5 w-1/3" }),
516
+ /* @__PURE__ */ y(s, { className: "h-4 w-2/3" }),
517
517
  /* @__PURE__ */ b("div", {
518
518
  className: "flex gap-2 pt-1",
519
- children: [/* @__PURE__ */ y(c, { className: "h-5 w-20 rounded-full" }), /* @__PURE__ */ y(c, { className: "h-5 w-24 rounded-full" })]
519
+ children: [/* @__PURE__ */ y(s, { className: "h-5 w-20 rounded-full" }), /* @__PURE__ */ y(s, { className: "h-5 w-24 rounded-full" })]
520
520
  })
521
521
  ]
522
522
  })]
523
523
  })
524
524
  }) }, t))
525
525
  }),
526
- !mt && /* @__PURE__ */ y("div", {
526
+ !ht && /* @__PURE__ */ y("div", {
527
527
  className: "space-y-4",
528
- children: K.length > 0 ? /* @__PURE__ */ b(v, { children: [
529
- /* @__PURE__ */ y(a, {
528
+ children: G.length > 0 ? /* @__PURE__ */ b(v, { children: [
529
+ /* @__PURE__ */ y(r, {
530
530
  className: "animate-in fade-in-0 duration-200",
531
- children: /* @__PURE__ */ b(o, {
531
+ children: /* @__PURE__ */ b(i, {
532
532
  className: "p-4 space-y-3",
533
533
  children: [/* @__PURE__ */ b("div", {
534
534
  className: "flex flex-col gap-3 xl:flex-row xl:items-center xl:justify-between",
@@ -538,81 +538,81 @@ function D() {
538
538
  children: [
539
539
  /* @__PURE__ */ b("label", {
540
540
  className: "inline-flex items-center gap-2 text-sm font-medium text-text-primary",
541
- children: [/* @__PURE__ */ y(ee, {
542
- checked: yt ? !0 : bt ? "indeterminate" : !1,
541
+ children: [/* @__PURE__ */ y(a, {
542
+ checked: bt ? !0 : xt ? "indeterminate" : !1,
543
543
  onCheckedChange: (e) => kt(e === !0),
544
- "aria-label": u(O, "sandbox.list.bulk.selectPage.ariaLabel", "Select all sandboxes on this page")
545
- }), /* @__PURE__ */ y("span", { children: u(O, "sandbox.list.bulk.selectPage.label", "Select page") })]
544
+ "aria-label": l(D, "sandbox.list.bulk.selectPage.ariaLabel", "Select all sandboxes on this page")
545
+ }), /* @__PURE__ */ y("span", { children: l(D, "sandbox.list.bulk.selectPage.label", "Select page") })]
546
546
  }),
547
- W > K.length && /* @__PURE__ */ b(r, {
547
+ U > G.length && /* @__PURE__ */ b(t, {
548
548
  variant: "ghost",
549
549
  size: "sm",
550
550
  onClick: It,
551
- disabled: $,
552
- children: [xt ? /* @__PURE__ */ y(h, {
551
+ disabled: Q,
552
+ children: [St ? /* @__PURE__ */ y(m, {
553
553
  size: 14,
554
554
  className: "animate-spin"
555
- }) : null, u(O, "sandbox.list.bulk.selectAll", "Select all {count}", { count: W })]
555
+ }) : null, l(D, "sandbox.list.bulk.selectAll", "Select all {count}", { count: U })]
556
556
  }),
557
- vt && /* @__PURE__ */ y(r, {
557
+ yt && /* @__PURE__ */ y(t, {
558
558
  variant: "ghost",
559
559
  size: "sm",
560
560
  onClick: At,
561
- disabled: $,
562
- children: u(O, "sandbox.list.bulk.clearSelection", "Clear selection")
561
+ disabled: Q,
562
+ children: l(D, "sandbox.list.bulk.clearSelection", "Clear selection")
563
563
  })
564
564
  ]
565
565
  }), /* @__PURE__ */ b("div", {
566
566
  className: "flex flex-wrap items-center gap-2",
567
567
  children: [
568
- /* @__PURE__ */ y(n, {
569
- variant: vt ? "default" : "secondary",
568
+ /* @__PURE__ */ y(e, {
569
+ variant: yt ? "default" : "secondary",
570
570
  className: "gap-1.5",
571
- children: u(O, "sandbox.list.bulk.selectedCount", "{count} selected", { count: _t.length })
571
+ children: l(D, "sandbox.list.bulk.selectedCount", "{count} selected", { count: vt.length })
572
572
  }),
573
- /* @__PURE__ */ b(r, {
573
+ /* @__PURE__ */ b(t, {
574
574
  variant: "outline",
575
575
  onClick: Lt,
576
- disabled: $ || Z.length === 0,
576
+ disabled: Q || X.length === 0,
577
577
  children: [
578
- St ? /* @__PURE__ */ y(h, {
578
+ Ct ? /* @__PURE__ */ y(m, {
579
579
  size: 16,
580
580
  className: "animate-spin"
581
- }) : /* @__PURE__ */ y(Ie, { size: 16 }),
582
- u(O, "sandbox.list.bulk.stopSelected", "Stop Selected"),
583
- Z.length > 0 ? ` (${Z.length})` : ""
581
+ }) : /* @__PURE__ */ y(h, { size: 16 }),
582
+ l(D, "sandbox.list.bulk.stopSelected", "Stop Selected"),
583
+ X.length > 0 ? ` (${X.length})` : ""
584
584
  ]
585
585
  }),
586
- /* @__PURE__ */ b(r, {
586
+ /* @__PURE__ */ b(t, {
587
587
  variant: "outline",
588
588
  className: "text-status-error-text border-status-error-border/50 hover:bg-status-error-bg/10",
589
589
  onClick: Rt,
590
- disabled: $ || Q.length === 0,
590
+ disabled: Q || Z.length === 0,
591
591
  children: [
592
- Ct ? /* @__PURE__ */ y(h, {
592
+ wt ? /* @__PURE__ */ y(m, {
593
593
  size: 16,
594
594
  className: "animate-spin"
595
595
  }) : /* @__PURE__ */ y(g, { size: 16 }),
596
- u(O, "sandbox.list.bulk.deleteSelected", "Delete Selected"),
597
- Q.length > 0 ? ` (${Q.length})` : ""
596
+ l(D, "sandbox.list.bulk.deleteSelected", "Delete Selected"),
597
+ Z.length > 0 ? ` (${Z.length})` : ""
598
598
  ]
599
599
  })
600
600
  ]
601
601
  })]
602
602
  }), /* @__PURE__ */ y("p", {
603
603
  className: "text-xs text-text-secondary",
604
- children: u(O, "sandbox.list.bulk.helpText", "Select one, many, or every sandbox on the current filter set. Only running sandboxes can be stopped, and only stopped, failed, expired, or errored sandboxes can be deleted.")
604
+ children: l(D, "sandbox.list.bulk.helpText", "Select one, many, or every sandbox on the current filter set. Only running sandboxes can be stopped, and only stopped, failed, expired, or errored sandboxes can be deleted.")
605
605
  })]
606
606
  })
607
607
  }),
608
608
  /* @__PURE__ */ y("div", {
609
609
  className: "space-y-3",
610
- children: K.map((e, t) => {
611
- let n = M.has(e.id);
612
- return /* @__PURE__ */ y(te, {
610
+ children: G.map((e, n) => {
611
+ let r = j.has(e.id);
612
+ return /* @__PURE__ */ y(ee, {
613
613
  treatment: "insight",
614
- className: l("cursor-pointer overflow-hidden group", "animate-in fade-in-0 slide-in-from-bottom-2", n && "border-action-primary-border bg-accent-wash"),
615
- style: { animationDelay: `${t * 40}ms` },
614
+ className: c("cursor-pointer overflow-hidden group", "animate-in fade-in-0 slide-in-from-bottom-2", r && "border-action-primary-border bg-accent-wash"),
615
+ style: { animationDelay: `${n * 40}ms` },
616
616
  onClick: () => Dt(e.id),
617
617
  tabIndex: 0,
618
618
  onKeyDown: (t) => {
@@ -626,16 +626,16 @@ function D() {
626
626
  children: [
627
627
  /* @__PURE__ */ y("div", {
628
628
  className: "pt-1",
629
- children: /* @__PURE__ */ y(ee, {
630
- checked: n,
629
+ children: /* @__PURE__ */ y(a, {
630
+ checked: r,
631
631
  onCheckedChange: (t) => Ot(e, t === !0),
632
632
  onClick: (e) => e.stopPropagation(),
633
- "aria-label": u(O, "sandbox.list.item.select.ariaLabel", "Select sandbox {name}", { name: e.name })
633
+ "aria-label": l(D, "sandbox.list.item.select.ariaLabel", "Select sandbox {name}", { name: e.name })
634
634
  })
635
635
  }),
636
636
  /* @__PURE__ */ y("div", {
637
637
  className: "flex-shrink-0 p-3 rounded-lg bg-bg-sunken/50",
638
- children: /* @__PURE__ */ y(le, {
638
+ children: /* @__PURE__ */ y(ce, {
639
639
  type: e.template,
640
640
  size: 24
641
641
  })
@@ -652,44 +652,44 @@ function D() {
652
652
  children: [/* @__PURE__ */ y("h3", {
653
653
  className: "font-semibold text-base truncate",
654
654
  children: e.name
655
- }), /* @__PURE__ */ y(se, { status: e.status })]
655
+ }), /* @__PURE__ */ y(oe, { status: e.status })]
656
656
  }), e.description && /* @__PURE__ */ y("p", {
657
657
  className: "text-sm text-text-secondary line-clamp-1 mb-2",
658
658
  children: e.description
659
659
  })]
660
660
  }), /* @__PURE__ */ b("div", {
661
- className: l("flex items-center gap-1 transition-opacity flex-shrink-0", n ? "opacity-100" : "opacity-0 group-hover:opacity-100"),
661
+ className: c("flex items-center gap-1 transition-opacity flex-shrink-0", r ? "opacity-100" : "opacity-0 group-hover:opacity-100"),
662
662
  children: [
663
- T(e) && /* @__PURE__ */ y(r, {
663
+ tt(e) && /* @__PURE__ */ y(t, {
664
664
  variant: "ghost",
665
665
  size: "icon",
666
666
  onClick: (t) => {
667
667
  t.stopPropagation(), Pt(e);
668
668
  },
669
- "aria-label": u(O, "sandbox.list.item.actions.stop.ariaLabel", "Stop sandbox"),
670
- children: /* @__PURE__ */ y(Ie, { size: 16 })
669
+ "aria-label": l(D, "sandbox.list.item.actions.stop.ariaLabel", "Stop sandbox"),
670
+ children: /* @__PURE__ */ y(h, { size: 16 })
671
671
  }),
672
- tt(e) && /* @__PURE__ */ y(r, {
672
+ nt(e) && /* @__PURE__ */ y(t, {
673
673
  variant: "ghost",
674
674
  size: "icon",
675
675
  onClick: (t) => {
676
- t.stopPropagation(), lt({ variables: {
677
- context: { workspaceId: z },
676
+ t.stopPropagation(), ut({ variables: {
677
+ context: { workspaceId: R },
678
678
  id: e.id,
679
679
  additionalSeconds: 3600
680
- } }).then(() => V());
680
+ } }).then(() => B());
681
681
  },
682
- "aria-label": u(O, "sandbox.list.item.actions.extendTtl.ariaLabel", "Extend TTL"),
682
+ "aria-label": l(D, "sandbox.list.item.actions.extendTtl.ariaLabel", "Extend TTL"),
683
683
  children: /* @__PURE__ */ y(Le, { size: 16 })
684
684
  }),
685
- nt(e) && /* @__PURE__ */ y(r, {
685
+ rt(e) && /* @__PURE__ */ y(t, {
686
686
  variant: "ghost",
687
687
  size: "icon",
688
688
  className: "text-status-error-text hover:text-status-error-text",
689
689
  onClick: (t) => {
690
690
  t.stopPropagation(), Ft(e);
691
691
  },
692
- "aria-label": u(O, "sandbox.list.item.actions.delete.ariaLabel", "Delete sandbox"),
692
+ "aria-label": l(D, "sandbox.list.item.actions.delete.ariaLabel", "Delete sandbox"),
693
693
  children: /* @__PURE__ */ y(g, { size: 16 })
694
694
  })
695
695
  ]
@@ -698,7 +698,7 @@ function D() {
698
698
  /* @__PURE__ */ b("div", {
699
699
  className: "flex flex-wrap items-center gap-x-4 gap-y-2 text-xs text-text-secondary",
700
700
  children: [
701
- /* @__PURE__ */ y(ce, {
701
+ /* @__PURE__ */ y(se, {
702
702
  cpuRequest: e.resources?.cpuRequest ?? "0",
703
703
  memoryRequest: e.resources?.memoryRequest ?? "0",
704
704
  containerCount: e.containers?.length,
@@ -708,7 +708,7 @@ function D() {
708
708
  className: "text-text-secondary/40",
709
709
  children: "|"
710
710
  }),
711
- /* @__PURE__ */ y(le, {
711
+ /* @__PURE__ */ y(ce, {
712
712
  type: e.template,
713
713
  size: 12,
714
714
  showLabel: !0
@@ -719,8 +719,8 @@ function D() {
719
719
  }), /* @__PURE__ */ b("span", {
720
720
  className: "inline-flex items-center gap-1",
721
721
  children: [
722
- /* @__PURE__ */ y(je, { size: 12 }),
723
- e.storage.mode === "EPHEMERAL" ? u(O, "sandbox.list.item.storage.ephemeral", "Ephemeral") : u(O, "sandbox.list.item.storage.persistent", "Persistent"),
722
+ /* @__PURE__ */ y(Me, { size: 12 }),
723
+ e.storage.mode === "EPHEMERAL" ? l(D, "sandbox.list.item.storage.ephemeral", "Ephemeral") : l(D, "sandbox.list.item.storage.persistent", "Persistent"),
724
724
  e.storage.sizeGi && ` ${e.storage.sizeGi}Gi`
725
725
  ]
726
726
  })] }),
@@ -729,12 +729,12 @@ function D() {
729
729
  children: "|"
730
730
  }), /* @__PURE__ */ b("span", {
731
731
  className: "inline-flex items-center gap-1",
732
- children: [/* @__PURE__ */ y(Ae, { size: 12 }), u(O, "sandbox.list.item.containers", "{count} container{count, plural, one {} other {s}}", { count: e.containers.length })]
732
+ children: [/* @__PURE__ */ y(je, { size: 12 }), l(D, "sandbox.list.item.containers", "{count} container{count, plural, one {} other {s}}", { count: e.containers.length })]
733
733
  })] }),
734
734
  e.expiresAt && e.status === "RUNNING" && /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y("span", {
735
735
  className: "text-text-secondary/40",
736
736
  children: "|"
737
- }), /* @__PURE__ */ y(ue, {
737
+ }), /* @__PURE__ */ y(le, {
738
738
  compact: !0,
739
739
  expiresAt: e.expiresAt
740
740
  })] }),
@@ -742,12 +742,12 @@ function D() {
742
742
  className: "text-text-secondary/40",
743
743
  children: "|"
744
744
  }),
745
- /* @__PURE__ */ y("span", { children: u(O, "sandbox.list.item.created", "Created {time}", { time: $e(e.createdAt) }) })
745
+ /* @__PURE__ */ y("span", { children: l(D, "sandbox.list.item.created", "Created {time}", { time: $e(e.createdAt) }) })
746
746
  ]
747
747
  }),
748
748
  e.errorMessage && /* @__PURE__ */ b("div", {
749
749
  className: "mt-2 flex items-start gap-1.5 text-xs text-status-error-text bg-status-error-bg-subtle px-2.5 py-1.5 rounded-md",
750
- children: [/* @__PURE__ */ y(Te, {
750
+ children: [/* @__PURE__ */ y(Ee, {
751
751
  size: 12,
752
752
  className: "flex-shrink-0 mt-0.5"
753
753
  }), /* @__PURE__ */ y("span", {
@@ -763,73 +763,73 @@ function D() {
763
763
  }, e.id);
764
764
  })
765
765
  }),
766
- G > 1 && /* @__PURE__ */ y(a, {
766
+ W > 1 && /* @__PURE__ */ y(r, {
767
767
  className: "animate-in fade-in-0 duration-200",
768
- children: /* @__PURE__ */ b(o, {
768
+ children: /* @__PURE__ */ b(i, {
769
769
  className: "p-4 flex flex-col sm:flex-row items-center justify-between gap-3",
770
770
  children: [/* @__PURE__ */ y("p", {
771
771
  className: "text-sm text-text-secondary",
772
- children: u(O, "sandbox.list.pagination.showing", "Showing {from}-{to} of {total}", {
773
- from: (A - 1) * 20 + 1,
774
- to: Math.min(A * 20, W),
775
- total: W
772
+ children: l(D, "sandbox.list.pagination.showing", "Showing {from}-{to} of {total}", {
773
+ from: (k - 1) * 20 + 1,
774
+ to: Math.min(k * 20, U),
775
+ total: U
776
776
  })
777
777
  }), /* @__PURE__ */ b("div", {
778
778
  className: "flex items-center gap-2",
779
779
  children: [
780
- /* @__PURE__ */ y(r, {
780
+ /* @__PURE__ */ y(t, {
781
781
  variant: "outline",
782
782
  size: "icon",
783
- onClick: () => j((e) => Math.max(1, e - 1)),
784
- disabled: A === 1,
785
- "aria-label": u(O, "sandbox.list.pagination.previous.ariaLabel", "Previous page"),
786
- children: /* @__PURE__ */ y(Oe, { size: 18 })
783
+ onClick: () => A((e) => Math.max(1, e - 1)),
784
+ disabled: k === 1,
785
+ "aria-label": l(D, "sandbox.list.pagination.previous.ariaLabel", "Previous page"),
786
+ children: /* @__PURE__ */ y(ke, { size: 18 })
787
787
  }),
788
- /* @__PURE__ */ y(n, {
788
+ /* @__PURE__ */ y(e, {
789
789
  variant: "secondary",
790
790
  className: "px-4 py-2 text-sm",
791
- children: u(O, "sandbox.list.pagination.pageOf", "Page {current} of {total}", {
792
- current: A,
793
- total: G
791
+ children: l(D, "sandbox.list.pagination.pageOf", "Page {current} of {total}", {
792
+ current: k,
793
+ total: W
794
794
  })
795
795
  }),
796
- /* @__PURE__ */ y(r, {
796
+ /* @__PURE__ */ y(t, {
797
797
  variant: "outline",
798
798
  size: "icon",
799
- onClick: () => j((e) => Math.min(G, e + 1)),
800
- disabled: A === G,
801
- "aria-label": u(O, "sandbox.list.pagination.next.ariaLabel", "Next page"),
802
- children: /* @__PURE__ */ y(ke, { size: 18 })
799
+ onClick: () => A((e) => Math.min(W, e + 1)),
800
+ disabled: k === W,
801
+ "aria-label": l(D, "sandbox.list.pagination.next.ariaLabel", "Next page"),
802
+ children: /* @__PURE__ */ y(Ae, { size: 18 })
803
803
  })
804
804
  ]
805
805
  })]
806
806
  })
807
807
  })
808
808
  ] }) : /* @__PURE__ */ y(Ze, {
809
- illustration: q ? "empty-search" : "empty-generic",
810
- title: q ? u(O, "sandbox.list.empty.filtered.title", "No matching sandboxes") : u(O, "sandbox.list.empty.title", "No sandboxes yet"),
811
- description: q ? u(O, "sandbox.list.empty.filtered.description", "Try adjusting your search or filters to find what you're looking for.") : u(O, "sandbox.list.empty.description", "Create your first sandbox to start building and testing in isolated environments."),
812
- action: q ? /* @__PURE__ */ b(r, {
809
+ illustration: K ? "empty-search" : "empty-generic",
810
+ title: K ? l(D, "sandbox.list.empty.filtered.title", "No matching sandboxes") : l(D, "sandbox.list.empty.title", "No sandboxes yet"),
811
+ description: K ? l(D, "sandbox.list.empty.filtered.description", "Try adjusting your search or filters to find what you're looking for.") : l(D, "sandbox.list.empty.description", "Create your first sandbox to start building and testing in isolated environments."),
812
+ action: K ? /* @__PURE__ */ b(t, {
813
813
  variant: "outline",
814
- onClick: Tt,
815
- children: [/* @__PURE__ */ y(_, { size: 16 }), u(O, "sandbox.list.empty.filtered.clearFilters", "Clear Filters")]
816
- }) : /* @__PURE__ */ b(r, {
817
814
  onClick: Et,
818
- children: [/* @__PURE__ */ y(Pe, { size: 16 }), u(O, "sandbox.list.empty.createFirst", "Create First Sandbox")]
815
+ children: [/* @__PURE__ */ y(_, { size: 16 }), l(D, "sandbox.list.empty.filtered.clearFilters", "Clear Filters")]
816
+ }) : /* @__PURE__ */ b(t, {
817
+ onClick: $,
818
+ children: [/* @__PURE__ */ y(Fe, { size: 16 }), l(D, "sandbox.list.empty.createFirst", "Create First Sandbox")]
819
819
  })
820
820
  })
821
821
  }),
822
- /* @__PURE__ */ y(he, {
823
- workspaceId: z ?? "",
824
- open: dt,
825
- onClose: () => ft(!1)
822
+ /* @__PURE__ */ y(ge, {
823
+ workspaceId: R ?? "",
824
+ open: ft,
825
+ onClose: () => pt(!1)
826
826
  }),
827
827
  /* @__PURE__ */ y(Be, {
828
- open: ot !== null,
828
+ open: st !== null,
829
829
  onOpenChange: (e) => {
830
- e || R(null);
830
+ e || L(null);
831
831
  },
832
- children: /* @__PURE__ */ b(Ue, { children: [/* @__PURE__ */ b(Ke, { children: [/* @__PURE__ */ y(qe, { children: u(O, "sandbox.list.bulk.deleteSelected", "Delete Selected") }), /* @__PURE__ */ y(We, { children: ot?.message })] }), /* @__PURE__ */ b(Ge, { children: [/* @__PURE__ */ y(He, { children: "Cancel" }), /* @__PURE__ */ y(Ve, {
832
+ children: /* @__PURE__ */ b(Ue, { children: [/* @__PURE__ */ b(Ke, { children: [/* @__PURE__ */ y(qe, { children: l(D, "sandbox.list.bulk.deleteSelected", "Delete Selected") }), /* @__PURE__ */ y(We, { children: st?.message })] }), /* @__PURE__ */ b(Ge, { children: [/* @__PURE__ */ y(He, { children: "Cancel" }), /* @__PURE__ */ y(Ve, {
833
833
  className: "bg-status-error-bg text-status-error-text hover:bg-status-error-bg/90",
834
834
  onClick: () => {
835
835
  zt();
@@ -840,7 +840,6 @@ function D() {
840
840
  ]
841
841
  });
842
842
  }
843
- //#endregion
844
- export { D as SandboxListPage };
843
+ export { E as SandboxListPage };
845
844
 
846
845
  //# sourceMappingURL=SandboxListPage.js.map