@burdenoff/microfe-sandbox 2026.1101.2 → 2026.1109.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/dist/dev/Dashboard.d.ts +1 -2
  2. package/dist/dev/SandboxApp.d.ts +1 -2
  3. package/dist/dev/main.d.ts +0 -2
  4. package/dist/generated/global-operations.d.ts +4 -2
  5. package/dist/generated/global-types.d.ts +2 -22
  6. package/dist/generated/wspace-operations.d.ts +525 -438
  7. package/dist/generated/wspace-operations.js +2 -3
  8. package/dist/generated/wspace-operations.js.map +1 -1
  9. package/dist/generated/wspace-types.d.ts +4 -24
  10. package/dist/generated/wspace-types.js +1 -2
  11. package/dist/generated/wspace-types.js.map +1 -1
  12. package/dist/index.d.ts +0 -1
  13. package/dist/node_modules/clsx/dist/clsx.js +8 -7
  14. package/dist/node_modules/clsx/dist/clsx.js.map +1 -1
  15. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +229 -167
  16. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
  17. package/dist/sandbox/AdminRoutes.d.ts +1 -2
  18. package/dist/sandbox/AdminRoutes.js +1 -2
  19. package/dist/sandbox/AdminRoutes.js.map +1 -1
  20. package/dist/sandbox/SandboxAdminRoot.d.ts +0 -2
  21. package/dist/sandbox/SandboxAdminRoot.js +13 -10
  22. package/dist/sandbox/SandboxAdminRoot.js.map +1 -1
  23. package/dist/sandbox/SandboxRoot.d.ts +0 -2
  24. package/dist/sandbox/SandboxRoot.js +13 -10
  25. package/dist/sandbox/SandboxRoot.js.map +1 -1
  26. package/dist/sandbox/UserRoutes.d.ts +1 -2
  27. package/dist/sandbox/UserRoutes.js +1 -2
  28. package/dist/sandbox/UserRoutes.js.map +1 -1
  29. package/dist/sandbox/components/ContainerImagePicker.d.ts +1 -2
  30. package/dist/sandbox/components/CountdownTimer.d.ts +1 -2
  31. package/dist/sandbox/components/CountdownTimer.js +1 -2
  32. package/dist/sandbox/components/CountdownTimer.js.map +1 -1
  33. package/dist/sandbox/components/ExportSandboxesDialog.d.ts +1 -2
  34. package/dist/sandbox/components/ExportSandboxesDialog.js +22 -23
  35. package/dist/sandbox/components/ExportSandboxesDialog.js.map +1 -1
  36. package/dist/sandbox/components/ExtendTTLModal.d.ts +1 -2
  37. package/dist/sandbox/components/ExtendTTLModal.js +1 -2
  38. package/dist/sandbox/components/ExtendTTLModal.js.map +1 -1
  39. package/dist/sandbox/components/FilesFolderPicker.d.ts +1 -2
  40. package/dist/sandbox/components/FilesFolderPicker.js +1 -2
  41. package/dist/sandbox/components/FilesFolderPicker.js.map +1 -1
  42. package/dist/sandbox/components/PageLayout.d.ts +2 -4
  43. package/dist/sandbox/components/PageLayout.js +1 -2
  44. package/dist/sandbox/components/PageLayout.js.map +1 -1
  45. package/dist/sandbox/components/ResourceDisplay.d.ts +0 -2
  46. package/dist/sandbox/components/ResourceDisplay.js +1 -2
  47. package/dist/sandbox/components/ResourceDisplay.js.map +1 -1
  48. package/dist/sandbox/components/RouteUtils.d.ts +2 -4
  49. package/dist/sandbox/components/RouteUtils.js +2 -7
  50. package/dist/sandbox/components/RouteUtils.js.map +1 -1
  51. package/dist/sandbox/components/SandboxActivityTab.d.ts +1 -2
  52. package/dist/sandbox/components/SandboxActivityTab.js +4 -3
  53. package/dist/sandbox/components/SandboxActivityTab.js.map +1 -1
  54. package/dist/sandbox/components/SandboxAgentAppPanel.d.ts +1 -2
  55. package/dist/sandbox/components/SandboxAgentAppPanel.js +1 -2
  56. package/dist/sandbox/components/SandboxAgentAppPanel.js.map +1 -1
  57. package/dist/sandbox/components/SandboxScriptRunnerPanel.d.ts +0 -1
  58. package/dist/sandbox/components/SandboxScriptRunnerPanel.js +2 -3
  59. package/dist/sandbox/components/SandboxScriptRunnerPanel.js.map +1 -1
  60. package/dist/sandbox/components/SandboxTypeIcon.d.ts +0 -2
  61. package/dist/sandbox/components/SandboxTypeIcon.js +1 -2
  62. package/dist/sandbox/components/SandboxTypeIcon.js.map +1 -1
  63. package/dist/sandbox/components/SandboxTypeSelector.d.ts +1 -2
  64. package/dist/sandbox/components/SandboxUsageBanner.d.ts +1 -2
  65. package/dist/sandbox/components/SandboxUsageBanner.js +1 -2
  66. package/dist/sandbox/components/SandboxUsageBanner.js.map +1 -1
  67. package/dist/sandbox/components/StatusBadge.d.ts +0 -2
  68. package/dist/sandbox/components/StatusBadge.js +1 -2
  69. package/dist/sandbox/components/StatusBadge.js.map +1 -1
  70. package/dist/sandbox/components/TagsInput.d.ts +1 -2
  71. package/dist/sandbox/components/TagsInput.js +1 -2
  72. package/dist/sandbox/components/TagsInput.js.map +1 -1
  73. package/dist/sandbox/components/ui.d.ts +0 -1
  74. package/dist/sandbox/components/ui.js +1 -2
  75. package/dist/sandbox/hooks/useIsSuperAdmin.d.ts +0 -1
  76. package/dist/sandbox/hooks/useRemainingSeconds.d.ts +0 -1
  77. package/dist/sandbox/hooks/useRemainingSeconds.js +1 -2
  78. package/dist/sandbox/hooks/useRemainingSeconds.js.map +1 -1
  79. package/dist/sandbox/hooks/useTr.d.ts +0 -1
  80. package/dist/sandbox/hooks/useTr.js +1 -2
  81. package/dist/sandbox/hooks/useTr.js.map +1 -1
  82. package/dist/sandbox/index.d.ts +0 -1
  83. package/dist/sandbox/index.js +6 -5
  84. package/dist/sandbox/pages/AdminLandingPage.d.ts +1 -2
  85. package/dist/sandbox/pages/AdminLandingPage.js +7 -8
  86. package/dist/sandbox/pages/AdminLandingPage.js.map +1 -1
  87. package/dist/sandbox/pages/AdminPage.d.ts +1 -2
  88. package/dist/sandbox/pages/AdminPage.js +87 -88
  89. package/dist/sandbox/pages/AdminPage.js.map +1 -1
  90. package/dist/sandbox/pages/AdminTemplatesPage.d.ts +1 -2
  91. package/dist/sandbox/pages/AdminTemplatesPage.js +59 -60
  92. package/dist/sandbox/pages/AdminTemplatesPage.js.map +1 -1
  93. package/dist/sandbox/pages/SandboxCreatePage.d.ts +1 -2
  94. package/dist/sandbox/pages/SandboxCreatePage.js +269 -265
  95. package/dist/sandbox/pages/SandboxCreatePage.js.map +1 -1
  96. package/dist/sandbox/pages/SandboxDetailPage.d.ts +1 -2
  97. package/dist/sandbox/pages/SandboxDetailPage.js +453 -454
  98. package/dist/sandbox/pages/SandboxDetailPage.js.map +1 -1
  99. package/dist/sandbox/pages/SandboxListPage.d.ts +1 -2
  100. package/dist/sandbox/pages/SandboxListPage.js +319 -320
  101. package/dist/sandbox/pages/SandboxListPage.js.map +1 -1
  102. package/dist/sandbox/pages/TemplateDetailPage.d.ts +1 -2
  103. package/dist/sandbox/pages/TemplateDetailPage.js +326 -328
  104. package/dist/sandbox/pages/TemplateDetailPage.js.map +1 -1
  105. package/dist/sandbox/pages/UserLandingPage.d.ts +1 -2
  106. package/dist/sandbox/pages/UserLandingPage.js +10 -11
  107. package/dist/sandbox/pages/UserLandingPage.js.map +1 -1
  108. package/dist/sandbox/pages/UserTemplatesPage.d.ts +1 -2
  109. package/dist/sandbox/pages/UserTemplatesPage.js +47 -48
  110. package/dist/sandbox/pages/UserTemplatesPage.js.map +1 -1
  111. package/dist/sandbox/providers/SandboxProvider.d.ts +0 -2
  112. package/dist/sandbox/providers/SandboxProvider.js +5 -12
  113. package/dist/sandbox/providers/SandboxProvider.js.map +1 -1
  114. package/dist/sandbox/store/sandboxStore.d.ts +0 -2
  115. package/dist/sandbox/store/sandboxStore.js +1 -2
  116. package/dist/sandbox/store/sandboxStore.js.map +1 -1
  117. package/dist/sandbox/types/index.d.ts +0 -1
  118. package/dist/sandbox/utils/cn.d.ts +0 -2
  119. package/dist/sandbox/utils/cn.js +2 -3
  120. package/dist/sandbox/utils/cn.js.map +1 -1
  121. package/dist/sandbox/utils/formatters.d.ts +0 -1
  122. package/dist/sandbox/utils/formatters.js +1 -2
  123. package/dist/sandbox/utils/formatters.js.map +1 -1
  124. package/dist/sandbox/utils/i18n.d.ts +0 -2
  125. package/dist/sandbox/utils/i18n.js +1 -2
  126. package/dist/sandbox/utils/i18n.js.map +1 -1
  127. package/dist/sandbox/utils/imageRegistry.d.ts +0 -1
  128. package/dist/sandbox/utils/imageRegistry.js +1 -2
  129. package/dist/sandbox/utils/imageRegistry.js.map +1 -1
  130. package/dist/sandbox/utils/navigation.d.ts +0 -1
  131. package/dist/sandbox/utils/navigation.js +1 -2
  132. package/dist/sandbox/utils/navigation.js.map +1 -1
  133. package/dist/sandbox/utils/sandboxEvents.d.ts +0 -2
  134. package/dist/sandbox/utils/sandboxEvents.js +1 -2
  135. package/dist/sandbox/utils/sandboxEvents.js.map +1 -1
  136. package/dist/translations/en.d.ts +0 -1
  137. package/dist/translations/en.js +1 -2
  138. package/dist/translations/en.js.map +1 -1
  139. package/dist/translations/hi.d.ts +0 -2
  140. package/dist/translations/hi.js +3 -4
  141. package/dist/translations/hi.js.map +1 -1
  142. package/dist/translations/index.d.ts +0 -1
  143. package/dist/translations/index.js +4 -3
  144. package/dist/translations/ta.d.ts +0 -2
  145. package/dist/translations/ta.js +3 -4
  146. package/dist/translations/ta.js.map +1 -1
  147. package/dist/utils/nativeBridge.d.ts +0 -1
  148. package/dist/utils/nativeBridge.js +1 -2
  149. package/package.json +60 -46
  150. package/dist/dev/Dashboard.d.ts.map +0 -1
  151. package/dist/dev/SandboxApp.d.ts.map +0 -1
  152. package/dist/dev/main.d.ts.map +0 -1
  153. package/dist/generated/global-operations.d.ts.map +0 -1
  154. package/dist/generated/global-types.d.ts.map +0 -1
  155. package/dist/generated/wspace-operations.d.ts.map +0 -1
  156. package/dist/generated/wspace-types.d.ts.map +0 -1
  157. package/dist/index.d.ts.map +0 -1
  158. package/dist/sandbox/AdminRoutes.d.ts.map +0 -1
  159. package/dist/sandbox/SandboxAdminRoot.d.ts.map +0 -1
  160. package/dist/sandbox/SandboxRoot.d.ts.map +0 -1
  161. package/dist/sandbox/UserRoutes.d.ts.map +0 -1
  162. package/dist/sandbox/components/ContainerImagePicker.d.ts.map +0 -1
  163. package/dist/sandbox/components/CountdownTimer.d.ts.map +0 -1
  164. package/dist/sandbox/components/ExportSandboxesDialog.d.ts.map +0 -1
  165. package/dist/sandbox/components/ExtendTTLModal.d.ts.map +0 -1
  166. package/dist/sandbox/components/FilesFolderPicker.d.ts.map +0 -1
  167. package/dist/sandbox/components/PageLayout.d.ts.map +0 -1
  168. package/dist/sandbox/components/ResourceDisplay.d.ts.map +0 -1
  169. package/dist/sandbox/components/RouteUtils.d.ts.map +0 -1
  170. package/dist/sandbox/components/SandboxActivityTab.d.ts.map +0 -1
  171. package/dist/sandbox/components/SandboxAgentAppPanel.d.ts.map +0 -1
  172. package/dist/sandbox/components/SandboxScriptRunnerPanel.d.ts.map +0 -1
  173. package/dist/sandbox/components/SandboxTypeIcon.d.ts.map +0 -1
  174. package/dist/sandbox/components/SandboxTypeSelector.d.ts.map +0 -1
  175. package/dist/sandbox/components/SandboxUsageBanner.d.ts.map +0 -1
  176. package/dist/sandbox/components/StatusBadge.d.ts.map +0 -1
  177. package/dist/sandbox/components/TagsInput.d.ts.map +0 -1
  178. package/dist/sandbox/components/ui.d.ts.map +0 -1
  179. package/dist/sandbox/hooks/useIsSuperAdmin.d.ts.map +0 -1
  180. package/dist/sandbox/hooks/useRemainingSeconds.d.ts.map +0 -1
  181. package/dist/sandbox/hooks/useTr.d.ts.map +0 -1
  182. package/dist/sandbox/index.d.ts.map +0 -1
  183. package/dist/sandbox/pages/AdminLandingPage.d.ts.map +0 -1
  184. package/dist/sandbox/pages/AdminPage.d.ts.map +0 -1
  185. package/dist/sandbox/pages/AdminTemplatesPage.d.ts.map +0 -1
  186. package/dist/sandbox/pages/SandboxCreatePage.d.ts.map +0 -1
  187. package/dist/sandbox/pages/SandboxDetailPage.d.ts.map +0 -1
  188. package/dist/sandbox/pages/SandboxListPage.d.ts.map +0 -1
  189. package/dist/sandbox/pages/TemplateDetailPage.d.ts.map +0 -1
  190. package/dist/sandbox/pages/UserLandingPage.d.ts.map +0 -1
  191. package/dist/sandbox/pages/UserTemplatesPage.d.ts.map +0 -1
  192. package/dist/sandbox/providers/SandboxProvider.d.ts.map +0 -1
  193. package/dist/sandbox/store/sandboxStore.d.ts.map +0 -1
  194. package/dist/sandbox/types/index.d.ts.map +0 -1
  195. package/dist/sandbox/utils/cn.d.ts.map +0 -1
  196. package/dist/sandbox/utils/formatters.d.ts.map +0 -1
  197. package/dist/sandbox/utils/i18n.d.ts.map +0 -1
  198. package/dist/sandbox/utils/imageRegistry.d.ts.map +0 -1
  199. package/dist/sandbox/utils/navigation.d.ts.map +0 -1
  200. package/dist/sandbox/utils/sandboxEvents.d.ts.map +0 -1
  201. package/dist/translations/en.d.ts.map +0 -1
  202. package/dist/translations/hi.d.ts.map +0 -1
  203. package/dist/translations/index.d.ts.map +0 -1
  204. package/dist/translations/ta.d.ts.map +0 -1
  205. package/dist/utils/nativeBridge.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"SandboxCreatePage.js","names":[],"sources":["../../../src/sandbox/pages/SandboxCreatePage.tsx"],"sourcesContent":["import { useState } from 'react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell';\nimport { isQuotaExhaustedError } from '@burdenoff/fe-libs/shared/utils';\nimport {\n ArrowLeft,\n Save,\n Loader2,\n AlertCircle,\n CheckCircle2,\n X,\n Box,\n Settings,\n Info,\n Cpu,\n MemoryStick,\n Timer,\n Plus,\n Trash2,\n Container,\n Database,\n HelpCircle,\n} from 'lucide-react';\nimport {\n Button,\n Card,\n CardContent,\n Badge,\n EmphasisPanel,\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogTitle,\n} from '../components/ui';\nimport { OptionalFields, PagePurpose } from '@burdenoff/fe-libs/ui';\nimport { useSandbox } from '../providers/SandboxProvider';\nimport { PageLayout } from '../components/PageLayout';\nimport { TagsInput } from '../components/TagsInput';\nimport { FilesFolderPicker } from '../components/FilesFolderPicker';\nimport { useSandboxEvents } from '../utils/sandboxEvents';\nimport { tWithFallback } from '../utils/i18n';\nimport {\n BURDENOFF_REGISTRY,\n DEFAULT_SANDBOX_AGENT_IMAGE,\n stripBurdenoffRegistry,\n withBurdenoffRegistry,\n} from '../utils/imageRegistry';\nimport {\n useListSandboxTemplatesQuery,\n useCreateSandboxMutation,\n} from '../../generated/wspace-operations';\nimport type {\n SandboxTemplateType,\n SandboxTemplate,\n SandboxMode,\n ContainerSpec,\n EnvVar,\n} from '../types';\n\ntype NotificationType = 'success' | 'error';\n\ntype StorageMode = 'NONE' | 'EPHEMERAL' | 'PERSISTENT';\n\ninterface ContainerFormData {\n /** Stable client-side row id, used as React `key` so add/remove/reorder\n * doesn't shift component state across siblings. Never sent to the API. */\n _rowId: string;\n name: string;\n image: string;\n ports: { _rowId: string; containerPort: number; name: string }[];\n env: EnvVar[];\n requestsCpu: string;\n requestsMemory: string;\n limitsCpu: string;\n limitsMemory: string;\n _registryType?: 'burdenoff' | 'custom';\n}\n\nlet _rowIdCounter = 0;\nfunction nextRowId(): string {\n _rowIdCounter += 1;\n return `row-${_rowIdCounter}-${Date.now()}`;\n}\n\ninterface FormData {\n name: string;\n description: string;\n template: SandboxTemplateType;\n mode: SandboxMode;\n cpuRequest: string;\n cpuLimit: string;\n memoryRequest: string;\n memoryLimit: string;\n ttlSeconds: number;\n templateId: string;\n containers: ContainerFormData[];\n storageMode: StorageMode;\n storageSizeGi: number;\n storageMountPath: string;\n storageRetainOnDelete: boolean;\n filesFolderId: string | null;\n globalGatewayUrl: string;\n workspaceGatewayUrl: string;\n}\n\nconst templateOptions: {\n value: SandboxTemplateType;\n labelKey: string;\n labelFallback: string;\n descriptionKey: string;\n descriptionFallback: string;\n icon: typeof Box;\n}[] = [\n {\n value: 'MISC_SHELL' as SandboxTemplateType,\n labelKey: 'sandbox.create.templateType.defaultSandbox.label',\n labelFallback: 'Default Sandbox',\n descriptionKey: 'sandbox.create.templateType.defaultSandbox.description',\n descriptionFallback:\n 'Pre-configured development environment with VibeControls agent, Bun, nginx, and common dev tools',\n icon: Box,\n },\n {\n value: 'CUSTOM' as SandboxTemplateType,\n labelKey: 'sandbox.create.templateType.customSandbox.label',\n labelFallback: 'Custom Sandbox',\n descriptionKey: 'sandbox.create.templateType.customSandbox.description',\n descriptionFallback: 'Configure your own container image and resources',\n icon: Settings,\n },\n];\n\nfunction buildEmptyContainer(): ContainerFormData {\n return {\n _rowId: nextRowId(),\n name: '',\n image: '',\n ports: [],\n env: [],\n requestsCpu: '',\n requestsMemory: '',\n limitsCpu: '',\n limitsMemory: '',\n };\n}\n\n/**\n * Create Sandbox Page\n * Form for creating a new sandbox with container and resource configuration\n */\n// Detect environment from hostname — alpha/local uses alpha image, production uses stable\nconst isAlphaEnv =\n typeof window !== 'undefined' &&\n (window.location.hostname.includes('alpha') ||\n window.location.hostname.endsWith('.local.burdenoff.com') ||\n window.location.hostname === 'localhost' ||\n window.location.hostname === '127.0.0.1');\n\n// FQDN required by sandbox-svc registry allowlist (the ECR registry,\n// ghcr.io/algoshred/*, docker.io/library/*, …). Bare paths like\n// `sandbox/vibecontrols:latest` are rejected at createSandbox.\nconst DEFAULT_SANDBOX_IMAGE = DEFAULT_SANDBOX_AGENT_IMAGE;\n\n// In \"Burdenoff repositories\" mode `container.image` holds only the\n// path-after-registry; submit re-adds the registry. The default/placeholder\n// must therefore be stripped, or the fixed prefix span shows (and stores) it\n// twice. See ./utils/imageRegistry for the round-trip helpers.\nconst DEFAULT_SANDBOX_IMAGE_PATH = stripBurdenoffRegistry(DEFAULT_SANDBOX_IMAGE);\n\nconst DEFAULT_GLOBAL_GATEWAY_URL = isAlphaEnv\n ? 'https://alphagraphql.burdenoff.com/global/graphql'\n : 'https://graphql.burdenoff.com/global/graphql';\n\nconst DEFAULT_WSPACE_GATEWAY_URL = isAlphaEnv\n ? 'https://alphagraphqlworkspaces.burdenoff.com/workspaces/graphql'\n : 'https://graphqlworkspaces.burdenoff.com/workspaces/graphql';\n\nexport function SandboxCreatePage() {\n const { basePath = '/', navigate, workspaceId } = useSandbox();\n const sandboxEvents = useSandboxEvents();\n const { t } = useI18n();\n const [tags, setTags] = useState<string[]>([]);\n\n const [formData, setFormData] = useState<FormData>({\n name: '',\n description: '',\n template: 'MISC_SHELL',\n mode: 'DEPLOYMENT',\n cpuRequest: '250m',\n cpuLimit: '2',\n memoryRequest: '512Mi',\n memoryLimit: '2Gi',\n ttlSeconds: 10800,\n templateId: '',\n containers: [\n {\n _rowId: nextRowId(),\n name: 'main',\n image: DEFAULT_SANDBOX_IMAGE_PATH,\n ports: [\n { _rowId: nextRowId(), containerPort: 80, name: 'nginx' },\n { _rowId: nextRowId(), containerPort: 3005, name: 'agent' },\n ],\n env: [],\n requestsCpu: '250m',\n requestsMemory: '512Mi',\n limitsCpu: '2',\n limitsMemory: '2Gi',\n _registryType: 'burdenoff' as const,\n },\n ],\n storageMode: 'NONE',\n storageSizeGi: 10,\n storageMountPath: '/data',\n storageRetainOnDelete: false,\n filesFolderId: null,\n globalGatewayUrl: DEFAULT_GLOBAL_GATEWAY_URL,\n workspaceGatewayUrl: DEFAULT_WSPACE_GATEWAY_URL,\n });\n\n const [errors, setErrors] = useState<Record<string, string>>({});\n const [notification, setNotification] = useState<{\n type: NotificationType;\n message: string;\n } | null>(null);\n const [submitting, setSubmitting] = useState(false);\n const [quotaExhausted, setQuotaExhausted] = useState(false);\n\n function HelpTip({ text }: { text: string }) {\n const [open, setOpen] = useState(false);\n return (\n <span className=\"relative inline-block ml-1.5\">\n <button\n type=\"button\"\n onClick={() => setOpen(!open)}\n className=\"text-text-tertiary hover:text-text-secondary transition-colors\"\n >\n <HelpCircle size={14} />\n </button>\n {open && (\n <div className=\"absolute left-0 top-6 z-50 w-64 rounded-lg border border-border-default bg-bg-surface p-3 text-xs text-text-secondary shadow-lg\">\n {text}\n <button\n type=\"button\"\n onClick={() => setOpen(false)}\n aria-label={tWithFallback(\n t,\n 'sandbox.create.helpTip.closeAriaLabel',\n 'Close help tip'\n )}\n className=\"absolute top-1 right-1 text-text-tertiary hover:text-text-secondary\"\n >\n <X size={12} />\n </button>\n </div>\n )}\n </span>\n );\n }\n\n const { data: templatesData } = useListSandboxTemplatesQuery({\n variables: { context: { workspaceId }, template: formData.template as any },\n skip: !workspaceId,\n });\n const [createSandbox] = useCreateSandboxMutation();\n const filteredTemplates = (templatesData?.listSandboxTemplates?.items ?? []) as any[];\n\n const showNotification = (type: NotificationType, message: string) => {\n setNotification({ type, message });\n setTimeout(() => setNotification(null), 5000);\n };\n\n const handleTemplateSelect = (template: SandboxTemplate) => {\n setFormData((prev) => ({\n ...prev,\n templateId: template.id,\n cpuRequest: template.resources?.cpuRequest ?? prev.cpuRequest,\n cpuLimit: template.resources?.cpuLimit ?? prev.cpuLimit,\n memoryRequest: template.resources?.memoryRequest ?? prev.memoryRequest,\n memoryLimit: template.resources?.memoryLimit ?? prev.memoryLimit,\n ttlSeconds: template.ttlSeconds,\n template: template.template,\n containers:\n template.containers && template.containers.length > 0\n ? template.containers.map((c) => ({\n _rowId: nextRowId(),\n name: c.name,\n image: c.image,\n ports:\n c.ports?.map((p) => ({\n _rowId: nextRowId(),\n containerPort: p.containerPort,\n name: p.name ?? '',\n })) ?? [],\n env: c.env ?? [],\n requestsCpu: c.resources?.requestsCpu ?? '',\n requestsMemory: c.resources?.requestsMemory ?? '',\n limitsCpu: c.resources?.limitsCpu ?? '',\n limitsMemory: c.resources?.limitsMemory ?? '',\n }))\n : prev.containers,\n storageMode: template.storage?.mode ?? prev.storageMode,\n storageSizeGi: template.storage?.sizeGi ?? prev.storageSizeGi,\n storageMountPath: template.storage?.mountPath ?? prev.storageMountPath,\n storageRetainOnDelete: template.storage?.retainOnDelete ?? prev.storageRetainOnDelete,\n }));\n };\n\n const handleInputChange = (field: keyof FormData, value: string | number | boolean | null) => {\n setFormData((prev) => ({ ...prev, [field]: value }));\n if (field === 'templateId') return;\n // Clear template selection when customizing\n if (\n ['cpuRequest', 'cpuLimit', 'memoryRequest', 'memoryLimit', 'ttlSeconds'].includes(\n field as string\n )\n ) {\n setFormData((prev) => ({ ...prev, templateId: '' }));\n }\n if (errors[field as string]) {\n setErrors((prev) => {\n const next = { ...prev };\n delete next[field as string];\n return next;\n });\n }\n };\n\n // Container management\n const addContainer = () => {\n setFormData((prev) => ({\n ...prev,\n containers: [...prev.containers, buildEmptyContainer()],\n templateId: '',\n }));\n };\n\n const removeContainer = (index: number) => {\n setFormData((prev) => ({\n ...prev,\n containers: prev.containers.filter((_, i) => i !== index),\n templateId: '',\n }));\n };\n\n const updateContainer = (index: number, field: keyof ContainerFormData, value: any) => {\n setFormData((prev) => ({\n ...prev,\n containers: prev.containers.map((c, i) => (i === index ? { ...c, [field]: value } : c)),\n templateId: '',\n }));\n };\n\n const addPort = (containerIndex: number) => {\n setFormData((prev) => ({\n ...prev,\n containers: prev.containers.map((c, i) =>\n i === containerIndex\n ? { ...c, ports: [...c.ports, { _rowId: nextRowId(), containerPort: 8080, name: '' }] }\n : c\n ),\n }));\n };\n\n const removePort = (containerIndex: number, portIndex: number) => {\n setFormData((prev) => ({\n ...prev,\n containers: prev.containers.map((c, i) =>\n i === containerIndex ? { ...c, ports: c.ports.filter((_, pi) => pi !== portIndex) } : c\n ),\n }));\n };\n\n const addEnvVar = (containerIndex: number) => {\n setFormData((prev) => ({\n ...prev,\n containers: prev.containers.map((c, i) =>\n i === containerIndex ? { ...c, env: [...c.env, { name: '', value: '' }] } : c\n ),\n }));\n };\n\n const removeEnvVar = (containerIndex: number, envIndex: number) => {\n setFormData((prev) => ({\n ...prev,\n containers: prev.containers.map((c, i) =>\n i === containerIndex ? { ...c, env: c.env.filter((_, ei) => ei !== envIndex) } : c\n ),\n }));\n };\n\n const validateForm = (): boolean => {\n const newErrors: Record<string, string> = {};\n if (!formData.name.trim())\n newErrors.name = tWithFallback(t, 'sandbox.create.errors.nameRequired', 'Name is required');\n if (!formData.cpuRequest.trim())\n newErrors.cpuRequest = tWithFallback(\n t,\n 'sandbox.create.errors.cpuRequestRequired',\n 'CPU request is required'\n );\n if (!formData.cpuLimit.trim())\n newErrors.cpuLimit = tWithFallback(\n t,\n 'sandbox.create.errors.cpuLimitRequired',\n 'CPU limit is required'\n );\n if (!formData.memoryRequest.trim())\n newErrors.memoryRequest = tWithFallback(\n t,\n 'sandbox.create.errors.memoryRequestRequired',\n 'Memory request is required'\n );\n if (!formData.memoryLimit.trim())\n newErrors.memoryLimit = tWithFallback(\n t,\n 'sandbox.create.errors.memoryLimitRequired',\n 'Memory limit is required'\n );\n if (formData.ttlSeconds < 600 || formData.ttlSeconds > 86400)\n newErrors.ttlSeconds = tWithFallback(\n t,\n 'sandbox.create.errors.ttlRange',\n 'TTL must be 10m-24h'\n );\n if (formData.containers.length === 0)\n newErrors.containers = tWithFallback(\n t,\n 'sandbox.create.errors.containersRequired',\n 'At least one container is required'\n );\n formData.containers.forEach((c, i) => {\n if (!c.name.trim())\n newErrors[`container_${i}_name`] = tWithFallback(\n t,\n 'sandbox.create.errors.containerNameRequired',\n 'Container name is required'\n );\n if (!c.image.trim())\n newErrors[`container_${i}_image`] = tWithFallback(\n t,\n 'sandbox.create.errors.containerImageRequired',\n 'Container image is required'\n );\n });\n setErrors(newErrors);\n return Object.keys(newErrors).length === 0;\n };\n\n const handleSubmit = async (e: React.FormEvent) => {\n e.preventDefault();\n if (!validateForm()) {\n showNotification(\n 'error',\n tWithFallback(t, 'sandbox.create.notifications.fixErrors', 'Please fix the form errors')\n );\n return;\n }\n setSubmitting(true);\n try {\n const containers = formData.containers.map((c) => {\n const fullImage =\n (c._registryType || 'burdenoff') === 'burdenoff'\n ? withBurdenoffRegistry(c.image)\n : c.image;\n return {\n name: c.name,\n image: fullImage,\n ports:\n c.ports.length > 0\n ? c.ports.map((p) => ({ containerPort: p.containerPort, name: p.name || undefined }))\n : undefined,\n env: c.env.length > 0 ? c.env.filter((e) => e.name.trim()) : undefined,\n resources:\n c.requestsCpu || c.requestsMemory || c.limitsCpu || c.limitsMemory\n ? {\n requestsCpu: c.requestsCpu || undefined,\n requestsMemory: c.requestsMemory || undefined,\n limitsCpu: c.limitsCpu || undefined,\n limitsMemory: c.limitsMemory || undefined,\n }\n : undefined,\n };\n });\n\n const result = await createSandbox({\n variables: {\n input: {\n context: { workspaceId },\n name: formData.name,\n description: formData.description || undefined,\n template: formData.template as any,\n mode: formData.mode as any,\n containers,\n resources: {\n cpuRequest: formData.cpuRequest,\n cpuLimit: formData.cpuLimit,\n memoryRequest: formData.memoryRequest,\n memoryLimit: formData.memoryLimit,\n },\n storage: {\n mode: formData.storageMode,\n sizeGi: formData.storageMode !== 'NONE' ? formData.storageSizeGi : undefined,\n mountPath: formData.storageMode !== 'NONE' ? formData.storageMountPath : undefined,\n retainOnDelete:\n formData.storageMode === 'PERSISTENT' ? formData.storageRetainOnDelete : false,\n filesFolderId:\n formData.storageMode !== 'NONE' && formData.filesFolderId\n ? formData.filesFolderId\n : undefined,\n },\n ttlSeconds: formData.ttlSeconds,\n metadata: {\n globalGatewayUrl: formData.globalGatewayUrl || undefined,\n workspaceGatewayUrl: formData.workspaceGatewayUrl || undefined,\n tags: tags.length ? tags : undefined,\n },\n },\n },\n });\n // MutateResult wrapper surfaces non-throwing GraphQL errors via `error`.\n // Without this guard, a failed mutation (e.g. registry-allowlist reject)\n // still fires the success toast and navigates.\n if (result.error) {\n if (isQuotaExhaustedError(result.error)) {\n setQuotaExhausted(true);\n return;\n }\n showNotification(\n 'error',\n tWithFallback(\n t,\n 'sandbox.create.notifications.createFailed',\n 'Failed to create sandbox'\n ) + `: ${result.error.message}`\n );\n return;\n }\n const created = result.data?.createSandbox;\n if (!created) {\n showNotification(\n 'error',\n tWithFallback(t, 'sandbox.create.notifications.createFailed', 'Failed to create sandbox')\n );\n return;\n }\n sandboxEvents.sandboxCreated({\n sandboxId: created.id,\n kind: (created.kind?.toLowerCase?.() === 'internal' ? 'internal' : 'user') as\n | 'user'\n | 'internal',\n source: created.source ?? 'manual',\n });\n showNotification(\n 'success',\n tWithFallback(\n t,\n 'sandbox.create.notifications.createSuccess',\n 'Sandbox created successfully! Provisioning...'\n )\n );\n const detailPath = `${basePath.replace(/\\/$/, '')}/${created.id}`;\n setTimeout(() => navigate?.(detailPath), 1500);\n } catch (err) {\n if (isQuotaExhaustedError(err)) {\n setQuotaExhausted(true);\n return;\n }\n showNotification(\n 'error',\n tWithFallback(t, 'sandbox.create.notifications.createFailed', 'Failed to create sandbox')\n );\n } finally {\n setSubmitting(false);\n }\n };\n\n const formatTTL = (seconds: number): string => {\n const hours = Math.floor(seconds / 3600);\n const minutes = Math.floor((seconds % 3600) / 60);\n if (hours > 0 && minutes > 0) return `${hours}h ${minutes}m`;\n if (hours > 0) return `${hours}h`;\n return `${minutes}m`;\n };\n\n return (\n <PageLayout showHeader={false}>\n {/* Notification */}\n {notification && (\n <div\n 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 ${\n notification.type === 'success'\n ? 'bg-status-success-bg-subtle text-status-success-text border-border-default'\n : 'bg-status-error-bg-subtle text-status-error-text border-border-default'\n }`}\n >\n {notification.type === 'success' ? <CheckCircle2 size={20} /> : <AlertCircle size={20} />}\n <span className=\"font-medium\">{notification.message}</span>\n <button\n type=\"button\"\n onClick={() => setNotification(null)}\n aria-label={tWithFallback(\n t,\n 'sandbox.create.notification.dismiss',\n 'Dismiss notification'\n )}\n className=\"ml-2 p-1 rounded-md hover:bg-accent\"\n >\n <X size={16} />\n </button>\n </div>\n )}\n\n {/* Header — single emphasis zone for the page intent */}\n <EmphasisPanel className=\"overflow-hidden bg-hero-mesh\">\n <div className=\"flex items-center gap-4\">\n <button\n type=\"button\"\n onClick={() => navigate?.(basePath)}\n 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\"\n aria-label={tWithFallback(\n t,\n 'sandbox.create.header.back.ariaLabel',\n 'Back to sandboxes'\n )}\n >\n <ArrowLeft size={20} />\n </button>\n <div className=\"flex items-center gap-3\">\n <div className=\"p-2.5 rounded-lg bg-action-primary-bg/10\">\n <Box size={24} className=\"text-primary\" />\n </div>\n <h1 className=\"text-2xl sm:text-3xl font-bold\">\n {tWithFallback(t, 'sandbox.create.header.title', 'Create Sandbox')}\n </h1>\n </div>\n </div>\n <PagePurpose className=\"mt-3\">\n {tWithFallback(\n t,\n 'sandbox.create.purpose',\n 'Define a fresh, throwaway environment: pick a base image (or a template), set how much CPU/memory it gets, choose storage and a time-to-live, then launch. Use it to test a build, demo an AI agent, or reproduce an issue — it tears itself down when the TTL runs out.'\n )}\n </PagePurpose>\n </EmphasisPanel>\n\n <form onSubmit={handleSubmit} className=\"space-y-6\">\n {/* Basic Info */}\n <Card className=\"border-border-seam\">\n <CardContent className=\"p-6 space-y-5\">\n <h2 className=\"text-lg font-bold flex items-center gap-2\">\n <Info size={18} className=\"text-primary\" />\n {tWithFallback(t, 'sandbox.create.sections.basicInfo.title', 'Basic Information')}\n </h2>\n\n {/* Name */}\n <div>\n <label htmlFor=\"name\" className=\"block text-sm font-semibold mb-2\">\n {tWithFallback(t, 'sandbox.create.fields.name.label', 'Name')}{' '}\n <span className=\"text-status-error-text\">*</span>\n </label>\n <input\n aria-label={tWithFallback(t, 'sandbox.create.fields.name.ariaLabel', 'Name')}\n type=\"text\"\n id=\"name\"\n value={formData.name}\n onChange={(e) => handleInputChange('name', e.target.value)}\n 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 ${\n errors.name\n ? 'border-status-error-border'\n : 'border-border-subtle focus:border-primary'\n }`}\n placeholder={tWithFallback(\n t,\n 'sandbox.create.fields.name.placeholder',\n 'My Sandbox'\n )}\n />\n {errors.name && (\n <p className=\"text-sm text-status-error-text mt-1 flex items-center gap-1\">\n <AlertCircle size={14} />\n {errors.name}\n </p>\n )}\n </div>\n\n {/* Description */}\n <div>\n <label htmlFor=\"description\" className=\"block text-sm font-semibold mb-2\">\n {tWithFallback(t, 'sandbox.create.fields.description.label', 'Description')}\n </label>\n <textarea\n aria-label={tWithFallback(\n t,\n 'sandbox.create.fields.description.ariaLabel',\n 'Description'\n )}\n id=\"description\"\n value={formData.description}\n onChange={(e) => handleInputChange('description', e.target.value)}\n rows={3}\n 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\"\n placeholder={tWithFallback(\n t,\n 'sandbox.create.fields.description.placeholder',\n 'What is this sandbox for?'\n )}\n />\n </div>\n\n {/* Template Type */}\n <div>\n <label className=\"block text-sm font-semibold mb-3\">\n {tWithFallback(t, 'sandbox.create.fields.template.label', 'Template')}\n </label>\n <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-3\">\n {templateOptions.map((option) => {\n const Icon = option.icon;\n const isSelected = formData.template === option.value;\n return (\n <button\n key={option.value}\n type=\"button\"\n onClick={() => {\n if (option.value === 'MISC_SHELL') {\n setFormData((prev) => ({\n ...prev,\n template: 'MISC_SHELL',\n containers: [\n {\n _rowId: nextRowId(),\n name: 'main',\n image: DEFAULT_SANDBOX_IMAGE_PATH,\n ports: [\n { _rowId: nextRowId(), containerPort: 80, name: 'nginx' },\n { _rowId: nextRowId(), containerPort: 3005, name: 'agent' },\n ],\n env: [],\n requestsCpu: '250m',\n requestsMemory: '512Mi',\n limitsCpu: '2',\n limitsMemory: '2Gi',\n _registryType: 'burdenoff',\n },\n ],\n }));\n } else {\n setFormData((prev) => ({\n ...prev,\n template: 'CUSTOM',\n containers: [{ ...buildEmptyContainer(), name: 'main', image: '' }],\n }));\n }\n }}\n className={`p-4 rounded-lg border-2 text-left transition-all duration-200 ${\n isSelected\n ? 'border-primary bg-action-primary-bg/5 shadow-sm'\n : 'border-border-subtle hover:border-primary/50 hover:bg-bg-sunken/50'\n }`}\n >\n <Icon\n size={24}\n className={isSelected ? 'text-primary' : 'text-text-secondary'}\n />\n <p className=\"font-medium mt-2\">\n {tWithFallback(t, option.labelKey, option.labelFallback)}\n </p>\n <p className=\"text-xs text-text-secondary mt-0.5\">\n {tWithFallback(t, option.descriptionKey, option.descriptionFallback)}\n </p>\n </button>\n );\n })}\n </div>\n </div>\n\n {/* Execution Mode */}\n <div>\n <label className=\"block text-sm font-semibold mb-3\">\n {tWithFallback(t, 'sandbox.create.fields.executionMode.label', 'Execution Mode')}\n <HelpTip\n text={tWithFallback(\n t,\n 'sandbox.create.fields.executionMode.help',\n 'Deployment keeps your sandbox running continuously and restarts on failure. Job runs to completion and exits when done.'\n )}\n />\n </label>\n <div className=\"grid grid-cols-2 gap-3\">\n {[\n {\n value: 'DEPLOYMENT' as const,\n labelKey: 'sandbox.create.fields.executionMode.deployment.label',\n labelFallback: 'Deployment',\n descKey: 'sandbox.create.fields.executionMode.deployment.description',\n descFallback: 'Long-running container (restarts on failure)',\n },\n {\n value: 'JOB' as const,\n labelKey: 'sandbox.create.fields.executionMode.job.label',\n labelFallback: 'Job',\n descKey: 'sandbox.create.fields.executionMode.job.description',\n descFallback: 'Run-to-completion task (exits when done)',\n },\n ].map((option) => {\n const isSelected = formData.mode === option.value;\n return (\n <button\n key={option.value}\n type=\"button\"\n onClick={() => handleInputChange('mode', option.value)}\n className={`p-3 rounded-lg border-2 text-left transition-all duration-200 ${\n isSelected\n ? 'border-primary bg-action-primary-bg/5 shadow-sm'\n : 'border-border-subtle hover:border-primary/50 hover:bg-bg-sunken/50'\n }`}\n >\n <p className=\"font-medium text-sm\">\n {tWithFallback(t, option.labelKey, option.labelFallback)}\n </p>\n <p className=\"text-xs text-text-secondary mt-0.5\">\n {tWithFallback(t, option.descKey, option.descFallback)}\n </p>\n </button>\n );\n })}\n </div>\n </div>\n </CardContent>\n </Card>\n\n {/* Template Selection */}\n {filteredTemplates.length > 0 && (\n <Card className=\"border-border-seam\">\n <CardContent className=\"p-6 space-y-4\">\n <h2 className=\"text-lg font-bold flex items-center gap-2\">\n <Box size={18} className=\"text-primary\" />\n {tWithFallback(\n t,\n 'sandbox.create.sections.quickStartTemplates.title',\n 'Quick Start Templates'\n )}\n </h2>\n <div className=\"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3\">\n {filteredTemplates.map((template) => {\n const isSelected = formData.templateId === template.id;\n return (\n <button\n key={template.id}\n type=\"button\"\n onClick={() => handleTemplateSelect(template)}\n className={`p-4 rounded-lg border-2 text-left transition-all duration-200 ${\n isSelected\n ? 'border-primary bg-action-primary-bg/5 shadow-sm'\n : 'border-border-subtle hover:border-primary/50 hover:bg-bg-sunken/50'\n }`}\n >\n <div className=\"flex items-center gap-2 mb-2\">\n <span className=\"font-medium text-sm\">{template.name}</span>\n {template.isDefault && (\n <Badge variant=\"secondary\" className=\"text-xs\">\n {tWithFallback(\n t,\n 'sandbox.create.sections.quickStartTemplates.defaultBadge',\n 'Default'\n )}\n </Badge>\n )}\n </div>\n {template.description && (\n <p className=\"text-xs text-text-secondary mb-2\">{template.description}</p>\n )}\n <div className=\"flex items-center gap-2 text-xs text-text-secondary\">\n <span>{template.resources?.cpuRequest ?? '?'} CPU</span>\n <span className=\"text-text-secondary/40\">|</span>\n <span>{template.resources?.memoryRequest ?? '?'} mem</span>\n <span className=\"text-text-secondary/40\">|</span>\n <span>{template.containers?.length ?? 0} containers</span>\n <span className=\"text-text-secondary/40\">|</span>\n <span>{formatTTL(template.ttlSeconds)}</span>\n </div>\n </button>\n );\n })}\n </div>\n <p className=\"text-xs text-text-secondary\">\n {tWithFallback(\n t,\n 'sandbox.create.sections.quickStartTemplates.hint',\n 'Select a template or customize resources below'\n )}\n </p>\n </CardContent>\n </Card>\n )}\n\n {/* Containers */}\n <Card className=\"border-border-seam\">\n <CardContent className=\"p-6 space-y-5\">\n <div className=\"flex items-center justify-between\">\n <h2 className=\"text-lg font-bold flex items-center gap-2\">\n <Container size={18} className=\"text-primary\" />\n {tWithFallback(t, 'sandbox.create.sections.containers.title', 'Containers')}\n <HelpTip\n text={tWithFallback(\n t,\n 'sandbox.create.sections.containers.help',\n 'A container is the application that runs inside your sandbox. The default sandbox image includes VibeControls agent, Bun, nginx, and common dev tools pre-installed.'\n )}\n />\n <Badge variant=\"secondary\">{formData.containers.length}</Badge>\n </h2>\n <Button type=\"button\" variant=\"outline\" size=\"sm\" onClick={addContainer}>\n <Plus size={14} />\n {tWithFallback(\n t,\n 'sandbox.create.sections.containers.addContainer',\n 'Add Container'\n )}\n </Button>\n </div>\n {errors.containers && (\n <p className=\"text-sm text-status-error-text flex items-center gap-1\">\n <AlertCircle size={14} />\n {errors.containers}\n </p>\n )}\n\n <div className=\"space-y-4\">\n {formData.containers.map((container, cIdx) => (\n <div\n key={container._rowId}\n className=\"p-4 rounded-lg border-2 border-border-subtle/50 bg-bg-sunken/20 space-y-4\"\n >\n <div className=\"flex items-center justify-between\">\n <h3 className=\"font-semibold text-sm\">\n {tWithFallback(t, 'sandbox.create.container.heading', 'Container #{number}', {\n number: cIdx + 1,\n })}\n {container.name && `: ${container.name}`}\n </h3>\n {formData.containers.length > 1 && (\n <Button\n type=\"button\"\n variant=\"ghost\"\n size=\"icon\"\n className=\"text-status-error-text hover:text-status-error-text size-7\"\n onClick={() => removeContainer(cIdx)}\n >\n <Trash2 size={14} />\n </Button>\n )}\n </div>\n\n {/* Container Name */}\n <div>\n <label className=\"block text-xs font-semibold mb-1\">\n {tWithFallback(t, 'sandbox.create.container.fields.name.label', 'Name')}{' '}\n <span className=\"text-status-error-text\">*</span>\n </label>\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.container.fields.name.label',\n 'Name'\n )}\n type=\"text\"\n value={container.name}\n onChange={(e) => updateContainer(cIdx, 'name', e.target.value)}\n className={`w-full px-3 py-2 border-2 rounded-lg bg-bg-surface text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${\n errors[`container_${cIdx}_name`]\n ? 'border-status-error-border'\n : 'border-border-subtle focus:border-primary'\n }`}\n placeholder={tWithFallback(\n t,\n 'sandbox.create.container.fields.name.placeholder',\n 'main'\n )}\n />\n {errors[`container_${cIdx}_name`] && (\n <p className=\"text-xs text-status-error-text mt-1\">\n {errors[`container_${cIdx}_name`]}\n </p>\n )}\n </div>\n\n {/* Image Registry Selector */}\n <div>\n <label className=\"block text-xs font-semibold mb-1\">\n {tWithFallback(t, 'sandbox.create.container.fields.image.label', 'Image')}{' '}\n <span className=\"text-status-error-text\">*</span>\n </label>\n <div className=\"flex gap-2 mb-2\">\n <button\n type=\"button\"\n onClick={() => updateContainer(cIdx, '_registryType', 'burdenoff')}\n className={`flex-1 rounded-lg border px-3 py-1.5 text-xs font-medium transition-colors ${\n (container._registryType || 'burdenoff') === 'burdenoff'\n ? 'border-primary bg-action-primary-bg/10 text-primary'\n : 'border-border-default text-text-secondary hover:bg-bg-sunken'\n }`}\n >\n {tWithFallback(\n t,\n 'sandbox.create.container.fields.image.registryBurdenoff',\n 'Burdenoff Repositories'\n )}\n </button>\n <button\n type=\"button\"\n onClick={() => updateContainer(cIdx, '_registryType', 'custom')}\n className={`flex-1 rounded-lg border px-3 py-1.5 text-xs font-medium transition-colors ${\n container._registryType === 'custom'\n ? 'border-primary bg-action-primary-bg/10 text-primary'\n : 'border-border-default text-text-secondary hover:bg-bg-sunken'\n }`}\n >\n {tWithFallback(\n t,\n 'sandbox.create.container.fields.image.registryCustom',\n 'Custom (Docker Hub)'\n )}\n </button>\n </div>\n {(container._registryType || 'burdenoff') === 'burdenoff' ? (\n <div className=\"flex items-center\">\n <span className=\"px-3 py-2 border-2 border-r-0 rounded-l-lg bg-bg-sunken text-xs text-text-secondary font-mono whitespace-nowrap\">\n {BURDENOFF_REGISTRY}/\n </span>\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.container.fields.image.label',\n 'Image'\n )}\n type=\"text\"\n value={stripBurdenoffRegistry(container.image)}\n onChange={(e) => updateContainer(cIdx, 'image', e.target.value)}\n className={`w-full px-3 py-2 border-2 rounded-r-lg bg-bg-surface text-sm font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${\n errors[`container_${cIdx}_image`]\n ? 'border-status-error-border'\n : 'border-border-subtle focus:border-primary'\n }`}\n placeholder={DEFAULT_SANDBOX_IMAGE_PATH}\n />\n </div>\n ) : (\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.container.fields.image.label',\n 'Image'\n )}\n type=\"text\"\n value={container.image}\n onChange={(e) => updateContainer(cIdx, 'image', e.target.value)}\n className={`w-full px-3 py-2 border-2 rounded-lg bg-bg-surface text-sm font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${\n errors[`container_${cIdx}_image`]\n ? 'border-status-error-border'\n : 'border-border-subtle focus:border-primary'\n }`}\n placeholder={tWithFallback(\n t,\n 'sandbox.create.container.fields.image.placeholderCustom',\n 'nginx:alpine'\n )}\n />\n )}\n {errors[`container_${cIdx}_image`] && (\n <p className=\"text-xs text-status-error-text mt-1\">\n {errors[`container_${cIdx}_image`]}\n </p>\n )}\n </div>\n\n {/* Per-container resources (optional) */}\n <div>\n <p className=\"text-xs font-semibold mb-2 text-text-secondary\">\n {tWithFallback(\n t,\n 'sandbox.create.container.resources.title',\n 'Per-Container Resources (optional)'\n )}\n </p>\n <div className=\"grid grid-cols-2 sm:grid-cols-4 gap-3\">\n <div>\n <label className=\"block text-xs text-text-secondary mb-1\">\n {tWithFallback(t, 'sandbox.create.container.resources.cpuReq', 'CPU Req')}\n </label>\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.container.resources.cpuReq',\n 'CPU Req'\n )}\n type=\"text\"\n value={container.requestsCpu}\n onChange={(e) => updateContainer(cIdx, 'requestsCpu', e.target.value)}\n 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\"\n placeholder=\"250m\"\n />\n </div>\n <div>\n <label className=\"block text-xs text-text-secondary mb-1\">\n {tWithFallback(t, 'sandbox.create.container.resources.cpuLim', 'CPU Lim')}\n </label>\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.container.resources.cpuLim',\n 'CPU Lim'\n )}\n type=\"text\"\n value={container.limitsCpu}\n onChange={(e) => updateContainer(cIdx, 'limitsCpu', e.target.value)}\n 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\"\n placeholder=\"1\"\n />\n </div>\n <div>\n <label className=\"block text-xs text-text-secondary mb-1\">\n {tWithFallback(t, 'sandbox.create.container.resources.memReq', 'Mem Req')}\n </label>\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.container.resources.memReq',\n 'Mem Req'\n )}\n type=\"text\"\n value={container.requestsMemory}\n onChange={(e) => updateContainer(cIdx, 'requestsMemory', e.target.value)}\n 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\"\n placeholder=\"512Mi\"\n />\n </div>\n <div>\n <label className=\"block text-xs text-text-secondary mb-1\">\n {tWithFallback(t, 'sandbox.create.container.resources.memLim', 'Mem Lim')}\n </label>\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.container.resources.memLim',\n 'Mem Lim'\n )}\n type=\"text\"\n value={container.limitsMemory}\n onChange={(e) => updateContainer(cIdx, 'limitsMemory', e.target.value)}\n 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\"\n placeholder=\"2Gi\"\n />\n </div>\n </div>\n </div>\n\n {/* Ports */}\n <div>\n <div className=\"flex items-center justify-between mb-2\">\n <p className=\"text-xs font-semibold text-text-secondary\">\n {tWithFallback(t, 'sandbox.create.container.ports.title', 'Ports')}\n </p>\n <button\n type=\"button\"\n onClick={() => addPort(cIdx)}\n className=\"text-xs text-primary hover:underline\"\n >\n {tWithFallback(t, 'sandbox.create.container.ports.add', '+ Add Port')}\n </button>\n </div>\n {container.ports.map((port, pIdx) => (\n <div key={port._rowId} className=\"flex items-center gap-2 mb-2\">\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.container.ports.portNumber',\n 'Port'\n )}\n type=\"number\"\n value={port.containerPort}\n onChange={(e) => {\n const newPorts = [...container.ports];\n newPorts[pIdx] = {\n ...newPorts[pIdx],\n containerPort: Number(e.target.value),\n };\n updateContainer(cIdx, 'ports', newPorts);\n }}\n className=\"w-24 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\"\n placeholder=\"8080\"\n />\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.container.ports.portName',\n 'Port name'\n )}\n type=\"text\"\n value={port.name}\n onChange={(e) => {\n const newPorts = [...container.ports];\n newPorts[pIdx] = { ...newPorts[pIdx], name: e.target.value };\n updateContainer(cIdx, 'ports', newPorts);\n }}\n className=\"flex-1 px-3 py-1.5 border rounded-lg bg-bg-surface text-xs focus:outline-none focus:ring-2 focus:ring-primary/20\"\n placeholder={tWithFallback(\n t,\n 'sandbox.create.container.ports.namePlaceholder',\n 'Port name (optional)'\n )}\n />\n <button\n type=\"button\"\n onClick={() => removePort(cIdx, pIdx)}\n className=\"p-1.5 text-status-error-text hover:bg-status-error-bg/10 rounded\"\n >\n <X size={12} />\n </button>\n </div>\n ))}\n </div>\n\n {/* Env Vars */}\n <div>\n <div className=\"flex items-center justify-between mb-2\">\n <p className=\"text-xs font-semibold text-text-secondary\">\n {tWithFallback(\n t,\n 'sandbox.create.container.envVars.title',\n 'Environment Variables'\n )}\n </p>\n <button\n type=\"button\"\n onClick={() => addEnvVar(cIdx)}\n className=\"text-xs text-primary hover:underline\"\n >\n {tWithFallback(t, 'sandbox.create.container.envVars.add', '+ Add Variable')}\n </button>\n </div>\n {container.env.map((envVar, eIdx) => (\n <div\n key={`${container._rowId}-env-${eIdx}-${envVar.name}`}\n className=\"flex items-center gap-2 mb-2\"\n >\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.container.envVars.key',\n 'Key'\n )}\n type=\"text\"\n value={envVar.name}\n onChange={(e) => {\n const newEnv = [...container.env];\n newEnv[eIdx] = { ...newEnv[eIdx], name: e.target.value };\n updateContainer(cIdx, 'env', newEnv);\n }}\n className=\"w-1/3 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\"\n placeholder={tWithFallback(\n t,\n 'sandbox.create.container.envVars.key',\n 'KEY'\n )}\n />\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.container.envVars.value',\n 'Value'\n )}\n type=\"text\"\n value={envVar.value}\n onChange={(e) => {\n const newEnv = [...container.env];\n newEnv[eIdx] = { ...newEnv[eIdx], value: e.target.value };\n updateContainer(cIdx, 'env', newEnv);\n }}\n className=\"flex-1 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\"\n placeholder={tWithFallback(\n t,\n 'sandbox.create.container.envVars.value',\n 'value'\n )}\n />\n <button\n type=\"button\"\n onClick={() => removeEnvVar(cIdx, eIdx)}\n className=\"p-1.5 text-status-error-text hover:bg-status-error-bg/10 rounded\"\n >\n <X size={12} />\n </button>\n </div>\n ))}\n </div>\n </div>\n ))}\n </div>\n </CardContent>\n </Card>\n\n {/* Resources */}\n <Card className=\"border-border-seam\">\n <CardContent className=\"p-6 space-y-5\">\n <h2 className=\"text-lg font-bold flex items-center gap-2\">\n <Cpu size={18} className=\"text-primary\" />\n {tWithFallback(t, 'sandbox.create.sections.podResources.title', 'Pod Resources')}\n <HelpTip\n text={tWithFallback(\n t,\n 'sandbox.create.sections.podResources.help',\n 'Resources allocated to the entire sandbox. CPU is in millicores (1000m = 1 CPU core). Memory in MiB or GiB.'\n )}\n />\n </h2>\n\n <OptionalFields\n title={tWithFallback(\n t,\n 'sandbox.create.sections.podResources.advancedTitle',\n 'Advanced resource limits'\n )}\n description={tWithFallback(\n t,\n 'sandbox.create.sections.podResources.advancedDescription',\n 'CPU and memory requests/limits. Defaults work for most sandboxes.'\n )}\n >\n <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-5\">\n {/* CPU Request */}\n <div>\n <label\n htmlFor=\"cpuRequest\"\n className=\"text-sm font-semibold mb-2 flex items-center gap-2\"\n >\n <Cpu size={14} className=\"text-status-info-text\" />\n {tWithFallback(t, 'sandbox.create.fields.cpuRequest.label', 'CPU Request')}\n </label>\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.fields.cpuRequest.label',\n 'CPU Request'\n )}\n type=\"text\"\n id=\"cpuRequest\"\n value={formData.cpuRequest}\n onChange={(e) => handleInputChange('cpuRequest', e.target.value)}\n className={`w-full px-4 py-2.5 border-2 rounded-lg bg-bg-surface font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${\n errors.cpuRequest\n ? 'border-status-error-border'\n : 'border-border-subtle focus:border-primary'\n }`}\n placeholder=\"500m\"\n />\n {errors.cpuRequest && (\n <p className=\"text-sm text-status-error-text mt-1\">{errors.cpuRequest}</p>\n )}\n </div>\n\n {/* CPU Limit */}\n <div>\n <label\n htmlFor=\"cpuLimit\"\n className=\"text-sm font-semibold mb-2 flex items-center gap-2\"\n >\n <Cpu size={14} className=\"text-status-info-text\" />\n {tWithFallback(t, 'sandbox.create.fields.cpuLimit.label', 'CPU Limit')}\n </label>\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.fields.cpuLimit.label',\n 'CPU Limit'\n )}\n type=\"text\"\n id=\"cpuLimit\"\n value={formData.cpuLimit}\n onChange={(e) => handleInputChange('cpuLimit', e.target.value)}\n className={`w-full px-4 py-2.5 border-2 rounded-lg bg-bg-surface font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${\n errors.cpuLimit\n ? 'border-status-error-border'\n : 'border-border-subtle focus:border-primary'\n }`}\n placeholder=\"2\"\n />\n {errors.cpuLimit && (\n <p className=\"text-sm text-status-error-text mt-1\">{errors.cpuLimit}</p>\n )}\n </div>\n\n {/* Memory Request */}\n <div>\n <label\n htmlFor=\"memoryRequest\"\n className=\"text-sm font-semibold mb-2 flex items-center gap-2\"\n >\n <MemoryStick size={14} className=\"text-accent-purple-subtle\" />\n {tWithFallback(\n t,\n 'sandbox.create.fields.memoryRequest.label',\n 'Memory Request'\n )}\n </label>\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.fields.memoryRequest.label',\n 'Memory Request'\n )}\n type=\"text\"\n id=\"memoryRequest\"\n value={formData.memoryRequest}\n onChange={(e) => handleInputChange('memoryRequest', e.target.value)}\n className={`w-full px-4 py-2.5 border-2 rounded-lg bg-bg-surface font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${\n errors.memoryRequest\n ? 'border-status-error-border'\n : 'border-border-subtle focus:border-primary'\n }`}\n placeholder=\"1Gi\"\n />\n {errors.memoryRequest && (\n <p className=\"text-sm text-status-error-text mt-1\">{errors.memoryRequest}</p>\n )}\n </div>\n\n {/* Memory Limit */}\n <div>\n <label\n htmlFor=\"memoryLimit\"\n className=\"text-sm font-semibold mb-2 flex items-center gap-2\"\n >\n <MemoryStick size={14} className=\"text-accent-purple-subtle\" />\n {tWithFallback(t, 'sandbox.create.fields.memoryLimit.label', 'Memory Limit')}\n </label>\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.fields.memoryLimit.label',\n 'Memory Limit'\n )}\n type=\"text\"\n id=\"memoryLimit\"\n value={formData.memoryLimit}\n onChange={(e) => handleInputChange('memoryLimit', e.target.value)}\n className={`w-full px-4 py-2.5 border-2 rounded-lg bg-bg-surface font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${\n errors.memoryLimit\n ? 'border-status-error-border'\n : 'border-border-subtle focus:border-primary'\n }`}\n placeholder=\"4Gi\"\n />\n {errors.memoryLimit && (\n <p className=\"text-sm text-status-error-text mt-1\">{errors.memoryLimit}</p>\n )}\n </div>\n </div>\n </OptionalFields>\n\n {/* TTL */}\n <div>\n <label\n htmlFor=\"ttlSeconds\"\n className=\"text-sm font-semibold mb-2 flex items-center gap-2\"\n >\n <Timer size={14} className=\"text-status-info-text\" />\n {tWithFallback(t, 'sandbox.create.fields.ttl.label', 'Time to Live')}\n <HelpTip\n text={tWithFallback(\n t,\n 'sandbox.create.fields.ttl.help',\n \"Your sandbox will be automatically destroyed after this duration to save resources. You can extend it while it's running.\"\n )}\n />\n <Badge variant=\"outline\" className=\"text-xs ml-auto\">\n {formatTTL(formData.ttlSeconds)}\n </Badge>\n </label>\n <input\n aria-label={tWithFallback(t, 'sandbox.create.fields.ttl.label', 'Time to Live')}\n type=\"range\"\n id=\"ttlSeconds\"\n min={600}\n max={86400}\n step={600}\n value={formData.ttlSeconds}\n onChange={(e) => handleInputChange('ttlSeconds', Number(e.target.value))}\n className=\"w-full mt-2 accent-primary\"\n />\n <div className=\"flex justify-between text-xs text-text-secondary mt-1\">\n <span>10m</span>\n <span>4h</span>\n <span>12h</span>\n <span>24h</span>\n </div>\n {errors.ttlSeconds && (\n <p className=\"text-sm text-status-error-text mt-1\">{errors.ttlSeconds}</p>\n )}\n </div>\n\n <div>\n <label className=\"text-sm font-semibold mb-2 flex items-center gap-2\">\n {tWithFallback(t, 'sandbox.create.fields.tags.label', 'Tags')}\n <HelpTip\n text={tWithFallback(\n t,\n 'sandbox.create.fields.tags.help',\n 'Free-form labels. Use them to filter the sandbox list. Max 32 tags, 64 chars each.'\n )}\n />\n </label>\n <TagsInput value={tags} onChange={setTags} />\n </div>\n </CardContent>\n </Card>\n\n {/* Storage */}\n <Card className=\"border-border-seam\">\n <CardContent className=\"p-6 space-y-5\">\n <h2 className=\"text-lg font-bold flex items-center gap-2\">\n <Database size={18} className=\"text-primary\" />\n {tWithFallback(t, 'sandbox.create.sections.storage.title', 'Storage')}\n <HelpTip\n text={tWithFallback(\n t,\n 'sandbox.create.sections.storage.help',\n 'Ephemeral storage is fast but lost when the sandbox stops. Persistent storage survives restarts.'\n )}\n />\n </h2>\n\n {/* Storage Mode */}\n <div>\n <label className=\"block text-sm font-semibold mb-3\">\n {tWithFallback(t, 'sandbox.create.fields.storageMode.label', 'Mode')}\n </label>\n <div className=\"grid grid-cols-3 gap-3\">\n {(['NONE', 'EPHEMERAL', 'PERSISTENT'] as StorageMode[]).map((mode) => {\n const isSelected = formData.storageMode === mode;\n const labels: Record<StorageMode, string> = {\n NONE: tWithFallback(t, 'sandbox.create.fields.storageMode.none.label', 'None'),\n EPHEMERAL: tWithFallback(\n t,\n 'sandbox.create.fields.storageMode.ephemeral.label',\n 'Ephemeral'\n ),\n PERSISTENT: tWithFallback(\n t,\n 'sandbox.create.fields.storageMode.persistent.label',\n 'Persistent'\n ),\n };\n const descriptions: Record<StorageMode, string> = {\n NONE: tWithFallback(\n t,\n 'sandbox.create.fields.storageMode.none.description',\n 'No persistent storage'\n ),\n EPHEMERAL: tWithFallback(\n t,\n 'sandbox.create.fields.storageMode.ephemeral.description',\n 'Lost when sandbox stops'\n ),\n PERSISTENT: tWithFallback(\n t,\n 'sandbox.create.fields.storageMode.persistent.description',\n 'Retained across restarts'\n ),\n };\n return (\n <button\n key={mode}\n type=\"button\"\n onClick={() => handleInputChange('storageMode', mode)}\n className={`p-3 rounded-lg border-2 text-left transition-all duration-200 ${\n isSelected\n ? 'border-primary bg-action-primary-bg/5 shadow-sm'\n : 'border-border-subtle hover:border-primary/50 hover:bg-bg-sunken/50'\n }`}\n >\n <p className=\"font-medium text-sm\">{labels[mode]}</p>\n <p className=\"text-xs text-text-secondary mt-0.5\">{descriptions[mode]}</p>\n </button>\n );\n })}\n </div>\n </div>\n\n {/* Storage details when not NONE */}\n {formData.storageMode !== 'NONE' && (\n <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-5\">\n <div>\n <label htmlFor=\"storageSizeGi\" className=\"block text-sm font-semibold mb-2\">\n {tWithFallback(t, 'sandbox.create.fields.storageSizeGi.label', 'Size (GiB)')}\n </label>\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.fields.storageSizeGi.label',\n 'Size (GiB)'\n )}\n type=\"number\"\n id=\"storageSizeGi\"\n value={formData.storageSizeGi}\n onChange={(e) => handleInputChange('storageSizeGi', Number(e.target.value))}\n min={1}\n max={200}\n 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\"\n />\n </div>\n <div>\n <label htmlFor=\"storageMountPath\" className=\"block text-sm font-semibold mb-2\">\n {tWithFallback(t, 'sandbox.create.fields.storageMountPath.label', 'Mount Path')}\n </label>\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.fields.storageMountPath.label',\n 'Mount Path'\n )}\n type=\"text\"\n id=\"storageMountPath\"\n value={formData.storageMountPath}\n onChange={(e) => handleInputChange('storageMountPath', e.target.value)}\n 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\"\n placeholder=\"/data\"\n />\n </div>\n {formData.storageMode === 'PERSISTENT' && (\n <div className=\"flex items-center gap-3 sm:col-span-2\">\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.fields.storageRetainOnDelete.label',\n 'Retain volume data when sandbox is deleted'\n )}\n type=\"checkbox\"\n id=\"storageRetainOnDelete\"\n checked={formData.storageRetainOnDelete}\n onChange={(e) => handleInputChange('storageRetainOnDelete', e.target.checked)}\n className=\"size-4 rounded border-border-subtle text-primary focus:ring-primary/20\"\n />\n <label htmlFor=\"storageRetainOnDelete\" className=\"text-sm font-medium\">\n {tWithFallback(\n t,\n 'sandbox.create.fields.storageRetainOnDelete.label',\n 'Retain volume data when sandbox is deleted'\n )}\n </label>\n </div>\n )}\n <div className=\"sm:col-span-2\">\n <FilesFolderPicker\n value={formData.filesFolderId}\n onChange={(folderId) => handleInputChange('filesFolderId', folderId)}\n />\n </div>\n </div>\n )}\n </CardContent>\n </Card>\n\n {/* Advanced: Gateway URLs */}\n {formData.template === 'MISC_SHELL' && (\n <Card className=\"border-border-seam\">\n <CardContent className=\"p-5\">\n <details>\n <summary className=\"cursor-pointer text-sm font-semibold text-text-secondary flex items-center gap-2\">\n <Settings size={14} />\n {tWithFallback(\n t,\n 'sandbox.create.sections.advancedSettings.title',\n 'Advanced Settings'\n )}\n <HelpTip\n text={tWithFallback(\n t,\n 'sandbox.create.sections.advancedSettings.help',\n 'Override the gateway URLs the sandbox agent uses for authentication and API calls. Useful when exposing local gateways via tunnel for development.'\n )}\n />\n </summary>\n <div className=\"mt-4 space-y-4\">\n <div>\n <label className=\"block text-sm font-medium text-text-primary mb-1\">\n {tWithFallback(\n t,\n 'sandbox.create.fields.globalGatewayUrl.label',\n 'Global Gateway URL'\n )}\n </label>\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.fields.globalGatewayUrl.label',\n 'Global Gateway URL'\n )}\n type=\"text\"\n value={formData.globalGatewayUrl}\n onChange={(e) => handleInputChange('globalGatewayUrl', e.target.value)}\n placeholder={DEFAULT_GLOBAL_GATEWAY_URL}\n className=\"w-full rounded-lg border border-border-subtle px-3 py-2 text-sm font-mono bg-bg-surface focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary\"\n />\n <p className=\"text-xs text-text-secondary mt-1\">\n {tWithFallback(\n t,\n 'sandbox.create.fields.globalGatewayUrl.hint',\n 'The agent authenticates via this URL. Override with a tunnel URL to reach local gateways.'\n )}\n </p>\n </div>\n <div>\n <label className=\"block text-sm font-medium text-text-primary mb-1\">\n {tWithFallback(\n t,\n 'sandbox.create.fields.workspaceGatewayUrl.label',\n 'Workspace Gateway URL'\n )}\n </label>\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.fields.workspaceGatewayUrl.label',\n 'Workspace Gateway URL'\n )}\n type=\"text\"\n value={formData.workspaceGatewayUrl}\n onChange={(e) => handleInputChange('workspaceGatewayUrl', e.target.value)}\n placeholder={DEFAULT_WSPACE_GATEWAY_URL}\n className=\"w-full rounded-lg border border-border-subtle px-3 py-2 text-sm font-mono bg-bg-surface focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary\"\n />\n <p className=\"text-xs text-text-secondary mt-1\">\n {tWithFallback(\n t,\n 'sandbox.create.fields.workspaceGatewayUrl.hint',\n 'The agent reports to this URL. Override with a tunnel URL to reach local gateways.'\n )}\n </p>\n </div>\n </div>\n </details>\n </CardContent>\n </Card>\n )}\n\n {/* Actions */}\n <div className=\"flex flex-col sm:flex-row gap-3 pt-2\">\n <Button type=\"submit\" disabled={submitting} size=\"lg\">\n {submitting ? <Loader2 size={18} className=\"animate-spin\" /> : <Save size={18} />}\n {tWithFallback(t, 'sandbox.create.actions.submit', 'Create Sandbox')}\n </Button>\n <Button\n type=\"button\"\n variant=\"outline\"\n onClick={() => navigate?.(basePath)}\n disabled={submitting}\n >\n {tWithFallback(t, 'sandbox.create.actions.cancel', 'Cancel')}\n </Button>\n </div>\n </form>\n <AlertDialog open={quotaExhausted} onOpenChange={setQuotaExhausted}>\n <AlertDialogContent>\n <AlertDialogHeader>\n <AlertDialogTitle>\n {tWithFallback(t, 'sandbox.create.quota.title', 'Sandbox limit reached')}\n </AlertDialogTitle>\n <AlertDialogDescription>\n {tWithFallback(\n t,\n 'sandbox.create.quota.description',\n 'You have reached your concurrent sandbox limit. Stop an existing sandbox or upgrade your plan to continue.'\n )}\n </AlertDialogDescription>\n </AlertDialogHeader>\n <AlertDialogFooter>\n <AlertDialogCancel>\n {tWithFallback(t, 'sandbox.create.quota.dismiss', 'Dismiss')}\n </AlertDialogCancel>\n <AlertDialogAction onClick={() => navigate?.('/billing')}>\n {tWithFallback(t, 'sandbox.create.quota.billing', 'View Billing')}\n </AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n </AlertDialog>\n </PageLayout>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAiFA,IAAI,IAAgB;AACpB,SAAS,IAAoB;AAE3B,QADA,KAAiB,GACV,OAAO,EAAc,GAAG,KAAK,KAAK;;AAwB3C,IAAM,IAOA,CACJ;CACE,O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A,CAAA;OACE,CAAA;MACT,CAAA;KAIT,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,GAAD;OAAQ,MAAK;OAAS,UAAU;OAAY,MAAK;iBAAjD,CACG,IAAa,kBAAC,IAAD;QAAS,MAAM;QAAI,WAAU;QAAiB,CAAA,GAAG,kBAAC,IAAD,EAAM,MAAM,IAAM,CAAA,EAChF,EAAc,GAAG,iCAAiC,iBAAiB,CAC7D;UACT,kBAAC,GAAD;OACE,MAAK;OACL,SAAQ;OACR,eAAe,IAAW,EAAS;OACnC,UAAU;iBAET,EAAc,GAAG,iCAAiC,SAAS;OACrD,CAAA,CACL;;KACD;;GACP,kBAAC,GAAD;IAAa,MAAM;IAAgB,cAAc;cAC/C,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD,EAAA,UACG,EAAc,GAAG,8BAA8B,wBAAwB,EACvD,CAAA,EACnB,kBAAC,IAAD,EAAA,UACG,EACC,GACA,oCACA,6GACD,EACsB,CAAA,CACP,EAAA,CAAA,EACpB,kBAAC,GAAD,EAAA,UAAA,CACE,kBAAC,GAAD,EAAA,UACG,EAAc,GAAG,gCAAgC,UAAU,EAC1C,CAAA,EACpB,kBAAC,GAAD;KAAmB,eAAe,IAAW,WAAW;eACrD,EAAc,GAAG,gCAAgC,eAAe;KAC/C,CAAA,CACF,EAAA,CAAA,CACD,EAAA,CAAA;IACT,CAAA;GACH"}
1
+ {"version":3,"file":"SandboxCreatePage.js","names":["DEFAULT_SANDBOX_IMAGE","EmphasisPanel","AlertDialog","AlertDialogContent","AlertDialogHeader","AlertDialogTitle","AlertDialogDescription","AlertDialogFooter","AlertDialogCancel","AlertDialogAction","AlertDialog$1","AlertDialogAction$1","AlertDialogCancel$1","AlertDialogContent$1","AlertDialogDescription$1","AlertDialogFooter$1","AlertDialogHeader$1","AlertDialogTitle$1","EmphasisPanel$1","_rowIdCounter","nextRowId","templateOptions","Box","Settings","buildEmptyContainer","isAlphaEnv","DEFAULT_SANDBOX_IMAGE_PATH","stripBurdenoffRegistry","DEFAULT_SANDBOX_AGENT_IMAGE","DEFAULT_GLOBAL_GATEWAY_URL","DEFAULT_WSPACE_GATEWAY_URL","SandboxCreatePage","useSandbox","sandboxEvents","useSandboxEvents","useI18n","tags","setTags","useState","formData","setFormData","errors","setErrors","notification","setNotification","submitting","setSubmitting","quotaExhausted","setQuotaExhausted","HelpTip","open","setOpen","HelpCircle","text","tWithFallback","t","X","templatesData","useListSandboxTemplatesQuery","workspaceId","createSandbox","useCreateSandboxMutation","filteredTemplates","showNotification","handleTemplateSelect","prev","template","c","p","handleInputChange","field","value","next","addContainer","removeContainer","i","index","updateContainer","addPort","containerIndex","removePort","pi","portIndex","addEnvVar","removeEnvVar","ei","envIndex","validateForm","newErrors","handleSubmit","containers","fullImage","withBurdenoffRegistry","result","isQuotaExhaustedError","created","detailPath","basePath","navigate","err","formatTTL","hours","seconds","minutes","PageLayout","CheckCircle2","AlertCircle","ArrowLeft","PagePurpose","Card","CardContent","Info","Icon","option","isSelected","Badge","Container","Button","Plus","cIdx","container","Trash2","BURDENOFF_REGISTRY","port","newPorts","pIdx","e","envVar","newEnv","eIdx","Cpu","OptionalFields","MemoryStick","Timer","TagsInput","Database","mode","labels","descriptions","FilesFolderPicker","folderId","Loader2","Save"],"sources":["../../../src/sandbox/pages/SandboxCreatePage.tsx"],"sourcesContent":["import { useState } from 'react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell';\nimport { isQuotaExhaustedError } from '@burdenoff/fe-libs/shared/utils';\nimport {\n ArrowLeft,\n Save,\n Loader2,\n AlertCircle,\n CheckCircle2,\n X,\n Box,\n Settings,\n Info,\n Cpu,\n MemoryStick,\n Timer,\n Plus,\n Trash2,\n Container,\n Database,\n HelpCircle,\n} from 'lucide-react';\nimport {\n Button,\n Card,\n CardContent,\n Badge,\n EmphasisPanel,\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogTitle,\n} from '../components/ui';\nimport { OptionalFields, PagePurpose } from '@burdenoff/fe-libs/ui';\nimport { useSandbox } from '../providers/SandboxProvider';\nimport { PageLayout } from '../components/PageLayout';\nimport { TagsInput } from '../components/TagsInput';\nimport { FilesFolderPicker } from '../components/FilesFolderPicker';\nimport { useSandboxEvents } from '../utils/sandboxEvents';\nimport { tWithFallback } from '../utils/i18n';\nimport {\n BURDENOFF_REGISTRY,\n DEFAULT_SANDBOX_AGENT_IMAGE,\n stripBurdenoffRegistry,\n withBurdenoffRegistry,\n} from '../utils/imageRegistry';\nimport {\n useListSandboxTemplatesQuery,\n useCreateSandboxMutation,\n} from '../../generated/wspace-operations';\nimport type {\n SandboxTemplateType,\n SandboxTemplate,\n SandboxMode,\n ContainerSpec,\n EnvVar,\n} from '../types';\n\ntype NotificationType = 'success' | 'error';\n\ntype StorageMode = 'NONE' | 'EPHEMERAL' | 'PERSISTENT';\n\ninterface ContainerFormData {\n /** Stable client-side row id, used as React `key` so add/remove/reorder\n * doesn't shift component state across siblings. Never sent to the API. */\n _rowId: string;\n name: string;\n image: string;\n ports: { _rowId: string; containerPort: number; name: string }[];\n env: EnvVar[];\n requestsCpu: string;\n requestsMemory: string;\n limitsCpu: string;\n limitsMemory: string;\n _registryType?: 'burdenoff' | 'custom';\n}\n\nlet _rowIdCounter = 0;\nfunction nextRowId(): string {\n _rowIdCounter += 1;\n return `row-${_rowIdCounter}-${Date.now()}`;\n}\n\ninterface FormData {\n name: string;\n description: string;\n template: SandboxTemplateType;\n mode: SandboxMode;\n cpuRequest: string;\n cpuLimit: string;\n memoryRequest: string;\n memoryLimit: string;\n ttlSeconds: number;\n templateId: string;\n containers: ContainerFormData[];\n storageMode: StorageMode;\n storageSizeGi: number;\n storageMountPath: string;\n storageRetainOnDelete: boolean;\n filesFolderId: string | null;\n globalGatewayUrl: string;\n workspaceGatewayUrl: string;\n}\n\nconst templateOptions: {\n value: SandboxTemplateType;\n labelKey: string;\n labelFallback: string;\n descriptionKey: string;\n descriptionFallback: string;\n icon: typeof Box;\n}[] = [\n {\n value: 'MISC_SHELL' as SandboxTemplateType,\n labelKey: 'sandbox.create.templateType.defaultSandbox.label',\n labelFallback: 'Default Sandbox',\n descriptionKey: 'sandbox.create.templateType.defaultSandbox.description',\n descriptionFallback:\n 'Pre-configured development environment with VibeControls agent, Bun, nginx, and common dev tools',\n icon: Box,\n },\n {\n value: 'CUSTOM' as SandboxTemplateType,\n labelKey: 'sandbox.create.templateType.customSandbox.label',\n labelFallback: 'Custom Sandbox',\n descriptionKey: 'sandbox.create.templateType.customSandbox.description',\n descriptionFallback: 'Configure your own container image and resources',\n icon: Settings,\n },\n];\n\nfunction buildEmptyContainer(): ContainerFormData {\n return {\n _rowId: nextRowId(),\n name: '',\n image: '',\n ports: [],\n env: [],\n requestsCpu: '',\n requestsMemory: '',\n limitsCpu: '',\n limitsMemory: '',\n };\n}\n\n/**\n * Create Sandbox Page\n * Form for creating a new sandbox with container and resource configuration\n */\n// Detect environment from hostname — alpha/local uses alpha image, production uses stable\nconst isAlphaEnv =\n typeof window !== 'undefined' &&\n (window.location.hostname.includes('alpha') ||\n window.location.hostname.endsWith('.local.burdenoff.com') ||\n window.location.hostname === 'localhost' ||\n window.location.hostname === '127.0.0.1');\n\n// FQDN required by sandbox-svc registry allowlist (the ECR registry,\n// ghcr.io/algoshred/*, docker.io/library/*, …). Bare paths like\n// `sandbox/vibecontrols:latest` are rejected at createSandbox.\nconst DEFAULT_SANDBOX_IMAGE = DEFAULT_SANDBOX_AGENT_IMAGE;\n\n// In \"Burdenoff repositories\" mode `container.image` holds only the\n// path-after-registry; submit re-adds the registry. The default/placeholder\n// must therefore be stripped, or the fixed prefix span shows (and stores) it\n// twice. See ./utils/imageRegistry for the round-trip helpers.\nconst DEFAULT_SANDBOX_IMAGE_PATH = stripBurdenoffRegistry(DEFAULT_SANDBOX_IMAGE);\n\nconst DEFAULT_GLOBAL_GATEWAY_URL = isAlphaEnv\n ? 'https://alphagraphql.burdenoff.com/global/graphql'\n : 'https://graphql.burdenoff.com/global/graphql';\n\nconst DEFAULT_WSPACE_GATEWAY_URL = isAlphaEnv\n ? 'https://alphagraphqlworkspaces.burdenoff.com/workspaces/graphql'\n : 'https://graphqlworkspaces.burdenoff.com/workspaces/graphql';\n\nexport function SandboxCreatePage() {\n const { basePath = '/', navigate, workspaceId } = useSandbox();\n const sandboxEvents = useSandboxEvents();\n const { t } = useI18n();\n const [tags, setTags] = useState<string[]>([]);\n\n const [formData, setFormData] = useState<FormData>({\n name: '',\n description: '',\n template: 'MISC_SHELL',\n mode: 'DEPLOYMENT',\n cpuRequest: '250m',\n cpuLimit: '2',\n memoryRequest: '512Mi',\n memoryLimit: '2Gi',\n ttlSeconds: 10800,\n templateId: '',\n containers: [\n {\n _rowId: nextRowId(),\n name: 'main',\n image: DEFAULT_SANDBOX_IMAGE_PATH,\n ports: [\n { _rowId: nextRowId(), containerPort: 80, name: 'nginx' },\n { _rowId: nextRowId(), containerPort: 3005, name: 'agent' },\n ],\n env: [],\n requestsCpu: '250m',\n requestsMemory: '512Mi',\n limitsCpu: '2',\n limitsMemory: '2Gi',\n _registryType: 'burdenoff' as const,\n },\n ],\n storageMode: 'NONE',\n storageSizeGi: 10,\n storageMountPath: '/data',\n storageRetainOnDelete: false,\n filesFolderId: null,\n globalGatewayUrl: DEFAULT_GLOBAL_GATEWAY_URL,\n workspaceGatewayUrl: DEFAULT_WSPACE_GATEWAY_URL,\n });\n\n const [errors, setErrors] = useState<Record<string, string>>({});\n const [notification, setNotification] = useState<{\n type: NotificationType;\n message: string;\n } | null>(null);\n const [submitting, setSubmitting] = useState(false);\n const [quotaExhausted, setQuotaExhausted] = useState(false);\n\n function HelpTip({ text }: { text: string }) {\n const [open, setOpen] = useState(false);\n return (\n <span className=\"relative inline-block ml-1.5\">\n <button\n type=\"button\"\n onClick={() => setOpen(!open)}\n className=\"text-text-tertiary hover:text-text-secondary transition-colors\"\n >\n <HelpCircle size={14} />\n </button>\n {open && (\n <div className=\"absolute left-0 top-6 z-50 w-64 rounded-lg border border-border-default bg-bg-surface p-3 text-xs text-text-secondary shadow-lg\">\n {text}\n <button\n type=\"button\"\n onClick={() => setOpen(false)}\n aria-label={tWithFallback(\n t,\n 'sandbox.create.helpTip.closeAriaLabel',\n 'Close help tip'\n )}\n className=\"absolute top-1 right-1 text-text-tertiary hover:text-text-secondary\"\n >\n <X size={12} />\n </button>\n </div>\n )}\n </span>\n );\n }\n\n const { data: templatesData } = useListSandboxTemplatesQuery({\n variables: { context: { workspaceId }, template: formData.template as any },\n skip: !workspaceId,\n });\n const [createSandbox] = useCreateSandboxMutation();\n const filteredTemplates = (templatesData?.listSandboxTemplates?.items ?? []) as any[];\n\n const showNotification = (type: NotificationType, message: string) => {\n setNotification({ type, message });\n setTimeout(() => setNotification(null), 5000);\n };\n\n const handleTemplateSelect = (template: SandboxTemplate) => {\n setFormData((prev) => ({\n ...prev,\n templateId: template.id,\n cpuRequest: template.resources?.cpuRequest ?? prev.cpuRequest,\n cpuLimit: template.resources?.cpuLimit ?? prev.cpuLimit,\n memoryRequest: template.resources?.memoryRequest ?? prev.memoryRequest,\n memoryLimit: template.resources?.memoryLimit ?? prev.memoryLimit,\n ttlSeconds: template.ttlSeconds,\n template: template.template,\n containers:\n template.containers && template.containers.length > 0\n ? template.containers.map((c) => ({\n _rowId: nextRowId(),\n name: c.name,\n image: c.image,\n ports:\n c.ports?.map((p) => ({\n _rowId: nextRowId(),\n containerPort: p.containerPort,\n name: p.name ?? '',\n })) ?? [],\n env: c.env ?? [],\n requestsCpu: c.resources?.requestsCpu ?? '',\n requestsMemory: c.resources?.requestsMemory ?? '',\n limitsCpu: c.resources?.limitsCpu ?? '',\n limitsMemory: c.resources?.limitsMemory ?? '',\n }))\n : prev.containers,\n storageMode: template.storage?.mode ?? prev.storageMode,\n storageSizeGi: template.storage?.sizeGi ?? prev.storageSizeGi,\n storageMountPath: template.storage?.mountPath ?? prev.storageMountPath,\n storageRetainOnDelete: template.storage?.retainOnDelete ?? prev.storageRetainOnDelete,\n }));\n };\n\n const handleInputChange = (field: keyof FormData, value: string | number | boolean | null) => {\n setFormData((prev) => ({ ...prev, [field]: value }));\n if (field === 'templateId') return;\n // Clear template selection when customizing\n if (\n ['cpuRequest', 'cpuLimit', 'memoryRequest', 'memoryLimit', 'ttlSeconds'].includes(\n field as string\n )\n ) {\n setFormData((prev) => ({ ...prev, templateId: '' }));\n }\n if (errors[field as string]) {\n setErrors((prev) => {\n const next = { ...prev };\n delete next[field as string];\n return next;\n });\n }\n };\n\n // Container management\n const addContainer = () => {\n setFormData((prev) => ({\n ...prev,\n containers: [...prev.containers, buildEmptyContainer()],\n templateId: '',\n }));\n };\n\n const removeContainer = (index: number) => {\n setFormData((prev) => ({\n ...prev,\n containers: prev.containers.filter((_, i) => i !== index),\n templateId: '',\n }));\n };\n\n const updateContainer = (index: number, field: keyof ContainerFormData, value: any) => {\n setFormData((prev) => ({\n ...prev,\n containers: prev.containers.map((c, i) => (i === index ? { ...c, [field]: value } : c)),\n templateId: '',\n }));\n };\n\n const addPort = (containerIndex: number) => {\n setFormData((prev) => ({\n ...prev,\n containers: prev.containers.map((c, i) =>\n i === containerIndex\n ? { ...c, ports: [...c.ports, { _rowId: nextRowId(), containerPort: 8080, name: '' }] }\n : c\n ),\n }));\n };\n\n const removePort = (containerIndex: number, portIndex: number) => {\n setFormData((prev) => ({\n ...prev,\n containers: prev.containers.map((c, i) =>\n i === containerIndex ? { ...c, ports: c.ports.filter((_, pi) => pi !== portIndex) } : c\n ),\n }));\n };\n\n const addEnvVar = (containerIndex: number) => {\n setFormData((prev) => ({\n ...prev,\n containers: prev.containers.map((c, i) =>\n i === containerIndex ? { ...c, env: [...c.env, { name: '', value: '' }] } : c\n ),\n }));\n };\n\n const removeEnvVar = (containerIndex: number, envIndex: number) => {\n setFormData((prev) => ({\n ...prev,\n containers: prev.containers.map((c, i) =>\n i === containerIndex ? { ...c, env: c.env.filter((_, ei) => ei !== envIndex) } : c\n ),\n }));\n };\n\n const validateForm = (): boolean => {\n const newErrors: Record<string, string> = {};\n if (!formData.name.trim())\n newErrors.name = tWithFallback(t, 'sandbox.create.errors.nameRequired', 'Name is required');\n if (!formData.cpuRequest.trim())\n newErrors.cpuRequest = tWithFallback(\n t,\n 'sandbox.create.errors.cpuRequestRequired',\n 'CPU request is required'\n );\n if (!formData.cpuLimit.trim())\n newErrors.cpuLimit = tWithFallback(\n t,\n 'sandbox.create.errors.cpuLimitRequired',\n 'CPU limit is required'\n );\n if (!formData.memoryRequest.trim())\n newErrors.memoryRequest = tWithFallback(\n t,\n 'sandbox.create.errors.memoryRequestRequired',\n 'Memory request is required'\n );\n if (!formData.memoryLimit.trim())\n newErrors.memoryLimit = tWithFallback(\n t,\n 'sandbox.create.errors.memoryLimitRequired',\n 'Memory limit is required'\n );\n if (formData.ttlSeconds < 600 || formData.ttlSeconds > 86400)\n newErrors.ttlSeconds = tWithFallback(\n t,\n 'sandbox.create.errors.ttlRange',\n 'TTL must be 10m-24h'\n );\n if (formData.containers.length === 0)\n newErrors.containers = tWithFallback(\n t,\n 'sandbox.create.errors.containersRequired',\n 'At least one container is required'\n );\n formData.containers.forEach((c, i) => {\n if (!c.name.trim())\n newErrors[`container_${i}_name`] = tWithFallback(\n t,\n 'sandbox.create.errors.containerNameRequired',\n 'Container name is required'\n );\n if (!c.image.trim())\n newErrors[`container_${i}_image`] = tWithFallback(\n t,\n 'sandbox.create.errors.containerImageRequired',\n 'Container image is required'\n );\n });\n setErrors(newErrors);\n return Object.keys(newErrors).length === 0;\n };\n\n const handleSubmit = async (e: React.FormEvent) => {\n e.preventDefault();\n if (!validateForm()) {\n showNotification(\n 'error',\n tWithFallback(t, 'sandbox.create.notifications.fixErrors', 'Please fix the form errors')\n );\n return;\n }\n setSubmitting(true);\n try {\n const containers = formData.containers.map((c) => {\n const fullImage =\n (c._registryType || 'burdenoff') === 'burdenoff'\n ? withBurdenoffRegistry(c.image)\n : c.image;\n return {\n name: c.name,\n image: fullImage,\n ports:\n c.ports.length > 0\n ? c.ports.map((p) => ({ containerPort: p.containerPort, name: p.name || undefined }))\n : undefined,\n env: c.env.length > 0 ? c.env.filter((e) => e.name.trim()) : undefined,\n resources:\n c.requestsCpu || c.requestsMemory || c.limitsCpu || c.limitsMemory\n ? {\n requestsCpu: c.requestsCpu || undefined,\n requestsMemory: c.requestsMemory || undefined,\n limitsCpu: c.limitsCpu || undefined,\n limitsMemory: c.limitsMemory || undefined,\n }\n : undefined,\n };\n });\n\n const result = await createSandbox({\n variables: {\n input: {\n context: { workspaceId },\n name: formData.name,\n description: formData.description || undefined,\n template: formData.template as any,\n mode: formData.mode as any,\n containers,\n resources: {\n cpuRequest: formData.cpuRequest,\n cpuLimit: formData.cpuLimit,\n memoryRequest: formData.memoryRequest,\n memoryLimit: formData.memoryLimit,\n },\n storage: {\n mode: formData.storageMode,\n sizeGi: formData.storageMode !== 'NONE' ? formData.storageSizeGi : undefined,\n mountPath: formData.storageMode !== 'NONE' ? formData.storageMountPath : undefined,\n retainOnDelete:\n formData.storageMode === 'PERSISTENT' ? formData.storageRetainOnDelete : false,\n filesFolderId:\n formData.storageMode !== 'NONE' && formData.filesFolderId\n ? formData.filesFolderId\n : undefined,\n },\n ttlSeconds: formData.ttlSeconds,\n metadata: {\n globalGatewayUrl: formData.globalGatewayUrl || undefined,\n workspaceGatewayUrl: formData.workspaceGatewayUrl || undefined,\n tags: tags.length ? tags : undefined,\n },\n },\n },\n });\n // MutateResult wrapper surfaces non-throwing GraphQL errors via `error`.\n // Without this guard, a failed mutation (e.g. registry-allowlist reject)\n // still fires the success toast and navigates.\n if (result.error) {\n if (isQuotaExhaustedError(result.error)) {\n setQuotaExhausted(true);\n return;\n }\n showNotification(\n 'error',\n tWithFallback(\n t,\n 'sandbox.create.notifications.createFailed',\n 'Failed to create sandbox'\n ) + `: ${result.error.message}`\n );\n return;\n }\n const created = result.data?.createSandbox;\n if (!created) {\n showNotification(\n 'error',\n tWithFallback(t, 'sandbox.create.notifications.createFailed', 'Failed to create sandbox')\n );\n return;\n }\n sandboxEvents.sandboxCreated({\n sandboxId: created.id,\n kind: (created.kind?.toLowerCase?.() === 'internal' ? 'internal' : 'user') as\n 'user' | 'internal',\n source: created.source ?? 'manual',\n });\n showNotification(\n 'success',\n tWithFallback(\n t,\n 'sandbox.create.notifications.createSuccess',\n 'Sandbox created successfully! Provisioning...'\n )\n );\n const detailPath = `${basePath.replace(/\\/$/, '')}/${created.id}`;\n setTimeout(() => navigate?.(detailPath), 1500);\n } catch (err) {\n if (isQuotaExhaustedError(err)) {\n setQuotaExhausted(true);\n return;\n }\n showNotification(\n 'error',\n tWithFallback(t, 'sandbox.create.notifications.createFailed', 'Failed to create sandbox')\n );\n } finally {\n setSubmitting(false);\n }\n };\n\n const formatTTL = (seconds: number): string => {\n const hours = Math.floor(seconds / 3600);\n const minutes = Math.floor((seconds % 3600) / 60);\n if (hours > 0 && minutes > 0) return `${hours}h ${minutes}m`;\n if (hours > 0) return `${hours}h`;\n return `${minutes}m`;\n };\n\n return (\n <PageLayout showHeader={false}>\n {/* Notification */}\n {notification && (\n <div\n 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 ${\n notification.type === 'success'\n ? 'bg-status-success-bg-subtle text-status-success-text border-border-default'\n : 'bg-status-error-bg-subtle text-status-error-text border-border-default'\n }`}\n >\n {notification.type === 'success' ? <CheckCircle2 size={20} /> : <AlertCircle size={20} />}\n <span className=\"font-medium\">{notification.message}</span>\n <button\n type=\"button\"\n onClick={() => setNotification(null)}\n aria-label={tWithFallback(\n t,\n 'sandbox.create.notification.dismiss',\n 'Dismiss notification'\n )}\n className=\"ml-2 p-1 rounded-md hover:bg-accent\"\n >\n <X size={16} />\n </button>\n </div>\n )}\n\n {/* Header — single emphasis zone for the page intent */}\n <EmphasisPanel className=\"overflow-hidden bg-hero-mesh\">\n <div className=\"flex items-center gap-4\">\n <button\n type=\"button\"\n onClick={() => navigate?.(basePath)}\n 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\"\n aria-label={tWithFallback(\n t,\n 'sandbox.create.header.back.ariaLabel',\n 'Back to sandboxes'\n )}\n >\n <ArrowLeft size={20} />\n </button>\n <div className=\"flex items-center gap-3\">\n <div className=\"p-2.5 rounded-lg bg-action-primary-bg/10\">\n <Box size={24} className=\"text-primary\" />\n </div>\n <h1 className=\"text-2xl sm:text-3xl font-bold\">\n {tWithFallback(t, 'sandbox.create.header.title', 'Create Sandbox')}\n </h1>\n </div>\n </div>\n <PagePurpose className=\"mt-3\">\n {tWithFallback(\n t,\n 'sandbox.create.purpose',\n 'Define a fresh, throwaway environment: pick a base image (or a template), set how much CPU/memory it gets, choose storage and a time-to-live, then launch. Use it to test a build, demo an AI agent, or reproduce an issue — it tears itself down when the TTL runs out.'\n )}\n </PagePurpose>\n </EmphasisPanel>\n\n <form onSubmit={handleSubmit} className=\"space-y-6\">\n {/* Basic Info */}\n <Card className=\"border-border-seam\">\n <CardContent className=\"p-6 space-y-5\">\n <h2 className=\"text-lg font-bold flex items-center gap-2\">\n <Info size={18} className=\"text-primary\" />\n {tWithFallback(t, 'sandbox.create.sections.basicInfo.title', 'Basic Information')}\n </h2>\n\n {/* Name */}\n <div>\n <label htmlFor=\"name\" className=\"block text-sm font-semibold mb-2\">\n {tWithFallback(t, 'sandbox.create.fields.name.label', 'Name')}{' '}\n <span className=\"text-status-error-text\">*</span>\n </label>\n <input\n aria-label={tWithFallback(t, 'sandbox.create.fields.name.ariaLabel', 'Name')}\n type=\"text\"\n id=\"name\"\n value={formData.name}\n onChange={(e) => handleInputChange('name', e.target.value)}\n 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 ${\n errors.name\n ? 'border-status-error-border'\n : 'border-border-subtle focus:border-primary'\n }`}\n placeholder={tWithFallback(\n t,\n 'sandbox.create.fields.name.placeholder',\n 'My Sandbox'\n )}\n />\n {errors.name && (\n <p className=\"text-sm text-status-error-text mt-1 flex items-center gap-1\">\n <AlertCircle size={14} />\n {errors.name}\n </p>\n )}\n </div>\n\n {/* Description */}\n <div>\n <label htmlFor=\"description\" className=\"block text-sm font-semibold mb-2\">\n {tWithFallback(t, 'sandbox.create.fields.description.label', 'Description')}\n </label>\n <textarea\n aria-label={tWithFallback(\n t,\n 'sandbox.create.fields.description.ariaLabel',\n 'Description'\n )}\n id=\"description\"\n value={formData.description}\n onChange={(e) => handleInputChange('description', e.target.value)}\n rows={3}\n 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\"\n placeholder={tWithFallback(\n t,\n 'sandbox.create.fields.description.placeholder',\n 'What is this sandbox for?'\n )}\n />\n </div>\n\n {/* Template Type */}\n <div>\n <label className=\"block text-sm font-semibold mb-3\">\n {tWithFallback(t, 'sandbox.create.fields.template.label', 'Template')}\n </label>\n <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-3\">\n {templateOptions.map((option) => {\n const Icon = option.icon;\n const isSelected = formData.template === option.value;\n return (\n <button\n key={option.value}\n type=\"button\"\n onClick={() => {\n if (option.value === 'MISC_SHELL') {\n setFormData((prev) => ({\n ...prev,\n template: 'MISC_SHELL',\n containers: [\n {\n _rowId: nextRowId(),\n name: 'main',\n image: DEFAULT_SANDBOX_IMAGE_PATH,\n ports: [\n { _rowId: nextRowId(), containerPort: 80, name: 'nginx' },\n { _rowId: nextRowId(), containerPort: 3005, name: 'agent' },\n ],\n env: [],\n requestsCpu: '250m',\n requestsMemory: '512Mi',\n limitsCpu: '2',\n limitsMemory: '2Gi',\n _registryType: 'burdenoff',\n },\n ],\n }));\n } else {\n setFormData((prev) => ({\n ...prev,\n template: 'CUSTOM',\n containers: [{ ...buildEmptyContainer(), name: 'main', image: '' }],\n }));\n }\n }}\n className={`p-4 rounded-lg border-2 text-left transition-all duration-200 ${\n isSelected\n ? 'border-primary bg-action-primary-bg/5 shadow-sm'\n : 'border-border-subtle hover:border-primary/50 hover:bg-bg-sunken/50'\n }`}\n >\n <Icon\n size={24}\n className={isSelected ? 'text-primary' : 'text-text-secondary'}\n />\n <p className=\"font-medium mt-2\">\n {tWithFallback(t, option.labelKey, option.labelFallback)}\n </p>\n <p className=\"text-xs text-text-secondary mt-0.5\">\n {tWithFallback(t, option.descriptionKey, option.descriptionFallback)}\n </p>\n </button>\n );\n })}\n </div>\n </div>\n\n {/* Execution Mode */}\n <div>\n <label className=\"block text-sm font-semibold mb-3\">\n {tWithFallback(t, 'sandbox.create.fields.executionMode.label', 'Execution Mode')}\n <HelpTip\n text={tWithFallback(\n t,\n 'sandbox.create.fields.executionMode.help',\n 'Deployment keeps your sandbox running continuously and restarts on failure. Job runs to completion and exits when done.'\n )}\n />\n </label>\n <div className=\"grid grid-cols-2 gap-3\">\n {[\n {\n value: 'DEPLOYMENT' as const,\n labelKey: 'sandbox.create.fields.executionMode.deployment.label',\n labelFallback: 'Deployment',\n descKey: 'sandbox.create.fields.executionMode.deployment.description',\n descFallback: 'Long-running container (restarts on failure)',\n },\n {\n value: 'JOB' as const,\n labelKey: 'sandbox.create.fields.executionMode.job.label',\n labelFallback: 'Job',\n descKey: 'sandbox.create.fields.executionMode.job.description',\n descFallback: 'Run-to-completion task (exits when done)',\n },\n ].map((option) => {\n const isSelected = formData.mode === option.value;\n return (\n <button\n key={option.value}\n type=\"button\"\n onClick={() => handleInputChange('mode', option.value)}\n className={`p-3 rounded-lg border-2 text-left transition-all duration-200 ${\n isSelected\n ? 'border-primary bg-action-primary-bg/5 shadow-sm'\n : 'border-border-subtle hover:border-primary/50 hover:bg-bg-sunken/50'\n }`}\n >\n <p className=\"font-medium text-sm\">\n {tWithFallback(t, option.labelKey, option.labelFallback)}\n </p>\n <p className=\"text-xs text-text-secondary mt-0.5\">\n {tWithFallback(t, option.descKey, option.descFallback)}\n </p>\n </button>\n );\n })}\n </div>\n </div>\n </CardContent>\n </Card>\n\n {/* Template Selection */}\n {filteredTemplates.length > 0 && (\n <Card className=\"border-border-seam\">\n <CardContent className=\"p-6 space-y-4\">\n <h2 className=\"text-lg font-bold flex items-center gap-2\">\n <Box size={18} className=\"text-primary\" />\n {tWithFallback(\n t,\n 'sandbox.create.sections.quickStartTemplates.title',\n 'Quick Start Templates'\n )}\n </h2>\n <div className=\"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3\">\n {filteredTemplates.map((template) => {\n const isSelected = formData.templateId === template.id;\n return (\n <button\n key={template.id}\n type=\"button\"\n onClick={() => handleTemplateSelect(template)}\n className={`p-4 rounded-lg border-2 text-left transition-all duration-200 ${\n isSelected\n ? 'border-primary bg-action-primary-bg/5 shadow-sm'\n : 'border-border-subtle hover:border-primary/50 hover:bg-bg-sunken/50'\n }`}\n >\n <div className=\"flex items-center gap-2 mb-2\">\n <span className=\"font-medium text-sm\">{template.name}</span>\n {template.isDefault && (\n <Badge variant=\"secondary\" className=\"text-xs\">\n {tWithFallback(\n t,\n 'sandbox.create.sections.quickStartTemplates.defaultBadge',\n 'Default'\n )}\n </Badge>\n )}\n </div>\n {template.description && (\n <p className=\"text-xs text-text-secondary mb-2\">{template.description}</p>\n )}\n <div className=\"flex items-center gap-2 text-xs text-text-secondary\">\n <span>{template.resources?.cpuRequest ?? '?'} CPU</span>\n <span className=\"text-text-secondary/40\">|</span>\n <span>{template.resources?.memoryRequest ?? '?'} mem</span>\n <span className=\"text-text-secondary/40\">|</span>\n <span>{template.containers?.length ?? 0} containers</span>\n <span className=\"text-text-secondary/40\">|</span>\n <span>{formatTTL(template.ttlSeconds)}</span>\n </div>\n </button>\n );\n })}\n </div>\n <p className=\"text-xs text-text-secondary\">\n {tWithFallback(\n t,\n 'sandbox.create.sections.quickStartTemplates.hint',\n 'Select a template or customize resources below'\n )}\n </p>\n </CardContent>\n </Card>\n )}\n\n {/* Containers */}\n <Card className=\"border-border-seam\">\n <CardContent className=\"p-6 space-y-5\">\n <div className=\"flex items-center justify-between\">\n <h2 className=\"text-lg font-bold flex items-center gap-2\">\n <Container size={18} className=\"text-primary\" />\n {tWithFallback(t, 'sandbox.create.sections.containers.title', 'Containers')}\n <HelpTip\n text={tWithFallback(\n t,\n 'sandbox.create.sections.containers.help',\n 'A container is the application that runs inside your sandbox. The default sandbox image includes VibeControls agent, Bun, nginx, and common dev tools pre-installed.'\n )}\n />\n <Badge variant=\"secondary\">{formData.containers.length}</Badge>\n </h2>\n <Button type=\"button\" variant=\"outline\" size=\"sm\" onClick={addContainer}>\n <Plus size={14} />\n {tWithFallback(\n t,\n 'sandbox.create.sections.containers.addContainer',\n 'Add Container'\n )}\n </Button>\n </div>\n {errors.containers && (\n <p className=\"text-sm text-status-error-text flex items-center gap-1\">\n <AlertCircle size={14} />\n {errors.containers}\n </p>\n )}\n\n <div className=\"space-y-4\">\n {formData.containers.map((container, cIdx) => (\n <div\n key={container._rowId}\n className=\"p-4 rounded-lg border-2 border-border-subtle/50 bg-bg-sunken/20 space-y-4\"\n >\n <div className=\"flex items-center justify-between\">\n <h3 className=\"font-semibold text-sm\">\n {tWithFallback(t, 'sandbox.create.container.heading', 'Container #{number}', {\n number: cIdx + 1,\n })}\n {container.name && `: ${container.name}`}\n </h3>\n {formData.containers.length > 1 && (\n <Button\n type=\"button\"\n variant=\"ghost\"\n size=\"icon\"\n className=\"text-status-error-text hover:text-status-error-text size-7\"\n onClick={() => removeContainer(cIdx)}\n >\n <Trash2 size={14} />\n </Button>\n )}\n </div>\n\n {/* Container Name */}\n <div>\n <label className=\"block text-xs font-semibold mb-1\">\n {tWithFallback(t, 'sandbox.create.container.fields.name.label', 'Name')}{' '}\n <span className=\"text-status-error-text\">*</span>\n </label>\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.container.fields.name.label',\n 'Name'\n )}\n type=\"text\"\n value={container.name}\n onChange={(e) => updateContainer(cIdx, 'name', e.target.value)}\n className={`w-full px-3 py-2 border-2 rounded-lg bg-bg-surface text-sm focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${\n errors[`container_${cIdx}_name`]\n ? 'border-status-error-border'\n : 'border-border-subtle focus:border-primary'\n }`}\n placeholder={tWithFallback(\n t,\n 'sandbox.create.container.fields.name.placeholder',\n 'main'\n )}\n />\n {errors[`container_${cIdx}_name`] && (\n <p className=\"text-xs text-status-error-text mt-1\">\n {errors[`container_${cIdx}_name`]}\n </p>\n )}\n </div>\n\n {/* Image Registry Selector */}\n <div>\n <label className=\"block text-xs font-semibold mb-1\">\n {tWithFallback(t, 'sandbox.create.container.fields.image.label', 'Image')}{' '}\n <span className=\"text-status-error-text\">*</span>\n </label>\n <div className=\"flex gap-2 mb-2\">\n <button\n type=\"button\"\n onClick={() => updateContainer(cIdx, '_registryType', 'burdenoff')}\n className={`flex-1 rounded-lg border px-3 py-1.5 text-xs font-medium transition-colors ${\n (container._registryType || 'burdenoff') === 'burdenoff'\n ? 'border-primary bg-action-primary-bg/10 text-primary'\n : 'border-border-default text-text-secondary hover:bg-bg-sunken'\n }`}\n >\n {tWithFallback(\n t,\n 'sandbox.create.container.fields.image.registryBurdenoff',\n 'Burdenoff Repositories'\n )}\n </button>\n <button\n type=\"button\"\n onClick={() => updateContainer(cIdx, '_registryType', 'custom')}\n className={`flex-1 rounded-lg border px-3 py-1.5 text-xs font-medium transition-colors ${\n container._registryType === 'custom'\n ? 'border-primary bg-action-primary-bg/10 text-primary'\n : 'border-border-default text-text-secondary hover:bg-bg-sunken'\n }`}\n >\n {tWithFallback(\n t,\n 'sandbox.create.container.fields.image.registryCustom',\n 'Custom (Docker Hub)'\n )}\n </button>\n </div>\n {(container._registryType || 'burdenoff') === 'burdenoff' ? (\n <div className=\"flex items-center\">\n <span className=\"px-3 py-2 border-2 border-r-0 rounded-l-lg bg-bg-sunken text-xs text-text-secondary font-mono whitespace-nowrap\">\n {BURDENOFF_REGISTRY}/\n </span>\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.container.fields.image.label',\n 'Image'\n )}\n type=\"text\"\n value={stripBurdenoffRegistry(container.image)}\n onChange={(e) => updateContainer(cIdx, 'image', e.target.value)}\n className={`w-full px-3 py-2 border-2 rounded-r-lg bg-bg-surface text-sm font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${\n errors[`container_${cIdx}_image`]\n ? 'border-status-error-border'\n : 'border-border-subtle focus:border-primary'\n }`}\n placeholder={DEFAULT_SANDBOX_IMAGE_PATH}\n />\n </div>\n ) : (\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.container.fields.image.label',\n 'Image'\n )}\n type=\"text\"\n value={container.image}\n onChange={(e) => updateContainer(cIdx, 'image', e.target.value)}\n className={`w-full px-3 py-2 border-2 rounded-lg bg-bg-surface text-sm font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${\n errors[`container_${cIdx}_image`]\n ? 'border-status-error-border'\n : 'border-border-subtle focus:border-primary'\n }`}\n placeholder={tWithFallback(\n t,\n 'sandbox.create.container.fields.image.placeholderCustom',\n 'nginx:alpine'\n )}\n />\n )}\n {errors[`container_${cIdx}_image`] && (\n <p className=\"text-xs text-status-error-text mt-1\">\n {errors[`container_${cIdx}_image`]}\n </p>\n )}\n </div>\n\n {/* Per-container resources (optional) */}\n <div>\n <p className=\"text-xs font-semibold mb-2 text-text-secondary\">\n {tWithFallback(\n t,\n 'sandbox.create.container.resources.title',\n 'Per-Container Resources (optional)'\n )}\n </p>\n <div className=\"grid grid-cols-2 sm:grid-cols-4 gap-3\">\n <div>\n <label className=\"block text-xs text-text-secondary mb-1\">\n {tWithFallback(t, 'sandbox.create.container.resources.cpuReq', 'CPU Req')}\n </label>\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.container.resources.cpuReq',\n 'CPU Req'\n )}\n type=\"text\"\n value={container.requestsCpu}\n onChange={(e) => updateContainer(cIdx, 'requestsCpu', e.target.value)}\n 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\"\n placeholder=\"250m\"\n />\n </div>\n <div>\n <label className=\"block text-xs text-text-secondary mb-1\">\n {tWithFallback(t, 'sandbox.create.container.resources.cpuLim', 'CPU Lim')}\n </label>\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.container.resources.cpuLim',\n 'CPU Lim'\n )}\n type=\"text\"\n value={container.limitsCpu}\n onChange={(e) => updateContainer(cIdx, 'limitsCpu', e.target.value)}\n 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\"\n placeholder=\"1\"\n />\n </div>\n <div>\n <label className=\"block text-xs text-text-secondary mb-1\">\n {tWithFallback(t, 'sandbox.create.container.resources.memReq', 'Mem Req')}\n </label>\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.container.resources.memReq',\n 'Mem Req'\n )}\n type=\"text\"\n value={container.requestsMemory}\n onChange={(e) => updateContainer(cIdx, 'requestsMemory', e.target.value)}\n 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\"\n placeholder=\"512Mi\"\n />\n </div>\n <div>\n <label className=\"block text-xs text-text-secondary mb-1\">\n {tWithFallback(t, 'sandbox.create.container.resources.memLim', 'Mem Lim')}\n </label>\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.container.resources.memLim',\n 'Mem Lim'\n )}\n type=\"text\"\n value={container.limitsMemory}\n onChange={(e) => updateContainer(cIdx, 'limitsMemory', e.target.value)}\n 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\"\n placeholder=\"2Gi\"\n />\n </div>\n </div>\n </div>\n\n {/* Ports */}\n <div>\n <div className=\"flex items-center justify-between mb-2\">\n <p className=\"text-xs font-semibold text-text-secondary\">\n {tWithFallback(t, 'sandbox.create.container.ports.title', 'Ports')}\n </p>\n <button\n type=\"button\"\n onClick={() => addPort(cIdx)}\n className=\"text-xs text-primary hover:underline\"\n >\n {tWithFallback(t, 'sandbox.create.container.ports.add', '+ Add Port')}\n </button>\n </div>\n {container.ports.map((port, pIdx) => (\n <div key={port._rowId} className=\"flex items-center gap-2 mb-2\">\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.container.ports.portNumber',\n 'Port'\n )}\n type=\"number\"\n value={port.containerPort}\n onChange={(e) => {\n const newPorts = [...container.ports];\n newPorts[pIdx] = {\n ...newPorts[pIdx],\n containerPort: Number(e.target.value),\n };\n updateContainer(cIdx, 'ports', newPorts);\n }}\n className=\"w-24 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\"\n placeholder=\"8080\"\n />\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.container.ports.portName',\n 'Port name'\n )}\n type=\"text\"\n value={port.name}\n onChange={(e) => {\n const newPorts = [...container.ports];\n newPorts[pIdx] = { ...newPorts[pIdx], name: e.target.value };\n updateContainer(cIdx, 'ports', newPorts);\n }}\n className=\"flex-1 px-3 py-1.5 border rounded-lg bg-bg-surface text-xs focus:outline-none focus:ring-2 focus:ring-primary/20\"\n placeholder={tWithFallback(\n t,\n 'sandbox.create.container.ports.namePlaceholder',\n 'Port name (optional)'\n )}\n />\n <button\n type=\"button\"\n onClick={() => removePort(cIdx, pIdx)}\n className=\"p-1.5 text-status-error-text hover:bg-status-error-bg/10 rounded\"\n >\n <X size={12} />\n </button>\n </div>\n ))}\n </div>\n\n {/* Env Vars */}\n <div>\n <div className=\"flex items-center justify-between mb-2\">\n <p className=\"text-xs font-semibold text-text-secondary\">\n {tWithFallback(\n t,\n 'sandbox.create.container.envVars.title',\n 'Environment Variables'\n )}\n </p>\n <button\n type=\"button\"\n onClick={() => addEnvVar(cIdx)}\n className=\"text-xs text-primary hover:underline\"\n >\n {tWithFallback(t, 'sandbox.create.container.envVars.add', '+ Add Variable')}\n </button>\n </div>\n {container.env.map((envVar, eIdx) => (\n <div\n key={`${container._rowId}-env-${eIdx}-${envVar.name}`}\n className=\"flex items-center gap-2 mb-2\"\n >\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.container.envVars.key',\n 'Key'\n )}\n type=\"text\"\n value={envVar.name}\n onChange={(e) => {\n const newEnv = [...container.env];\n newEnv[eIdx] = { ...newEnv[eIdx], name: e.target.value };\n updateContainer(cIdx, 'env', newEnv);\n }}\n className=\"w-1/3 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\"\n placeholder={tWithFallback(\n t,\n 'sandbox.create.container.envVars.key',\n 'KEY'\n )}\n />\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.container.envVars.value',\n 'Value'\n )}\n type=\"text\"\n value={envVar.value}\n onChange={(e) => {\n const newEnv = [...container.env];\n newEnv[eIdx] = { ...newEnv[eIdx], value: e.target.value };\n updateContainer(cIdx, 'env', newEnv);\n }}\n className=\"flex-1 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\"\n placeholder={tWithFallback(\n t,\n 'sandbox.create.container.envVars.value',\n 'value'\n )}\n />\n <button\n type=\"button\"\n onClick={() => removeEnvVar(cIdx, eIdx)}\n className=\"p-1.5 text-status-error-text hover:bg-status-error-bg/10 rounded\"\n >\n <X size={12} />\n </button>\n </div>\n ))}\n </div>\n </div>\n ))}\n </div>\n </CardContent>\n </Card>\n\n {/* Resources */}\n <Card className=\"border-border-seam\">\n <CardContent className=\"p-6 space-y-5\">\n <h2 className=\"text-lg font-bold flex items-center gap-2\">\n <Cpu size={18} className=\"text-primary\" />\n {tWithFallback(t, 'sandbox.create.sections.podResources.title', 'Pod Resources')}\n <HelpTip\n text={tWithFallback(\n t,\n 'sandbox.create.sections.podResources.help',\n 'Resources allocated to the entire sandbox. CPU is in millicores (1000m = 1 CPU core). Memory in MiB or GiB.'\n )}\n />\n </h2>\n\n <OptionalFields\n title={tWithFallback(\n t,\n 'sandbox.create.sections.podResources.advancedTitle',\n 'Advanced resource limits'\n )}\n description={tWithFallback(\n t,\n 'sandbox.create.sections.podResources.advancedDescription',\n 'CPU and memory requests/limits. Defaults work for most sandboxes.'\n )}\n >\n <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-5\">\n {/* CPU Request */}\n <div>\n <label\n htmlFor=\"cpuRequest\"\n className=\"text-sm font-semibold mb-2 flex items-center gap-2\"\n >\n <Cpu size={14} className=\"text-status-info-text\" />\n {tWithFallback(t, 'sandbox.create.fields.cpuRequest.label', 'CPU Request')}\n </label>\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.fields.cpuRequest.label',\n 'CPU Request'\n )}\n type=\"text\"\n id=\"cpuRequest\"\n value={formData.cpuRequest}\n onChange={(e) => handleInputChange('cpuRequest', e.target.value)}\n className={`w-full px-4 py-2.5 border-2 rounded-lg bg-bg-surface font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${\n errors.cpuRequest\n ? 'border-status-error-border'\n : 'border-border-subtle focus:border-primary'\n }`}\n placeholder=\"500m\"\n />\n {errors.cpuRequest && (\n <p className=\"text-sm text-status-error-text mt-1\">{errors.cpuRequest}</p>\n )}\n </div>\n\n {/* CPU Limit */}\n <div>\n <label\n htmlFor=\"cpuLimit\"\n className=\"text-sm font-semibold mb-2 flex items-center gap-2\"\n >\n <Cpu size={14} className=\"text-status-info-text\" />\n {tWithFallback(t, 'sandbox.create.fields.cpuLimit.label', 'CPU Limit')}\n </label>\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.fields.cpuLimit.label',\n 'CPU Limit'\n )}\n type=\"text\"\n id=\"cpuLimit\"\n value={formData.cpuLimit}\n onChange={(e) => handleInputChange('cpuLimit', e.target.value)}\n className={`w-full px-4 py-2.5 border-2 rounded-lg bg-bg-surface font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${\n errors.cpuLimit\n ? 'border-status-error-border'\n : 'border-border-subtle focus:border-primary'\n }`}\n placeholder=\"2\"\n />\n {errors.cpuLimit && (\n <p className=\"text-sm text-status-error-text mt-1\">{errors.cpuLimit}</p>\n )}\n </div>\n\n {/* Memory Request */}\n <div>\n <label\n htmlFor=\"memoryRequest\"\n className=\"text-sm font-semibold mb-2 flex items-center gap-2\"\n >\n <MemoryStick size={14} className=\"text-accent-purple-subtle\" />\n {tWithFallback(\n t,\n 'sandbox.create.fields.memoryRequest.label',\n 'Memory Request'\n )}\n </label>\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.fields.memoryRequest.label',\n 'Memory Request'\n )}\n type=\"text\"\n id=\"memoryRequest\"\n value={formData.memoryRequest}\n onChange={(e) => handleInputChange('memoryRequest', e.target.value)}\n className={`w-full px-4 py-2.5 border-2 rounded-lg bg-bg-surface font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${\n errors.memoryRequest\n ? 'border-status-error-border'\n : 'border-border-subtle focus:border-primary'\n }`}\n placeholder=\"1Gi\"\n />\n {errors.memoryRequest && (\n <p className=\"text-sm text-status-error-text mt-1\">{errors.memoryRequest}</p>\n )}\n </div>\n\n {/* Memory Limit */}\n <div>\n <label\n htmlFor=\"memoryLimit\"\n className=\"text-sm font-semibold mb-2 flex items-center gap-2\"\n >\n <MemoryStick size={14} className=\"text-accent-purple-subtle\" />\n {tWithFallback(t, 'sandbox.create.fields.memoryLimit.label', 'Memory Limit')}\n </label>\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.fields.memoryLimit.label',\n 'Memory Limit'\n )}\n type=\"text\"\n id=\"memoryLimit\"\n value={formData.memoryLimit}\n onChange={(e) => handleInputChange('memoryLimit', e.target.value)}\n className={`w-full px-4 py-2.5 border-2 rounded-lg bg-bg-surface font-mono focus:outline-none focus:ring-2 focus:ring-primary/20 transition-all ${\n errors.memoryLimit\n ? 'border-status-error-border'\n : 'border-border-subtle focus:border-primary'\n }`}\n placeholder=\"4Gi\"\n />\n {errors.memoryLimit && (\n <p className=\"text-sm text-status-error-text mt-1\">{errors.memoryLimit}</p>\n )}\n </div>\n </div>\n </OptionalFields>\n\n {/* TTL */}\n <div>\n <label\n htmlFor=\"ttlSeconds\"\n className=\"text-sm font-semibold mb-2 flex items-center gap-2\"\n >\n <Timer size={14} className=\"text-status-info-text\" />\n {tWithFallback(t, 'sandbox.create.fields.ttl.label', 'Time to Live')}\n <HelpTip\n text={tWithFallback(\n t,\n 'sandbox.create.fields.ttl.help',\n \"Your sandbox will be automatically destroyed after this duration to save resources. You can extend it while it's running.\"\n )}\n />\n <Badge variant=\"outline\" className=\"text-xs ml-auto\">\n {formatTTL(formData.ttlSeconds)}\n </Badge>\n </label>\n <input\n aria-label={tWithFallback(t, 'sandbox.create.fields.ttl.label', 'Time to Live')}\n type=\"range\"\n id=\"ttlSeconds\"\n min={600}\n max={86400}\n step={600}\n value={formData.ttlSeconds}\n onChange={(e) => handleInputChange('ttlSeconds', Number(e.target.value))}\n className=\"w-full mt-2 accent-primary\"\n />\n <div className=\"flex justify-between text-xs text-text-secondary mt-1\">\n <span>10m</span>\n <span>4h</span>\n <span>12h</span>\n <span>24h</span>\n </div>\n {errors.ttlSeconds && (\n <p className=\"text-sm text-status-error-text mt-1\">{errors.ttlSeconds}</p>\n )}\n </div>\n\n <div>\n <label className=\"text-sm font-semibold mb-2 flex items-center gap-2\">\n {tWithFallback(t, 'sandbox.create.fields.tags.label', 'Tags')}\n <HelpTip\n text={tWithFallback(\n t,\n 'sandbox.create.fields.tags.help',\n 'Free-form labels. Use them to filter the sandbox list. Max 32 tags, 64 chars each.'\n )}\n />\n </label>\n <TagsInput value={tags} onChange={setTags} />\n </div>\n </CardContent>\n </Card>\n\n {/* Storage */}\n <Card className=\"border-border-seam\">\n <CardContent className=\"p-6 space-y-5\">\n <h2 className=\"text-lg font-bold flex items-center gap-2\">\n <Database size={18} className=\"text-primary\" />\n {tWithFallback(t, 'sandbox.create.sections.storage.title', 'Storage')}\n <HelpTip\n text={tWithFallback(\n t,\n 'sandbox.create.sections.storage.help',\n 'Ephemeral storage is fast but lost when the sandbox stops. Persistent storage survives restarts.'\n )}\n />\n </h2>\n\n {/* Storage Mode */}\n <div>\n <label className=\"block text-sm font-semibold mb-3\">\n {tWithFallback(t, 'sandbox.create.fields.storageMode.label', 'Mode')}\n </label>\n <div className=\"grid grid-cols-3 gap-3\">\n {(['NONE', 'EPHEMERAL', 'PERSISTENT'] as StorageMode[]).map((mode) => {\n const isSelected = formData.storageMode === mode;\n const labels: Record<StorageMode, string> = {\n NONE: tWithFallback(t, 'sandbox.create.fields.storageMode.none.label', 'None'),\n EPHEMERAL: tWithFallback(\n t,\n 'sandbox.create.fields.storageMode.ephemeral.label',\n 'Ephemeral'\n ),\n PERSISTENT: tWithFallback(\n t,\n 'sandbox.create.fields.storageMode.persistent.label',\n 'Persistent'\n ),\n };\n const descriptions: Record<StorageMode, string> = {\n NONE: tWithFallback(\n t,\n 'sandbox.create.fields.storageMode.none.description',\n 'No persistent storage'\n ),\n EPHEMERAL: tWithFallback(\n t,\n 'sandbox.create.fields.storageMode.ephemeral.description',\n 'Lost when sandbox stops'\n ),\n PERSISTENT: tWithFallback(\n t,\n 'sandbox.create.fields.storageMode.persistent.description',\n 'Retained across restarts'\n ),\n };\n return (\n <button\n key={mode}\n type=\"button\"\n onClick={() => handleInputChange('storageMode', mode)}\n className={`p-3 rounded-lg border-2 text-left transition-all duration-200 ${\n isSelected\n ? 'border-primary bg-action-primary-bg/5 shadow-sm'\n : 'border-border-subtle hover:border-primary/50 hover:bg-bg-sunken/50'\n }`}\n >\n <p className=\"font-medium text-sm\">{labels[mode]}</p>\n <p className=\"text-xs text-text-secondary mt-0.5\">{descriptions[mode]}</p>\n </button>\n );\n })}\n </div>\n </div>\n\n {/* Storage details when not NONE */}\n {formData.storageMode !== 'NONE' && (\n <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-5\">\n <div>\n <label htmlFor=\"storageSizeGi\" className=\"block text-sm font-semibold mb-2\">\n {tWithFallback(t, 'sandbox.create.fields.storageSizeGi.label', 'Size (GiB)')}\n </label>\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.fields.storageSizeGi.label',\n 'Size (GiB)'\n )}\n type=\"number\"\n id=\"storageSizeGi\"\n value={formData.storageSizeGi}\n onChange={(e) => handleInputChange('storageSizeGi', Number(e.target.value))}\n min={1}\n max={200}\n 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\"\n />\n </div>\n <div>\n <label htmlFor=\"storageMountPath\" className=\"block text-sm font-semibold mb-2\">\n {tWithFallback(t, 'sandbox.create.fields.storageMountPath.label', 'Mount Path')}\n </label>\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.fields.storageMountPath.label',\n 'Mount Path'\n )}\n type=\"text\"\n id=\"storageMountPath\"\n value={formData.storageMountPath}\n onChange={(e) => handleInputChange('storageMountPath', e.target.value)}\n 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\"\n placeholder=\"/data\"\n />\n </div>\n {formData.storageMode === 'PERSISTENT' && (\n <div className=\"flex items-center gap-3 sm:col-span-2\">\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.fields.storageRetainOnDelete.label',\n 'Retain volume data when sandbox is deleted'\n )}\n type=\"checkbox\"\n id=\"storageRetainOnDelete\"\n checked={formData.storageRetainOnDelete}\n onChange={(e) => handleInputChange('storageRetainOnDelete', e.target.checked)}\n className=\"size-4 rounded border-border-subtle text-primary focus:ring-primary/20\"\n />\n <label htmlFor=\"storageRetainOnDelete\" className=\"text-sm font-medium\">\n {tWithFallback(\n t,\n 'sandbox.create.fields.storageRetainOnDelete.label',\n 'Retain volume data when sandbox is deleted'\n )}\n </label>\n </div>\n )}\n <div className=\"sm:col-span-2\">\n <FilesFolderPicker\n value={formData.filesFolderId}\n onChange={(folderId) => handleInputChange('filesFolderId', folderId)}\n />\n </div>\n </div>\n )}\n </CardContent>\n </Card>\n\n {/* Advanced: Gateway URLs */}\n {formData.template === 'MISC_SHELL' && (\n <Card className=\"border-border-seam\">\n <CardContent className=\"p-5\">\n <details>\n <summary className=\"cursor-pointer text-sm font-semibold text-text-secondary flex items-center gap-2\">\n <Settings size={14} />\n {tWithFallback(\n t,\n 'sandbox.create.sections.advancedSettings.title',\n 'Advanced Settings'\n )}\n <HelpTip\n text={tWithFallback(\n t,\n 'sandbox.create.sections.advancedSettings.help',\n 'Override the gateway URLs the sandbox agent uses for authentication and API calls. Useful when exposing local gateways via tunnel for development.'\n )}\n />\n </summary>\n <div className=\"mt-4 space-y-4\">\n <div>\n <label className=\"block text-sm font-medium text-text-primary mb-1\">\n {tWithFallback(\n t,\n 'sandbox.create.fields.globalGatewayUrl.label',\n 'Global Gateway URL'\n )}\n </label>\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.fields.globalGatewayUrl.label',\n 'Global Gateway URL'\n )}\n type=\"text\"\n value={formData.globalGatewayUrl}\n onChange={(e) => handleInputChange('globalGatewayUrl', e.target.value)}\n placeholder={DEFAULT_GLOBAL_GATEWAY_URL}\n className=\"w-full rounded-lg border border-border-subtle px-3 py-2 text-sm font-mono bg-bg-surface focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary\"\n />\n <p className=\"text-xs text-text-secondary mt-1\">\n {tWithFallback(\n t,\n 'sandbox.create.fields.globalGatewayUrl.hint',\n 'The agent authenticates via this URL. Override with a tunnel URL to reach local gateways.'\n )}\n </p>\n </div>\n <div>\n <label className=\"block text-sm font-medium text-text-primary mb-1\">\n {tWithFallback(\n t,\n 'sandbox.create.fields.workspaceGatewayUrl.label',\n 'Workspace Gateway URL'\n )}\n </label>\n <input\n aria-label={tWithFallback(\n t,\n 'sandbox.create.fields.workspaceGatewayUrl.label',\n 'Workspace Gateway URL'\n )}\n type=\"text\"\n value={formData.workspaceGatewayUrl}\n onChange={(e) => handleInputChange('workspaceGatewayUrl', e.target.value)}\n placeholder={DEFAULT_WSPACE_GATEWAY_URL}\n className=\"w-full rounded-lg border border-border-subtle px-3 py-2 text-sm font-mono bg-bg-surface focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary\"\n />\n <p className=\"text-xs text-text-secondary mt-1\">\n {tWithFallback(\n t,\n 'sandbox.create.fields.workspaceGatewayUrl.hint',\n 'The agent reports to this URL. Override with a tunnel URL to reach local gateways.'\n )}\n </p>\n </div>\n </div>\n </details>\n </CardContent>\n </Card>\n )}\n\n {/* Actions */}\n <div className=\"flex flex-col sm:flex-row gap-3 pt-2\">\n <Button type=\"submit\" disabled={submitting} size=\"lg\">\n {submitting ? <Loader2 size={18} className=\"animate-spin\" /> : <Save size={18} />}\n {tWithFallback(t, 'sandbox.create.actions.submit', 'Create Sandbox')}\n </Button>\n <Button\n type=\"button\"\n variant=\"outline\"\n onClick={() => navigate?.(basePath)}\n disabled={submitting}\n >\n {tWithFallback(t, 'sandbox.create.actions.cancel', 'Cancel')}\n </Button>\n </div>\n </form>\n <AlertDialog open={quotaExhausted} onOpenChange={setQuotaExhausted}>\n <AlertDialogContent>\n <AlertDialogHeader>\n <AlertDialogTitle>\n {tWithFallback(t, 'sandbox.create.quota.title', 'Sandbox limit reached')}\n </AlertDialogTitle>\n <AlertDialogDescription>\n {tWithFallback(\n t,\n 'sandbox.create.quota.description',\n 'You have reached your concurrent sandbox limit. Stop an existing sandbox or upgrade your plan to continue.'\n )}\n </AlertDialogDescription>\n </AlertDialogHeader>\n <AlertDialogFooter>\n <AlertDialogCancel>\n {tWithFallback(t, 'sandbox.create.quota.dismiss', 'Dismiss')}\n </AlertDialogCancel>\n <AlertDialogAction onClick={() => navigate?.('/billing')}>\n {tWithFallback(t, 'sandbox.create.quota.billing', 'View Billing')}\n </AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n </AlertDialog>\n </PageLayout>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAiFA,IAAImB,IAAgB;AACpB,SAASC,IAAoB;CAE3B,OADA,KAAiB,GACV,OAAOD,EAAc,GAAG,KAAK,IAAI;AAC1C;AAuBA,IAAME,IAOA,CACJ;CACE,OAAO;CACP,UAAU;CACV,eAAe;CACf,gBAAgB;CAChB,qBACE;CACF,MAAMC;AACR,GACA;CACE,OAAO;CACP,UAAU;CACV,eAAe;CACf,gBAAgB;CAChB,qBAAqB;CACrB,MAAMC;AACR,CACF;AAEA,SAASC,IAAyC;CAChD,OAAO;EACL,QAAQJ,EAAU;EAClB,MAAM;EACN,OAAO;EACP,OAAO,CAAC;EACR,KAAK,CAAC;EACN,aAAa;EACb,gBAAgB;EAChB,WAAW;EACX,cAAc;CAChB;AACF;AAOA,IAAMK,IACJ,OAAO,SAAW,QACjB,OAAO,SAAS,SAAS,SAAS,OAAO,KACxC,OAAO,SAAS,SAAS,SAAS,sBAAsB,KACxD,OAAO,SAAS,aAAa,eAC7B,OAAO,SAAS,aAAa,cAW3BC,IAA6BC,EAAuB3B,CAAqB,GAEzE6B,IAA6BJ,IAC/B,sDACA,gDAEEK,IAA6BL,IAC/B,oEACA;AAEJ,SAAgBM,IAAoB;CAClC,IAAM,EAAE,cAAW,KAAK,aAAU,mBAAgBC,EAAW,GACvDC,IAAgBC,GAAiB,GACjC,EAAE,SAAMC,GAAQ,GAChB,CAACC,GAAMC,MAAWC,EAAmB,CAAC,CAAC,GAEvC,CAACC,GAAUC,KAAeF,EAAmB;EACjD,MAAM;EACN,aAAa;EACb,UAAU;EACV,MAAM;EACN,YAAY;EACZ,UAAU;EACV,eAAe;EACf,aAAa;EACb,YAAY;EACZ,YAAY;EACZ,YAAY,CACV;GACE,QAAQlB,EAAU;GAClB,MAAM;GACN,OAAOM;GACP,OAAO,CACL;IAAE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SACC,CAAA;QACA,EAAA,CAAA,CACF;OACE,CAAA,CAAA,EAAA,CAAA;MACE,CAAA;KACT,CAAA;KAIR,kBAAC,OAAD;MAAK,WAAU;MAAf,UAAA,CACE,kBAAC8D,GAAD;OAAQ,MAAK;OAAS,UAAUxE;OAAY,MAAK;OAAjD,UAAA,CACGA,IAAa,kBAACgG,IAAD;QAAS,MAAM;QAAI,WAAU;OAAgB,CAAA,IAAI,kBAACC,IAAD,EAAM,MAAM,GAAK,CAAA,GAC/ExF,EAAcC,GAAG,iCAAiC,gBAAgB,CAC7D;MACR,CAAA,GAAA,kBAAC8D,GAAD;OACE,MAAK;OACL,SAAQ;OACR,eAAenB,IAAWD,CAAQ;OAClC,UAAUpD;OAET,UAAAS,EAAcC,GAAG,iCAAiC,QAAQ;MACrD,CAAA,CACL;;IACD;;GACN,kBAACrD,GAAD;IAAa,MAAM6C;IAAgB,cAAcC;IAC/C,UAAA,kBAAC7C,GAAD,EAAA,UAAA,CACE,kBAACC,IAAD,EAAA,UAAA,CACE,kBAACC,IAAD,EAAA,UACGiD,EAAcC,GAAG,8BAA8B,uBAAuB,EACvD,CAAA,GAClB,kBAACjD,GAAD,EAAA,UACGgD,EACCC,GACA,oCACA,4GACF,EACsB,CAAA,CACP,EAAA,CAAA,GACnB,kBAAChD,IAAD,EAAA,UAAA,CACE,kBAACC,GAAD,EAAA,UACG8C,EAAcC,GAAG,gCAAgC,SAAS,EAC1C,CAAA,GACnB,kBAAC9C,GAAD;KAAmB,eAAeyF,IAAW,UAAU;KACpD,UAAA5C,EAAcC,GAAG,gCAAgC,cAAc;IAC/C,CAAA,CACF,EAAA,CAAA,CACD,EAAA,CAAA;GACT,CAAA;EACH;;AAEhB"}
@@ -2,5 +2,4 @@
2
2
  * Sandbox Detail Page
3
3
  * Shows full sandbox information with actions
4
4
  */
5
- export declare function SandboxDetailPage(): import("react").JSX.Element;
6
- //# sourceMappingURL=SandboxDetailPage.d.ts.map
5
+ export declare function SandboxDetailPage(): import('react').JSX.Element;