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.3 KiB

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Dashboard-DDjvqvAB.js","assets/index-Dep3zmgd.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-B4sJTaD6.js","assets/RichEditorField-KxVE8O75.js","assets/RichEditorField-CTiiQMLC.css","assets/adminMediaLimits-CWjmuo-b.js","assets/mapGeo-BYJZtCg9.js","assets/listTableRowIndex-PNK2HoFW.js","assets/mediaUrl-CZi-l8UA.js","assets/VenueList-CMRTVqtf.css","assets/ActivityList-5ftDLU36.js","assets/h5Http-B0amz0Ts.js","assets/useModalDirtyGuard-Cg6oNoR1.js","assets/datetime-4oTrw7tt.js","assets/ActivityList-eBGImbBE.css","assets/Registrations-DTlAcK09.js","assets/bookingType-DpjZVc2F.js","assets/reservationStatus-C099SGm7.js","assets/Registrations-D38-egSu.css","assets/Verify-cyo9KOyS.js","assets/Verify-CYgC_s-p.css","assets/Blacklist-DBHgXcfr.js","assets/Blacklist-CtQQ6LfC.css","assets/TicketGrabList-DT7fTeU3.js","assets/TicketGrabList-Dheb-3hV.css","assets/TicketGrabRegistrations-BSLjCErd.js","assets/TicketGrabRegistrations-BkH9w3sn.css","assets/TicketGrabVerify-9Oohkn0c.js","assets/TicketGrabVerify-C99ifrCo.css","assets/StudyTourList-9EOmcjks.js","assets/StudyTourList-PWsTcKFi.css","assets/Monitor-C2hroSfb.js","assets/PagePlaceholder-AW88vWSI.js","assets/Leaderboard-Be-eSj4D.js","assets/Alerts-CqW6T0zj.js","assets/HikPeopleCounting-R8m3hAPL.js","assets/HikPeopleCounting-vcrBFAvB.css","assets/Overview-CuZTDpKK.js","assets/Regions-Cke8JiAf.js","assets/Categories-DZbquiOh.js","assets/Exports-QN7yf3-M.js","assets/Admins-CQtBgZz1.js","assets/Roles-H6mbILqA.js","assets/Menus-D3ILF6Oh.js","assets/Menus-CIRuEnr6.css","assets/AuditLogs-Blydgmee.js","assets/AuditLogs-Bd90uV6l.css","assets/Wechat-BC3aE54r.js","assets/Map-DrSXo7vC.js","assets/Notifications-l_sR49JT.js","assets/SystemLogs-BC4JUO1x.js","assets/SystemLogs-DSVhElsT.css","assets/Dictionaries-BRs1TkIf.js","assets/VisitStats-BtZz6pok.js","assets/WechatUsers-CDjnv04a.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-DDjvqvAB.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])),"/venues":()=>t(()=>import(`./VenueList-B4sJTaD6.js`),__vite__mapDeps([10,1,2,3,4,5,6,11,12,13,14,15,16,17])),"/activities":()=>t(()=>import(`./ActivityList-5ftDLU36.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-DTlAcK09.js`),__vite__mapDeps([23,1,2,3,4,5,6,7,24,21,15,25,26])),"/activities/verify":()=>t(()=>import(`./Verify-cyo9KOyS.js`),__vite__mapDeps([27,1,2,3,4,5,6,7,24,21,15,25,28])),"/activities/blacklist":()=>t(()=>import(`./Blacklist-DBHgXcfr.js`),__vite__mapDeps([29,1,2,3,4,5,6,21,30])),"/ticket-grab-events":()=>t(()=>import(`./TicketGrabList-DT7fTeU3.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-BSLjCErd.js`),__vite__mapDeps([33,1,2,3,4,5,6,7,24,21,15,25,34])),"/ticket-grab-events/verify":()=>t(()=>import(`./TicketGrabVerify-9Oohkn0c.js`),__vite__mapDeps([35,1,2,3,4,5,6,24,21,15,25,36])),"/study-tours":()=>t(()=>import(`./StudyTourList-9EOmcjks.js`),__vite__mapDeps([37,1,2,3,4,5,6,11,12,20,13,15,16,38])),"/traffic":()=>t(()=>import(`./Monitor-C2hroSfb.js`),__vite__mapDeps([39,3,40])),"/traffic/leaderboard":()=>t(()=>import(`./Leaderboard-Be-eSj4D.js`),__vite__mapDeps([41,3,40])),"/traffic/alerts":()=>t(()=>import(`./Alerts-CqW6T0zj.js`),__vite__mapDeps([42,3,40])),"/hik-camera":()=>t(()=>import(`./HikPeopleCounting-R8m3hAPL.js`),__vite__mapDeps([43,1,2,3,4,5,6,8,44])),"/hik-camera/HikPeopleCounting":()=>t(()=>import(`./HikPeopleCounting-R8m3hAPL.js`),__vite__mapDeps([43,1,2,3,4,5,6,8,44])),"/stats":()=>t(()=>import(`./Overview-CuZTDpKK.js`),__vite__mapDeps([45,3,40])),"/stats/regions":()=>t(()=>import(`./Regions-Cke8JiAf.js`),__vite__mapDeps([46,3,40])),"/stats/categories":()=>t(()=>import(`./Categories-DZbquiOh.js`),__vite__mapDeps([47,3,40])),"/stats/exports":()=>t(()=>import(`./Exports-QN7yf3-M.js`),__vite__mapDeps([48,3,40])),"/system/admins":()=>t(()=>import(`./Admins-CQtBgZz1.js`),__vite__mapDeps([49,2,3,5,15])),"/system/roles":()=>t(()=>import(`./Roles-H6mbILqA.js`),__vite__mapDeps([50,1,2,3,4,5,6])),"/system/menus":()=>t(()=>import(`./Menus-D3ILF6Oh.js`),__vite__mapDeps([51,1,2,3,4,5,6,52])),"/system/audit-logs":()=>t(()=>import(`./AuditLogs-Blydgmee.js`),__vite__mapDeps([53,1,2,3,4,5,6,21,15,54])),"/settings/wechat":()=>t(()=>import(`./Wechat-BC3aE54r.js`),__vite__mapDeps([55,3,40])),"/settings/map":()=>t(()=>import(`./Map-DrSXo7vC.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-BC4JUO1x.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])),"/settings/visit-stats":()=>t(()=>import(`./VisitStats-BtZz6pok.js`),__vite__mapDeps([61,2,3,5])),"/wechat-users":()=>t(()=>import(`./WechatUsers-CDjnv04a.js`),__vite__mapDeps([62,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};