"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DomIframe = void 0;
const index_js_1 = require("../model/index.js");
class DomIframe extends index_js_1.Pipe {
    async apply(inputSet, _ctx) {
        return await this.map(inputSet, async (el) => {
            return await el.shadowRoot();
        });
    }
}
exports.DomIframe = DomIframe;
DomIframe.$type = 'DOM.shadowRoot';
DomIframe.$help = `
Obtains shadow DOM root of the current element.
An error is thrown if element has no shadow root.
`;
//# sourceMappingURL=DOM.shadowRoot.js.map