PageSourceSearch

https://exode.me/client/en-US/chunk-C36RDPSC.js

js exode.me collected 2026-10-04 16:17:21 UTC 30,105 bytes, 1 lines download raw bytes

1import{a as ln}from"./chunk-5E452FZ2.js";import{b as ie}from"./chunk-ZEJP5NXX.js";import{a as sn}from"./chunk-35AIQB7E.js";import{a as an,c as cn}from"./chunk-WQJRIKVQ.js";import"./chunk-7MQ4SBPO.js";import"./chunk-SIUVO6VG.js";import{c as en,h as tn}from"./chunk-O5IYCHZC.js";import"./chunk-LYSJ47UW.js";import"./chunk-ARBLAW36.js";import{a as on}from"./chunk-O4DWGUCX.js";import{a as rn}from"./chunk-AWZKCMCZ.js";import{b as te,f as Ze,g as nn}from"./chunk-QMQZZIR5.js";import"./chunk-XGC7JZAU.js";import"./chunk-MBPSVMMT.js";import"./chunk-AGD5WKED.js";import"./chunk-62ATBB34.js";import"./chunk-PVOHGV2Y.js";import"./chunk-LQVRZI54.js";import"./chunk-O2ZJMO7B.js";import"./chunk-WOBKXJK4.js";import"./chunk-BWH75TCH.js";import"./chunk-SSETSBQT.js";import"./chunk-LNZJJ3KZ.js";import"./chunk-TWKGHEYL.js";import"./chunk-SGZLU3PA.js";import"./chunk-RBCASDJ4.js";import{a as Ye}from"./chunk-C726LWQF.js";import"./chunk-WMEOAIVO.js";import{a as Ke}from"./chunk-EO7FPGTW.js";import"./chunk-GDFO7X2G.js";import"./chunk-I6M5NA5Y.js";import{c as D}from"./chunk-Q6I3NOHV.js";import"./chunk-KIVJRE4O.js";import"./chunk-L7C23KC7.js";import"./chunk-VDA4PBJF.js";import"./chunk-YLZ34D6D.js";import"./chunk-QXVUYXIG.js";import"./chunk-OR7MKCZD.js";import"./chunk-ZME7CHSV.js";import{a as Je}from"./chunk-OTKVWBE5.js";import"./chunk-KEEUBRDB.js";import"./chunk-GGNTEXQL.js";import{a as ee}from"./chunk-KLT2ZASF.js";import{c as V,d as ne}from"./chunk-V3JZPFOE.js";import"./chunk-PG4F5PSG.js";import"./chunk-CIVVPYF3.js";import"./chunk-FZFWY5Y6.js";import"./chunk-EGEBNI4V.js";import{E as $e,c as xe,g as Ve,o as De}from"./chunk-EBOVR5NW.js";import{G as Fe}from"./chunk-UME7L37K.js";import{a as qe}from"./chunk-R76LZEZS.js";import{Ah as Qe,B as Ae,Ca as o,Cb as p,Cc as ue,D as fe,Db as E,Dc as U,Eb as y,Ec as x,Fb as w,Fd as Re,Gb as v,Gd as Le,Gh as K,H as Me,Ib as d,Kd as J,Kh as Y,Ld as Ue,Ma as f,Oh as Z,Q as G,Qb as I,Rb as R,Rg as ze,S as j,Ta as Te,Vc as we,Xb as L,Xd as Ce,Xf as He,Yb as _e,Zb as Q,aa as l,bc as Pe,cc as be,d as ve,dc as Ee,ed as Ie,fa as N,fb as u,ga as A,gb as C,ge as ke,gh as Ge,hh as Xe,i as Ne,ib as se,ih as Be,jb as le,kb as de,lb as c,lc as q,mb as a,n as B,nb as r,ob as _,wc as ye,wh as je,ya as W,yb as b,yh as We}from"./chunk-HVCWS4IF.js";import{a as he,b as Se,i as Oe,j as h,k as X}from"./chunk-KJ7W2O2B.js";var dn=i=>[i];function _n(i,n){i&1&&(a(0,"div",9),p(1,1),r());}function un(i,n){if(i&1&&(a(0,"span",18),p(1,4),r()),i&2){let e=d().$implicit,t=d();o(),E(t.getTotalVideosOf(e))(t.getTotalVideosOf(e)),y(1);}}function Cn(i,n){i&1&&(a(0,"div",24),p(1,5),r());}function pn(i,n){if(i&1&&_(0,"my-video-miniature",25),i&2){let e=n.$implicit,t=d(2);c("video",e)("user",t.userMiniature)("displayVideoActions",!0)("displayOptions",t.miniatureDisplayOptions);}}function mn(i,n){if(i&1&&(a(0,"div",26)(1,"a",27),p(2,6),r()()),i&2){let e=d().$implicit,t=d();o(),c("routerLink",t.getVideoChannelLink(e));}}function gn(i,n){if(i&1&&(a(0,"div",11)(1,"div",12),_(2,"my-actor-avatar",13),a(3,"h2",14)(4,"a",15),L(5),r()(),a(6,"div",16)(7,"div",17),p(8,2),r(),u(9,un,2,2,"span",18),r(),_(10,"div",19),r(),_(11,"my-subscribe-button",20),a(12,"a",21),p(13,3),r(),a(14,"div",22)(15,"div",23),u(16,Cn,2,0,"div",24),le(17,pn,1,4,"my-video-miniature",25,se),u(19,mn,3,1,"div",26),r()()()),i&2){let e=n.$implicit,t=d();o(2),c("actor",e)("internalHref",t.getVideoChannelLink(e)),o(2),c("routerLink",t.getVideoChannelLink(e)),o(),Q(" ",e.displayName," "),o(3),E(e.followersCount)(e.followersCount),y(8),o(),C(t.getTotalVideosOf(e)!==void 0?9:-1),o(),c("innerHTML",t.getChannelDescription(e),W),o(),c("videoChannels",q(12,dn,e)),o(),c("routerLink",t.getVideoChannelLink(e)),o(4),C(t.getTotalVideosOf(e)===0?16:-1),o(),de(t.getVideosOf(e)),o(2),C(t.getTotalVideosOf(e)?19:-1);}}var P=class P{accountService=l(V);videoChannelService=l(ne);videoService=l(D);markdown=l(Y);userService=l(Z);account;videoChannels=[];videos={};channelsDescriptionHTML={};channelPagination={currentPage:1,itemsPerPage:2,totalItems:null};videosPagination={currentPage:1,itemsPerPage:5,totalItems:null};videosSort="-publishedAt";
1onChannelDataSubject=new ve();userMiniature;nsfwPolicy;miniatureDisplayOptions={date:!0,views:!0,by:!1,avatar:!1,privacyLabel:!1};accountSub;ngOnInit(){this.accountSub=this.accountService.accountLoaded.subscribe(n=>{this.account=n,this.videoChannels=[],this.loadMoreChannels();}),this.userService.getAnonymousOrLoggedUser().subscribe(n=>{this.userMiniature=n,this.nsfwPolicy=n.nsfwPolicy;});}ngOnDestroy(){this.accountSub&&this.accountSub.unsubscribe();}loadMoreChannels(){let n={account:this.account,componentPagination:this.channelPagination,sort:"-updatedAt"};this.videoChannelService.listAccountChannels(n).pipe(j(e=>{this.channelPagination.totalItems=e.total;}),G(e=>Ne(e.data)),fe(e=>{let t={videoChannel:e,videoPagination:this.videosPagination,sort:this.videosSort,nsfw:this.videoService.nsfwPolicyToParam(this.nsfwPolicy)};return this.videoService.listChannelVideos(t).pipe(B(s=>({videoChannel:e,videos:s.data,total:s.total})));})).subscribe(m=>X(this,[m],function*({videoChannel:e,videos:t,total:s}){this.channelsDescriptionHTML[e.id]=yield this.markdown.textMarkdownToHTML({markdown:e.description,withEmoji:!0,withHtml:!0}),this.videoChannels.push(e),this.videos[e.id]={videos:t,total:s},this.onChannelDataSubject.next([e]);}));}getVideosOf(n){let e=this.videos[n.id];return e?e.videos:[];}getTotalVideosOf(n){let e=this.videos[n.id];if(e)return e.total;}getChannelDescription(n){return this.channelsDescriptionHTML[n.id];}onNearOfBottom(){Be(this.channelPagination)&&(this.channelPagination.currentPage+=1,this.loadMoreChannels());}getVideoChannelLink(n){return["/c",n.nameWithHost];}};h(P,"\u0275fac",function(e){return new(e||P)();}),h(P,"\u0275cmp",f({type:P,selectors:[["my-account-video-channels"]],decls:7,vars:2,consts:()=>{let n;n="Video channels";let e;e="This account does not have channels.";let t;t="See this video channel";let s;s="See this video channel";let m;m="{VAR_PLURAL, plural, =0 {No subscribers} =1 {1 subscriber} other {{INTERPOLATION} subscribers}}",m=w(m,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let S;S="Show this channel";let M;M="{VAR_PLURAL, plural, =0 {No videos} =1 {1 video} other {{INTERPOLATION} videos}}",M=w(M,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let F;F=" "+M+" ";let T;T="This channel doesn't have any videos.";let z;return z="SHOW THIS CHANNEL >",[n,e,m,S,F,T,z,[1,"visually-hidden"],[1,"margin-content"],[1,"no-results"],["myInfiniteScroller","",1,"channels",3,"nearOfBottom","dataObservable"],[1,"channel"],[1,"channel-avatar-row"],["actorType","channel","title",t,"size","75",3,"actor","internalHref"],[1,"fs-5","lh-1","fw-bold","m-0"],["title",s,1,"text-decoration-none",3,"routerLink"],[1,"actor-counters"],[1,"followers"],[1,"videos-count"],[1,"description-html",3,"innerHTML"],[3,"videoChannels"],[1,"button-show-channel","peertube-button-link","primary-button",3,"routerLink"],[1,"videos-overflow-workaround"],[1,"videos"],[1,"no-results","h-auto"],["thumbnailSizes","201px",3,"video","user","displayVideoActions","displayOptions"],[1,"miniature-show-channel"],[1,"link-primary",3,"routerLink"]];},template:function(e,t){e&1&&(a(0,"h1",7),p(1,0),r(),a(2,"div",8),u(3,_n,2,0,"div",9),a(4,"div",10),v("nearOfBottom",function(){return t.onNearOfBottom();}),le(5,gn,20,14,"div",11,se),r()()),e&2&&(o(3),C(t.channelPagination.totalItems===0?3:-1),o(),c("dataObservable",t.onChannelDataSubject.asObservable()),o(),de(t.videoChannels));},dependencies:[Je,ee,J,ie,tn],styles:['@charset "UTF-8";.margin-content[_ngcontent-%COMP%]{--grid-videos-miniature-margins: var(--x-margin-content);margin-inline-start:var(--grid-videos-miniature-margins)!important;margin-inline-end:var(--grid-videos-miniature-margins)!important}@media screen and (max-width:500px){.margin-content[_ngcontent-%COMP%]{--grid-videos-miniature-margins: 0;width:auto}}.channel[_ngcontent-%COMP%]{max-width:1200px;background-color:var(--bg-secondary-350);display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;column-gap:15px;padding-inline-start:calc(1.3rem + .6vw)}@media(min-width:1200px){.channel[_ngcontent-%COMP%]{padding-inline-start:1.75rem}}
1.channel[_ngcontent-%COMP%]{padding-inline-end:calc(1.3rem + .6vw)}@media(min-width:1200px){.channel[_ngcontent-%COMP%]{padding-inline-end:1.75rem}}.channel[_ngcontent-%COMP%]{padding-top:calc(1.3rem + .6vw)}@media(min-width:1200px){.channel[_ngcontent-%COMP%]{padding-top:1.75rem}}.channel[_ngcontent-%COMP%]{padding-bottom:calc(1.3rem + .6vw)}@media(min-width:1200px){.channel[_ngcontent-%COMP%]{padding-bottom:1.75rem}}.channel[_ngcontent-%COMP%]{margin-inline-start:0;margin-inline-end:0;margin-top:calc(1.325rem + .9vw)}@media(min-width:1200px){.channel[_ngcontent-%COMP%]{margin-top:2rem}}.channel[_ngcontent-%COMP%]{margin-bottom:calc(1.325rem + .9vw)}@media(min-width:1200px){.channel[_ngcontent-%COMP%]{margin-bottom:2rem}}.channel-avatar-row[_ngcontent-%COMP%]{grid-column:1;grid-row:1;display:grid;grid-template-columns:auto auto 1fr;grid-template-rows:auto 1fr}.channel-avatar-row[_ngcontent-%COMP%]   my-actor-avatar[_ngcontent-%COMP%]{grid-column:1;grid-row:1/3;margin-inline-end:.9375rem}.channel-avatar-row[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--fg);word-break:break-word;word-wrap:break-word;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}.channel-avatar-row[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{grid-row:1;grid-column:2}.channel-avatar-row[_ngcontent-%COMP%]   .actor-counters[_ngcontent-%COMP%]{grid-row:1;grid-column:3;margin-inline-start:.9375rem;color:var(--fg-300);display:flex;align-items:center}.channel-avatar-row[_ngcontent-%COMP%]   .actor-counters[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(:last-child):after{content:"\\2022";margin:0 10px;color:var(--primary)}.channel-avatar-row[_ngcontent-%COMP%]   .description-html[_ngcontent-%COMP%]{grid-column:2/4;grid-row:2;max-height:80px;position:relative;overflow:hidden}.channel-avatar-row[_ngcontent-%COMP%]   .description-html[_ngcontent-%COMP%]:after{content:"";pointer-events:none;width:100%;height:100%;position:absolute;left:0;top:0;background:linear-gradient(transparent 50px,var(--bg-secondary-350))}my-subscribe-button[_ngcontent-%COMP%]{grid-row:1;grid-column:2}.videos[_ngcontent-%COMP%]{display:flex;grid-column:1/3;grid-row:2;position:relative}.videos[_ngcontent-%COMP%]   my-video-miniature[_ngcontent-%COMP%]{min-width:201px;max-width:201px;margin-inline-end:.9375rem}.videos-overflow-workaround[_ngcontent-%COMP%]{overflow-x:hidden;margin-top:calc(1.325rem + .9vw)}@media(min-width:1200px){.videos-overflow-workaround[_ngcontent-%COMP%]{margin-top:2rem}}.miniature-show-channel[_ngcontent-%COMP%]{height:100%;position:absolute;right:0;background:linear-gradient(90deg,transparent 0,var(--bg-secondary-350) 45px);padding:47px 15px 0 60px;z-index:11}.button-show-channel[_ngcontent-%COMP%]{display:none}@media screen and (max-width:800px){.channel-avatar-row[_ngcontent-%COMP%]{grid-template-columns:auto auto auto 1fr}.channel-avatar-row[_ngcontent-%COMP%]   .avatar-link[_ngcontent-%COMP%]{grid-row:1/4}.channel-avatar-row[_ngcontent-%COMP%]   .actor-counters[_ngcontent-%COMP%]{margin:0;font-size:13px;grid-row:2;grid-column:2/4}.channel-avatar-row[_ngcontent-%COMP%]   .description-html[_ngcontent-%COMP%]{grid-row:3;font-size:14px}.videos[_ngcontent-%COMP%]{display:none}my-subscribe-button[_ngcontent-%COMP%], .button-show-channel[_ngcontent-%COMP%]{grid-column:1/4;grid-row:3;margin-top:15px}my-subscribe-button[_ngcontent-%COMP%]{justify-self:start}.button-show-channel[_ngcontent-%COMP%]{display:block;justify-self:end}}']})),Oe([He()],P.prototype,"getVideoChannelLink",1);var oe=P;var hn=["videosList"];function Sn(i,n){if(i&1&&_(0,"my-videos-list",3,0),i&2){let e=d();c("getVideosObservableFunction",e.getVideosObservableFunction)("getSyndicationItemsFunction",e.getSyndicationItemsFunction)("defaultSort",e.defaultSort)("displayAsRow",e.displayAsRow())("disabled",e.disabled);}}var $=class ${screenService=l(K);accountService=l(V);videoService=l(D);videosList=x("videosList");getVideosObservableFunction=this.getVideosObservable.bind(this);getSyndicationItemsFunction=this.getSyndicationItems.bind(this);defaultSort="-publishedAt";account;disabled=!1;alreadyLoaded=!1;accountSub;ngOnInit(){this.accountSub=this.accountService.accountLoaded.subscribe(n=>{n.id!==this.account?.id&&(this.account=n,this.alreadyLoaded&&this.videosList().reloadVideos(),this.alreadyLoaded=!0);});}
1ngOnDestroy(){this.accountSub&&this.accountSub.unsubscribe();}getVideosObservable(n,e){return this.videoService.listAccountVideos(Se(he({},e.toVideosAPIObject()),{videoPagination:n,account:this.account,skipCount:!0,includeScheduledLive:!0}));}getSyndicationItems(){return this.videoService.getAccountFeedUrls(this.account.id);}displayAsRow(){return this.screenService.isInMobileView();}disableForReuse(){this.disabled=!0;}enabledForReuse(){this.disabled=!1;}};h($,"\u0275fac",function(e){return new(e||$)();}),h($,"\u0275cmp",f({type:$,selectors:[["my-account-videos"]],viewQuery:function(e,t){e&1&&I(t.videosList,hn,5),e&2&&R();},decls:3,vars:1,consts:()=>{let n;return n="Videos",[["videosList",""],n,[1,"visually-hidden"],["displayFilters","true","hideScopeFilter","true","loadUserVideoPreferences","true","highlightLives","true",3,"getVideosObservableFunction","getSyndicationItemsFunction","defaultSort","displayAsRow","disabled"]];},template:function(e,t){e&1&&(a(0,"h1",2),p(1,1),r(),u(2,Sn,2,5,"my-videos-list",3)),e&2&&(o(2),C(t.account?2:-1));},dependencies:[ln],encapsulation:2}));var re=$;var On=["ref"];function vn(i,n){if(i&1){let e=b();a(0,"button",9),v("click",function(){N(e);let s=d();return A(s.hideInput());}),_(1,"my-global-icon",5),r();}}var k=class k{input=x("ref");initialValue=U("");name=U("search");placeholder=U("Search");iconTitle=U("Search");alwaysShow=U(!0);searchChanged=ue();inputDisplayChanged=ue();lastSearch="";value="";inputShown;ngOnInit(){this.value=this.initialValue(),this.isInputShown()&&this.showInput(!1);}isInputShown(){return this.alwaysShow()?!0:this.inputShown;}
1onIconClick(){if(!this.isInputShown()){this.showInput();return;}this.sendSearch();}showInput(n=!0){this.inputShown=!0,this.inputDisplayChanged.emit(this.inputShown),n&&setTimeout(()=>this.input().nativeElement.focus());}hideInput(){this.inputShown=!1,this.isInputShown()===!1&&this.inputDisplayChanged.emit(this.inputShown);}focusLost(){this.value||this.hideInput();}sendSearch(){this.lastSearch!==this.value&&(this.lastSearch=this.value,this.searchChanged.emit(this.value));}onResetFilter(){this.value="",this.input().nativeElement.focus(),this.sendSearch();}};h(k,"\u0275fac",function(e){return new(e||k)();}),h(k,"\u0275cmp",f({type:k,selectors:[["my-simple-search-input"]],viewQuery:function(e,t){e&1&&I(t.input,On,5),e&2&&R();},inputs:{initialValue:[1,"initialValue"],name:[1,"name"],placeholder:[1,"placeholder"],iconTitle:[1,"iconTitle"],alwaysShow:[1,"alwaysShow"]},outputs:{searchChanged:"searchChanged",inputDisplayChanged:"inputDisplayChanged"},decls:9,vars:6,consts:()=>{let n;n="Clear filter";let e;return e="Close search",[["ref",""],[1,"root"],[1,"input-group","has-clear",3,"hidden"],["type","text",1,"last-in-group",3,"ngModelChange","keyup.enter","ngModel","name","placeholder"],["title",n,1,"border-0","p-0","form-control-clear",3,"click"],["iconName","cross"],[1,"border-0","p-0","search-button",3,"click","title"],["iconName","search"],["title",e,1,"border-0","p-0","close-search-button"],["title",e,1,"border-0","p-0","close-search-button",3,"click"]];},template:function(e,t){if(e&1){let s=b();a(0,"div",1)(1,"div",2)(2,"input",3,0),Ee("ngModelChange",function(S){return N(s),be(t.value,S)||(t.value=S),A(S);}),v("keyup.enter",function(){return t.sendSearch();}),r(),a(4,"button",4),v("click",function(){return t.onResetFilter();}),_(5,"my-global-icon",5),r()(),a(6,"button",6),v("click",function(){return t.onIconClick();}),_(7,"my-global-icon",7),r(),u(8,vn,2,0,"button",8),r();}e&2&&(o(),c("hidden",!t.inputShown),o(),Pe("ngModel",t.value),c("name",t.name())("placeholder",t.placeholder()),o(4),c("title",t.iconTitle()),o(2),C(!t.alwaysShow()&&t.inputShown?8:-1));},dependencies:[$e,xe,Ve,De,qe],styles:[".root[_ngcontent-%COMP%]{display:flex}.search-button[_ngcontent-%COMP%], .close-search-button[_ngcontent-%COMP%]{margin-inline-start:.625rem}.search-button[_ngcontent-%COMP%]   my-global-icon[_ngcontent-%COMP%], .close-search-button[_ngcontent-%COMP%]   my-global-icon[_ngcontent-%COMP%]{height:28px;width:28px;color:var(--fg-400)}.search-button[_ngcontent-%COMP%]   my-global-icon[_ngcontent-%COMP%]:hover, .close-search-button[_ngcontent-%COMP%]   my-global-icon[_ngcontent-%COMP%]:hover{color:var(--fg-300)}input[_ngcontent-%COMP%]{font-size:16px;padding:var(--input-y-padding) var(--input-x-padding);width:200px;max-width:200px;color:var(--input-fg);background-color:var(--input-bg);border:var(--input-border-width) solid var(--input-border-color);border-radius:var(--input-border-radius);line-height:24px}input[_ngcontent-%COMP%]::placeholder{color:var(--input-placeholder-color);font-size:var(--input-placeholder-font-size)}input[readonly][_ngcontent-%COMP%]{color:var(--fg-300)}input[_ngcontent-%COMP%]:focus, input[_ngcontent-%COMP%]:focus-visible{box-shadow:0 0 0 .2rem var(--fg-100);outline:0}input[disabled][_ngcontent-%COMP%]{color:var(--fg-300);opacity:.8}@media screen and (max-width:240px){input[_ngcontent-%COMP%]{width:100%}}input[_ngcontent-%COMP%]:focus{box-shadow:0 0 5px #a5a5a5}.form-control-clear[_ngcontent-%COMP%]   my-global-icon[_ngcontent-%COMP%]{display:inline-block;width:20px;height:20px;line-height:20px}"]}));var ae=k;var Nn=["accountReportModal"],An=i=>({expanded:i});function fn(i,n){if(i&1&&(a(0,"span",16),p(1,4),r()),i&2){let e=d(2);c("ngbTooltip",e.accountUser.blockedReason);}}function Mn(i,n){if(i&1&&(a(0,"span",21),p(1,5),r()),i&2){let e=d(2);o(),E(e.accountVideosCount)(e.accountVideosCount),y(1);}}function Tn(i,n){if(i&1){let e=b();a(0,"button",31),v("click",function(){N(e);let s=d(2);return A(s.accountDescriptionExpanded=!s.accountDescriptionExpanded);}),p(1,6),r();}}function Pn(i,n){i&1&&(a(0,"a",26),p(1,7),r());}function bn(i,n){if(i&1&&_(0,"my-subscribe-button",27),i&2){let e=d(2);c("account",e.account)("videoChannels",e.videoChannels);}}
1function En(i,n){if(i&1&&(a(0,"a",32),L(1),r()),i&2){let e=n.item;c("routerLink",e.routerLink),o(),_e(e.label);}}function yn(i,n){if(i&1){let e=b();a(0,"div",8)(1,"div",9)(2,"div",10),_(3,"my-actor-avatar",11),a(4,"div")(5,"div",12),p(6,2),r(),a(7,"div",13)(8,"div")(9,"div",14)(10,"h1"),L(11),r(),a(12,"my-user-moderation-dropdown",15),v("userChanged",function(){N(e);let s=d();return A(s.onUserChanged());})("userDeleted",function(){N(e);let s=d();return A(s.onUserDeleted());}),r(),u(13,fn,2,1,"span",16),_(14,"my-account-block-badges",17),r(),a(15,"div",18)(16,"span"),L(17),r(),_(18,"my-copy-button",19),r(),a(19,"div",20)(20,"span"),p(21,3),r(),u(22,Mn,2,2,"span",21),r()()()()(),a(23,"div",22),_(24,"div",23),r(),u(25,Tn,2,0,"button",24),a(26,"div",25),u(27,Pn,2,0,"a",26),u(28,bn,1,2,"my-subscribe-button",27),r()(),a(29,"div",28),Te(30,En,2,2,"ng-template",null,0,ye),_(32,"my-horizontal-menu",29),a(33,"my-simple-search-input",30),v("searchChanged",function(s){N(e);let m=d();return A(m.searchChanged(s));})("inputDisplayChanged",function(s){N(e);let m=d();return A(m.onSearchInputDisplayChanged(s));}),r()(),_(34,"router-outlet"),r();}if(i&2){let e=d();o(3),c("size",e.getAccountAvatarSize())("actor",e.account),o(8),_e(e.account.displayName),o(),c("prependActions",e.prependModerationActions)("account",e.account)("user",e.accountUser),o(),C(e.accountUser!=null&&e.accountUser.blocked?13:-1),o(),c("account",e.account),o(3),Q("@",e.account.nameWithHost),o(),c("value",e.account.nameWithHostForced),o(3),E(e.naiveAggregatedSubscribers())(e.naiveAggregatedSubscribers()),y(21),o(),C(e.accountVideosCount!==void 0?22:-1),o(),c("ngClass",q(22,An,e.accountDescriptionExpanded)),o(),c("innerHTML",e.accountDescriptionHTML,W),o(),C(e.hasShowMoreDescription()?25:-1),o(2),C(e.isManageable()?27:-1),o(),C(e.hasVideoChannels()&&!e.isManageable()?28:-1),o(4),c("hidden",e.hideMenu)("menuEntries",e.links),o(),c("initialValue",e.search)("alwaysShow",!e.isInSmallView());}}function wn(i,n){i&1&&_(0,"my-account-report",null,1);}var H=class H{route=l(Re);userService=l(Z);accountService=l(V);videoChannelService=l(ne);
1notifier=l(ze);restExtractor=l(Ge);redirectService=l(je);authService=l(Xe);videoService=l(D);markdown=l(Y);blocklist=l(te);screenService=l(K);metaService=l(We);peertubeRouter=l(Qe);accountReportModal=x("accountReportModal");account;accountUser;search="";videoChannels=[];links=[];hideMenu=!1;accountVideosCount;accountDescriptionHTML="";accountDescriptionExpanded=!1;prependModerationActions=[];routeSub;ngOnInit(){this.routeSub=this.route.params.pipe(B(n=>n.accountId),Me(),G(n=>this.accountService.getAccount(n)),j(n=>this.onAccount(n)),G(n=>this.videoChannelService.listAccountChannels({account:n})),Ae(n=>this.restExtractor.redirectTo404IfNotFound(n,"other",[Ce.BAD_REQUEST_400,Ce.NOT_FOUND_404]))).subscribe({next:n=>{this.videoChannels=n.data;},error:n=>this.notifier.handleError(n)}),this.links=[{label:"Channels",routerLink:"video-channels"},{label:"Videos",routerLink:"videos"}],this.search=this.route.snapshot.queryParams.search||"";}ngOnDestroy(){this.routeSub&&this.routeSub.unsubscribe();}naiveAggregatedSubscribers(){return this.videoChannels.reduce((n,e)=>n+e.followersCount,this.account.followersCount);}isUserLoggedIn(){return this.authService.isLoggedIn();}isInSmallView(){return this.screenService.isInSmallView();}getAccountAvatarSize(){return this.isInSmallView()?80:120;}isManageable(){return this.isUserLoggedIn()?this.account?.userId===this.authService.getUser().id:!1;}onUserChanged(){this.loadUserIfNeeded(this.account);}onUserDeleted(){this.redirectService.redirectToHomepage();}searchChanged(n){let e={search:n};this.peertubeRouter.silentNavigate(["./videos"],e,this.route);}onSearchInputDisplayChanged(n){this.hideMenu=this.isInSmallView()&&n;}hasVideoChannels(){return this.videoChannels.length!==0;}hasShowMoreDescription(){return!this.accountDescriptionExpanded&&this.accountDescriptionHTML.length>100;}isOnChannelPage(){return this.route.children[0].snapshot.url[0].path==="video-channels";}onAccount(n){return X(this,null,function*(){this.metaService.setTitle(n.displayName),this.accountDescriptionHTML=yield this.markdown.textMarkdownToHTML({markdown:n.description,withEmoji:!0,withHtml:!0}),this.account=n,this.updateModerationActions(),this.loadUserIfNeeded(n),this.loadAccountVideosCount(),this.loadAccountBlockStatus();});}showReportModal(){this.accountReportModal().show(this.account);}loadUserIfNeeded(n){if(!n.userId||!this.authService.isLoggedIn())return;this.authService.getUser().hasRight(ke.MANAGE_USERS)&&this.userService.getUser(n.userId).subscribe({next:t=>{this.accountUser=t;},error:t=>this.notifier.handleError(t)});}updateModerationActions(){this.prependModerationActions=[],this.authService.isLoggedIn()&&(this.isManageable()||(this.prependModerationActions=[{label:"Report",isHeader:!0},{label:"Report this account",handler:()=>this.showReportModal()}]));}loadAccountVideosCount(){this.videoService.listAccountVideos({account:this.account,videoPagination:{currentPage:1,itemsPerPage:0},sort:"-publishedAt"}).subscribe(n=>{this.accountVideosCount=n.total;});}loadAccountBlockStatus(){this.blocklist.getStatus({accounts:[this.account.nameWithHostForced],hosts:[this.account.host]}).subscribe(n=>this.account.updateBlockStatus(n));}};h(H,"\u0275fac",function(e){return new(e||H)();}),h(H,"\u0275cmp",f({type:H,selectors:[["ng-component"]],viewQuery:function(e,t){e&1&&I(t.accountReportModal,Nn,5),e&2&&R();},decls:2,vars:2,consts:()=>{let n;n="Username copied";let e;e="Copy account handle";let t;t="Show the complete description";let s;s="Search account videos";let m;m="ACCOUNT";let S;S="{VAR_PLURAL, plural, =0 {No subscribers} =1 {1 subscriber} other {{INTERPOLATION} subscribers }}",S=w(S,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let M;M=" "+S+" ";let F;F="Banned";let T;T="{VAR_PLURAL, plural, =0 {No videos} =1 {1 video} other {{INTERPOLATION} videos }}",T=w(T,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let z;z=" "+T+" ";let g;g=" Show more... ";let ge;return ge="Manage account",[["linkTemplate",""],["accountReportModal",""],m,M,F,z,g,ge,[1,"root"],[1,"margin-content","account-info","d-md-grid","d-block"],[1,"account-avatar-row"],["actorType","account",3,"size","actor"],[1,"section-label"],[1,"actor-info"],[1,"actor-display-name","align-items-center"],["buttonSize","small","placement","bottom-left auto",1,"mx-3",3,"userChanged","userDeleted","prepe
1ndActions","account","user"],["tabindex","0",1,"pt-badge","badge-danger",3,"ngbTooltip"],[3,"account"],[1,"actor-handle"],["notification",n,"title",e,3,"value"],[1,"actor-counters"],[1,"videos-count"],[1,"description",3,"ngClass"],[1,"description-html",3,"innerHTML"],["title",t,1,"show-more","peertube-button-like-link","d-md-none","d-block"],[1,"buttons"],["routerLink","/my-account",1,"peertube-button-link","primary-button"],[3,"account","videoChannels"],[1,"margin-content","horizontal-menu","mb-3"],[3,"hidden","menuEntries"],["name","search-videos","icon-title","Search account videos","placeholder",s,1,"ms-auto",3,"searchChanged","inputDisplayChanged","initialValue","alwaysShow"],["title",t,1,"show-more","peertube-button-like-link","d-md-none","d-block",3,"click"],["routerLinkActive","active",1,"sub-menu-entry",3,"routerLink"]];},template:function(e,t){e&1&&(u(0,yn,35,24,"div",8),u(1,wn,2,0,"my-account-report")),e&2&&(C(t.account?0:-1),o(),C(t.prependModerationActions?1:-1));},dependencies:[Ie,we,ee,cn,Fe,on,Ke,J,ie,Ue,Ye,ae,Le,en],styles:['@charset "UTF-8";.root[_ngcontent-%COMP%]{--co-font-size: 1rem;--co-secondary-font-size: 1rem}my-horizontal-menu[_ngcontent-%COMP%]{flex-grow:1;margin-inline-end:calc(1.425rem + 2.1vw)}@media(min-width:1200px){my-horizontal-menu[_ngcontent-%COMP%]{margin-inline-end:3rem}}.horizontal-menu[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap}my-copy-button[_ngcontent-%COMP%]{margin-inline-start:.1875rem}.account-info[_ngcontent-%COMP%]{grid-template-columns:1fr min-content;grid-template-rows:auto auto;margin-bottom:calc(1.425rem + 2.1vw)}@media(min-width:1200px){.account-info[_ngcontent-%COMP%]{margin-bottom:3rem}}.account-info[_ngcontent-%COMP%]{font-size:1rem}.account-avatar-row[_ngcontent-%COMP%]{display:flex;grid-column:1;margin-bottom:calc(1.325rem + .9vw)}@media(min-width:1200px){.account-avatar-row[_ngcontent-%COMP%]{margin-bottom:2rem}}.account-avatar-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{min-width:1px;margin-inline-start:calc(1.325rem + .9vw)}@media(min-width:1200px){.account-avatar-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-inline-start:2rem}}.account-avatar-row[_ngcontent-%COMP%]   .actor-info[_ngcontent-%COMP%]{display:flex}.account-avatar-row[_ngcontent-%COMP%]   .actor-info[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{flex-grow:1;min-width:1px}.account-avatar-row[_ngcontent-%COMP%]   .actor-display-name[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;word-break:break-word;word-wrap:break-word;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}.account-avatar-row[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-weight:700;margin:0;font-size:calc(1.325rem + .9vw)}@media(min-width:1200px){.account-avatar-row[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:2rem}}.account-avatar-row[_ngcontent-%COMP%]   .actor-handle[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-avatar-row[_ngcontent-%COMP%]   .actor-handle[_ngcontent-%COMP%], .account-avatar-row[_ngcontent-%COMP%]   .actor-counters[_ngcontent-%COMP%]{color:var(--fg-300);font-size:var(--co-secondary-font-size)}.account-avatar-row[_ngcontent-%COMP%]   .actor-counters[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(:last-child):after{content:"\\2022";margin:0 10px;color:var(--primary)}.actor-display-name[_ngcontent-%COMP%]{align-items:center}.description[_ngcontent-%COMP%]{grid-column:1/3;max-width:1000px;word-break:break-word}.show-more[_ngcontent-%COMP%]{text-align:center;margin-inline-start:auto;margin-inline-end:auto;margin-top:.625rem;margin-bottom:calc(1.40625rem + 1.875vw)}@media(min-width:1200px){.show-more[_ngcontent-%COMP%]{margin-bottom:2.8125rem}}.show-more[_ngcontent-%COMP%]{padding-bottom:calc(1.5rem + 3vw)}@media(min-width:1200px){.show-more[_ngcontent-%COMP%]{padding-bottom:3.75rem}}.buttons[_ngcontent-%COMP%]{grid-column:2;grid-row:1;display:flex;flex-wrap:wrap;justify-content:flex-end;align-content:flex-start}.buttons[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(:last-child){margin-bottom:1rem}.buttons[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{white-space:nowrap}.pt-badge[_ngcontent-%COMP%]{margin-inline-end:.3125rem}@media screen and (max-width:800px){.description[_ngcontent-%COMP%]:not(.expanded){max-height:70px;position:relative;overflow:hidden}.description[_ngcontent-%COMP%]:not(.expanded):after{content:"";pointer-events:none;width:100%;height:100%;position:absolute;
1left:0;top:0;background:linear-gradient(transparent 30px,var(--bg))}.buttons[_ngcontent-%COMP%]{justify-content:center}}@media screen and (max-width:500px){.root[_ngcontent-%COMP%]{--co-font-size: 14px;--co-secondary-font-size: 13px}.links[_ngcontent-%COMP%]{margin:auto!important;width:min-content}}']}));var ce=H;var ti=[{path:"peertube",redirectTo:"/videos/browse?scope=local"},{path:":accountId",component:ce,providers:[sn,te,nn,Ze,an,rn],children:[{path:"",redirectTo:"video-channels",pathMatch:"full"},{path:"video-channels",component:oe},{path:"videos",component:re,data:{reuse:{enabled:!0,key:"account-videos-list"}}},{path:"search",redirectTo:"videos"}]}];export{ti as default};/**i18n:347eeb695970c32bc275618edc2e751c67145d9fc3012e70543c114a99b9e016*/

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.