// #region Imports
import { html } from '../../../../Dom/Html';
import { when } from '../../../Directives/Directives';
// #endregion
/**
 * The template of the `ChatElement`.
 *
 * @public
 */
export function chatElementTemplate(e) {
    return html `
        <slot name="header"></slot>
        <div part="messagesWrapper">
            <div part="messages">
                <slot name="message"></slot>
                ${when(e.scrollToEnd, () => html `
                <mosaik-back-top .to="${'bottom'}"></mosaik-back-top>
                `)}
            </div>
        </div>
        <div part="empty">
            <slot name="empty"></slot>
        </div>
        <div part="footer">
            <slot name="input"></slot>
        </div>
    `;
}
//# sourceMappingURL=ChatElementTemplate.js.map