import{a as R}from"./chunk-C56B4F7J.js";import{a as C,b as P}from"./chunk-DNKBVYSD.js";import{a as w}from"./chunk-6QT5I4KU.js";import{b as y}from"./chunk-G3B7SB3W.js";import"./chunk-VVRBPZFD.js";import"./chunk-NIOOPBJI.js";import"./chunk-N2SPVEKZ.js";import"./chunk-H3MSDHRM.js";import{c as k,g as D,h as M}from"./chunk-BHWIBFBN.js";import"./chunk-2FQYLVJI.js";import"./chunk-X4RZ7HTV.js";import"./chunk-6Q4FAQ3F.js";import"./chunk-VTII3YKG.js";import"./chunk-HVGMIQOP.js";import"./chunk-KZPA6MNJ.js";import{a as i}from"./chunk-TQOLBB4I.js";import"./chunk-GLBFTA5F.js";import"./chunk-XHH6GNS3.js";import"./chunk-TEUWQ6HY.js";import"./chunk-LZB4RNES.js";import"./chunk-X7CHLTWB.js";import"./chunk-EFDZYPES.js";import"./chunk-HVLAJT7O.js";import"./chunk-YCVIXSU2.js";import"./chunk-V5DV6KGK.js";import"./chunk-V26PQWAW.js";import"./chunk-KZ2ERJXC.js";import"./chunk-WLGCFIUG.js";import"./chunk-4EJIV37M.js";import"./chunk-OAV2CNYM.js";import"./chunk-EK2OSF5G.js";import"./chunk-KATZWC56.js";import"./chunk-XQH6HV66.js";import"./chunk-RIQXTFFV.js";import"./chunk-BO66CCIZ.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-EKZJWO2J.js";import{i as m}from"./chunk-BODC7FZN.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:"Startsida"},reuse:{enabled:!0,key:"home"}}}];export{K as default};/**i18n:e079feaac094a2c754af8c2d9f82a9400e546e6b8cdd8ff7d538e47a33fc4649*///# sourceMappingURL=chunk-UYLBOW5J.js.map