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