import{a as P,b as w,c as M}from"./chunk-OSHQCGKW.js";import{a as E}from"./chunk-FTFOIO3Z.js";import{a as n}from"./chunk-OY355PSA.js";import"./chunk-JKYXXN3E.js";import"./chunk-IWECGQU5.js";import"./chunk-HZ453ZVJ.js";import"./chunk-XQBVGY3V.js";import"./chunk-JJPPPEYO.js";import{c as F,g as C,h as A}from"./chunk-A4YKVZAR.js";import"./chunk-QZHZMTI7.js";import"./chunk-3LNMQRGW.js";import"./chunk-P2QKOLPI.js";import"./chunk-IRUXEMDP.js";import"./chunk-PRXPZT23.js";import"./chunk-FGPZMVCY.js";import"./chunk-YVZKTMAK.js";import"./chunk-MZR3TLRM.js";import"./chunk-OO6NHHRQ.js";import"./chunk-HEURBKHC.js";import"./chunk-4OBCC667.js";import"./chunk-ITIRGW6U.js";import"./chunk-AMPQ2QW6.js";import"./chunk-72GOCXWJ.js";import"./chunk-OTMFBZXA.js";import{c as O}from"./chunk-JITMAVP4.js";import"./chunk-CWZHKLYO.js";import"./chunk-NNGPXXI4.js";import"./chunk-3WAQSKYH.js";import"./chunk-QXEYT4D7.js";import"./chunk-BIFSHE2D.js";import"./chunk-ILUO2ELP.js";import"./chunk-QKVQCZOX.js";import"./chunk-QCA54E2P.js";import"./chunk-2LKEY4S7.js";import"./chunk-WPBWOUWA.js";import"./chunk-KHHQCOMB.js";import"./chunk-OJS2US3R.js";import"./chunk-J4ZKCWKK.js";import"./chunk-M47TE5K7.js";import"./chunk-IX3C5NWZ.js";import"./chunk-KLWYGBZ6.js";import"./chunk-NQFIF6FB.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-W6R7I2TH.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:"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:90f1dd82a779b57eddc91ef20913c88eecaa9632bba8ac04ad50f47ae2b82df7*///# sourceMappingURL=chunk-VUFEB5TJ.js.map