import{a as P,b as w,c as M}from"./chunk-Q5Y7AFNY.js";import{a as E}from"./chunk-U6TKULRY.js";import{a as n}from"./chunk-QJM2PBTA.js";import"./chunk-PWMLLIG2.js";import"./chunk-EO6GV5EU.js";import"./chunk-WMCOBV4F.js";import"./chunk-4GTRO4FM.js";import"./chunk-NB7P33W6.js";import{c as F,g as C,h as A}from"./chunk-N7KJ32TQ.js";import"./chunk-U3LL2CIA.js";import"./chunk-TL6U2ZZX.js";import"./chunk-HLDKWU5C.js";import"./chunk-CTVQPMXA.js";import"./chunk-CHRM4SHK.js";import"./chunk-6BUG6ZEW.js";import"./chunk-COLWHKRS.js";import"./chunk-AFTBJBGR.js";import"./chunk-T64GT5YO.js";import"./chunk-M3VV57LB.js";import"./chunk-KHEV7K52.js";import"./chunk-WOCMPQQQ.js";import"./chunk-XMLLNCME.js";import"./chunk-LBFQFEKM.js";import{c as O}from"./chunk-S3CDSDDX.js";import"./chunk-VO6JGAHP.js";import"./chunk-IB2LK7TH.js";import"./chunk-353P6O36.js";import"./chunk-GAL6OR7Q.js";import"./chunk-Q6JB2APP.js";import"./chunk-SNPIALXV.js";import"./chunk-2A4YTFYC.js";import"./chunk-J4BAYPJ2.js";import"./chunk-OTSILD44.js";import"./chunk-5XXEC4LL.js";import"./chunk-3ZNDWVB3.js";import"./chunk-NJRIO7OX.js";import"./chunk-7Z6BBMUO.js";import"./chunk-MH6M24BO.js";import"./chunk-EVDXICKF.js";import"./chunk-RIF6CCEH.js";import"./chunk-NXALGPN2.js";import"./chunk-3V3ZIFZ3.js";import{Aa as S,Gh as k,K as p,Ka as f,Lh as y,Q as u,S as m,Vh as _,Wh as V,aa as o,eb as b,fb as v,gb as h,hb as g,ji as I,m as l,vb as T}from"./chunk-AVPM423Z.js";import{a as c,b as a,i as d}from"./chunk-W5TMGCPH.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:"Sefrek",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="Tividyutin seg yimulta\u0263-inek\xB7inem",[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:"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:M,data:{reuse:{enabled:!0,key:"videos-list"}}},{path:"subscriptions",canActivate:[V],component:R,data:{meta:{title:"Ijerriden"},reuse:{enabled:!0,key:"subscription-videos-list"}}}]}];export{te as default};/**i18n:ceac57349051bcddcb40dd2878e0abcb86556d5ceb9d6109d22ac3f1ae3cc7b1*///# sourceMappingURL=chunk-MVJS5YLM.js.map