import{a as R}from"./chunk-BCCFQEB2.js";import{a as C,b as P}from"./chunk-NZQWX3GH.js";import{a as w}from"./chunk-QWHXHXRF.js";import{b as y}from"./chunk-CV4VFWGM.js";import"./chunk-74CV3OSB.js";import"./chunk-EQVMTYDO.js";import"./chunk-4LRKKRXP.js";import"./chunk-KKLZYJSH.js";import{c as k,g as D,h as M}from"./chunk-BIXQYXOG.js";import"./chunk-N6ZADJLM.js";import"./chunk-NUFYFH2P.js";import"./chunk-NRUVTQT6.js";import"./chunk-HYAZ5VYY.js";import"./chunk-HULXTCSO.js";import"./chunk-2W5IMV7F.js";import{a as i}from"./chunk-E7LSTL5V.js";import"./chunk-MJNR3U33.js";import"./chunk-VTD3G3TG.js";import"./chunk-ZO7KJMKI.js";import"./chunk-S3C4WSLV.js";import"./chunk-YA2OBXRO.js";import"./chunk-KKQXMHTD.js";import"./chunk-MX3KDVP3.js";import"./chunk-DZ6T7PS7.js";import"./chunk-TPPCH2AE.js";import"./chunk-Z2LF35UH.js";import"./chunk-PB45VOJJ.js";import"./chunk-2SQVKV5D.js";import"./chunk-XKUQKVOV.js";import"./chunk-U4DRWDU7.js";import"./chunk-PBGQABKC.js";import"./chunk-QMQVDBEV.js";import"./chunk-5ZTU7T2J.js";import"./chunk-DL46GKS7.js";import"./chunk-HHXEF4AR.js";import{Ch as S,Da as c,F as p,Fc as h,Na as u,Rb as v,Sb as g,ba as s,mb as d,nb as f,ob as l,pb as b,t as a}from"./chunk-OTZZLUAJ.js";import{i as m}from"./chunk-XYZYVFXE.js";var F=["contentWrapper"],W=(()=>{let t=class t{customPageService=s(i);sub;peertubeRouter=s(S);disabled=!1;contentWrapper=h("contentWrapper");homepageContent;ngOnInit(){this.customPageService.getInstanceHomepage().subscribe(({content:o})=>this.homepageContent=o),window.location.pathname==="/"&&(this.sub=a(window,"scroll").pipe(p(250)).subscribe(()=>{this.disabled||window.pageYOffset>300&&(this.peertubeRouter.silentNavigate([],{}),this.sub.unsubscribe(),this.sub=void 0);}));}ngOnDestroy(){this.sub&&this.sub.unsubscribe();}disableForReuse(){this.disabled=!0;}enabledForReuse(){this.disabled=!0;}};m(t,"\u0275fac",function(e){return new(e||t)();}),m(t,"\u0275cmp",u({type:t,selectors:[["ng-component"]],viewQuery:function(e,r){e&1&&v(r.contentWrapper,F,5),e&2&&g();},decls:2,vars:1,consts:[[1,"margin-content"],[3,"content"]],template:function(e,r){e&1&&(f(0,"div",0),b(1,"my-custom-markup-container",1),l()),e&2&&(c(),d("content",r.homepageContent));},dependencies:[R],encapsulation:2}));let n=t;return n;})();var K=[{path:"",component:W,providers:[i,w,y,P,C,k,M,D],data:{meta:{title:"P\xE0gina d'inici"},reuse:{enabled:!0,key:"home"}}}];export{K as default};/**i18n:4caeb8e7a09648a9cf35d6229af8a685b503a6e2123779e5b0c4fb7602981338*///# sourceMappingURL=chunk-A5L47WGJ.js.map