import Section_default from "../../settings/components/Section.vue.js";
import CookiesTable_default from "../../global-cookies/components/CookiesTable.vue.js";
import { computed, createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, unref, withCtx } from "vue";
var Cookies_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
	name: "Cookies",
	props: {
		documentSlug: {},
		document: {},
		eventBus: {},
		layout: {},
		path: {},
		method: {},
		exampleName: {},
		environment: {},
		securitySchemes: {},
		workspaceStore: {},
		activeWorkspace: {},
		plugins: {},
		customThemes: {},
		currentTheme: {},
		isDarkMode: { type: Boolean },
		fetchRegistryDocument: { type: Function },
		telemetry: { type: Boolean },
		onUpdateTelemetry: { type: Function },
		collectionType: {}
	},
	setup(__props) {
		const cookies = computed(() => {
			return (__props.collectionType === "document" ? __props.document["x-scalar-cookies"] : __props.workspaceStore.workspace["x-scalar-cookies"]) ?? [];
		});
		return (_ctx, _cache) => {
			return __props.collectionType !== "operation" ? (openBlock(), createBlock(Section_default, { key: 0 }, {
				title: withCtx(() => [..._cache[0] || (_cache[0] = [createTextVNode("Cookies", -1)])]),
				description: withCtx(() => [..._cache[1] || (_cache[1] = [
					createTextVNode(" Manage your collection's cookies here.", -1),
					createElementVNode("br", null, null, -1),
					createTextVNode("Cookies allow you to store and send key-value data with your API requests—often used for things like session tokens, authentication, and saving user preferences.", -1),
					createElementVNode("br", null, null, -1)
				])]),
				default: withCtx(() => [createVNode(unref(CookiesTable_default), {
					collectionType: __props.collectionType,
					cookies: cookies.value,
					eventBus: __props.eventBus
				}, null, 8, [
					"collectionType",
					"cookies",
					"eventBus"
				])]),
				_: 1
			})) : createCommentVNode("", true);
		};
	}
});
//#endregion
export { Cookies_vue_vue_type_script_setup_true_lang_default as default };

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