@burdenoff/microfe-sandbox 2026.830.1 → 2026.830.2

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 (47) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +9 -4
  4. package/dist/sandbox/SandboxAdminRoot.d.ts.map +1 -1
  5. package/dist/sandbox/SandboxAdminRoot.js +33 -28
  6. package/dist/sandbox/SandboxAdminRoot.js.map +1 -1
  7. package/dist/sandbox/SandboxRoot.d.ts.map +1 -1
  8. package/dist/sandbox/SandboxRoot.js +36 -31
  9. package/dist/sandbox/SandboxRoot.js.map +1 -1
  10. package/dist/sandbox/components/ExtendTTLModal.d.ts.map +1 -1
  11. package/dist/sandbox/components/ExtendTTLModal.js +49 -56
  12. package/dist/sandbox/components/ExtendTTLModal.js.map +1 -1
  13. package/dist/sandbox/components/SandboxAgentAppPanel.d.ts.map +1 -1
  14. package/dist/sandbox/components/SandboxAgentAppPanel.js +40 -38
  15. package/dist/sandbox/components/SandboxAgentAppPanel.js.map +1 -1
  16. package/dist/sandbox/components/SandboxTypeIcon.d.ts.map +1 -1
  17. package/dist/sandbox/components/SandboxTypeIcon.js +30 -22
  18. package/dist/sandbox/components/SandboxTypeIcon.js.map +1 -1
  19. package/dist/sandbox/hooks/useTr.d.ts +17 -0
  20. package/dist/sandbox/hooks/useTr.d.ts.map +1 -0
  21. package/dist/sandbox/hooks/useTr.js +14 -0
  22. package/dist/sandbox/hooks/useTr.js.map +1 -0
  23. package/dist/sandbox/index.d.ts +1 -0
  24. package/dist/sandbox/index.d.ts.map +1 -1
  25. package/dist/sandbox/index.js +1 -0
  26. package/dist/sandbox/pages/SandboxCreatePage.d.ts.map +1 -1
  27. package/dist/sandbox/pages/SandboxCreatePage.js +466 -465
  28. package/dist/sandbox/pages/SandboxCreatePage.js.map +1 -1
  29. package/dist/sandbox/pages/TemplateDetailPage.d.ts.map +1 -1
  30. package/dist/sandbox/pages/TemplateDetailPage.js +315 -294
  31. package/dist/sandbox/pages/TemplateDetailPage.js.map +1 -1
  32. package/dist/translations/en.d.ts +877 -0
  33. package/dist/translations/en.d.ts.map +1 -0
  34. package/dist/translations/en.js +753 -0
  35. package/dist/translations/en.js.map +1 -0
  36. package/dist/translations/hi.d.ts +4 -0
  37. package/dist/translations/hi.d.ts.map +1 -0
  38. package/dist/translations/hi.js +75 -0
  39. package/dist/translations/hi.js.map +1 -0
  40. package/dist/translations/index.d.ts +4 -0
  41. package/dist/translations/index.d.ts.map +1 -0
  42. package/dist/translations/index.js +3 -0
  43. package/dist/translations/ta.d.ts +4 -0
  44. package/dist/translations/ta.d.ts.map +1 -0
  45. package/dist/translations/ta.js +75 -0
  46. package/dist/translations/ta.js.map +1 -0
  47. package/package.json +1 -1
@@ -2,14 +2,15 @@ import { useSandbox as e } from "../providers/SandboxProvider.js";
2
2
  import { joinPath as t } from "../utils/navigation.js";
3
3
  import { Badge as n, Button as r, Card as i, CardContent as a, EmphasisPanel as o } from "../components/ui.js";
4
4
  import { tWithFallback as s } from "../utils/i18n.js";
5
- import { PageLayout as c } from "../components/PageLayout.js";
5
+ import { useTr as c } from "../hooks/useTr.js";
6
+ import { PageLayout as ee } from "../components/PageLayout.js";
6
7
  import { useCreateSandboxTemplateMutation as l, useGetSandboxTemplateQuery as u, useUpdateSandboxTemplateMutation as d } from "../../generated/wspace-operations.js";
7
- import { useEffect as ee, useState as f } from "react";
8
- import { AlertCircle as p, ArrowLeft as m, CheckCircle2 as h, Container as g, Cpu as _, Database as v, Image as y, Info as b, LayoutTemplate as x, Loader2 as S, MemoryStick as C, Plus as w, Save as te, Timer as ne, Trash2 as T, X as re } from "lucide-react";
9
- import { useParams as E } from "react-router";
10
- import { useI18n as D } from "@burdenoff/fe-libs/shared/providers/shell";
11
- import { jsx as O, jsxs as k } from "react/jsx-runtime";
12
- import { PagePurpose as A } from "@burdenoff/fe-libs/ui";
8
+ import { useEffect as f, useState as p } from "react";
9
+ import { AlertCircle as m, ArrowLeft as h, CheckCircle2 as te, Container as ne, Cpu as g, Database as _, Image as v, Info as y, LayoutTemplate as b, Loader2 as x, MemoryStick as S, Plus as C, Save as re, Timer as w, Trash2 as T, X as E } from "lucide-react";
10
+ import { useParams as D } from "react-router";
11
+ import { useI18n as O } from "@burdenoff/fe-libs/shared/providers/shell";
12
+ import { jsx as k, jsxs as A } from "react/jsx-runtime";
13
+ import { PagePurpose as ie } from "@burdenoff/fe-libs/ui";
13
14
  //#region src/sandbox/pages/TemplateDetailPage.tsx
14
15
  var j = 0;
15
16
  function M() {
@@ -29,13 +30,13 @@ function N() {
29
30
  };
30
31
  }
31
32
  function P() {
32
- let { templateId: j } = E(), { basePath: P = "/", navigate: F, workspaceId: I } = e(), { t: L } = D(), R = !!j && j !== "new", [z] = l(), [B] = d(), { data: V } = u({
33
+ let { templateId: j } = D(), { basePath: P = "/", navigate: F, workspaceId: I } = e(), { t: L } = O(), R = c(), z = !!j && j !== "new", [B] = l(), [V] = d(), { data: H } = u({
33
34
  variables: {
34
35
  context: { workspaceId: I },
35
36
  id: j
36
37
  },
37
- skip: !R || !j || !I
38
- }), [H, U] = f({
38
+ skip: !z || !j || !I
39
+ }), [U, W] = p({
39
40
  name: "",
40
41
  description: "",
41
42
  template: "AI_BUILDER",
@@ -55,9 +56,9 @@ function P() {
55
56
  storageRetainOnDelete: !1,
56
57
  allowedImages: []
57
58
  });
58
- ee(() => {
59
- let e = V?.getSandboxTemplate;
60
- e && U({
59
+ f(() => {
60
+ let e = H?.getSandboxTemplate;
61
+ e && W({
61
62
  name: e.name ?? "",
62
63
  description: e.description ?? "",
63
64
  template: e.template ?? "AI_BUILDER",
@@ -91,114 +92,114 @@ function P() {
91
92
  storageRetainOnDelete: e.storage?.retainOnDelete ?? !1,
92
93
  allowedImages: e.allowedImages ?? []
93
94
  });
94
- }, [V]);
95
- let [W, G] = f({}), [K, q] = f(null), [J, Y] = f(!1), X = (e, t) => {
96
- q({
95
+ }, [H]);
96
+ let [G, K] = p({}), [q, J] = p(null), [Y, X] = p(!1), Z = (e, t) => {
97
+ J({
97
98
  type: e,
98
99
  message: t
99
- }), setTimeout(() => q(null), 5e3);
100
- }, Z = (e, t) => {
101
- U((n) => ({
100
+ }), setTimeout(() => J(null), 5e3);
101
+ }, Q = (e, t) => {
102
+ W((n) => ({
102
103
  ...n,
103
104
  [e]: t
104
- })), typeof t == "string" && W[e] && G((t) => {
105
+ })), typeof t == "string" && G[e] && K((t) => {
105
106
  let n = { ...t };
106
107
  return delete n[e], n;
107
108
  });
108
- }, ie = () => {
109
- U((e) => ({
109
+ }, ae = () => {
110
+ W((e) => ({
110
111
  ...e,
111
112
  containers: [...e.containers, N()]
112
113
  }));
113
- }, Q = (e) => {
114
- U((t) => ({
114
+ }, oe = (e) => {
115
+ W((t) => ({
115
116
  ...t,
116
117
  containers: t.containers.filter((t, n) => n !== e)
117
118
  }));
118
119
  }, $ = (e, t, n) => {
119
- U((r) => ({
120
+ W((r) => ({
120
121
  ...r,
121
122
  containers: r.containers.map((r, i) => i === e ? {
122
123
  ...r,
123
124
  [t]: n
124
125
  } : r)
125
126
  }));
126
- }, ae = () => {
127
- U((e) => ({
127
+ }, se = () => {
128
+ W((e) => ({
128
129
  ...e,
129
130
  allowedImages: [...e.allowedImages, ""]
130
131
  }));
131
- }, oe = (e) => {
132
- U((t) => ({
132
+ }, ce = (e) => {
133
+ W((t) => ({
133
134
  ...t,
134
135
  allowedImages: t.allowedImages.filter((t, n) => n !== e)
135
136
  }));
136
- }, se = (e, t) => {
137
- U((n) => ({
137
+ }, le = (e, t) => {
138
+ W((n) => ({
138
139
  ...n,
139
140
  allowedImages: n.allowedImages.map((n, r) => r === e ? t : n)
140
141
  }));
141
- }, ce = () => {
142
+ }, ue = () => {
142
143
  let e = {};
143
- return H.name.trim() || (e.name = s(L, "sandbox.template.errors.nameRequired", "Name is required")), H.cpuRequest.trim() || (e.cpuRequest = s(L, "sandbox.template.errors.cpuRequestRequired", "CPU request is required")), H.cpuLimit.trim() || (e.cpuLimit = s(L, "sandbox.template.errors.cpuLimitRequired", "CPU limit is required")), H.memoryRequest.trim() || (e.memoryRequest = s(L, "sandbox.template.errors.memoryRequestRequired", "Memory request is required")), H.memoryLimit.trim() || (e.memoryLimit = s(L, "sandbox.template.errors.memoryLimitRequired", "Memory limit is required")), G(e), Object.keys(e).length === 0;
144
+ return U.name.trim() || (e.name = s(L, "sandbox.template.errors.nameRequired", "Name is required")), U.cpuRequest.trim() || (e.cpuRequest = s(L, "sandbox.template.errors.cpuRequestRequired", "CPU request is required")), U.cpuLimit.trim() || (e.cpuLimit = s(L, "sandbox.template.errors.cpuLimitRequired", "CPU limit is required")), U.memoryRequest.trim() || (e.memoryRequest = s(L, "sandbox.template.errors.memoryRequestRequired", "Memory request is required")), U.memoryLimit.trim() || (e.memoryLimit = s(L, "sandbox.template.errors.memoryLimitRequired", "Memory limit is required")), K(e), Object.keys(e).length === 0;
144
145
  };
145
- return /* @__PURE__ */ k(c, {
146
+ return /* @__PURE__ */ A(ee, {
146
147
  showHeader: !1,
147
148
  children: [
148
- K && /* @__PURE__ */ k("div", {
149
- className: `fixed top-4 right-4 z-50 flex items-center gap-3 px-5 py-3 rounded-xl shadow-2xl border-2 animate-in slide-in-from-top-4 duration-200 ${K.type === "success" ? "bg-status-success-bg-subtle text-status-success-text border-border-default" : "bg-status-error-bg-subtle text-status-error-text border-border-default"}`,
149
+ q && /* @__PURE__ */ A("div", {
150
+ className: `fixed top-4 right-4 z-50 flex items-center gap-3 px-5 py-3 rounded-xl shadow-2xl border-2 animate-in slide-in-from-top-4 duration-200 ${q.type === "success" ? "bg-status-success-bg-subtle text-status-success-text border-border-default" : "bg-status-error-bg-subtle text-status-error-text border-border-default"}`,
150
151
  children: [
151
- K.type === "success" ? /* @__PURE__ */ O(h, { size: 20 }) : /* @__PURE__ */ O(p, { size: 20 }),
152
- /* @__PURE__ */ O("span", {
152
+ q.type === "success" ? /* @__PURE__ */ k(te, { size: 20 }) : /* @__PURE__ */ k(m, { size: 20 }),
153
+ /* @__PURE__ */ k("span", {
153
154
  className: "font-medium",
154
- children: K.message
155
+ children: q.message
155
156
  }),
156
- /* @__PURE__ */ O("button", {
157
+ /* @__PURE__ */ k("button", {
157
158
  type: "button",
158
- onClick: () => q(null),
159
- "aria-label": "Dismiss notification",
159
+ onClick: () => J(null),
160
+ "aria-label": R("sandbox.template.notification.dismiss", "Dismiss notification"),
160
161
  className: "ml-2 p-1 rounded-md hover:bg-accent",
161
- children: /* @__PURE__ */ O(re, { size: 16 })
162
+ children: /* @__PURE__ */ k(E, { size: 16 })
162
163
  })
163
164
  ]
164
165
  }),
165
- /* @__PURE__ */ k(o, {
166
+ /* @__PURE__ */ A(o, {
166
167
  className: "overflow-hidden bg-hero-mesh",
167
- children: [/* @__PURE__ */ k("div", {
168
+ children: [/* @__PURE__ */ A("div", {
168
169
  className: "flex items-center gap-4",
169
- children: [/* @__PURE__ */ O("button", {
170
+ children: [/* @__PURE__ */ k("button", {
170
171
  type: "button",
171
172
  onClick: () => F?.(t(P, "templates")),
172
173
  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",
173
174
  "aria-label": s(L, "sandbox.template.actions.backToTemplates", "Back to templates"),
174
- children: /* @__PURE__ */ O(m, { size: 20 })
175
- }), /* @__PURE__ */ k("div", {
175
+ children: /* @__PURE__ */ k(h, { size: 20 })
176
+ }), /* @__PURE__ */ A("div", {
176
177
  className: "flex items-center gap-3",
177
- children: [/* @__PURE__ */ O("div", {
178
+ children: [/* @__PURE__ */ k("div", {
178
179
  className: "p-2.5 rounded-lg bg-action-primary-bg/10",
179
- children: /* @__PURE__ */ O(x, {
180
+ children: /* @__PURE__ */ k(b, {
180
181
  size: 24,
181
182
  className: "text-primary"
182
183
  })
183
- }), /* @__PURE__ */ O("h1", {
184
+ }), /* @__PURE__ */ k("h1", {
184
185
  className: "text-2xl sm:text-3xl font-bold",
185
- children: R ? s(L, "sandbox.template.title.edit", "Edit Template") : s(L, "sandbox.template.title.create", "Create Template")
186
+ children: z ? s(L, "sandbox.template.title.edit", "Edit Template") : s(L, "sandbox.template.title.create", "Create Template")
186
187
  })]
187
188
  })]
188
- }), /* @__PURE__ */ O(A, {
189
+ }), /* @__PURE__ */ k(ie, {
189
190
  className: "mt-3",
190
- children: R ? s(L, "sandbox.template.purpose.edit", "Adjust this blueprint — its base image, containers, CPU/memory, storage, time-to-live and the images members are allowed to pick. Changes apply to sandboxes created from this template going forward, giving your team a consistent, governed starting point.") : s(L, "sandbox.template.purpose.create", "Define a reusable sandbox blueprint so members can launch a ready-to-go environment in one click. Set the base image, containers, resources, storage, time-to-live and which images are allowed — then optionally make it the workspace default.")
191
+ children: z ? s(L, "sandbox.template.purpose.edit", "Adjust this blueprint — its base image, containers, CPU/memory, storage, time-to-live and the images members are allowed to pick. Changes apply to sandboxes created from this template going forward, giving your team a consistent, governed starting point.") : s(L, "sandbox.template.purpose.create", "Define a reusable sandbox blueprint so members can launch a ready-to-go environment in one click. Set the base image, containers, resources, storage, time-to-live and which images are allowed — then optionally make it the workspace default.")
191
192
  })]
192
193
  }),
193
- /* @__PURE__ */ k("form", {
194
+ /* @__PURE__ */ A("form", {
194
195
  onSubmit: async (e) => {
195
- if (e.preventDefault(), !ce()) {
196
- X("error", s(L, "sandbox.template.errors.fixFormErrors", "Please fix the form errors"));
196
+ if (e.preventDefault(), !ue()) {
197
+ Z("error", s(L, "sandbox.template.errors.fixFormErrors", "Please fix the form errors"));
197
198
  return;
198
199
  }
199
- Y(!0);
200
+ X(!0);
200
201
  try {
201
- let e = H.containers.reduce((e, t) => (!t.name.trim() || !t.image.trim() || e.push({
202
+ let e = U.containers.reduce((e, t) => (!t.name.trim() || !t.image.trim() || e.push({
202
203
  name: t.name,
203
204
  image: t.image,
204
205
  ports: t.ports.length > 0 ? t.ports : void 0,
@@ -211,220 +212,220 @@ function P() {
211
212
  } : void 0
212
213
  }), e), []), n = {
213
214
  context: { workspaceId: I },
214
- name: H.name,
215
- description: H.description || void 0,
216
- template: H.template,
217
- isDefault: H.isDefault,
215
+ name: U.name,
216
+ description: U.description || void 0,
217
+ template: U.template,
218
+ isDefault: U.isDefault,
218
219
  containers: e,
219
220
  resources: {
220
- cpuRequest: H.cpuRequest,
221
- cpuLimit: H.cpuLimit,
222
- memoryRequest: H.memoryRequest,
223
- memoryLimit: H.memoryLimit
221
+ cpuRequest: U.cpuRequest,
222
+ cpuLimit: U.cpuLimit,
223
+ memoryRequest: U.memoryRequest,
224
+ memoryLimit: U.memoryLimit
224
225
  },
225
226
  storage: {
226
- mode: H.storageMode,
227
- sizeGi: H.storageMode === "NONE" ? void 0 : H.storageSizeGi,
228
- mountPath: H.storageMode === "NONE" ? void 0 : H.storageMountPath,
229
- retainOnDelete: H.storageMode === "PERSISTENT" ? H.storageRetainOnDelete : !1
227
+ mode: U.storageMode,
228
+ sizeGi: U.storageMode === "NONE" ? void 0 : U.storageSizeGi,
229
+ mountPath: U.storageMode === "NONE" ? void 0 : U.storageMountPath,
230
+ retainOnDelete: U.storageMode === "PERSISTENT" ? U.storageRetainOnDelete : !1
230
231
  },
231
- allowedImages: H.allowedImages.filter((e) => e.trim()),
232
- ttlSeconds: H.ttlSeconds
232
+ allowedImages: U.allowedImages.filter((e) => e.trim()),
233
+ ttlSeconds: U.ttlSeconds
233
234
  };
234
- R ? await B({ variables: { input: {
235
+ z ? await V({ variables: { input: {
235
236
  id: j,
236
237
  ...n
237
- } } }) : await z({ variables: { input: n } }), X("success", R ? s(L, "sandbox.template.success.updated", "Template updated!") : s(L, "sandbox.template.success.created", "Template created!")), setTimeout(() => F?.(t(P, "templates")), 1500);
238
+ } } }) : await B({ variables: { input: n } }), Z("success", z ? s(L, "sandbox.template.success.updated", "Template updated!") : s(L, "sandbox.template.success.created", "Template created!")), setTimeout(() => F?.(t(P, "templates")), 1500);
238
239
  } catch {
239
- X("error", s(L, "sandbox.template.errors.saveFailed", "Failed to save template"));
240
+ Z("error", s(L, "sandbox.template.errors.saveFailed", "Failed to save template"));
240
241
  } finally {
241
- Y(!1);
242
+ X(!1);
242
243
  }
243
244
  },
244
245
  className: "space-y-6",
245
246
  children: [
246
- /* @__PURE__ */ O(i, {
247
+ /* @__PURE__ */ k(i, {
247
248
  className: "border-border-seam",
248
- children: /* @__PURE__ */ k(a, {
249
+ children: /* @__PURE__ */ A(a, {
249
250
  className: "p-6 space-y-5",
250
251
  children: [
251
- /* @__PURE__ */ k("h2", {
252
+ /* @__PURE__ */ A("h2", {
252
253
  className: "text-lg font-bold flex items-center gap-2",
253
- children: [/* @__PURE__ */ O(b, {
254
+ children: [/* @__PURE__ */ k(y, {
254
255
  size: 18,
255
256
  className: "text-primary"
256
257
  }), s(L, "sandbox.template.sections.info", "Template Information")]
257
258
  }),
258
- /* @__PURE__ */ k("div", { children: [
259
- /* @__PURE__ */ k("label", {
259
+ /* @__PURE__ */ A("div", { children: [
260
+ /* @__PURE__ */ A("label", {
260
261
  htmlFor: "name",
261
262
  className: "block text-sm font-semibold mb-2",
262
- children: ["Name ", /* @__PURE__ */ O("span", {
263
- className: "text-status-error-text",
264
- children: "*"
265
- })]
263
+ children: [
264
+ R("sandbox.template.fields.name.label", "Name"),
265
+ " ",
266
+ /* @__PURE__ */ k("span", {
267
+ className: "text-status-error-text",
268
+ children: "*"
269
+ })
270
+ ]
266
271
  }),
267
- /* @__PURE__ */ O("input", {
268
- "aria-label": "Name",
272
+ /* @__PURE__ */ k("input", {
273
+ "aria-label": R("sandbox.template.fields.name.label", "Name"),
269
274
  type: "text",
270
275
  id: "name",
271
- value: H.name,
272
- onChange: (e) => Z("name", e.target.value),
273
- className: `w-full px-4 py-2.5 border-2 rounded-lg bg-bg-surface focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${W.name ? "border-status-error-border" : "border-border-subtle focus:border-primary"}`,
274
- placeholder: "AI Builder - Standard"
276
+ value: U.name,
277
+ onChange: (e) => Q("name", e.target.value),
278
+ className: `w-full px-4 py-2.5 border-2 rounded-lg bg-bg-surface focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${G.name ? "border-status-error-border" : "border-border-subtle focus:border-primary"}`,
279
+ placeholder: R("sandbox.template.fields.name.placeholder", "AI Builder - Standard")
275
280
  }),
276
- W.name && /* @__PURE__ */ k("p", {
281
+ G.name && /* @__PURE__ */ A("p", {
277
282
  className: "text-sm text-status-error-text mt-1 flex items-center gap-1",
278
- children: [/* @__PURE__ */ O(p, { size: 14 }), W.name]
283
+ children: [/* @__PURE__ */ k(m, { size: 14 }), G.name]
279
284
  })
280
285
  ] }),
281
- /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
286
+ /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
282
287
  htmlFor: "description",
283
288
  className: "block text-sm font-semibold mb-2",
284
- children: "Description"
285
- }), /* @__PURE__ */ O("textarea", {
286
- "aria-label": "Description",
289
+ children: R("sandbox.template.fields.description.label", "Description")
290
+ }), /* @__PURE__ */ k("textarea", {
291
+ "aria-label": R("sandbox.template.fields.description.label", "Description"),
287
292
  id: "description",
288
- value: H.description,
289
- onChange: (e) => Z("description", e.target.value),
293
+ value: U.description,
294
+ onChange: (e) => Q("description", e.target.value),
290
295
  rows: 3,
291
296
  className: "w-full px-4 py-2.5 border-2 border-border-subtle rounded-lg bg-bg-surface focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all",
292
- placeholder: "Template description..."
297
+ placeholder: R("sandbox.template.fields.description.placeholder", "Template description...")
293
298
  })] }),
294
- /* @__PURE__ */ k("div", {
299
+ /* @__PURE__ */ A("div", {
295
300
  className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
296
- children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
301
+ children: [/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
297
302
  htmlFor: "template",
298
303
  className: "block text-sm font-semibold mb-2",
299
- children: "Template Type"
300
- }), /* @__PURE__ */ k("select", {
304
+ children: R("sandbox.template.fields.templateType.label", "Template Type")
305
+ }), /* @__PURE__ */ A("select", {
301
306
  id: "template",
302
- value: H.template,
303
- onChange: (e) => Z("template", e.target.value),
307
+ value: U.template,
308
+ onChange: (e) => Q("template", e.target.value),
304
309
  className: "w-full px-4 py-2.5 border-2 border-border-subtle rounded-lg bg-bg-surface focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all",
305
310
  children: [
306
- /* @__PURE__ */ O("option", {
311
+ /* @__PURE__ */ k("option", {
307
312
  value: "AI_BUILDER",
308
- children: "AI Builder"
313
+ children: R("sandbox.typeIcon.aiBuilder", "AI Builder")
309
314
  }),
310
- /* @__PURE__ */ O("option", {
315
+ /* @__PURE__ */ k("option", {
311
316
  value: "WORKFLOW_MULTI_NODE",
312
- children: "Workflow Multi-Node"
317
+ children: R("sandbox.typeIcon.workflowMultiNode", "Workflow Multi-Node")
313
318
  }),
314
- /* @__PURE__ */ O("option", {
319
+ /* @__PURE__ */ k("option", {
315
320
  value: "MISC_SHELL",
316
- children: "Misc Shell"
321
+ children: R("sandbox.typeIcon.miscShell", "Misc Shell")
317
322
  }),
318
- /* @__PURE__ */ O("option", {
323
+ /* @__PURE__ */ k("option", {
319
324
  value: "CUSTOM",
320
- children: "Custom"
325
+ children: R("sandbox.typeIcon.custom", "Custom")
321
326
  })
322
327
  ]
323
- })] }), /* @__PURE__ */ k("div", {
328
+ })] }), /* @__PURE__ */ A("div", {
324
329
  className: "flex items-center gap-3 pt-7",
325
- children: [/* @__PURE__ */ O("input", {
326
- "aria-label": "Default template",
330
+ children: [/* @__PURE__ */ k("input", {
331
+ "aria-label": R("sandbox.template.fields.isDefault.label", "Default template"),
327
332
  type: "checkbox",
328
333
  id: "isDefault",
329
- checked: H.isDefault,
330
- onChange: (e) => Z("isDefault", e.target.checked),
334
+ checked: U.isDefault,
335
+ onChange: (e) => Q("isDefault", e.target.checked),
331
336
  className: "size-4 rounded border-border-subtle text-primary focus:ring-primary/20"
332
- }), /* @__PURE__ */ O("label", {
337
+ }), /* @__PURE__ */ k("label", {
333
338
  htmlFor: "isDefault",
334
339
  className: "text-sm font-medium",
335
- children: "Set as default template for this type"
340
+ children: R("sandbox.template.fields.isDefault.help", "Set as default template for this type")
336
341
  })]
337
342
  })]
338
343
  })
339
344
  ]
340
345
  })
341
346
  }),
342
- /* @__PURE__ */ O(i, {
347
+ /* @__PURE__ */ k(i, {
343
348
  className: "border-border-seam",
344
- children: /* @__PURE__ */ k(a, {
349
+ children: /* @__PURE__ */ A(a, {
345
350
  className: "p-6 space-y-5",
346
- children: [/* @__PURE__ */ k("div", {
351
+ children: [/* @__PURE__ */ A("div", {
347
352
  className: "flex items-center justify-between",
348
- children: [/* @__PURE__ */ k("h2", {
353
+ children: [/* @__PURE__ */ A("h2", {
349
354
  className: "text-lg font-bold flex items-center gap-2",
350
355
  children: [
351
- /* @__PURE__ */ O(g, {
356
+ /* @__PURE__ */ k(ne, {
352
357
  size: 18,
353
358
  className: "text-primary"
354
359
  }),
355
360
  s(L, "sandbox.template.sections.containers", "Default Containers"),
356
- /* @__PURE__ */ O(n, {
361
+ /* @__PURE__ */ k(n, {
357
362
  variant: "secondary",
358
- children: H.containers.length
363
+ children: U.containers.length
359
364
  })
360
365
  ]
361
- }), /* @__PURE__ */ k(r, {
366
+ }), /* @__PURE__ */ A(r, {
362
367
  type: "button",
363
368
  variant: "outline",
364
369
  size: "sm",
365
- onClick: ie,
366
- children: [/* @__PURE__ */ O(w, { size: 14 }), "Add Container"]
370
+ onClick: ae,
371
+ children: [/* @__PURE__ */ k(C, { size: 14 }), R("sandbox.template.container.addContainer", "Add Container")]
367
372
  })]
368
- }), /* @__PURE__ */ O("div", {
373
+ }), /* @__PURE__ */ k("div", {
369
374
  className: "space-y-4",
370
- children: H.containers.map((e, t) => /* @__PURE__ */ k("div", {
375
+ children: U.containers.map((e, t) => /* @__PURE__ */ A("div", {
371
376
  className: "p-4 rounded-lg border-2 border-border-subtle/50 bg-bg-sunken/20 space-y-3",
372
377
  children: [
373
- /* @__PURE__ */ k("div", {
378
+ /* @__PURE__ */ A("div", {
374
379
  className: "flex items-center justify-between",
375
- children: [/* @__PURE__ */ k("h3", {
380
+ children: [/* @__PURE__ */ A("h3", {
376
381
  className: "font-semibold text-sm",
377
- children: [
378
- "Container #",
379
- t + 1,
380
- e.name && `: ${e.name}`
381
- ]
382
- }), H.containers.length > 1 && /* @__PURE__ */ O(r, {
382
+ children: [R("sandbox.template.container.heading", "Container #{number}", { number: t + 1 }), e.name && `: ${e.name}`]
383
+ }), U.containers.length > 1 && /* @__PURE__ */ k(r, {
383
384
  type: "button",
384
385
  variant: "ghost",
385
386
  size: "icon",
386
387
  className: "text-status-error-text hover:text-status-error-text size-7",
387
- onClick: () => Q(t),
388
- children: /* @__PURE__ */ O(T, { size: 14 })
388
+ onClick: () => oe(t),
389
+ children: /* @__PURE__ */ k(T, { size: 14 })
389
390
  })]
390
391
  }),
391
- /* @__PURE__ */ k("div", {
392
+ /* @__PURE__ */ A("div", {
392
393
  className: "grid grid-cols-1 sm:grid-cols-2 gap-3",
393
- children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
394
+ children: [/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
394
395
  htmlFor: `tpl-${e._rowId}-name`,
395
396
  className: "block text-xs font-semibold mb-1",
396
- children: "Name"
397
- }), /* @__PURE__ */ O("input", {
398
- "aria-label": "Name",
397
+ children: R("sandbox.create.container.fields.name.label", "Name")
398
+ }), /* @__PURE__ */ k("input", {
399
+ "aria-label": R("sandbox.create.container.fields.name.label", "Name"),
399
400
  id: `tpl-${e._rowId}-name`,
400
401
  type: "text",
401
402
  value: e.name,
402
403
  onChange: (e) => $(t, "name", e.target.value),
403
404
  className: "w-full px-3 py-2 border-2 border-border-subtle rounded-lg bg-bg-surface text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all",
404
- placeholder: "main"
405
- })] }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
405
+ placeholder: R("sandbox.create.container.fields.name.placeholder", "main")
406
+ })] }), /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
406
407
  htmlFor: `tpl-${e._rowId}-image`,
407
408
  className: "block text-xs font-semibold mb-1",
408
- children: "Image"
409
- }), /* @__PURE__ */ O("input", {
410
- "aria-label": "Image",
409
+ children: R("sandbox.create.container.fields.image.label", "Image")
410
+ }), /* @__PURE__ */ k("input", {
411
+ "aria-label": R("sandbox.create.container.fields.image.label", "Image"),
411
412
  id: `tpl-${e._rowId}-image`,
412
413
  type: "text",
413
414
  value: e.image,
414
415
  onChange: (e) => $(t, "image", e.target.value),
415
416
  className: "w-full px-3 py-2 border-2 border-border-subtle rounded-lg bg-bg-surface text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all",
416
- placeholder: "harbor-internal.burdenoff.com/sandbox/python:3.12"
417
+ placeholder: R("sandbox.template.container.imagePlaceholder", "harbor-internal.burdenoff.com/sandbox/python:3.12")
417
418
  })] })]
418
419
  }),
419
- /* @__PURE__ */ k("div", {
420
+ /* @__PURE__ */ A("div", {
420
421
  className: "grid grid-cols-2 sm:grid-cols-4 gap-3",
421
422
  children: [
422
- /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
423
+ /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
423
424
  htmlFor: `tpl-${e._rowId}-cpuReq`,
424
425
  className: "block text-xs text-text-secondary mb-1",
425
- children: "CPU Req"
426
- }), /* @__PURE__ */ O("input", {
427
- "aria-label": "CPU Req",
426
+ children: R("sandbox.create.container.resources.cpuReq", "CPU Req")
427
+ }), /* @__PURE__ */ k("input", {
428
+ "aria-label": R("sandbox.create.container.resources.cpuReq", "CPU Req"),
428
429
  id: `tpl-${e._rowId}-cpuReq`,
429
430
  type: "text",
430
431
  value: e.requestsCpu,
@@ -432,12 +433,12 @@ function P() {
432
433
  className: "w-full px-3 py-1.5 border rounded-lg bg-bg-surface text-xs font-mono focus:outline-none focus:ring-2 focus:ring-primary/20",
433
434
  placeholder: "250m"
434
435
  })] }),
435
- /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
436
+ /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
436
437
  htmlFor: `tpl-${e._rowId}-cpuLim`,
437
438
  className: "block text-xs text-text-secondary mb-1",
438
- children: "CPU Lim"
439
- }), /* @__PURE__ */ O("input", {
440
- "aria-label": "CPU Lim",
439
+ children: R("sandbox.create.container.resources.cpuLim", "CPU Lim")
440
+ }), /* @__PURE__ */ k("input", {
441
+ "aria-label": R("sandbox.create.container.resources.cpuLim", "CPU Lim"),
441
442
  id: `tpl-${e._rowId}-cpuLim`,
442
443
  type: "text",
443
444
  value: e.limitsCpu,
@@ -445,12 +446,12 @@ function P() {
445
446
  className: "w-full px-3 py-1.5 border rounded-lg bg-bg-surface text-xs font-mono focus:outline-none focus:ring-2 focus:ring-primary/20",
446
447
  placeholder: "1"
447
448
  })] }),
448
- /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
449
+ /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
449
450
  htmlFor: `tpl-${e._rowId}-memReq`,
450
451
  className: "block text-xs text-text-secondary mb-1",
451
- children: "Mem Req"
452
- }), /* @__PURE__ */ O("input", {
453
- "aria-label": "Mem Req",
452
+ children: R("sandbox.create.container.resources.memReq", "Mem Req")
453
+ }), /* @__PURE__ */ k("input", {
454
+ "aria-label": R("sandbox.create.container.resources.memReq", "Mem Req"),
454
455
  id: `tpl-${e._rowId}-memReq`,
455
456
  type: "text",
456
457
  value: e.requestsMemory,
@@ -458,12 +459,12 @@ function P() {
458
459
  className: "w-full px-3 py-1.5 border rounded-lg bg-bg-surface text-xs font-mono focus:outline-none focus:ring-2 focus:ring-primary/20",
459
460
  placeholder: "512Mi"
460
461
  })] }),
461
- /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
462
+ /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
462
463
  htmlFor: `tpl-${e._rowId}-memLim`,
463
464
  className: "block text-xs text-text-secondary mb-1",
464
- children: "Mem Lim"
465
- }), /* @__PURE__ */ O("input", {
466
- "aria-label": "Memory limit",
465
+ children: R("sandbox.create.container.resources.memLim", "Mem Lim")
466
+ }), /* @__PURE__ */ k("input", {
467
+ "aria-label": R("sandbox.create.container.resources.memLim", "Mem Lim"),
467
468
  id: `tpl-${e._rowId}-memLim`,
468
469
  type: "text",
469
470
  value: e.limitsMemory,
@@ -478,200 +479,220 @@ function P() {
478
479
  })]
479
480
  })
480
481
  }),
481
- /* @__PURE__ */ O(i, {
482
+ /* @__PURE__ */ k(i, {
482
483
  className: "border-border-seam",
483
- children: /* @__PURE__ */ k(a, {
484
+ children: /* @__PURE__ */ A(a, {
484
485
  className: "p-6 space-y-5",
485
486
  children: [
486
- /* @__PURE__ */ k("h2", {
487
+ /* @__PURE__ */ A("h2", {
487
488
  className: "text-lg font-bold flex items-center gap-2",
488
- children: [/* @__PURE__ */ O(_, {
489
+ children: [/* @__PURE__ */ k(g, {
489
490
  size: 18,
490
491
  className: "text-primary"
491
492
  }), s(L, "sandbox.template.sections.resources", "Default Pod Resources")]
492
493
  }),
493
- /* @__PURE__ */ k("div", {
494
+ /* @__PURE__ */ A("div", {
494
495
  className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
495
496
  children: [
496
- /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ k("label", {
497
+ /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ A("label", {
497
498
  htmlFor: "cpuRequest",
498
499
  className: "text-sm font-semibold flex items-center gap-2",
499
- children: [/* @__PURE__ */ O(_, {
500
- size: 14,
501
- className: "text-status-info-text"
502
- }), " CPU Request"]
503
- }), /* @__PURE__ */ O("input", {
504
- "aria-label": "CPU Request",
500
+ children: [
501
+ /* @__PURE__ */ k(g, {
502
+ size: 14,
503
+ className: "text-status-info-text"
504
+ }),
505
+ " ",
506
+ R("sandbox.create.fields.cpuRequest.label", "CPU Request")
507
+ ]
508
+ }), /* @__PURE__ */ k("input", {
509
+ "aria-label": R("sandbox.create.fields.cpuRequest.label", "CPU Request"),
505
510
  type: "text",
506
511
  id: "cpuRequest",
507
- value: H.cpuRequest,
508
- onChange: (e) => Z("cpuRequest", e.target.value),
509
- className: `w-full px-4 py-2.5 mt-2 border-2 rounded-lg bg-bg-surface font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${W.cpuRequest ? "border-status-error-border" : "border-border-subtle focus:border-primary"}`,
512
+ value: U.cpuRequest,
513
+ onChange: (e) => Q("cpuRequest", e.target.value),
514
+ className: `w-full px-4 py-2.5 mt-2 border-2 rounded-lg bg-bg-surface font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${G.cpuRequest ? "border-status-error-border" : "border-border-subtle focus:border-primary"}`,
510
515
  placeholder: "500m"
511
516
  })] }),
512
- /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ k("label", {
517
+ /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ A("label", {
513
518
  htmlFor: "cpuLimit",
514
519
  className: "text-sm font-semibold flex items-center gap-2",
515
- children: [/* @__PURE__ */ O(_, {
516
- size: 14,
517
- className: "text-status-info-text"
518
- }), " CPU Limit"]
519
- }), /* @__PURE__ */ O("input", {
520
- "aria-label": "CPU Limit",
520
+ children: [
521
+ /* @__PURE__ */ k(g, {
522
+ size: 14,
523
+ className: "text-status-info-text"
524
+ }),
525
+ " ",
526
+ R("sandbox.create.fields.cpuLimit.label", "CPU Limit")
527
+ ]
528
+ }), /* @__PURE__ */ k("input", {
529
+ "aria-label": R("sandbox.create.fields.cpuLimit.label", "CPU Limit"),
521
530
  type: "text",
522
531
  id: "cpuLimit",
523
- value: H.cpuLimit,
524
- onChange: (e) => Z("cpuLimit", e.target.value),
525
- className: `w-full px-4 py-2.5 mt-2 border-2 rounded-lg bg-bg-surface font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${W.cpuLimit ? "border-status-error-border" : "border-border-subtle focus:border-primary"}`,
532
+ value: U.cpuLimit,
533
+ onChange: (e) => Q("cpuLimit", e.target.value),
534
+ className: `w-full px-4 py-2.5 mt-2 border-2 rounded-lg bg-bg-surface font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${G.cpuLimit ? "border-status-error-border" : "border-border-subtle focus:border-primary"}`,
526
535
  placeholder: "2"
527
536
  })] }),
528
- /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ k("label", {
537
+ /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ A("label", {
529
538
  htmlFor: "memoryRequest",
530
539
  className: "text-sm font-semibold flex items-center gap-2",
531
- children: [/* @__PURE__ */ O(C, {
532
- size: 14,
533
- className: "text-accent-purple-subtle"
534
- }), " Memory Request"]
535
- }), /* @__PURE__ */ O("input", {
536
- "aria-label": "Memory request",
540
+ children: [
541
+ /* @__PURE__ */ k(S, {
542
+ size: 14,
543
+ className: "text-accent-purple-subtle"
544
+ }),
545
+ " ",
546
+ R("sandbox.create.fields.memoryRequest.label", "Memory Request")
547
+ ]
548
+ }), /* @__PURE__ */ k("input", {
549
+ "aria-label": R("sandbox.create.fields.memoryRequest.label", "Memory Request"),
537
550
  type: "text",
538
551
  id: "memoryRequest",
539
- value: H.memoryRequest,
540
- onChange: (e) => Z("memoryRequest", e.target.value),
541
- className: `w-full px-4 py-2.5 mt-2 border-2 rounded-lg bg-bg-surface font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${W.memoryRequest ? "border-status-error-border" : "border-border-subtle focus:border-primary"}`,
552
+ value: U.memoryRequest,
553
+ onChange: (e) => Q("memoryRequest", e.target.value),
554
+ className: `w-full px-4 py-2.5 mt-2 border-2 rounded-lg bg-bg-surface font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${G.memoryRequest ? "border-status-error-border" : "border-border-subtle focus:border-primary"}`,
542
555
  placeholder: "1Gi"
543
556
  })] }),
544
- /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ k("label", {
557
+ /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ A("label", {
545
558
  htmlFor: "memoryLimit",
546
559
  className: "text-sm font-semibold flex items-center gap-2",
547
- children: [/* @__PURE__ */ O(C, {
548
- size: 14,
549
- className: "text-accent-purple-subtle"
550
- }), " Memory Limit"]
551
- }), /* @__PURE__ */ O("input", {
552
- "aria-label": "Memory limit",
560
+ children: [
561
+ /* @__PURE__ */ k(S, {
562
+ size: 14,
563
+ className: "text-accent-purple-subtle"
564
+ }),
565
+ " ",
566
+ R("sandbox.create.fields.memoryLimit.label", "Memory Limit")
567
+ ]
568
+ }), /* @__PURE__ */ k("input", {
569
+ "aria-label": R("sandbox.create.fields.memoryLimit.label", "Memory Limit"),
553
570
  type: "text",
554
571
  id: "memoryLimit",
555
- value: H.memoryLimit,
556
- onChange: (e) => Z("memoryLimit", e.target.value),
557
- className: `w-full px-4 py-2.5 mt-2 border-2 rounded-lg bg-bg-surface font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${W.memoryLimit ? "border-status-error-border" : "border-border-subtle focus:border-primary"}`,
572
+ value: U.memoryLimit,
573
+ onChange: (e) => Q("memoryLimit", e.target.value),
574
+ className: `w-full px-4 py-2.5 mt-2 border-2 rounded-lg bg-bg-surface font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${G.memoryLimit ? "border-status-error-border" : "border-border-subtle focus:border-primary"}`,
558
575
  placeholder: "4Gi"
559
576
  })] })
560
577
  ]
561
578
  }),
562
- /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ k("label", {
579
+ /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ A("label", {
563
580
  htmlFor: "ttlSeconds",
564
581
  className: "text-sm font-semibold flex items-center gap-2",
565
582
  children: [
566
- /* @__PURE__ */ O(ne, {
583
+ /* @__PURE__ */ k(w, {
567
584
  size: 14,
568
585
  className: "text-status-info-text"
569
586
  }),
570
- " Default TTL",
571
- /* @__PURE__ */ O(n, {
587
+ " ",
588
+ R("sandbox.template.fields.ttl.label", "Default TTL"),
589
+ /* @__PURE__ */ k(n, {
572
590
  variant: "outline",
573
591
  className: "text-xs ml-auto",
574
592
  children: ((e) => {
575
593
  let t = Math.floor(e / 3600), n = Math.floor(e % 3600 / 60);
576
594
  return t > 0 && n > 0 ? `${t}h ${n}m` : t > 0 ? `${t}h` : `${n}m`;
577
- })(H.ttlSeconds)
595
+ })(U.ttlSeconds)
578
596
  })
579
597
  ]
580
- }), /* @__PURE__ */ O("input", {
581
- "aria-label": "Default TTL seconds",
598
+ }), /* @__PURE__ */ k("input", {
599
+ "aria-label": R("sandbox.template.fields.ttl.label", "Default TTL"),
582
600
  type: "range",
583
601
  id: "ttlSeconds",
584
602
  min: 600,
585
603
  max: 86400,
586
604
  step: 600,
587
- value: H.ttlSeconds,
588
- onChange: (e) => Z("ttlSeconds", Number(e.target.value)),
605
+ value: U.ttlSeconds,
606
+ onChange: (e) => Q("ttlSeconds", Number(e.target.value)),
589
607
  className: "w-full mt-2 accent-primary"
590
608
  })] })
591
609
  ]
592
610
  })
593
611
  }),
594
- /* @__PURE__ */ O(i, {
612
+ /* @__PURE__ */ k(i, {
595
613
  className: "border-border-seam",
596
- children: /* @__PURE__ */ k(a, {
614
+ children: /* @__PURE__ */ A(a, {
597
615
  className: "p-6 space-y-5",
598
616
  children: [
599
- /* @__PURE__ */ k("h2", {
617
+ /* @__PURE__ */ A("h2", {
600
618
  className: "text-lg font-bold flex items-center gap-2",
601
- children: [/* @__PURE__ */ O(v, {
619
+ children: [/* @__PURE__ */ k(_, {
602
620
  size: 18,
603
621
  className: "text-primary"
604
622
  }), s(L, "sandbox.template.sections.storage", "Default Storage")]
605
623
  }),
606
- /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
624
+ /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
607
625
  htmlFor: "storageModeGroup",
608
626
  className: "block text-sm font-semibold mb-3",
609
- children: "Mode"
610
- }), /* @__PURE__ */ O("div", {
627
+ children: R("sandbox.template.fields.storageMode.label", "Mode")
628
+ }), /* @__PURE__ */ k("div", {
611
629
  id: "storageModeGroup",
612
- "aria-label": "Storage mode",
630
+ "aria-label": R("sandbox.template.fields.storageMode.label", "Mode"),
613
631
  className: "grid grid-cols-3 gap-3",
614
632
  children: [
615
633
  "NONE",
616
634
  "EPHEMERAL",
617
635
  "PERSISTENT"
618
- ].map((e) => /* @__PURE__ */ O("button", {
619
- type: "button",
620
- onClick: () => Z("storageMode", e),
621
- className: `p-3 rounded-lg border-2 text-left transition-all duration-200 ${H.storageMode === e ? "border-primary bg-action-primary-bg/5 shadow-sm" : "border-border-subtle hover:border-primary/50 hover:bg-bg-sunken/50"}`,
622
- children: /* @__PURE__ */ O("p", {
623
- className: "font-medium text-sm",
624
- children: {
625
- NONE: "None",
626
- EPHEMERAL: "Ephemeral",
627
- PERSISTENT: "Persistent"
628
- }[e]
629
- })
630
- }, e))
636
+ ].map((e) => {
637
+ let t = U.storageMode === e, n = {
638
+ NONE: R("sandbox.template.fields.storageMode.none.label", "None"),
639
+ EPHEMERAL: R("sandbox.template.fields.storageMode.ephemeral.label", "Ephemeral"),
640
+ PERSISTENT: R("sandbox.template.fields.storageMode.persistent.label", "Persistent")
641
+ };
642
+ return /* @__PURE__ */ k("button", {
643
+ type: "button",
644
+ onClick: () => Q("storageMode", e),
645
+ className: `p-3 rounded-lg border-2 text-left transition-all duration-200 ${t ? "border-primary bg-action-primary-bg/5 shadow-sm" : "border-border-subtle hover:border-primary/50 hover:bg-bg-sunken/50"}`,
646
+ children: /* @__PURE__ */ k("p", {
647
+ className: "font-medium text-sm",
648
+ children: n[e]
649
+ })
650
+ }, e);
651
+ })
631
652
  })] }),
632
- H.storageMode !== "NONE" && /* @__PURE__ */ k("div", {
653
+ U.storageMode !== "NONE" && /* @__PURE__ */ A("div", {
633
654
  className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
634
655
  children: [
635
- /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
656
+ /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
636
657
  htmlFor: "tplStorageSizeGi",
637
658
  className: "block text-sm font-semibold mb-2",
638
- children: "Size (GiB)"
639
- }), /* @__PURE__ */ O("input", {
659
+ children: R("sandbox.template.fields.storageSizeGi.label", "Size (GiB)")
660
+ }), /* @__PURE__ */ k("input", {
640
661
  id: "tplStorageSizeGi",
641
- "aria-label": "Size (GiB)",
662
+ "aria-label": R("sandbox.template.fields.storageSizeGi.ariaLabel", "Size (GiB)"),
642
663
  type: "number",
643
- value: H.storageSizeGi,
644
- onChange: (e) => Z("storageSizeGi", Number(e.target.value)),
664
+ value: U.storageSizeGi,
665
+ onChange: (e) => Q("storageSizeGi", Number(e.target.value)),
645
666
  min: 1,
646
667
  max: 200,
647
668
  className: "w-full px-4 py-2.5 border-2 border-border-subtle rounded-lg bg-bg-surface font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all"
648
669
  })] }),
649
- /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
670
+ /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("label", {
650
671
  htmlFor: "tplStorageMountPath",
651
672
  className: "block text-sm font-semibold mb-2",
652
- children: "Mount Path"
653
- }), /* @__PURE__ */ O("input", {
673
+ children: R("sandbox.template.fields.storageMountPath.label", "Mount Path")
674
+ }), /* @__PURE__ */ k("input", {
654
675
  id: "tplStorageMountPath",
655
- "aria-label": "Mount Path",
676
+ "aria-label": R("sandbox.template.fields.storageMountPath.ariaLabel", "Mount Path"),
656
677
  type: "text",
657
- value: H.storageMountPath,
658
- onChange: (e) => Z("storageMountPath", e.target.value),
678
+ value: U.storageMountPath,
679
+ onChange: (e) => Q("storageMountPath", e.target.value),
659
680
  className: "w-full px-4 py-2.5 border-2 border-border-subtle rounded-lg bg-bg-surface font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all",
660
681
  placeholder: "/data"
661
682
  })] }),
662
- H.storageMode === "PERSISTENT" && /* @__PURE__ */ k("div", {
683
+ U.storageMode === "PERSISTENT" && /* @__PURE__ */ A("div", {
663
684
  className: "flex items-center gap-3 sm:col-span-2",
664
- children: [/* @__PURE__ */ O("input", {
665
- "aria-label": "Retain storage on delete",
685
+ children: [/* @__PURE__ */ k("input", {
686
+ "aria-label": R("sandbox.template.fields.storageRetainOnDelete.ariaLabel", "Retain storage on delete"),
666
687
  type: "checkbox",
667
688
  id: "storageRetainOnDelete",
668
- checked: H.storageRetainOnDelete,
669
- onChange: (e) => Z("storageRetainOnDelete", e.target.checked),
689
+ checked: U.storageRetainOnDelete,
690
+ onChange: (e) => Q("storageRetainOnDelete", e.target.checked),
670
691
  className: "size-4 rounded border-border-subtle text-primary focus:ring-primary/20"
671
- }), /* @__PURE__ */ O("label", {
692
+ }), /* @__PURE__ */ k("label", {
672
693
  htmlFor: "storageRetainOnDelete",
673
694
  className: "text-sm font-medium",
674
- children: "Retain volume data when sandbox is deleted"
695
+ children: R("sandbox.template.fields.storageRetainOnDelete.label", "Retain volume data when sandbox is deleted")
675
696
  })]
676
697
  })
677
698
  ]
@@ -679,72 +700,72 @@ function P() {
679
700
  ]
680
701
  })
681
702
  }),
682
- /* @__PURE__ */ O(i, {
703
+ /* @__PURE__ */ k(i, {
683
704
  className: "border-border-seam",
684
- children: /* @__PURE__ */ k(a, {
705
+ children: /* @__PURE__ */ A(a, {
685
706
  className: "p-6 space-y-5",
686
707
  children: [
687
- /* @__PURE__ */ k("div", {
708
+ /* @__PURE__ */ A("div", {
688
709
  className: "flex items-center justify-between",
689
- children: [/* @__PURE__ */ k("h2", {
710
+ children: [/* @__PURE__ */ A("h2", {
690
711
  className: "text-lg font-bold flex items-center gap-2",
691
712
  children: [
692
- /* @__PURE__ */ O(y, {
713
+ /* @__PURE__ */ k(v, {
693
714
  size: 18,
694
715
  className: "text-primary"
695
716
  }),
696
717
  s(L, "sandbox.template.sections.allowedImages", "Allowed Images"),
697
- H.allowedImages.length > 0 && /* @__PURE__ */ O(n, {
718
+ U.allowedImages.length > 0 && /* @__PURE__ */ k(n, {
698
719
  variant: "secondary",
699
- children: H.allowedImages.length
720
+ children: U.allowedImages.length
700
721
  })
701
722
  ]
702
- }), /* @__PURE__ */ k(r, {
723
+ }), /* @__PURE__ */ A(r, {
703
724
  type: "button",
704
725
  variant: "outline",
705
726
  size: "sm",
706
- onClick: ae,
707
- children: [/* @__PURE__ */ O(w, { size: 14 }), "Add Image"]
727
+ onClick: se,
728
+ children: [/* @__PURE__ */ k(C, { size: 14 }), R("sandbox.template.actions.addImage", "Add Image")]
708
729
  })]
709
730
  }),
710
- /* @__PURE__ */ O("p", {
731
+ /* @__PURE__ */ k("p", {
711
732
  className: "text-xs text-text-secondary",
712
733
  children: s(L, "sandbox.template.allowedImages.hint", "Restrict which container images can be used with this template. Leave empty to allow any image.")
713
734
  }),
714
- H.allowedImages.map((e, t) => /* @__PURE__ */ k("div", {
735
+ U.allowedImages.map((e, t) => /* @__PURE__ */ A("div", {
715
736
  className: "flex items-center gap-2",
716
- children: [/* @__PURE__ */ O("input", {
717
- "aria-label": "Allowed image",
737
+ children: [/* @__PURE__ */ k("input", {
738
+ "aria-label": R("sandbox.template.fields.allowedImages.label", "Allowed image"),
718
739
  type: "text",
719
740
  value: e,
720
- onChange: (e) => se(t, e.target.value),
741
+ onChange: (e) => le(t, e.target.value),
721
742
  className: "flex-1 px-4 py-2 border-2 border-border-subtle rounded-lg bg-bg-surface text-sm font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all",
722
- placeholder: "harbor-internal.burdenoff.com/sandbox/*"
723
- }), /* @__PURE__ */ O("button", {
743
+ placeholder: R("sandbox.template.fields.allowedImages.placeholder", "harbor-internal.burdenoff.com/sandbox/*")
744
+ }), /* @__PURE__ */ k("button", {
724
745
  type: "button",
725
- onClick: () => oe(t),
746
+ onClick: () => ce(t),
726
747
  className: "p-2 text-status-error-text hover:bg-status-error-bg/10 rounded-lg",
727
- children: /* @__PURE__ */ O(T, { size: 14 })
748
+ children: /* @__PURE__ */ k(T, { size: 14 })
728
749
  })]
729
750
  }, `allowed-img-${t}-${e}`))
730
751
  ]
731
752
  })
732
753
  }),
733
- /* @__PURE__ */ k("div", {
754
+ /* @__PURE__ */ A("div", {
734
755
  className: "flex flex-col sm:flex-row gap-3 pt-2",
735
- children: [/* @__PURE__ */ k(r, {
756
+ children: [/* @__PURE__ */ A(r, {
736
757
  type: "submit",
737
- disabled: J,
758
+ disabled: Y,
738
759
  size: "lg",
739
- children: [J ? /* @__PURE__ */ O(S, {
760
+ children: [Y ? /* @__PURE__ */ k(x, {
740
761
  size: 18,
741
762
  className: "animate-spin"
742
- }) : /* @__PURE__ */ O(te, { size: 18 }), R ? s(L, "sandbox.template.actions.saveChanges", "Save Changes") : s(L, "sandbox.template.actions.create", "Create Template")]
743
- }), /* @__PURE__ */ O(r, {
763
+ }) : /* @__PURE__ */ k(re, { size: 18 }), z ? s(L, "sandbox.template.actions.saveChanges", "Save Changes") : s(L, "sandbox.template.actions.create", "Create Template")]
764
+ }), /* @__PURE__ */ k(r, {
744
765
  type: "button",
745
766
  variant: "outline",
746
767
  onClick: () => F?.(t(P, "templates")),
747
- disabled: J,
768
+ disabled: Y,
748
769
  children: s(L, "sandbox.template.actions.cancel", "Cancel")
749
770
  })]
750
771
  })