import{a as P,b as w,c as M}from"./chunk-62WZMDWT.js";import{a as E}from"./chunk-2HWQKTGT.js";import{a as n}from"./chunk-6MQGVCNA.js";import"./chunk-KHDHASYR.js";import"./chunk-STPBQQHG.js";import"./chunk-A664O733.js";import"./chunk-M4Q4AVUW.js";import"./chunk-7Q3H4OPH.js";import{c as F,g as C,h as A}from"./chunk-T22HDLET.js";import"./chunk-KJLRNSCZ.js";import"./chunk-GEUQVPYE.js";import"./chunk-FUFZ726E.js";import"./chunk-77FLT7QI.js";import"./chunk-6WKMXLVZ.js";import"./chunk-ZBMVI5KO.js";import"./chunk-VR5N6IAG.js";import"./chunk-C3J2N54S.js";import"./chunk-TQL5WXHI.js";import"./chunk-4L2XWRQY.js";import"./chunk-WDQ6XLSO.js";import"./chunk-LMEGNV7R.js";import"./chunk-66MRKT24.js";import"./chunk-YAN73USB.js";import{c as O}from"./chunk-JZQULWZP.js";import"./chunk-VSNT7HD7.js";import"./chunk-RC2N7LYX.js";import"./chunk-54VTLZGQ.js";import"./chunk-VF2E66ZC.js";import"./chunk-PWA5YSBS.js";import"./chunk-PQFKPY2P.js";import"./chunk-2KM5QYGI.js";import"./chunk-DQVEC6QH.js";import"./chunk-MI3Y2XTP.js";import"./chunk-CRKNV45X.js";import"./chunk-ULU2WPBM.js";import"./chunk-W656SLW5.js";import"./chunk-POWTF5KQ.js";import"./chunk-ARKMDTQ4.js";import"./chunk-KCS4FZWN.js";import"./chunk-UVFMJH3U.js";import"./chunk-YIKPDULQ.js";import"./chunk-XTZ2Q6VE.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-HJJWL6RD.js";import{a as c,b as a,i as d}from"./chunk-H2BCKOF6.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:"Stj\xF3rna",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="Myndskei\xF0 \xFAr \xE1skriftunum \xFE\xEDnum",[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:"Uppg\xF6tva\xF0u myndskei\xF0"},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:"\xC1skriftir"},reuse:{enabled:!0,key:"subscription-videos-list"}}}]}];export{te as default};/**i18n:671d995daee9c68b73ac729b7ab2c3cf3be32c7f1a24d9dfa94e261c45ee5241*///# sourceMappingURL=chunk-CSZCELZQ.js.map