import { computed, mergeProps, unref, useSSRContext } from 'vue'; import { ssrRenderAttrs, ssrRenderAttr, ssrRenderSlot } from 'vue/server-renderer'; import { g as useRuntimeConfig } from './server.mjs'; import '../nitro/nitro.mjs'; import 'node:http'; import 'node:https'; import 'node:events'; import 'node:buffer'; import 'node:fs'; import 'node:path'; import 'node:crypto'; import 'node:url'; import 'better-sqlite3'; import 'vue-router'; import 'ant-design-vue'; import '@babel/runtime/helpers/esm/extends'; import 'stylis'; import 'dayjs'; import '../routes/renderer.mjs'; import 'vue-bundle-renderer/runtime'; import 'unhead/server'; import 'devalue'; import 'unhead/plugins'; import 'unhead/utils'; const _sfc_main = { __name: "ProseH2", __ssrInlineRender: true, props: { id: { type: String, required: false } }, setup(__props) { const props = __props; const { headings } = useRuntimeConfig().public.mdc; const generate = computed(() => props.id && (typeof headings?.anchorLinks === "boolean" && headings?.anchorLinks === true || typeof headings?.anchorLinks === "object" && headings?.anchorLinks?.h2)); return (_ctx, _push, _parent, _attrs) => { _push(``); if (props.id && unref(generate)) { _push(``); ssrRenderSlot(_ctx.$slots, "default", {}, null, _push, _parent); _push(``); } else { ssrRenderSlot(_ctx.$slots, "default", {}, null, _push, _parent); } _push(``); }; } }; const _sfc_setup = _sfc_main.setup; _sfc_main.setup = (props, ctx) => { const ssrContext = useSSRContext(); (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("../node_modules/.pnpm/@nuxtjs+mdc@0.20.2_magicast@0.5.1/node_modules/@nuxtjs/mdc/dist/runtime/components/prose/ProseH2.vue"); return _sfc_setup ? _sfc_setup(props, ctx) : void 0; }; export { _sfc_main as default }; //# sourceMappingURL=ProseH2-BrCjL_dH.mjs.map