You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
20 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{1107:function(e,t){},119:function(e,t,n){"use strict";n.r(t),n.d(t,"rageshakePromise",(function(){return z})),n.d(t,"preparePlatform",(function(){return Q})),n.d(t,"setupLogStorage",(function(){return X})),n.d(t,"loadConfig",(function(){return Y})),n.d(t,"loadOlm",(function(){return Z})),n.d(t,"loadLanguage",(function(){return ee})),n.d(t,"loadTheme",(function(){return te})),n.d(t,"loadApp",(function(){return ne})),n.d(t,"showError",(function(){return ae})),n.d(t,"showIncompatibleBrowser",(function(){return ie})),n.d(t,"loadModules",(function(){return oe})),n.d(t,"_t",(function(){return se}));var a=n(942),i=n(943),o=n.n(i),s=n(186),r=n(120),c=n.n(r),l=n(121),d=n(125),h=n(157),u=n(131),p=n(310),g=n(1),w=n(347),f=n(13),m=n.n(f),y=n(342),b=n(124),v=n(575),x=n(127),C=n(213),O=n(134),k=n(223),S=n(128),I=n(653),E=n(198),j=n(1421),P=n(12),U=n(1422);class D extends y.e{constructor(){super(...arguments),m()(this,"_favicon",void 0)}async getConfig(){return Object(P.a)()}getHumanReadableName(){return"Vector Base Platform"}get favicon(){return this._favicon||(this._favicon=new U.a),this._favicon}updateFavicon(){let e="#d00",t=this.notificationCount;this.errorDidOccur&&(t=t||"×",e="#f00"),this.favicon.badge(t,{bgColor:e})}setNotificationCount(e){this.notificationCount!==e&&(super.setNotificationCount(e),this.updateFavicon())}setErrorStatus(e){this.errorDidOccur!==e&&(super.setErrorStatus(e),this.updateFavicon())}startUpdater(){}getDefaultDeviceDisplayName(){return Object(l.a)("Unknown device")}}var A=n(1423),N=n(16);class L{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ipcCall",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ipcReply";this.sendChannel=e,this.recvChannel=t,m()(this,"pendingIpcCalls",{}),m()(this,"nextIpcCallId",0),m()(this,"onIpcReply",((e,t)=>{if(void 0===t.id)return void g.a.warn("Ignoring IPC reply with no ID");if(void 0===this.pendingIpcCalls[t.id])return void g.a.warn("Unknown IPC payload ID: "+t.id);const n=this.pendingIpcCalls[t.id];delete this.pendingIpcCalls[t.id],t.error?n.reject(t.error):n.resolve(t.reply)})),window.electron.on(this.recvChannel,this.onIpcReply)}async call(e){const t=++this.nextIpcCallId,n=Object(N.m)();this.pendingIpcCalls[t]=n;for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o<a;o++)i[o-1]=arguments[o];return window.electron.send(this.sendChannel,{id:t,name:e,args:i}),n.promise}}class T extends A.a{constructor(){super(...arguments),m()(this,"ipc",new L("seshat","seshatReply"))}async supportsEventIndexing(){return this.ipc.call("supportsEventIndexing")}async initEventIndex(e,t){return this.ipc.call("initEventIndex",e,t)}async addEventToIndex(e,t){return this.ipc.call("addEventToIndex",e,t)}async deleteEvent(e){return this.ipc.call("deleteEvent",e)}async isEventIndexEmpty(){return this.ipc.call("isEventIndexEmpty")}async isRoomIndexed(e){return this.ipc.call("isRoomIndexed",e)}async commitLiveEvents(){return this.ipc.call("commitLiveEvents")}async searchEventIndex(e){return this.ipc.call("searchEventIndex",e)}async addHistoricEvents(e,t,n){return this.ipc.call("addHistoricEvents",e,t,n)}async addCrawlerCheckpoint(e){return this.ipc.call("addCrawlerCheckpoint",e)}async removeCrawlerCheckpoint(e){return this.ipc.call("removeCrawlerCheckpoint",e)}async loadFileEvents(e){return this.ipc.call("loadFileEvents",e)}async loadCheckpoints(){return this.ipc.call("loadCheckpoints")}async closeEventIndex(){return this.ipc.call("closeEventIndex")}async getStats(){return this.ipc.call("getStats")}async getUserVersion(){return this.ipc.call("getUserVersion")}async setUserVersion(e){return this.ipc.call("setUserVersion",e)}async deleteEventIndex(){return this.ipc.call("deleteEventIndex")}}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}const B=navigator.platform.toUpperCase().includes("MAC");function F(e){["call_state"].includes(e.act
//# sourceMappingURL=init.js.map