import{a as R}from"./chunk-J3BW2BOJ.js";import{a as C,b as P}from"./chunk-GK2VFQKS.js";import{a as w}from"./chunk-C7A3VKSS.js";import{b as y}from"./chunk-2WTESSMP.js";import"./chunk-MWMV5KWZ.js";import"./chunk-T53DZP32.js";import"./chunk-JWGWGME2.js";import"./chunk-YNP4GX6H.js";import{c as k,g as D,h as M}from"./chunk-HDSALD77.js";import"./chunk-25ABD2WW.js";import"./chunk-S2XS2ZJ7.js";import"./chunk-564SGFOD.js";import"./chunk-IE7P4WOF.js";import"./chunk-74KREGU3.js";import"./chunk-LCZ4KVC7.js";import{a as i}from"./chunk-ZUQSM5T7.js";import"./chunk-ZPSSIWG7.js";import"./chunk-6TDR3SFN.js";import"./chunk-MXZTQISP.js";import"./chunk-TBGBDJOR.js";import"./chunk-UGC7GL3F.js";import"./chunk-4VO5CTSE.js";import"./chunk-BXPCO2BA.js";import"./chunk-MWLCWUFK.js";import"./chunk-JLFTZOO3.js";import"./chunk-LGWITFGZ.js";import"./chunk-O3DUHSHY.js";import"./chunk-YK7MMEVX.js";import"./chunk-7MP4A7QJ.js";import"./chunk-F7JK4FWY.js";import"./chunk-NL4OPCIU.js";import"./chunk-WZAWUQR2.js";import"./chunk-JDOQXT4C.js";import"./chunk-C4Z4PZTH.js";import"./chunk-2WREWCTT.js";import{Da as c,E as p,La as u,Lb as v,Mb as g,aa as s,ci as S,gb as d,hb as f,ib as l,jb as b,s as a,yc as h}from"./chunk-DWEAL4OJ.js";import{i as m}from"./chunk-YM6OINSR.js";var F=["contentWrapper"],W=(()=>{let t=class t{customPageService=s(i);sub;peertubeRouter=s(S);disabled=!1;contentWrapper=h("contentWrapper");homepageContent;ngOnInit(){this.customPageService.getInstanceHomepage().subscribe(({content:o})=>this.homepageContent=o),window.location.pathname==="/"&&(this.sub=a(window,"scroll").pipe(p(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=!0;}enabledForReuse(){this.disabled=!0;}};m(t,"\u0275fac",function(e){return new(e||t)();}),m(t,"\u0275cmp",u({type:t,selectors:[["ng-component"]],viewQuery:function(e,r){e&1&&v(r.contentWrapper,F,5),e&2&&g();},decls:2,vars:1,consts:[[1,"margin-content"],[3,"content"]],template:function(e,r){e&1&&(f(0,"div",0),b(1,"my-custom-markup-container",1),l()),e&2&&(c(),d("content",r.homepageContent));},dependencies:[R],encapsulation:2}));let n=t;return n;})();var K=[{path:"",component:W,providers:[i,w,y,P,C,k,M,D],data:{meta:{title:"Homepage"},reuse:{enabled:!0,key:"home"}}}];export{K as default};/**i18n:5a85df092a135682c90bae008e37ec28160e04e5f445e29af2927333ba91ffa1*///# sourceMappingURL=chunk-DXO45GXO.js.map