PageSourceSearch

https://app.eventpage.ai/chunk-7QPO7P5S.js

js eventpage.ai collected 2026-10-01 16:16:01 UTC 3,198 bytes, 2 lines download raw bytes

1import{a as f}from"./chunk-FIMGMKXO.js";import{j as p}from"./chunk-JEYBAYD4.js";import{J as o,K as u}from"./chunk-RUWYBB47.js";import{b as r}from"./chunk-Z2MDTFY3.js";import{b as h}from"./chunk-EGRFEJAP.js";import{b as E}from"./chunk-R4E5RDGX.js";import{f as S,ka as c,pa as n,w as a}from"./chunk-4IVTWYCS.js";var R=(()=>{let t=class t{constructor(e){this.api=e}getFriendList(){return this.api.get(`${r.api}/friendships`).pipe(a(e=>new f(e)))}sendFriendRequest(e){return this.api.post(`${r.api}/friendships/request`,e)}acceptFriendRequest(e){return this.api.post(`${r.api}/friendships/${e}/accept`,{})}declineFriendRequest(e){return this.api.post(`${r.api}/friendships/${e}/decline`,{})}removeFriend(e){return this.api.delete(`${r.api}/friendships/${e}`)}getFriendshipStatus(e){return this.api.get(`${r.api}/friendships/status/${e}`)}getMutualFriends(e){return this.api.get(`${r.api}/friendships/mutual/${e}`).pipe(a(this.mapUsers))}mapUsers(e){return e?.map(i=>new u(i))}};t.\u0275fac=function(i){return new(i||t)(n(p))},t.\u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"});let s=t;return s})();var C=(()=>{let t=class t{constructor(e,i,d){this.friendsService=e,this.notificationService=i,this.translateService=d,this._refresh$=new S}get refresh$(){return this._refresh$.asObservable()}refresh(e){this._refresh$.next(e)}sendFriendRequest(e,i){if(e)return this.friendsService.sendFriendRequest({receiverId:e,communityId:i}).subscribe({next:()=>{this._refresh$.next({refreshFriends:!0}),this.notificationService.success(this.translateService.instant("APP.FRIENDS.SUCCESS.FRIEND_REQUEST_SENT"))},error:()=>{this.notificationService.success(this.translateService.instant("APP.FRIENDS.ERRORS.COULD_NOT_SEND_FRIEND_REQUEST"))}})}acceptFriendRequest(e){if(e)return this.friendsService.acceptFriendRequest(e).subscribe({next:()=>{this._refresh$.next({refreshFriends:!0}),this.notificationService.success(this.translateService.instant("APP.FRIENDS.SUCCESS.FRIEND_REQUEST_ACCEPTED"))},error:()=>{this.notificationService.success(this.translateService.instant("APP.FRIENDS.ERRORS.COULD_NOT_ACCEPT_REQUEST"))}})}declineFriendRequest(e){if(e)return this.friendsService.declineFriendRequest(e).subscribe({next:()=>{this._refresh$.next({refreshFriends:!0}),this.notificationService.success(this.translateService.instant("APP.FRIENDS.SUCCESS.FRIEND_REQUEST_DECLINED"))},error:()=>{this.notificationService.success(this.translateService.instant("APP.FRIENDS.ERRORS.COULD_NOT_DECLINE_REQUEST"))}})}removeFriend(e){if(e.id)return this.friendsService.removeFriend(e.id).subscribe({next:()=>{this._refresh$.next({refreshFriends:!0}),this.notificationService.success(this.translateService.instant(e.status===o.PENDING?"APP.FRIENDS.SUCCESS.OUTGOING_REQUEST_REMOVED":"APP.FRIENDS.SUCCESS.REMOVE_FRIEND"))},error:()=>{this.notificationService.success(this.translateService.instant(e.status===o.PENDING?"APP.FRIENDS.ERRORS.COULD_NOT_REMOVE_OUTGOING_REQUEST":"APP.FRIENDS.ERRORS.COULD_NOT_REMOVE_FRIEND"))}})}};t.\u0275fac=function(i){return new(i||t)(n(R),n(h),n(E))},t.\u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"});let s=t;return s})();export{C as a};
2//# sourceMappingURL=chunk-7QPO7P5S.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.