import{Dt as Hi,Eo as kb,Gr as Va,Ui as al,Uo as m$,Wa as g,Za as gx,ec as th,it as FB,pa as ca,s as $x,vc as wp,vr as She}from"./chunk-B_pj7Jpm.js";import"./chunk-CgIzqGPc.js";import"./chunk-B35GeA_N.js";import"./chunk-qQMrTuzm.js";import"./chunk-CagJEiiY.js";import{t as c}from"./chunk-BA42WJ8S.js";import"./chunk-DFa38la6.js";import"./chunk-Ch-TBCUx.js";import"./chunk-CX0pAEF-.js";import"./chunk-BPHMC4rz.js";import"./chunk-COgN00_S.js";import"./chunk-BmH4cOwr.js";import"./chunk-CR0lnyBO.js";import"./chunk-1IezKpCQ.js";import"./chunk-CEewNwum.js";import"./chunk-D7eF6KoS2.js";import"./chunk-r0Xv-ufY2.js";import"./chunk-CQiHXmZG2.js";import"./chunk-CwzbLzxS2.js";import"./chunk-cztdWiEo2.js";import"./chunk-BHPWLTEh2.js";import"./chunk-DQ-dV2Zg2.js";import"./chunk-TcpfKQW12.js";import{c as ke,n as He,r as Ne}from"./chunk-DwNPdFQU2.js";import"./chunk-Dw_PgttJ2.js";import"./chunk-BD06qecY2.js";import"./chunk-vat4lSzg2.js";import"./chunk-57yjmphe.js";import"./chunk-KfmDNYov.js";import{t as A}from"./chunk-FhARnEsq.js";import{t as p}from"./chunk-DjbsLBsJ.js";import{n as we,t as j}from"./chunk-C7xC8igR.js";import{t as y}from"./chunk-CnHIWBBZ.js";var I=[`contentWrapper`];var X=[{path:``,component:class m{customPageService=g(c);sub;peertubeRouter=g(Hi);disabled=!1;contentWrapper=She(`contentWrapper`);homepageContent;ngOnInit(){this.customPageService.getInstanceHomepage().subscribe(({content:t})=>this.homepageContent=t),window.location.pathname===`/`&&(this.sub=al(window,`scroll`).pipe(ca(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}static ɵfac=function(e){return new(e||m)};static ɵcmp=Va({type:m,selectors:[[`ng-component`]],viewQuery:function(e,i){e&1&&$x(i.contentWrapper,I,5),e&2&&m$()},decls:2,vars:1,consts:[[1,`margin-content`],[3,`content`]],template:function(e,i){e&1&&(wp(0,`div`,0),th(1,`my-custom-markup-container`,1),kb()),e&2&&(FB(),gx(`content`,i.homepageContent))},dependencies:[y],encapsulation:2,changeDetection:1})},providers:[c,p,A,we,j,ke,Ne,He],data:{meta:{title:"Hjemmeside"},reuse:{enabled:!0,key:`home`}}}];export{X as default};
//# debugId=c6014bfd-151c-5eb7-84fb-2c4d41eef762
//# sourceMappingURL=chunk-C17SPn9f.js.map