import{a as R}from"./chunk-DOO5MBIJ.js";import{a as C,b as P}from"./chunk-73XHERHT.js";import{a as w}from"./chunk-7UFWKVOU.js";import{b as y}from"./chunk-JM6BHIL2.js";import"./chunk-2QBDBQJL.js";import"./chunk-VGS3KBCX.js";import"./chunk-CEMJJAWZ.js";import"./chunk-UVPC3B5J.js";import{c as k,g as D,h as M}from"./chunk-BC7MAKMD.js";import"./chunk-IULRDVRP.js";import"./chunk-L2X7GKGR.js";import"./chunk-DM6B3VGW.js";import"./chunk-DS3UIQKK.js";import"./chunk-ND4GMJSI.js";import"./chunk-7WRF56BE.js";import{a as i}from"./chunk-CGUI3HPS.js";import"./chunk-JKSPELFQ.js";import"./chunk-L6GZIQIW.js";import"./chunk-UUAWMZHV.js";import"./chunk-CJIFKH3B.js";import"./chunk-RG7KH4LA.js";import"./chunk-IK6BG7XB.js";import"./chunk-CL3DZCLS.js";import"./chunk-PFFSH6Z6.js";import"./chunk-LRMYJ7C7.js";import"./chunk-XPG25PO3.js";import"./chunk-L4DRGTAY.js";import"./chunk-K7HMHW3L.js";import"./chunk-ZIOGCVJC.js";import"./chunk-636JIKZA.js";import"./chunk-NFMVL5C6.js";import"./chunk-KFLEEQUN.js";import"./chunk-P7U3FVME.js";import"./chunk-CZUQPOUG.js";import"./chunk-WACTU4HM.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-RB2SGB4Z.js";import{i as m}from"./chunk-IQVXR75E.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\xE1gina Principal"},reuse:{enabled:!0,key:"home"}}}];export{K as default};/**i18n:347eeb695970c32bc275618edc2e751c67145d9fc3012e70543c114a99b9e016*///# sourceMappingURL=chunk-2OOBTZLN.js.map