// #region Imports
import { html } from '../../../../Dom/Html';
import { when } from '../../../Directives/Directives';
import { TextAlignment } from '../../../Types/TextAlignment';
// #endregion
/**
 * The template of the `BusyStateElement`.
 *
 * @public
 */
export function busyStateElementTemplate(e) {
    return html `
        <mosaik-progress-ring part="symbol"
                              .radius="${'26px'}"
                              .isIndeterminate="${true}"></mosaik-progress-ring>
        <div part="root">
            <slot name="header">
                ${when(e.header.trim(), () => html `
                <mosaik-text part="header"
                             .readonly="${true}"
                             .wrap="${true}"
                             .alignment="${TextAlignment.Center}"
                             .text="${e.header}"
                             .formatter="${e.formatter}"></mosaik-text>
                `)}
            </slot>
            <slot name="content">
                ${when(e.content.trim(), () => html `
                <mosaik-text part="content"
                             .readonly="${true}"
                             .wrap="${true}"
                             .alignment="${TextAlignment.Center}"
                             .text="${e.content}"
                             .formatter="${e.formatter}"></mosaik-text>
                `)}
            </slot>
            <slot></slot>
        </div>
        <div part="actions" ?hidden="${!e.hasSlotContent('actions')}">
            <slot name="actions"></slot>
        </div>
    `;
}
//# sourceMappingURL=BusyStateElementTemplate.js.map