Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,79 @@
|
||||
/* Metro module 5067; source: modules/guild_settings/integrations/permission/IntegrationPermissionUtils.tsx; dependencies: [57, 1909, 5068, 2] */
|
||||
function _fun43829(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#43829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5245:6, offset: 0x01160477, size: 173 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const closure = function(a0, a1) {
|
||||
return '' + a0 + ':' + a1;
|
||||
};
|
||||
let Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(57) /* metro dependency 57 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/integrations/permission/IntegrationPermissionUtils.tsx');
|
||||
exports.commandName = function(a0, a1) {
|
||||
var value = a1;
|
||||
var CHAT = require(dependencyMap[1]).ApplicationCommandType.CHAT;
|
||||
return a0 !== CHAT ? value : '/' + value;
|
||||
};
|
||||
exports.commandPermissionChannels = function(a0) {
|
||||
var commandPermissionsBinding = commandPermissions;
|
||||
var CHANNEL = require(dependencyMap[2]).ApplicationCommandPermissionType.CHANNEL;
|
||||
return commandPermissionsBinding(a0, [CHANNEL]);
|
||||
};
|
||||
exports.commandPermissionMembersRoles = function(a0) {
|
||||
var commandPermissionsBinding = commandPermissions;
|
||||
var ROLE = require(dependencyMap[2]).ApplicationCommandPermissionType.ROLE;
|
||||
return commandPermissionsBinding(a0, [ROLE, require(dependencyMap[2]).ApplicationCommandPermissionType.USER]);
|
||||
};
|
||||
exports.toPermissionKey = closure;
|
||||
exports.keyPermissions = function(a0) {
|
||||
var Object = global.Object;
|
||||
return Object.fromEntries(a0.map(_fun43836));
|
||||
};
|
||||
}
|
||||
|
||||
function commandPermissions(a0, a1) { // fn#43831, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5245:154, offset: 0x01160524, size: 112 bytes, params: 3, frame: 22
|
||||
var r2;
|
||||
var property;
|
||||
var value4;
|
||||
var property2;
|
||||
var includes;
|
||||
var type;
|
||||
var value5;
|
||||
const object2 = {};
|
||||
const Object = global.Object;
|
||||
const value = Object.entries(a0);
|
||||
let length = value.length;
|
||||
const value2 = 0;
|
||||
if (value2 < length) {
|
||||
r2 = value2;
|
||||
while (true) {
|
||||
property = value[r2];
|
||||
value4 = env0_2(property, 2);
|
||||
property = value4[value2];
|
||||
property2 = value4[1];
|
||||
includes = a1.includes;
|
||||
type = property2.type;
|
||||
if (Reflect.apply(includes, a1, [type])) {
|
||||
object2[property] = property2;
|
||||
}
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
length = value.length;
|
||||
if (value5 < length) {
|
||||
r2 = value5;
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return object2;
|
||||
}
|
||||
|
||||
function keyPermissions(a0) { // fn#43835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5245:915, offset: 0x01160661, size: 41 bytes, params: 2, frame: 13
|
||||
const Object = global.Object;
|
||||
return Object.fromEntries(a0.map(_fun43836));
|
||||
}
|
||||
|
||||
function _fun43836(a0) { // fn#43836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5245:975, offset: 0x0116068a, size: 42 bytes, params: 2, frame: 14
|
||||
const value = environment.__proto__;
|
||||
return [toPermissionKey(a0.id, a0.type), a0];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user