import { defineComponent as f, createBlock as m, openBlock as e, unref as a, withCtx as c, createElementVNode as p, normalizeClass as o, createVNode as d, createElementBlock as l, Fragment as i, createTextVNode as u, renderList as _ } from "vue";
import { Disclosure as v, DisclosureButton as k, DisclosurePanel as B } from "@headlessui/vue";
import { ScalarIcon as H } from "@scalar/components";
import S from "../../../components/Content/Schema/SchemaProperty.vue.js";
const V = /* @__PURE__ */ f({
  __name: "ParameterHeaders",
  props: {
    headers: {}
  },
  setup(x) {
    function h(t) {
      return t.schema !== void 0;
    }
    return (t, y) => (e(), m(a(v), null, {
      default: c(({ open: r }) => [
        p("div", {
          class: o(["headers-card headers-card--compact", [{ "headers-card--open": r }]])
        }, [
          p("div", {
            class: o(["headers-properties", { "headers-properties-open": r }])
          }, [
            d(a(k), {
              class: "headers-card-title headers-card-title--compact",
              style: {
                top: "calc(var(--refs-header-height)))"
              }
            }, {
              default: c(() => [
                d(a(H), {
                  class: o(["headers-card-title-icon", { "headers-card-title-icon--open": r }]),
                  icon: "Add",
                  size: "sm"
                }, null, 8, ["class"]),
                r ? (e(), l(i, { key: 0 }, [
                  u(" Hide Headers ")
                ], 64)) : (e(), l(i, { key: 1 }, [
                  u(" Show Headers ")
                ], 64))
              ]),
              _: 2
            }, 1024),
            d(a(B), null, {
              default: c(() => [
                (e(!0), l(i, null, _(t.headers, (s, n) => (e(), m(S, {
                  key: n,
                  description: s.description,
                  name: `${n}`,
                  value: h(s) ? s.schema : void 0
                }, null, 8, ["description", "name", "value"]))), 128))
              ]),
              _: 1
            })
          ], 2)
        ], 2)
      ]),
      _: 1
    }));
  }
});
export {
  V as default
};
