// #region Imports
import { html } from '../../../../Dom/Html';
import { when } from '../../../Directives/Directives';
import { Orientation } from '../../../Types/Orientation';
import { Size } from '../../../Types/Size';
import { TextAlignment } from '../../../Types/TextAlignment';
import { Icons } from '../../../../Resources/Icons';
// #endregion
/**
 * The template of the {@link EmptyStateElement}.
 *
 * @public
 */
export function emptyStateElementTemplate(e) {
    return html `
        <mosaik-icon part="icon"
                     .size="${Size.Giant}"
                     .data="${e.icon.trim() ? e.icon : Icons.glasses}"
                     .variant="${'neutral'}"></mosaik-icon>
        <mosaik-stack .orientation="${Orientation.Vertical}">
            ${when(e.header, () => html `
            <mosaik-text part="header"
                         .readonly="${true}"
                         .wrap="${true}"
                         .alignment="${TextAlignment.Center}"
                         .text="${e.header}"
                         .formatter="${e.formatter}"></mosaik-text>
            `)}
            ${when(e.content, () => html `
            <mosaik-text part="content"
                         .readonly="${true}"
                         .wrap="${true}"
                         .alignment="${TextAlignment.Center}"
                         .text="${e.content}"
                         .formatter="${e.formatter}"></mosaik-text>
            `)}
            <slot></slot>
        </mosaik-stack>
        <mosaik-stack part="innerStack"
                      .orientation="${Orientation.Horizontal}"
                      ?hidden="${!e.hasSlotContent('actions')}">
            <slot name="actions"></slot>
        </mosaik-stack>
    `;
}
//# sourceMappingURL=EmptyStateElementTemplate.js.map