import{k}from'./chunk-CLPKPp55.js';import{C as Cn,T as Te}from'./chunk-CUM9Q6LE.js';import{C}from'./chunk-DgowzBSy.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-BiUBeaMj.js';import{j}from'./chunk-BkaflMxL.js';import'./chunk-awKCnOdM.js';import'./chunk-D8k0e5mQ.js';import'./chunk-BeORjHTo.js';import'./chunk-DKL7x6EW.js';import{H as Ht,D as Dt,N as Nt}from'./chunk-D-Jqsism.js';import'./chunk-sjVbQlUC.js';import'./chunk-ChTAcsy3.js';import'./chunk-B32E78Jb.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-CjG_WerG.js.map