1import{a as U}from"./chunk-7RGGTGJE.js";import{a as Q}from"./chunk-EFNWV5XN.js";import{a as j,b as H}from"./chunk-A3HGY6M6.js";import"./chunk-6R7SXPH5.js";import"./chunk-VI5E3CXT.js";import{b as K}from"./chunk-TZE33ZYQ.js";import"./chunk-LNTCUZCV.js";import"./chunk-GCSCF42L.js";import{a as V,b as q}from"./chunk-WZK26TEO.js";import"./chunk-CTAKUGHY.js";import"./chunk-A3JG6QVF.js";import{f as J}from"./chunk-55PPMEHR.js";import"./chunk-UYNTKKI7.js";import"./chunk-DGFWRZNC.js";import"./chunk-F434PH2L.js";import"./chunk-NLJRPEOT.js";import"./chunk-SVBLBSMH.js";import"./chunk-V6QZE2WI.js";import"./chunk-7CHYDYG6.js";import{a as O}from"./chunk-JLBNJQSA.js";import"./chunk-DCE6HEZJ.js";import"./chunk-NKFHCRAJ.js";import{s as B}from"./chunk-OGPFHN4Y.js";import{$b as l,$c as f,Fb as D,Od as X,Qd as z,Ub as P,Vb as R,Wc as m,Xc as n,Yc as T,_b as s,_c as w,aa as h,ac as a,ad as L,bc as o,fc as F,gc as v,nc as y,oa as S,oc as x,pb as _,pc as k,tc as N}from"./chunk-ZMMCFEPT.js";var A=t=>({eq:t}),d=t=>({id:t}),ee=t=>({centre:t}),W=()=>({pageSize:100}),te=(t,r)=>({filter:t,pagination:r}),C=t=>({centres:t}),I=t=>({filter:t}),ne=()=>["startDate:desc","title"],ie=(t,r)=>({filter:t,sort:r}),le=()=>({eq:"management"}),Y=t=>({machineName:t}),Z=(t,r)=>({centre:t,enum_associate_category:r}),ae=()=>["title"],oe=(t,r,e,i)=>({filter:t,pagination:r,sort:e,localSort:i}),_e=()=>({eq:"lecturer"}),re=t=>({ne:t});function se(t,r){if(t&1&&o(0,"app-related-pages",10),t&2){let e=N();s("bannerText",(e==null||e.attributes==null||e.attributes.relatedPages==null?null:e.attributes.relatedPages.bannerText)??"")("pages",(e==null||e.attributes==null||e.attributes.relatedPages==null?null:e.attributes.relatedPages.pages)??void 0);}}function ce(t,r){if(t&1&&(l(0,"div",1),o(1,"app-hero-image",2),f(2,"constants"),a(),F(3),l(4,"div",3),o(5,"app-lead",4),a(),v(),l(6,"div",3),o(7,"app-system-block",5),a(),l(8,"div",1),o(9,"app-banner-text",6),a(),l(10,"div",3),o(11,"app-system-block",7),a(),l(12,"div",1),o(13,"app-banner-text",8),a(),l(14,"div",3),o(15,"app-system-block",9),a(),P(16,se,1,2,"app-related-pages",10),l(17,"div",1)(18,"app-banner-text",11),y(19,0),a()(),l(20,"div",3),o(21,"app-system-block",12),a(),l(22,"div",3),o(23,"app-system-block",13),a(),l(24,"div",1),o(25,"app-banner-text",14),a(),l(26,"div",3),o(27,"app-system-block",15),a()),t&2){let e=r,i=N();_(),s("label",L(2,23,"siteName"))("title",(e.attributes==null?null:e.attributes.title)??void 0)("src",e.attributes==null||e.attributes.image==null||e.attributes.image.data==null||e.attributes.image.data.attributes==null?null:e.attributes.image.data.attributes.url)("useAnchors",!0),_(4),s("text",(e.attributes==null?null:e.attributes.description)??void 0)("theme","midtone"),_(2),s("machineName","programmeList")("settings",T(32,te,n(29,ee,n(27,d,n(25,A,e.id))),m(31,W)))("hideMoreLink",!0),_(4),s("machineName","articleList")("settings",n(41,I,n(39,C,n(37,d,n(35,A,e.id))))),_(4),s("machineName","eventList")("settings",T(50,ie,n(47,C,n(45,d,n(43,A,e.id))),m(49,ne))),_(),R(!(e==null||e.attributes==null||e.attributes.relatedPages==null||e.attributes.relatedPages.pages==null||e.attributes.relatedPages.pages.data==null)&&e.attributes.relatedPages.pages.data.length?16:-1),_(2),x(e.attributes==null?null:e.attributes.title),k(19),_(3),s("isScrollable",!0)("machineName","associateList")("settings",w(67,oe,n(63,C,T(60,Z,n(55,d,n(53,A,e.id)),n(58,Y,m(57,le)))),m(65,W),m(66,ae),i.managementSort)),_(2),s("isScrollable",!0)("machineName","associateList")("settings",n(84,I,n(82,C,T(79,Z,n(74,d,n(72,A,e.id)),n(77,Y,m(76,_e)))))),_(4),s("machineName","centreList")("settings",n(90,I,n(88,d,n(86,re,e.id))));}}var Ie=(()=>{class t{route=S(B);centresService=S(J);breadcrumbService=S(q);seoService=S(V);centreId;centre$;managementSort=(e,i)=>{let u=0,c=0,p=e?.attributes?.centres?.find(g=>g?.centre?.data?.id==this.centreId),b=i?.attributes?.centres?.find(g=>g?.centre?.data?.id==this.centreId);
1return p?.id&&(u=p?.enum_associate_status?.data?.attributes?.weight),p?.id&&(c=b?.enum_associate_status?.data?.attributes?.weight),u<c?-1:u>c?1:0;};ngOnInit(){this.centre$=this.route.paramMap.pipe(h(e=>this.centresService.getCentre(e.get("slug")))),this.centre$.subscribe(e=>{e?.attributes?.title&&this.breadcrumbService.addLastBreadcrumb(e?.attributes?.title),this.seoService.handleMetaData(e),e&&(this.centreId=e.id??0);});}static ɵfac=function(i){return new(i||t)();};static ɵcmp=D({type:t,selectors:[["app-centre-details-page"]],hostAttrs:[1,"details-page"],decls:2,vars:3,consts:()=>{let e;e="Programmes";let i;i="View our latest news";let u;u="News";let c;c="View our latest events";let p;p="Events";let b;b="Management";let g;g="Faculty";let M;M="View the other centres";let G;G="Other centres";let $;return $="Meet the "+"\uFFFD0\uFFFD"+" team",[["text",$],[1,"mome-container-fluid"],[3,"label","title","src","useAnchors"],[1,"mome-container"],[3,"text","theme"],["title",e,3,"machineName","settings","hideMoreLink"],["text",i],["title",u,3,"machineName","settings"],["text",c],["title",p,3,"machineName","settings"],[3,"bannerText","pages"],[6,"text"],["title",b,3,"isScrollable","machineName","settings"],["title",g,3,"isScrollable","machineName","settings"],["text",M],["title",G,3,"machineName","settings"]];},template:function(i,u){if(i&1&&(P(0,ce,28,92),f(1,"async")),i&2){let c;R((c=L(1,1,u.centre$))?0:-1,c);}},dependencies:[z,j,H,O,K,U,X,Q],encapsulation:2});}return t;})();export{Ie as CentreDetailsPage};/**i18n:c6aefe5a470db0c2835d9acdc38103156c8e2d6951552de9a94049a7a4c5abe5*/
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.