import { defineComponent as p, ref as l, onMounted as a, openBlock as c, createElementBlock as i } from "vue";
import { apiClientBus as s } from "./api-client-bus.js";
const m = /* @__PURE__ */ p({
  __name: "ApiClientModal",
  props: {
    proxyUrl: {},
    spec: {}
  },
  setup(t) {
    const o = t, e = l(null);
    return a(async () => {
      if (!e.value) return;
      const { createScalarApiClient: r } = await import("@scalar/api-client-modal"), { open: n } = await r(e.value, {
        spec: o.spec ?? {},
        proxyUrl: o.proxyUrl
      });
      s.on(n);
    }), (r, n) => (c(), i("div", {
      ref_key: "el",
      ref: e
    }, null, 512));
  }
});
export {
  m as default
};
