import{a as R}from"./chunk-2KGYH7E5.js";import{a as C,b as P}from"./chunk-YG2ZJ72N.js";import{a as w}from"./chunk-3GGQW6L7.js";import{b as y}from"./chunk-66B5CMFY.js";import"./chunk-EHCJAHFN.js";import"./chunk-WT3GM3LI.js";import"./chunk-HFLMNLM5.js";import"./chunk-O4DTQ4SJ.js";import{c as k,g as D,h as M}from"./chunk-MGDE33BA.js";import"./chunk-GJO35GUD.js";import"./chunk-4FDYCPKM.js";import"./chunk-6P2PS6DB.js";import"./chunk-QLGMD6HE.js";import"./chunk-WO3JYBTA.js";import"./chunk-564SGFOD.js";import{a as i}from"./chunk-EJAF3I5Y.js";import"./chunk-AGSAR3UO.js";import"./chunk-EV5P7DNW.js";import"./chunk-DQ3WDHAC.js";import"./chunk-ONEK2N3O.js";import"./chunk-7OSLZK4S.js";import"./chunk-V7MLKNFX.js";import"./chunk-F77H4ORQ.js";import"./chunk-N53BZWT6.js";import"./chunk-V6E7LH4N.js";import"./chunk-5W26PNQB.js";import"./chunk-W2SF7KHK.js";import"./chunk-ZLJ5SRDV.js";import"./chunk-U6NXRSIJ.js";import"./chunk-JZTSMKZD.js";import"./chunk-T22ULW3M.js";import"./chunk-CVXYRGXK.js";import"./chunk-OSAEZL4I.js";import"./chunk-KVYKSDQA.js";import"./chunk-7YUUTAV6.js";import{Bh 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-RKSLYOIW.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:"\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629"},reuse:{enabled:!0,key:"home"}}}];export{K as default};/**i18n:5a85df092a135682c90bae008e37ec28160e04e5f445e29af2927333ba91ffa1*///# sourceMappingURL=chunk-DA2FDL2V.js.map