import { defineComponent as i, createBlock as n, openBlock as c, unref as e, withCtx as t, renderSlot as l, createVNode as a, createTextVNode as d, toDisplayString as s } from "vue";
import { ScalarMarkdown as m } from "@scalar/components";
import { useNavState as p } from "../../../hooks/useNavState.js";
import f from "../../Section/SectionContainerAccordion.vue.js";
import u from "../../Section/SectionHeader.vue.js";
import g from "../../Anchor/Anchor.vue.js";
import _ from "../../Section/SectionHeaderTag.vue.js";
const B = /* @__PURE__ */ i({
  __name: "TagAccordion",
  props: {
    tag: {}
  },
  setup(S) {
    const { getTagId: r } = p();
    return (o, v) => (c(), n(e(f), { class: "tag-section" }, {
      title: t(() => [
        a(e(u), { class: "tag-name" }, {
          default: t(() => [
            a(e(g), {
              id: e(r)(o.tag)
            }, {
              default: t(() => [
                a(e(_), { level: 2 }, {
                  default: t(() => [
                    d(s(o.tag.name), 1)
                  ]),
                  _: 1
                })
              ]),
              _: 1
            }, 8, ["id"])
          ]),
          _: 1
        }),
        a(e(m), {
          class: "tag-description",
          value: o.tag.description,
          withImages: ""
        }, null, 8, ["value"])
      ]),
      default: t(() => [
        l(o.$slots, "default", {}, void 0, !0)
      ]),
      _: 3
    }));
  }
});
export {
  B as default
};
