"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.makeGetViewportSize = void 0;
const driver_1 = require("@applitools/driver");
function makeGetViewportSize({ spec, logger: mainLogger }) {
    return async function getViewportSize({ target, logger = mainLogger }) {
        logger = logger.extend(mainLogger);
        logger.log(`Command "getViewportSize" is called`);
        const driver = await (0, driver_1.makeDriver)({ driver: target, spec, logger });
        return driver.getViewportSize();
    };
}
exports.makeGetViewportSize = makeGetViewportSize;
