Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,75 @@
|
||||
/* Metro module 11838; source: modules/guild_settings/safety/GuildInvitesDisabledUtils.tsx; dependencies: [10906, 3784, 661, 566, 2] */
|
||||
function _fun90739(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#90739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12024:6, offset: 0x02043b57, size: 198 bytes, params: 8, frame: 21
|
||||
let env0_0 = require;
|
||||
const closure = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return require(dependencyMap[3]).useStateFromStores([PermissionStore], _fun90741, [a0]);
|
||||
};
|
||||
const closure2 = useInvitesDisabled;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const guildIncidentsStore = importDefault(10906) /* metro dependency 10906: GuildIncidentsStore */;
|
||||
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_4 = constantsModule.GuildFeatures;
|
||||
const env0_5 = constantsModule.Permissions;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/safety/GuildInvitesDisabledUtils.tsx');
|
||||
exports.useInvitesDisabledPermission = closure;
|
||||
exports.useInvitesDisabled = closure2;
|
||||
exports.useShouldShowInvitesDisabledNotif = useShouldShowInvitesDisabledNotif;
|
||||
}
|
||||
|
||||
function useInvitesDisabledPermission(a0) { // fn#90740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12024:160, offset: 0x02043c1d, size: 75 bytes, params: 2, frame: 16
|
||||
const env0_0 = a0;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([PermissionStore], _fun90741, [a0]);
|
||||
}
|
||||
|
||||
function useInvitesDisabled(a0) { // fn#90742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12024:283, offset: 0x02043c9b, size: 195 bytes, params: 2, frame: 17
|
||||
var invitesDisabledUntil;
|
||||
var r1;
|
||||
var Date;
|
||||
var prototype;
|
||||
var date;
|
||||
var value4;
|
||||
const env0_0 = a0;
|
||||
var value;
|
||||
const value2 = undefined;
|
||||
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildIncidentsStore], _fun90743);
|
||||
let r0 = a0 == null ? value2 : a0.features.has(GuildFeatures.INVITES_DISABLED);
|
||||
if (!r0) {
|
||||
invitesDisabledUntil = value3 == null ? value2 : value3.invitesDisabledUntil;
|
||||
value = invitesDisabledUntil != null;
|
||||
if (value) {
|
||||
Date = global.Date;
|
||||
invitesDisabledUntil = value3.invitesDisabledUntil;
|
||||
prototype = Date.prototype;
|
||||
value = Object.create(prototype, {constructor: {value: Date}});
|
||||
date = new Date();
|
||||
value = date instanceof Object ? date : value;
|
||||
Date = global.Date;
|
||||
prototype = Date.prototype;
|
||||
value4 = Object.create(prototype, {constructor: {value: Date}});
|
||||
date = new Date();
|
||||
value = value > (date instanceof Object ? date : value4);
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = value;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function useShouldShowInvitesDisabledNotif(a0) { // fn#90744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12024:773, offset: 0x02043d8b, size: 34 bytes, params: 2, frame: 12
|
||||
return useInvitesDisabledPermission(a0) && useInvitesDisabled(a0);
|
||||
}
|
||||
|
||||
function _fun90741() { // fn#90741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12024:240, offset: 0x02043c68, size: 51 bytes, params: 1, frame: 14
|
||||
return env0_0 != null && PermissionStore.can(Permissions.MANAGE_GUILD, env0_0);
|
||||
}
|
||||
|
||||
function _fun90743() { // fn#90743, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12024:352, offset: 0x02043d5e, size: 45 bytes, params: 1, frame: 12
|
||||
const value2 = null;
|
||||
return value2 != env0_0 ? GuildIncidentsStore.getGuildIncident(env0_0.id) : value2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/* Metro module 13361; source: modules/guild_settings/safety/HighlightedSettingsTypes.tsx; dependencies: [2] */
|
||||
function _fun101739(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13551:6, offset: 0x0221de8e, size: 150 bytes, params: 8, frame: 16
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/safety/HighlightedSettingsTypes.tsx');
|
||||
exports.HighlightColors = {ACCENT: 'accent', GREEN: 'statusGreen', YELLOW: 'statusYellow', ORANGE: 'statusOrange',
|
||||
RED: 'statusRed', NONE: 'transparent'};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
/* Metro module 10308; source: modules/guild_settings/safety/TransferOwnershipConstants.tsx; dependencies: [2] */
|
||||
function _fun80008(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80008, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10494:6, offset: 0x01e693c6, size: 138 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/safety/TransferOwnershipConstants.tsx');
|
||||
exports.TransferOwnershipModalScenes = {TRANFSER_OWNERSHIP: 'TRANFSER_OWNERSHIP',
|
||||
CONFIRM_EMAIL_CODE: 'CONFIRM_EMAIL_CODE'};
|
||||
exports.TransferOwnershipVerificationTypes = {MFA: 'mfa', SMS: 'sms', EMAIL: 'email'};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,387 @@
|
||||
/* Metro module 15987; source: modules/guild_settings/safety/native/GuildSettingsModalBans.tsx; dependencies: [57, 31, 27, 1867, 1878, 9113, 33, 4501, 697, 566, 7705, 3829, 6590, 6593, 9112, 6238, 1305, 6243, 1244, 6797, 3856, 6802, 5460, 15988, 6984, 8754, 8671, 5462, 2] */
|
||||
function _fun123660(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16195:6, offset: 0x025969e2, size: 375 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_123663 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
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 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value.View;
|
||||
const env0_6 = value.StyleSheet;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const guildSettingsStore = importDefault(9113) /* metro dependency 9113: GuildSettingsStore */;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_10 = value.jsx;
|
||||
const env0_11 = value.jsxs;
|
||||
const env0_12 = value.Fragment;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object2.containerInner = {paddingHorizontal: PX_12, flex: 1};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.searchField = {paddingVertical: PX_16};
|
||||
const env0_13 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/safety/native/GuildSettingsModalBans.tsx');
|
||||
exports.default = ConnectedGuildSettingsModalBans;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_123661(a0, a1) { // fn#123661, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16195:227, offset: 0x02596b59, 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)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun123662;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_123663(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') {
|
||||
value = _arrayLikeToArray_123663(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_123663(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun123662;
|
||||
}
|
||||
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 ConnectedGuildSettingsModalBans({guildId, contentContainerStyle}) { // fn#123664, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16195:1390, offset: 0x02596ccd, size: 1055 bytes, params: 2, frame: 31
|
||||
var r9;
|
||||
var r6;
|
||||
var items2;
|
||||
const EmptyState = (require(1305) /* metro dependency 1305: native */).EmptyState;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const styles = useStyles();
|
||||
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
|
||||
return GuildStore.getGuild(guildId);
|
||||
});
|
||||
const {bans, searchQuery,
|
||||
bansVersion} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([GuildSettingsStore],
|
||||
_fun123666);
|
||||
const value4 = (importDefault(7705) /* metro dependency 7705: useScaledRowHeight */)();
|
||||
const paddingBottom = StyleSheet.flatten(contentContainerStyle)?.paddingBottom;
|
||||
const r12 = typeof paddingBottom !== 'number' ? 0 : paddingBottom + (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
const DeveloperMode = (require(3829) /* metro dependency 3829: UserSettings */).DeveloperMode;
|
||||
const value8 = DeveloperMode.useSetting();
|
||||
const binding = value8;
|
||||
const {users, sections} = binding.useMemo(_fun123667, [bans, bansVersion, searchQuery]);
|
||||
binding.useEffect(_fun123669, [guildId]);
|
||||
const value10 = binding.useCallback(_fun123671, [bans, value8, guild, users]);
|
||||
const value11 = binding.useCallback(_fun123675, []);
|
||||
const jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
|
||||
if (bans == null) {
|
||||
const SceneLoadingIndicator = (require(5460) /* metro dependency 5460: SceneLoadingIndicatorNative */).SceneLoadingIndicator;
|
||||
r6 = <SceneLoadingIndicator />;
|
||||
} else if (searchQuery !== '') {
|
||||
var viewBindingProps = {style: styles.containerInner};
|
||||
items2 = [<View style={styles.searchField}>{((SearchField) => <SearchField size="md" onChange={value11} />)((require(6984) /* metro dependency 6984: SearchFieldNative */).SearchField)}</View>];
|
||||
if (searchQuery === '') {
|
||||
r9 = ((Component) => <Component sections={sections} itemSize={value4} estimatedListSize="windowSize" renderItem={value10} insetEnd={r12} />)(importDefault(8671) /* metro dependency 8671: FastestListAndroid */);
|
||||
} else if (users.length === 0) {
|
||||
r9 = <EmptyState Illustration={(require(8754) /* metro dependency 8754: NoResults */).NoResults} body={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.z3cK5j)} />;
|
||||
} else {
|
||||
r9 = ((Component) => <Component sections={sections} itemSize={value4} estimatedListSize="windowSize" renderItem={value10} insetEnd={r12} />)(importDefault(8671) /* metro dependency 8671: FastestListAndroid */);
|
||||
}
|
||||
items2[1] = r9;
|
||||
r6 = <View {...viewBindingProps}>{items2}</View>;
|
||||
} else if (users.length === 0) {
|
||||
r6 = <EmptyState Illustration={(require(15988) /* metro dependency 15988: BansEmpty */).BansEmpty} title={intl.string(t.ZEiY1D)} body={intl.string(t.zfCsAw)} />;
|
||||
} else {
|
||||
var viewBindingProps = {style: styles.containerInner};
|
||||
items2 = [<View style={styles.searchField}>{((SearchField) => <SearchField size="md" onChange={value11} />)((require(6984) /* metro dependency 6984: SearchFieldNative */).SearchField)}</View>];
|
||||
if (searchQuery === '') {
|
||||
r9 = ((Component) => <Component sections={sections} itemSize={value4} estimatedListSize="windowSize" renderItem={value10} insetEnd={r12} />)(importDefault(8671) /* metro dependency 8671: FastestListAndroid */);
|
||||
} else if (users.length === 0) {
|
||||
r9 = <EmptyState Illustration={(require(8754) /* metro dependency 8754: NoResults */).NoResults} body={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.z3cK5j)} />;
|
||||
} else {
|
||||
r9 = ((Component) => <Component sections={sections} itemSize={value4} estimatedListSize="windowSize" renderItem={value10} insetEnd={r12} />)(importDefault(8671) /* metro dependency 8671: FastestListAndroid */);
|
||||
}
|
||||
items2[1] = r9;
|
||||
r6 = <View {...viewBindingProps}>{items2}</View>;
|
||||
}
|
||||
const NavScrim = (require(5462) /* metro dependency 5462: NavScrimAndroid */).NavScrim;
|
||||
return (
|
||||
<>
|
||||
{r6}
|
||||
<NavScrim />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun123666() { // fn#123666, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16195:1576, offset: 0x025970ec, size: 70 bytes, params: 1, frame: 12
|
||||
let value = environment.__proto__;
|
||||
value = GuildSettingsStore.getProps();
|
||||
return {bans: value.bans, searchQuery: value.searchQuery ?? '', bansVersion: value.bansVersion};
|
||||
}
|
||||
|
||||
function _fun123667() { // fn#123667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16195:1893, offset: 0x02597132, size: 324 bytes, params: 1, frame: 26
|
||||
var environment;
|
||||
var r2;
|
||||
var r12;
|
||||
var value5;
|
||||
var property;
|
||||
var user;
|
||||
var length;
|
||||
var value7;
|
||||
var defaultImport;
|
||||
var toLowerCase;
|
||||
var value8;
|
||||
var username;
|
||||
var value9;
|
||||
var globalName;
|
||||
var value10;
|
||||
var defaultImport2;
|
||||
var value11;
|
||||
var value12;
|
||||
var value13;
|
||||
let items2 = [];
|
||||
let value = environment.__proto__;
|
||||
const _createForOfIteratorHelperLoose_123661Binding = _createForOfIteratorHelperLoose_123661;
|
||||
let r0 = bans ?? [];
|
||||
const value3 = _createForOfIteratorHelperLoose_123661Binding(r0);
|
||||
const value4 = value3();
|
||||
let done = value4.done;
|
||||
if (!done) {
|
||||
r2 = value4;
|
||||
while (true) {
|
||||
value5 = r2.value;
|
||||
property = env1_3(value5, 1)[0];
|
||||
user = UserStore.getUser(property);
|
||||
if (user != null) {
|
||||
length = searchQuery.length;
|
||||
value7 = length === 0;
|
||||
if (value7) {
|
||||
r0 = value7;
|
||||
continue;
|
||||
}
|
||||
defaultImport = importDefault(6590) /* metro dependency 6590 */;
|
||||
value8 = searchQuery.toLowerCase();
|
||||
username = user.username;
|
||||
toLowerCase = username.toLowerCase;
|
||||
value9 = defaultImport(value8, Reflect.apply(toLowerCase, username, []));
|
||||
r0 = value9;
|
||||
if (r0) {
|
||||
continue;
|
||||
}
|
||||
globalName = user.globalName;
|
||||
value10 = globalName != null;
|
||||
if (!value10) {
|
||||
r12 = value10;
|
||||
continue;
|
||||
}
|
||||
defaultImport2 = importDefault(6590) /* metro dependency 6590 */;
|
||||
value11 = searchQuery.toLowerCase();
|
||||
globalName = user.globalName;
|
||||
toLowerCase = globalName.toLowerCase;
|
||||
value12 = defaultImport2(value11, Reflect.apply(toLowerCase, globalName, []));
|
||||
r12 = value12;
|
||||
r0 = r12;
|
||||
if (r0) {
|
||||
items2.push(user);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
value13 = value3();
|
||||
done = value13.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r2 = value13;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
items2.sort(function(a0, a1) {
|
||||
var username = a0.username;
|
||||
var value = username.toLowerCase();
|
||||
username = a1.username;
|
||||
return value.localeCompare(username.toLowerCase());
|
||||
});
|
||||
const object2 = {users: items2};
|
||||
items2 = [items2.length];
|
||||
object2.sections = items2;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun123669() { // fn#123669, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16195:2347, offset: 0x02597276, size: 64 bytes, params: 1, frame: 15
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(6593) /* metro dependency 6593: GuildActionCreators */;
|
||||
value.fetchGuildBansBatch(guildId, 1000, null);
|
||||
return _fun123670;
|
||||
}
|
||||
|
||||
function _fun123671(a0, a1) { // fn#123671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16195:2455, offset: 0x025972e0, size: 334 bytes, params: 3, frame: 24
|
||||
var environment;
|
||||
var r0;
|
||||
var value5;
|
||||
var TableRow;
|
||||
var globalName;
|
||||
const property = users[a1];
|
||||
const bansBinding = bans;
|
||||
const value2 = null;
|
||||
const value3 = undefined;
|
||||
const env0_1 = value2 == bansBinding ? value3 : bans.get(property.id);
|
||||
if (value2 == r0) {
|
||||
r0 = value2;
|
||||
} else {
|
||||
value5 = environment.__proto__;
|
||||
TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
var tableRowProps = {start: a1 === 0, end: a1 === users.length - 1,
|
||||
icon: ((Avatar) => <Avatar size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.SMALL} user={property} guildId={value2 == guild ? value3 : guild.id} />)((require(1305) /* metro dependency 1305: native */).Avatar)};
|
||||
globalName = property.globalName;
|
||||
tableRowProps.label = value2 != globalName ? globalName : property.username;
|
||||
globalName = property.globalName;
|
||||
tableRowProps.subLabel = value2 != globalName ? property.username : value2;
|
||||
tableRowProps.trailing = ((TableRowArrow) => <TableRowArrow />)((require(6243) /* metro dependency 6243: TableRowArrowNative */).TableRowArrow);
|
||||
tableRowProps.onPress = onPress_123672;
|
||||
r0 = <TableRow {...tableRowProps} />;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun123675(a0) { // fn#123675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16195:3414, offset: 0x025976b4, size: 41 bytes, params: 2, frame: 12
|
||||
const value = environment.__proto__;
|
||||
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).setSearchQuery(a0);
|
||||
}
|
||||
|
||||
function _fun123670() { // fn#123670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16195:2393, offset: 0x025972b6, size: 42 bytes, params: 1, frame: 12
|
||||
const value = environment.__proto__.__proto__;
|
||||
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).setSearchQuery('');
|
||||
}
|
||||
|
||||
function onPress_123672() { // fn#123672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16195:2806, offset: 0x0259742e, size: 511 bytes, params: 1, frame: 27
|
||||
var environment;
|
||||
var object3;
|
||||
var value2;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var items2;
|
||||
var push;
|
||||
var showSimpleActionSheet;
|
||||
var object4;
|
||||
let value = environment.__proto__;
|
||||
if (guild != null) {
|
||||
object3 = {};
|
||||
value2 = environment.__proto__.__proto__;
|
||||
object3.label = intl.string(t.Mp6Z2l);
|
||||
object3.isDestructive = true;
|
||||
object3.onPress = onPress_123673;
|
||||
items2 = [object3];
|
||||
if (env1_4) {
|
||||
push = items2.push;
|
||||
object3 = {};
|
||||
object3.label = intl.string(t['/AXYnE']);
|
||||
object3.onPress = onPress_123674;
|
||||
Reflect.apply(push, items2, [object3]);
|
||||
}
|
||||
value = require(6802) /* metro dependency 6802: showSimpleActionSheet */;
|
||||
showSimpleActionSheet = value.showSimpleActionSheet;
|
||||
object4 = {};
|
||||
object4.title = intl.formatToPlainString(t.XvAG5t, {user: env0_0.username});
|
||||
object4.subtitle = '' + intl.string(t['9Ki66N']) + ': ' + (env0_1.reason == null ? intl.string(t['t+2Zci']) : env0_1.reason !== '' ? env0_1.reason : intl.string(t['t+2Zci']));
|
||||
Reflect.apply(showSimpleActionSheet, value, [{key: 'GuildSettingsUnban', header: object4, options: items2,
|
||||
hasIcons: false}]);
|
||||
}
|
||||
}
|
||||
|
||||
function onPress_123672OnPress() { // fn#123673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16195:2896, owner: onPress_123672.onPress, offset: 0x0259762d, size: 63 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
value = importDefault(6593) /* metro dependency 6593: GuildActionCreators */;
|
||||
value.unbanUser(guild.id, env1_0.id);
|
||||
}
|
||||
|
||||
function onPress_123672OnPress_123674() { // fn#123674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16195:3001, owner: onPress_123672.onPress, offset: 0x0259766c, size: 72 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
value = require(6797) /* metro dependency 6797: ClipboardUtilsNative */;
|
||||
value.copy(env1_0.id);
|
||||
(require(3856) /* metro dependency 3856: ToastUtils */).presentIdCopied();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,326 @@
|
||||
/* Metro module 15876; source: modules/guild_settings/safety/native/GuildSettingsModalModeration.tsx; dependencies: [6, 7, 15, 17, 18, 31, 3784, 9113, 661, 33, 4501, 697, 8169, 9112, 6231, 1244, 1948, 6808, 5282, 5277, 7988, 13360, 7987, 4573, 7972, 4572, 5462, 3868, 1484, 566, 2] */
|
||||
function _fun122192(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#122192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16084:6, offset: 0x0255d7ba, size: 463 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
|
||||
const guildSettingsStore = importDefault(9113) /* metro dependency 9113: GuildSettingsStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_11 = constantsModule.GuildFeatures;
|
||||
const env0_12 = constantsModule.HelpdeskArticles;
|
||||
const env0_13 = constantsModule.Permissions;
|
||||
const env0_14 = constantsModule.GuildNSFWContentLevel;
|
||||
const value3 = require(33) /* metro dependency 33 */;
|
||||
const env0_15 = value3.jsx;
|
||||
const env0_16 = value3.jsxs;
|
||||
const env0_17 = value3.Fragment;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createLegacyClassComponentStyles = createStylesModule.createLegacyClassComponentStyles;
|
||||
const TABLE_ROW_PADDING = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_PADDING;
|
||||
const env0_18 = Reflect.apply(createLegacyClassComponentStyles, createStylesModule,
|
||||
[{stack: {paddingHorizontal: TABLE_ROW_PADDING}}]);
|
||||
const PureComponent = value.PureComponent;
|
||||
value = _fun122198(PureComponent);
|
||||
const ThemeContext = (require(3868) /* metro dependency 3868: native */).ThemeContext;
|
||||
value.contextType = ThemeContext;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/safety/native/GuildSettingsModalModeration.tsx');
|
||||
exports.default = ConnectedGuildSettingsModalModeration;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_122193() { // fn#122193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16084:309, offset: 0x0255d989, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_122193_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function GuildSettingsOwnerConfiguredContentLevel({guild}) { // fn#122196, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16084:662, offset: 0x0255d9eb, size: 467 bytes, params: 2, frame: 29
|
||||
var r0;
|
||||
var TableRowGroup;
|
||||
var object;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var format;
|
||||
var iyQQ62;
|
||||
const nsfwLevel = guild.nsfwLevel;
|
||||
let value = null;
|
||||
const r3 = value != nsfwLevel ? nsfwLevel : GuildNSFWContentLevel.DEFAULT;
|
||||
const ownerConfiguredContentLevel = guild.ownerConfiguredContentLevel;
|
||||
const r10 = value != ownerConfiguredContentLevel ? ownerConfiguredContentLevel : GuildNSFWContentLevel.DEFAULT;
|
||||
const value5 = (require(8169) /* metro dependency 8169: useUserIsTeen */).useUserIsTeen();
|
||||
const AGE_RESTRICTED = GuildNSFWContentLevel.AGE_RESTRICTED;
|
||||
if (value5) {
|
||||
r0 = value;
|
||||
} else {
|
||||
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
var tableRowGroupProps = {title: intl.string(t.YJlvBM), hasIcons: false};
|
||||
format = intl.format;
|
||||
iyQQ62 = t.iyQQ62;
|
||||
value = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
||||
tableRowGroupProps.description = Reflect.apply(format, intl, [iyQQ62,
|
||||
{helpArticleLink: value.getArticleURL(HelpdeskArticles.NSFW_SERVER_AGE_RESTRICTION)}]);
|
||||
value = <TableRowGroup {...tableRowGroupProps} key="filter-section">{((TableSwitchRow) => <TableSwitchRow label={intl.string(t.N9xEJF)} value={r10 === GuildNSFWContentLevel.AGE_RESTRICTED} onValueChange={env0_8.useCallback(function(a0) {
|
||||
var defaultImport = importDefault(dependencyMap[13]);
|
||||
defaultImport.updateGuild({ownerConfiguredContentLevel: a0 ? GuildNSFWContentLevel.AGE_RESTRICTED : GuildNSFWContentLevel.DEFAULT});
|
||||
},
|
||||
[])} disabled={r3 === AGE_RESTRICTED && r10 !== GuildNSFWContentLevel.AGE_RESTRICTED} />)((require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow)}</TableRowGroup>;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun122198(a0) { // fn#122198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16084:1336, offset: 0x0255dc03, size: 280 bytes, params: 2, frame: 16
|
||||
const closure = GuildSettingsModalModeration;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, [{key: 'componentDidMount', value: function() {
|
||||
this.updateNavigation();
|
||||
}}, {key: 'componentDidUpdate', value: function(a0) {
|
||||
this.updateNavigation(a0);
|
||||
}}, {key: 'updateNavigation', value: value_122203}, {key: 'renderVerificationLevelSection', value: value_122207},
|
||||
{key: 'renderExplicitContentFilter', value: value_122210}, {key: 'render', value: value_122213},
|
||||
{key: 'componentWillUnmount', value: value_122214}, {key: 'handleVerificationLevelChange', value: value_122215},
|
||||
{key: 'handleExplicitContentFilterChange', value: value_122216}]);
|
||||
}
|
||||
|
||||
function ConnectedGuildSettingsModalModeration({contentContainerStyle}) { // fn#122217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16084:4664, offset: 0x0255e52e, size: 205 bytes, params: 2, frame: 21
|
||||
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([GuildSettingsStore],
|
||||
_fun122218);
|
||||
const guild = value3.guild;
|
||||
return guild != null ? ((Component) => <Component navigation={value2} guild={guild} submitting={value3.submitting} hasChanges={value3.hasChanges} canManageGuild={(require(566) /* metro dependency 566: flux */).useStateFromStores([PermissionStore],
|
||||
function() {
|
||||
var MANAGE_GUILD = Permissions.MANAGE_GUILD;
|
||||
return PermissionStore.can(MANAGE_GUILD, guild);
|
||||
})} contentContainerStyle={contentContainerStyle} />)(env0_20) : null;
|
||||
}
|
||||
|
||||
function GuildSettingsModalModeration(a0) { // fn#122199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16084:1348, offset: 0x0255dd1b, size: 145 bytes, params: 2, frame: 20
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env1_3;
|
||||
binding(this, GuildSettingsModalModeration);
|
||||
const items2 = [];
|
||||
arraySpread(items2, value, 0, items2);
|
||||
value = env1_6(GuildSettingsModalModeration);
|
||||
binding = env1_5;
|
||||
if (_isNativeReflectConstruct_122193()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, items2, env1_6(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, items2);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
value.handleSaveChanges = handleSaveChanges_122200;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_122203(a0) { // fn#122203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16084:2077, offset: 0x0255de32, size: 133 bytes, params: 2, frame: 17
|
||||
const {submitting, hasChanges, navigation} = this.props;
|
||||
let value = a0 != null;
|
||||
if (!(value && submitting === a0.submitting && hasChanges === a0.hasChanges)) {
|
||||
value = undefined;
|
||||
navigation.setOptions({headerLeft: submitting ? function() {
|
||||
return null;
|
||||
} : value, headerRight: submitting ? _fun122205 : hasChanges ? _fun122206 : value});
|
||||
}
|
||||
}
|
||||
|
||||
function value_122207() { // fn#122207, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16084:2471, offset: 0x0255df55, size: 276 bytes, params: 1, frame: 23
|
||||
var environment;
|
||||
const guild = this.props.guild;
|
||||
const value = environment.__proto__;
|
||||
const TableRadioGroup = (require(7988) /* metro dependency 7988: TableRadioGroupNative */).TableRadioGroup;
|
||||
const object2 = {hasIcons: false};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const DpRdYK = (require(1244) /* metro dependency 1244: indexNative */).t.DpRdYK;
|
||||
object2.title = Reflect.apply(string, intl, [DpRdYK]);
|
||||
object2.description = intl.format((require(1244) /* metro dependency 1244: indexNative */).t.iuRk2j, {});
|
||||
object2.value = guild.verificationLevel;
|
||||
object2.onChange = onChange_122208;
|
||||
const moderationUtilsModule = require(13360) /* metro dependency 13360: ModerationUtils */;
|
||||
const generateVerificationLevelOptions = moderationUtilsModule.generateVerificationLevelOptions;
|
||||
const features = guild.features;
|
||||
const has = features.has;
|
||||
const COMMUNITY = GuildFeatures.COMMUNITY;
|
||||
return (
|
||||
<TableRadioGroup {...object2} key="level-section">
|
||||
{Reflect.apply(generateVerificationLevelOptions, moderationUtilsModule, [Reflect.apply(has, features,
|
||||
[COMMUNITY])]).map(_fun122209)}
|
||||
</TableRadioGroup>
|
||||
);
|
||||
}
|
||||
|
||||
function value_122210() { // fn#122210, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16084:3111, offset: 0x0255e155, size: 318 bytes, params: 1, frame: 26
|
||||
var environment;
|
||||
const guild = this.props.guild;
|
||||
const value = environment.__proto__;
|
||||
const TableRadioGroup = (require(7988) /* metro dependency 7988: TableRadioGroupNative */).TableRadioGroup;
|
||||
const object2 = {hasIcons: false};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bPgfJz);
|
||||
const format = intl.format;
|
||||
const BI4ukC = (require(1244) /* metro dependency 1244: indexNative */).t.BI4ukC;
|
||||
const defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
||||
const getArticleURL = defaultImport.getArticleURL;
|
||||
const SAFE_DIRECT_MESSAGING = HelpdeskArticles.SAFE_DIRECT_MESSAGING;
|
||||
object2.description = Reflect.apply(format, intl, [BI4ukC, {helpdeskArticle: Reflect.apply(getArticleURL,
|
||||
defaultImport, [SAFE_DIRECT_MESSAGING])}]);
|
||||
object2.value = guild.explicitContentFilter;
|
||||
object2.onChange = onChange_122211;
|
||||
const moderationUtilsModule = require(13360) /* metro dependency 13360: ModerationUtils */;
|
||||
const generateContentFilterOptions = moderationUtilsModule.generateContentFilterOptions;
|
||||
const features = guild.features;
|
||||
const has = features.has;
|
||||
const COMMUNITY = GuildFeatures.COMMUNITY;
|
||||
return (
|
||||
<TableRadioGroup {...object2} key="filter-section">
|
||||
{Reflect.apply(generateContentFilterOptions, moderationUtilsModule, [Reflect.apply(has, features,
|
||||
[COMMUNITY])]).map(_fun122212)}
|
||||
</TableRadioGroup>
|
||||
);
|
||||
}
|
||||
|
||||
function value_122213() { // fn#122213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16084:3710, offset: 0x0255e336, size: 336 bytes, params: 1, frame: 26
|
||||
const {canManageGuild, guild, hasChanges} = this.props;
|
||||
const value2 = env1_18(this.context);
|
||||
const jsxRuntimeEnv1_17Binding = jsxRuntimeEnv1_17;
|
||||
const Form = (require(7972) /* metro dependency 7972: native */).Form;
|
||||
const items3 = [{paddingTop: 16}];
|
||||
items3[1] = this.props.contentContainerStyle;
|
||||
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
const stack = value2.stack;
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
const items2 = [this.renderVerificationLevelSection()];
|
||||
items2[1] = this.renderExplicitContentFilter();
|
||||
items2[2] = canManageGuild && <GuildSettingsOwnerConfiguredContentLevel guild={guild} hasChanges={hasChanges} />;
|
||||
const form = <Form contentContainerStyle={items3}><Stack style={stack} spacing={PX_24}>{items2}</Stack></Form>;
|
||||
const NavScrim = (require(5462) /* metro dependency 5462: NavScrimAndroid */).NavScrim;
|
||||
return (
|
||||
<>
|
||||
{form}
|
||||
<NavScrim />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function value_122214() { // fn#122214, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16084:4203, offset: 0x0255e486, size: 72 bytes, params: 1, frame: 12
|
||||
var value;
|
||||
if (this.props.hasChanges) {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
|
||||
value.cancelChanges(this.props.guild.id);
|
||||
}
|
||||
}
|
||||
|
||||
function value_122215(a0) { // fn#122215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16084:4326, offset: 0x0255e4ce, size: 48 bytes, params: 2, frame: 13
|
||||
const value = environment.__proto__;
|
||||
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).updateGuild({verificationLevel: a0});
|
||||
}
|
||||
|
||||
function value_122216(a0) { // fn#122216, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16084:4431, offset: 0x0255e4fe, size: 48 bytes, params: 2, frame: 13
|
||||
const value = environment.__proto__;
|
||||
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).updateGuild({explicitContentFilter: a0});
|
||||
}
|
||||
|
||||
function _fun122218() { // fn#122218, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16084:4810, offset: 0x0255e5fb, size: 52 bytes, params: 1, frame: 11
|
||||
let value = environment.__proto__;
|
||||
value = GuildSettingsStore.getProps();
|
||||
return {guild: value.guild, submitting: value.submitting, hasChanges: value.hasChanges};
|
||||
}
|
||||
|
||||
function GuildSettingsModalModerationHandleSaveChanges() { // fn#122200, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16084:1638, owner: GuildSettingsModalModeration.handleSaveChanges, offset: 0x0255ddac, size: 96 bytes, params: 1, frame: 16
|
||||
const guild = env0_0.props.guild;
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */;
|
||||
value.saveGuild(guild.id, {verificationLevel: guild.verificationLevel,
|
||||
explicitContentFilter: guild.explicitContentFilter,
|
||||
ownerConfiguredContentLevel: guild.ownerConfiguredContentLevel});
|
||||
}
|
||||
|
||||
function _fun122205() { // fn#122205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16084:2253, offset: 0x0255deb7, size: 45 bytes, params: 1, frame: 13
|
||||
const HeaderSubmittingIndicator = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).HeaderSubmittingIndicator;
|
||||
return <HeaderSubmittingIndicator />;
|
||||
}
|
||||
|
||||
function _fun122206() { // fn#122206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16084:2300, offset: 0x0255dee4, size: 113 bytes, params: 1, frame: 18
|
||||
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
|
||||
const handleSaveChanges = env0_0.handleSaveChanges;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<HeaderActionButton
|
||||
onPress={handleSaveChanges}
|
||||
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['R3BPH+'])}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function value_122207OnChange(a0) { // fn#122208, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16084:2688, owner: value_122207.onChange, offset: 0x0255e069, size: 25 bytes, params: 2, frame: 11
|
||||
return env0_0.handleVerificationLevelChange(a0);
|
||||
}
|
||||
|
||||
function _fun122209({name, desc, color, value, disabled}) { // fn#122209, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16084:2814, offset: 0x0255e082, size: 211 bytes, params: 2, frame: 24
|
||||
const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow;
|
||||
const r7 = color == null ? name : ((Text) => <Text variant="text-md/semibold" style={{color: color}}>{name}</Text>)((require(4573) /* metro dependency 4573: Text */).Text);
|
||||
const canManageGuild = env0_0.props.canManageGuild;
|
||||
return (
|
||||
<TableRadioRow
|
||||
value={value}
|
||||
label={r7}
|
||||
subLabel={desc}
|
||||
disabled={canManageGuild ? disabled : !canManageGuild}
|
||||
key={'level-' + value}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function value_122210OnChange(a0) { // fn#122211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16084:3395, owner: value_122210.onChange, offset: 0x0255e293, size: 25 bytes, params: 2, frame: 11
|
||||
return env0_0.handleExplicitContentFilterChange(a0);
|
||||
}
|
||||
|
||||
function _fun122212({name, desc, value, disabled}) { // fn#122212, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16084:3521, offset: 0x0255e2ac, size: 138 bytes, params: 2, frame: 19
|
||||
const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow;
|
||||
const canManageGuild = env0_0.props.canManageGuild;
|
||||
return (
|
||||
<TableRadioRow
|
||||
value={value}
|
||||
label={name}
|
||||
subLabel={desc}
|
||||
disabled={canManageGuild ? disabled : !canManageGuild}
|
||||
key={'filter-' + value}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
/* Metro module 15939; source: modules/guild_settings/safety/native/GuildSettingsModalSecurity.tsx; dependencies: [31, 27, 1422, 1867, 1878, 9113, 661, 33, 4501, 697, 566, 9112, 4573, 1244, 4578, 13315, 5462, 2] */
|
||||
function _fun123026(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16147:6, offset: 0x0257e4d6, size: 464 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_4 = value.View;
|
||||
const env0_5 = value.Image;
|
||||
const env0_6 = (require(1422) /* metro dependency 1422: GuildRecord */).isGuildOwnerWithRequiredMfaLevel;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const guildSettingsStore = importDefault(9113) /* metro dependency 9113: GuildSettingsStore */;
|
||||
value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_10 = value.GuildFeatures;
|
||||
const env0_11 = value.MFALevels;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_12 = value.jsx;
|
||||
const env0_13 = value.jsxs;
|
||||
const env0_14 = value.Fragment;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const TABLE_ROW_PADDING = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_PADDING;
|
||||
const env0_15 = Reflect.apply(createStyles, value, [{wrapper: {'flex': 1, 'justifyContent': 'space-between',
|
||||
'paddingTop': 99}, center: {'alignItems': 'center', 'flexDirection': 'column',
|
||||
paddingHorizontal: TABLE_ROW_PADDING}, label: {'textAlign': 'center', 'marginBottom': 8}, image: {'width': 295,
|
||||
'height': 142, 'marginHorizontal': 35}, infoWrapper: {marginBottom: 40}, button: {'alignSelf': 'center',
|
||||
'paddingHorizontal': 16, 'marginTop': 16}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/safety/native/GuildSettingsModalSecurity.tsx');
|
||||
exports.default = GuildSettingsModalSecurity;
|
||||
}
|
||||
|
||||
function GuildSettingsModalSecurity({guildId, contentContainerStyle}) { // fn#123027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16147:784, offset: 0x0257e6a6, size: 1044 bytes, params: 2, frame: 36
|
||||
const styles = useStyles();
|
||||
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
|
||||
return GuildStore.getGuild(guildId);
|
||||
});
|
||||
const mfaLevel = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildSettingsStore],
|
||||
function() {
|
||||
return GuildSettingsStore.getProps().mfaLevel;
|
||||
});
|
||||
const currentUser = UserStore.getCurrentUser();
|
||||
const ELEVATED = MFALevels.ELEVATED;
|
||||
const value4 = mfaLevel === ELEVATED;
|
||||
const r20 = currentUser?.mfaEnabled === true && guild != null && isGuildOwnerWithRequiredMfaLevel(guild,
|
||||
currentUser) && (value4 ? !guild.features.has(GuildFeatures.DISCOVERABLE) : !value4);
|
||||
const value10 = env0_3.useCallback(_fun123030, [guild, value4]);
|
||||
const jsxRuntimeEnv0_14Binding = jsxRuntimeEnv0_14;
|
||||
const items3 = [styles.wrapper, contentContainerStyle];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const Wi9LEV = t.Wi9LEV;
|
||||
const items2 = [<Text style={styles.label} variant="text-md/medium" color="mobile-text-heading-primary">{Reflect.apply(string,
|
||||
intl, [Wi9LEV])}</Text>];
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
string = intl.string;
|
||||
items2[1] = <View style={styles.button}><Button text={value4 ? Reflect.apply(string, intl,
|
||||
[t['MP0Ho+']]) : Reflect.apply(string, intl,
|
||||
[t.yZcYGa])} disabled={!r20} variant={value4 ? 'destructive' : 'primary'} onPress={value10} shrink /></View>;
|
||||
items2[2] = guild != null && guild.features.has(GuildFeatures.DISCOVERABLE) ? <Text variant="text-sm/normal" color="text-feedback-critical">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['KG1V/E'])}</Text> : null;
|
||||
const view = <View style={items3}><View style={styles.center}>{items2}</View><View style={styles.center}><Image source={importDefault(13315) /* metro dependency 13315 */} style={styles.image} resizeMode="contain" /><View style={styles.infoWrapper}><Text variant="text-sm/medium" color="text-muted">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['FK0+iX'],
|
||||
{})}</Text></View></View></View>;
|
||||
const NavScrim = (require(5462) /* metro dependency 5462: NavScrimAndroid */).NavScrim;
|
||||
return (
|
||||
<>
|
||||
{view}
|
||||
<NavScrim />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun123030() { // fn#123030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16147:1133, offset: 0x0257ead3, size: 98 bytes, params: 1, frame: 14
|
||||
var value2;
|
||||
if (guild != null) {
|
||||
value2 = environment.__proto__;
|
||||
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).updateMFALevel({guildId: guild.id,
|
||||
|
||||
level: result ? MFALevels.NONE : MFALevels.ELEVATED});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,245 @@
|
||||
/* Metro module 10309; source: modules/guild_settings/safety/native/TransferOwnership.tsx; dependencies: [5, 57, 31, 27, 1878, 10308, 661, 33, 4501, 697, 3860, 1484, 566, 44, 9112, 10306, 3856, 4617, 6819, 4573, 10310, 1305, 1244, 3995, 6231, 8950, 4578, 2] */
|
||||
function _fun80009(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10495:6, offset: 0x01e69450, size: 553 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_5 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_6 = value.View;
|
||||
const env0_7 = value.Image;
|
||||
const env0_8 = value.ScrollView;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
value = require(10308) /* metro dependency 10308: TransferOwnershipConstants */;
|
||||
const env0_10 = value.TransferOwnershipModalScenes;
|
||||
const env0_11 = value.TransferOwnershipVerificationTypes;
|
||||
const env0_12 = (require(661) /* metro dependency 661: Constants */).NOOP;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_13 = value.jsx;
|
||||
const env0_14 = value.Fragment;
|
||||
const env0_15 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
let BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object2.background = {backgroundColor: BACKGROUND_BASE_LOW};
|
||||
BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object2.header = {'alignItems': 'center', 'paddingVertical': 16, backgroundColor: BACKGROUND_BASE_LOW};
|
||||
object2.arrow = {'width': 78, 'height': 15, 'paddingVertical': 1, 'marginBottom': 2};
|
||||
object2.avatarsWrapper = {'flexDirection': 'row', 'justifyContent': 'flex-start', 'width': 160, 'height': 80,
|
||||
'marginBottom': 30};
|
||||
BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object2.avatarFauxBorder = {'position': 'absolute', 'left': 71, 'top': -2, 'borderRadius': 44, 'width': 88,
|
||||
'height': 88, backgroundColor: BACKGROUND_BASE_LOW};
|
||||
object2.otherUserAvatar = {'top': 4, 'left': 4};
|
||||
object2.aka = {flex: 1};
|
||||
object2.miniAvatar = {'marginRight': 4, 'justifyContent': 'center', 'alignContent': 'center'};
|
||||
object2.miniGuildIcon = {'paddingRight': 4, 'paddingLeft': 2, 'justifyContent': 'center', 'alignContent': 'center'};
|
||||
const env0_16 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/safety/native/TransferOwnership.tsx');
|
||||
exports.default = TransferOwnership;
|
||||
}
|
||||
|
||||
function TransferOwnership({guild, toUser}) { // fn#80010, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10495:1118, offset: 0x01e69679, size: 1305 bytes, params: 2, frame: 38
|
||||
var r9;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var format;
|
||||
var property2;
|
||||
var object;
|
||||
var E90vgp;
|
||||
var object2;
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
const useToken = useTokenModule.useToken;
|
||||
const TABLE_ROW_PADDING = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_PADDING;
|
||||
const value2 = Reflect.apply(useToken, useTokenModule, [TABLE_ROW_PADDING]);
|
||||
const styles = useStyles();
|
||||
const env0_2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], _fun80015);
|
||||
const [property, env0_4] = env0_4Binding(env0_5.useState(false), 2);
|
||||
const defaultImport = importDefault(4617) /* metro dependency 4617: NicknameUtils */;
|
||||
const getNickname = defaultImport.getNickname;
|
||||
let id = guild.id;
|
||||
const value5 = Reflect.apply(getNickname, defaultImport, [id, undefined, toUser]);
|
||||
const hasAvatarForGuild2 = toUser.hasAvatarForGuild(guild.id);
|
||||
const closure = GuildHook;
|
||||
const object4 = {};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.paddingTop = PX_16;
|
||||
object4.paddingHorizontal = value2;
|
||||
const items2 = [<Image source={importDefault(10310) /* metro dependency 10310 */} style={styles.arrow} />];
|
||||
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
|
||||
id = guild.id;
|
||||
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
|
||||
let XXLARGE = AvatarSizes.XXLARGE;
|
||||
const avatar = <Avatar user={currentUser} guildId={id} size={XXLARGE} />;
|
||||
XXLARGE = AvatarSizes.XXLARGE;
|
||||
items2[1] = <View style={styles.avatarsWrapper}>{avatar}<View style={styles.avatarFauxBorder}><Avatar user={toUser} guildId={undefined} size={XXLARGE} style={styles.otherUserAvatar} /></View></View>;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
items2[2] = <Text variant="text-xs/medium" color="text-default">{guild.name}</Text>;
|
||||
if (value5 != null) {
|
||||
format = intl.format;
|
||||
E90vgp = (require(1244) /* metro dependency 1244: indexNative */).t.E90vgp;
|
||||
object2 = {GuildHook: closure};
|
||||
object2.user = (importDefault(3995) /* metro dependency 3995: UserUtils */).getUserTag(toUser);
|
||||
object2.AKAHook = AKAHook;
|
||||
r9 = Reflect.apply(format, intl, [E90vgp, object2]);
|
||||
} else if (hasAvatarForGuild2) {
|
||||
format = intl.format;
|
||||
E90vgp = (require(1244) /* metro dependency 1244: indexNative */).t.E90vgp;
|
||||
object2 = {GuildHook: closure};
|
||||
object2.user = (importDefault(3995) /* metro dependency 3995: UserUtils */).getUserTag(toUser);
|
||||
object2.AKAHook = AKAHook;
|
||||
r9 = Reflect.apply(format, intl, [E90vgp, object2]);
|
||||
} else {
|
||||
format = intl.format;
|
||||
property2 = (require(1244) /* metro dependency 1244: indexNative */).t['2XLnG0'];
|
||||
object = {GuildHook: closure};
|
||||
object.user = (importDefault(3995) /* metro dependency 3995: UserUtils */).getUserTag(toUser);
|
||||
r9 = Reflect.apply(format, intl, [property2, object]);
|
||||
}
|
||||
items2[3] = <Text variant="text-md/medium" color="text-default" key="transfer-ownership-details">{r9}</Text>;
|
||||
const items3 = [<View style={styles.header}>{items2}</View>];
|
||||
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
const string = intl.string;
|
||||
const Z5s7PM = (require(1244) /* metro dependency 1244: indexNative */).t.Z5s7PM;
|
||||
const TableCheckboxRow = (require(8950) /* metro dependency 8950: TableCheckboxRowNative */).TableCheckboxRow;
|
||||
format = intl.format;
|
||||
const xm6ACJ = (require(1244) /* metro dependency 1244: indexNative */).t.xm6ACJ;
|
||||
const object5 = {};
|
||||
object5.username = (importDefault(3995) /* metro dependency 3995: UserUtils */).getUserTag(toUser);
|
||||
items3[1] = <TableRowGroup title={Reflect.apply(string, intl,
|
||||
[Z5s7PM])} hasIcons={false}><TableCheckboxRow checked={property} label={Reflect.apply(format, intl, [xm6ACJ,
|
||||
object5])} onPress={onPress_80018} /></TableRowGroup>;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
items3[2] = <Button onPress={function() {
|
||||
return _handleTransfer.apply(this, arguments);
|
||||
}} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.jqqLb6)} disabled={!property} />;
|
||||
return (
|
||||
<ScrollView
|
||||
style={styles.background}
|
||||
keyboardShouldPersistTaps="handled"
|
||||
alwaysBounceVertical={false}
|
||||
>
|
||||
<View style={object4}>
|
||||
{items3}
|
||||
</View>
|
||||
</ScrollView>
|
||||
);
|
||||
}
|
||||
|
||||
function _handleTransfer() { // fn#80011, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10495:1452, owner: TransferOwnership._handleTransfer, offset: 0x01e69b92, size: 53 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
return env1_3(_fun80013).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _fun80015() { // fn#80015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10495:1299, offset: 0x01e69d16, size: 58 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
const currentUser = UserStore.getCurrentUser();
|
||||
(importDefault(44) /* metro dependency 44 */)(currentUser != null,
|
||||
'TransferOwnership: currentUser cannot be undefined');
|
||||
return currentUser;
|
||||
}
|
||||
|
||||
function GuildHook() { // fn#80016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10495:1893, owner: TransferOwnership.GuildHook, offset: 0x01e69d50, size: 223 bytes, params: 1, frame: 24
|
||||
const styles = useStyles();
|
||||
const jsxRuntimeEnv1_14Binding = jsxRuntimeEnv1_14;
|
||||
const icon = guild.icon;
|
||||
const value3 = null;
|
||||
const r6 = value3 != icon ? <View style={styles.miniGuildIcon}>{((Component) => <Component guild={guild} size={(require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes.XXSMALL} />)(importDefault(6819) /* metro dependency 6819: GuildIcon */)}</View> : value3;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<>
|
||||
{r6}
|
||||
<Text variant="text-md/bold">
|
||||
{guild.name}
|
||||
</Text>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function AKAHook() { // fn#80017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10495:2875, owner: TransferOwnership.AKAHook, offset: 0x01e69e2f, size: 303 bytes, params: 1, frame: 26
|
||||
const value = environment.__proto__;
|
||||
const styles = useStyles();
|
||||
const jsxRuntimeEnv1_14Binding = jsxRuntimeEnv1_14;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const text = <Text style={styles.aka} variant="text-sm/bold" color="text-default">{'AKA'}{' '}</Text>;
|
||||
const value4 = null;
|
||||
return (
|
||||
<>
|
||||
{text}
|
||||
{env0_6 ? ((Avatar) => <Avatar style={styles.miniAvatar} user={toUser} guildId={guild.id} size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.XXSMALL} />)((require(1305) /* metro dependency 1305: native */).Avatar) : value4}
|
||||
<Text variant="text-md/medium">
|
||||
{value4 != env0_5 ? env0_5 : toUser.toString()}
|
||||
</Text>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function* _fun80013() { // fn#80013, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10495:1505, offset: 0x01e69bd2, size: 239 bytes, params: 1, frame: 18
|
||||
var environment;
|
||||
var binding;
|
||||
var id;
|
||||
var value7;
|
||||
var value8;
|
||||
var transferOwnership;
|
||||
var id2;
|
||||
var then;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var mfaEnabled = env2_3.mfaEnabled;
|
||||
if (mfaEnabled) {
|
||||
value7 = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_1;
|
||||
value8 = binding(env3_2[14]);
|
||||
transferOwnership = value8.transferOwnership;
|
||||
id = require.id;
|
||||
id2 = importDefault.id;
|
||||
mfaEnabled = env2_3.mfaEnabled;
|
||||
value = null;
|
||||
value = Reflect.apply(transferOwnership, value8, [id, id2, mfaEnabled ? env3_11.MFA : value]);
|
||||
then = value.then;
|
||||
binding = env3_12;
|
||||
Reflect.apply(then, value, [_fun80014, binding]);
|
||||
} else {
|
||||
if (env2_3.email == null) {
|
||||
value7 = environment.__proto__.__proto__.__proto__;
|
||||
binding = env3_1;
|
||||
value8 = binding(env3_2[14]);
|
||||
transferOwnership = value8.transferOwnership;
|
||||
id = require.id;
|
||||
id2 = importDefault.id;
|
||||
mfaEnabled = env2_3.mfaEnabled;
|
||||
value = null;
|
||||
value = Reflect.apply(transferOwnership, value8, [id, id2, mfaEnabled ? env3_11.MFA : value]);
|
||||
then = value.then;
|
||||
binding = env3_12;
|
||||
Reflect.apply(then, value, [_fun80014, binding]);
|
||||
return undefined;
|
||||
}
|
||||
binding = env3_1;
|
||||
var value4 = binding(env3_2[14]);
|
||||
var sendTransferOwnershipPincode = value4.sendTransferOwnershipPincode;
|
||||
id = require.id;
|
||||
yield Reflect.apply(sendTransferOwnershipPincode, value4, [id]);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
var push = dependencyMap.push;
|
||||
var CONFIRM_EMAIL_CODE = env3_10.CONFIRM_EMAIL_CODE;
|
||||
Reflect.apply(push, dependencyMap, [CONFIRM_EMAIL_CODE]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun80014() { // fn#80014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10495:1613, offset: 0x01e69cc1, size: 85 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
const binding = env4_1;
|
||||
const binding2 = env4_2;
|
||||
binding(binding2[15]).close();
|
||||
binding(binding2[14]).close();
|
||||
env4_0(binding2[16]).showTransferOwnershipSuccess();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,126 @@
|
||||
/* Metro module 10307; source: modules/guild_settings/safety/native/TransferOwnershipModal.tsx; dependencies: [5, 31, 10308, 33, 10306, 480, 1244, 5282, 10309, 8966, 9112, 3856, 5280, 2] */
|
||||
function _fun79994(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10493:6, offset: 0x01e68e8b, size: 201 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const transferOwnershipConstantsModule = require(10308) /* metro dependency 10308: TransferOwnershipConstants */;
|
||||
const env0_5 = transferOwnershipConstantsModule.TransferOwnershipModalScenes;
|
||||
const env0_6 = transferOwnershipConstantsModule.TransferOwnershipVerificationTypes;
|
||||
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/safety/native/TransferOwnershipModal.tsx');
|
||||
exports.default = TransferOwnershipModal;
|
||||
}
|
||||
|
||||
function TransferOwnershipModal({guild, toUser}) { // fn#79996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10493:358, offset: 0x01e68f79, size: 175 bytes, params: 2, frame: 18
|
||||
const value2 = env0_4.useMemo(function() {
|
||||
return _fun79998(guild, toUser);
|
||||
}, [guild, toUser]);
|
||||
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
|
||||
const TRANFSER_OWNERSHIP = TransferOwnershipModalScenes.TRANFSER_OWNERSHIP;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<Navigator
|
||||
screens={value2}
|
||||
initialRouteName={TRANFSER_OWNERSHIP}
|
||||
headerBackTitle={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun79997() { // fn#79997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10493:427, offset: 0x01e69028, size: 30 bytes, params: 1, frame: 13
|
||||
return getScreens_79998(guild, toUser);
|
||||
}
|
||||
|
||||
function getScreens_79998(a0, a1) { // fn#79998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10493:431, offset: 0x01e69046, size: 338 bytes, params: 3, frame: 23
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const object5 = {};
|
||||
const value = environment.__proto__.__proto__;
|
||||
const ImpressionGroups = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionGroups;
|
||||
const GUILD_TRANSFER_OWNERSHIP_FLOW = ImpressionGroups.GUILD_TRANSFER_OWNERSHIP_FLOW;
|
||||
object5.impression_group = GUILD_TRANSFER_OWNERSHIP_FLOW;
|
||||
const object6 = {};
|
||||
const TRANFSER_OWNERSHIP = TransferOwnershipModalScenes.TRANFSER_OWNERSHIP;
|
||||
const object7 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
let Z5s7PM = t.Z5s7PM;
|
||||
object7.headerTitle = Reflect.apply(string, intl, [Z5s7PM]);
|
||||
const navigatorHeaderNativeModule = require(5282) /* metro dependency 5282: NavigatorHeaderNative */;
|
||||
const getHeaderCloseButton = navigatorHeaderNativeModule.getHeaderCloseButton;
|
||||
const closeModal_79995Binding = closeModal_79995;
|
||||
object7.headerLeft = Reflect.apply(getHeaderCloseButton, navigatorHeaderNativeModule, [closeModal_79995Binding]);
|
||||
const ImpressionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionNames;
|
||||
const GUILD_TRANSFER_OWNERSHIP = ImpressionNames.GUILD_TRANSFER_OWNERSHIP;
|
||||
object7.impressionName = GUILD_TRANSFER_OWNERSHIP;
|
||||
object7.impressionProperties = object5;
|
||||
object7.render = render_79999;
|
||||
object6[TRANFSER_OWNERSHIP] = object7;
|
||||
const CONFIRM_EMAIL_CODE = TransferOwnershipModalScenes.CONFIRM_EMAIL_CODE;
|
||||
const object8 = {};
|
||||
string = intl.string;
|
||||
Z5s7PM = t.Z5s7PM;
|
||||
object8.headerTitle = Reflect.apply(string, intl, [Z5s7PM]);
|
||||
object8.headerLeft = navigatorHeaderNativeModule.getHeaderCloseButton(closeModal_79995Binding);
|
||||
const GUILD_TRANSFER_OWNERSHIP_CONFIRM_EMAIL_CODE = ImpressionNames.GUILD_TRANSFER_OWNERSHIP_CONFIRM_EMAIL_CODE;
|
||||
object8.impressionName = GUILD_TRANSFER_OWNERSHIP_CONFIRM_EMAIL_CODE;
|
||||
object8.impressionProperties = object5;
|
||||
object8.render = render_80000;
|
||||
object6[CONFIRM_EMAIL_CODE] = object8;
|
||||
return object6;
|
||||
}
|
||||
|
||||
function getScreens_79998Render() { // fn#79999, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10493:763, owner: getScreens_79998.render, offset: 0x01e69198, size: 59 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return ((Component) => <Component guild={env0_0} toUser={require} />)(importDefault(10309) /* metro dependency 10309: TransferOwnership */);
|
||||
}
|
||||
|
||||
function getScreens_79998Render_80000() { // fn#80000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10493:1037, owner: getScreens_79998.render, offset: 0x01e691d3, size: 195 bytes, params: 1, frame: 19
|
||||
const ConfirmEmailCode = importDefault(8966) /* metro dependency 8966: ConfirmEmailCode */;
|
||||
const defaultImportProps = {onFormSubmit: _fun80001(), onSuccess: onSuccess_80005, onResend: env3_3(_fun80007)};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
let Z5s7PM = (require(1244) /* metro dependency 1244: indexNative */).t.Z5s7PM;
|
||||
defaultImportProps.headerText = Reflect.apply(string, intl, [Z5s7PM]);
|
||||
string = intl.string;
|
||||
Z5s7PM = (require(1244) /* metro dependency 1244: indexNative */).t.Z5s7PM;
|
||||
defaultImportProps.confirmButtonText = Reflect.apply(string, intl, [Z5s7PM]);
|
||||
return <ConfirmEmailCode {...defaultImportProps} />;
|
||||
}
|
||||
|
||||
function _fun80001() { // fn#80001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10493:1065, offset: 0x01e69296, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env4_3(_fun80003);
|
||||
return _fun80004;
|
||||
}
|
||||
|
||||
function renderOnSuccess_80005() { // fn#80005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10493:1225, owner: getScreens_79998.render.onSuccess, offset: 0x01e69327, size: 71 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
closeModal_79995();
|
||||
(importDefault(9112) /* metro dependency 9112: GuildSettingsActionCreators */).close();
|
||||
(require(3856) /* metro dependency 3856: ToastUtils */).showTransferOwnershipSuccess();
|
||||
}
|
||||
|
||||
function* _fun80007() { // fn#80007, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10493:1313, offset: 0x01e69379, size: 77 bytes, params: 1, frame: 15
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
|
||||
value = env5_1(env5_2[10]);
|
||||
yield value.sendTransferOwnershipPincode(env2_0.id, true);
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun80003(a0) { // fn#80003, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10493:1085, offset: 0x01e692c5, size: 98 bytes, params: 2, frame: 18
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
||||
var value3 = env6_1(env6_2[10]);
|
||||
var transferOwnership = value3.transferOwnership;
|
||||
var id = env3_0.id;
|
||||
var id2 = env3_1.id;
|
||||
var EMAIL = env6_6.EMAIL;
|
||||
yield Reflect.apply(transferOwnership, value3, [id, id2, EMAIL, a0]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
/* Metro module 10306; source: modules/guild_settings/safety/native/TransferOwnershipModalActionCreators.tsx; dependencies: [5080, 10307, 1962, 694, 2] */
|
||||
function _fun79990(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79990, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10492:6, offset: 0x01e68d57, size: 122 bytes, params: 8, frame: 18
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object2 = {open: open_79991, close: close_79992};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/safety/native/TransferOwnershipModalActionCreators.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
function open_79991(a0, a1) { // fn#79991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10492:132, offset: 0x01e68dd1, size: 96 bytes, params: 3, frame: 16
|
||||
const defaultImport = importDefault(dependencyMap[0]);
|
||||
const pushLazy = defaultImport.pushLazy;
|
||||
let value = require(dependencyMap[2]);
|
||||
value = value(dependencyMap[1], dependencyMap.paths);
|
||||
Reflect.apply(pushLazy, defaultImport, [value, {guild: a0, toUser: a1}, 'TRANSFER_OWNERSHIP_MODAL_KEY']);
|
||||
}
|
||||
|
||||
function close_79992() { // fn#79992, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10492:204, offset: 0x01e68e31, size: 47 bytes, params: 1, frame: 12
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).wait(_fun79993);
|
||||
}
|
||||
|
||||
function _fun79993() { // fn#79993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10492:226, offset: 0x01e68e60, size: 43 bytes, params: 1, frame: 12
|
||||
const value = environment.__proto__;
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey('TRANSFER_OWNERSHIP_MODAL_KEY');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user