2026-08-24 06:08:38 +00:00
|
|
|
// Module ID: 9902
|
|
|
|
|
// Function ID: 9903
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: _guildRoomConnect
|
2026-08-24 06:08:38 +00:00
|
|
|
// Dependencies: [5, 1218, 9903, 676, 530, 9905, 709, 9911, 9912, 9919, 11, 9904, 9920, 9921, 2]
|
2026-08-14 17:33:39 +00:00
|
|
|
// Exports: clearGuildRoomPendingPosition, createGuildRoomNote, deleteGuildRoomNote, fetchGuildRoom, guildRoomConnect, guildRoomDisconnect, guildRoomLocalDisconnect, guildRoomObjectUpdate, guildRoomToggleLayout, guildRoomUpdate, maybeSetGuildRoomVideoOverlay, placePendingGuildRoomNote, selectGuildRoomLocalPosition, setGuildRoomRememberVideoOverlayVisibility, setGuildRoomVideoOverlayVisibility, startPendingGuildRoomNote
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
// Module 9902 (_guildRoomConnect)
|
|
|
|
|
import dispatcherDefault from "dispatcher" /* 709 */;
|
|
|
|
|
import getBaseProperties from "getBaseProperties" /* 9911 */;
|
|
|
|
|
import experimentDefault from "experiment" /* 9921 */;
|
|
|
|
|
import closure_3 from "asyncGeneratorStep" /* 5 */;
|
|
|
|
|
import closure_4 from "fetchFingerprint" /* 1218 */;
|
|
|
|
|
import closure_5 from "resolveCreatingNotes" /* 9903 */;
|
|
|
|
|
import { Endpoints } from "ME" /* 676 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
require = arg1;
|
2026-07-20 16:05:17 +00:00
|
|
|
function _guildRoomConnect() {
|
2026-07-29 08:29:29 +00:00
|
|
|
const self = this;
|
|
|
|
|
const tmp = callback((arg0, arg1, arg2) => {
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_0 = arg0;
|
|
|
|
|
closure_1 = arg1;
|
|
|
|
|
closure_2 = arg2;
|
|
|
|
|
c10 = 0;
|
|
|
|
|
c11 = 0;
|
|
|
|
|
c9 = 0;
|
2026-07-29 08:29:29 +00:00
|
|
|
return (function*(arg0, arg1, arg2) {
|
|
|
|
|
if (c11 === 2) {
|
|
|
|
|
c11 = 3;
|
|
|
|
|
HermesBuiltin.throwTypeError();
|
|
|
|
|
} else if (tmp3 === 3) {
|
|
|
|
|
if (arg0 === 1) {
|
|
|
|
|
throw arg1;
|
|
|
|
|
} else if (arg0 === 2) {
|
|
|
|
|
let obj = { value: null, done: true };
|
|
|
|
|
obj[0] = arg1;
|
|
|
|
|
return obj;
|
|
|
|
|
} else {
|
2026-08-24 06:08:38 +00:00
|
|
|
return { value: "HermesInternal", done: null };
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
while (true) {
|
|
|
|
|
let num = 2;
|
|
|
|
|
c11 = 2;
|
|
|
|
|
let tmp4 = c10;
|
|
|
|
|
if (0 === c10) {
|
|
|
|
|
if (arg0 === 1) {
|
|
|
|
|
let num7 = 3;
|
|
|
|
|
c11 = 3;
|
|
|
|
|
throw arg1;
|
|
|
|
|
} else if (arg0 === 2) {
|
|
|
|
|
let num6 = 3;
|
|
|
|
|
c11 = 3;
|
|
|
|
|
obj = { value: null, done: true };
|
|
|
|
|
obj[0] = arg1;
|
|
|
|
|
return obj;
|
|
|
|
|
} else {
|
|
|
|
|
let items = tmp;
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_6 = tmp4;
|
2026-08-14 17:33:39 +00:00
|
|
|
let tmp83 = dependencyMap;
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_3 = undefined;
|
|
|
|
|
closure_4 = undefined;
|
2026-07-29 08:29:29 +00:00
|
|
|
let users;
|
|
|
|
|
closure_6 = undefined;
|
|
|
|
|
items = undefined;
|
2026-08-24 06:08:38 +00:00
|
|
|
c8 = undefined;
|
|
|
|
|
c9 = 1;
|
|
|
|
|
closure_3 = dependencyMap;
|
2026-08-14 17:33:39 +00:00
|
|
|
let tmp81 = callback;
|
|
|
|
|
let tmp82 = callback2;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (dependencyMap == null) {
|
2026-08-24 06:08:38 +00:00
|
|
|
let tmp37 = closure_1_7;
|
|
|
|
|
closure_3 = closure_1_7;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
let tmp38 = closure_3;
|
2026-08-14 17:33:39 +00:00
|
|
|
let tmp39 = callback;
|
|
|
|
|
let tmp40 = dependencyMap;
|
2026-07-29 08:29:29 +00:00
|
|
|
let HTTP = callback(530).HTTP;
|
2026-08-24 06:08:38 +00:00
|
|
|
obj1 = { url: null, body: null, rejectWithError: true };
|
|
|
|
|
let tmp41 = closure_1_6;
|
|
|
|
|
obj1[0] = closure_1_6.GUILD_ROOM_CONNECT(tmp81, tmp82);
|
2026-07-29 08:29:29 +00:00
|
|
|
let obj2 = { position: null };
|
2026-08-24 06:08:38 +00:00
|
|
|
obj2[0] = closure_3;
|
2026-07-29 08:29:29 +00:00
|
|
|
obj1[1] = obj2;
|
|
|
|
|
c10 = 2;
|
|
|
|
|
let num5 = 1;
|
|
|
|
|
c11 = 1;
|
|
|
|
|
let obj3 = { value: null, done: false };
|
|
|
|
|
obj3[0] = HTTP.post(obj1);
|
|
|
|
|
return obj3;
|
|
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
} else if (1 === tmp4) {
|
|
|
|
|
let tmp27 = closure_6;
|
|
|
|
|
let tmp28 = items;
|
|
|
|
|
let tmp29 = c8;
|
|
|
|
|
let tmp30 = c8;
|
|
|
|
|
c9 = 0;
|
|
|
|
|
c9 = c8;
|
|
|
|
|
let tmp31 = callback2;
|
|
|
|
|
let tmp32 = dependencyMap;
|
|
|
|
|
let obj5 = callback2(709);
|
|
|
|
|
let obj4 = { type: "GUILD_ROOM_CONNECT_FAILURE", guildId: null, roomId: null };
|
|
|
|
|
let tmp33 = callback;
|
|
|
|
|
obj4[1] = callback;
|
|
|
|
|
let tmp34 = callback2;
|
|
|
|
|
obj4[2] = callback2;
|
|
|
|
|
let dispatchResult = obj5.dispatch(obj4);
|
|
|
|
|
let tmp36 = c9;
|
|
|
|
|
throw c9;
|
|
|
|
|
} else if (2 === tmp4) {
|
|
|
|
|
if (arg0 === 1) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let num4 = 3;
|
|
|
|
|
c11 = 3;
|
2026-08-14 17:33:39 +00:00
|
|
|
throw arg1;
|
|
|
|
|
} else if (arg0 === 2) {
|
|
|
|
|
c9 = 0;
|
|
|
|
|
let num3 = 3;
|
|
|
|
|
c11 = 3;
|
|
|
|
|
obj5 = { value: null, done: true };
|
|
|
|
|
obj5[0] = arg1;
|
|
|
|
|
return obj5;
|
|
|
|
|
} else {
|
|
|
|
|
let tmp47 = closure_6;
|
|
|
|
|
let tmp48 = items;
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_4 = arg1;
|
2026-08-14 17:33:39 +00:00
|
|
|
let tmp49 = callback;
|
|
|
|
|
let tmp50 = dependencyMap;
|
2026-08-24 06:08:38 +00:00
|
|
|
let obj12 = callback(9905);
|
|
|
|
|
let tmp51 = closure_4;
|
|
|
|
|
users = obj12.serverGuildRoomToClient(closure_4.body);
|
2026-08-14 17:33:39 +00:00
|
|
|
let tmp52 = callback2;
|
|
|
|
|
let tmp53 = dependencyMap;
|
|
|
|
|
let obj14 = callback2(709);
|
|
|
|
|
let obj6 = { type: "GUILD_ROOM_CONNECT", room: null, guildId: null, pendingPosition: null };
|
|
|
|
|
let tmp54 = users;
|
|
|
|
|
obj6[1] = users;
|
|
|
|
|
let tmp55 = callback;
|
|
|
|
|
obj6[2] = callback;
|
2026-08-24 06:08:38 +00:00
|
|
|
let tmp56 = closure_3;
|
|
|
|
|
obj6[3] = closure_3;
|
2026-08-14 17:33:39 +00:00
|
|
|
let dispatchResult1 = obj14.dispatch(obj6);
|
|
|
|
|
let tmp58 = callback2;
|
|
|
|
|
let tmp59 = callback;
|
|
|
|
|
if (callback2 !== callback) {
|
|
|
|
|
let tmp60 = closure_6;
|
|
|
|
|
let tmp61 = items;
|
|
|
|
|
let tmp62 = callback;
|
|
|
|
|
let tmp63 = dependencyMap;
|
2026-08-24 06:08:38 +00:00
|
|
|
let obj16 = callback(9911);
|
2026-08-14 17:33:39 +00:00
|
|
|
let obj7 = { guildId: null, channelId: null };
|
|
|
|
|
let tmp64 = callback;
|
|
|
|
|
obj7[0] = callback;
|
|
|
|
|
let tmp65 = callback2;
|
|
|
|
|
obj7[1] = callback2;
|
|
|
|
|
let result = obj16.trackGuildRoomUserConnected(obj7);
|
|
|
|
|
let tmp67 = callback;
|
|
|
|
|
let tmp68 = dependencyMap;
|
2026-08-24 06:08:38 +00:00
|
|
|
let obj18 = callback(9912);
|
2026-08-14 17:33:39 +00:00
|
|
|
let tmp69 = callback;
|
|
|
|
|
let tmp70 = dependencyMap;
|
2026-08-24 06:08:38 +00:00
|
|
|
let fireSurveyActionResult = obj18.fireSurveyAction(callback(9919).SurveyActionTypes.GUILD_ROOM_JOINED);
|
2026-08-14 17:33:39 +00:00
|
|
|
let tmp72 = users;
|
|
|
|
|
users = users.users;
|
2026-08-24 06:08:38 +00:00
|
|
|
let tmp73 = closure_4;
|
|
|
|
|
closure_6 = users.get(closure_4.getId());
|
2026-08-14 17:33:39 +00:00
|
|
|
let tmp74 = closure_6;
|
|
|
|
|
if (null != closure_6) {
|
|
|
|
|
let tmp75 = closure_6;
|
|
|
|
|
let obj8 = { updateType: "position", updateReason: "default", position: null };
|
|
|
|
|
let tmp76 = closure_6;
|
|
|
|
|
obj8[2] = closure_6.position;
|
|
|
|
|
items = [obj8, , ];
|
|
|
|
|
let obj9 = { updateType: "status_id", updateReason: "default", statusId: null };
|
|
|
|
|
let tmp77 = closure_6;
|
|
|
|
|
obj9[2] = closure_6.statusId;
|
|
|
|
|
items[1] = obj9;
|
|
|
|
|
let obj10 = { updateType: "status_text", updateReason: "default", statusText: null };
|
|
|
|
|
let tmp78 = closure_6;
|
|
|
|
|
obj10[2] = closure_6.statusText;
|
|
|
|
|
items[2] = obj10;
|
|
|
|
|
let tmp79 = items;
|
|
|
|
|
users = items;
|
|
|
|
|
let tmp80 = items;
|
|
|
|
|
users = items;
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_4 = items[Symbol.iterator]();
|
2026-08-14 17:33:39 +00:00
|
|
|
let tmp8 = users;
|
2026-08-24 06:08:38 +00:00
|
|
|
let tmp9 = closure_4;
|
|
|
|
|
while (closure_4 !== undefined) {
|
2026-08-14 17:33:39 +00:00
|
|
|
let tmp11 = closure_6;
|
|
|
|
|
let tmp12 = items;
|
|
|
|
|
c9 = 2;
|
|
|
|
|
c8 = tmp10;
|
|
|
|
|
let tmp13 = callback;
|
|
|
|
|
let tmp14 = dependencyMap;
|
2026-08-24 06:08:38 +00:00
|
|
|
obj = callback(9911);
|
2026-08-14 17:33:39 +00:00
|
|
|
let obj11 = { channelId: null, update: null };
|
|
|
|
|
let tmp15 = callback2;
|
|
|
|
|
obj11[0] = callback2;
|
|
|
|
|
let tmp16 = c8;
|
|
|
|
|
obj11[1] = c8;
|
|
|
|
|
let result1 = obj.trackGuildRoomUserUpdated(obj11);
|
|
|
|
|
c9 = 1;
|
|
|
|
|
continue;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
let tmp18 = closure_6;
|
|
|
|
|
let tmp19 = items;
|
|
|
|
|
let tmp20 = callback;
|
|
|
|
|
let tmp21 = dependencyMap;
|
2026-08-24 06:08:38 +00:00
|
|
|
obj2 = callback(9911);
|
2026-08-14 17:33:39 +00:00
|
|
|
obj12 = { guildId: null, channelId: null, actualSeatPosition: null, targetSeatPosition: null };
|
|
|
|
|
let tmp22 = callback;
|
|
|
|
|
obj12[0] = callback;
|
|
|
|
|
let tmp23 = callback2;
|
|
|
|
|
obj12[1] = callback2;
|
|
|
|
|
let tmp24 = closure_6;
|
|
|
|
|
obj12[2] = closure_6.position;
|
|
|
|
|
let tmp25 = dependencyMap;
|
|
|
|
|
obj12[3] = dependencyMap;
|
|
|
|
|
let result2 = obj2.trackGuildRoomSeatSelected(obj12);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
c9 = 0;
|
|
|
|
|
let num2 = 3;
|
|
|
|
|
c11 = 3;
|
2026-08-24 06:08:38 +00:00
|
|
|
return { value: "HermesInternal", done: null };
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
} else {
|
|
|
|
|
let tmp5 = c8;
|
|
|
|
|
let tmp6 = c8;
|
|
|
|
|
c9 = 1;
|
2026-08-24 06:08:38 +00:00
|
|
|
let tmp7 = closure_4;
|
|
|
|
|
closure_4.return();
|
2026-08-14 17:33:39 +00:00
|
|
|
throw c8;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})();
|
|
|
|
|
});
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_8 = tmp;
|
2026-07-29 08:29:29 +00:00
|
|
|
const apply = tmp.apply;
|
|
|
|
|
if (typeof apply === "unknown") {
|
|
|
|
|
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
|
|
|
|
} else {
|
|
|
|
|
applyArgumentsResult = apply(self, arguments);
|
|
|
|
|
}
|
|
|
|
|
return applyArgumentsResult;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
function _guildRoomUpdate() {
|
2026-07-29 08:29:29 +00:00
|
|
|
const self = this;
|
|
|
|
|
const tmp = callback((arg0, arg1, arg2) => {
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_0 = arg0;
|
|
|
|
|
closure_1 = arg1;
|
|
|
|
|
closure_2 = arg2;
|
|
|
|
|
c7 = 0;
|
|
|
|
|
c8 = 0;
|
|
|
|
|
c6 = 0;
|
2026-07-29 08:29:29 +00:00
|
|
|
return (function*(arg0, arg1, arg2) {
|
2026-08-14 17:33:39 +00:00
|
|
|
if (position === 2) {
|
2026-07-29 08:29:29 +00:00
|
|
|
position = 3;
|
2026-08-14 17:33:39 +00:00
|
|
|
HermesBuiltin.throwTypeError();
|
|
|
|
|
} else if (tmp7 === 3) {
|
|
|
|
|
if (arg0 === 1) {
|
|
|
|
|
throw arg1;
|
|
|
|
|
} else if (arg0 === 2) {
|
|
|
|
|
let obj = { value: null, done: true };
|
|
|
|
|
obj[0] = arg1;
|
|
|
|
|
return obj;
|
|
|
|
|
} else {
|
2026-08-24 06:08:38 +00:00
|
|
|
return { value: "HermesInternal", done: null };
|
2026-08-14 17:33:39 +00:00
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
try {
|
|
|
|
|
position = 2;
|
|
|
|
|
if (0 === users) {
|
|
|
|
|
if (arg0 === 1) {
|
|
|
|
|
position = 3;
|
|
|
|
|
throw arg1;
|
|
|
|
|
} else if (arg0 === 2) {
|
|
|
|
|
position = 3;
|
|
|
|
|
obj = { value: null, done: true };
|
|
|
|
|
obj[0] = arg1;
|
|
|
|
|
return obj;
|
|
|
|
|
} else {
|
|
|
|
|
let id = tmp3;
|
|
|
|
|
let room = tmp5;
|
|
|
|
|
room = undefined;
|
|
|
|
|
id = undefined;
|
|
|
|
|
let roomObjects;
|
2026-08-24 06:08:38 +00:00
|
|
|
c6 = undefined;
|
2026-08-14 17:33:39 +00:00
|
|
|
users = undefined;
|
|
|
|
|
position = undefined;
|
2026-08-24 06:08:38 +00:00
|
|
|
room = closure_1_5.getRoom(callback2);
|
|
|
|
|
id = closure_1_5.getRoomUsers(callback2);
|
|
|
|
|
roomObjects = closure_1_5.getRoomObjects(callback2);
|
2026-08-14 17:33:39 +00:00
|
|
|
c6 = 1;
|
2026-08-24 06:08:38 +00:00
|
|
|
obj1 = { type: "GUILD_ROOM_LOCAL_UPDATE", roomId: null };
|
2026-08-14 17:33:39 +00:00
|
|
|
obj1[1] = callback2;
|
|
|
|
|
let background;
|
|
|
|
|
if (closure_2 != null) {
|
|
|
|
|
background = tmp92.background;
|
|
|
|
|
}
|
|
|
|
|
if (null != background) {
|
|
|
|
|
obj1.background = tmp92.background;
|
|
|
|
|
}
|
|
|
|
|
let user_position;
|
|
|
|
|
if (closure_2 != null) {
|
|
|
|
|
user_position = tmp92.user_position;
|
|
|
|
|
}
|
|
|
|
|
if (null != user_position) {
|
|
|
|
|
obj1.position = tmp92.user_position;
|
|
|
|
|
}
|
|
|
|
|
let user_status_id;
|
|
|
|
|
if (closure_2 != null) {
|
|
|
|
|
user_status_id = tmp92.user_status_id;
|
|
|
|
|
}
|
|
|
|
|
if (null != user_status_id) {
|
|
|
|
|
obj1.statusId = tmp92.user_status_id;
|
|
|
|
|
}
|
|
|
|
|
let user_status_text;
|
|
|
|
|
if (closure_2 != null) {
|
|
|
|
|
user_status_text = tmp92.user_status_text;
|
|
|
|
|
}
|
|
|
|
|
if (null != user_status_text) {
|
|
|
|
|
obj1.statusText = tmp92.user_status_text;
|
|
|
|
|
}
|
|
|
|
|
callback2(closure_2[6]).dispatch(obj1);
|
|
|
|
|
const HTTP = callback(closure_2[4]).HTTP;
|
|
|
|
|
const obj2 = { url: null, body: null, rejectWithError: true };
|
|
|
|
|
obj2[0] = c6.GUILD_ROOM_UPDATE(callback, callback2);
|
|
|
|
|
obj2[1] = closure_2;
|
|
|
|
|
users = 2;
|
|
|
|
|
position = 1;
|
|
|
|
|
let obj3 = { value: null, done: false };
|
|
|
|
|
obj3[0] = HTTP.post(obj2);
|
|
|
|
|
return obj3;
|
2026-08-04 21:03:28 +00:00
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
} else if (1 === tmp8) {
|
|
|
|
|
c6 = 0;
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_9 = roomObjects;
|
2026-08-14 17:33:39 +00:00
|
|
|
let obj12 = callback2(closure_2[6]);
|
|
|
|
|
const obj4 = { type: "GUILD_ROOM_UPDATE_FAILURE", originalRoom: null, originalRoomUsers: null, originalRoomObjects: null, guildId: null };
|
|
|
|
|
obj4[1] = room;
|
|
|
|
|
obj4[2] = id;
|
|
|
|
|
obj4[3] = roomObjects;
|
|
|
|
|
obj4[4] = callback;
|
|
|
|
|
obj12.dispatch(obj4);
|
|
|
|
|
throw closure_9;
|
|
|
|
|
} else if (arg0 === 1) {
|
|
|
|
|
position = 3;
|
|
|
|
|
throw arg1;
|
|
|
|
|
} else if (arg0 === 2) {
|
|
|
|
|
c6 = 0;
|
|
|
|
|
position = 3;
|
|
|
|
|
const obj5 = { value: null, done: true };
|
|
|
|
|
obj5[0] = arg1;
|
|
|
|
|
return obj5;
|
|
|
|
|
} else {
|
|
|
|
|
c6 = arg1;
|
|
|
|
|
users = callback(closure_2[5]).serverGuildRoomToClient(c6.body);
|
|
|
|
|
if (callback !== callback2) {
|
|
|
|
|
let user_position1;
|
|
|
|
|
if (closure_2 != null) {
|
|
|
|
|
user_position1 = closure_2.user_position;
|
|
|
|
|
}
|
|
|
|
|
if (null != user_position1) {
|
|
|
|
|
obj = callback(closure_2[7]);
|
|
|
|
|
let obj6 = { channelId: null, update: null };
|
|
|
|
|
obj6[0] = callback2;
|
|
|
|
|
const obj7 = { updateType: "position", updateReason: "user_selected", position: null };
|
|
|
|
|
obj7[2] = closure_2.user_position;
|
|
|
|
|
obj6[1] = obj7;
|
|
|
|
|
const result = obj.trackGuildRoomUserUpdated(obj6);
|
|
|
|
|
}
|
|
|
|
|
let user_status_id1;
|
|
|
|
|
if (closure_2 != null) {
|
|
|
|
|
user_status_id1 = closure_2.user_status_id;
|
|
|
|
|
}
|
|
|
|
|
if (null != user_status_id1) {
|
|
|
|
|
obj3 = callback(closure_2[7]);
|
|
|
|
|
const obj8 = { channelId: null, update: null };
|
|
|
|
|
obj8[0] = callback2;
|
|
|
|
|
let obj9 = { updateType: "status_id", updateReason: "user_selected", statusId: null };
|
|
|
|
|
obj9[2] = closure_2.user_status_id;
|
|
|
|
|
obj8[1] = obj9;
|
|
|
|
|
const result1 = obj3.trackGuildRoomUserUpdated(obj8);
|
|
|
|
|
}
|
|
|
|
|
let user_status_text1;
|
|
|
|
|
if (closure_2 != null) {
|
|
|
|
|
user_status_text1 = closure_2.user_status_text;
|
|
|
|
|
}
|
|
|
|
|
if (null != user_status_text1) {
|
|
|
|
|
obj6 = callback(closure_2[7]);
|
|
|
|
|
const obj10 = { channelId: null, update: null };
|
|
|
|
|
obj10[0] = callback2;
|
|
|
|
|
const obj11 = { updateType: "status_text", updateReason: "user_selected", statusText: null };
|
|
|
|
|
obj11[2] = closure_2.user_status_text;
|
|
|
|
|
obj10[1] = obj11;
|
|
|
|
|
const result2 = obj6.trackGuildRoomUserUpdated(obj10);
|
|
|
|
|
}
|
|
|
|
|
let user_position2;
|
|
|
|
|
if (closure_2 != null) {
|
|
|
|
|
user_position2 = closure_2.user_position;
|
|
|
|
|
}
|
|
|
|
|
if (null != user_position2) {
|
|
|
|
|
users = users.users;
|
|
|
|
|
position = users.get(id.getId());
|
|
|
|
|
if (null != position) {
|
|
|
|
|
obj9 = callback(closure_2[7]);
|
|
|
|
|
obj12 = { guildId: null, channelId: null, actualSeatPosition: null, targetSeatPosition: null };
|
|
|
|
|
obj12[0] = callback;
|
|
|
|
|
obj12[1] = callback2;
|
|
|
|
|
obj12[2] = position.position;
|
|
|
|
|
obj12[3] = closure_2.user_position;
|
|
|
|
|
const result3 = obj9.trackGuildRoomSeatSelected(obj12);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
c6 = 0;
|
|
|
|
|
position = 3;
|
2026-08-24 06:08:38 +00:00
|
|
|
return { value: "HermesInternal", done: null };
|
2026-08-14 17:33:39 +00:00
|
|
|
}
|
|
|
|
|
} catch (tmp68) {
|
|
|
|
|
roomObjects = tmp68;
|
|
|
|
|
if (tmp4 === c6) {
|
|
|
|
|
position = tmp2;
|
|
|
|
|
throw tmp68;
|
|
|
|
|
} else {
|
|
|
|
|
users = tmp;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})();
|
|
|
|
|
});
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_9 = tmp;
|
2026-07-29 08:29:29 +00:00
|
|
|
const apply = tmp.apply;
|
|
|
|
|
if (typeof apply === "unknown") {
|
|
|
|
|
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
|
|
|
|
} else {
|
|
|
|
|
applyArgumentsResult = apply(self, arguments);
|
|
|
|
|
}
|
|
|
|
|
return applyArgumentsResult;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
function guildRoomObjectCreate() {
|
2026-07-29 08:29:29 +00:00
|
|
|
const self = this;
|
|
|
|
|
const apply = _guildRoomObjectCreate.apply;
|
|
|
|
|
if (typeof apply === "unknown") {
|
|
|
|
|
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
|
|
|
|
} else {
|
|
|
|
|
applyArgumentsResult = apply(self, arguments);
|
|
|
|
|
}
|
|
|
|
|
return applyArgumentsResult;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
function _guildRoomObjectCreate() {
|
2026-07-29 08:29:29 +00:00
|
|
|
const self = this;
|
|
|
|
|
const tmp = callback((arg0, arg1, arg2) => {
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_0 = arg0;
|
|
|
|
|
closure_1 = arg1;
|
|
|
|
|
closure_2 = arg2;
|
|
|
|
|
c4 = 0;
|
|
|
|
|
c3 = 0;
|
2026-07-29 08:29:29 +00:00
|
|
|
return (function*(arg0, arg1, arg2) {
|
2026-08-04 21:03:28 +00:00
|
|
|
const HTTP = callback(table[4]).HTTP;
|
2026-08-24 06:08:38 +00:00
|
|
|
obj1 = { url: null, body: null, rejectWithError: true };
|
|
|
|
|
obj1[0] = closure_1_6.GUILD_ROOM_OBJECT_CREATE(callback, closure_1);
|
2026-08-04 21:03:28 +00:00
|
|
|
obj1[1] = table;
|
|
|
|
|
yield HTTP.post(obj1);
|
|
|
|
|
return arg1;
|
2026-07-29 08:29:29 +00:00
|
|
|
})();
|
|
|
|
|
});
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_11 = tmp;
|
2026-07-29 08:29:29 +00:00
|
|
|
const apply = tmp.apply;
|
|
|
|
|
if (typeof apply === "unknown") {
|
|
|
|
|
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
|
|
|
|
} else {
|
|
|
|
|
applyArgumentsResult = apply(self, arguments);
|
|
|
|
|
}
|
|
|
|
|
return applyArgumentsResult;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
function _guildRoomObjectUpdate() {
|
2026-07-29 08:29:29 +00:00
|
|
|
const self = this;
|
|
|
|
|
const tmp = callback((arg0, arg1, arg2, arg3) => {
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_0 = arg0;
|
|
|
|
|
closure_1 = arg1;
|
|
|
|
|
closure_2 = arg2;
|
|
|
|
|
closure_3 = arg3;
|
|
|
|
|
c5 = 0;
|
|
|
|
|
c4 = 0;
|
2026-07-29 08:29:29 +00:00
|
|
|
return (function*(arg0, arg1, arg2, arg3) {
|
2026-08-04 21:03:28 +00:00
|
|
|
const HTTP = callback(table[4]).HTTP;
|
2026-08-24 06:08:38 +00:00
|
|
|
obj1 = { url: null, body: null, rejectWithError: true };
|
|
|
|
|
obj1[0] = closure_1_6.GUILD_ROOM_OBJECT_UPDATE(callback, closure_1, table);
|
|
|
|
|
obj1[1] = closure_3;
|
2026-08-04 21:03:28 +00:00
|
|
|
yield HTTP.post(obj1);
|
|
|
|
|
return arg1;
|
2026-07-29 08:29:29 +00:00
|
|
|
})();
|
|
|
|
|
});
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_12 = tmp;
|
2026-07-29 08:29:29 +00:00
|
|
|
const apply = tmp.apply;
|
|
|
|
|
if (typeof apply === "unknown") {
|
|
|
|
|
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
|
|
|
|
} else {
|
|
|
|
|
applyArgumentsResult = apply(self, arguments);
|
|
|
|
|
}
|
|
|
|
|
return applyArgumentsResult;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
function guildRoomObjectDelete() {
|
2026-07-29 08:29:29 +00:00
|
|
|
const self = this;
|
|
|
|
|
const apply = _guildRoomObjectDelete.apply;
|
|
|
|
|
if (typeof apply === "unknown") {
|
|
|
|
|
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
|
|
|
|
} else {
|
|
|
|
|
applyArgumentsResult = apply(self, arguments);
|
|
|
|
|
}
|
|
|
|
|
return applyArgumentsResult;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
function _guildRoomObjectDelete() {
|
2026-07-29 08:29:29 +00:00
|
|
|
const self = this;
|
|
|
|
|
const tmp = callback((arg0, arg1, arg2, arg3) => {
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_0 = arg0;
|
|
|
|
|
closure_1 = arg1;
|
|
|
|
|
closure_2 = arg2;
|
|
|
|
|
closure_3 = arg3;
|
|
|
|
|
c5 = 0;
|
|
|
|
|
c4 = 0;
|
2026-07-29 08:29:29 +00:00
|
|
|
return (function*(arg0, arg1, arg2, arg3) {
|
2026-08-04 21:03:28 +00:00
|
|
|
const HTTP = callback(table[4]).HTTP;
|
2026-08-24 06:08:38 +00:00
|
|
|
obj1 = { url: null, body: null, rejectWithError: true };
|
|
|
|
|
obj1[0] = closure_1_6.GUILD_ROOM_OBJECT_DELETE(callback, closure_1, table);
|
|
|
|
|
obj1[1] = closure_3;
|
2026-08-04 21:03:28 +00:00
|
|
|
yield HTTP.del(obj1);
|
|
|
|
|
return arg1;
|
2026-07-29 08:29:29 +00:00
|
|
|
})();
|
|
|
|
|
});
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_14 = tmp;
|
2026-07-29 08:29:29 +00:00
|
|
|
const apply = tmp.apply;
|
|
|
|
|
if (typeof apply === "unknown") {
|
|
|
|
|
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
|
|
|
|
} else {
|
|
|
|
|
applyArgumentsResult = apply(self, arguments);
|
|
|
|
|
}
|
|
|
|
|
return applyArgumentsResult;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-21 06:55:02 +00:00
|
|
|
function deletePendingGuildRoomNote(roomId) {
|
2026-08-24 06:08:38 +00:00
|
|
|
let obj = dispatcherDefault;
|
2026-07-21 06:55:02 +00:00
|
|
|
obj = { type: "GUILD_ROOM_PENDING_NOTE_DELETE", roomId };
|
|
|
|
|
obj.dispatch(obj);
|
|
|
|
|
}
|
2026-07-20 16:05:17 +00:00
|
|
|
function _createGuildRoomNote() {
|
2026-07-29 08:29:29 +00:00
|
|
|
const self = this;
|
|
|
|
|
const tmp = callback((arg0, arg1, arg2, arg3) => {
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_0 = arg0;
|
|
|
|
|
closure_1 = arg1;
|
|
|
|
|
closure_2 = arg2;
|
|
|
|
|
closure_3 = arg3;
|
|
|
|
|
c8 = 0;
|
|
|
|
|
c9 = 0;
|
|
|
|
|
c7 = 0;
|
2026-07-29 08:29:29 +00:00
|
|
|
return (function*(arg0, arg1, arg2, arg3) {
|
2026-08-14 17:33:39 +00:00
|
|
|
if (c9 === 2) {
|
2026-07-29 08:29:29 +00:00
|
|
|
c9 = 3;
|
2026-08-14 17:33:39 +00:00
|
|
|
HermesBuiltin.throwTypeError();
|
|
|
|
|
} else if (tmp6 === 3) {
|
|
|
|
|
if (arg0 === 1) {
|
|
|
|
|
throw arg1;
|
|
|
|
|
} else if (arg0 === 2) {
|
|
|
|
|
let obj = { value: null, done: true };
|
|
|
|
|
obj[0] = arg1;
|
|
|
|
|
return obj;
|
|
|
|
|
} else {
|
2026-08-24 06:08:38 +00:00
|
|
|
return { value: "HermesInternal", done: null };
|
2026-08-14 17:33:39 +00:00
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
try {
|
|
|
|
|
c9 = 2;
|
|
|
|
|
if (0 === c8) {
|
|
|
|
|
if (arg0 === 1) {
|
|
|
|
|
c9 = 3;
|
|
|
|
|
throw arg1;
|
|
|
|
|
} else if (arg0 === 2) {
|
|
|
|
|
c9 = 3;
|
|
|
|
|
obj = { value: null, done: true };
|
|
|
|
|
obj[0] = arg1;
|
|
|
|
|
return obj;
|
|
|
|
|
} else {
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_5 = tmp3;
|
|
|
|
|
closure_4 = tmp7;
|
|
|
|
|
dependencyMap = undefined;
|
2026-08-15 05:55:55 +00:00
|
|
|
const _Date = Date;
|
|
|
|
|
const fromTimestampResult = callback2(11).fromTimestamp(Date.now());
|
|
|
|
|
dependencyMap = fromTimestampResult;
|
|
|
|
|
const obj9 = callback2(11);
|
2026-08-24 06:08:38 +00:00
|
|
|
obj1 = { type: "GUILD_ROOM_NOTE_CREATE_START", roomId: null, localId: null, position: null };
|
2026-08-15 05:55:55 +00:00
|
|
|
obj1[1] = callback2;
|
|
|
|
|
obj1[2] = fromTimestampResult;
|
2026-08-24 06:08:38 +00:00
|
|
|
obj1[3] = closure_3;
|
2026-08-15 05:55:55 +00:00
|
|
|
callback2(709).dispatch(obj1);
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_1_15(callback2);
|
|
|
|
|
c7 = 1;
|
2026-08-15 05:55:55 +00:00
|
|
|
const obj2 = { object_type: null, content: null, position: null };
|
2026-08-24 06:08:38 +00:00
|
|
|
obj2[0] = callback(9904).GuildRoomObjectTypes.NOTE;
|
2026-08-15 05:55:55 +00:00
|
|
|
obj2[1] = dependencyMap;
|
2026-08-24 06:08:38 +00:00
|
|
|
obj2[2] = closure_3;
|
2026-08-14 17:33:39 +00:00
|
|
|
c8 = 2;
|
|
|
|
|
c9 = 1;
|
2026-08-15 05:55:55 +00:00
|
|
|
let obj3 = { value: null, done: false };
|
2026-08-24 06:08:38 +00:00
|
|
|
obj3[0] = closure_1_10(callback, callback2, obj2);
|
2026-08-15 05:55:55 +00:00
|
|
|
return obj3;
|
2026-08-14 17:33:39 +00:00
|
|
|
}
|
|
|
|
|
} else if (1 === tmp7) {
|
|
|
|
|
c7 = 0;
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_3 = closure_6;
|
2026-08-15 05:55:55 +00:00
|
|
|
obj3 = callback2(709);
|
|
|
|
|
const obj4 = { type: "GUILD_ROOM_NOTE_CREATE_FAILURE", roomId: null, localId: null };
|
|
|
|
|
obj4[1] = callback2;
|
|
|
|
|
obj4[2] = dependencyMap;
|
|
|
|
|
obj3.dispatch(obj4);
|
2026-08-24 06:08:38 +00:00
|
|
|
throw closure_3;
|
2026-08-14 17:33:39 +00:00
|
|
|
} else if (arg0 === 1) {
|
|
|
|
|
c9 = 3;
|
|
|
|
|
throw arg1;
|
|
|
|
|
} else if (arg0 === 2) {
|
|
|
|
|
c7 = 0;
|
|
|
|
|
c9 = 3;
|
2026-08-15 05:55:55 +00:00
|
|
|
const obj5 = { value: null, done: true };
|
|
|
|
|
obj5[0] = arg1;
|
|
|
|
|
return obj5;
|
2026-08-14 17:33:39 +00:00
|
|
|
} else {
|
|
|
|
|
if (callback2 !== callback) {
|
2026-08-24 06:08:38 +00:00
|
|
|
obj = callback(9911);
|
2026-08-15 05:55:55 +00:00
|
|
|
const obj6 = { interactionType: "note_created", guildId: null, channelId: null };
|
|
|
|
|
obj6[1] = callback;
|
|
|
|
|
obj6[2] = callback2;
|
|
|
|
|
const result = obj.trackGuildRoomObjectInteracted(obj6);
|
2026-08-14 17:33:39 +00:00
|
|
|
}
|
|
|
|
|
c7 = 0;
|
|
|
|
|
c9 = 3;
|
2026-08-24 06:08:38 +00:00
|
|
|
return { value: "HermesInternal", done: null };
|
2026-08-14 17:33:39 +00:00
|
|
|
}
|
2026-08-15 05:55:55 +00:00
|
|
|
} catch (tmp27) {
|
|
|
|
|
closure_6 = tmp27;
|
2026-08-14 17:33:39 +00:00
|
|
|
if (tmp4 === c7) {
|
|
|
|
|
c9 = tmp2;
|
2026-08-15 05:55:55 +00:00
|
|
|
throw tmp27;
|
2026-08-14 17:33:39 +00:00
|
|
|
} else {
|
|
|
|
|
c8 = tmp;
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})();
|
|
|
|
|
});
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_16 = tmp;
|
2026-07-29 08:29:29 +00:00
|
|
|
const apply = tmp.apply;
|
|
|
|
|
if (typeof apply === "unknown") {
|
|
|
|
|
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
|
|
|
|
} else {
|
|
|
|
|
applyArgumentsResult = apply(self, arguments);
|
|
|
|
|
}
|
|
|
|
|
return applyArgumentsResult;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
function _deleteGuildRoomNote() {
|
2026-07-29 08:29:29 +00:00
|
|
|
const self = this;
|
|
|
|
|
const tmp = callback((arg0, arg1, arg2) => {
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_0 = arg0;
|
|
|
|
|
closure_1 = arg1;
|
|
|
|
|
closure_2 = arg2;
|
|
|
|
|
c5 = 0;
|
|
|
|
|
c6 = 0;
|
2026-07-29 08:29:29 +00:00
|
|
|
return (function*(arg0, arg1, arg2) {
|
|
|
|
|
if (c6 === 2) {
|
|
|
|
|
c6 = 3;
|
|
|
|
|
HermesBuiltin.throwTypeError();
|
|
|
|
|
} else if (tmp4 === 3) {
|
|
|
|
|
if (arg0 === 1) {
|
|
|
|
|
throw arg1;
|
|
|
|
|
} else if (arg0 === 2) {
|
|
|
|
|
let obj = { value: null, done: true };
|
|
|
|
|
obj[0] = arg1;
|
|
|
|
|
return obj;
|
|
|
|
|
} else {
|
2026-08-24 06:08:38 +00:00
|
|
|
return { value: "HermesInternal", done: null };
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
try {
|
|
|
|
|
c6 = 2;
|
|
|
|
|
if (0 === c5) {
|
|
|
|
|
if (arg0 === 1) {
|
|
|
|
|
c6 = 3;
|
|
|
|
|
throw arg1;
|
|
|
|
|
} else if (arg0 === 2) {
|
|
|
|
|
c6 = 3;
|
|
|
|
|
obj = { value: null, done: true };
|
|
|
|
|
obj[0] = arg1;
|
|
|
|
|
return obj;
|
|
|
|
|
} else {
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_4 = tmp5;
|
|
|
|
|
closure_3 = tmp2;
|
|
|
|
|
obj1 = { object_type: null };
|
|
|
|
|
obj1[0] = callback(9904).GuildRoomObjectTypes.NOTE;
|
2026-07-29 08:29:29 +00:00
|
|
|
c5 = 1;
|
|
|
|
|
c6 = 1;
|
|
|
|
|
const obj2 = { value: null, done: false };
|
2026-08-24 06:08:38 +00:00
|
|
|
obj2[0] = closure_1_13(callback, closure_1, dependencyMap, obj1);
|
2026-07-29 08:29:29 +00:00
|
|
|
return obj2;
|
|
|
|
|
}
|
|
|
|
|
} else if (arg0 === 1) {
|
|
|
|
|
c6 = 3;
|
|
|
|
|
throw arg1;
|
|
|
|
|
} else if (arg0 === 2) {
|
|
|
|
|
c6 = 3;
|
|
|
|
|
const obj3 = { value: null, done: true };
|
|
|
|
|
obj3[0] = arg1;
|
|
|
|
|
return obj3;
|
|
|
|
|
} else {
|
|
|
|
|
if (closure_1 !== callback) {
|
2026-08-24 06:08:38 +00:00
|
|
|
obj = callback(9911);
|
2026-07-29 08:29:29 +00:00
|
|
|
const obj4 = { interactionType: "note_deleted", guildId: null, channelId: null };
|
|
|
|
|
obj4[1] = callback;
|
|
|
|
|
obj4[2] = closure_1;
|
|
|
|
|
const result = obj.trackGuildRoomObjectInteracted(obj4);
|
|
|
|
|
}
|
|
|
|
|
c6 = 3;
|
2026-08-24 06:08:38 +00:00
|
|
|
return { value: "HermesInternal", done: null };
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
} catch (tmp15) {
|
|
|
|
|
c6 = tmp;
|
|
|
|
|
throw tmp15;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})();
|
|
|
|
|
});
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_17 = tmp;
|
2026-07-29 08:29:29 +00:00
|
|
|
const apply = tmp.apply;
|
|
|
|
|
if (typeof apply === "unknown") {
|
|
|
|
|
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
|
|
|
|
} else {
|
|
|
|
|
applyArgumentsResult = apply(self, arguments);
|
|
|
|
|
}
|
|
|
|
|
return applyArgumentsResult;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
function _fetchGuildRoom() {
|
2026-07-29 08:29:29 +00:00
|
|
|
const self = this;
|
|
|
|
|
const tmp = callback((arg0, arg1) => {
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_0 = arg0;
|
|
|
|
|
closure_1 = arg1;
|
|
|
|
|
c6 = 0;
|
|
|
|
|
c7 = 0;
|
|
|
|
|
c5 = 0;
|
2026-07-29 08:29:29 +00:00
|
|
|
return (function*(arg0, arg1) {
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_3 = tmp3;
|
|
|
|
|
c5 = 1;
|
|
|
|
|
const HTTP = callback(closure_1_2[4]).HTTP;
|
|
|
|
|
obj1 = { url: null, rejectWithError: true };
|
2026-08-14 17:33:39 +00:00
|
|
|
obj1[0] = c6.GUILD_ROOM(callback, lib);
|
|
|
|
|
yield HTTP.get(obj1);
|
|
|
|
|
if (1 === tmp7) {
|
|
|
|
|
c5 = 0;
|
2026-08-24 06:08:38 +00:00
|
|
|
const obj4 = callback(9920);
|
2026-08-14 17:33:39 +00:00
|
|
|
obj4.handleGuildRoomError({ silent: true });
|
2026-08-24 06:08:38 +00:00
|
|
|
c7 = 3;
|
2026-08-14 17:33:39 +00:00
|
|
|
} else if (arg0 === 1) {
|
|
|
|
|
c7 = 3;
|
|
|
|
|
throw arg1;
|
|
|
|
|
} else if (arg0 !== 2) {
|
|
|
|
|
lib = arg1;
|
2026-08-24 06:08:38 +00:00
|
|
|
const obj = callback(9905);
|
|
|
|
|
dependencyMap = obj.serverGuildRoomToClient(lib.body);
|
2026-08-14 17:33:39 +00:00
|
|
|
obj1 = lib(709);
|
|
|
|
|
const obj3 = { type: "GUILD_ROOM_FETCH_SUCCESS", guildId: null, room: null };
|
|
|
|
|
obj3[1] = callback;
|
|
|
|
|
obj3[2] = dependencyMap;
|
|
|
|
|
obj1.dispatch(obj3);
|
|
|
|
|
c5 = 0;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
2026-08-14 17:33:39 +00:00
|
|
|
c5 = 0;
|
|
|
|
|
return arg1;
|
2026-07-29 08:29:29 +00:00
|
|
|
})();
|
|
|
|
|
});
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_18 = tmp;
|
2026-07-29 08:29:29 +00:00
|
|
|
const apply = tmp.apply;
|
|
|
|
|
if (typeof apply === "unknown") {
|
|
|
|
|
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
|
|
|
|
} else {
|
|
|
|
|
applyArgumentsResult = apply(self, arguments);
|
|
|
|
|
}
|
|
|
|
|
return applyArgumentsResult;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
let closure_7 = { x: 0, y: 0 };
|
2026-08-24 06:08:38 +00:00
|
|
|
let result = require("set").fileFinishedImporting("modules/guild_rooms/GuildRoomActionCreators.shared.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const guildRoomConnect = function guildRoomConnect() {
|
2026-07-29 08:29:29 +00:00
|
|
|
const self = this;
|
|
|
|
|
const apply = _guildRoomConnect.apply;
|
|
|
|
|
if (typeof apply === "unknown") {
|
|
|
|
|
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
|
|
|
|
} else {
|
|
|
|
|
applyArgumentsResult = apply(self, arguments);
|
|
|
|
|
}
|
|
|
|
|
return applyArgumentsResult;
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
2026-07-30 10:14:41 +00:00
|
|
|
export const guildRoomDisconnect = function guildRoomDisconnect(guildId, channelId) {
|
2026-08-24 06:08:38 +00:00
|
|
|
let obj = dispatcherDefault;
|
2026-07-30 10:14:41 +00:00
|
|
|
obj = { type: "GUILD_ROOM_DISCONNECT", userId: id.getId(), roomId: channelId };
|
|
|
|
|
obj.dispatch(obj);
|
|
|
|
|
if (channelId !== guildId) {
|
|
|
|
|
obj = { guildId: null, channelId: null };
|
|
|
|
|
obj[0] = guildId;
|
|
|
|
|
obj[1] = channelId;
|
2026-08-24 06:08:38 +00:00
|
|
|
const result = getBaseProperties.trackGuildRoomUserDisconnected(obj);
|
|
|
|
|
const obj3 = getBaseProperties;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
2026-07-30 10:14:41 +00:00
|
|
|
export const guildRoomLocalDisconnect = function guildRoomLocalDisconnect(userId, oldChannelId) {
|
2026-08-24 06:08:38 +00:00
|
|
|
let obj = dispatcherDefault;
|
2026-07-30 10:14:41 +00:00
|
|
|
obj = { type: "GUILD_ROOM_DISCONNECT", userId, roomId: oldChannelId };
|
2026-07-24 07:16:23 +00:00
|
|
|
obj.dispatch(obj);
|
|
|
|
|
};
|
2026-07-20 16:05:17 +00:00
|
|
|
export const guildRoomUpdate = function guildRoomUpdate() {
|
2026-07-29 08:29:29 +00:00
|
|
|
const self = this;
|
|
|
|
|
const apply = _guildRoomUpdate.apply;
|
|
|
|
|
if (typeof apply === "unknown") {
|
|
|
|
|
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
|
|
|
|
} else {
|
|
|
|
|
applyArgumentsResult = apply(self, arguments);
|
|
|
|
|
}
|
|
|
|
|
return applyArgumentsResult;
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
2026-08-14 17:33:39 +00:00
|
|
|
export const clearGuildRoomPendingPosition = function clearGuildRoomPendingPosition() {
|
2026-08-24 06:08:38 +00:00
|
|
|
dispatcherDefault.dispatch({ type: "GUILD_ROOM_LOCAL_POSITION_CLEARED" });
|
2026-08-14 17:33:39 +00:00
|
|
|
};
|
2026-07-20 16:05:17 +00:00
|
|
|
export const selectGuildRoomLocalPosition = function selectGuildRoomLocalPosition(position) {
|
2026-08-24 06:08:38 +00:00
|
|
|
let obj = dispatcherDefault;
|
2026-07-20 16:05:17 +00:00
|
|
|
obj = { type: "GUILD_ROOM_LOCAL_POSITION_REQUESTED", position };
|
|
|
|
|
obj.dispatch(obj);
|
|
|
|
|
};
|
2026-08-14 17:33:39 +00:00
|
|
|
export const guildRoomToggleLayout = function guildRoomToggleLayout(roomId) {
|
2026-08-24 06:08:38 +00:00
|
|
|
let obj = dispatcherDefault;
|
2026-08-14 17:33:39 +00:00
|
|
|
obj = { type: "GUILD_ROOM_TOGGLE_LAYOUT", roomId };
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.dispatch(obj);
|
|
|
|
|
};
|
|
|
|
|
export { guildRoomObjectCreate };
|
|
|
|
|
export const guildRoomObjectUpdate = function guildRoomObjectUpdate() {
|
2026-07-29 08:29:29 +00:00
|
|
|
const self = this;
|
|
|
|
|
const apply = _guildRoomObjectUpdate.apply;
|
|
|
|
|
if (typeof apply === "unknown") {
|
|
|
|
|
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
|
|
|
|
} else {
|
|
|
|
|
applyArgumentsResult = apply(self, arguments);
|
|
|
|
|
}
|
|
|
|
|
return applyArgumentsResult;
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
|
|
|
|
export { guildRoomObjectDelete };
|
2026-07-21 06:55:02 +00:00
|
|
|
export const startPendingGuildRoomNote = function startPendingGuildRoomNote(roomId) {
|
2026-08-24 06:08:38 +00:00
|
|
|
let obj = dispatcherDefault;
|
2026-07-21 06:55:02 +00:00
|
|
|
obj = { type: "GUILD_ROOM_PENDING_NOTE_START", roomId };
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.dispatch(obj);
|
|
|
|
|
};
|
2026-07-21 06:55:02 +00:00
|
|
|
export const placePendingGuildRoomNote = function placePendingGuildRoomNote(roomId, position) {
|
2026-08-24 06:08:38 +00:00
|
|
|
let obj = dispatcherDefault;
|
2026-07-21 06:55:02 +00:00
|
|
|
obj = { type: "GUILD_ROOM_PENDING_NOTE_PLACE", roomId, position };
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.dispatch(obj);
|
|
|
|
|
};
|
2026-07-21 06:55:02 +00:00
|
|
|
export { deletePendingGuildRoomNote };
|
2026-07-20 16:05:17 +00:00
|
|
|
export const createGuildRoomNote = function createGuildRoomNote() {
|
2026-07-29 08:29:29 +00:00
|
|
|
const self = this;
|
|
|
|
|
const apply = _createGuildRoomNote.apply;
|
|
|
|
|
if (typeof apply === "unknown") {
|
|
|
|
|
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
|
|
|
|
} else {
|
|
|
|
|
applyArgumentsResult = apply(self, arguments);
|
|
|
|
|
}
|
|
|
|
|
return applyArgumentsResult;
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
|
|
|
|
export const deleteGuildRoomNote = function deleteGuildRoomNote() {
|
2026-07-29 08:29:29 +00:00
|
|
|
const self = this;
|
|
|
|
|
const apply = _deleteGuildRoomNote.apply;
|
|
|
|
|
if (typeof apply === "unknown") {
|
|
|
|
|
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
|
|
|
|
} else {
|
|
|
|
|
applyArgumentsResult = apply(self, arguments);
|
|
|
|
|
}
|
|
|
|
|
return applyArgumentsResult;
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
2026-08-14 17:33:39 +00:00
|
|
|
export const fetchGuildRoom = function fetchGuildRoom(c6, c5) {
|
2026-07-29 08:29:29 +00:00
|
|
|
const self = this;
|
|
|
|
|
const apply = _fetchGuildRoom.apply;
|
|
|
|
|
if (typeof apply === "unknown") {
|
|
|
|
|
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
|
|
|
|
|
} else {
|
|
|
|
|
applyArgumentsResult = apply(self, arguments);
|
|
|
|
|
}
|
|
|
|
|
return applyArgumentsResult;
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
2026-08-14 17:33:39 +00:00
|
|
|
export const setGuildRoomVideoOverlayVisibility = function setGuildRoomVideoOverlayVisibility(value) {
|
|
|
|
|
const videoOverlayVisibility = store.getVideoOverlayVisibility();
|
2026-08-24 06:08:38 +00:00
|
|
|
let obj = dispatcherDefault;
|
2026-08-14 17:33:39 +00:00
|
|
|
obj = { type: "GUILD_ROOM_SET_VIDEO_OVERLAY_VISIBILITY", value };
|
|
|
|
|
obj.dispatch(obj);
|
|
|
|
|
if (value !== videoOverlayVisibility) {
|
|
|
|
|
let str = "video_overlay_closed";
|
|
|
|
|
if (value) {
|
|
|
|
|
str = "video_overlay_opened";
|
|
|
|
|
}
|
|
|
|
|
obj = { interactionType: null, channelId: null };
|
|
|
|
|
obj[0] = str;
|
|
|
|
|
obj[1] = arg1;
|
2026-08-24 06:08:38 +00:00
|
|
|
const result = getBaseProperties.trackGuildRoomInteracted(obj);
|
|
|
|
|
const obj3 = getBaseProperties;
|
2026-08-14 17:33:39 +00:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
export const maybeSetGuildRoomVideoOverlay = function maybeSetGuildRoomVideoOverlay(arg0, guildId, channelId) {
|
2026-08-24 06:08:38 +00:00
|
|
|
let obj = experimentDefault;
|
2026-08-14 17:33:39 +00:00
|
|
|
obj = { guildId, location: "maybeSetGuildRoomVideoOverlay" };
|
|
|
|
|
if (obj.getCurrentConfig(obj, { autoTrackExposure: false }).enabled) {
|
|
|
|
|
const videoOverlayVisibility = store.getVideoOverlayVisibility();
|
|
|
|
|
obj = { type: "GUILD_ROOM_SET_VIDEO_OVERLAY_VISIBILITY", value: null };
|
|
|
|
|
obj[1] = arg0;
|
2026-08-24 06:08:38 +00:00
|
|
|
dispatcherDefault.dispatch(obj);
|
2026-08-14 17:33:39 +00:00
|
|
|
if (arg0 !== videoOverlayVisibility) {
|
|
|
|
|
let str = "video_overlay_closed";
|
|
|
|
|
if (arg0) {
|
|
|
|
|
str = "video_overlay_opened";
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
obj1 = { interactionType: null, channelId: null };
|
2026-08-14 17:33:39 +00:00
|
|
|
obj1[0] = str;
|
|
|
|
|
obj1[1] = channelId;
|
2026-08-24 06:08:38 +00:00
|
|
|
const result = getBaseProperties.trackGuildRoomInteracted(obj1);
|
|
|
|
|
const obj5 = getBaseProperties;
|
2026-08-14 17:33:39 +00:00
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
const tmpResult = dispatcherDefault;
|
2026-08-14 17:33:39 +00:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
export const setGuildRoomRememberVideoOverlayVisibility = function setGuildRoomRememberVideoOverlayVisibility(rememberVideoOverlayVisibility) {
|
2026-08-24 06:08:38 +00:00
|
|
|
let obj = dispatcherDefault;
|
2026-08-14 17:33:39 +00:00
|
|
|
obj = { type: "GUILD_ROOM_SET_REMEMBER_VIDEO_OVERLAY_VISIBILITY", rememberVideoOverlayVisibility };
|
|
|
|
|
obj.dispatch(obj);
|
|
|
|
|
obj = { rememberVideoOverlayVisibility };
|
2026-08-24 06:08:38 +00:00
|
|
|
const result = getBaseProperties.trackGuildRoomSettingsUpdate(obj);
|
2026-08-14 17:33:39 +00:00
|
|
|
};
|