// #region Imports
import { html } from '../../../../Dom/Html';
import { when } from '../../../Directives/Directives';
import { ifNonEmpty } from '../../../Directives/IfNonEmpty';
// #endregion
/**
 * The template of the `AnchorElement`.
 *
 * @public
 */
export function anchorElementTemplate(e) {
    return html `
        <a part="link"
           href="${ifNonEmpty(e.href)}"
           rel="${ifNonEmpty(e.rel)}"
           target="${ifNonEmpty(e.target)}"
           download="${ifNonEmpty(e.download)}"
           class="${e.underline}">
            <slot name="label">
                ${when(e.label, () => html `
                <mosaik-text part="label"
                             .text="${e.label}"
                             .variant="${e.variant}"
                             ?disabled="${e.disabled}"></mosaik-text>
                `)}
            </slot>
        </a>
    `;
}
//# sourceMappingURL=AnchorElementTemplate.js.map