// #region Imports
import { html } from '../../../../Dom/Html';
import { when } from '../../../Directives/Directives';
import { Orientation } from '../../../Types/Orientation';
import { TextAlignment } from '../../../Types/TextAlignment';
// #endregion
/**
 * The template of the `ChatMessageDividerElement`.
 *
 * @public
 */
export function chatMessageDividerElementTemplate(e) {
    return html `
        ${when(e.isSticky, () => html `
        <mosaik-sticky part="sticky">
            <div part="root">
                <mosaik-divider part="divider"
                                .dir="${e.dir}"
                                .orientation="${Orientation.Horizontal}"
                                .thickness="${e.thickness}"></mosaik-divider>
                <slot>
                    <mosaik-text part="text"
                                .dir="${e.dir}"
                                .text="${e.text}"
                                .alignment="${TextAlignment.Center}"
                                .truncate="${true}"></mosaik-text>
                </slot>
                <mosaik-divider part="divider"
                                .dir="${e.dir}"
                                .orientation="${Orientation.Horizontal}"
                                .thickness="${e.thickness}"></mosaik-divider>
            </div>
        </mosaik-sticky>
        `, () => html `
            <div part="root">
                <mosaik-divider part="divider"
                                .dir="${e.dir}"
                                .orientation="${Orientation.Horizontal}"
                                .thickness="${e.thickness}"></mosaik-divider>
                <slot>
                    <mosaik-text part="text"
                                 .dir="${e.dir}"
                                 .text="${e.text}"
                                 .alignment="${TextAlignment.Center}"
                                 .truncate="${true}"></mosaik-text>
                </slot>
                <mosaik-divider part="divider"
                                .dir="${e.dir}"
                                .orientation="${Orientation.Horizontal}"
                                .thickness="${e.thickness}"></mosaik-divider>
            </div>
        `)}
    `;
}
//# sourceMappingURL=ChatMessageDividerElementTemplate.js.map