import{a as P,b as w,c as M}from"./chunk-3L5M62EK.js";import{a as E}from"./chunk-IAQ7DFKV.js";import{a as n}from"./chunk-VFLFCLI4.js";import"./chunk-4BCTQ2IX.js";import"./chunk-3JRW664Q.js";import"./chunk-T53DZP32.js";import"./chunk-JWGWGME2.js";import"./chunk-YNP4GX6H.js";import{c as F,g as C,h as A}from"./chunk-HDSALD77.js";import"./chunk-25ABD2WW.js";import"./chunk-S2XS2ZJ7.js";import"./chunk-564SGFOD.js";import"./chunk-IE7P4WOF.js";import"./chunk-74KREGU3.js";import"./chunk-LCZ4KVC7.js";import"./chunk-YUURGYWS.js";import"./chunk-ZPSSIWG7.js";import"./chunk-6TDR3SFN.js";import"./chunk-MXZTQISP.js";import"./chunk-BJET57SK.js";import"./chunk-WZNZVS4C.js";import"./chunk-TBGBDJOR.js";import"./chunk-CM54U4MM.js";import{c as O}from"./chunk-UGC7GL3F.js";import"./chunk-4VO5CTSE.js";import"./chunk-2IRTPWMX.js";import"./chunk-J7GLHAMY.js";import"./chunk-BXPCO2BA.js";import"./chunk-MWLCWUFK.js";import"./chunk-LUYXCMZB.js";import"./chunk-PDO2H6LZ.js";import"./chunk-JLFTZOO3.js";import"./chunk-LGWITFGZ.js";import"./chunk-O3DUHSHY.js";import"./chunk-YK7MMEVX.js";import"./chunk-7MP4A7QJ.js";import"./chunk-F7JK4FWY.js";import"./chunk-NL4OPCIU.js";import"./chunk-WZAWUQR2.js";import"./chunk-JDOQXT4C.js";import"./chunk-C4Z4PZTH.js";import"./chunk-2WREWCTT.js";import{$h as V,Da as S,K as p,La as f,Lh as k,Q as u,Qh as y,S as m,_h as _,aa as o,gb as b,hb as v,ib as h,jb as g,m as l,oi as I,xb as T}from"./chunk-DWEAL4OJ.js";import{a as c,b as a,i as d}from"./chunk-YM6OINSR.js";var R=(()=>{let r=class r{authService=o(k);userSubscription=o(n);hooks=o(I);videoService=o(O);scopedTokensService=o(y);getVideosObservableFunction=this.getVideosObservable.bind(this);getSyndicationItemsFunction=this.getSyndicationItems.bind(this);defaultSort="-publishedAt";actions=[{routerLink:"/my-library/subscriptions",label:"Manage",iconName:"cog"}];disabled=!1;feedToken;getVideosObservable(e,i){let t=a(c({},i.toVideosAPIObject()),{videoPagination:e,skipCount:!0});return this.hooks.wrapObsFun(this.userSubscription.getUserSubscriptionVideos.bind(this.userSubscription),t,"common","filter:api.user-subscriptions-videos.videos.list.params","filter:api.user-subscriptions-videos.videos.list.result");}getSyndicationItems(){return this.loadFeedToken().then(()=>{let e=this.authService.getUser();return this.videoService.getVideoSubscriptionFeedUrls(e.account.id,this.feedToken);});}disableForReuse(){this.disabled=!0;}enabledForReuse(){this.disabled=!1;}loadFeedToken(){if(this.feedToken)return Promise.resolve(this.feedToken);let e=this.authService.userInformationLoaded.pipe(p(),u(()=>this.scopedTokensService.getScopedTokens()),m(i=>this.feedToken=i.feedToken));return l(e);}};d(r,"\u0275fac",function(i){return new(i||r)();}),d(r,"\u0275cmp",f({type:r,selectors:[["my-videos-user-subscriptions"]],decls:3,vars:5,consts:()=>{let e;return e="Vide\xF3k a feliratkoz\xF3it\xF3l",[e,[1,"visually-hidden"],["displayFilters","false","loadUserVideoPreferences","false","groupByDate","true","highlightLives","false",3,"getVideosObservableFunction","getSyndicationItemsFunction","defaultSort","disabled","headerActions"]];},template:function(i,t){i&1&&(v(0,"h1",1),T(1,0),h(),g(2,"my-videos-list",2)),i&2&&(S(2),b("getVideosObservableFunction",t.getVideosObservableFunction)("getSyndicationItemsFunction",t.getSyndicationItemsFunction)("defaultSort",t.defaultSort)("disabled",t.disabled)("headerActions",t.actions));},dependencies:[E],encapsulation:2}));let s=r;return s;})();var te=[{path:"",providers:[P,n,F,A,C],children:[{path:"overview",component:w,data:{meta:{title:"Vide\xF3k felfedez\xE9se"},reuse:{enabled:!0,key:"videos-discover"}}},{path:"most-liked",redirectTo:"browse?scope=federated&sort=-likes"},{path:"trending",redirectTo:()=>"browse?scope=federated&sort=-"+o(_).getDefaultTrendingSort()},{path:"recently-added",redirectTo:"browse?scope=federated&sort=-publishedAt"},{path:"local",redirectTo:"browse?scope=local&sort=-publishedAt"},{path:"browse",component:M,data:{reuse:{enabled:!0,key:"videos-list"}}},{path:"subscriptions",canActivate:[V],component:R,data:{meta:{title:"Feliratkoz\xE1sok"},reuse:{enabled:!0,key:"subscription-videos-list"}}}]}];export{te as default};/**i18n:5a85df092a135682c90bae008e37ec28160e04e5f445e29af2927333ba91ffa1*///# sourceMappingURL=chunk-JJSZBUAN.js.map