import{a as w,b as D,c as R}from"./chunk-YMX7FI23.js";import{a as M}from"./chunk-BMVKHOBJ.js";import{a as d}from"./chunk-IHI2VQRA.js";import"./chunk-W7JKU7IQ.js";import"./chunk-YJE7YBH5.js";import"./chunk-JLXCJZ2W.js";import"./chunk-5XZURNEE.js";import{b as P}from"./chunk-HAY4PBKI.js";import"./chunk-LTDZOISJ.js";import{e as F,f as C,h as A}from"./chunk-E7XFXO57.js";import"./chunk-AFNAKMJA.js";import"./chunk-7CONCRVI.js";import"./chunk-7H2UZR47.js";import"./chunk-RP4ASVUX.js";import"./chunk-7LXX5K33.js";import"./chunk-N4RCAUSC.js";import"./chunk-WM4XNQKO.js";import"./chunk-TE3DC7QT.js";import"./chunk-WIJHDNK2.js";import"./chunk-WOGP3NJL.js";import"./chunk-C5PKOF6D.js";import"./chunk-VB3VBUSM.js";import"./chunk-6VMPDW5I.js";import"./chunk-5A52NIU6.js";import{c as E}from"./chunk-KHRLI7AH.js";import"./chunk-3KEQAXSL.js";import"./chunk-XXHXIVWH.js";import"./chunk-ZV4F4DVO.js";import"./chunk-TERG3RFO.js";import"./chunk-7MB5OJWB.js";import"./chunk-HA72KDYL.js";import"./chunk-ZZALDTOF.js";import"./chunk-UXORNQLR.js";import"./chunk-VD3IIXV7.js";import"./chunk-VW6GNNAO.js";import"./chunk-SQLTBC3J.js";import"./chunk-4L2YKAMY.js";import"./chunk-TYGOBYEQ.js";import"./chunk-RKQVCQGG.js";import"./chunk-4CFVWR6A.js";import"./chunk-6I6EA4VV.js";import"./chunk-XYUXA3LT.js";import"./chunk-K34LZIA3.js";import"./chunk-BUPI2ADN.js";import{$f as y,Ca as S,Da as s,Kb as k,R as p,T as u,Va as f,Xf as I,aa as m,ba as v,cb as b,db as h,eb as g,l,mb as T,mg as V,rg as _,sg as O}from"./chunk-X3RCWQ3R.js";import{a as c,b as a,i as e}from"./chunk-SR6RTMQI.js";var U=(()=>{let r=class r{constructor(i,t,o,L,N){e(this,"authService");e(this,"userSubscription");e(this,"hooks");e(this,"videoService");e(this,"scopedTokensService");e(this,"getVideosObservableFunction",this.getVideosObservable.bind(this));e(this,"getSyndicationItemsFunction",this.getSyndicationItems.bind(this));e(this,"defaultSort","-publishedAt");e(this,"actions",[{routerLink:"/my-library/subscriptions",label:"\u7BA1\u7406",iconName:"cog"}]);e(this,"disabled",!1);e(this,"feedToken");this.authService=i,this.userSubscription=t,this.hooks=o,this.videoService=L,this.scopedTokensService=N;}getVideosObservable(i,t){let o=a(c({},t.toVideosAPIObject()),{videoPagination:i,skipCount:!0});return this.hooks.wrapObsFun(this.userSubscription.getUserSubscriptionVideos.bind(this.userSubscription),o,"common","filter:api.user-subscriptions-videos.videos.list.params","filter:api.user-subscriptions-videos.videos.list.result");}getSyndicationItems(){return this.loadFeedToken().then(()=>{let i=this.authService.getUser();return this.videoService.getVideoSubscriptionFeedUrls(i.account.id,this.feedToken);});}disableForReuse(){this.disabled=!0;}enabledForReuse(){this.disabled=!1;}loadFeedToken(){if(this.feedToken)return Promise.resolve(this.feedToken);let i=this.authService.userInformationLoaded.pipe(p(()=>this.scopedTokensService.getScopedTokens()),u(t=>this.feedToken=t.feedToken));return l(i);}};e(r,"\u0275fac",function(t){return new(t||r)(s(I),s(d),s(V),s(E),s(y));}),e(r,"\u0275cmp",v({type:r,selectors:[["my-videos-user-subscriptions"]],standalone:!0,features:[k],decls:3,vars:5,consts:()=>{let i;return i="\u767B\u9332\u30C1\u30E3\u30F3\u30CD\u30EB\u304B\u3089\u306E\u52D5\u753B",[i,[1,"visually-hidden"],["displayFilters","false","displayModerationBlock","false","loadUserVideoPreferences","false","groupByDate","true","highlightLives","false",3,"getVideosObservableFunction","getSyndicationItemsFunction","defaultSort","disabled","headerActions"]];},template:function(t,o){t&1&&(b(0,"h1",1),T(1,0),h(),g(2,"my-videos-list",2)),t&2&&(S(2),f("getVideosObservableFunction",o.getVideosObservableFunction)("getSyndicationItemsFunction",o.getSyndicationItemsFunction)("defaultSort",o.defaultSort)("disabled",o.disabled)("headerActions",o.actions));},dependencies:[M],encapsulation:2}));let n=r;return n;})();var se=[{path:"",providers:[w,d,P,A,C,F],children:[{path:"overview",component:D,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=-"+m(_).getDefaultTrendingSort()},{path:"recently-added",redirectTo:"browse?scope=federated&sort=-publishedAt"},{path:"local",redirectTo:"browse?scope=local&sort=-publishedAt"},{path:"browse",component:R,data:{reuse:{enabled:!0,key:"videos-list"}}},{path:"subscriptions",canActivate:[O],component:U,data:{meta:{title:"\u767B\u9332\u30C1\u30E3\u30F3\u30CD\u30EB"},reuse:{enabled:!0,key:"subscription-videos-list"}}}]}];export{se as default};/**i18n:3d16453f213eb5db982e7e7dd90631843ac5d3f860726a614777c3e9e3f9b57e*///# sourceMappingURL=chunk-7V7TWLNV.js.map