You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
6.2 KiB
2 lines
6.2 KiB
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Dashboard-u_1_9pB9.js","assets/index-CPuyxNxo.js","assets/axios-CiYFffbI.js","assets/runtime-core.esm-bundler-CnFWH3R5.js","assets/preload-helper-BIjWqNH5.js","assets/http-LCi9aT1G.js","assets/index-C6I69YBI.css","assets/xlsx-C0ANE5gA.js","assets/hikPdcClient-9YlD6z0w.js","assets/Dashboard-CcTka8Ef.css","assets/VenueList-DEegbDbw.js","assets/RichEditorField-DhKUqvJv.js","assets/RichEditorField-CTiiQMLC.css","assets/adminMediaLimits-BbvlGcmA.js","assets/mapGeo-ARgXuZ-4.js","assets/listTableRowIndex-IQDARgc9.js","assets/mediaUrl-DMUQQoCr.js","assets/VenueList-CMRTVqtf.css","assets/ActivityList-CXz-ILiF.js","assets/h5Http-B0amz0Ts.js","assets/ActivityList-m-Aeoiaj.css","assets/Registrations-CbXG8f2V.js","assets/bookingType-DtnBG_bB.js","assets/datetime-yJWaAvAa.js","assets/reservationStatus-Bp3WxaV9.js","assets/Registrations-D38-egSu.css","assets/Verify-3de89XWB.js","assets/Verify-CYgC_s-p.css","assets/Blacklist-DZ0dJxKn.js","assets/Blacklist-CtQQ6LfC.css","assets/TicketGrabList-DuikvdFC.js","assets/TicketGrabList-Dheb-3hV.css","assets/TicketGrabRegistrations-Cp3xUTx3.js","assets/TicketGrabRegistrations-BkH9w3sn.css","assets/TicketGrabVerify-D23TLe5v.js","assets/TicketGrabVerify-C99ifrCo.css","assets/StudyTourList-CPzISZLS.js","assets/StudyTourList-B-A_zGvm.css","assets/Monitor-C8m9bpjj.js","assets/PagePlaceholder-BSpn2Dsj.js","assets/Leaderboard-BYdoua9y.js","assets/Alerts-BIUQ6GHj.js","assets/HikPeopleCounting-B5C9LGAP.js","assets/HikPeopleCounting-vcrBFAvB.css","assets/Overview-BWXsz5EL.js","assets/Regions-CtO9oc6T.js","assets/Categories-c7JkdJ0r.js","assets/Exports-B-Blogeb.js","assets/Admins-DjSZW-VF.js","assets/Roles-BhvMeFZf.js","assets/Menus-Jy8nm5Mk.js","assets/Menus-CIRuEnr6.css","assets/AuditLogs-Dg-Z7uHa.js","assets/AuditLogs-Bd90uV6l.css","assets/Wechat-CKWcbeo9.js","assets/Map-58emjRYk.js","assets/Notifications-2080YJrP.js","assets/SystemLogs-DdNw5bdu.js","assets/SystemLogs-DSVhElsT.css","assets/Dictionaries-oyMC3oH7.js","assets/WechatUsers-D9Lqu4-_.js"])))=>i.map(i=>d[i]);
|
|
import{n as e}from"./http-LCi9aT1G.js";import{t}from"./preload-helper-BIjWqNH5.js";var n={"/dashboard":()=>t(()=>import(`./Dashboard-u_1_9pB9.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])),"/venues":()=>t(()=>import(`./VenueList-DEegbDbw.js`),__vite__mapDeps([10,1,2,3,4,5,6,11,12,13,14,15,16,17])),"/activities":()=>t(()=>import(`./ActivityList-CXz-ILiF.js`),__vite__mapDeps([18,1,2,3,4,5,6,11,12,7,19,13,14,15,20])),"/activities/registrations":()=>t(()=>import(`./Registrations-CbXG8f2V.js`),__vite__mapDeps([21,1,2,3,4,5,6,7,22,23,15,24,25])),"/activities/verify":()=>t(()=>import(`./Verify-3de89XWB.js`),__vite__mapDeps([26,1,2,3,4,5,6,7,22,23,15,24,27])),"/activities/blacklist":()=>t(()=>import(`./Blacklist-DZ0dJxKn.js`),__vite__mapDeps([28,1,2,3,4,5,6,23,29])),"/ticket-grab-events":()=>t(()=>import(`./TicketGrabList-DuikvdFC.js`),__vite__mapDeps([30,1,2,3,4,5,6,11,12,7,19,14,15,16,31])),"/ticket-grab-events/registrations":()=>t(()=>import(`./TicketGrabRegistrations-Cp3xUTx3.js`),__vite__mapDeps([32,1,2,3,4,5,6,7,22,23,15,24,33])),"/ticket-grab-events/verify":()=>t(()=>import(`./TicketGrabVerify-D23TLe5v.js`),__vite__mapDeps([34,1,2,3,4,5,6,22,23,15,24,35])),"/study-tours":()=>t(()=>import(`./StudyTourList-CPzISZLS.js`),__vite__mapDeps([36,1,2,3,4,5,6,11,12,13,15,16,37])),"/traffic":()=>t(()=>import(`./Monitor-C8m9bpjj.js`),__vite__mapDeps([38,3,39])),"/traffic/leaderboard":()=>t(()=>import(`./Leaderboard-BYdoua9y.js`),__vite__mapDeps([40,3,39])),"/traffic/alerts":()=>t(()=>import(`./Alerts-BIUQ6GHj.js`),__vite__mapDeps([41,3,39])),"/hik-camera":()=>t(()=>import(`./HikPeopleCounting-B5C9LGAP.js`),__vite__mapDeps([42,1,2,3,4,5,6,8,43])),"/hik-camera/HikPeopleCounting":()=>t(()=>import(`./HikPeopleCounting-B5C9LGAP.js`),__vite__mapDeps([42,1,2,3,4,5,6,8,43])),"/stats":()=>t(()=>import(`./Overview-BWXsz5EL.js`),__vite__mapDeps([44,3,39])),"/stats/regions":()=>t(()=>import(`./Regions-CtO9oc6T.js`),__vite__mapDeps([45,3,39])),"/stats/categories":()=>t(()=>import(`./Categories-c7JkdJ0r.js`),__vite__mapDeps([46,3,39])),"/stats/exports":()=>t(()=>import(`./Exports-B-Blogeb.js`),__vite__mapDeps([47,3,39])),"/system/admins":()=>t(()=>import(`./Admins-DjSZW-VF.js`),__vite__mapDeps([48,2,3,5,15])),"/system/roles":()=>t(()=>import(`./Roles-BhvMeFZf.js`),__vite__mapDeps([49,1,2,3,4,5,6])),"/system/menus":()=>t(()=>import(`./Menus-Jy8nm5Mk.js`),__vite__mapDeps([50,1,2,3,4,5,6,51])),"/system/audit-logs":()=>t(()=>import(`./AuditLogs-Dg-Z7uHa.js`),__vite__mapDeps([52,1,2,3,4,5,6,23,15,53])),"/settings/wechat":()=>t(()=>import(`./Wechat-CKWcbeo9.js`),__vite__mapDeps([54,3,39])),"/settings/map":()=>t(()=>import(`./Map-58emjRYk.js`),__vite__mapDeps([55,1,2,3,4,5,6])),"/settings/notifications":()=>t(()=>import(`./Notifications-2080YJrP.js`),__vite__mapDeps([56,3,39])),"/settings/system-logs":()=>t(()=>import(`./SystemLogs-DdNw5bdu.js`),__vite__mapDeps([57,1,2,3,4,5,6,23,58])),"/settings/dictionaries":()=>t(()=>import(`./Dictionaries-oyMC3oH7.js`),__vite__mapDeps([59,2,3,5])),"/wechat-users":()=>t(()=>import(`./WechatUsers-D9Lqu4-_.js`),__vite__mapDeps([60,2,3,5,23,15]))};function r(e){let t=[],n=e=>{for(let r of e){let e=r?.path?.trim();e&&t.push(e),Array.isArray(r?.children)&&n(r.children)}};return n(e),t}function i(e){let t=e.trim().replace(/\/+$/,``)||`/`;return t.startsWith(`/`)?t:`/${t}`}function a(e){if(e.size===0)return`/dashboard`;for(let t of[`/dashboard`,`/activities`,`/venues`,`/wechat-users`])if(e.has(t))return t;return[...e].sort()[0]??`/dashboard`}var o=null,s=!1;function c(){return o}async function l(){try{let{data:t}=await e.get(`/admin-menus`),n=r(Array.isArray(t)?t:[]);return a(new Set(n.map(e=>i(e))))}catch{return`/dashboard`}}async function u(t){if(s)return;let{data:a}=await e.get(`/admin-menus`),c=r(Array.isArray(a)?a:[]);o=new Set(c.map(e=>i(e)));for(let e of c){let r=i(e).replace(/\/$/,``)||`/`,a=n[r];if(!a)continue;let o=r.startsWith(`/`)?r.slice(1):r,s=`dyn-${o.replace(/\//g,`-`)}`;t.hasRoute(s)||t.addRoute(`admin-layout`,{path:o,name:s,component:a})}s=!0}function d(e){o=null,s=!1;for(let t of e.getRoutes()){let n=t.name?.toString()??``;n.startsWith(`dyn-`)&&e.removeRoute(n)}}function f(){return s}export{a,f as i,c as n,u as o,l as r,d as s,r as t}; |