"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Definitions = void 0;
const session_1 = require("../../../../session");
const dates_and_calendars_1 = require("../dates-and-calendars");
function Definitions(definitions) {
    return {
        async getData(session = (0, session_1.getDefault)()) {
            const paramsList = definitions.map(definition => definition.getInstrument());
            const datesAndCalendarsProvider = new dates_and_calendars_1.DatesAndCalendarsProvider(session);
            return datesAndCalendarsProvider.getHolidays(paramsList);
        },
    };
}
exports.Definitions = Definitions;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmaW5pdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvY29udGVudC9pcGEvZGF0ZXMtYW5kLWNhbGVuZGFycy9ob2xpZGF5cy9kZWZpbml0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFFQSxpREFBMEQ7QUFDMUQsZ0VBQW1FO0FBRW5FLFNBQWdCLFdBQVcsQ0FBQyxXQUFrRDtJQUMxRSxPQUFPO1FBQ0gsS0FBSyxDQUFDLE9BQU8sQ0FBQyxVQUFtQixJQUFBLG9CQUFVLEdBQUU7WUFDekMsTUFBTSxVQUFVLEdBQUcsV0FBVyxDQUFDLEdBQUcsQ0FBQyxVQUFVLENBQUMsRUFBRSxDQUFDLFVBQVUsQ0FBQyxhQUFjLEVBQUUsQ0FBQyxDQUFDO1lBRTlFLE1BQU0seUJBQXlCLEdBQUcsSUFBSSwrQ0FBeUIsQ0FBQyxPQUFPLENBQUMsQ0FBQztZQUV6RSxPQUFPLHlCQUF5QixDQUFDLFdBQVcsQ0FBQyxVQUFVLENBQUMsQ0FBQztRQUM3RCxDQUFDO0tBQ0osQ0FBQztBQUNOLENBQUM7QUFWRCxrQ0FVQyJ9