// #region Imports
import { html } from '../../../../Dom/Html';
import { ifDefined, repeat, when } from '../../../Directives/Directives';
import { Orientation } from '../../../Types/Orientation';
import { VerticalAlignment } from '../../../Types/VerticalAlignment';
// #endregion
/**
 * The template of the {@link CalendarItemElement}.
 *
 * @public
 */
export function calendarItemElementTemplate(e) {
    return html `
        ${when(!e.disabled && !e.isBlackout, () => html `
        <mosaik-focus-ring part="focusRing"
                           .variant="${e.variant}"
                           .visible="${e.isFocused}"
                           .controlled="${'manual'}"
                           @connected="${(evt) => evt.target.attach(e)}"></mosaik-focus-ring>
        <mosaik-ripple .variant="${e.variant}"
                       @connected="${(evt) => evt.target.attach(e)}"></mosaik-ripple>
        `)}
        <mosaik-text part="text"
                     .dir="${e.dir}"
                     .text="${e.text}"
                     .disabled="${e.disabled}"></mosaik-text>
        ${when(e.markers.length, () => html `
        <mosaik-stack .dir="${e.dir}"
                      .orientation="${Orientation.Horizontal}"
                      .verticalAlignment="${VerticalAlignment.Center}"
                      .gap="${'2px'}">
            ${repeat(e.markers, (x) => html `
            <mosaik-dot part="marker"
                        .dir="${e.dir}"
                        ?disabled="${ifDefined(x.disabled)}"
                        .variant="${ifDefined(x.variant)}"
                        .size="${ifDefined(x.size)}"></mosaik-dot>
            `)}
        </mosaik-stack>
        `)}
    `;
}
//# sourceMappingURL=CalendarItemElementTemplate.js.map