PageSourceSearch

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

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

1import{Af as P,B as s,C as p,Ce as A,D as f,Y as m,aa as w,gh as E,i as c,lh as v,md as d,pd as F}from"./chunk-HVCWS4IF.js";import{j as h}from"./chunk-KJ7W2O2B.js";var l=class l{authHttp=w(F);restService=w(v);restExtractor=w(E);listSubscriptions(o){let{pagination:r,sort:t,search:a,state:i,actorType:n}=o,e=new d();return e=this.restService.addRestGetParams(e,r,t),a&&(e=e.append("search",a)),i&&(e=e.append("state",i)),n&&(e=e.append("actorType",n)),this.authHttp.get(l.BASE_APPLICATION_URL+"/following",{params:e}).pipe(s(u=>this.restExtractor.handleError(u)));}listFollowers(o){let{pagination:r,sort:t,search:a,state:i,actorType:n}=o,e=new d();return e=this.restService.addRestGetParams(e,r,t),a&&(e=e.append("search",a)),i&&(e=e.append("state",i)),n&&(e=e.append("actorType",n)),this.authHttp.get(l.BASE_APPLICATION_URL+"/followers",{params:e}).pipe(s(u=>this.restExtractor.handleError(u)));}follow(o){let r={handles:o.filter(t=>t.includes("@")),hosts:o.filter(t=>!t.includes("@"))};return this.authHttp.post(l.BASE_APPLICATION_URL+"/following",r).pipe(s(t=>this.restExtractor.handleError(t)));}unfollow(o){let r=A(o);return c(r).pipe(f(t=>{let a=t.following.name+"@"+t.following.host;return this.authHttp.delete(l.BASE_APPLICATION_URL+"/following/"+a);}),p(),s(t=>this.restExtractor.handleError(t)));}acceptFollower(o){let r=A(o);return c(r).pipe(f(t=>{let a=t.follower.name+"@"+t.follower.host;return this.authHttp.post(`${l.BASE_APPLICATION_URL}/followers/${a}/accept`,{});}),p(),s(t=>this.restExtractor.handleError(t)));}rejectFollower(o){let r=A(o);return c(r).pipe(f(t=>{let a=t.follower.name+"@"+t.follower.host;return this.authHttp.post(`${l.BASE_APPLICATION_URL}/followers/${a}/reject`,{});}),p(),s(t=>this.restExtractor.handleError(t)));}removeFollower(o){let r=A(o);return c(r).pipe(f(t=>{let a=t.follower.name+"@"+t.follower.host;return this.authHttp.delete(`${l.BASE_APPLICATION_URL}/followers/${a}`);}),p(),s(t=>this.restExtractor.handleError(t)));}buildFollowsListFilters(){return[{type:"options",key:"state",title:"Follow state",options:[{value:"all",label:"All follows"},{value:"accepted",label:"Accepted follows"},{value:"rejected",label:"Rejected follows"},{value:"pending",label:"Pending follows"}]}];}};h(l,"BASE_APPLICATION_URL",P.apiUrl+"/api/v1/server"),h(l,"\u0275fac",function(r){return new(r||l)();}),h(l,"\u0275prov",m({token:l,factory:l.ɵfac}));var L=l;export{L as a};/**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.