import{a as P,b as M,c as w}from"./chunk-BJHJDOAF.js";import{a as A}from"./chunk-JVAK6BAP.js";import{a as n}from"./chunk-LTX2KRME.js";import"./chunk-47YZU36P.js";import"./chunk-WLJQLZUX.js";import"./chunk-KTERG6TP.js";import"./chunk-KVI3E6Y3.js";import{b as O}from"./chunk-N2Y56TZM.js";import"./chunk-67Y2S7RB.js";import{c as F,g as C,h as E}from"./chunk-WPFCHFTA.js";import"./chunk-CDK535HR.js";import"./chunk-VBEIQDOL.js";import"./chunk-HN24ADZS.js";import"./chunk-AJBHIOE7.js";import"./chunk-IV6AA7YX.js";import"./chunk-YZTRKGIB.js";import"./chunk-NJCPIWWN.js";import"./chunk-KIEIUWEM.js";import"./chunk-3ALSMRUX.js";import"./chunk-A5IJKVHF.js";import"./chunk-L5FTZIFG.js";import"./chunk-JX35DH5S.js";import"./chunk-Q2EI4JJT.js";import"./chunk-3HTFXORC.js";import{c as I}from"./chunk-LATCUF53.js";import"./chunk-ATASTQN2.js";import"./chunk-FPBW6D2V.js";import"./chunk-7WWUOVSE.js";import"./chunk-UWYLU3BC.js";import"./chunk-Z5MXFWJM.js";import"./chunk-3W54MN4Z.js";import"./chunk-VVCSZGCU.js";import"./chunk-GVFQ57UT.js";import"./chunk-XUXQIVI7.js";import"./chunk-6VKIOZC4.js";import"./chunk-OCU7U6GK.js";import"./chunk-SCKSV2EO.js";import"./chunk-LUTCXJN2.js";import"./chunk-VOIPSSR6.js";import"./chunk-B4U7QWTX.js";import"./chunk-U6UF2ECL.js";import"./chunk-OFG4OGZP.js";import"./chunk-RB6U2MY6.js";import"./chunk-6OQTGYWE.js";import{Cg as _,Dg as k,Ha as m,S as p,Sa as S,U as u,ba as o,eg as T,gb as f,kg as y,m as l,pb as v,qb as b,rb as h,xg as V,zb as g}from"./chunk-ZXQQIUTT.js";import{a,b as c,i as d}from"./chunk-RE7RSUSQ.js";var D=(()=>{let r=class r{authService=o(T);userSubscription=o(n);hooks=o(V);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="Tividyutin seg yimulta\u0263-inek\xB7inem",[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:[A],encapsulation:2}));let s=r;return s;})();var te=[{path:"",providers:[P,n,O,F,E,C],children:[{path:"overview",component:M,data:{meta:{title:"Snirem tividyutin"},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:w,data:{reuse:{enabled:!0,key:"videos-list"}}},{path:"subscriptions",canActivate:[k],component:D,data:{meta:{title:"Ijerriden"},reuse:{enabled:!0,key:"subscription-videos-list"}}}]}];export{te as default};/**i18n:4ea3d52b0fe89d1d8e6fff59c182aeadbd7786f17ffe9a1efa1c7ed627997eaf*///# sourceMappingURL=chunk-BI2MNSEQ.js.map