1import{a as d}from"./chunk-6Q5DDO7R.js";import{_ as m,ba as o,k as l,pj as h,q as p,qd as u,u as f}from"./chunk-SMW7PHYX.js";var g=(()=>{let e=class e{setMetaDescription(t){let a=document.getElementsByTagName("head")[0].querySelector('meta[name="description"]');if(a)a.setAttribute("content",t);else{let i=document.createElement("meta");i.name="description",i.content=t,document.getElementsByTagName("head")[0].appendChild(i)}}};e.\u0275fac=function(a){return new(a||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();var w=(()=>{let e=class e{constructor(t,a,i,n){this.pageService=t,this.metaDataService=a,this.siteDataService=i,this.titleService=n}canActivate(t,a){let i=[l(void 0),l(void 0)];return i[0]=this.siteDataService.getClub(),t.params.pageBuilderPageID?i[1]=this.pageService.getPageMetaData(t.params.pageBuilderPageID):t.data&&t.data.MetaPage&&(i[1]=this.pageService.getHomePageMetaData()),f(i).pipe(p(n=>{if(this.club=n[0],this.pageBuilderMetaDataSettings=n[1],this.pageBuilderMetaDataSettings)this.titleService.setTitle(this.pageBuilderMetaDataSettings.metaTitle),this.metaDataService.setMetaDescription(this.pageBuilderMetaDataSettings.metaDescription);else{let c="";t.data&&t.data.metaTitle?(c=t.data.metaTitle,this.club?.name&&(c+=" - "+this.club.name)):this.club?.name?c=this.club.name:c="Sprocket Sports",this.titleService.setTitle(c);let s="";this.club?.metaDescription?(s=this.club?.metaDescription,this.metaDataService.setMetaDescription(s)):s||(this.club?.name?s=this.club?.name:s="Sprocket Sports",this.metaDataService.setMetaDescription(s))}return!0}))}};e.\u0275fac=function(a){return new(a||e)(o(d),o(g),o(h),o(u))},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();export{g as a,w as b};
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.