modalOpen = true}> {#if host?.uri} {@const split = host.uri.split('://').map(s => s.split('/')).flat()}
{split[0]}://
{split[1]}
{split.slice(2).join('/')}
{:else}
no host selected
{/if}
modalOpen = true}>
{#if Object.keys(hosts).length}
{#each Object.entries(hosts) as [hostKey, host]}
select(hostKey)}> {host.name}
{/each}
{/if}