import{a as R}from"./chunk-BSGVE2QT.js";import{a as C,b as P}from"./chunk-MPQGS2CK.js";import{a as w}from"./chunk-5M66HCDP.js";import{b as y}from"./chunk-JNEEUPD6.js";import"./chunk-PQUVT6OZ.js";import"./chunk-MBPQSUPX.js";import"./chunk-STKO4QAE.js";import"./chunk-Z36LWPVO.js";import{c as k,g as D,h as M}from"./chunk-KYOM5SMX.js";import"./chunk-HTOANEUS.js";import"./chunk-ZHTTK5CI.js";import"./chunk-P2QKOLPI.js";import"./chunk-56E7HJRD.js";import"./chunk-SSKMMBHJ.js";import"./chunk-SULKYUMG.js";import{a as i}from"./chunk-TNBXUJ2E.js";import"./chunk-TDUW2OVZ.js";import"./chunk-RMBX62SS.js";import"./chunk-VPM5GLD7.js";import"./chunk-LKXNPRL2.js";import"./chunk-5NI77QMM.js";import"./chunk-AEY4IYSS.js";import"./chunk-SBZQHZI5.js";import"./chunk-HTQDXPBO.js";import"./chunk-XYFON6WE.js";import"./chunk-LWCNLX24.js";import"./chunk-F257PJOU.js";import"./chunk-LYBUFCRR.js";import"./chunk-D2IXLWV3.js";import"./chunk-NUCSST5L.js";import"./chunk-ZYWXQJ5J.js";import"./chunk-PH6IGF5W.js";import"./chunk-UWSHPMXV.js";import"./chunk-GNVITTGR.js";import"./chunk-KXBVYXHU.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-THW6YIIG.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:"\u0635\u0641\u062D\u0647 \u0646\u062E\u0633\u062A"},reuse:{enabled:!0,key:"home"}}}];export{K as default};/**i18n:90f1dd82a779b57eddc91ef20913c88eecaa9632bba8ac04ad50f47ae2b82df7*///# sourceMappingURL=chunk-VMFHDUX2.js.map