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-JFrwpFEr.js","assets/index-axKQV-pW.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/hikPdcClient-9YlD6z0w.js","assets/Dashboard-CEidEXey.css","assets/VenueList-5OqqMw8m.js","assets/RichEditorField-CdYdbCrH.js","assets/RichEditorField-CTiiQMLC.css","assets/adminMediaLimits-D12la4Im.js","assets/mapGeo-CpG7j8AT.js","assets/listTableRowIndex-DDHXZmUA.js","assets/mediaUrl-DMUQQoCr.js","assets/VenueList-CV7_fRf9.css","assets/ActivityList-Clek2fh9.js","assets/xlsx-BP_eUM5j.js","assets/h5Http-Dev8ozqN.js","assets/ActivityList-BWhdlC4x.css","assets/Registrations-BUG9RVCX.js","assets/bookingType-DtnBG_bB.js","assets/datetime-yJWaAvAa.js","assets/reservationStatus-Bp3WxaV9.js","assets/Registrations-D38-egSu.css","assets/Verify-CjqTP4y6.js","assets/Verify-CYgC_s-p.css","assets/Blacklist-r6-hdIMY.js","assets/Blacklist-CtQQ6LfC.css","assets/TicketGrabList-Dl23qXrs.js","assets/TicketGrabList-Dheb-3hV.css","assets/TicketGrabRegistrations-DBRqrj7p.js","assets/TicketGrabRegistrations-BkH9w3sn.css","assets/TicketGrabVerify-DYR2lKnS.js","assets/TicketGrabVerify-C99ifrCo.css","assets/StudyTourList-PNlljRLN.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-CCJmKaLU.js","assets/HikPeopleCounting-vcrBFAvB.css","assets/Overview-BWXsz5EL.js","assets/Regions-CtO9oc6T.js","assets/Categories-c7JkdJ0r.js","assets/Exports-B-Blogeb.js","assets/Admins-DG8-wbbd.js","assets/Roles-DJRWRdMm.js","assets/Menus-D53EjotH.js","assets/Menus-CIRuEnr6.css","assets/AuditLogs-mKIUpaAu.js","assets/AuditLogs-Bd90uV6l.css","assets/Wechat-CKWcbeo9.js","assets/Map-B0ZoYA9Y.js","assets/Notifications-2080YJrP.js","assets/SystemLogs-CLdEaCfQ.js","assets/SystemLogs-DSVhElsT.css","assets/Dictionaries-oyMC3oH7.js","assets/WechatUsers-TrILQC1a.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-JFrwpFEr.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8])),"/venues":()=>t(()=>import(`./VenueList-5OqqMw8m.js`),__vite__mapDeps([9,1,2,3,4,5,6,10,11,12,13,14,15,16])),"/activities":()=>t(()=>import(`./ActivityList-Clek2fh9.js`),__vite__mapDeps([17,1,2,3,4,5,6,10,11,18,19,12,13,14,20])),"/activities/registrations":()=>t(()=>import(`./Registrations-BUG9RVCX.js`),__vite__mapDeps([21,1,2,3,4,5,6,18,22,23,14,24,25])),"/activities/verify":()=>t(()=>import(`./Verify-CjqTP4y6.js`),__vite__mapDeps([26,1,2,3,4,5,6,18,22,23,14,24,27])),"/activities/blacklist":()=>t(()=>import(`./Blacklist-r6-hdIMY.js`),__vite__mapDeps([28,1,2,3,4,5,6,23,29])),"/ticket-grab-events":()=>t(()=>import(`./TicketGrabList-Dl23qXrs.js`),__vite__mapDeps([30,1,2,3,4,5,6,10,11,18,19,13,14,15,31])),"/ticket-grab-events/registrations":()=>t(()=>import(`./TicketGrabRegistrations-DBRqrj7p.js`),__vite__mapDeps([32,1,2,3,4,5,6,18,22,23,14,24,33])),"/ticket-grab-events/verify":()=>t(()=>import(`./TicketGrabVerify-DYR2lKnS.js`),__vite__mapDeps([34,1,2,3,4,5,6,22,23,14,24,35])),"/study-tours":()=>t(()=>import(`./StudyTourList-PNlljRLN.js`),__vite__mapDeps([36,1,2,3,4,5,6,10,11,12,14,15,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-CCJmKaLU.js`),__vite__mapDeps([42,1,2,3,4,5,6,7,43])),"/hik-camera/HikPeopleCounting":()=>t(()=>import(`./HikPeopleCounting-CCJmKaLU.js`),__vite__mapDeps([42,1,2,3,4,5,6,7,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-DG8-wbbd.js`),__vite__mapDeps([48,2,3,5,14])),"/system/roles":()=>t(()=>import(`./Roles-DJRWRdMm.js`),__vite__mapDeps([49,1,2,3,4,5,6])),"/system/menus":()=>t(()=>import(`./Menus-D53EjotH.js`),__vite__mapDeps([50,1,2,3,4,5,6,51])),"/system/audit-logs":()=>t(()=>import(`./AuditLogs-mKIUpaAu.js`),__vite__mapDeps([52,1,2,3,4,5,6,23,14,53])),"/settings/wechat":()=>t(()=>import(`./Wechat-CKWcbeo9.js`),__vite__mapDeps([54,3,39])),"/settings/map":()=>t(()=>import(`./Map-B0ZoYA9Y.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-CLdEaCfQ.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-TrILQC1a.js`),__vite__mapDeps([60,2,3,5,14]))};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};