"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createActionByType = exports.getScreenshoter = void 0;
const getContentType_1 = require("../getContentType");
const content_types_1 = require("@ewizardjs/content-types");
const WizError_1 = require("../../modules/WizError");
const lazyRequire_1 = require("../../bin/utils/lazyRequire");
const Config_1 = require("../../modules/Config");
exports.getScreenshoter = getContentType_1.default(createActionByType);
function createActionByType(type) {
    switch (type) {
        case content_types_1.ContentTypes.EDETAILER:
            return lazyRequire_1.default(Config_1.Config.getSync().screenshoter, { unsafe: true });
        default:
            throw new WizError_1.WizError('THUMBNAILS_CREATION_IMPOSSIBLE', type);
    }
}
exports.createActionByType = createActionByType;
//# sourceMappingURL=index.js.map