import{a as R}from"./chunk-RBXZMWKA.js";import{a as C,b as P}from"./chunk-YU5YTEHX.js";import{a as w}from"./chunk-R3Y7BAFA.js";import{b as y}from"./chunk-LHWKEEFV.js";import"./chunk-M5HIIRAU.js";import"./chunk-QFIVKWN7.js";import"./chunk-YER5DYR4.js";import"./chunk-ZIJO4HO5.js";import{c as k,g as D,h as M}from"./chunk-PQP6QKSV.js";import"./chunk-IM4DWJIQ.js";import"./chunk-LW6EJSDY.js";import"./chunk-GLLGOTKA.js";import"./chunk-SY45KLBX.js";import"./chunk-WNIAPW4N.js";import"./chunk-UTEWCFAL.js";import{a as i}from"./chunk-EXJMQN5G.js";import"./chunk-D44Y6ICR.js";import"./chunk-Q2RMO77J.js";import"./chunk-3DWZH7C4.js";import"./chunk-F327JUCN.js";import"./chunk-6MIIW7HE.js";import"./chunk-UJ3D6FHR.js";import"./chunk-PPCIMEI5.js";import"./chunk-LCBJQMGS.js";import"./chunk-KVMFLJKE.js";import"./chunk-7NI2GBG4.js";import"./chunk-5HYDCLPP.js";import"./chunk-L26R6QLO.js";import"./chunk-3BLHHGXR.js";import"./chunk-WVXLVXI4.js";import"./chunk-6LNMEHUC.js";import"./chunk-AZDDTWAU.js";import"./chunk-CFJ5N37G.js";import"./chunk-XJZQBBLJ.js";import"./chunk-LNGYW555.js";import{Aa as c,E as p,Jb as v,Ka as u,Kb as g,Xh as S,aa as s,eb as d,fb as f,gb as l,hb as b,s as a,zc as h}from"./chunk-O5L4E6JZ.js";import{i as m}from"./chunk-ISBQGYOJ.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:4d96fbbe8a02868f1b15225bb74dfc1273beaf38b7ce36e9c53048b85eee2d05*///# sourceMappingURL=chunk-UCJ5B2PF.js.map