{glob.t('vcen.editor.mtas.editor.keyLabel')}
{ editKey = (e.currentTarget as HTMLInputElement).value; keyError = ''; }} onblur={handleKeyCommit} onkeydown={handleKeydown} class={['input input-bordered w-full font-mono', keyError ? 'input-error' : ''].join(' ')} placeholder={glob.t('vcen.editor.mtas.editor.keyPlaceholder')} /> {#if keyError}
{keyError}
{/if}
{#if attributes.length > 0}
Atributos
{#each attributes as attr (attr)} {@const active = activeAttrs.includes(attr)}
toggleAttr(attr)} class={[ 'badge badge-md cursor-pointer select-none transition-all gap-1', active ? 'badge-primary' : 'badge-ghost border border-base-300 hover:border-primary/40', ].join(' ')} > {#if active}
{/if} {attr}
{/each}
{/if}
update({ hidden: (e.currentTarget as HTMLInputElement).checked })} class="toggle toggle-sm toggle-primary" />
{glob.t('vcen.editor.mtas.editor.hideField')}