import{k}from'./chunk-D96J2PBK.js';import{C as Cn,T as Te}from'./chunk-Dm0vWTVF.js';import{C}from'./chunk-CDhLx_Ru.js';import{ay as m,g,es as Mc,x as xpe,ff as $c,bl as ta,b as Pa,s as sp,f as Pp,d as lb,W as WB,a3 as H0,p as px,c as IV}from'./main-DEZ5cZzu.js';import{j}from'./chunk-CMCtTkWA.js';import'./chunk-DBbpaYVV.js';import'./chunk-Nvvh024_.js';import'./chunk-BcSizZT_.js';import'./chunk-DmY7bGyL.js';import{H as Ht,D as Dt,N as Nt}from'./chunk-BrVO-2dI.js';import'./chunk-DHVyyAtU.js';import'./chunk-nfSA6zwi.js';import'./chunk-CrWoVCei.js';import'./chunk-DZVj2nmI.js';var P=["contentWrapper"],M=(()=>{class t{customPageService=g(m);sub;peertubeRouter=g(Mc);disabled=false;contentWrapper=xpe("contentWrapper");homepageContent;ngOnInit(){this.customPageService.getInstanceHomepage().subscribe(({content:o})=>this.homepageContent=o),window.location.pathname==="/"&&(this.sub=$c(window,"scroll").pipe(ta(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=true;}enabledForReuse(){this.disabled=true;}static ɵfac=function(e){return new(e||t)();};static ɵcmp=Pa({type:t,selectors:[["ng-component"]],viewQuery:function(e,i){e&1&&px(i.contentWrapper,P,5),e&2&&IV();},decls:2,vars:1,consts:[[1,"margin-content"],[3,"content"]],template:function(e,i){e&1&&(sp(0,"div",0),Pp(1,"my-custom-markup-container",1),lb()),e&2&&(WB(),H0("content",i.homepageContent));},dependencies:[k],encapsulation:2,changeDetection:1});}return t;})();var $=[{path:"",component:M,providers:[m,C,j,Cn,Te,Ht,Dt,Nt],data:{meta:{title:"P\xE0gina d'inici"},reuse:{enabled:true,key:"home"}}}];/**i18n:c8855ca17fb20171aa9dd43d012e42547cb1f0cfd9c21d4dc05679bbbdf5ccb8*/export{$ as default};//# sourceMappingURL=chunk-Bi5vMkGE.js.map