// #region Imports
import { html } from '../../../../Dom/Html';
import { when } from '../../../Directives/Directives';
import { Appearance } from '../../../Types/Appearance';
import { CheckType } from '../../../Types/CheckType';
import { Size } from '../../../Types/Size';
// #endregion
/**
 * The template of the {@link SelectItemElement}.
 *
 * @public
 */
export function selectItemElementTemplate(e) {
    return html `
        ${when(!e.disabled, () => 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 part="ripple"
                       .variant="${e.variant}"
                       @connected="${(evt) => evt.target.attach(e)}"></mosaik-ripple>
        `)}
        ${when(e.isActive, () => html `
        <mosaik-checkmark part="checkmark"
                          .appearance="${Appearance.Plain}"
                          .variant="${e.variant}"
                          .type="${CheckType.Hook}"
                          ?checked="${e.isActive}"
                          ?disabled="${e.disabled}"></mosaik-checkmark>
        `)}
        <slot name="start"></slot>
        <slot name="icon">
        ${when(e.icon, () => html `
            <mosaik-icon size="${Size.Small}"
                         .data="${e.icon}"
                         ?inline="${true}"
                         ?disabled="${e.disabled}"></mosaik-icon>
        `)}
        </slot>
        <slot name="label">
        ${when(e.label, () => html `
            <mosaik-text .text="${e.label}"
                         ?disabled="${e.disabled}"
                         ?truncate="${true}"></mosaik-text>
        `)}
        </slot>
        <slot name="end"></slot>
    `;
}
//# sourceMappingURL=SelectItemElementTemplate.js.map