{#if open}
onPick?.({ blank: true })}>
Blank workflow
{#if loadingModels}
Loading models...
{:else if loadError}
{loadError}
{:else if models.length === 0}
No models found — add a checkpoint to ComfyUI/models/checkpoints and restart ComfyUI.
{:else if archGroups.length === 0}
No matches
{:else} {#each archGroups as g (g.label)}
{g.label}
{#each g.models as m (m.hash)}
pickModel(m)} >
{displayName(m)}
▸
{/each} {/each} {/if}
{#if selectedModelHash}
{#if loadingTemplates}
Loading templates...
{:else if templates.length === 0}
No templates for this model
{:else} {#each templates as tpl (tpl.id)}
pickTemplate(tpl)}> {#if tpl.category === "Video"}
{:else if tpl.category === "Editing"}
{:else if tpl.category === "Custom"}
{:else}
{/if}
{tpl.name}
{tplBlurb(tpl)}
{/each} {/if}
{/if}
{/if}