import{getMediaType as y}from"./mediaType.js";function c({parser:a,info:e,isRequestType:p,options:d,data:{operation:n,type:i,response:m,absolutePointer:s=""}}){const r=Object.keys(e).map(t=>y(a,t,p,e[t],d,{operation:n,type:i,response:m,absolutePointer:s})),o=r.filter(t=>!!t.examples||!!t.formExamples).length>0;return{mediaTypes:r,isRequestType:p,hasSample:o,operation:n}}function f(a,e){return e&&a.mediaTypes.find(d=>d.name===e)||a.mediaTypes[0]||{}}export{f as getActiveMediaType,c as getMediaContent};
