1import{a as U}from"./chunk-5325MW4P.js";import{a as I}from"./chunk-TF7FLE3B.js";import{b as L,c as _}from"./chunk-ARXJEGOS.js";import{a as z,b as E,c as D}from"./chunk-WXFH2LIM.js";import{Ab as b,Ha as d,Ma as p,Na as g,Ra as r,S as u,T as x,Ta as O,Ua as S,Va as T,Wa as i,Xa as a,Ya as h,db as o,f as v,mb as m,nb as f,oc as M,ra as H,rc as w,sa as P,ub as k,wa as n,xa as y,zb as C}from"./chunk-FQWTLGMI.js";function B(t,l){if(t&1&&h(0,"div",0),t&2){let e=o();p("navbarColor",e.navbarColor)}}function F(t,l){if(t&1&&(i(0,"h2",6),m(1),C(2,"translate"),a()),t&2){let e=o(2);n(),f(b(2,1,e.title))}}function R(t,l){if(t&1&&(i(0,"section",2)(1,"div",3)(2,"app-half-on-half",4)(3,"div",5),d(4,F,3,3,"h2",6),a(),i(5,"div",7)(6,"div",8),h(7,"div",9),a()()()()()),t&2){let e=o();g("background-color",e.page==null||e.page.acf==null?null:e.page.acf.background_color),p("navbarColor",e.navbarColor),n(4),r(e.title?4:-1),n(3),p("innerHTML",e.page==null?null:e.page.content,H)}}function j(t,l){if(t&1&&(i(0,"h2",6),m(1),C(2,"translate"),a()),t&2){let e=o(2);n(),f(b(2,1,e.title))}}function A(t,l){if(t&1&&(i(0,"div",10)(1,"a",11)(2,"p"),m(3),a()()()),t&2){let e=l.$implicit,s=o(3);n(),p("href",s.getSafeUrl(e==null?null:e.partner_link),P),n(2),f(e==null?null:e.partner_name)}}function N(t,l){if(t&1&&S(0,A,4,2,"div",10,O),t&2){let e=o(2);T(e.page==null||e.page.acf==null?null:e.page.acf.partners)}}function W(t,l){if(t&1&&(i(0,"section",2)(1,"div",3)(2,"app-half-on-half",4)(3,"div",5),d(4,j,3,3,"h2",6),a(),i(5,"div",7)(6,"div",8),d(7,N,2,0),a()()()()()),t&2){let e=o();g("background-color",e.page==null||e.page.acf==null?null:e.page.acf.background_color),p("navbarColor",e.navbarColor),n(4),r(e.title?4:-1),n(3),r(!(e.page==null||e.page.acf==null)&&e.page.acf.partners?7:-1)}}var te=(()=>{class t{constructor(e){this.sanitizer=e,this.wpService=u(I),this.route=u(w),this.translate=u(z),this.navbarColor={background:_.offwhite,text:_.black},this.partners=[],this.subscribeToLanguageChanges(),this.subscribeToRouteChanges()}subscribeToLanguageChanges(){this.languageSwitch=this.translate.onLangChange.subscribe(()=>{this.loadContent()})}subscribeToRouteChanges(){this.routeChange=this.route.data.subscribe(e=>{this.slug=e.slug,this.title=e.title||this.page?.title,this.loadContent()})}ngOnDestroy(){this.languageSwitch?.unsubscribe(),this.routeChange?.unsubscribe()}loadContent(){return v(this,null,function*(){if(this.slug)try{this.page=yield this.wpService.getPage(this.slug),this.partners=this.page?.acf?.partners||[],this.page?.navbarColor&&(this.navbarColor=this.page?.navbarColor)}catch(e){console.log(e)}})}getSafeUrl(e){return this.sanitizer.bypassSecurityTrustUrl(e||"")}static{this.\u0275fac=function(s){return new(s||t)(y(M))}}static{this.\u0275cmp=x({type:t,selectors:[["app-publisher-half-on-half"]],standalone:!0,features:[k],decls:3,vars:3,consts:[["id","spacer2",1,"top-spacer",3,"navbarColor"],["id","content",3,"navbarColor","backgroundColor"],["id","content",3,"navbarColor"],[1,"max-width","container"],["stickySide","left"],["sticky",""],[1,"title"],["scrollable",""],[1,"form-container"],[1,"description",3,"innerHTML"],[1,"partner"],["target","_blank","rel","noopener noreferrer",3,"href"]],template:function(s,c){s&1&&d(0,B,1,1,"div",0)(1,R,8,5,"section",1)(2,W,8,5,"section",1),s&2&&(r(c.page?-1:0),n(),r(c.page!=null&&c.page.content?1:-1),n(),r(!(c.page==null||c.page.acf==null)&&c.page.acf.partners?2:-1))},dependencies:[L,U,D,E],styles:["[_nghost-%COMP%]{width:100%}[_nghost-%COMP%] h2[_ngcontent-%COMP%]{margin:0}.top-spacer[_ngcontent-%COMP%]{height:80vh;background-color:#00000003}section[_ngcontent-%COMP%]{padding-bottom:2rem}.container[_ngcontent-%COMP%]{padding:0 1rem;margin:0 auto}@media (min-width: 1200px){.container[_ngcontent-%COMP%]{padding:5rem 1rem}}.title[_ngcontent-%COMP%]{display:none;padding-bottom:7.5rem;flex:1 1 50%;z-index:1}@media (min-width: 1200px){.title[_ngcontent-%COMP%]{display:block}} .wp-static-page h2{font-weight:400}"]})}}return t})();export{te as PublisherHalfOnHalfComponent};
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.