"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getMediaContent=getMediaContent,exports.getActiveMediaType=getActiveMediaType;const mediaType_1=require("./mediaType");function getMediaContent({parser:e,info:t,isRequestType:i,options:p,data:{operation:a,type:o,response:n,absolutePointer:s=""}}){const r=Object.keys(t).map((r=>(0,mediaType_1.getMediaType)(e,r,i,t[r],p,{operation:a,type:o,response:n,absolutePointer:s}))),d=r.filter((e=>!!e.examples||!!e.formExamples)).length>0;return{mediaTypes:r,isRequestType:i,hasSample:d,operation:a}}function getActiveMediaType(e,t){return t&&e.mediaTypes.find((e=>e.name===t))||e.mediaTypes[0]||{}}
//# sourceMappingURL=mediaContent.js.map