import siteMenuApp from './site_menu_app.vue';
import siteMenuList from './site_menu_list.vue';
import siteMenuTrash from './site_menu_trash.vue';
import siteMenuForm from './site_menu_form.vue';
import siteMenuMegaPicker from './site_menu_mega_picker.vue';
import siteMenuStatus from './site_menu_status.vue';
import siteMenuActions from './site_menu_actions.vue';
import siteMenuRestore from './site_menu_restore.vue';

/*
 * Site Menu admin Vue entry (single-page app).
 *
 * NOTE: this file must start with an `import` statement. The admin asset
 * auto-loader globs modules/*\/admin/js/*.js and only excludes ES modules whose
 * first bytes begin with `import`/`export`; a leading comment would let the raw
 * source be injected as a classic script and throw. Bundled as the
 * `admin_site_menu` Vite entry and loaded via vite_asset() in the shell view.
 *
 * Components register on the global admin Vue instance (window.Vue); the admin
 * layout mounts it on `.js-vue-environment`, where <site-menu-app> lives.
 */
if (window.Vue) {
    window.Vue.component('site-menu-app', siteMenuApp);
    window.Vue.component('site-menu-list', siteMenuList);
    window.Vue.component('site-menu-trash', siteMenuTrash);
    window.Vue.component('site-menu-form', siteMenuForm);
    window.Vue.component('site-menu-mega-picker', siteMenuMegaPicker);
    window.Vue.component('site-menu-status', siteMenuStatus);
    window.Vue.component('site-menu-actions', siteMenuActions);
    window.Vue.component('site-menu-restore', siteMenuRestore);
}
