PageSourceSearch

https://mewe.com/assets/index-CSNq3Obe.js

js mewe.com collected 2026-09-24 08:35:17 UTC 3,458 bytes, 1 lines download raw bytes

1import{at as t,eU as s,iq as e,ip as a,mN as o,A as i,eV as r,cE as n,an as h,c4 as d,ae as l,aw as c,da as g,lD as p}from"./main-BwTHoxl0.js";import u from"./index-D_AvjRnS.js";import"./index-Bi9ZhAoy.js";const y={GROUP:"group",EVENT:"event",PAGE:"page",STORY_VIEWERS:"story-viewers"};class m extends t{static{s(this.prototype,"dialogsService",[e])}#t=void a(this,"dialogsService");static{s(this.prototype,"accountService",[e])}#s=void a(this,"accountService");static{s(this.prototype,"loadedContacts",[o],function(){return i()})}#e=void a(this,"loadedContacts");static{s(this.prototype,"isLoading",[o])}#a=void a(this,"isLoading");static{s(this.prototype,"headerError",[o])}#o=void a(this,"headerError");static{s(this.prototype,"allLoaded",[o],function(){return!1})}#i=void a(this,"allLoaded");onInsert(){this.args.compArgs.contacts?.length>=this.args.compArgs.totalCount?(this.loadedContacts=this.args.compArgs.contacts||i(),this.allLoaded=!0):this.loadContacts()}static{r(this.prototype,"onInsert",[g])}loadMoreContacts(){return this.loadContacts(!0)}static{r(this.prototype,"loadMoreContacts",[g])}get headerText(){if(this.headerError)return this.headerError;if(this.args.compArgs.headerText)return this.args.compArgs.headerText;switch(this.args.compArgs.theme){case y.GROUP:return __("People you may know in this group");case y.EVENT:return __("People you may know in this event");case y.PAGE:return __("People you may know in this page");case y.STORY_VIEWERS:return __("People who have seen your story");default:return""}}loadContacts(t){if(!this.isLoading)switch(this.isLoading=!0,this.args.compArgs.theme){case y.GROUP:return c.myContacts(this.args.compArgs.groupId,this.nextPageUrl).then(s=>{this.isDestroyed||this.isDestroying||(t?this.loadedContacts.pushObjects(s.contacts):this.loadedContacts=i(s.contacts),s._links?.nextPage?.href?(this.nextPageUrl=s._links.nextPage.href,this.allLoaded=!1):(this.nextPageUrl=null,this.allLoaded=!0))}).finally(()=>{this.isLoading=!1});case y.EVENT:return l.getContactsInEvent(this.args.compArgs.eventId,{offset:this.loadedContacts.length}).then(s=>{this.isDestroyed||this.isDestroying||(t?this.loadedContacts.pushObjects(s.users):this.loadedContacts=i(s.users),this.allLoaded=!(s.users.length&&this.args.compArgs.totalCount>this.loadedContacts.length))}).finally(()=>{this.isLoading=!1});case y.PAGE:return d.getFollowingContacts(this.args.compArgs.pageId,this.nextPageUrl).then(s=>{this.isDestroyed||this.isDestroying||(t?this.loadedContacts.pushObjects(s.followers):this.loadedContacts=i(s.followers),s._links?.nextPage?.href?(this.nextPageUrl=s._links.nextPage.href,this.allLoaded=!1):(this.nextPageUrl=null,this.allLoaded=!0))}).finally(()=>{this.isLoading=!1});case y.STORY_VIEWERS:return n.getStoryViewers({storyId:this.args.compArgs.entryId,pageId:this.args.compArgs.pageId,nextPage:this.nextPageUrl}).then(s=>{if(this.isDestroyed||this.isDestroying)return;const e=s.views.map(t=>t.user);t?this.loadedContacts.pushObjects(e):this.loadedContacts=i(e),s._links?.nextPage?.href?(this.nextPageUrl=s._links.nextPage.href,this.allLoaded=!1):(this.nextPageUrl=null,this.allLoaded=!0)}).finally(()=>{this.isLoading=!1}).catch(t=>{403===t?.data?.errorCode?this.headerError=__("Viewer lists aren’t available after 24 hours"):(h.showDefaultErrorMessage(),this.close())})}}close(){this.dialogsService.close(this.args.compArgs.dialogId)}static{r(this.prototype,"close",[g])}}p(u,m);export{y as Mode,m as default};

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.