Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,42 @@
|
||||
/* Metro module 12133; source: modules/lobbies/LobbyUtils.tsx; dependencies: [3784, 661, 566, 2] */
|
||||
function _fun93161(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12319:6, offset: 0x020a93f8, size: 153 bytes, params: 8, frame: 19
|
||||
let env0_0 = require;
|
||||
const closure = canUnlinkLobbyChannel;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
|
||||
const env0_3 = (require(661) /* metro dependency 661: Constants */).Permissions;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/lobbies/LobbyUtils.tsx');
|
||||
exports.canUnlinkLobbyChannel = closure;
|
||||
exports.useCanUnlinkLobbyChannel = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return require(dependencyMap[2]).useStateFromStores([PermissionStore], _fun93164);
|
||||
};
|
||||
}
|
||||
|
||||
function canUnlinkLobbyChannel(a0) { // fn#93162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12319:128, offset: 0x020a9491, size: 127 bytes, params: 2, frame: 15
|
||||
var r1;
|
||||
var r0;
|
||||
let value = a1;
|
||||
const r4 = value !== undefined ? value : PermissionStore;
|
||||
value = a0 != null;
|
||||
if (value) {
|
||||
r1 = a0.linkedLobby != null && r4.can(Permissions.MANAGE_CHANNELS, a0);
|
||||
r1 = r1 && r4.can(Permissions.VIEW_CHANNEL, a0);
|
||||
r1 = r1 && r4.can(Permissions.SEND_MESSAGES, a0);
|
||||
r0 = r1;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function useCanUnlinkLobbyChannel(a0) { // fn#93163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12319:420, offset: 0x020a9510, size: 66 bytes, params: 2, frame: 14
|
||||
const env0_0 = a0;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([PermissionStore], _fun93164);
|
||||
}
|
||||
|
||||
function _fun93164() { // fn#93164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12319:496, offset: 0x020a9552, size: 28 bytes, params: 1, frame: 13
|
||||
return canUnlinkLobbyChannel(env0_0, PermissionStore);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
/* Metro module 15866; source: modules/lobbies/hooks/useChannelsAllowedToUnlink.tsx; dependencies: [1935, 3784, 12133, 566, 2] */
|
||||
function _fun122094(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#122094, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16074:6, offset: 0x02559c90, size: 168 bytes, params: 8, frame: 20
|
||||
let env0_0 = require;
|
||||
const closure = getChannelsAllowedToUnlink;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const guildChannelStore = importDefault(1935) /* metro dependency 1935: GuildChannelStore */;
|
||||
const env0_3 = (require(1935) /* metro dependency 1935: GuildChannelStore */).GUILD_SELECTABLE_CHANNELS_KEY;
|
||||
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/lobbies/hooks/useChannelsAllowedToUnlink.tsx');
|
||||
exports.getChannelsAllowedToUnlink = closure;
|
||||
exports.useChannelsAllowedToUnlink = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return require(dependencyMap[3]).useStateFromStoresArray([PermissionStore, GuildChannelStore], _fun122099);
|
||||
};
|
||||
}
|
||||
|
||||
function getChannelsAllowedToUnlink(a0) { // fn#122095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16074:156, offset: 0x02559d38, size: 109 bytes, params: 2, frame: 14
|
||||
var r0;
|
||||
let value = a1;
|
||||
const value2 = a2;
|
||||
const r2 = value !== undefined ? value : GuildChannelStore;
|
||||
if (value2 !== undefined) {
|
||||
}
|
||||
if (a0 == null) {
|
||||
r0 = [];
|
||||
} else {
|
||||
value = r2.getChannels(a0);
|
||||
value = value[GUILD_SELECTABLE_CHANNELS_KEY].filter(_fun122096);
|
||||
value = value.map(function(a0) {
|
||||
return a0.channel;
|
||||
});
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function useChannelsAllowedToUnlink(a0) { // fn#122098, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16074:488, offset: 0x02559ddb, size: 75 bytes, params: 2, frame: 15
|
||||
const env0_0 = a0;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([PermissionStore, GuildChannelStore],
|
||||
_fun122099);
|
||||
}
|
||||
|
||||
function _fun122096({channel}) { // fn#122096, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16074:249, offset: 0x02559da5, size: 54 bytes, params: 2, frame: 13
|
||||
const value = environment.__proto__;
|
||||
return (require(12133) /* metro dependency 12133: LobbyUtils */).canUnlinkLobbyChannel(channel, env0_0);
|
||||
}
|
||||
|
||||
function _fun122099() { // fn#122099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16074:573, offset: 0x02559e26, size: 33 bytes, params: 1, frame: 15
|
||||
return getChannelsAllowedToUnlink(env0_0, GuildChannelStore, PermissionStore);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user