{#if options.length > 1}
{/if} {#if disabled}
{:else}
x.value == initialPath)} class="grow" on:change={() => { dispatch('select', { path: scriptPath }) }} bind:justValue={scriptPath} {items} placeholder="Pick a {itemKind}" inputStyles={SELECT_INPUT_DEFAULT_STYLE.inputStyles} containerStyles={SELECT_INPUT_DEFAULT_STYLE.containerStyles} /> {/if} {#if scriptPath !== undefined && scriptPath !== ''} {#if itemKind == 'flow'}
{ drawerFlowViewer.openDrawer() }} > Show flow
{:else}
{ const { language, content } = await getScriptByPath(scriptPath ?? '') code = content lang = language drawerViewer.openDrawer() }} > Show code
{/if} {/if}