import{a as R}from"./chunk-BZY4WPKE.js";import{a as C,b as P}from"./chunk-G3UD5BL4.js";import{a as w}from"./chunk-A3VDNXOS.js";import{b as y}from"./chunk-UXTOUTII.js";import"./chunk-HIIQHUPB.js";import"./chunk-LBNALXAE.js";import"./chunk-FKYSH5OG.js";import"./chunk-D6GDQA45.js";import{c as k,g as D,h as M}from"./chunk-CXGWN7ON.js";import"./chunk-VNTTMLNC.js";import"./chunk-REGRR3MN.js";import"./chunk-564SGFOD.js";import"./chunk-Q6HW2ZX6.js";import"./chunk-FIRXRUYQ.js";import"./chunk-EACVBS4T.js";import{a as i}from"./chunk-6F2SKHXZ.js";import"./chunk-SG7FO2VA.js";import"./chunk-EZJXLPFI.js";import"./chunk-X3FRSWEH.js";import"./chunk-I35UNCSO.js";import"./chunk-HH6BK2TC.js";import"./chunk-JDHBJ4AH.js";import"./chunk-EDXPW7KK.js";import"./chunk-TQ5ESXAX.js";import"./chunk-XTUMH3AE.js";import"./chunk-IWEJR7IZ.js";import"./chunk-F6VD4TQO.js";import"./chunk-D6HVHWLN.js";import"./chunk-XPENUXFT.js";import"./chunk-R4KH5TVT.js";import"./chunk-ECEY5IMS.js";import"./chunk-JZKJ6CBR.js";import"./chunk-GE7DWA6O.js";import"./chunk-LNDL2Z4K.js";import"./chunk-7HOLFPGE.js";import{Ah as S,Da as c,Ec as h,F as p,Na as u,Qb as v,Rb as g,ba as s,lb as d,mb as f,nb as l,ob as b,t as a}from"./chunk-MOXUT4EU.js";import{i as m}from"./chunk-QQ7SJNXU.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:"\u9996\u9801"},reuse:{enabled:!0,key:"home"}}}];export{K as default};/**i18n:5a85df092a135682c90bae008e37ec28160e04e5f445e29af2927333ba91ffa1*///# sourceMappingURL=chunk-UCLPGPS6.js.map