"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.formatRequiredCapabilityMessages = formatRequiredCapabilityMessages;
const required_capability_intersection_1 = require("./required-capability-intersection");
const required_mcp_1 = require("./required-mcp");
const required_skills_1 = require("./required-skills");
function formatRequiredCapabilityMessages(input) {
    return [
        ...(input.requiredSkillReport.ok
            ? []
            : [
                (0, required_skills_1.formatRequiredSkillAvailabilityReport)({
                    report: input.requiredSkillReport,
                    locale: input.locale,
                }),
            ]),
        ...(input.requiredMcpReport === null || input.requiredMcpReport.ok
            ? []
            : [
                (0, required_mcp_1.formatRequiredMcpAvailabilityReport)({
                    report: input.requiredMcpReport,
                    locale: input.locale,
                }),
            ]),
        ...(input.capabilityIntersectionReport === null ||
            input.capabilityIntersectionReport.ok
            ? []
            : [
                (0, required_capability_intersection_1.formatRequiredCapabilityWorkerIntersectionReport)({
                    report: input.capabilityIntersectionReport,
                    locale: input.locale,
                }),
            ]),
    ];
}
