import{a as R}from"./chunk-YPYU7C5Y.js";import{a as C,b as P}from"./chunk-JHOKKZD7.js";import{a as w}from"./chunk-WO2ANWY7.js";import{b as y}from"./chunk-BFZQWHDZ.js";import"./chunk-627WCYLU.js";import"./chunk-GNAV67IP.js";import"./chunk-BHBCNFVT.js";import"./chunk-MMSRIWJW.js";import{c as k,g as D,h as M}from"./chunk-LYZL6OOU.js";import"./chunk-GR5H345L.js";import"./chunk-7UFIGXJN.js";import"./chunk-HR26KU6Y.js";import"./chunk-RY2YJPZB.js";import"./chunk-NHMA6PF3.js";import"./chunk-EJOAWHFA.js";import{a as i}from"./chunk-PGZ2TRZP.js";import"./chunk-EXAVYYI6.js";import"./chunk-YTP4376T.js";import"./chunk-C2XHZ3NA.js";import"./chunk-JGQ64Z77.js";import"./chunk-OORXVBP2.js";import"./chunk-PKQFNASJ.js";import"./chunk-LNBH6JI7.js";import"./chunk-YCU6UMCW.js";import"./chunk-WX6PIOSD.js";import"./chunk-XOWLRMLJ.js";import"./chunk-Q3HVUH4M.js";import"./chunk-NQHICIP4.js";import"./chunk-4UU5GI7S.js";import"./chunk-H7MI4DGJ.js";import"./chunk-C2TWPNK3.js";import"./chunk-NTMP2ELD.js";import"./chunk-5Y6FVWZJ.js";import"./chunk-FUYX4JKG.js";import"./chunk-B54J7MIK.js";import{Bh 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-7XPKW7E5.js";import{i as m}from"./chunk-SNJLK5AI.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:"Startpagina"},reuse:{enabled:!0,key:"home"}}}];export{K as default};/**i18n:8bbaae6e8f892c770558263409b04864bea4163b0f68bbe3358622c96ded4382*///# sourceMappingURL=chunk-YOLLMPS2.js.map