// #region Imports
import { html } from '../../../../Dom/Html';
import { when } from '../../../Directives/Directives';
// #endregion
/**
 * The template of the {@link MapElement}.
 *
 * @public
 */
export function mapElementTemplate(e) {
    const url = e.getEmbedUrl();
    return html `
        ${when(url !== '', () => html `
            <iframe part="map"
                    src="${url}"
                    loading="lazy"
                    referrerpolicy="no-referrer-when-downgrade"
                    allowfullscreen
                    width="${e.width}"
                    height="${e.height}"
                    aria-label="${e.label || `Map at ${e.latitude}, ${e.longitude}`}"></iframe>
        `)}
    `;
}
//# sourceMappingURL=MapElementTemplate.js.map