// #region Imports
import { html } from '../Dom/Html';
// #endregion
/**
 * The template of the {@link RouterLinkElement}.
 *
 * @public
 */
export function routerLinkElementTemplate(e) {
    // The href attribute on the internal anchor should be the resolved URL
    // This allows the browser to show the correct URL on hover and enables
    // native anchor behavior for the RouterController to intercept
    const resolvedHref = e.disabled ? '' : e.toString();
    return html `
        <a part="link"
           role="link"
           href=${resolvedHref}
           target=${e.disabled ? '' : e.target}
           aria-disabled=${e.disabled ? 'true' : 'false'}
           tabindex="-1">
            <slot></slot>
        </a>
    `;
}
//# sourceMappingURL=RouterLinkElementTemplate.js.map