import { defineComponent, createBlock, openBlock, unref } from "vue";
import { Chat } from "@scalar/agent-chat";
import { REGISTRY_URL, DASHBOARD_URL, API_BASE_URL } from "../consts/urls.js";
const _sfc_main = /* @__PURE__ */ defineComponent({
  __name: "AgentChat",
  props: {
    agentConfig: {},
    workspaceStore: {}
  },
  setup(__props) {
    return (_ctx, _cache) => {
      return openBlock(), createBlock(unref(Chat), {
        baseUrl: unref(API_BASE_URL),
        dashboardUrl: unref(DASHBOARD_URL),
        getActiveDocumentJson: () => __props.workspaceStore.exportActiveDocument("json"),
        getAgentKey: __props.agentConfig?.key ? () => __props.agentConfig?.key : void 0,
        mode: __props.agentConfig?.key ? "full" : "preview",
        registryDocuments: [],
        registryUrl: unref(REGISTRY_URL)
      }, null, 8, ["baseUrl", "dashboardUrl", "getActiveDocumentJson", "getAgentKey", "mode", "registryUrl"]);
    };
  }
});
export {
  _sfc_main as default
};
