{#if responseContent === null} {#if !floatingInput}
{ selectedText = window.getSelection().toString(); floatingInput = true; await tick(); setTimeout(() => { const input = document.getElementById('floating-message-input'); if (input) { input.focus(); } }, 0); }} >
Ask
{ selectedText = window.getSelection().toString(); explainHandler(); }} >
Explain
{:else}
{ if (e.key === 'Enter') { askHandler(); } }} />
{ askHandler(); }} >
{/if} {:else}
{#if responseContent.trim() === ''}
{:else}
{/if} {#if responseDone}
{$i18n.t('Add')}
{/if}
{/if}