PageSourceSearch

https://www.aat.org.uk/csr/chunk-JPOONS7L.js

js aat.org.uk collected 2026-10-03 21:38:55 UTC 5,809 bytes, 1 lines download raw bytes

1import{a as E,b as F,e as Q,f as U}from"./chunk-UGQICUYY.js";import{a as L,b as R}from"./chunk-5T5T7ANT.js";import{Rc as S,aa as I,q as j}from"./chunk-YQOD7X2Z.js";import"./chunk-563YFTIG.js";import"./chunk-36JN3LZY.js";import"./chunk-WPHW6CRH.js";import"./chunk-76O7YCWW.js";import{c as O,d as P,e as c,f as D}from"./chunk-YYIIKC2W.js";import"./chunk-3WYGUSDH.js";import"./chunk-LU7SZU5X.js";import"./chunk-PO2RDVKE.js";import{Ac as G,J as h,Mb as v,Ub as M,Vb as y,Wb as l,Xb as m,Yb as r,Zb as T,ca as _,db as s,ec as A,ga as d,ha as p,jc as k,lc as w,oa as b,pa as C,s as g,ub as x,zc as u}from"./chunk-3URBZWPM.js";import"./chunk-ODN5LVDJ.js";var q=(t,n)=>n.path;function z(t,n){if(t&1){let i=A();m(0,"p-tab",5),k("keyup.enter",function(e){b(i);let o=w();return C(o.onKeyUp(e))}),u(1),r()}if(t&2){let i=n.$implicit;l("value",i.path)("routerLinkActive",!0)("routerLink",i.path),v("data-auto",i.header),s(),G(i.header)}}var V=(()=>{let n=class n{constructor(){this._route=p(O),this._router=p(c),this._contactService=p(I),this._cognitoGroups=this._contactService.contactGroups()}ngOnInit(){this.activeTab=this._router.url.split("/api-admin/")[1],this.tabsData=this._setTabs()}onKeyUp(a){a.currentTarget?.dispatchEvent(new MouseEvent("click")),a.preventDefault()}_setTabs(){let a=this._route?.routeConfig?.children?.filter(e=>e.path&&(!e.data?.permittedGroups?.length||e.data.permittedGroups.some(o=>this._cognitoGroups.includes(o))));return a?a.map(e=>({header:e.data.title,path:e.path})):[]}};n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=x({type:n,selectors:[["app-root"]],decls:10,vars:1,consts:[[1,"w-3/4","m-auto","flex","flex-col","justify-center-safe","mt-5"],[1,"!bg-stone-200","min-h-32","mb-10","flex","content-center"],["header","Data management"],[1,"mb-5",3,"value"],[3,"value","routerLinkActive","routerLink"],[3,"keyup.enter","value","routerLinkActive","routerLink"]],template:function(e,o){e&1&&(m(0,"div",0)(1,"p-card",1)(2,"h1"),u(3,"API Admin"),r()(),m(4,"p-card",2)(5,"p-tabs",3)(6,"p-tablist"),M(7,z,2,5,"p-tab",4,q),r()(),T(9,"router-outlet"),r()()),e&2&&(s(5),l("value",o.activeTab),s(2),y(o.tabsData))},dependencies:[P,R,L,U,Q,E,F,D],styles:["[_ngcontent-%COMP%]:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.main[_ngcontent-%COMP%]{display:flex}.main__content[_ngcontent-%COMP%]{flex-basis:85%;max-width:80%;margin:auto}.data-container[_ngcontent-%COMP%]{background-color:#eee;display:flex;flex-direction:column}.data-container__beside[_ngcontent-%COMP%]{flex-direction:row}.data-container__beside--content[_ngcontent-%COMP%]{flex-grow:1;margin:10px}.data-container__content[_ngcontent-%COMP%]{background-color:#fff;max-width:90%;min-width:85%;margin:15px auto;padding:15px;font-size:smaller}.data-container__content--json-toggle[_ngcontent-%COMP%]{margin:10px 0;display:flex;justify-content:flex-end}.data-container__content--json-display[_ngcontent-%COMP%]{border:thin solid rgb(238.425,238.425,238.425);padding:5px}.data-container__content--box[_ngcontent-%COMP%]{padding:15px;border-bottom:thin solid rgb(238.425,238.425,238.425)}.data-container__double-panel[_ngcontent-%COMP%]{display:grid;grid-template-columns:48% 48%}.data-container__loader[_ngcontent-%COMP%]{background-color:#fff}.button-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:10px}.button-container--single[_ngcontent-%COMP%]{justify-content:flex-end}"]});let t=n;return t})();var H=(()=>{let n=class n{constructor(a,e){this.auth=a,this.router=e}canActivate(a,e){return this.auth.getCurrentUser().pipe(h(1),g(o=>{let f=o["cognito:groups"];return f?!!f?.some(K=>["admin","support-admin","third-party-partner"].includes(K)):!1}))}};n.\u0275fac=function(e){return new(e||n)(d(j),d(c))},n.\u0275prov=_({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var mt=[{path:"",component:V,canActivate:[S,H],children:[{path:"contact-management",data:{title:"Manage contacts",tabTitle:"Manage contacts",permittedGroups:["admin","support-admin"]},loadComponent:()=>import("./chunk-QJXX4MJU.js").then(t=>t.ContactManagementComponent)},{path:"organisation-management",loadComponent:()=>import("./chunk-HDTAS4SZ.js").then(t=>t.OrganisationManagementComponent),data:{title:"Manage organisations",tabTitle:"Manage organisations",permittedGroups:["admin"]}},{path:"queue-items",loadComponent:()=>import("./chunk-CUI4LPN6.js").then(t=>t.QueueItemsComponent),data:{title:"Queue individal items",tabTitle:"Queue individal items",permittedGroups:["admin"]}},{path:"helpers",loadComponent:()=>import("./chunk-XIZ4CDZR.js").then(t=>t.QueueManagerComponent),data:{title:"Helpful extras",tabTitle:"Helpful extras",permittedGroups:["admin","support-admin"]}},{path:"schema-creator",loadComponent:()=>import("./chunk-OZOOUQCU.js").then(t=>t.JsonConverterComponent),data:{title:"Generate Schemas",tabTitle:"Generate Schemas",permittedGroups:["admin"]}},{path:"test-data-creator",loadComponent:()=>import("./chunk-HYBE6R4M.js").then(t=>t.TestDataCreatorComponent),data:{title:"Test Data Creator",tabTitle:"Test Data Creator",permittedGroups:["admin"]}},{path:"downtime-management",loadComponent:()=>import("./chunk-IEUZBQKF.js").then(t=>t.DowntimeManagementComponent),data:{title:"Downtime Management",tabTitle:"Downtime Management",permittedGroups:["admin","third-party-partner"]}},{path:"mfa-reset",loadComponent:()=>import("./chunk-YYMKL22Q.js").then(t=>t.MfaResetComponent),data:{title:"MFA reset",tabTitle:"MFA reset",permittedGroups:["admin","support-admin"]}},{path:"insights",loadComponent:()=>import("./chunk-7LT2ARBA.js").then(t=>t.InsightsComponent),data:{title:"Insights",tabTitle:"Insights",permittedGroups:["admin","staff"]}},{path:"",pathMatch:"full",redirectTo:"contact-management"}]}];export{mt 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.