import{a as F}from"./chunk-G7ZCVXAQ.js";import{a as C,b as D}from"./chunk-NEVWXSI4.js";import{a as w}from"./chunk-XTWCK3HF.js";import{b as y}from"./chunk-MYFUY6O2.js";import"./chunk-2OPDHXQC.js";import"./chunk-KG6KCEF6.js";import"./chunk-X56LARPA.js";import"./chunk-H57GK6SM.js";import{c as k,g as P,h as R}from"./chunk-OKCQOETP.js";import"./chunk-OIYWA2HS.js";import"./chunk-FE553XN2.js";import"./chunk-GAFOTJIM.js";import"./chunk-MC2ISO42.js";import"./chunk-KRJDYYLG.js";import"./chunk-DQ7X5ENA.js";import{a as i}from"./chunk-QEYLFIWJ.js";import"./chunk-UU6OPGXG.js";import"./chunk-GCHKGY6V.js";import"./chunk-VN5RUFMQ.js";import"./chunk-XMYCMRMC.js";import"./chunk-V4YGGZ4W.js";import"./chunk-PBWCQDPD.js";import"./chunk-T5RBWDW4.js";import"./chunk-JRPZV2OL.js";import"./chunk-DGPQDLRR.js";import"./chunk-X3SPFC3P.js";import"./chunk-FV3DX7LT.js";import"./chunk-ITB6MN7G.js";import"./chunk-EATDPRVO.js";import"./chunk-VPWIEXHH.js";import"./chunk-TTVU4ATD.js";import"./chunk-2AOWEEBV.js";import"./chunk-V6J7QVDD.js";import"./chunk-QYZO4RSP.js";import"./chunk-AWFGIQSJ.js";import{E as c,Ha as p,Na as u,Nb as g,Nh as S,Ob as h,Sa as d,aa as s,eb as f,ob as l,pb as b,qb as v,s as a}from"./chunk-GKQGDBUU.js";import{i as m}from"./chunk-QVFSZZWQ.js";var M=["contentWrapper"],H=(()=>{let t=class t{customPageService=s(i);sub;peertubeRouter=s(S);disabled=!1;contentWrapper=u("contentWrapper");homepageContent;ngOnInit(){this.customPageService.getInstanceHomepage().subscribe(({content:o})=>this.homepageContent=o),window.location.pathname==="/"&&(this.sub=a(window,"scroll").pipe(c(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",d({type:t,selectors:[["ng-component"]],viewQuery:function(e,r){e&1&&g(r.contentWrapper,M,5),e&2&&h();},decls:2,vars:1,consts:[[1,"margin-content"],[3,"content"]],template:function(e,r){e&1&&(l(0,"div",0),v(1,"my-custom-markup-container",1),b()),e&2&&(p(),f("content",r.homepageContent));},dependencies:[F],encapsulation:2}));let n=t;return n;})();var K=[{path:"",component:H,providers:[i,w,y,D,C,k,R,P],data:{meta:{title:"Trang ch\u1EE7"},reuse:{enabled:!0,key:"home"}}}];export{K as default};/**i18n:42345378061bf3c93df67acfa161b751a7b03cc91f3ede7c1f1cdf2bba62fe26*///# sourceMappingURL=chunk-LTYAHBIQ.js.map