import{a as R}from"./chunk-3HD3XJKI.js";import{a as C,b as P}from"./chunk-A7RUVAST.js";import{a as w}from"./chunk-O3ILKAAA.js";import{b as y}from"./chunk-AEHDHBDS.js";import"./chunk-S3QYITIS.js";import"./chunk-HZ453ZVJ.js";import"./chunk-XQBVGY3V.js";import"./chunk-JJPPPEYO.js";import{c as k,g as D,h as M}from"./chunk-A4YKVZAR.js";import"./chunk-QZHZMTI7.js";import"./chunk-3LNMQRGW.js";import"./chunk-P2QKOLPI.js";import"./chunk-PRXPZT23.js";import"./chunk-FGPZMVCY.js";import"./chunk-YVZKTMAK.js";import{a as i}from"./chunk-CDNQSFW6.js";import"./chunk-OO6NHHRQ.js";import"./chunk-HEURBKHC.js";import"./chunk-4OBCC667.js";import"./chunk-72GOCXWJ.js";import"./chunk-JITMAVP4.js";import"./chunk-CWZHKLYO.js";import"./chunk-QXEYT4D7.js";import"./chunk-BIFSHE2D.js";import"./chunk-QKVQCZOX.js";import"./chunk-QCA54E2P.js";import"./chunk-2LKEY4S7.js";import"./chunk-WPBWOUWA.js";import"./chunk-KHHQCOMB.js";import"./chunk-OJS2US3R.js";import"./chunk-J4ZKCWKK.js";import"./chunk-M47TE5K7.js";import"./chunk-IX3C5NWZ.js";import"./chunk-KLWYGBZ6.js";import"./chunk-NQFIF6FB.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-W6R7I2TH.js";import{i as m}from"./chunk-PTJGHD3V.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:"P\xE0gina d'inici"},reuse:{enabled:!0,key:"home"}}}];export{K as default};/**i18n:90f1dd82a779b57eddc91ef20913c88eecaa9632bba8ac04ad50f47ae2b82df7*///# sourceMappingURL=chunk-QUJ654JN.js.map