1import{c as x,s as w}from"./chunk-C6uGsfWa.js";import{$r as Vc,pn as LM,vr as RD}from"./chunk-BqEHMywo.js";var a=class u extends Vc{displayName;description;support;publicEmail;nameWithHost;nameWithHostForced;banners;bannerUrl;updatedAt;ownerAccount;ownerBy;videosCount;viewsPerDay;viewsGroupInterval;totalViews;static GET_ACTOR_BANNER_URL(t){if(!t||!Array.isArray(t.banners)||t.banners.length===0)return``;let r=LM(t.banners,`width`);return r?r.fileUrl:``}static GET_DEFAULT_AVATAR_URL(t){return t<=48?`${RD()}/client/assets/images/default-avatar-video-channel-48x48.png`:`${RD()}/client/assets/images/default-avatar-video-channel.png`}static buildPublicUrl(t){return`/c/${Vc.CREATE_BY_STRING(t.name,t.host)}`}constructor(t){super(t),this.displayName=t.displayName,this.description=t.description,this.support=t.support,this.publicEmail=t.publicEmail,this.banners=t.banners||[],this.isLocal=t.isLocal,this.nameWithHost=Vc.CREATE_BY_STRING(this.name,this.host),this.nameWithHostForced=Vc.CREATE_BY_STRING(this.name,this.host,!0),this.videosCount=t.videosCount,t.updatedAt&&(this.updatedAt=new Date(t.updatedAt.toString())),t.viewsPerDay&&(this.viewsPerDay=t.viewsPerDay.map(r=>x(w({},r),{date:new Date(r.date)}))),this.viewsGroupInterval=t.viewsGroupInterval,t.totalViews!==null&&t.totalViews!==void 0&&(this.totalViews=t.totalViews),t.ownerAccount&&(this.ownerAccount=t.ownerAccount,this.ownerBy=Vc.CREATE_BY_STRING(t.ownerAccount.name,t.ownerAccount.host)),this.updateComputedAttributes()}updateComputedAttributes(){this.bannerUrl=u.GET_ACTOR_BANNER_URL(this)}};export{a as t}; 2//# debugId=76848f9e-603b-5742-9d37-8223acc26984 3//# sourceMappingURL=chunk-BlgmuV9w.js.map
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.