(pointerInside = false)} onpointercancel={() => (pointerInside = false)} />
(pointerInside = true)} class="composer" class:locked={!!locked} class:compact class:stacked={!!tools} class:resting={!expanded} onfocusout={leaveComposer} class:dragging onsubmit={(event) => (event.preventDefault(), send())} use:fileDrops > {#if menu.length} {/if} {#if hovered && images.has(hovered.n)}
clearTimeout(hoverTimer)} onpointerleave={scheduleHideHover} > {marker(hovered.n)} #{hovered.n}
{/if} {#if attachmentCount}
{attachmentCount} {attachmentCount === 1 ? 'attachment' : 'attachments'} MAX_BYTES} >{formatSize(attachmentBytes)} / {formatSize(MAX_BYTES)}
{/if} {#if markedFiles.length} {/if} {#if editing || editPending}
{editPending === 'holding' ? 'holding a waiting message…' : editPending === 'saving' ? 'saving the edit…' : editPending === 'releasing' ? 'finishing the edit…' : text.trim() || attachmentCount ? 'editing a waiting message · enter saves' : 'enter drops the waiting message'} {#if editing} {/if}
{/if} {#if feedback} 0} role="status" >{feedback}{/if}
0} contenteditable={readOnly ? 'false' : 'true'} role="textbox" aria-multiline="true" aria-label="message" aria-disabled={readOnly} data-placeholder={locked || placeholder} spellcheck="true" tabindex="0" oninput={onInput} onfocus={() => { composing = true; if (completing) oncommands?.(); }} onkeydown={keydown} onpaste={paste} >
{ const input = event.currentTarget; attach(input.files ?? []).then(() => (input.value = '')); }} />
{#if glance}{@render glance()}{/if} {#if tools}{@render tools()}{/if} {#if onpopout} {/if} {#if busy && onstop} {/if}