// #region Imports
import { html } from '../../../../Dom/Html';
import { choose, when } from '../../../Directives/Directives';
import { Appearance } from '../../../Types/Appearance';
import { CheckType } from '../../../Types/CheckType';
import { SelectionMode } from '../../../Types/SelectionMode';
import { Size } from '../../../Types/Size';
// #endregion
/**
 * The template of the {@link ComboItemElement}.
 *
 * @public
 */
export function comboItemElementTemplate(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>
        `)}
        ${choose(e.parent.selectionMode, [[SelectionMode.None, () => html `
            `], [SelectionMode.Single, () => html `
            `], [SelectionMode.Multiple, () => html `
            ${when(e.isChecked, () => html `
            <mosaik-checkmark part="checkmark"
                              .appearance="${Appearance.Plain}"
                              .variant="${e.variant}"
                              .type="${CheckType.Hook}"
                              ?checked="${e.isChecked}"
                              ?disabled="${e.disabled}"></mosaik-checkmark>
            `)}
            `]])}
        <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}"></mosaik-text>
        `)}
        </slot>
        <slot></slot>
    `;
}
//# sourceMappingURL=ComboItemElementTemplate.js.map