import{a as R}from"./chunk-AQCAEBPU.js";import{a as C,b as P}from"./chunk-IYLNJFAS.js";import{a as w}from"./chunk-V7766DP7.js";import{b as y}from"./chunk-VP2DPH2B.js";import"./chunk-O6JFPN6Y.js";import"./chunk-Y25PA6LB.js";import"./chunk-D7AFZ4PH.js";import"./chunk-NDU4YC6K.js";import{c as k,g as D,h as M}from"./chunk-CL23WOH7.js";import"./chunk-QIUFPYFH.js";import"./chunk-D6SYNZK4.js";import"./chunk-QQEAIHHQ.js";import"./chunk-TGJYSDH6.js";import"./chunk-5TQL6IYG.js";import"./chunk-BICQJDQP.js";import{a as i}from"./chunk-BVWOOM55.js";import"./chunk-FCVC2ITM.js";import"./chunk-5247Y5WF.js";import"./chunk-3DBNKHSQ.js";import"./chunk-ICQDBBSV.js";import"./chunk-7TPOLMSO.js";import"./chunk-RFDIS7RO.js";import"./chunk-6ZSPPAUO.js";import"./chunk-X7R57V6U.js";import"./chunk-AZPYKXFL.js";import"./chunk-XKHZ653L.js";import"./chunk-VUKFN2YQ.js";import"./chunk-4GMKSIW4.js";import"./chunk-KP34JQHZ.js";import"./chunk-CHJSFALA.js";import"./chunk-KKNPEIDS.js";import"./chunk-4ARSJVAF.js";import"./chunk-K6U64Q72.js";import"./chunk-KZ26MFAT.js";import"./chunk-Y4WF5HJS.js";import{Aa as c,E as p,Jb as v,Ka as u,Kb as g,Zh 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-R4Z6ZI3L.js";import{i as m}from"./chunk-P6NJDXIL.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:138e9aba5923606215625ab5641fbdc103d8a34cfe13ae910386f40f27aea675*///# sourceMappingURL=chunk-XJ7PJBDT.js.map