e.stopPropagation()} >
System Prompt
{#if loading}
{/if}
✕
{#if saving}
{:else} Save {/if}
Reset
{#if justSaved && !hasChanges}
Saved.
{:else if hasChanges}
Unsaved changes
{/if}
{#if error}
{error}
{/if}
Variables
{#if groups.length === 0 && !loading}
No variables available.
{/if}
{#each groups as group (group.type)}
{group.type}
{#each group.variables as variable (variable.type + variable.name)} {#if isDynamicVariable(variable)}
{ if (e.key === "Enter") void insertFileVariable(variable.type); }} />
void insertFileVariable(variable.type)} > Insert
{:else}
void insertTagAtCursor(buildTag(variable.type, variable.name))} > {variable.name}
{/if} {/each}
{/each}