import{a as P,b as w,c as M}from"./chunk-NLMVYS3N.js";import{a as E}from"./chunk-F6KRTB6B.js";import{a as n}from"./chunk-Y2V4AH2W.js";import"./chunk-C3BOFVC6.js";import"./chunk-2QLD4JOE.js";import"./chunk-VKMRJ2FU.js";import{b as O}from"./chunk-QTHU4MF6.js";import"./chunk-HQOODZGX.js";import{d as F,h as C,i as A}from"./chunk-JYDLBK4K.js";import"./chunk-GUZVTDEQ.js";import"./chunk-JIKLIHHQ.js";import"./chunk-62Z53MV5.js";import"./chunk-AGCCWYR2.js";import"./chunk-COYGPBWR.js";import"./chunk-JOL3V4P7.js";import"./chunk-KMKZU2OO.js";import"./chunk-5SUL3RBM.js";import"./chunk-EU7SFU3C.js";import"./chunk-ZAEFTB5H.js";import"./chunk-HNQ65T3Z.js";import"./chunk-PJI4YDTY.js";import"./chunk-MQ2HWEHP.js";import{c as I}from"./chunk-JDO6XDLS.js";import"./chunk-MH4MFR45.js";import"./chunk-5EJWFQRB.js";import"./chunk-DAES6XAH.js";import"./chunk-HY74C762.js";import"./chunk-WPYN5NP7.js";import"./chunk-N2PVJHKU.js";import"./chunk-N6H5PN4U.js";import"./chunk-EGENQJKI.js";import"./chunk-YL4KXGCV.js";import"./chunk-UTZHKMM3.js";import"./chunk-CIB5AJZU.js";import"./chunk-S3QG3QQ2.js";import"./chunk-7LEFMGY2.js";import"./chunk-3QJX743Y.js";import"./chunk-GAE2J7EH.js";import"./chunk-DBI6SHHM.js";import"./chunk-SIHEBH6V.js";import"./chunk-2UGJU7DR.js";import"./chunk-IM5O2N5E.js";import{Bh as y,Ha as m,Kh as k,Lh as V,Q as p,S as u,Sa as S,_h as _,aa as o,eb as v,m as l,nb as b,ob as f,pb as h,wh as T,xb as g}from"./chunk-EWB56PWF.js";import{a as c,b as a,i as d}from"./chunk-2T7OYDCL.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:"Manage",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="sitelen tan lipu pi lukin sina",[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:"kulupu sitelen pi ken pona"},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:"wile lukin"},reuse:{enabled:!0,key:"subscription-videos-list"}}}]}];export{te as default};/**i18n:85d030b7fdd36d163c6d41dcef9178681a6baa573eb199e8b12fe27dbb057a98*///# sourceMappingURL=chunk-CQGZCDWH.js.map