@burdenoff/microfe-sandbox 2026.1117.1 → 2026.1119.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.
@@ -1,16 +1,16 @@
1
1
  import { Badge as e, Button as t, Card as n, CardContent as r, EmphasisPanel as i } from "../components/ui.js";
2
- import { useSandbox as a } from "../providers/SandboxProvider.js";
3
- import { joinPath as o } from "../utils/navigation.js";
4
- import { tWithFallback as s } from "../utils/i18n.js";
5
- import { PageLayout as c } from "../components/PageLayout.js";
6
- import { useCreateSandboxTemplateMutation as l, useGetSandboxTemplateQuery as u, useUpdateSandboxTemplateMutation as d } from "../../generated/wspace-operations.js";
7
- import { useTr as f } from "../hooks/useTr.js";
8
- import { useEffect as p, useState as m } from "react";
9
- import { AlertCircle as h, ArrowLeft as ee, CheckCircle2 as te, Container as g, Cpu as _, Database as ne, Image as v, Info as y, LayoutTemplate as re, Loader2 as ie, MemoryStick as b, Plus as x, Save as S, Timer as C, Trash2 as w, X as T } from "lucide-react";
10
- import { useParams as E } from "react-router";
11
- import { useI18n as D } from "@burdenoff/fe-libs/shared/providers/shell";
2
+ import { useSandbox as ee } from "../providers/SandboxProvider.js";
3
+ import { joinPath as a } from "../utils/navigation.js";
4
+ import { tWithFallback as o } from "../utils/i18n.js";
5
+ import { PageLayout as s } from "../components/PageLayout.js";
6
+ import { useCreateSandboxTemplateMutation as c, useGetSandboxTemplateQuery as l, useUpdateSandboxTemplateMutation as u } from "../../generated/wspace-operations.js";
7
+ import { useTr as d } from "../hooks/useTr.js";
8
+ import { useEffect as te, useState as f } from "react";
9
+ 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 T, Timer as E, Trash2 as D, X as ne } from "lucide-react";
10
+ import { useParams as re } from "react-router";
11
+ import { useI18n as ie } from "@burdenoff/fe-libs/shared/providers/shell";
12
12
  import { jsx as O, jsxs as k } from "react/jsx-runtime";
13
- import { PagePurpose as ae } from "@burdenoff/fe-libs/ui";
13
+ import { PagePurpose as ae, ThemedSelect as oe } from "@burdenoff/fe-libs/ui";
14
14
  // src/sandbox/pages/TemplateDetailPage.tsx
15
15
  var A = 0;
16
16
  function j() {
@@ -30,13 +30,13 @@ function M() {
30
30
  };
31
31
  }
32
32
  function N() {
33
- let { templateId: A } = E(), { basePath: N = "/", navigate: P, workspaceId: F } = a(), { t: I } = D(), L = f(), R = !!A && A !== "new", [z] = l(), [B] = d(), { data: V } = u({
33
+ let { templateId: A } = re(), { basePath: N = "/", navigate: P, workspaceId: F } = ee(), { t: I } = ie(), L = d(), R = !!A && A !== "new", [z] = c(), [B] = u(), { data: V } = l({
34
34
  variables: {
35
35
  context: { workspaceId: F },
36
36
  id: A
37
37
  },
38
38
  skip: !R || !A || !F
39
- }), [H, U] = m({
39
+ }), [H, U] = f({
40
40
  name: "",
41
41
  description: "",
42
42
  template: "AI_BUILDER",
@@ -56,7 +56,7 @@ function N() {
56
56
  storageRetainOnDelete: !1,
57
57
  allowedImages: []
58
58
  });
59
- p(() => {
59
+ te(() => {
60
60
  let e = V?.getSandboxTemplate;
61
61
  e && U({
62
62
  name: e.name ?? "",
@@ -93,7 +93,7 @@ function N() {
93
93
  allowedImages: e.allowedImages ?? []
94
94
  });
95
95
  }, [V]);
96
- let [W, G] = m({}), [K, q] = m(null), [J, Y] = m(!1), X = (e, t) => {
96
+ let [W, G] = f({}), [K, q] = f(null), [J, Y] = f(!1), X = (e, t) => {
97
97
  q({
98
98
  type: e,
99
99
  message: t
@@ -106,17 +106,17 @@ function N() {
106
106
  let n = { ...t };
107
107
  return delete n[e], n;
108
108
  });
109
- }, oe = () => {
109
+ }, se = () => {
110
110
  U((e) => ({
111
111
  ...e,
112
112
  containers: [...e.containers, M()]
113
113
  }));
114
- }, Q = (e) => {
114
+ }, ce = (e) => {
115
115
  U((t) => ({
116
116
  ...t,
117
117
  containers: t.containers.filter((t, n) => n !== e)
118
118
  }));
119
- }, $ = (e, t, n) => {
119
+ }, Q = (e, t, n) => {
120
120
  U((r) => ({
121
121
  ...r,
122
122
  containers: r.containers.map((r, i) => i === e ? {
@@ -124,32 +124,32 @@ function N() {
124
124
  [t]: n
125
125
  } : r)
126
126
  }));
127
- }, se = () => {
127
+ }, le = () => {
128
128
  U((e) => ({
129
129
  ...e,
130
130
  allowedImages: [...e.allowedImages, ""]
131
131
  }));
132
- }, ce = (e) => {
132
+ }, $ = (e) => {
133
133
  U((t) => ({
134
134
  ...t,
135
135
  allowedImages: t.allowedImages.filter((t, n) => n !== e)
136
136
  }));
137
- }, le = (e, t) => {
137
+ }, ue = (e, t) => {
138
138
  U((n) => ({
139
139
  ...n,
140
140
  allowedImages: n.allowedImages.map((n, r) => r === e ? t : n)
141
141
  }));
142
- }, ue = () => {
142
+ }, de = () => {
143
143
  let e = {};
144
- return H.name.trim() || (e.name = s(I, "sandbox.template.errors.nameRequired", "Name is required")), H.cpuRequest.trim() || (e.cpuRequest = s(I, "sandbox.template.errors.cpuRequestRequired", "CPU request is required")), H.cpuLimit.trim() || (e.cpuLimit = s(I, "sandbox.template.errors.cpuLimitRequired", "CPU limit is required")), H.memoryRequest.trim() || (e.memoryRequest = s(I, "sandbox.template.errors.memoryRequestRequired", "Memory request is required")), H.memoryLimit.trim() || (e.memoryLimit = s(I, "sandbox.template.errors.memoryLimitRequired", "Memory limit is required")), G(e), Object.keys(e).length === 0;
144
+ return H.name.trim() || (e.name = o(I, "sandbox.template.errors.nameRequired", "Name is required")), H.cpuRequest.trim() || (e.cpuRequest = o(I, "sandbox.template.errors.cpuRequestRequired", "CPU request is required")), H.cpuLimit.trim() || (e.cpuLimit = o(I, "sandbox.template.errors.cpuLimitRequired", "CPU limit is required")), H.memoryRequest.trim() || (e.memoryRequest = o(I, "sandbox.template.errors.memoryRequestRequired", "Memory request is required")), H.memoryLimit.trim() || (e.memoryLimit = o(I, "sandbox.template.errors.memoryLimitRequired", "Memory limit is required")), G(e), Object.keys(e).length === 0;
145
145
  };
146
- return /* @__PURE__ */ k(c, {
146
+ return /* @__PURE__ */ k(s, {
147
147
  showHeader: !1,
148
148
  children: [
149
149
  K && /* @__PURE__ */ k("div", {
150
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 ${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"}`,
151
151
  children: [
152
- K.type === "success" ? /* @__PURE__ */ O(te, { size: 20 }) : /* @__PURE__ */ O(h, { size: 20 }),
152
+ K.type === "success" ? /* @__PURE__ */ O(h, { size: 20 }) : /* @__PURE__ */ O(p, { size: 20 }),
153
153
  /* @__PURE__ */ O("span", {
154
154
  className: "font-medium",
155
155
  children: K.message
@@ -159,7 +159,7 @@ function N() {
159
159
  onClick: () => q(null),
160
160
  "aria-label": L("sandbox.template.notification.dismiss", "Dismiss notification"),
161
161
  className: "ml-2 p-1 rounded-md hover:bg-accent",
162
- children: /* @__PURE__ */ O(T, { size: 16 })
162
+ children: /* @__PURE__ */ O(ne, { size: 16 })
163
163
  })
164
164
  ]
165
165
  }),
@@ -169,31 +169,31 @@ function N() {
169
169
  className: "flex items-center gap-4",
170
170
  children: [/* @__PURE__ */ O("button", {
171
171
  type: "button",
172
- onClick: () => P?.(o(N, "templates")),
172
+ onClick: () => P?.(a(N, "templates")),
173
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",
174
- "aria-label": s(I, "sandbox.template.actions.backToTemplates", "Back to templates"),
175
- children: /* @__PURE__ */ O(ee, { size: 20 })
174
+ "aria-label": o(I, "sandbox.template.actions.backToTemplates", "Back to templates"),
175
+ children: /* @__PURE__ */ O(m, { size: 20 })
176
176
  }), /* @__PURE__ */ k("div", {
177
177
  className: "flex items-center gap-3",
178
178
  children: [/* @__PURE__ */ O("div", {
179
179
  className: "p-2.5 rounded-lg bg-action-primary-bg/10",
180
- children: /* @__PURE__ */ O(re, {
180
+ children: /* @__PURE__ */ O(x, {
181
181
  size: 24,
182
182
  className: "text-primary"
183
183
  })
184
184
  }), /* @__PURE__ */ O("h1", {
185
185
  className: "text-2xl sm:text-3xl font-bold",
186
- children: R ? s(I, "sandbox.template.title.edit", "Edit Template") : s(I, "sandbox.template.title.create", "Create Template")
186
+ children: R ? o(I, "sandbox.template.title.edit", "Edit Template") : o(I, "sandbox.template.title.create", "Create Template")
187
187
  })]
188
188
  })]
189
189
  }), /* @__PURE__ */ O(ae, {
190
190
  className: "mt-3",
191
- children: R ? s(I, "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(I, "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: R ? o(I, "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.") : o(I, "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.")
192
192
  })]
193
193
  }),
194
194
  /* @__PURE__ */ k("form", {
195
195
  onSubmit: async (e) => {
196
- if (e.preventDefault(), !ue()) X("error", s(I, "sandbox.template.errors.fixFormErrors", "Please fix the form errors"));
196
+ if (e.preventDefault(), !de()) X("error", o(I, "sandbox.template.errors.fixFormErrors", "Please fix the form errors"));
197
197
  else {
198
198
  Y(!0);
199
199
  try {
@@ -233,9 +233,9 @@ function N() {
233
233
  R ? await B({ variables: { input: {
234
234
  id: A,
235
235
  ...t
236
- } } }) : await z({ variables: { input: t } }), X("success", R ? s(I, "sandbox.template.success.updated", "Template updated!") : s(I, "sandbox.template.success.created", "Template created!")), setTimeout(() => P?.(o(N, "templates")), 1500);
236
+ } } }) : await z({ variables: { input: t } }), X("success", R ? o(I, "sandbox.template.success.updated", "Template updated!") : o(I, "sandbox.template.success.created", "Template created!")), setTimeout(() => P?.(a(N, "templates")), 1500);
237
237
  } catch {
238
- X("error", s(I, "sandbox.template.errors.saveFailed", "Failed to save template"));
238
+ X("error", o(I, "sandbox.template.errors.saveFailed", "Failed to save template"));
239
239
  } finally {
240
240
  Y(!1);
241
241
  }
@@ -250,10 +250,10 @@ function N() {
250
250
  children: [
251
251
  /* @__PURE__ */ k("h2", {
252
252
  className: "text-lg font-bold flex items-center gap-2",
253
- children: [/* @__PURE__ */ O(y, {
253
+ children: [/* @__PURE__ */ O(b, {
254
254
  size: 18,
255
255
  className: "text-primary"
256
- }), s(I, "sandbox.template.sections.info", "Template Information")]
256
+ }), o(I, "sandbox.template.sections.info", "Template Information")]
257
257
  }),
258
258
  /* @__PURE__ */ k("div", { children: [
259
259
  /* @__PURE__ */ k("label", {
@@ -279,7 +279,7 @@ function N() {
279
279
  }),
280
280
  W.name && /* @__PURE__ */ k("p", {
281
281
  className: "text-sm text-status-error-text mt-1 flex items-center gap-1",
282
- children: [/* @__PURE__ */ O(h, { size: 14 }), W.name]
282
+ children: [/* @__PURE__ */ O(p, { size: 14 }), W.name]
283
283
  })
284
284
  ] }),
285
285
  /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
@@ -301,7 +301,7 @@ function N() {
301
301
  htmlFor: "template",
302
302
  className: "block text-sm font-semibold mb-2",
303
303
  children: L("sandbox.template.fields.templateType.label", "Template Type")
304
- }), /* @__PURE__ */ k("select", {
304
+ }), /* @__PURE__ */ k(oe, {
305
305
  id: "template",
306
306
  value: H.template,
307
307
  onChange: (e) => Z("template", e.target.value),
@@ -356,7 +356,7 @@ function N() {
356
356
  size: 18,
357
357
  className: "text-primary"
358
358
  }),
359
- s(I, "sandbox.template.sections.containers", "Default Containers"),
359
+ o(I, "sandbox.template.sections.containers", "Default Containers"),
360
360
  /* @__PURE__ */ O(e, {
361
361
  variant: "secondary",
362
362
  children: H.containers.length
@@ -366,8 +366,8 @@ function N() {
366
366
  type: "button",
367
367
  variant: "outline",
368
368
  size: "sm",
369
- onClick: oe,
370
- children: [/* @__PURE__ */ O(x, { size: 14 }), L("sandbox.template.container.addContainer", "Add Container")]
369
+ onClick: se,
370
+ children: [/* @__PURE__ */ O(w, { size: 14 }), L("sandbox.template.container.addContainer", "Add Container")]
371
371
  })]
372
372
  }), /* @__PURE__ */ O("div", {
373
373
  className: "space-y-4",
@@ -384,8 +384,8 @@ function N() {
384
384
  variant: "ghost",
385
385
  size: "icon",
386
386
  className: "text-status-error-text hover:text-status-error-text size-7",
387
- onClick: () => Q(n),
388
- children: /* @__PURE__ */ O(w, { size: 14 })
387
+ onClick: () => ce(n),
388
+ children: /* @__PURE__ */ O(D, { size: 14 })
389
389
  })]
390
390
  }),
391
391
  /* @__PURE__ */ k("div", {
@@ -399,7 +399,7 @@ function N() {
399
399
  id: `tpl-${e._rowId}-name`,
400
400
  type: "text",
401
401
  value: e.name,
402
- onChange: (e) => $(n, "name", e.target.value),
402
+ onChange: (e) => Q(n, "name", e.target.value),
403
403
  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
404
  placeholder: L("sandbox.create.container.fields.name.placeholder", "main")
405
405
  })] }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
@@ -411,7 +411,7 @@ function N() {
411
411
  id: `tpl-${e._rowId}-image`,
412
412
  type: "text",
413
413
  value: e.image,
414
- onChange: (e) => $(n, "image", e.target.value),
414
+ onChange: (e) => Q(n, "image", e.target.value),
415
415
  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
416
  placeholder: L("sandbox.template.container.imagePlaceholder", "harbor-internal.burdenoff.com/sandbox/python:3.12")
417
417
  })] })]
@@ -428,7 +428,7 @@ function N() {
428
428
  id: `tpl-${e._rowId}-cpuReq`,
429
429
  type: "text",
430
430
  value: e.requestsCpu,
431
- onChange: (e) => $(n, "requestsCpu", e.target.value),
431
+ onChange: (e) => Q(n, "requestsCpu", e.target.value),
432
432
  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
433
  placeholder: "250m"
434
434
  })] }),
@@ -441,7 +441,7 @@ function N() {
441
441
  id: `tpl-${e._rowId}-cpuLim`,
442
442
  type: "text",
443
443
  value: e.limitsCpu,
444
- onChange: (e) => $(n, "limitsCpu", e.target.value),
444
+ onChange: (e) => Q(n, "limitsCpu", e.target.value),
445
445
  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
446
  placeholder: "1"
447
447
  })] }),
@@ -454,7 +454,7 @@ function N() {
454
454
  id: `tpl-${e._rowId}-memReq`,
455
455
  type: "text",
456
456
  value: e.requestsMemory,
457
- onChange: (e) => $(n, "requestsMemory", e.target.value),
457
+ onChange: (e) => Q(n, "requestsMemory", e.target.value),
458
458
  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
459
  placeholder: "512Mi"
460
460
  })] }),
@@ -467,7 +467,7 @@ function N() {
467
467
  id: `tpl-${e._rowId}-memLim`,
468
468
  type: "text",
469
469
  value: e.limitsMemory,
470
- onChange: (e) => $(n, "limitsMemory", e.target.value),
470
+ onChange: (e) => Q(n, "limitsMemory", e.target.value),
471
471
  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",
472
472
  placeholder: "2Gi"
473
473
  })] })
@@ -488,7 +488,7 @@ function N() {
488
488
  children: [/* @__PURE__ */ O(_, {
489
489
  size: 18,
490
490
  className: "text-primary"
491
- }), s(I, "sandbox.template.sections.resources", "Default Pod Resources")]
491
+ }), o(I, "sandbox.template.sections.resources", "Default Pod Resources")]
492
492
  }),
493
493
  /* @__PURE__ */ k("div", {
494
494
  className: "grid grid-cols-1 sm:grid-cols-2 gap-5",
@@ -537,7 +537,7 @@ function N() {
537
537
  htmlFor: "memoryRequest",
538
538
  className: "text-sm font-semibold flex items-center gap-2",
539
539
  children: [
540
- /* @__PURE__ */ O(b, {
540
+ /* @__PURE__ */ O(C, {
541
541
  size: 14,
542
542
  className: "text-accent-purple-subtle"
543
543
  }),
@@ -557,7 +557,7 @@ function N() {
557
557
  htmlFor: "memoryLimit",
558
558
  className: "text-sm font-semibold flex items-center gap-2",
559
559
  children: [
560
- /* @__PURE__ */ O(b, {
560
+ /* @__PURE__ */ O(C, {
561
561
  size: 14,
562
562
  className: "text-accent-purple-subtle"
563
563
  }),
@@ -579,7 +579,7 @@ function N() {
579
579
  htmlFor: "ttlSeconds",
580
580
  className: "text-sm font-semibold flex items-center gap-2",
581
581
  children: [
582
- /* @__PURE__ */ O(C, {
582
+ /* @__PURE__ */ O(E, {
583
583
  size: 14,
584
584
  className: "text-status-info-text"
585
585
  }),
@@ -615,10 +615,10 @@ function N() {
615
615
  children: [
616
616
  /* @__PURE__ */ k("h2", {
617
617
  className: "text-lg font-bold flex items-center gap-2",
618
- children: [/* @__PURE__ */ O(ne, {
618
+ children: [/* @__PURE__ */ O(v, {
619
619
  size: 18,
620
620
  className: "text-primary"
621
- }), s(I, "sandbox.template.sections.storage", "Default Storage")]
621
+ }), o(I, "sandbox.template.sections.storage", "Default Storage")]
622
622
  }),
623
623
  /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("label", {
624
624
  htmlFor: "storageModeGroup",
@@ -709,11 +709,11 @@ function N() {
709
709
  children: [/* @__PURE__ */ k("h2", {
710
710
  className: "text-lg font-bold flex items-center gap-2",
711
711
  children: [
712
- /* @__PURE__ */ O(v, {
712
+ /* @__PURE__ */ O(y, {
713
713
  size: 18,
714
714
  className: "text-primary"
715
715
  }),
716
- s(I, "sandbox.template.sections.allowedImages", "Allowed Images"),
716
+ o(I, "sandbox.template.sections.allowedImages", "Allowed Images"),
717
717
  H.allowedImages.length > 0 && /* @__PURE__ */ O(e, {
718
718
  variant: "secondary",
719
719
  children: H.allowedImages.length
@@ -723,13 +723,13 @@ function N() {
723
723
  type: "button",
724
724
  variant: "outline",
725
725
  size: "sm",
726
- onClick: se,
727
- children: [/* @__PURE__ */ O(x, { size: 14 }), L("sandbox.template.actions.addImage", "Add Image")]
726
+ onClick: le,
727
+ children: [/* @__PURE__ */ O(w, { size: 14 }), L("sandbox.template.actions.addImage", "Add Image")]
728
728
  })]
729
729
  }),
730
730
  /* @__PURE__ */ O("p", {
731
731
  className: "text-xs text-text-secondary",
732
- children: s(I, "sandbox.template.allowedImages.hint", "Restrict which container images can be used with this template. Leave empty to allow any image.")
732
+ children: o(I, "sandbox.template.allowedImages.hint", "Restrict which container images can be used with this template. Leave empty to allow any image.")
733
733
  }),
734
734
  H.allowedImages.map((e, t) => /* @__PURE__ */ k("div", {
735
735
  className: "flex items-center gap-2",
@@ -737,14 +737,14 @@ function N() {
737
737
  "aria-label": L("sandbox.template.fields.allowedImages.label", "Allowed image"),
738
738
  type: "text",
739
739
  value: e,
740
- onChange: (e) => le(t, e.target.value),
740
+ onChange: (e) => ue(t, e.target.value),
741
741
  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",
742
742
  placeholder: L("sandbox.template.fields.allowedImages.placeholder", "harbor-internal.burdenoff.com/sandbox/*")
743
743
  }), /* @__PURE__ */ O("button", {
744
744
  type: "button",
745
- onClick: () => ce(t),
745
+ onClick: () => $(t),
746
746
  className: "p-2 text-status-error-text hover:bg-status-error-bg/10 rounded-lg",
747
- children: /* @__PURE__ */ O(w, { size: 14 })
747
+ children: /* @__PURE__ */ O(D, { size: 14 })
748
748
  })]
749
749
  }, `allowed-img-${t}-${e}`))
750
750
  ]
@@ -756,16 +756,16 @@ function N() {
756
756
  type: "submit",
757
757
  disabled: J,
758
758
  size: "lg",
759
- children: [J ? /* @__PURE__ */ O(ie, {
759
+ children: [J ? /* @__PURE__ */ O(S, {
760
760
  size: 18,
761
761
  className: "animate-spin"
762
- }) : /* @__PURE__ */ O(S, { size: 18 }), R ? s(I, "sandbox.template.actions.saveChanges", "Save Changes") : s(I, "sandbox.template.actions.create", "Create Template")]
762
+ }) : /* @__PURE__ */ O(T, { size: 18 }), R ? o(I, "sandbox.template.actions.saveChanges", "Save Changes") : o(I, "sandbox.template.actions.create", "Create Template")]
763
763
  }), /* @__PURE__ */ O(t, {
764
764
  type: "button",
765
765
  variant: "outline",
766
- onClick: () => P?.(o(N, "templates")),
766
+ onClick: () => P?.(a(N, "templates")),
767
767
  disabled: J,
768
- children: s(I, "sandbox.template.actions.cancel", "Cancel")
768
+ children: o(I, "sandbox.template.actions.cancel", "Cancel")
769
769
  })]
770
770
  })
771
771
  ]