import { createRouter, createWebHashHistory } from "../../node_modules/.pnpm/vue-router@4.0.12_vue@3.3.4/node_modules/vue-router/dist/vue-router.esm-bundler.mjs";
import { PageEnum } from "../enums/pageEnum.mjs";
import { Layout } from "./constant.mjs";
import modules from "./modules/index.mjs";
const RootRoute = [
  {
    path: "/",
    name: "Root",
    redirect: PageEnum.BASE_HOME,
    component: Layout,
    meta: {
      title: "Root"
    },
    children: [modules.projectRoutes, modules.chartRoutes, modules.previewRoutes, modules.editRoutes]
  }
];
const constantRouter = [...RootRoute];
const router = createRouter({
  history: createWebHashHistory(""),
  routes: constantRouter,
  strict: true
});
export {
  constantRouter,
  router as default
};
