"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DomIsVisible = void 0;
const index_js_1 = require("../model/index.js");
class DomIsVisible extends index_js_1.Pipe {
    async apply(inputSet, _ctx) {
        return await this.map(inputSet, async (el) => {
            return el.clone(await el.remote.isVisible());
        });
    }
}
exports.DomIsVisible = DomIsVisible;
DomIsVisible.$type = 'DOM.isVisible';
DomIsVisible.$help = `
Returns true if Element is visible, that is:

- its content box has both width and height greater than zero
- its CSS styles don't include visibility: hidden

### Use For

- filtering invisible elements for further manipulations
- asserting element visibility in expectations
`;
//# sourceMappingURL=DOM.isVisible.js.map