"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetCookiesPipe = void 0;
const index_js_1 = require("../model/index.js");
class GetCookiesPipe extends index_js_1.Pipe {
    async apply(inputSet, _ctx) {
        const cookies = await this.$page.getAllCookies();
        const results = [];
        for (const el of inputSet) {
            for (const cookie of cookies) {
                results.push(el.clone(cookie));
            }
        }
        return results;
    }
}
exports.GetCookiesPipe = GetCookiesPipe;
GetCookiesPipe.$type = 'Browser.getCookies';
GetCookiesPipe.$help = `
Obtains browser cookies and returns them as element values.
`;
//# sourceMappingURL=Browser.getCookies.js.map