Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,61 @@
|
||||
/* Metro module 5108; source: modules/guild_onboarding/DefaultChannelUtils.tsx; dependencies: [1936, 1379, 661, 483, 566, 3789, 2] */
|
||||
function _fun44630(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#44630, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5286:6, offset: 0x01175a90, size: 189 bytes, params: 8, frame: 19
|
||||
let env0_0 = require;
|
||||
const getDefaultPermissionsForChannel = function(a0) {
|
||||
return a0 == null ? Permissions.VIEW_CHANNEL : ChannelTypesSets.GUILD_VOCAL.has(a0.type) ? importAll(dependencyMap[3]).combine(Permissions.VIEW_CHANNEL,
|
||||
|
||||
Permissions.CONNECT) : Permissions.VIEW_CHANNEL;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const gatedChannelStore = importDefault(1936) /* metro dependency 1936: GatedChannelStore */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_5 = constantsModule.ChannelTypesSets;
|
||||
const env0_6 = constantsModule.Permissions;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_onboarding/DefaultChannelUtils.tsx');
|
||||
exports.useCanChannelBeDefault = function(a0, a1) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
return require(dependencyMap[4]).useStateFromStores([GatedChannelStore, ChannelStore], _fun44633);
|
||||
};
|
||||
exports.canChannelBeDefault = canChannelBeDefault;
|
||||
}
|
||||
|
||||
function useCanChannelBeDefault(a0, a1) { // fn#44632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5286:413, offset: 0x01175bbc, size: 79 bytes, params: 3, frame: 15
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([GatedChannelStore, ChannelStore],
|
||||
_fun44633);
|
||||
}
|
||||
|
||||
function canChannelBeDefault(a0, a1) { // fn#44634, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5286:640, offset: 0x01175c67, size: 101 bytes, params: 3, frame: 17
|
||||
var r0;
|
||||
var moduleValue;
|
||||
const defaultPermissionsForChannel = getDefaultPermissionsForChannel(ChannelStore.getChannel(a1));
|
||||
const isChannelGated2 = GatedChannelStore.isChannelGated(a0, a1);
|
||||
if (isChannelGated2) {
|
||||
r0 = isChannelGated2;
|
||||
} else {
|
||||
moduleValue = importAll(3789) /* metro dependency 3789: PermissionUtils */;
|
||||
r0 = moduleValue.canEveryoneRole(defaultPermissionsForChannel, ChannelStore.getChannel(a1));
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun44633() { // fn#44633, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5286:491, offset: 0x01175c0b, size: 92 bytes, params: 1, frame: 17
|
||||
var r0;
|
||||
let value = environment.__proto__;
|
||||
const channel = ChannelStore.getChannel(require);
|
||||
const defaultPermissionsForChannel = getDefaultPermissionsForChannel(channel);
|
||||
const isChannelGated2 = GatedChannelStore.isChannelGated(env0_0, require);
|
||||
if (isChannelGated2) {
|
||||
r0 = isChannelGated2;
|
||||
} else {
|
||||
value = importAll(3789) /* metro dependency 3789: PermissionUtils */;
|
||||
value = value.canEveryoneRole(defaultPermissionsForChannel, channel);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user