import{a as R}from"./chunk-CKCGG7VB.js";import{a as C,b as P}from"./chunk-KU4JKG2F.js";import{a as w}from"./chunk-QMKZXD7L.js";import{b as y}from"./chunk-Y7LB4IT6.js";import"./chunk-EORNJL7E.js";import"./chunk-46I2D4D6.js";import"./chunk-7MPRWNDB.js";import"./chunk-KFREVL45.js";import{c as k,g as D,h as M}from"./chunk-L5WWDF6S.js";import"./chunk-HCTFT6FH.js";import"./chunk-OSWYUQHE.js";import"./chunk-6N5A4I2Z.js";import"./chunk-74CVONEK.js";import"./chunk-QXM5I4PV.js";import"./chunk-O5SJWMWS.js";import{a as i}from"./chunk-KIPB52JJ.js";import"./chunk-4P45ANCN.js";import"./chunk-EV2EVXTB.js";import"./chunk-H7ZGPOKX.js";import"./chunk-UEQFMU3X.js";import"./chunk-NBZO6GJA.js";import"./chunk-T5L6J2ZM.js";import"./chunk-GJGVL733.js";import"./chunk-FGWGY3AE.js";import"./chunk-6VGVSUFA.js";import"./chunk-2NXPS2XG.js";import"./chunk-ZWIUPJGB.js";import"./chunk-KBCGLXAJ.js";import"./chunk-EAUVMWEM.js";import"./chunk-SV67223J.js";import"./chunk-JFGGJORV.js";import"./chunk-SXLQEGEZ.js";import"./chunk-MQKTIDDS.js";import"./chunk-QRRH3MWX.js";import"./chunk-AQXZMELS.js";import{Ch as S,Da as c,F as p,Fc as h,Na as u,Rb as v,Sb as g,ba as s,mb as d,nb as f,ob as l,pb as b,t as a}from"./chunk-L6W7X4TF.js";import{i as m}from"./chunk-WH5WJFMZ.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:ae7e6707fc51a9e1f6f015929aece8afe43a92a094f09f07f0463afe6c89573f*///# sourceMappingURL=chunk-YZ3FPHZO.js.map