import { createRouter as a, createMemoryHistory as m } from "vue-router";
import { modalRoutes as n } from "../../routes.js";
import l from "./ApiClientModal.vue.js";
import { createApiClient as s } from "../../libs/create-client.js";
const d = ({
  el: e = null,
  configuration: o = {},
  mountOnInitialize: r = !0,
  store: i
}) => {
  const t = a({
    history: m(),
    routes: n
  });
  return {
    client: s({
      el: e,
      appComponent: l,
      configuration: o,
      persistData: !1,
      isReadOnly: !0,
      mountOnInitialize: r,
      store: i,
      router: t,
      layout: "modal"
    }),
    router: t
  };
};
export {
  d as createApiClientModal
};
