// #region Imports
import { html } from '../../../../Dom/Html';
import { when } from '../../../Directives/Directives';
// #endregion
/**
 * The template of the {@link MessageContentElement}.
 *
 * @public
 */
export function messageContentElementTemplate(e) {
    return html `
        <slot>
            ${when(e.text.trim().length > 0, () => html `
            <mosaik-text part="text"
                         .text="${e.text.trim()}"
                         .formatter="${e.formatter}"
                         .wrap="${true}"
                         .dir="${e.dir}"
                         .lang="${e.lang}"
                         .maxLines="${!e.isExpanded ? e.collapsedLines : null}"
                         ?disabled="${e.disabled}"></mosaik-text>
            `)}
        </slot>
    `;
}
//# sourceMappingURL=MessageContentElementTemplate.js.map