Subir música
    {#each steps as step, i (step.key)}
  1. {#if stepStates[i] === 'done'} {:else} {i + 1} {/if} {step.label}

    {step.hint}

  2. {/each}
{#if status === 'done'}

¡Subida!

«{publishedTitle}» se está procesando. Aparecerá lista para reproducir en tu biblioteca en unos momentos.

{:else}
{ status = 'uploading'; errorMsg = ''; errorDetail = ''; return async ({ result }) => { if (result.type === 'success') { publishedTitle = title; status = 'done'; } else if (result.type === 'failure') { status = 'error'; errorMsg = (result.data?.message as string) ?? 'No se pudo subir la canción.'; errorDetail = (result.data?.detail as string | undefined) ?? ''; } else { status = 'error'; errorMsg = 'Error inesperado durante la subida.'; } }; }} class="mt-10 space-y-8" >
{ e.preventDefault(); dragging = true; }} ondragleave={() => (dragging = false)} ondrop={onDrop} class="relative flex min-h-48 flex-col items-center justify-center rounded-panel p-6 text-center transition sm:min-h-64 sm:p-10 {dragging ? 'bg-surface-2 ring-2 ring-accent/50' : 'bg-surface'}" > {#if audioName === ''} {:else} {/if} {#if audioName === ''}

Arrastra tu audio aquí o haz clic para elegir

MP3, FLAC, WAV…

{:else}

{audioName}

{formatSize(audioSize)} · Listo para subir

{/if}
{#key coverResetToken} (hasCover = true)} /> {/key} {#snippet hint()}

{hasCover ? 'Portada lista' : 'Haz clic para elegir'}

{/snippet}
{#snippet hint()}

Se usa como nombre público de la pista en el catálogo.

{title.length}/{LIMITS.trackTitle} {/snippet}
{#each options as option (option.genre)} toggleTag(option.genre)} > {option.label} {/each}
{#each tags as tag (tag)} {/each} {#snippet hint()}

Elige al menos uno. Algunos géneros no se pueden combinar, como Metal con Ambient.

{tags.length} elegidos {/snippet}
Contenido explícito
Acepto los términos y condiciones al subir {title.trim() !== '' ? `«${title}»` : 'esta canción'}. {#if status === 'uploading'}
Subiendo y creando la pista… un momento
{/if} {#if status === 'error'} {errorMsg} {#if errorDetail}{errorDetail}{/if} {/if}
{/if}