import{a as P,b as w,c as M}from"./chunk-DW75PAM2.js";import{a as E}from"./chunk-ZYGTSNJU.js";import{a as n}from"./chunk-MO4UQWUT.js";import"./chunk-4IZPLX3W.js";import"./chunk-TNY4YJIJ.js";import"./chunk-MBPQSUPX.js";import"./chunk-STKO4QAE.js";import"./chunk-Z36LWPVO.js";import{c as F,g as C,h as A}from"./chunk-KYOM5SMX.js";import"./chunk-HTOANEUS.js";import"./chunk-ZHTTK5CI.js";import"./chunk-P2QKOLPI.js";import"./chunk-2H5Q7SHY.js";import"./chunk-56E7HJRD.js";import"./chunk-SSKMMBHJ.js";import"./chunk-SULKYUMG.js";import"./chunk-EH23Q56S.js";import"./chunk-TDUW2OVZ.js";import"./chunk-RMBX62SS.js";import"./chunk-VPM5GLD7.js";import"./chunk-IQJGTLJS.js";import"./chunk-KFHBVBPY.js";import"./chunk-LKXNPRL2.js";import"./chunk-NZGA74NV.js";import{c as O}from"./chunk-5NI77QMM.js";import"./chunk-AEY4IYSS.js";import"./chunk-YAB4XGIF.js";import"./chunk-3WAQSKYH.js";import"./chunk-SBZQHZI5.js";import"./chunk-HTQDXPBO.js";import"./chunk-WO7G3OWE.js";import"./chunk-XYFON6WE.js";import"./chunk-LWCNLX24.js";import"./chunk-F257PJOU.js";import"./chunk-LYBUFCRR.js";import"./chunk-D2IXLWV3.js";import"./chunk-NUCSST5L.js";import"./chunk-ZYWXQJ5J.js";import"./chunk-PH6IGF5W.js";import"./chunk-UWSHPMXV.js";import"./chunk-GNVITTGR.js";import"./chunk-KXBVYXHU.js";import{Aa as S,Fh as k,K as p,Ka as f,Kh as y,Q as u,S as m,Th as _,Uh as V,aa as o,eb as b,fb as v,gb as h,hb as g,hi as I,m as l,vb as T}from"./chunk-THW6YIIG.js";import{a as c,b as a,i as d}from"./chunk-PTJGHD3V.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="\u0392\u03AF\u03BD\u03C4\u03B5\u03BF \u03B1\u03C0\u03CC \u03C4\u03B9\u03C2 \u03C3\u03C5\u03BD\u03B4\u03C1\u03BF\u03BC\u03AD\u03C2 \u03C3\u03B1\u03C2",[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:"\u0391\u03BD\u03B1\u03BA\u03B1\u03BB\u03CD\u03C8\u03C4\u03B5 \u03B2\u03AF\u03BD\u03C4\u03B5\u03BF"},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:"\u03A3\u03C5\u03BD\u03B4\u03C1\u03BF\u03BC\u03AD\u03C2"},reuse:{enabled:!0,key:"subscription-videos-list"}}}]}];export{te as default};/**i18n:90f1dd82a779b57eddc91ef20913c88eecaa9632bba8ac04ad50f47ae2b82df7*///# sourceMappingURL=chunk-KOCS3PRD.js.map