// #region Imports
import { html } from '../../../../Dom/Html';
import { Icons } from '../../../../Resources/Icons';
import { when } from '../../../Directives/Directives';
import { styleSheetVar } from '../../../Directives/StyleSheetVarDirective';
import { Orientation } from '../../../Types/Orientation';
import { Size } from '../../../Types/Size';
import { TextAlignment } from '../../../Types/TextAlignment';
import { Variant } from '../../../Types/Variant';
// #endregion
/**
 * The template of the {@link SuccessStateElement}.
 *
 * @public
 */
export function successStateElementTemplate(e) {
    return html `
        <mosaik-icon part="icon"
                     .size="${Size.Giant}"
                     .data="${e.icon.trim().length > 0 ? e.icon : Icons.successCircle}"
                     .variant="${Variant.Success}"></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 .orientation="${Orientation.Horizontal}"
                      .gap="${styleSheetVar('--success-state-gap')}"
                      ?hidden="${!e.hasSlotContent('actions')}">
            <slot name="actions"></slot>
        </mosaik-stack>
    `;
}
//# sourceMappingURL=SuccessStateElementTemplate.js.map