import{a as R}from"./chunk-6I6PVLJN.js";import{a as C,b as P}from"./chunk-OK62ZBKN.js";import{a as w}from"./chunk-GWXKKGPV.js";import{b as y}from"./chunk-BTNEZN4Y.js";import"./chunk-ADF53KZM.js";import"./chunk-WEYW3BXR.js";import"./chunk-AWUGKGDA.js";import"./chunk-JAH6M4VD.js";import{c as k,g as D,h as M}from"./chunk-LU2YDYMQ.js";import"./chunk-P4INSKTU.js";import"./chunk-4Y2UJ3YK.js";import"./chunk-YYLPHLX4.js";import"./chunk-4KDWMOJH.js";import"./chunk-2DMBAEQM.js";import"./chunk-3KRPLA4W.js";import{a as i}from"./chunk-RQWRSXA6.js";import"./chunk-Y6ORFLO6.js";import"./chunk-BHHMUZLD.js";import"./chunk-AAY73ATI.js";import"./chunk-RXKRQGBY.js";import"./chunk-37EKMVVG.js";import"./chunk-H7O6KXWC.js";import"./chunk-DVTW6M5D.js";import"./chunk-HCG5ZJVR.js";import"./chunk-XCQONSNX.js";import"./chunk-UV6IPJC7.js";import"./chunk-YA3NHQLP.js";import"./chunk-2TXSYSOG.js";import"./chunk-6LRFBWK5.js";import"./chunk-AOXYDQHF.js";import"./chunk-VIVDMZA7.js";import"./chunk-4ZGQBV7O.js";import"./chunk-4XN3TEXR.js";import"./chunk-B667WVUK.js";import"./chunk-M6FP4BGM.js";import{Da as c,E as p,La as u,Lb as v,Mb as g,aa as s,ci as S,gb as d,hb as f,ib as l,jb as b,s as a,yc as h}from"./chunk-4SQIIPGX.js";import{i as m}from"./chunk-PVXKA76F.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:"Po\u010Detna web stranica"},reuse:{enabled:!0,key:"home"}}}];export{K as default};/**i18n:c36872b108225e22fdb1f8f6f623d1b8958602fe2a49f49507ac6a06e578d8cc*///# sourceMappingURL=chunk-SN7GTA6Z.js.map