import { Atom } from "../../atom";
import { Helpers, expect } from "../../setup";
export class OverlayAtom extends Atom {
    get cdkContainerPane() {
        return Helpers.page.locator(`.${OverlayAtom.CDK_CONTAINER_PANE}`);
    }
    get cdkContainerBox() {
        return Helpers.page.locator(`.${OverlayAtom.CDK_CONTAINER_BOX}`);
    }
    get cdkContainer() {
        return Helpers.page.locator(`.${OverlayAtom.CDK_CONTAINER}`);
    }
    static { this.CSS_CLASS = "nui-overlay"; }
    static { this.CDK_CONTAINER = "cdk-overlay-container"; }
    static { this.CDK_CONTAINER_BOX = "cdk-overlay-connected-position-bounding-box"; }
    static { this.CDK_CONTAINER_PANE = "cdk-overlay-pane"; }
    async isOpened() {
        return this.cdkContainerPane.first().isVisible();
    }
    async toBeOpened() {
        await expect(this.cdkContainerPane).toBeVisible();
    }
    async toNotBeOpened() {
        return this.cdkContainerPane.isHidden();
    }
}
//# sourceMappingURL=overlay.atom.js.map