1import{a as _}from"./chunk-TF7FLE3B.js";import{b as y,c as p}from"./chunk-ARXJEGOS.js";import{a as w}from"./chunk-WXFH2LIM.js";import{Ha as h,Ma as r,Na as m,Ra as C,S as o,T as u,Wa as s,Xa as l,Ya as g,db as b,f as c,ra as d,rc as v,ub as f,wa as a}from"./chunk-FQWTLGMI.js";function T(e,P){if(e&1&&(s(0,"div",1),g(1,"div",3),l()),e&2){let n=b();a(),r("innerHTML",n.page==null?null:n.page.content,d)}}function L(e,P){e&1&&g(0,"div",2)}var E=(()=>{class e{constructor(){this.wpService=o(_),this.route=o(v),this.translate=o(w),this.navbarColor={background:p.offwhite,text:p.black},this.isLoading=!0,this.subscribeToLanguageChanges(),this.subscribeToRouteChanges()}subscribeToLanguageChanges(){this.languageSwitch=this.translate.onLangChange.subscribe(()=>{this.loadContent()})}subscribeToRouteChanges(){this.routeChange=this.route.data.subscribe(n=>{this.slug=n.slug,this.loadContent()})}ngOnDestroy(){this.languageSwitch?.unsubscribe(),this.routeChange?.unsubscribe()}loadContent(){return c(this,null,function*(){if(this.slug){this.isLoading=!0;try{this.page=yield this.wpService.getPage(this.slug),this.page?.navbarColor&&(this.navbarColor=this.page?.navbarColor)}finally{this.isLoading=!1}}})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=u({type:e,selectors:[["app-wp-page"]],standalone:!0,features:[f],decls:3,vars:4,consts:[["id","content",1,"wp-static-page",3,"navbarColor"],[1,"container","max-width"],[1,"top-spacer"],[1,"columns",3,"innerHTML"]],template:function(i,t){i&1&&(s(0,"section",0),h(1,T,2,1,"div",1)(2,L,1,0,"div",2),l()),i&2&&(m("background-color",t.page==null||t.page.acf==null?null:t.page.acf.background_color),r("navbarColor",(t.page==null?null:t.page.navbarColor)||t.navbarColor),a(),C(t.page!=null&&t.page.content?1:t.isLoading?2:-1))},dependencies:[y],styles:["[_nghost-%COMP%]{width:100%}.top-spacer[_ngcontent-%COMP%]{height:80vh;background-color:#00000003}section[_ngcontent-%COMP%]{padding-top:1rem;padding-bottom:2rem}.container[_ngcontent-%COMP%]{padding:0rem 1rem;margin:0 auto} .wp-static-page h2{font-weight:400}"]})}}return e})();export{E as WpPageComponent};
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.