PageSourceSearch

https://nextthere.com/assets/AdminView-CrVTl20t.js

js nextthere.com collected 2026-10-02 05:05:55 UTC 6,443 bytes, 1 lines download raw bytes

1import{a as t,e as a,o as r,d as b,r as R,B as C,p as B,O as A,x as H,F as d,l as u,g as V,s as g,b as m,h as i,t as p,k as v,w as W,a3 as j,n as k}from"./index-DbpIxVVg.js";function w(c,n){return r(),t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21"})])}function S(c,n){return r(),t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 12a7.5 7.5 0 0 0 15 0m-15 0a7.5 7.5 0 1 1 15 0m-15 0H3m16.5 0H21m-1.5 0H12m-8.457 3.077 1.41-.513m14.095-5.13 1.41-.513M5.106 17.785l1.15-.964m11.49-9.642 1.149-.964M7.501 19.795l.75-1.3m7.5-12.99.75-1.3m-6.063 16.658.26-1.477m2.605-14.772.26-1.477m0 17.726-.26-1.477M10.698 4.614l-.26-1.477M16.5 19.794l-.75-1.299M7.5 4.205 12 12m6.894 5.785-1.149-.964M6.256 7.178l-1.15-.964m15.352 8.864-1.41-.513M4.954 9.435l-1.41-.514M12.002 12l-3.75 6.495"})])}function x(c,n){return r(),t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"})])}function l(c,n){return r(),t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.375 19.5h17.25m-17.25 0a1.125 1.125 0 0 1-1.125-1.125M3.375 19.5h7.5c.621 0 1.125-.504 1.125-1.125m-9.75 0V5.625m0 12.75v-1.5c0-.621.504-1.125 1.125-1.125m18.375 2.625V5.625m0 12.75c0 .621-.504 1.125-1.125 1.125m1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125m0 3.75h-7.5A1.125 1.125 0 0 1 12 18.375m9.75-12.75c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125m19.5 0v1.5c0 .621-.504 1.125-1.125 1.125M2.25 5.625v1.5c0 .621.504 1.125 1.125 1.125m0 0h17.25m-17.25 0h7.5c.621 0 1.125.504 1.125 1.125M3.375 8.25c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125m17.25-3.75h-7.5c-.621 0-1.125.504-1.125 1.125m8.625-1.125c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125M12 10.875v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 10.875c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125M13.125 12h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125M20.625 12c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5M12 14.625v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 14.625c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125m0 1.5v-1.5m0 0c0-.621.504-1.125 1.125-1.125m0 0h7.5"})])}const z={class:"mt-8"},F={class:"max-w-screen-xl mx-auto pb-6 px-4 sm:px-6 lg:pb-16 lg:px-8"},N={class:"bg-white dark:bg-gray-950 rounded-lg shadow overflow-hidden"},$={class:"divide-y divide-gray-200-d lg:grid lg:grid-cols-6 lg:divide-y-0 lg:divide-x"},D={class:"py-6"},O={class:"space-y-6"},E={key:0,class:"px-3 text-sm uppercase text-gray-500"},L={class:"truncate"},P={class:"divide-y divide-gray-200-d lg:col-span-5 dark:bg-gray-900"},q=b({__name:"AdminView",setup(c){const n=C(),_=R(n.path);B(()=>n.path,()=>_.value=n.path);const f=A([{title:null,items:[{name:"Home",href:"/admin",icon:S,current:e=>e==="/admin"},{name:"Assets",href:"/admin/assets",icon:l,current:e=>e.startsWith("/admin/asset"),needsRole:["transit-admin"]},{name:"Feeds",href:"/admin/feeds",icon:l,current:e=>e.startsWith("/admin/feed"),needsRole:["transit-admin","feed-admin"]},{name:"Trackwork",href:"/admin/trackwork",icon:l,current:e=>e.startsWith("/admin/trackwork"),needsRole:["trackwork-admin","trackwork-bus-provider","trackwork-marshal-provider"]},{name:"Organisations",href:"/admin/organisations",icon:w,current:e=>e.startsWith("/admin/organisation"),needsRole:["user-admin","trackwork-admin"]},{name:"Zones",href:"/admin/zones",icon:x,current:e=>e.startsWith("/admin/zone"),needsRole:["transit-admin"]},{name:"MyStation Viewer",href:"/admin/reports",icon:x,current:e=>e.startsWith("/admin/report"),needsRole:["transit-admin"]}]},{title:"Workflow",needsRole:["process-admin"],items:[{name:"Processes",href:"/admin/workflow/processes",
1icon:w,current:e=>e.startsWith("/admin/workflow/process")}]}]),h=H();return(e,T)=>{const y=g("router-link"),M=g("router-view");return r(),t("main",z,[a("div",F,[a("div",N,[a("div",$,[a("aside",D,[a("nav",O,[(r(!0),t(d,null,u(f,s=>(r(),t("div",{key:s.title,class:"space-y-1"},[!s.needsRole||i(h).hasRole(s.needsRole)?(r(),t(d,{key:0},[s.title?(r(),t("h4",E,p(s.title),1)):m("",!0),(r(!0),t(d,null,u(s.items,o=>(r(),t(d,{key:o.name},[!o.needsRole||i(h).hasRole(o.needsRole)?(r(),v(y,{key:0,to:o.href,class:k([o.current(i(n).path)?"bg-orange-50 dark:bg-orange-900 border-orange-500 text-orange-700 dark:text-white hover:bg-orange-50 dark:hover:bg-orange-900 hover:text-orange-700 dark:hover:text-white":"border-transparent text-gray-900 dark:text-gray-100 hover:bg-gray-50 dark:hover:bg-gray-900 hover:text-gray-900 dark:hover:text-gray-100","group border-l-4 px-3 py-2 flex items-center text-sm font-medium"]),"aria-current":o.current(i(n).path)?"page":void 0},{default:W(()=>[(r(),v(j(o.icon),{class:k([o.current(i(n).path)?"text-orange-500 group-hover:text-orange-500":"text-gray-400 group-hover:text-gray-500 dark:text-gray-600","flex-shrink-0 -ml-1 mr-3 h-6 w-6"]),"aria-hidden":"true"},null,8,["class"])),a("span",L,p(o.name),1)]),_:2},1032,["to","class","aria-current"])):m("",!0)],64))),128))],64)):m("",!0)]))),128))])]),a("div",P,[V(M)])])])])])}}});export{q as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.