import{a as R}from"./chunk-X4JCUKQZ.js";import{a as C,b as P}from"./chunk-2AVFUQMK.js";import{a as w}from"./chunk-J3X5WXXN.js";import{b as y}from"./chunk-3Q3ZZWBO.js";import"./chunk-GEREEIWH.js";import"./chunk-A664O733.js";import"./chunk-M4Q4AVUW.js";import"./chunk-7Q3H4OPH.js";import{c as k,g as D,h as M}from"./chunk-T22HDLET.js";import"./chunk-KJLRNSCZ.js";import"./chunk-GEUQVPYE.js";import"./chunk-FUFZ726E.js";import"./chunk-77FLT7QI.js";import"./chunk-6WKMXLVZ.js";import"./chunk-ZBMVI5KO.js";import{a as i}from"./chunk-XRKXZD42.js";import"./chunk-C3J2N54S.js";import"./chunk-TQL5WXHI.js";import"./chunk-4L2XWRQY.js";import"./chunk-66MRKT24.js";import"./chunk-JZQULWZP.js";import"./chunk-VSNT7HD7.js";import"./chunk-VF2E66ZC.js";import"./chunk-PWA5YSBS.js";import"./chunk-DQVEC6QH.js";import"./chunk-MI3Y2XTP.js";import"./chunk-CRKNV45X.js";import"./chunk-ULU2WPBM.js";import"./chunk-W656SLW5.js";import"./chunk-POWTF5KQ.js";import"./chunk-ARKMDTQ4.js";import"./chunk-KCS4FZWN.js";import"./chunk-UVFMJH3U.js";import"./chunk-YIKPDULQ.js";import"./chunk-XTZ2Q6VE.js";import{Da as c,E as p,La as u,Lb as v,Mb as g,aa as s,ci as S,gb as d,hb as f,ib as l,jb as b,s as a,yc as h}from"./chunk-HJJWL6RD.js";import{i as m}from"./chunk-H2BCKOF6.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:671d995daee9c68b73ac729b7ab2c3cf3be32c7f1a24d9dfa94e261c45ee5241*///# sourceMappingURL=chunk-5PAKPB7X.js.map