PageSourceSearch

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

js exode.me collected 2026-10-04 16:17:50 UTC 5,750 bytes, 2 lines download raw bytes

1import{a as h}from"./chunk-KEEUBRDB.js";import{a as L}from"./chunk-V3JZPFOE.js";import{Af as _,B as o,Ih as v,Og as A,S as N,Y as O,aa as a,fe as e,ge as p,gh as R,hh as C,je as T,ke as f,ld as c,lh as g,md as b,n as I,pd as S,zf as U}from"./chunk-HVCWS4IF.js";import{j as l}from"./chunk-KJ7W2O2B.js";var d=class{payload;url;queryParams={};externalUrl;videoImportIdentifier;followingHandle;followerHandle;constructor(t,s){this.payload=t;try{switch(t.type){case e.NEW_VIDEO_FROM_SUBSCRIPTION:case e.NEW_LIVE_FROM_SUBSCRIPTION:this.url=this.buildVideoUrl(t.video);break;case e.BLACKLIST_ON_MY_VIDEO:this.url=this.buildVideoUrl(t.videoBlacklist.video);break;case e.UNBLACKLIST_ON_MY_VIDEO:this.url=this.buildVideoUrl(t.video);break;case e.NEW_COMMENT_ON_MY_VIDEO:case e.COMMENT_MENTION:if(!t.comment)break;t.comment.heldForReview?(this.url="/my-account/videos/comments",this.queryParams.isHeldForReview="true"):this.url=this.buildCommentUrl(t.comment);break;case e.NEW_ABUSE_FOR_MODERATORS:this.url="/admin/moderation/abuses/list",this.queryParams.id=t.abuse.id+"";break;case e.ABUSE_STATE_CHANGE:this.url="/my-account/abuses",this.queryParams.id=t.abuse.id+"";break;case e.ABUSE_NEW_MESSAGE:this.url=s.hasRight(p.MANAGE_ABUSES)?"/admin/moderation/abuses/list":"/my-account/abuses",this.queryParams.id=t.abuse.id+"";break;case e.VIDEO_AUTO_BLACKLIST_FOR_MODERATORS:this.payload.videoBlacklist||(this.payload.videoBlacklist={id:null,video:t.video}),this.url="/admin/moderation/video-auto-blacklist/list";break;case e.MY_VIDEO_PUBLISHED:this.url=this.buildVideoUrl(t.video);break;case e.MY_VIDEO_IMPORT_SUCCESS:this.videoImportIdentifier=this.buildVideoImportIdentifier(t.videoImport),this.url=t.video?this.buildVideoUrl(t.video):this.buildVideoImportUrl();break;case e.MY_VIDEO_IMPORT_ERROR:this.videoImportIdentifier=this.buildVideoImportIdentifier(t.videoImport),this.url=this.buildVideoImportUrl();break;case e.NEW_USER_REGISTRATION:this.url=this.buildAccountUrl(t.account);break;case e.NEW_USER_REGISTRATION_REQUEST:this.url="/admin/moderation/registrations/list";break;case e.NEW_FOLLOW:this.url=this.buildAccountUrl(t.actorFollow.follower);break;case e.NEW_INSTANCE_FOLLOWER:{let i=t.actorFollow.follower;this.followerHandle=i.name==="peertube"?i.host:`${i.name} @ ${i.host}`,this.url="/admin/settings/follows/followers-list";break}case e.AUTO_INSTANCE_FOLLOWING:{let i=t.actorFollow.following;this.followingHandle=i.name==="peertube"?i.host:`${i.name} @ ${i.host}`,this.url="/admin/settings/follows/following-list";break}case e.NEW_PEERTUBE_VERSION:this.externalUrl="https://joinpeertube.org/news";break;case e.NEW_PLUGIN_VERSION:this.url="/admin/settings/plugins/list-installed",this.queryParams.pluginType=t.plugin.type+"";break;case e.MY_VIDEO_TRANSCRIPTION_GENERATED:this.url=this.buildVideoUrl(t.videoCaption.video);break;case e.MY_VIDEO_STUDIO_EDITION_FINISHED:this.url=this.buildVideoUrl(t.video);break;case e.INVITED_TO_COLLABORATE_TO_CHANNEL:t.videoChannelCollaborator.state.id===f.ACCEPTED&&(this.url=this.buildChannelUrl(t.videoChannelCollaborator.channel));break;case e.ACCEPTED_TO_COLLABORATE_TO_CHANNEL:case e.REFUSED_TO_COLLABORATE_TO_CHANNEL:this.url=this.buildChannelUrl(t.videoChannelCollaborator.channel);break;case e.VIDEO_OWNERSHIP_CHANGED_REQUEST:case e.VIDEO_OWNERSHIP_CHANGED_ACCEPTED:case e.VIDEO_OWNERSHIP_CHANGED_REJECTED:this.url="/my-library/ownership";break;case e.CHANNEL_OWNERSHIP_CHANGED_REQUEST:t.changeOwnership.state.id===T.ACCEPTED&&(this.url=this.buildChannelUrl(t.changeOwnership.channel))}}catch(i){this.payload.type=null,U.error(i)}}buildVideoUrl(t){return L.buildWatchUrl(t)}buildAccountUrl(t){return"/a/"+A.CREATE_BY_STRING(t.name,t.host)}buildVideoImportUrl(){return"/my-library/video-imports"}buildVideoImportIdentifier(t){return t.video?.name||t.targetUrl||t.magnetUri||t.torrentName}buildCommentUrl(t){return[this.buildVideoUrl(t.video),{threadId:t.threadId}]}buildChannelUrl(t){return["/my-library","video-channels","manage",t.name]}};var r=class r{authHttp=a(S);auth=a(C);restExtractor=a(R);restService=a(g);peertubeSocket=a(v);listMyNotifications(t){let{pagination:s,ignoreLoadingBar:i,unread:u,sort:E}=t,n=new b;n=this.restService.addRestGetParams(n,this.restService.componentToRestPagination(s),E),u&&(n=n.append("unread",`${u}`));let D=i?new c().set(h,!0):void 0;return this.authHttp.get(r.BASE_NOTIFICATIONS_URL,{params:n,context:D}).pipe(I(m=>this.restExtractor.applyToResultListData(m,this.formatNotification.bind(this))),o(m=>this.restExtractor.handleError(m)))}countUnreadNotifications(){return this.listMyNotifications({pagination:{currentPage:1,itemsPerPage:0},ignoreLoadingBar:!0,unread:!0}).pipe(I(t=>t.total),o(t=>this.restExtractor.handleError(t)))}markAsRead(t){let s=r.BASE_NOTIFICATIONS_URL+"/read",i={ids:[t.payload.id]},u=new c().set(h,!0);return this.authHttp.post(s,i,{context:u}).pipe(N(()=>this.peertubeSocket.dispatchNotificationEvent("read")),o(E=>this.restExtractor.handleError(E)))}markAllAsRead(){let t=r.BASE_NOTIFICATIONS_URL+"/read-all",s=new c().set(h,!0);return this.authHttp.post(t,{},{context:s}).pipe(N(()=>this.peertubeSocket.dispatchNotificationEvent("read-all")),o(i=>this.restExtractor.handleError(i)))}updateNotificationSettings(t){let s=r.BASE_NOTIFICATION_SETTINGS;return this.authHttp.put(s,t).pipe(o(i=>this.restExtractor.handleError(i)))}formatNotification(t){return new d(t,this.auth.getUser())}};l(r,"BASE_NOTIFICATIONS_URL",_.apiUrl+"/api/v1/users/me/notifications"),l(r,"BASE_NOTIFICATION_SETTINGS",_.apiUrl+"/api/v1/users/me/notification-settings"),l(r,"\u0275fac",function(s){return new(s||r)}),l(r,"\u0275prov",O({token:r,factory:r.\u0275fac}));var k=r;export{k as a};
2/**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.