// #region Imports
import { html } from '../../../../Dom/Html';
import { when } from '../../../Directives/Directives';
import { HorizontalAlignment } from '../../../Types/HorizontalAlignment';
import { Size } from '../../../Types/Size';
import { TextAlignment } from '../../../Types/TextAlignment';
import { VerticalAlignment } from '../../../Types/VerticalAlignment';
// #endregion
/**
 * The template of the {@link ChatMarkerElement}.
 *
 * @public
 */
export function chatMarkerElementTemplate(e) {
    return html `
        ${when(e.isSticky, () => html `
        <mosaik-sticky>
            <mosaik-stack .dir="${e.dir}"
                          .verticalAlignment="${VerticalAlignment.Center}"
                          .horizontalAlignment="${HorizontalAlignment.Center}"
                          .orientation="${e.orientation}"
                          .gap="${'8px'}">
                ${when(e.icon, () => html `
                <mosaik-icon .dir="${e.dir}"
                             .size="${Size.Tiny}"
                             .data="${e.icon}"></mosaik-icon>
                `)}
                <slot>
                    <mosaik-text part="text"
                                 .dir="${e.dir}"
                                 .text="${e.text}"
                                 .formatter="${e.formatter}"
                                 .alignment="${TextAlignment.Center}"
                                 .wrap="${true}"></mosaik-text>
                </slot>
            </mosaik-stack>
        </mosaik-sticky>
        `, () => html `
        <mosaik-stack .dir="${e.dir}"
                      .verticalAlignment="${VerticalAlignment.Center}"
                      .horizontalAlignment="${HorizontalAlignment.Center}"
                      .orientation="${e.orientation}"
                      .gap="${'8px'}">
            ${when(e.icon, () => html `
            <mosaik-icon .dir="${e.dir}"
                         .size="${Size.Tiny}"
                         .data="${e.icon}"></mosaik-icon>
            `)}
            <slot>
                <mosaik-text part="text"
                             .dir="${e.dir}"
                             .text="${e.text}"
                             .formatter="${e.formatter}"
                             .alignment="${TextAlignment.Center}"
                             .wrap="${true}"></mosaik-text>
            </slot>
        </mosaik-stack>
        `)}
    `;
}
//# sourceMappingURL=ChatMarkerElementTemplate.js.map