{machineId ? name || $i18n.t('Machine settings') : $i18n.t('New machine')}

{#if machineId && !loading} (showAccess = true)} /> {/if}
{#if loading}
{:else}
{#if error}{/if} {#if !machineId && connections.length > 1} {#each connections as connection} {/each} {/if} option.value === scope)?.hint ?? 'All chats share one instance.' )} let:labelId >
{#if scope} {$i18n.t('per')} {#each scopes as option} {/each} {/if} (scope = e.detail ? 'user' : '')} />
{#if showAdvanced}
{#each images.length ? images : defaultImages as value} {/each} {#each ['0.5', '1', '2', '4', '8'] as value}{/each} {#each ['512Mi', '1Gi', '2Gi', '4Gi', '8Gi', '16Gi'] as value}{/each} {#each ['1Gi', '5Gi', '10Gi', '20Gi', '50Gi'] as value}{/each} {#each status?.network_profiles ?? [] as value}{/each}
{$i18n.t('Environment variables')}
{#each env as row, index}
{/each}

{$i18n.t('Set when the instance starts.')}

{/if}
{#if machineId}
{$i18n.t('Instances')} {instances.length}
{#each instances as instance (instance.id)} {@const title = instanceName(instance)}
{title}{#if instance.user_name} · {instance.user_name}{/if}
{#if pending[instance.id]} {$i18n.t(pendingCopy[pending[instance.id]])} {:else} {instance.status === 'running' ? $i18n.t('Running') : $i18n.t('Stopped')} {/if}
{@const target = instanceTarget(instance)} {#if instance.status === 'running'} {#if target} {/if} {:else} {/if}
{:else}
{$i18n.t('No instances yet. One starts the first time the machine is used.')}
{/each}
{/if}
{#if machineId} {/if}
{/if}
{#if showAccess}
{$i18n.t('Access')}: {name}

{$i18n.t('People with access can run commands and see every file on this machine.')}

{/if} {#if info} {#key info} (info = null)} /> {/key} {/if} {#if files} {#key files} (files = null)} /> {/key} {/if} confirmation?.run()} />