import{k}from'./chunk-CGUmb41K.js';import{C as Cn,T as Te}from'./chunk-BnTwAhqp.js';import{C}from'./chunk-Jd_jCtjO.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-C0Sl1OBd.js';import{j}from'./chunk-DQ5VcJyq.js';import'./chunk-CPRrdWil.js';import'./chunk-Cj0bUbMX.js';import'./chunk-CQ8DS5LS.js';import'./chunk-qdb8laCV.js';import{H as Ht,D as Dt,N as Nt}from'./chunk-9FZVzjyB.js';import'./chunk-lrWSmANS.js';import'./chunk-C6aRWhcU.js';import'./chunk-Cmog0EIA.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:"Page d'accueil"},reuse:{enabled:true,key:"home"}}}];/**i18n:c8855ca17fb20171aa9dd43d012e42547cb1f0cfd9c21d4dc05679bbbdf5ccb8*/export{$ as default};//# sourceMappingURL=chunk-1BaYryoc.js.map