{#if customUrl}
{ e.preventDefault() if (!imageUrl) throw new Error('missing imageurl') if (URL.canParse != undefined) { if (!URL.canParse(imageUrl)) throw new Error('invalid URL') } passedImageUrl = imageUrl open = false }} class="contents" > {:else} { open = false passedImageUrl = uploaded[0] }} /> {/if}