import{a as P,b as w,c as M}from"./chunk-UAMWH43K.js";import{a as E}from"./chunk-HA4GIDSV.js";import{a as n}from"./chunk-Y2V7XOSR.js";import"./chunk-L3KIXKQB.js";import"./chunk-VMZHNFKQ.js";import"./chunk-WEYW3BXR.js";import"./chunk-AWUGKGDA.js";import"./chunk-JAH6M4VD.js";import{c as F,g as C,h as A}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"./chunk-XFWKC2OG.js";import"./chunk-Y6ORFLO6.js";import"./chunk-BHHMUZLD.js";import"./chunk-AAY73ATI.js";import"./chunk-56P3EIXN.js";import"./chunk-3BLD3AM4.js";import"./chunk-RXKRQGBY.js";import"./chunk-7BRJDJDO.js";import{c as O}from"./chunk-37EKMVVG.js";import"./chunk-H7O6KXWC.js";import"./chunk-PB5YWXBN.js";import"./chunk-YD5AII3D.js";import"./chunk-DVTW6M5D.js";import"./chunk-HCG5ZJVR.js";import"./chunk-UMZDNNPM.js";import"./chunk-ZDGEXYWW.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{$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-4SQIIPGX.js";import{a as c,b as a,i as d}from"./chunk-PVXKA76F.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:c36872b108225e22fdb1f8f6f623d1b8958602fe2a49f49507ac6a06e578d8cc*///# sourceMappingURL=chunk-BGTAB35N.js.map