import ParameterListItem_default from "./ParameterListItem.vue.js";
import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, openBlock, renderList, unref } from "vue";
import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
//#region src/features/Operation/components/OperationResponses.vue?vue&type=script&setup=true&lang.ts
var _hoisted_1 = {
	key: 0,
	class: "mt-6"
};
var _hoisted_2 = {
	"aria-label": "Responses",
	class: "mb-3 list-none p-0 text-sm"
};
var OperationResponses_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
	__name: "OperationResponses",
	props: {
		responses: {},
		breadcrumb: {},
		collapsableItems: { type: Boolean },
		eventBus: {},
		options: {}
	},
	setup(__props) {
		return (_ctx, _cache) => {
			return Object.keys(__props.responses ?? {}).length ? (openBlock(), createElementBlock("div", _hoisted_1, [_cache[0] || (_cache[0] = createElementVNode("div", { class: "text-c-1 mt-3 mb-3 leading-[1.45] font-medium" }, "Responses", -1)), createElementVNode("ul", _hoisted_2, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.responses, (response, status) => {
				return openBlock(), createBlock(ParameterListItem_default, {
					key: status,
					breadcrumb: __props.breadcrumb,
					collapsableItems: __props.collapsableItems,
					eventBus: __props.eventBus,
					name: status,
					options: __props.options,
					parameter: unref(getResolvedRef)(response)
				}, null, 8, [
					"breadcrumb",
					"collapsableItems",
					"eventBus",
					"name",
					"options",
					"parameter"
				]);
			}), 128))])])) : createCommentVNode("", true);
		};
	}
});
//#endregion
export { OperationResponses_vue_vue_type_script_setup_true_lang_default as default };

//# sourceMappingURL=OperationResponses.vue.script.js.map