1221 lines
76 KiB
TypeScript
1221 lines
76 KiB
TypeScript
/* Metro module 15191; source: components_native/channel_settings/ChannelSettingsPermissionsOverrides.tsx; dependencies: [57, 5, 31, 27, 1422, 1379, 1938, 1867, 3784, 3793, 1878, 661, 33, 4501, 697, 1484, 1585, 566, 3789, 483, 9090, 4603, 1909, 3995, 4647, 1244, 3853, 1948, 1387, 15192, 9603, 4573, 4805, 12140, 6238, 6231, 15196, 15197, 2] */
|
|
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import Module00057 from '../../by-id/module-00057.js'; /* Metro dependency 57 */
|
|
import ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
|
|
import UseSafeAreaInsetsNative from '../../modules/safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
|
|
import GuildStore from '../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
|
|
import UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */
|
|
import GuildRoleStore from '../../stores/GuildRoleStore.tsx'; /* Metro dependency 1938 */
|
|
import PermissionStore from '../../stores/PermissionStore.tsx'; /* Metro dependency 3784 */
|
|
import RelationshipStore from '../../stores/RelationshipStore.tsx'; /* Metro dependency 3793 */
|
|
import ChannelSettingsPermissionsOverrideCheckbox from './ChannelSettingsPermissionsOverrideCheckbox.tsx'; /* Metro dependency 15197 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactNativeModule from '../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as BigFlagUtilsModule from '../../external/discord_common/js/shared/utils/BigFlagUtils.tsx'; /* Metro dependency 483 */
|
|
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
|
|
import * as GuildRecordModule from '../../records/GuildRecord.tsx'; /* Metro dependency 1422 */
|
|
import * as UseNavigationNativeModule from '../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
|
|
import * as TextModule from '../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
|
|
import * as UseChannelNameModule from '../../modules/channel/useChannelName.tsx'; /* Metro dependency 4805 */
|
|
import * as TableRowGroupNativeModule from '../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
|
|
import * as TableRowNativeModule from '../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
|
|
import * as HeaderSharedModule from '../../modules/main_tabs_v2/native/shared_components/HeaderShared.tsx'; /* Metro dependency 9603 */
|
|
import * as PermissionUtilsModule from '../../modules/permissions/PermissionUtils.tsx'; /* Metro dependency 15196 */
|
|
|
|
function _fun116156(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15388:6, offset: 0x0247cfad, size: 548 bytes, params: 8, frame: 22
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = ReactNativeModule;
|
|
const env0_7 = value.View;
|
|
const env0_8 = value.ScrollView;
|
|
value = require(661) /* metro dependency 661: Constants */;
|
|
const env0_16 = value.PermissionOverrideType;
|
|
const env0_17 = value.HelpdeskArticles;
|
|
const env0_18 = value.Permissions;
|
|
value = require(33) /* metro dependency 33 */;
|
|
const env0_19 = value.jsx;
|
|
const env0_20 = value.jsxs;
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = value.createStyles;
|
|
object = {};
|
|
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
|
|
object.container = {backgroundColor: BACKGROUND_BASE_LOWER};
|
|
const object3 = {};
|
|
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object3.paddingTop = PX_16;
|
|
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object3.paddingBottom = PX_16;
|
|
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
|
object3.paddingHorizontal = PX_12;
|
|
object.containerContent = object3;
|
|
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object.section = {marginBottom: PX_16};
|
|
const env0_21 = Reflect.apply(createStyles, value, [object]);
|
|
(FileImportTrackerModule).fileFinishedImporting('components_native/channel_settings/ChannelSettingsPermissionsOverrides.tsx');
|
|
exports.default = ChannelSettingsPermissionsOverrides;
|
|
function ChannelSettingsPermissionsOverrides({channelId, type, id, fromCreate}) { // fn#116157, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15388:742, offset: 0x0247d1d1, size: 754 bytes, params: 2, frame: 28
|
|
var r9;
|
|
var TableRow;
|
|
var guildRoleStoreBinding;
|
|
let env0_6 = undefined;
|
|
const styles = useStyles();
|
|
const value3 = (UseNavigationNativeModule).useNavigation();
|
|
const env0_4 = value3;
|
|
const bottom = (UseSafeAreaInsetsNative)().bottom;
|
|
const channel = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
|
|
return ChannelStore.getChannel(channelId);
|
|
});
|
|
const binding = env0_6;
|
|
env0_6 = binding.useCallback(_fun116159(), [channel, id]);
|
|
const env0_7 = binding.useCallback(_fun116164, [channel]);
|
|
const env0_8 = binding.useCallback(_fun116165, [channel, id]);
|
|
const value6 = env0_4(binding.useState(_fun116166), 2);
|
|
const property = value6[0];
|
|
value6[1];
|
|
binding.useEffect(_fun116167, [fromCreate, value3]);
|
|
const Text = (TextModule).Text;
|
|
const text = (
|
|
<Text variant="text-md/medium" color="text-muted">
|
|
{UseChannelNameModule.computeChannelName(channel, UserStore, RelationshipStore, true)}
|
|
</Text>
|
|
);
|
|
const MEMBER = PermissionOverrideType.MEMBER;
|
|
if (type === MEMBER) {
|
|
r9 = ((Component) => <Component userId={id} guildId={channel.guild_id} start end trailing={text} />)(importDefault(12140) /* metro dependency 12140: DetailedGuildIdentityUserRow */);
|
|
} else {
|
|
TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
|
guildRoleStoreBinding = GuildRoleStore;
|
|
r9 = guildRoleStoreBinding.getRole(channel.guild_id, id)?.name ?? '';
|
|
r9 = (
|
|
<TableRow
|
|
end
|
|
label={r9}
|
|
start
|
|
trailing={text}
|
|
/>
|
|
);
|
|
}
|
|
const items3 = [styles.containerContent];
|
|
items3[1] = {paddingBottom: styles.containerContent.paddingBottom + bottom};
|
|
const items2 = [
|
|
<View style={styles.section}>
|
|
{r9}
|
|
</View>,
|
|
];
|
|
items2[1] = property.map(_fun116170);
|
|
return (
|
|
<ScrollView style={styles.container} contentContainerStyle={items3}>
|
|
{items2}
|
|
</ScrollView>
|
|
);
|
|
function _fun116159() { // fn#116159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15388:962, offset: 0x0247d4c3, size: 36 bytes, params: 1, frame: 12
|
|
const env0_0 = env1_5(_fun116161);
|
|
return _fun116163;
|
|
function* _fun116161(a0, a1) { // fn#116161, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15388:982, offset: 0x0247d4f2, size: 1115 bytes, params: 3, frame: 26
|
|
var environment;
|
|
var r15;
|
|
var value11;
|
|
var value12;
|
|
var value14;
|
|
var value15;
|
|
var can;
|
|
var binding3;
|
|
var object;
|
|
var value16;
|
|
var value17;
|
|
var type;
|
|
var binding5;
|
|
var show;
|
|
var intl;
|
|
var string;
|
|
var t;
|
|
var format;
|
|
var value19;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
let binding = env2_5;
|
|
const value3 = importDefault === binding.guild_id;
|
|
const property = binding.permissionOverwrites[importDefault];
|
|
const r6 = property == null && value3 ? env3_2(env3_3[18]).makeEveryoneOverwrite(importDefault) : property;
|
|
let object2 = {};
|
|
copyDataProperties(object2, r6, undefined);
|
|
binding = env3_2;
|
|
const binding2 = env3_3;
|
|
const value8 = undefined;
|
|
const value9 = binding(binding2[19]);
|
|
object2.deny = value9.remove(object2.deny, a0);
|
|
const value10 = binding(binding2[19]);
|
|
object2.allow = value10.remove(object2.allow, a0);
|
|
const ALLOW = env3_0(binding2[18]).ALLOW;
|
|
if (a1 === ALLOW) {
|
|
value15 = env3_2(env3_3[19]);
|
|
object2.allow = value15.add(object2.allow, a0);
|
|
} else {
|
|
binding = env3_0;
|
|
var DENY = binding(env3_3[18]).DENY;
|
|
if (a1 !== DENY) {
|
|
binding = env3_13;
|
|
can = binding.can;
|
|
binding3 = env2_5;
|
|
object = {};
|
|
object[object2.id] = object2;
|
|
if (Reflect.apply(can, binding, [a0, binding3, object])) {
|
|
value19 = env3_1(env3_3[21]);
|
|
value19.updatePermissionOverwrite(env2_5.id, object2);
|
|
} else {
|
|
binding = env3_13;
|
|
if (binding.can(a0, env2_5)) {
|
|
if (value3) {
|
|
type = r6.type;
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.MEMBER === type) {
|
|
binding = env3_15;
|
|
value = binding.getUser(r6.id);
|
|
if (value != null) {
|
|
value = env3_1(env3_3[23]).getName(value);
|
|
r15 = value;
|
|
} else {
|
|
r15 = value8;
|
|
}
|
|
} else {
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.ROLE === type) {
|
|
binding = env3_12;
|
|
value = binding.getGuild(env2_5.guild_id);
|
|
r15 = value != null && env3_11.getRole(value.id,
|
|
r6.id) != null ? env3_11.getRole(value.id,
|
|
r6.id).name : value8;
|
|
} else {
|
|
r6.type;
|
|
r15 = value8;
|
|
}
|
|
}
|
|
binding = env3_1;
|
|
binding5 = env3_3;
|
|
value = binding(binding5[24]);
|
|
show = value.show;
|
|
object2 = {};
|
|
binding = env3_0;
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.title = Reflect.apply(string, intl, [t.vElC9b]);
|
|
intl = binding(binding5[25]).intl;
|
|
format = intl.format;
|
|
t = binding(binding5[25]).t;
|
|
object2.body = Reflect.apply(format, intl, [t.yslqFM, {name: r15}]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.cancelText = Reflect.apply(string, intl, [t['ETE/oC']]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.confirmText = Reflect.apply(string, intl, [t.psXQHP]);
|
|
object2.onConfirm = onConfirm_116162;
|
|
Reflect.apply(show, value, [object2]);
|
|
} else {
|
|
binding = env3_2;
|
|
value16 = binding(env3_3[19]);
|
|
if (value16.has(r6.allow, a0)) {
|
|
type = r6.type;
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.MEMBER === type) {
|
|
binding = env3_15;
|
|
value = binding.getUser(r6.id);
|
|
if (value != null) {
|
|
value = env3_1(env3_3[23]).getName(value);
|
|
r15 = value;
|
|
} else {
|
|
r15 = value8;
|
|
}
|
|
} else {
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.ROLE === type) {
|
|
binding = env3_12;
|
|
value = binding.getGuild(env2_5.guild_id);
|
|
r15 = value != null && env3_11.getRole(value.id,
|
|
r6.id) != null ? env3_11.getRole(value.id,
|
|
r6.id).name : value8;
|
|
} else {
|
|
r6.type;
|
|
r15 = value8;
|
|
}
|
|
}
|
|
binding = env3_1;
|
|
binding5 = env3_3;
|
|
value = binding(binding5[24]);
|
|
show = value.show;
|
|
object2 = {};
|
|
binding = env3_0;
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.title = Reflect.apply(string, intl, [t.vElC9b]);
|
|
intl = binding(binding5[25]).intl;
|
|
format = intl.format;
|
|
t = binding(binding5[25]).t;
|
|
object2.body = Reflect.apply(format, intl, [t.yslqFM, {name: r15}]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.cancelText = Reflect.apply(string, intl, [t['ETE/oC']]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.confirmText = Reflect.apply(string, intl, [t.psXQHP]);
|
|
object2.onConfirm = onConfirm_116162;
|
|
Reflect.apply(show, value, [object2]);
|
|
} else {
|
|
binding = env3_2;
|
|
value17 = binding(env3_3[19]);
|
|
if (value17.has(r6.deny, a0)) {
|
|
type = r6.type;
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.MEMBER === type) {
|
|
binding = env3_15;
|
|
value = binding.getUser(r6.id);
|
|
if (value != null) {
|
|
value = env3_1(env3_3[23]).getName(value);
|
|
r15 = value;
|
|
} else {
|
|
r15 = value8;
|
|
}
|
|
} else {
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.ROLE === type) {
|
|
binding = env3_12;
|
|
value = binding.getGuild(env2_5.guild_id);
|
|
r15 = value != null && env3_11.getRole(value.id,
|
|
r6.id) != null ? env3_11.getRole(value.id,
|
|
r6.id).name : value8;
|
|
} else {
|
|
r6.type;
|
|
r15 = value8;
|
|
}
|
|
}
|
|
binding = env3_1;
|
|
binding5 = env3_3;
|
|
value = binding(binding5[24]);
|
|
show = value.show;
|
|
object2 = {};
|
|
binding = env3_0;
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.title = Reflect.apply(string, intl, [t.vElC9b]);
|
|
intl = binding(binding5[25]).intl;
|
|
format = intl.format;
|
|
t = binding(binding5[25]).t;
|
|
object2.body = Reflect.apply(format, intl, [t.yslqFM, {name: r15}]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.cancelText = Reflect.apply(string, intl, [t['ETE/oC']]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.confirmText = Reflect.apply(string, intl, [t.psXQHP]);
|
|
object2.onConfirm = onConfirm_116162;
|
|
Reflect.apply(show, value, [object2]);
|
|
} else {
|
|
env2_6(a0, env3_0(env3_3[18]).ALLOW);
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
type = r6.type;
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.MEMBER === type) {
|
|
binding = env3_15;
|
|
value = binding.getUser(r6.id);
|
|
if (value != null) {
|
|
value = env3_1(env3_3[23]).getName(value);
|
|
r15 = value;
|
|
} else {
|
|
r15 = value8;
|
|
}
|
|
} else {
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.ROLE === type) {
|
|
binding = env3_12;
|
|
value = binding.getGuild(env2_5.guild_id);
|
|
r15 = value != null && env3_11.getRole(value.id, r6.id) != null ? env3_11.getRole(value.id,
|
|
r6.id).name : value8;
|
|
} else {
|
|
r6.type;
|
|
r15 = value8;
|
|
}
|
|
}
|
|
binding = env3_1;
|
|
binding5 = env3_3;
|
|
value = binding(binding5[24]);
|
|
show = value.show;
|
|
object2 = {};
|
|
binding = env3_0;
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.title = Reflect.apply(string, intl, [t.vElC9b]);
|
|
intl = binding(binding5[25]).intl;
|
|
format = intl.format;
|
|
t = binding(binding5[25]).t;
|
|
object2.body = Reflect.apply(format, intl, [t.yslqFM, {name: r15}]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.cancelText = Reflect.apply(string, intl, [t['ETE/oC']]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.confirmText = Reflect.apply(string, intl, [t.psXQHP]);
|
|
object2.onConfirm = onConfirm_116162;
|
|
Reflect.apply(show, value, [object2]);
|
|
}
|
|
}
|
|
return value8;
|
|
}
|
|
if (env2_5.guild_id == null) {
|
|
binding = env3_2;
|
|
value14 = binding(env3_3[19]);
|
|
object2.deny = value14.add(object2.deny, a0);
|
|
binding = env3_13;
|
|
can = binding.can;
|
|
binding3 = env2_5;
|
|
object = {};
|
|
object[object2.id] = object2;
|
|
if (Reflect.apply(can, binding, [a0, binding3, object])) {
|
|
value19 = env3_1(env3_3[21]);
|
|
value19.updatePermissionOverwrite(env2_5.id, object2);
|
|
} else {
|
|
binding = env3_13;
|
|
if (binding.can(a0, env2_5)) {
|
|
if (value3) {
|
|
type = r6.type;
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.MEMBER === type) {
|
|
binding = env3_15;
|
|
value = binding.getUser(r6.id);
|
|
if (value != null) {
|
|
value = env3_1(env3_3[23]).getName(value);
|
|
r15 = value;
|
|
} else {
|
|
r15 = value8;
|
|
}
|
|
} else {
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.ROLE === type) {
|
|
binding = env3_12;
|
|
value = binding.getGuild(env2_5.guild_id);
|
|
r15 = value != null && env3_11.getRole(value.id,
|
|
r6.id) != null ? env3_11.getRole(value.id,
|
|
r6.id).name : value8;
|
|
} else {
|
|
r6.type;
|
|
r15 = value8;
|
|
}
|
|
}
|
|
binding = env3_1;
|
|
binding5 = env3_3;
|
|
value = binding(binding5[24]);
|
|
show = value.show;
|
|
object2 = {};
|
|
binding = env3_0;
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.title = Reflect.apply(string, intl, [t.vElC9b]);
|
|
intl = binding(binding5[25]).intl;
|
|
format = intl.format;
|
|
t = binding(binding5[25]).t;
|
|
object2.body = Reflect.apply(format, intl, [t.yslqFM, {name: r15}]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.cancelText = Reflect.apply(string, intl, [t['ETE/oC']]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.confirmText = Reflect.apply(string, intl, [t.psXQHP]);
|
|
object2.onConfirm = onConfirm_116162;
|
|
Reflect.apply(show, value, [object2]);
|
|
} else {
|
|
binding = env3_2;
|
|
value16 = binding(env3_3[19]);
|
|
if (value16.has(r6.allow, a0)) {
|
|
type = r6.type;
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.MEMBER === type) {
|
|
binding = env3_15;
|
|
value = binding.getUser(r6.id);
|
|
if (value != null) {
|
|
value = env3_1(env3_3[23]).getName(value);
|
|
r15 = value;
|
|
} else {
|
|
r15 = value8;
|
|
}
|
|
} else {
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.ROLE === type) {
|
|
binding = env3_12;
|
|
value = binding.getGuild(env2_5.guild_id);
|
|
r15 = value != null && env3_11.getRole(value.id,
|
|
r6.id) != null ? env3_11.getRole(value.id,
|
|
r6.id).name : value8;
|
|
} else {
|
|
r6.type;
|
|
r15 = value8;
|
|
}
|
|
}
|
|
binding = env3_1;
|
|
binding5 = env3_3;
|
|
value = binding(binding5[24]);
|
|
show = value.show;
|
|
object2 = {};
|
|
binding = env3_0;
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.title = Reflect.apply(string, intl, [t.vElC9b]);
|
|
intl = binding(binding5[25]).intl;
|
|
format = intl.format;
|
|
t = binding(binding5[25]).t;
|
|
object2.body = Reflect.apply(format, intl, [t.yslqFM, {name: r15}]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.cancelText = Reflect.apply(string, intl, [t['ETE/oC']]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.confirmText = Reflect.apply(string, intl, [t.psXQHP]);
|
|
object2.onConfirm = onConfirm_116162;
|
|
Reflect.apply(show, value, [object2]);
|
|
} else {
|
|
binding = env3_2;
|
|
value17 = binding(env3_3[19]);
|
|
if (value17.has(r6.deny, a0)) {
|
|
type = r6.type;
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.MEMBER === type) {
|
|
binding = env3_15;
|
|
value = binding.getUser(r6.id);
|
|
if (value != null) {
|
|
value = env3_1(env3_3[23]).getName(value);
|
|
r15 = value;
|
|
} else {
|
|
r15 = value8;
|
|
}
|
|
} else {
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.ROLE === type) {
|
|
binding = env3_12;
|
|
value = binding.getGuild(env2_5.guild_id);
|
|
r15 = value != null && env3_11.getRole(value.id,
|
|
r6.id) != null ? env3_11.getRole(value.id,
|
|
r6.id).name : value8;
|
|
} else {
|
|
r6.type;
|
|
r15 = value8;
|
|
}
|
|
}
|
|
binding = env3_1;
|
|
binding5 = env3_3;
|
|
value = binding(binding5[24]);
|
|
show = value.show;
|
|
object2 = {};
|
|
binding = env3_0;
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.title = Reflect.apply(string, intl, [t.vElC9b]);
|
|
intl = binding(binding5[25]).intl;
|
|
format = intl.format;
|
|
t = binding(binding5[25]).t;
|
|
object2.body = Reflect.apply(format, intl, [t.yslqFM, {name: r15}]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.cancelText = Reflect.apply(string, intl, [t['ETE/oC']]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.confirmText = Reflect.apply(string, intl, [t.psXQHP]);
|
|
object2.onConfirm = onConfirm_116162;
|
|
Reflect.apply(show, value, [object2]);
|
|
} else {
|
|
env2_6(a0, env3_0(env3_3[18]).ALLOW);
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
type = r6.type;
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.MEMBER === type) {
|
|
binding = env3_15;
|
|
value = binding.getUser(r6.id);
|
|
if (value != null) {
|
|
value = env3_1(env3_3[23]).getName(value);
|
|
r15 = value;
|
|
} else {
|
|
r15 = value8;
|
|
}
|
|
} else {
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.ROLE === type) {
|
|
binding = env3_12;
|
|
value = binding.getGuild(env2_5.guild_id);
|
|
r15 = value != null && env3_11.getRole(value.id, r6.id) != null ? env3_11.getRole(value.id,
|
|
r6.id).name : value8;
|
|
} else {
|
|
r6.type;
|
|
r15 = value8;
|
|
}
|
|
}
|
|
binding = env3_1;
|
|
binding5 = env3_3;
|
|
value = binding(binding5[24]);
|
|
show = value.show;
|
|
object2 = {};
|
|
binding = env3_0;
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.title = Reflect.apply(string, intl, [t.vElC9b]);
|
|
intl = binding(binding5[25]).intl;
|
|
format = intl.format;
|
|
t = binding(binding5[25]).t;
|
|
object2.body = Reflect.apply(format, intl, [t.yslqFM, {name: r15}]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.cancelText = Reflect.apply(string, intl, [t['ETE/oC']]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.confirmText = Reflect.apply(string, intl, [t.psXQHP]);
|
|
object2.onConfirm = onConfirm_116162;
|
|
Reflect.apply(show, value, [object2]);
|
|
}
|
|
}
|
|
return value8;
|
|
}
|
|
if (value3) {
|
|
binding = env3_0;
|
|
value11 = binding(env3_3[20]);
|
|
yield value11.checkChattableChannelThresholdMetAfterChannelPermissionDeny(env2_5, a0);
|
|
value12 = undefined;
|
|
if (false) {
|
|
return value12;
|
|
}
|
|
if (value12) {
|
|
binding = env3_2;
|
|
value14 = binding(env3_3[19]);
|
|
object2.deny = value14.add(object2.deny, a0);
|
|
binding = env3_13;
|
|
can = binding.can;
|
|
binding3 = env2_5;
|
|
object = {};
|
|
object[object2.id] = object2;
|
|
if (Reflect.apply(can, binding, [a0, binding3, object])) {
|
|
value19 = env3_1(env3_3[21]);
|
|
value19.updatePermissionOverwrite(env2_5.id, object2);
|
|
} else {
|
|
binding = env3_13;
|
|
if (binding.can(a0, env2_5)) {
|
|
if (value3) {
|
|
type = r6.type;
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.MEMBER === type) {
|
|
binding = env3_15;
|
|
value = binding.getUser(r6.id);
|
|
if (value != null) {
|
|
value = env3_1(env3_3[23]).getName(value);
|
|
r15 = value;
|
|
} else {
|
|
r15 = value8;
|
|
}
|
|
} else {
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.ROLE === type) {
|
|
binding = env3_12;
|
|
value = binding.getGuild(env2_5.guild_id);
|
|
r15 = value != null && env3_11.getRole(value.id,
|
|
r6.id) != null ? env3_11.getRole(value.id,
|
|
r6.id).name : value8;
|
|
} else {
|
|
r6.type;
|
|
r15 = value8;
|
|
}
|
|
}
|
|
binding = env3_1;
|
|
binding5 = env3_3;
|
|
value = binding(binding5[24]);
|
|
show = value.show;
|
|
object2 = {};
|
|
binding = env3_0;
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.title = Reflect.apply(string, intl, [t.vElC9b]);
|
|
intl = binding(binding5[25]).intl;
|
|
format = intl.format;
|
|
t = binding(binding5[25]).t;
|
|
object2.body = Reflect.apply(format, intl, [t.yslqFM, {name: r15}]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.cancelText = Reflect.apply(string, intl, [t['ETE/oC']]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.confirmText = Reflect.apply(string, intl, [t.psXQHP]);
|
|
object2.onConfirm = onConfirm_116162;
|
|
Reflect.apply(show, value, [object2]);
|
|
} else {
|
|
binding = env3_2;
|
|
value16 = binding(env3_3[19]);
|
|
if (value16.has(r6.allow, a0)) {
|
|
type = r6.type;
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.MEMBER === type) {
|
|
binding = env3_15;
|
|
value = binding.getUser(r6.id);
|
|
if (value != null) {
|
|
value = env3_1(env3_3[23]).getName(value);
|
|
r15 = value;
|
|
} else {
|
|
r15 = value8;
|
|
}
|
|
} else {
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.ROLE === type) {
|
|
binding = env3_12;
|
|
value = binding.getGuild(env2_5.guild_id);
|
|
r15 = value != null && env3_11.getRole(value.id,
|
|
r6.id) != null ? env3_11.getRole(value.id,
|
|
r6.id).name : value8;
|
|
} else {
|
|
r6.type;
|
|
r15 = value8;
|
|
}
|
|
}
|
|
binding = env3_1;
|
|
binding5 = env3_3;
|
|
value = binding(binding5[24]);
|
|
show = value.show;
|
|
object2 = {};
|
|
binding = env3_0;
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.title = Reflect.apply(string, intl, [t.vElC9b]);
|
|
intl = binding(binding5[25]).intl;
|
|
format = intl.format;
|
|
t = binding(binding5[25]).t;
|
|
object2.body = Reflect.apply(format, intl, [t.yslqFM, {name: r15}]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.cancelText = Reflect.apply(string, intl, [t['ETE/oC']]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.confirmText = Reflect.apply(string, intl, [t.psXQHP]);
|
|
object2.onConfirm = onConfirm_116162;
|
|
Reflect.apply(show, value, [object2]);
|
|
} else {
|
|
binding = env3_2;
|
|
value17 = binding(env3_3[19]);
|
|
if (value17.has(r6.deny, a0)) {
|
|
type = r6.type;
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.MEMBER === type) {
|
|
binding = env3_15;
|
|
value = binding.getUser(r6.id);
|
|
if (value != null) {
|
|
value = env3_1(env3_3[23]).getName(value);
|
|
r15 = value;
|
|
} else {
|
|
r15 = value8;
|
|
}
|
|
} else {
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.ROLE === type) {
|
|
binding = env3_12;
|
|
value = binding.getGuild(env2_5.guild_id);
|
|
r15 = value != null && env3_11.getRole(value.id,
|
|
r6.id) != null ? env3_11.getRole(value.id,
|
|
r6.id).name : value8;
|
|
} else {
|
|
r6.type;
|
|
r15 = value8;
|
|
}
|
|
}
|
|
binding = env3_1;
|
|
binding5 = env3_3;
|
|
value = binding(binding5[24]);
|
|
show = value.show;
|
|
object2 = {};
|
|
binding = env3_0;
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.title = Reflect.apply(string, intl, [t.vElC9b]);
|
|
intl = binding(binding5[25]).intl;
|
|
format = intl.format;
|
|
t = binding(binding5[25]).t;
|
|
object2.body = Reflect.apply(format, intl, [t.yslqFM, {name: r15}]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.cancelText = Reflect.apply(string, intl, [t['ETE/oC']]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.confirmText = Reflect.apply(string, intl, [t.psXQHP]);
|
|
object2.onConfirm = onConfirm_116162;
|
|
Reflect.apply(show, value, [object2]);
|
|
} else {
|
|
env2_6(a0, env3_0(env3_3[18]).ALLOW);
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
type = r6.type;
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.MEMBER === type) {
|
|
binding = env3_15;
|
|
value = binding.getUser(r6.id);
|
|
if (value != null) {
|
|
value = env3_1(env3_3[23]).getName(value);
|
|
r15 = value;
|
|
} else {
|
|
r15 = value8;
|
|
}
|
|
} else {
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.ROLE === type) {
|
|
binding = env3_12;
|
|
value = binding.getGuild(env2_5.guild_id);
|
|
r15 = value != null && env3_11.getRole(value.id,
|
|
r6.id) != null ? env3_11.getRole(value.id,
|
|
r6.id).name : value8;
|
|
} else {
|
|
r6.type;
|
|
r15 = value8;
|
|
}
|
|
}
|
|
binding = env3_1;
|
|
binding5 = env3_3;
|
|
value = binding(binding5[24]);
|
|
show = value.show;
|
|
object2 = {};
|
|
binding = env3_0;
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.title = Reflect.apply(string, intl, [t.vElC9b]);
|
|
intl = binding(binding5[25]).intl;
|
|
format = intl.format;
|
|
t = binding(binding5[25]).t;
|
|
object2.body = Reflect.apply(format, intl, [t.yslqFM, {name: r15}]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.cancelText = Reflect.apply(string, intl, [t['ETE/oC']]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.confirmText = Reflect.apply(string, intl, [t.psXQHP]);
|
|
object2.onConfirm = onConfirm_116162;
|
|
Reflect.apply(show, value, [object2]);
|
|
}
|
|
}
|
|
return value8;
|
|
}
|
|
return value8;
|
|
}
|
|
binding = env3_2;
|
|
value14 = binding(env3_3[19]);
|
|
object2.deny = value14.add(object2.deny, a0);
|
|
}
|
|
can = env3_13.can;
|
|
binding3 = env2_5;
|
|
object = {};
|
|
object[object2.id] = object2;
|
|
if (Reflect.apply(can, binding, [a0, binding3, object])) {
|
|
value19 = env3_1(env3_3[21]);
|
|
value19.updatePermissionOverwrite(env2_5.id, object2);
|
|
} else {
|
|
binding = env3_13;
|
|
if (binding.can(a0, env2_5)) {
|
|
if (value3) {
|
|
type = r6.type;
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.MEMBER === type) {
|
|
binding = env3_15;
|
|
value = binding.getUser(r6.id);
|
|
if (value != null) {
|
|
value = env3_1(env3_3[23]).getName(value);
|
|
r15 = value;
|
|
} else {
|
|
r15 = value8;
|
|
}
|
|
} else {
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.ROLE === type) {
|
|
binding = env3_12;
|
|
value = binding.getGuild(env2_5.guild_id);
|
|
r15 = value != null && env3_11.getRole(value.id, r6.id) != null ? env3_11.getRole(value.id,
|
|
r6.id).name : value8;
|
|
} else {
|
|
r6.type;
|
|
r15 = value8;
|
|
}
|
|
}
|
|
binding = env3_1;
|
|
binding5 = env3_3;
|
|
value = binding(binding5[24]);
|
|
show = value.show;
|
|
object2 = {};
|
|
binding = env3_0;
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.title = Reflect.apply(string, intl, [t.vElC9b]);
|
|
intl = binding(binding5[25]).intl;
|
|
format = intl.format;
|
|
t = binding(binding5[25]).t;
|
|
object2.body = Reflect.apply(format, intl, [t.yslqFM, {name: r15}]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.cancelText = Reflect.apply(string, intl, [t['ETE/oC']]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.confirmText = Reflect.apply(string, intl, [t.psXQHP]);
|
|
object2.onConfirm = onConfirm_116162;
|
|
Reflect.apply(show, value, [object2]);
|
|
} else {
|
|
binding = env3_2;
|
|
value16 = binding(env3_3[19]);
|
|
if (value16.has(r6.allow, a0)) {
|
|
type = r6.type;
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.MEMBER === type) {
|
|
binding = env3_15;
|
|
value = binding.getUser(r6.id);
|
|
if (value != null) {
|
|
value = env3_1(env3_3[23]).getName(value);
|
|
r15 = value;
|
|
} else {
|
|
r15 = value8;
|
|
}
|
|
} else {
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.ROLE === type) {
|
|
binding = env3_12;
|
|
value = binding.getGuild(env2_5.guild_id);
|
|
r15 = value != null && env3_11.getRole(value.id, r6.id) != null ? env3_11.getRole(value.id,
|
|
r6.id).name : value8;
|
|
} else {
|
|
r6.type;
|
|
r15 = value8;
|
|
}
|
|
}
|
|
binding = env3_1;
|
|
binding5 = env3_3;
|
|
value = binding(binding5[24]);
|
|
show = value.show;
|
|
object2 = {};
|
|
binding = env3_0;
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.title = Reflect.apply(string, intl, [t.vElC9b]);
|
|
intl = binding(binding5[25]).intl;
|
|
format = intl.format;
|
|
t = binding(binding5[25]).t;
|
|
object2.body = Reflect.apply(format, intl, [t.yslqFM, {name: r15}]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.cancelText = Reflect.apply(string, intl, [t['ETE/oC']]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.confirmText = Reflect.apply(string, intl, [t.psXQHP]);
|
|
object2.onConfirm = onConfirm_116162;
|
|
Reflect.apply(show, value, [object2]);
|
|
} else {
|
|
binding = env3_2;
|
|
value17 = binding(env3_3[19]);
|
|
if (value17.has(r6.deny, a0)) {
|
|
type = r6.type;
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.MEMBER === type) {
|
|
binding = env3_15;
|
|
value = binding.getUser(r6.id);
|
|
if (value != null) {
|
|
value = env3_1(env3_3[23]).getName(value);
|
|
r15 = value;
|
|
} else {
|
|
r15 = value8;
|
|
}
|
|
} else {
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.ROLE === type) {
|
|
binding = env3_12;
|
|
value = binding.getGuild(env2_5.guild_id);
|
|
r15 = value != null && env3_11.getRole(value.id,
|
|
r6.id) != null ? env3_11.getRole(value.id,
|
|
r6.id).name : value8;
|
|
} else {
|
|
r6.type;
|
|
r15 = value8;
|
|
}
|
|
}
|
|
binding = env3_1;
|
|
binding5 = env3_3;
|
|
value = binding(binding5[24]);
|
|
show = value.show;
|
|
object2 = {};
|
|
binding = env3_0;
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.title = Reflect.apply(string, intl, [t.vElC9b]);
|
|
intl = binding(binding5[25]).intl;
|
|
format = intl.format;
|
|
t = binding(binding5[25]).t;
|
|
object2.body = Reflect.apply(format, intl, [t.yslqFM, {name: r15}]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.cancelText = Reflect.apply(string, intl, [t['ETE/oC']]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.confirmText = Reflect.apply(string, intl, [t.psXQHP]);
|
|
object2.onConfirm = onConfirm_116162;
|
|
Reflect.apply(show, value, [object2]);
|
|
} else {
|
|
env2_6(a0, env3_0(env3_3[18]).ALLOW);
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
type = r6.type;
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.MEMBER === type) {
|
|
binding = env3_15;
|
|
value = binding.getUser(r6.id);
|
|
if (value != null) {
|
|
value = env3_1(env3_3[23]).getName(value);
|
|
r15 = value;
|
|
} else {
|
|
r15 = value8;
|
|
}
|
|
} else {
|
|
binding = env3_0;
|
|
if (binding(env3_3[22]).PermissionOverwriteType.ROLE === type) {
|
|
binding = env3_12;
|
|
value = binding.getGuild(env2_5.guild_id);
|
|
r15 = value != null && env3_11.getRole(value.id, r6.id) != null ? env3_11.getRole(value.id,
|
|
r6.id).name : value8;
|
|
} else {
|
|
r6.type;
|
|
r15 = value8;
|
|
}
|
|
}
|
|
binding = env3_1;
|
|
binding5 = env3_3;
|
|
value = binding(binding5[24]);
|
|
show = value.show;
|
|
object2 = {};
|
|
binding = env3_0;
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.title = Reflect.apply(string, intl, [t.vElC9b]);
|
|
intl = binding(binding5[25]).intl;
|
|
format = intl.format;
|
|
t = binding(binding5[25]).t;
|
|
object2.body = Reflect.apply(format, intl, [t.yslqFM, {name: r15}]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.cancelText = Reflect.apply(string, intl, [t['ETE/oC']]);
|
|
intl = binding(binding5[25]).intl;
|
|
string = intl.string;
|
|
t = binding(binding5[25]).t;
|
|
object2.confirmText = Reflect.apply(string, intl, [t.psXQHP]);
|
|
object2.onConfirm = onConfirm_116162;
|
|
Reflect.apply(show, value, [object2]);
|
|
}
|
|
}
|
|
return value8;
|
|
function onConfirm_116162() { // fn#116162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15388:2048, offset: 0x0247d94d, size: 71 bytes, params: 1, frame: 15
|
|
const binding = env4_1;
|
|
const binding2 = env4_3;
|
|
const value2 = binding(binding2[26]);
|
|
const openURL = value2.openURL;
|
|
const value3 = binding(binding2[27]);
|
|
const getArticleURL = value3.getArticleURL;
|
|
const PERMISSIONS_LOCKOUT = env4_17.PERMISSIONS_LOCKOUT;
|
|
Reflect.apply(openURL, value2, [Reflect.apply(getArticleURL, value3, [PERMISSIONS_LOCKOUT])]);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun116163() { // fn#116163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15388:2164, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
|
|
return env0_0.apply(this, arguments);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun116164(a0) { // fn#116164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15388:2234, offset: 0x0247d994, size: 382 bytes, params: 2, frame: 24
|
|
var r0;
|
|
var r2;
|
|
var STAGE_CHANNEL_DISABLED_PERMISSIONS;
|
|
const intl = (IndexNativeModule).intl;
|
|
const t = (IndexNativeModule).t;
|
|
const value = environment.__proto__;
|
|
const guild = GuildStore.getGuild(channel.guild_id);
|
|
const currentUser = UserStore.getCurrentUser();
|
|
if (guild == null) {
|
|
return false;
|
|
}
|
|
if (currentUser == null) {
|
|
return false;
|
|
}
|
|
let r3 = isGuildOwner(guild, currentUser) || PermissionStore.can(Permissions.ADMINISTRATOR, guild);
|
|
r3 = !r3 ? PermissionStore.can(Permissions.MANAGE_ROLES, channel, undefined, undefined, true) : r3;
|
|
channelBinding = channel;
|
|
if (channelBinding.isGuildStageVoice()) {
|
|
STAGE_CHANNEL_DISABLED_PERMISSIONS = (require(1387) /* metro dependency 1387: StageChannelPermissions */).STAGE_CHANNEL_DISABLED_PERMISSIONS;
|
|
if (STAGE_CHANNEL_DISABLED_PERMISSIONS.has(a0)) {
|
|
r0 = intl.string(t.bTS5lf);
|
|
} else {
|
|
r0 = a0 === Permissions.MANAGE_ROLES && !r3;
|
|
if (!r0) {
|
|
r2 = a0 != null && !PermissionStore.can(a0, guild);
|
|
r2 = r2 && !r3;
|
|
r0 = r2;
|
|
}
|
|
r0 = r0 && intl.string(t.nOtPMM);
|
|
}
|
|
} else {
|
|
r0 = a0 === Permissions.MANAGE_ROLES && !r3;
|
|
if (!r0) {
|
|
r2 = a0 != null && !PermissionStore.can(a0, guild);
|
|
r2 = r2 && !r3;
|
|
r0 = r2;
|
|
}
|
|
r0 = r0 && intl.string(t.nOtPMM);
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _fun116165(a0) { // fn#116165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15388:2635, offset: 0x0247db12, size: 190 bytes, params: 2, frame: 19
|
|
var r0;
|
|
var moduleValue2;
|
|
var value3;
|
|
const property = channel.permissionOverwrites[id];
|
|
let value = environment.__proto__;
|
|
const value2 = undefined;
|
|
if (BigFlagUtilsModule.has(property == null ? value2 : property.allow, a0)) {
|
|
r0 = (require(3789) /* metro dependency 3789: PermissionUtils */).ALLOW;
|
|
} else {
|
|
moduleValue2 = BigFlagUtilsModule;
|
|
value3 = moduleValue2.has(property == null ? value2 : property.deny, a0);
|
|
value = require(3789) /* metro dependency 3789: PermissionUtils */;
|
|
r0 = value3 ? value.DENY : value.PASSTHROUGH;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _fun116166() { // fn#116166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15388:2828, offset: 0x0247dbd0, size: 65 bytes, params: 1, frame: 16
|
|
const idBinding = id;
|
|
const channelBinding = channel;
|
|
const guild_id = channelBinding.guild_id;
|
|
let value = environment.__proto__;
|
|
value = importDefault(15192) /* metro dependency 15192: PermissionSpecUtils */;
|
|
return value.generateChannelPermissionSpec(channelBinding.guild_id, channelBinding, idBinding === guild_id);
|
|
}
|
|
|
|
function _fun116167() { // fn#116167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15388:2954, offset: 0x0247dc11, size: 45 bytes, params: 1, frame: 12
|
|
var binding;
|
|
if (fromCreate) {
|
|
binding = env0_4;
|
|
binding.setOptions({headerRight: headerRight_116168});
|
|
}
|
|
function headerRight_116168() { // fn#116168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15388:2988, offset: 0x0247dc3e, size: 109 bytes, params: 1, frame: 18
|
|
const HeaderTextButton = (HeaderSharedModule).HeaderTextButton;
|
|
const object = {onPress: onPress_116169};
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
object.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.i4jeWR);
|
|
return <HeaderTextButton {...object} />;
|
|
function headerRight_116168OnPress() { // fn#116169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15388:3029, owner: headerRight_116168.onPress, offset: 0x0247dcab, size: 21 bytes, params: 1, frame: 9
|
|
env2_4.pop();
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun116170({title, permissions}, a1) { // fn#116170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15388:3597, offset: 0x0247dcc0, size: 178 bytes, params: 3, frame: 20
|
|
var environment;
|
|
let value = environment.__proto__;
|
|
value = undefined;
|
|
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
|
|
return (
|
|
<View style={styles.section} key={'section-' + a1}>
|
|
<TableRowGroup title={GuildRecordModule.isGuildOwner.length > 1 ? title : value} hasIcons={false}>
|
|
{permissions.map(_fun116171)}
|
|
</TableRowGroup>
|
|
</View>
|
|
);
|
|
function _fun116171({title, description, flag}, a1) { // fn#116171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15388:3736, offset: 0x0247dd72, size: 259 bytes, params: 3, frame: 25
|
|
const value2 = env1_7(flag);
|
|
const r12 = value2 != null && value2;
|
|
const Text = (TextModule).Text;
|
|
const text = (
|
|
<Text variant="text-xs/medium" color="text-subtle">
|
|
{(PermissionUtilsModule).renderDescription(description)}
|
|
</Text>
|
|
);
|
|
const TableRow = (TableRowNativeModule).TableRow;
|
|
const value6 = r12 !== false;
|
|
return (
|
|
<TableRow
|
|
disabled={value6}
|
|
label={title}
|
|
subLabel={text}
|
|
trailing={((Component) => <Component value={env1_8(flag)} disabled={value6} onValueChange={onValueChange_116172} />)(ChannelSettingsPermissionsOverrideCheckbox)}
|
|
key={'row-' + a1}
|
|
/>
|
|
);
|
|
function onValueChange_116172(a0) { // fn#116172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15388:4030, offset: 0x0247de75, size: 27 bytes, params: 2, frame: 13
|
|
env2_6(flag, a0);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun116156, 15191, [57, 5, 31, 27, 1422, 1379, 1938, 1867, 3784, 3793, 1878, 661, 33, 4501, 697, 1484,
|
|
1585, 566, 3789, 483, 9090, 4603, 1909, 3995, 4647, 1244, 3853, 1948, 1387, 15192, 9603, 4573, 4805, 12140,
|
|
6238, 6231, 15196, 15197,
|
|
2]) /* metro module 15191, dependencies: [57, 5, 31, 27, 1422, 1379, 1938, 1867, 3784, 3793, 1878, 661, 33, 4501, 697, 1484, 1585, 566, 3789, 483, 9090, 4603, 1909, 3995, 4647, 1244, 3853, 1948, 1387, 15192, 9603, 4573, 4805, 12140, 6238, 6231, 15196, 15197, 2] */;
|