import{k}from'./chunk-BnJ8gb_s.js';import{C as Cn,T as Te}from'./chunk-DrvUP_3c.js';import{C}from'./chunk-311LbAVZ.js';import{ay as m,g,es as Mc,w as wpe,ff 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-ajlqprgK.js';import{j}from'./chunk-L5A5rljK.js';import'./chunk-CWVKoDCb.js';import'./chunk-BL4hZGFS.js';import'./chunk-D2g5aDwT.js';import'./chunk-DiHKqxPg.js';import{H as Ht,D as Dt,N as Nt}from'./chunk-rKzGKGz9.js';import'./chunk-1b2UgEHs.js';import'./chunk-BZydbr1g.js';import'./chunk-BAzl70Bd.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,Ht,Dt,Nt],data:{meta:{title:"Strona g\u0142\xF3wna"},reuse:{enabled:true,key:"home"}}}];/**i18n:fad79908930cbb4c308e7550a5fe49bb3841dbb330066a6429aebaa006173605*/export{$ as default};//# sourceMappingURL=chunk-C5g3GwSB.js.map