{#if !isPersonalWorkspace} {/if}
{#if selectorOpen}
{#if !searchQuery.trim()} { selectorOpen = false; }} > Hjem {#if isPersonalWorkspace && homeLabel === 'Hjem'} {/if} { selectorOpen = false; }} > Administrasjon {#if isPersonalWorkspace && homeLabel === 'Administrasjon'} {/if} {/if} {#if myCollections.length > 0}
Mine flater
{#each myCollections as node (node.id)} {#if deletingId === node.id}

Slett «{node.title || 'Uten tittel'}»? {#if deleteChildCount > 0}
{deleteChildCount} noder tilhører denne flaten. {/if}

{:else}
{#if renamingId === node.id} e.stopPropagation()} /> {:else} {/if}
{/if} {/each} {/if} {#if sharedCollections.length > 0}
Delte flater
{#each sharedCollections as node (node.id)} {/each} {/if} {#if myCollections.length === 0 && sharedCollections.length === 0 && searchQuery.trim()}
Ingen treff
{/if}
{/if}
{#if traitNames.length > 0 && onToggleTraitAdmin} {/if}
{#if toolMenuOpen}
Opprett
Legg til panel
{#each availableTools as tool (tool.key)} {/each}
{/if}
{#if connected} {:else} {/if}
{#if settingsOpen}
Tema
{#each THEME_PRESETS as p (p.name)} {/each}
{#each savedThemes as saved, i (i)} {/each} {#if savedThemes.length < MAX_SAVED} {/if}
Farge
updateSurface('hue', +e.currentTarget.value)} />
Metning
updateSurface('saturation', +e.currentTarget.value)} />
Lyshet
updateSurface('lightness', +e.currentTarget.value)} />
{THEME_SURFACES[editingSurface]}
{#if $page.data.session?.user}
{$page.data.session.user.name}
{/if}
{/if}