//#region src/v2/blocks/operation-block/helpers/get-selected-body-content-type.ts
/**
* Returns the selected body content type for the given request body and exampleKey.
* Priority:
*   1. requestBody?.['x-scalar-selected-content-type']?.[exampleKey] (if set)
*   2. First key in requestBody?.content (if available)
*   3. null (if none available)
*/
var getSelectedBodyContentType = (requestBody, exampleKey = "default") => {
	return requestBody?.["x-scalar-selected-content-type"]?.[exampleKey] ?? Object.keys(requestBody?.content ?? {})[0] ?? null;
};
//#endregion
export { getSelectedBodyContentType };

//# sourceMappingURL=get-selected-body-content-type.js.map