import { modalRoutes } from "../../routes.js";
import { createApiClient } from "../../libs/create-client.js";
import ApiClientModal_default from "./ApiClientModal.vue.js";
import { createMemoryHistory, createRouter } from "vue-router";
//#region src/layouts/Modal/create-api-client-modal.ts
/**
* Initialize Scalar API Client Modal Sync
*
* This sync method does not include the spec, just sets up an empty workspace
*/
var createApiClientModal = ({ el = null, configuration = {}, mountOnInitialize = true, store }) => {
	const router = createRouter({
		history: createMemoryHistory(),
		routes: modalRoutes
	});
	return {
		client: createApiClient({
			el,
			appComponent: ApiClientModal_default,
			configuration,
			persistData: false,
			isReadOnly: true,
			mountOnInitialize,
			store,
			router,
			layout: "modal"
		}),
		router
	};
};
//#endregion
export { createApiClientModal };

//# sourceMappingURL=create-api-client-modal.js.map