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

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Dashboard-BSE9BP-1.js","assets/index-CMty7EM2.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-B4gGxNuh.css","assets/VenueList-fXlf_TVf.js","assets/RichEditorField-BwsjcGio.js","assets/RichEditorField-CTiiQMLC.css","assets/adminMediaLimits-CWjmuo-b.js","assets/mapGeo-BYJZtCg9.js","assets/listTableRowIndex-PNK2HoFW.js","assets/mediaUrl-BANAk4U0.js","assets/VenueList-CMRTVqtf.css","assets/ActivityList-C2In5YtZ.js","assets/h5Http-B0amz0Ts.js","assets/useModalDirtyGuard-Cg6oNoR1.js","assets/datetime-4oTrw7tt.js","assets/ActivityList-D7K9dheI.css","assets/Registrations-BobzsmKB.js","assets/bookingType-DpjZVc2F.js","assets/reservationStatus-C099SGm7.js","assets/Registrations-D38-egSu.css","assets/Verify-BEYTBGjl.js","assets/Verify-CYgC_s-p.css","assets/Blacklist-BFtZbGR1.js","assets/Blacklist-CtQQ6LfC.css","assets/TicketGrabList-DrrfaT0B.js","assets/TicketGrabList-Dheb-3hV.css","assets/TicketGrabRegistrations-DVvABTOO.js","assets/TicketGrabRegistrations-BkH9w3sn.css","assets/TicketGrabVerify-Idytv7bx.js","assets/TicketGrabVerify-C99ifrCo.css","assets/StudyTourList-DmYVxSHq.js","assets/StudyTourList-Bsy7LL6X.css","assets/Monitor-B0YGZ06g.js","assets/PagePlaceholder-AW88vWSI.js","assets/Leaderboard-0AElUjvF.js","assets/Alerts-C6Dabi4H.js","assets/HikPeopleCounting-BDhsq8Vf.js","assets/HikPeopleCounting-vcrBFAvB.css","assets/Overview-BWN3uLwA.js","assets/Regions-BrAa-u2u.js","assets/Categories-CiLmxQME.js","assets/Exports-DD97kAfA.js","assets/Admins-k0_6rOk_.js","assets/Roles-CUCf_GEt.js","assets/Menus-C218Haec.js","assets/Menus-CIRuEnr6.css","assets/AuditLogs-yq_yfQoA.js","assets/AuditLogs-Bd90uV6l.css","assets/Wechat-efvndSSh.js","assets/Map-41VH3J47.js","assets/Notifications-l_sR49JT.js","assets/SystemLogs-D9coPyVB.js","assets/SystemLogs-DSVhElsT.css","assets/Dictionaries-BRs1TkIf.js","assets/WechatUsers-C5sD2Kvh.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-BSE9BP-1.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])),"/venues":()=>t(()=>import(`./VenueList-fXlf_TVf.js`),__vite__mapDeps([10,1,2,3,4,5,6,11,12,13,14,15,16,17])),"/activities":()=>t(()=>import(`./ActivityList-C2In5YtZ.js`),__vite__mapDeps([18,1,2,3,4,5,6,11,12,7,19,20,13,14,21,15,22])),"/activities/registrations":()=>t(()=>import(`./Registrations-BobzsmKB.js`),__vite__mapDeps([23,1,2,3,4,5,6,7,24,21,15,25,26])),"/activities/verify":()=>t(()=>import(`./Verify-BEYTBGjl.js`),__vite__mapDeps([27,1,2,3,4,5,6,7,24,21,15,25,28])),"/activities/blacklist":()=>t(()=>import(`./Blacklist-BFtZbGR1.js`),__vite__mapDeps([29,1,2,3,4,5,6,21,30])),"/ticket-grab-events":()=>t(()=>import(`./TicketGrabList-DrrfaT0B.js`),__vite__mapDeps([31,1,2,3,4,5,6,11,12,7,19,14,15,16,32])),"/ticket-grab-events/registrations":()=>t(()=>import(`./TicketGrabRegistrations-DVvABTOO.js`),__vite__mapDeps([33,1,2,3,4,5,6,7,24,21,15,25,34])),"/ticket-grab-events/verify":()=>t(()=>import(`./TicketGrabVerify-Idytv7bx.js`),__vite__mapDeps([35,1,2,3,4,5,6,24,21,15,25,36])),"/study-tours":()=>t(()=>import(`./StudyTourList-DmYVxSHq.js`),__vite__mapDeps([37,1,2,3,4,5,6,11,12,20,13,15,16,38])),"/traffic":()=>t(()=>import(`./Monitor-B0YGZ06g.js`),__vite__mapDeps([39,3,40])),"/traffic/leaderboard":()=>t(()=>import(`./Leaderboard-0AElUjvF.js`),__vite__mapDeps([41,3,40])),"/traffic/alerts":()=>t(()=>import(`./Alerts-C6Dabi4H.js`),__vite__mapDeps([42,3,40])),"/hik-camera":()=>t(()=>import(`./HikPeopleCounting-BDhsq8Vf.js`),__vite__mapDeps([43,1,2,3,4,5,6,8,44])),"/hik-camera/HikPeopleCounting":()=>t(()=>import(`./HikPeopleCounting-BDhsq8Vf.js`),__vite__mapDeps([43,1,2,3,4,5,6,8,44])),"/stats":()=>t(()=>import(`./Overview-BWN3uLwA.js`),__vite__mapDeps([45,3,40])),"/stats/regions":()=>t(()=>import(`./Regions-BrAa-u2u.js`),__vite__mapDeps([46,3,40])),"/stats/categories":()=>t(()=>import(`./Categories-CiLmxQME.js`),__vite__mapDeps([47,3,40])),"/stats/exports":()=>t(()=>import(`./Exports-DD97kAfA.js`),__vite__mapDeps([48,3,40])),"/system/admins":()=>t(()=>import(`./Admins-k0_6rOk_.js`),__vite__mapDeps([49,2,3,5,15])),"/system/roles":()=>t(()=>import(`./Roles-CUCf_GEt.js`),__vite__mapDeps([50,1,2,3,4,5,6])),"/system/menus":()=>t(()=>import(`./Menus-C218Haec.js`),__vite__mapDeps([51,1,2,3,4,5,6,52])),"/system/audit-logs":()=>t(()=>import(`./AuditLogs-yq_yfQoA.js`),__vite__mapDeps([53,1,2,3,4,5,6,21,15,54])),"/settings/wechat":()=>t(()=>import(`./Wechat-efvndSSh.js`),__vite__mapDeps([55,3,40])),"/settings/map":()=>t(()=>import(`./Map-41VH3J47.js`),__vite__mapDeps([56,1,2,3,4,5,6])),"/settings/notifications":()=>t(()=>import(`./Notifications-l_sR49JT.js`),__vite__mapDeps([57,3,40])),"/settings/system-logs":()=>t(()=>import(`./SystemLogs-D9coPyVB.js`),__vite__mapDeps([58,1,2,3,4,5,6,21,59])),"/settings/dictionaries":()=>t(()=>import(`./Dictionaries-BRs1TkIf.js`),__vite__mapDeps([60,2,3,5])),"/wechat-users":()=>t(()=>import(`./WechatUsers-C5sD2Kvh.js`),__vite__mapDeps([61,2,3,5,21,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};