// #region Imports
import { templateContent } from 'lit/directives/template-content.js';
import { html } from '../../../../Dom/Html';
import { RendererServiceLocator } from '../../../../Dom/Renderer';
// #endregion
/**
 * Represents the `Portal` class.
 *
 * @public
 */
export class Portal {
    // #region Methods
    /**
     * Opens a template inside a portal.
     *
     * @public
     * @param id - The template id.
     */
    static open(template) {
        // const portal = RendererServiceLocator.current.createElement<PortalElement>(PortalElement.is);
        // portal.assignToSlot('',)
        RendererServiceLocator.current.appendChild(document.body, html `
            <mosaik-portal id="psuedoPortal">
                <div id="any-psuedo-id">
                    ${templateContent(template)}
                </div>
            </mosaik-portal>
        `);
    }
}
/**
 * @private
 */
export class LayerManager {
    static _z = 999;
    static next() {
        return ++LayerManager._z;
    }
}
//# sourceMappingURL=Portal.js.map