{#if !$userStore?.operator}
changeStep(e.detail.index + 1)} disabled={pathError != ''} > /
editScript(false)} > Save editScript(true)}>Save and exit {#if initialPath != ''} { window.open(`/scripts/add?template=${initialPath}`) }}>Fork {/if}
{#if step === 1} changeStep(2)} namePlaceholder="script" kind="script" /> {#if lockedLanguage}
As a forked script, the language '{script.language}' cannot be modified.
{/if}
{#each langs as [label, lang]} {@const isPicked = script.language == lang && template == 'script'} {/each}
{#each scriptKindOptions as { value, title, desc }} {@const isPicked = script.kind === value} {/each}
{:else if step === 2} {:else if step === 3} {/if}
{:else} Script Builder not available to operators {/if}