import{a as P,b as w,c as M}from"./chunk-YPHNGQ23.js";import{a as E}from"./chunk-L7J5LLYM.js";import{a as n}from"./chunk-G2CNG3F4.js";import"./chunk-GIEA4NGH.js";import"./chunk-K4GS4TJ6.js";import"./chunk-QUFWAYWG.js";import"./chunk-ECYL644H.js";import"./chunk-KFREVL45.js";import{c as F,g as C,h as A}from"./chunk-PHQGVETT.js";import"./chunk-HCTFT6FH.js";import"./chunk-OSWYUQHE.js";import"./chunk-6N5A4I2Z.js";import"./chunk-7ZQHT54J.js";import"./chunk-QXM5I4PV.js";import"./chunk-O5SJWMWS.js";import"./chunk-TZE2DWRU.js";import"./chunk-3P33WHXP.js";import"./chunk-EV2EVXTB.js";import"./chunk-FUZPM72Q.js";import"./chunk-45CKDORG.js";import"./chunk-P4PLFLEB.js";import"./chunk-DYYT2L3V.js";import"./chunk-UEQFMU3X.js";import"./chunk-22RGOQFV.js";import{c as O}from"./chunk-7UKHNYRH.js";import"./chunk-T5L6J2ZM.js";import"./chunk-PNMVRDA4.js";import"./chunk-LRW3YSYP.js";import"./chunk-GJGVL733.js";import"./chunk-FGWGY3AE.js";import"./chunk-HARSZ7MP.js";import"./chunk-OTDIKVS7.js";import"./chunk-6VGVSUFA.js";import"./chunk-2NXPS2XG.js";import"./chunk-VB3MJKPC.js";import"./chunk-EENIHTMQ.js";import"./chunk-EAUVMWEM.js";import"./chunk-SV67223J.js";import"./chunk-JFGGJORV.js";import"./chunk-SXLQEGEZ.js";import"./chunk-MQKTIDDS.js";import"./chunk-QRRH3MWX.js";import"./chunk-AQXZMELS.js";import{Da as S,Db as T,L as p,Na as f,Oh as I,R as u,T as m,ba as o,jh as k,mb as b,n as l,nb as v,ob as h,oh as y,pb as g,yh as _,zh as V}from"./chunk-L6W7X4TF.js";import{a as c,b as a,i as d}from"./chunk-WH5WJFMZ.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:ae7e6707fc51a9e1f6f015929aece8afe43a92a094f09f07f0463afe6c89573f*///# sourceMappingURL=chunk-7RHL3DNW.js.map