import{k}from'./chunk-CA9mlhjU.js';import{C as Cn,T as Te}from'./chunk-C085ZNOe.js';import{C}from'./chunk-BDiLvC68.js';import{ay as m,g,er as Mc,w as wpe,fe as $c,bl as ta,b as Pa,s as sp,e as Pp,u as ub,z as zB,a3 as B0,f as fx,c as DV}from'./main-sJAtkqeq.js';import{j}from'./chunk-C5r1aluR.js';import'./chunk-Bzh24aFE.js';import'./chunk-B1ckgyo2.js';import'./chunk-DwfQijvj.js';import'./chunk-uAC8t5Px.js';import{I as It,U as Ut,P as Pt}from'./chunk-CV_T9H11.js';import'./chunk-D6R-e_vb.js';import'./chunk-DsZ3hjLw.js';import'./chunk-B9kBdiXP.js';import'./chunk-F7sai10S.js';var P=["contentWrapper"],M=(()=>{class t{customPageService=g(m);sub;peertubeRouter=g(Mc);disabled=false;contentWrapper=wpe("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&&fx(i.contentWrapper,P,5),e&2&&DV();},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),ub()),e&2&&(zB(),B0("content",i.homepageContent));},dependencies:[k],encapsulation:2,changeDetection:1});}return t;})();var $=[{path:"",component:M,providers:[m,C,j,Cn,Te,It,Ut,Pt],data:{meta:{title:"Pagina principal\u0103"},reuse:{enabled:true,key:"home"}}}];/**i18n:fad79908930cbb4c308e7550a5fe49bb3841dbb330066a6429aebaa006173605*/export{$ as default};//# sourceMappingURL=chunk-Bh__YqWJ.js.map