import { defineComponent as m, createBlock as l, createElementBlock as p, openBlock as o, unref as n } from "vue";
import { ScalarCodeBlock as r } from "@scalar/components";
import { getExampleFromSchema as c } from "@scalar/oas-utils/spec-getters";
const i = {
  key: 2,
  class: "empty-state"
}, y = /* @__PURE__ */ m({
  __name: "ExampleResponse",
  props: {
    response: {},
    example: {}
  },
  setup(f) {
    return (e, u) => {
      var t, s, a;
      return e.example !== void 0 ? (o(), l(n(r), {
        key: 0,
        class: "bg-b-2 -outline-offset-2",
        content: (t = e.example) == null ? void 0 : t.value,
        lang: "json"
      }, null, 8, ["content"])) : (s = e.response) != null && s.schema ? (o(), l(n(r), {
        key: 1,
        class: "bg-b-2 -outline-offset-2",
        content: n(c)((a = e.response) == null ? void 0 : a.schema, {
          emptyString: "string",
          mode: "read"
        }),
        lang: "json"
      }, null, 8, ["content"])) : (o(), p("div", i, " No Body "));
    };
  }
});
export {
  y as default
};
