import{a as P,b as M,c as w}from"./chunk-Z6WHQNJL.js";import{a as E}from"./chunk-OROUDUUE.js";import{a as n}from"./chunk-VAQC4BO7.js";import"./chunk-CXSXNJOP.js";import"./chunk-EV636OOI.js";import{b as O}from"./chunk-NUWMR4WG.js";import"./chunk-IDV44XYE.js";import{d as F,h as C,i as A}from"./chunk-Q6GAMMCY.js";import"./chunk-Y6F77KVK.js";import"./chunk-LUZFQZMA.js";import"./chunk-GHPVWSAE.js";import"./chunk-LQRWBUCY.js";import"./chunk-R5BOMJHB.js";import"./chunk-6MABDINI.js";import"./chunk-YO2OY2PA.js";import"./chunk-UUTN6HYK.js";import"./chunk-4VVPMLSA.js";import"./chunk-C3II6V6E.js";import"./chunk-MAXYKICU.js";import"./chunk-5DHEWFV2.js";import{c as I}from"./chunk-57CV324B.js";import"./chunk-YFCD66ID.js";import"./chunk-VQHCC7LF.js";import"./chunk-VRHN3CUJ.js";import"./chunk-TSYTIONE.js";import"./chunk-WCIX3CTF.js";import"./chunk-DEUNVCPO.js";import"./chunk-5CAH6AZP.js";import"./chunk-6TEKDMAP.js";import"./chunk-2EXI5TT3.js";import"./chunk-XRJCVFLO.js";import"./chunk-SCAMWJUY.js";import"./chunk-6L3RYWWY.js";import"./chunk-UWYOL7XA.js";import"./chunk-HSAHN6YX.js";import"./chunk-2ICBIFEM.js";import"./chunk-744YDU4V.js";import"./chunk-XBJAP6TJ.js";import"./chunk-NZVZXGIX.js";import{Ha as m,Mg as _,S as p,Sa as S,U as u,ba as o,gb as f,gg as T,m as l,mg as y,pb as v,qb as b,rb as h,xg as k,yg as V,zb as g}from"./chunk-3MFSOWAK.js";import{a,b as c,i as d}from"./chunk-ASXIZBWV.js";var R=(()=>{let r=class r{authService=o(T);userSubscription=o(n);hooks=o(_);videoService=o(I);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=c(a({},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(()=>this.scopedTokensService.getScopedTokens()),u(i=>this.feedToken=i.feedToken));return l(e);}};d(r,"\u0275fac",function(i){return new(i||r)();}),d(r,"\u0275cmp",S({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","displayModerationBlock","false","loadUserVideoPreferences","false","groupByDate","true","highlightLives","false",3,"getVideosObservableFunction","getSyndicationItemsFunction","defaultSort","disabled","headerActions"]];},template:function(i,t){i&1&&(v(0,"h1",1),g(1,0),b(),h(2,"my-videos-list",2)),i&2&&(m(2),f("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,O,F,A,C],children:[{path:"overview",component:M,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(k).getDefaultTrendingSort()},{path:"recently-added",redirectTo:"browse?scope=federated&sort=-publishedAt"},{path:"local",redirectTo:"browse?scope=local&sort=-publishedAt"},{path:"browse",component:w,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:a80de7963c3a1ee38e5afb7317b8dafa5dd6a0c8b3d465be96b90b317d6167e1*///# sourceMappingURL=chunk-ITTKBLQO.js.map