// #region Imports
import { html } from '../../../../Dom/Html';
import { repeat, unsafeHTML, when } from '../../../Directives/Directives';
// #endregion
/**
 * The template of the `KbdElement`.
 *
 * @public
 */
export function kbdElementTemplate(e) {
    return html `
        ${repeat(e.value, (x) => x, (x, i) => html `
        <kbd part="kbd">${unsafeHTML(e.getModifierSymbol(x))}</kbd>
        ${when(i < e.value.length - 1, () => html `
        <span part="delimiter" role="text"> + </span>
        `)}
        `)}
  `;
}
//# sourceMappingURL=KbdElementTemplate.js.map