import{a as R}from"./chunk-XCDPFWAE.js";import{a as C,b as P}from"./chunk-SOWCUZ2P.js";import{a as w}from"./chunk-3POX2CFO.js";import{b as y}from"./chunk-IMQSKM6F.js";import"./chunk-GY2BKRQL.js";import"./chunk-QUFWAYWG.js";import"./chunk-ECYL644H.js";import"./chunk-KFREVL45.js";import{c as k,g as D,h as M}from"./chunk-PHQGVETT.js";import"./chunk-HCTFT6FH.js";import"./chunk-OSWYUQHE.js";import"./chunk-6N5A4I2Z.js";import"./chunk-7ZQHT54J.js";import"./chunk-QXM5I4PV.js";import"./chunk-O5SJWMWS.js";import{a as i}from"./chunk-KIPB52JJ.js";import"./chunk-3P33WHXP.js";import"./chunk-EV2EVXTB.js";import"./chunk-FUZPM72Q.js";import"./chunk-UEQFMU3X.js";import"./chunk-7UKHNYRH.js";import"./chunk-T5L6J2ZM.js";import"./chunk-GJGVL733.js";import"./chunk-FGWGY3AE.js";import"./chunk-6VGVSUFA.js";import"./chunk-2NXPS2XG.js";import"./chunk-VB3MJKPC.js";import"./chunk-EENIHTMQ.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:"Heimesida"},reuse:{enabled:!0,key:"home"}}}];export{K as default};/**i18n:ae7e6707fc51a9e1f6f015929aece8afe43a92a094f09f07f0463afe6c89573f*///# sourceMappingURL=chunk-5JK3DDGB.js.map