import{a as P,b as w,c as M}from"./chunk-D3NEDUPT.js";import{a as E}from"./chunk-6CDPL75B.js";import{a as n}from"./chunk-WPSTVJQR.js";import"./chunk-OFLCY3VF.js";import"./chunk-CAUAPTLS.js";import{b as O}from"./chunk-3BVYQMA5.js";import"./chunk-EMMR7BLW.js";import{d as F,h as C,i as A}from"./chunk-DK3AQQPE.js";import"./chunk-KNOHY4JH.js";import"./chunk-BFY7NOOI.js";import"./chunk-3ZHM23VT.js";import"./chunk-FRPROPM5.js";import"./chunk-TQIJOZW4.js";import"./chunk-F2GWZTSR.js";import"./chunk-YW2JC3QY.js";import"./chunk-M4RKIDTM.js";import"./chunk-3MMX7BWE.js";import"./chunk-ZKAVIEXX.js";import"./chunk-T7HKDGYI.js";import"./chunk-GDRCXM3C.js";import{c as I}from"./chunk-EK7PNUS6.js";import"./chunk-LT3D367Q.js";import"./chunk-K6BTOK6K.js";import"./chunk-DLV7WA7S.js";import"./chunk-P6IZY6NM.js";import"./chunk-XP52Z2T6.js";import"./chunk-2XLVWFPJ.js";import"./chunk-AVW5T5UK.js";import"./chunk-HOGUEFQ3.js";import"./chunk-7TITFW23.js";import"./chunk-3ATX5UJH.js";import"./chunk-SZCJAQSZ.js";import"./chunk-FRUNJAEM.js";import"./chunk-NHKGWW2Q.js";import"./chunk-TCKW62LY.js";import"./chunk-QEMOOM5D.js";import"./chunk-V2M57NO3.js";import"./chunk-HYHNBP3O.js";import"./chunk-L4RULAQQ.js";import{Ha as m,Ng as _,S as p,Sa as S,U as u,ba as o,gb as v,ig as T,m as l,og as y,pb as b,qb as f,rb as h,xg as k,yg as V,zb as g}from"./chunk-7W5IJG57.js";import{a as c,b as a,i as d}from"./chunk-RB5FWREQ.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:"\u7BA1\u7406",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="\u767B\u9332\u30C1\u30E3\u30F3\u30CD\u30EB\u304B\u3089\u306E\u52D5\u753B",[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:"\u30C7\u30A3\u30B9\u30AB\u30D0\u30FC"},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:"\u767B\u9332\u30C1\u30E3\u30F3\u30CD\u30EB"},reuse:{enabled:!0,key:"subscription-videos-list"}}}]}];export{te as default};/**i18n:3558f4fa3a6acf6a8a484a0589828971efacd00f9f89386e64ec00a5fc269cc5*///# sourceMappingURL=chunk-B4VRVOQ4.js.map