This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

File diff suppressed because it is too large. Load diff
@@ -1,4 +1,9 @@
/* Metro module 14491; source: modules/permissions/useFirstGloballyViewbleGuildChannelId.tsx; dependencies: [1935, 482, 566, 3789, 2] */
import GuildChannelStore from '../../stores/GuildChannelStore.tsx'; /* Metro dependency 1935 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../external/discord_common/js/shared/Constants.tsx'; /* Metro dependency 482 */
import * as FluxModule from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
function _fun109674(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#109674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14688:6, offset: 0x023565b2, size: 165 bytes, params: 8, frame: 18
let env0_0 = require;
const _arrayLikeToArray_109677 = function(a0, a1) {
@@ -46,138 +51,143 @@ function _fun109674(global, require, importDefault, importAll, module, exports,
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const guildChannelStore = importDefault(1935) /* metro dependency 1935: GuildChannelStore */;
const env0_4 = (require(482) /* metro dependency 482: Constants */).Permissions;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/permissions/useFirstGloballyViewbleGuildChannelId.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/permissions/useFirstGloballyViewbleGuildChannelId.tsx');
exports.useFirstGloballyViewbleGuildChannelId = function(a0) {
var env0_0 = a0;
return require(dependencyMap[2]).useStateFromStores([GuildChannelStore], _fun109679, [a0]);
};
}
function _createForOfIteratorHelperLoose_109675(a0, a1) { // fn#109675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14688:133, offset: 0x02356657, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
const Array = global.Array;
if (Array.isArray(a0)) {
function _createForOfIteratorHelperLoose_109675(a0, a1) { // fn#109675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14688:133, offset: 0x02356657, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
return _fun109676;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_109677(a0, value);
r5 = value;
} else {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun109676;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_109677(a0, value);
r6 = value;
r5 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
value = _arrayLikeToArray_109677(a0, value);
r6 = value;
} else {
r6 = value;
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_109677(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
r5 = r6;
} else {
r5 = value;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun109676;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
}
function useFirstGloballyViewbleGuildChannelId(a0) { // fn#109678, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14688:1180, offset: 0x023567cb, size: 75 bytes, params: 2, frame: 16
const env0_0 = a0;
return (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildChannelStore], _fun109679, [a0]);
}
function _fun109679() { // fn#109679, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14688:1270, offset: 0x02356816, size: 182 bytes, params: 1, frame: 20
var r5;
var id;
var value2;
var _createForOfIteratorHelperLoose_109675Binding;
var value3;
var value4;
var value5;
var done;
var value6;
var channel;
var moduleValue;
var canEveryone;
var VIEW_CHANNEL;
var value7;
var property;
var selectableChannels;
if (env0_0 != null) {
value2 = environment.__proto__;
selectableChannels = GuildChannelStore.getSelectableChannels(env0_0);
_createForOfIteratorHelperLoose_109675Binding = _createForOfIteratorHelperLoose_109675;
value3 = undefined;
value4 = _createForOfIteratorHelperLoose_109675Binding(selectableChannels);
value5 = value4();
done = value5.done;
if (done) {
return selectableChannels == null || selectableChannels[0] == null ? value3 : selectableChannels[0].channel.id;
}
r5 = value5;
loopExit3: while (true) {
value6 = r5.value;
channel = value6.channel;
moduleValue = importAll(3789) /* metro dependency 3789: PermissionUtils */;
canEveryone = moduleValue.canEveryone;
VIEW_CHANNEL = Permissions.VIEW_CHANNEL;
if (Reflect.apply(canEveryone, moduleValue, [VIEW_CHANNEL, channel])) {
break loopExit3;
if (r5) {
}
value7 = value4();
done = value7.done;
if (done) {
if (selectableChannels == null) {
id = value3;
return _fun109676;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
function _fun109676() { // fn#109676, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14688:704, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
}
function useFirstGloballyViewbleGuildChannelId(a0) { // fn#109678, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14688:1180, offset: 0x023567cb, size: 75 bytes, params: 2, frame: 16
const env0_0 = a0;
return (FluxModule).useStateFromStores([GuildChannelStore], _fun109679, [a0]);
function _fun109679() { // fn#109679, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14688:1270, offset: 0x02356816, size: 182 bytes, params: 1, frame: 20
var r5;
var id;
var value2;
var _createForOfIteratorHelperLoose_109675Binding;
var value3;
var value4;
var value5;
var done;
var value6;
var channel;
var moduleValue;
var canEveryone;
var VIEW_CHANNEL;
var value7;
var property;
var selectableChannels;
if (env0_0 != null) {
value2 = environment.__proto__;
selectableChannels = GuildChannelStore.getSelectableChannels(env0_0);
_createForOfIteratorHelperLoose_109675Binding = _createForOfIteratorHelperLoose_109675;
value3 = undefined;
value4 = _createForOfIteratorHelperLoose_109675Binding(selectableChannels);
value5 = value4();
done = value5.done;
if (done) {
return selectableChannels == null || selectableChannels[0] == null ? value3 : selectableChannels[0].channel.id;
}
r5 = value5;
loopExit3: while (true) {
value6 = r5.value;
channel = value6.channel;
moduleValue = importAll(3789) /* metro dependency 3789: PermissionUtils */;
canEveryone = moduleValue.canEveryone;
VIEW_CHANNEL = Permissions.VIEW_CHANNEL;
if (Reflect.apply(canEveryone, moduleValue, [VIEW_CHANNEL, channel])) {
break loopExit3;
}
value7 = value4();
done = value7.done;
if (done) {
if (selectableChannels == null) {
id = value3;
continue;
}
property = selectableChannels[0];
if (property == null) {
id = value3;
continue;
}
channel = property.channel;
id = channel.id;
return id;
}
r5 = value7;
continue;
}
property = selectableChannels[0];
if (property == null) {
id = value3;
continue;
}
channel = property.channel;
id = channel.id;
return id;
return channel.id;
}
r5 = value7;
continue;
}
return channel.id;
}
}
global.__d(_fun109674, 14491, [1935, 482, 566, 3789,
2]) /* metro module 14491, dependencies: [1935, 482, 566, 3789, 2] */;
@@ -1,31 +1,127 @@
/* Metro module 9077; source: modules/permissions/useManageResourcePermissions.tsx; dependencies: [57, 31, 3784, 1878, 9076, 482, 483, 1418, 566, 2] */
import Module00057 from '../../by-id/module-00057.js'; /* Metro dependency 57 */
import UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import PermissionStore from '../../stores/PermissionStore.tsx'; /* Metro dependency 3784 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ConstantsModule from '../../external/discord_common/js/shared/Constants.tsx'; /* Metro dependency 482 */
import * as BigFlagUtilsModule from '../../external/discord_common/js/shared/utils/BigFlagUtils.tsx'; /* Metro dependency 483 */
import * as FluxModule from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as GuildRecordUtilsModule from '../../utils/GuildRecordUtils.tsx'; /* Metro dependency 1418 */
import * as PermissionsConstantsModule from '../guild_scheduled_events/PermissionsConstants.tsx'; /* Metro dependency 9076 */
function _fun70925(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#70925, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9262:6, offset: 0x01d0d4a6, size: 316 bytes, params: 8, frame: 20
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const permissionsConstantsModule = require(9076) /* metro dependency 9076: PermissionsConstants */;
const env0_7 = permissionsConstantsModule.CREATE_GUILD_EVENT_CORE_PERMISSIONS;
const env0_8 = permissionsConstantsModule.CREATE_GUILD_EVENT_STAGE_CHANNEL_PERMISSIONS;
const env0_9 = permissionsConstantsModule.CREATE_GUILD_EVENT_VOICE_CHANNEL_PERMISSIONS;
const env0_10 = (require(482) /* metro dependency 482: Constants */).Permissions;
object2 = {'canCreateExpressions': false, 'canCreateGuildEvent': false, 'canManageAllExpressions': false,
object = {'canCreateExpressions': false, 'canCreateGuildEvent': false, 'canManageAllExpressions': false,
'canManageAllEvents': false};
object2.canManageGuildExpression = function() {
object.canManageGuildExpression = function() {
return false;
};
object2.canManageGuildEvent = function() {
object.canManageGuildEvent = function() {
return false;
};
const closure = attachChannelPermissions;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/permissions/useManageResourcePermissions.tsx');
exports.attachChannelPermissions = closure;
const attachChannelPermissions2 = attachChannelPermissions;
(FileImportTrackerModule).fileFinishedImporting('modules/permissions/useManageResourcePermissions.tsx');
exports.attachChannelPermissions = attachChannelPermissions2;
exports.useManageResourcePermissions = useManageResourcePermissions;
exports.getManageResourcePermissions = getManageResourcePermissions;
function attachChannelPermissions(a0) { // fn#70929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9262:706, offset: 0x01d0d699, size: 173 bytes, params: 2, frame: 18
if (a0 == null) {
return [Permissions.CREATE_EVENTS, Permissions.MANAGE_EVENTS];
}
const r4 = a0.isGuildStageVoice() ? CREATE_GUILD_EVENT_STAGE_CHANNEL_PERMISSIONS : a0.isGuildVoice() ? CREATE_GUILD_EVENT_VOICE_CHANNEL_PERMISSIONS : CREATE_GUILD_EVENT_CORE_PERMISSIONS;
let combine = BigFlagUtilsModule.combine;
const CREATE_EVENTS = Permissions.CREATE_EVENTS;
const items2 = [Reflect.apply(combine, BigFlagUtilsModule, [r4, CREATE_EVENTS])];
combine = BigFlagUtilsModule.combine;
const MANAGE_EVENTS = Permissions.MANAGE_EVENTS;
items2[1] = Reflect.apply(combine, BigFlagUtilsModule, [r4, MANAGE_EVENTS]);
return items2;
}
function useManageResourcePermissions(a0) { // fn#70930, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9262:1068, offset: 0x01d0d746, size: 380 bytes, params: 2, frame: 24
const env0_0 = a0;
const r2 = GuildRecordUtilsModule.isGuildRecord(a0) ? [Permissions.CREATE_EVENTS,
Permissions.MANAGE_EVENTS] : attachChannelPermissions(a0);
let binding = Module00057;
const value3 = binding(r2, 2);
const env0_1 = value3[0];
const env0_2 = value3[1];
const useStateFromStoresArray = FluxModule.useStateFromStoresArray;
const value5 = binding(Reflect.apply(useStateFromStoresArray, FluxModule, [[PermissionStore], _fun70931]), 4);
const property = value5[0];
const property2 = value5[1];
const property22 = property2;
const property3 = value5[2];
const property4 = value5[3];
const currentUser = FluxModule.useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
binding = property22;
let useCallback = binding.useCallback;
const value6 = Reflect.apply(useCallback, binding, [_fun70933, [property, property2, currentUser]]);
useCallback = binding.useCallback;
return a0 == null ? env0_11 : {canCreateExpressions: property, canCreateGuildEvent: property3,
canManageAllExpressions: property2, canManageAllEvents: property4, canManageGuildExpression: value6,
canManageGuildEvent: Reflect.apply(useCallback, binding, [_fun70934, [property4, property3, currentUser]])};
function _fun70931() { // fn#70931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9262:1227, offset: 0x01d0d8c2, size: 108 bytes, params: 1, frame: 15
const permissionStoreBinding = PermissionStore;
let can = permissionStoreBinding.can;
const CREATE_GUILD_EXPRESSIONS = Permissions.CREATE_GUILD_EXPRESSIONS;
const binding = env0_0;
const items2 = [Reflect.apply(can, permissionStoreBinding, [CREATE_GUILD_EXPRESSIONS, binding])];
can = permissionStoreBinding.can;
const MANAGE_GUILD_EXPRESSIONS = Permissions.MANAGE_GUILD_EXPRESSIONS;
items2[1] = Reflect.apply(can, permissionStoreBinding, [MANAGE_GUILD_EXPRESSIONS, binding]);
items2[2] = permissionStoreBinding.can(env0_1, binding);
items2[3] = permissionStoreBinding.can(env0_2, binding);
return items2;
}
function _fun70933(a0) { // fn#70933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9262:1442, offset: 0x01d0d92e, size: 33 bytes, params: 2, frame: 17
return canManageResource(a0, currentUser, ReactModule, Module00057);
}
function _fun70934(a0) { // fn#70934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9262:1499, offset: 0x01d0d94f, size: 33 bytes, params: 2, frame: 17
return canManageResource(a0, currentUser, env0_6, env0_5);
}
}
function getManageResourcePermissions(a0) { // fn#70935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9262:1731, offset: 0x01d0d970, size: 313 bytes, params: 2, frame: 19
const value = a1;
const value2 = a2;
const r9 = value !== undefined ? value : PermissionStore;
const r8 = value2 !== undefined ? value2 : UserStore;
const env0_3 = undefined;
const value4 = env0_3(GuildRecordUtilsModule.isGuildRecord(a0) ? [Permissions.CREATE_EVENTS,
Permissions.MANAGE_EVENTS] : attachChannelPermissions(a0), 2);
const property = value4[0];
const property2 = value4[1];
let can = r9.can;
const CREATE_GUILD_EXPRESSIONS = Permissions.CREATE_GUILD_EXPRESSIONS;
const value5 = Reflect.apply(can, r9, [CREATE_GUILD_EXPRESSIONS, a0]);
can = r9.can;
const MANAGE_GUILD_EXPRESSIONS = Permissions.MANAGE_GUILD_EXPRESSIONS;
const value6 = Reflect.apply(can, r9, [MANAGE_GUILD_EXPRESSIONS, a0]);
const value7 = r9.can(property, a0);
const value8 = r9.can(property2, a0);
const env0_4 = r8.getCurrentUser();
return a0 == null ? env0_11 : {canCreateExpressions: value5, canCreateGuildEvent: value7,
canManageAllExpressions: value6, canManageAllEvents: value8,
canManageGuildExpression: canManageGuildExpression_70936, canManageGuildEvent: canManageGuildEvent_70937};
function getManageResourcePermissionsCanManageGuildExpression(a0) { // fn#70936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9262:2119, owner: getManageResourcePermissions.canManageGuildExpression, offset: 0x01d0daa9, size: 33 bytes, params: 2, frame: 17
return canManageResource(a0, env0_4, env0_1, env0_0);
}
function getManageResourcePermissionsCanManageGuildEvent(a0) { // fn#70937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9262:2169, owner: getManageResourcePermissions.canManageGuildEvent, offset: 0x01d0daca, size: 33 bytes, params: 2, frame: 17
return canManageResource(a0, env0_4, env0_3, env0_2);
}
}
}
function canManageResource(a0, a1, a2, a3) { // fn#70928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9262:483, offset: 0x01d0d5e2, size: 183 bytes, params: 5, frame: 11
@@ -74,102 +170,5 @@ function canManageResource(a0, a1, a2, a3) { // fn#70928, source: /ci/build/disc
return r0;
}
function attachChannelPermissions(a0) { // fn#70929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9262:706, offset: 0x01d0d699, size: 173 bytes, params: 2, frame: 18
if (a0 == null) {
return [Permissions.CREATE_EVENTS, Permissions.MANAGE_EVENTS];
}
const r4 = a0.isGuildStageVoice() ? CREATE_GUILD_EVENT_STAGE_CHANNEL_PERMISSIONS : a0.isGuildVoice() ? CREATE_GUILD_EVENT_VOICE_CHANNEL_PERMISSIONS : CREATE_GUILD_EVENT_CORE_PERMISSIONS;
const bigFlagUtilsModule = importAll(483) /* metro dependency 483: BigFlagUtils */;
let combine = bigFlagUtilsModule.combine;
const CREATE_EVENTS = Permissions.CREATE_EVENTS;
const items2 = [Reflect.apply(combine, bigFlagUtilsModule, [r4, CREATE_EVENTS])];
const value = bigFlagUtilsModule;
combine = value.combine;
const MANAGE_EVENTS = Permissions.MANAGE_EVENTS;
items2[1] = Reflect.apply(combine, value, [r4, MANAGE_EVENTS]);
return items2;
}
function useManageResourcePermissions(a0) { // fn#70930, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9262:1068, offset: 0x01d0d746, size: 380 bytes, params: 2, frame: 24
const env0_0 = a0;
const guildRecordUtilsModule = require(1418) /* metro dependency 1418: GuildRecordUtils */;
const r2 = guildRecordUtilsModule.isGuildRecord(a0) ? [Permissions.CREATE_EVENTS,
Permissions.MANAGE_EVENTS] : attachChannelPermissions(a0);
let binding = env0_3;
const value3 = binding(r2, 2);
const env0_1 = value3[0];
const env0_2 = value3[1];
const fluxModule = require(566) /* metro dependency 566: flux */;
const useStateFromStoresArray = fluxModule.useStateFromStoresArray;
const value5 = binding(Reflect.apply(useStateFromStoresArray, fluxModule, [[PermissionStore], _fun70931]), 4);
const property = value5[0];
const property2 = value5[1];
const env0_4 = property2;
const property3 = value5[2];
const property4 = value5[3];
const currentUser = fluxModule.useStateFromStores([UserStore], function() {
return UserStore.getCurrentUser();
});
binding = env0_4;
let useCallback = binding.useCallback;
const value6 = Reflect.apply(useCallback, binding, [_fun70933, [property, property2, currentUser]]);
useCallback = binding.useCallback;
return a0 == null ? env0_11 : {canCreateExpressions: property, canCreateGuildEvent: property3,
canManageAllExpressions: property2, canManageAllEvents: property4, canManageGuildExpression: value6,
canManageGuildEvent: Reflect.apply(useCallback, binding, [_fun70934, [property4, property3, currentUser]])};
}
function getManageResourcePermissions(a0) { // fn#70935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9262:1731, offset: 0x01d0d970, size: 313 bytes, params: 2, frame: 19
const value = a1;
const value2 = a2;
const r9 = value !== undefined ? value : PermissionStore;
const r8 = value2 !== undefined ? value2 : UserStore;
const env0_3 = undefined;
const guildRecordUtilsModule = require(1418) /* metro dependency 1418: GuildRecordUtils */;
const value4 = env0_3(guildRecordUtilsModule.isGuildRecord(a0) ? [Permissions.CREATE_EVENTS,
Permissions.MANAGE_EVENTS] : attachChannelPermissions(a0), 2);
const property = value4[0];
const property2 = value4[1];
let can = r9.can;
const CREATE_GUILD_EXPRESSIONS = Permissions.CREATE_GUILD_EXPRESSIONS;
const value5 = Reflect.apply(can, r9, [CREATE_GUILD_EXPRESSIONS, a0]);
can = r9.can;
const MANAGE_GUILD_EXPRESSIONS = Permissions.MANAGE_GUILD_EXPRESSIONS;
const value6 = Reflect.apply(can, r9, [MANAGE_GUILD_EXPRESSIONS, a0]);
const value7 = r9.can(property, a0);
const value8 = r9.can(property2, a0);
const env0_4 = r8.getCurrentUser();
return a0 == null ? env0_11 : {canCreateExpressions: value5, canCreateGuildEvent: value7,
canManageAllExpressions: value6, canManageAllEvents: value8,
canManageGuildExpression: canManageGuildExpression_70936, canManageGuildEvent: canManageGuildEvent_70937};
}
function _fun70931() { // fn#70931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9262:1227, offset: 0x01d0d8c2, size: 108 bytes, params: 1, frame: 15
let can = PermissionStore.can;
const CREATE_GUILD_EXPRESSIONS = Permissions.CREATE_GUILD_EXPRESSIONS;
const binding = env0_0;
const items2 = [Reflect.apply(can, PermissionStore, [CREATE_GUILD_EXPRESSIONS, binding])];
can = PermissionStore.can;
const MANAGE_GUILD_EXPRESSIONS = Permissions.MANAGE_GUILD_EXPRESSIONS;
items2[1] = Reflect.apply(can, PermissionStore, [MANAGE_GUILD_EXPRESSIONS, binding]);
items2[2] = PermissionStore.can(env0_1, binding);
items2[3] = PermissionStore.can(env0_2, binding);
return items2;
}
function _fun70933(a0) { // fn#70933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9262:1442, offset: 0x01d0d92e, size: 33 bytes, params: 2, frame: 17
return canManageResource(a0, currentUser, env0_4, env0_3);
}
function _fun70934(a0) { // fn#70934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9262:1499, offset: 0x01d0d94f, size: 33 bytes, params: 2, frame: 17
return canManageResource(a0, currentUser, env0_6, env0_5);
}
function getManageResourcePermissionsCanManageGuildExpression(a0) { // fn#70936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9262:2119, owner: getManageResourcePermissions.canManageGuildExpression, offset: 0x01d0daa9, size: 33 bytes, params: 2, frame: 17
return canManageResource(a0, env0_4, env0_1, env0_0);
}
function getManageResourcePermissionsCanManageGuildEvent(a0) { // fn#70937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9262:2169, owner: getManageResourcePermissions.canManageGuildEvent, offset: 0x01d0daca, size: 33 bytes, params: 2, frame: 17
return canManageResource(a0, env0_4, env0_3, env0_2);
}
global.__d(_fun70925, 9077, [57, 31, 3784, 1878, 9076, 482, 483, 1418, 566,
2]) /* metro module 9077, dependencies: [57, 31, 3784, 1878, 9076, 482, 483, 1418, 566, 2] */;