import{a as P,b as w,c as M}from"./chunk-ZSJFKERG.js";import{a as E}from"./chunk-UVI4F2YB.js";import{a as n}from"./chunk-WUPLY2W7.js";import"./chunk-WVAIZR2Y.js";import"./chunk-PNIW5YF2.js";import{b as O}from"./chunk-37RB6Z6A.js";import"./chunk-5OF7XFGH.js";import{d as F,h as C,i as A}from"./chunk-PMZD32HH.js";import"./chunk-EADTX6YQ.js";import"./chunk-J2XE3AIY.js";import"./chunk-YXMAJXC2.js";import"./chunk-7VPHPEYF.js";import"./chunk-YXGWEYOS.js";import"./chunk-U5I52O2A.js";import"./chunk-OIWB26TT.js";import"./chunk-OMGOAKOV.js";import"./chunk-HZSBYVT7.js";import"./chunk-TT5DGFWP.js";import{c as I}from"./chunk-QQS3O2A6.js";import"./chunk-OKEZY6F6.js";import"./chunk-LLCJTE6I.js";import"./chunk-L3JRXZHK.js";import"./chunk-FYVHH3YK.js";import"./chunk-ABNBNSUU.js";import"./chunk-BEGTVY6X.js";import"./chunk-N4XHT5GQ.js";import"./chunk-VPBM64EO.js";import"./chunk-SUJ6GANO.js";import"./chunk-EB3EO7XT.js";import"./chunk-GGIGI3OP.js";import"./chunk-XMNTKCWN.js";import"./chunk-K3PQPLRO.js";import"./chunk-PBAFEBNV.js";import"./chunk-PLOPVPVA.js";import"./chunk-E3FPDMTA.js";import"./chunk-SMO6IFQB.js";import"./chunk-CDN4D7Q7.js";import"./chunk-AHN4RUKR.js";import"./chunk-F4OQWEEK.js";import"./chunk-LN3G546W.js";import"./chunk-MJIAB7QL.js";import"./chunk-QBAPWXTV.js";import{Fh as k,Ga as m,Gh as V,Q as p,Ra as S,S as u,Vh as _,aa as o,db as v,m as l,mb as b,nb as f,ob as h,rh as T,wb as g,wh as y}from"./chunk-2GYONVCW.js";import{a as c,b as a,i as d}from"./chunk-6PUAHDUH.js";var R=(()=>{let r=class r{authService=o(T);userSubscription=o(n);hooks=o(_);videoService=o(I);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(()=>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="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&&(b(0,"h1",1),g(1,0),f(),h(2,"my-videos-list",2)),i&2&&(m(2),v("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,O,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(k).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:7c691147a9ded88b46d9cd2285c6afa220006ce26eb0d02eb4522192723b6cd8*///# sourceMappingURL=chunk-KG3G7P64.js.map