Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,12 @@
|
||||
/* Metro module 12584; source: modules/shared_space_warnings/SharedSpaceWarningConstants.tsx; dependencies: [2] */
|
||||
function _fun96435(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96435, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12774:6, offset: 0x0215dbdb, size: 226 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/shared_space_warnings/SharedSpaceWarningConstants.tsx');
|
||||
exports.GdmWarningMedium = {BANNER: 'BANNER', MODAL: 'MODAL', ACTION_SHEET: 'ACTION_SHEET'};
|
||||
exports.BlockWarningEngagements = {CLICK_TO_STAY: 'click_to_stay', CLICK_TO_LEAVE: 'click_to_leave',
|
||||
CLICK_TO_JOIN: 'click_to_join', DISMISS: 'dismiss'};
|
||||
exports.VoiceChannelWarningSurfaces = {POST_JOIN_MODAL: 'post_join_modal', PRE_JOIN_MODAL: 'pre_join_modal',
|
||||
PRE_JOIN_SHEET: 'pre_join_sheet', POST_JOIN_SHEET: 'post_join_sheet'};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/* Metro module 12585; source: modules/shared_space_warnings/SharedSpacesWarningActionCreators.tsx; dependencies: [12581, 661, 507, 2] */
|
||||
function _fun96436(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96436, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12775:6, offset: 0x0215dcbd, size: 139 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(12581) /* metro dependency 12581: SharedSpacesWarningStore */).setDismissalTimeForChannel;
|
||||
const env0_3 = (require(661) /* metro dependency 661: Constants */).Endpoints;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/shared_space_warnings/SharedSpacesWarningActionCreators.tsx');
|
||||
exports.dismissGdmBlockedUserWarning = function(a0) {
|
||||
setDismissalTimeForChannel(a0);
|
||||
var HTTP = require(dependencyMap[2]).HTTP;
|
||||
var object = {};
|
||||
object.url = Endpoints.CHANNEL_BLOCKED_USER_WARNING_ACK(a0);
|
||||
object.rejectWithError = false;
|
||||
return HTTP.post(object);
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,257 @@
|
||||
/* Metro module 12580; source: modules/shared_space_warnings/SharedSpacesWarningManager.tsx; dependencies: [6, 7, 15, 17, 18, 1379, 4294, 3793, 12581, 12579, 672, 12582, 676, 12586, 4860, 2] */
|
||||
function _fun96382(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96382, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12770:6, offset: 0x0215c11d, size: 513 bytes, params: 8, frame: 23
|
||||
const env0_0 = require;
|
||||
const closure = voiceBlockedWarningInCooldownForUsers;
|
||||
const closure2 = userBlockedWarningInCooldown;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
let value = require(12581) /* metro dependency 12581: SharedSpacesWarningStore */;
|
||||
const env0_10 = value.getChannelDismissTimestamp;
|
||||
const env0_11 = value.getUserDismissTimestamp;
|
||||
const env0_12 = value.getGlobalDismissTimestamp;
|
||||
const env0_13 = value.isBlockedWarningQueued;
|
||||
const env0_14 = value.dequeueBlockWarning;
|
||||
const voiceChannelBlockedUserStore = importDefault(12579) /* metro dependency 12579: VoiceChannelBlockedUserStore */;
|
||||
let Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
let DAY = Millis.DAY;
|
||||
const env0_16 = 3 * DAY;
|
||||
Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
DAY = Millis.DAY;
|
||||
const env0_17 = 2 * DAY;
|
||||
Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
const HOUR = Millis.HOUR;
|
||||
const env0_18 = 1 * HOUR;
|
||||
value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
|
||||
value = _fun96394(value);
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/shared_space_warnings/SharedSpacesWarningManager.tsx');
|
||||
exports.default = value;
|
||||
exports.voiceBlockedWarningInCooldownForUsers = closure;
|
||||
exports.userBlockedWarningInCooldown = closure2;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_96383() { // fn#96383, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12770:338, offset: 0x0215c31e, 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_96383_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function handleChannelSelect_96386({channelId}) { // fn#96386, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12770:608, offset: 0x0215c380, size: 248 bytes, params: 2, frame: 17
|
||||
var value;
|
||||
var channel;
|
||||
var recipients;
|
||||
var value3;
|
||||
var value4;
|
||||
var length;
|
||||
var value5;
|
||||
if (channelId != null) {
|
||||
channel = ChannelStore.getChannel(channelId);
|
||||
if (channel != null) {
|
||||
if (channel.isGroupDM()) {
|
||||
recipients = channel.recipients;
|
||||
value3 = recipients.filter(function(a0) {
|
||||
return RelationshipStore.isBlocked(a0);
|
||||
});
|
||||
recipients = channel.recipients;
|
||||
value4 = recipients.filter(_fun96388);
|
||||
length = value3.length;
|
||||
value5 = 0;
|
||||
if (length > value5 || value4.length > value5) {
|
||||
if (!(channel.blockedUserWarningDismissed || (getChannelDismissTimestamp(channelId) ?? value5) > global.Date.now() - env0_16)) {
|
||||
value = require(12582) /* metro dependency 12582: showGdmBlockedUserModalNative */;
|
||||
value.showGdmBlockedUserModal({channelId: channelId, blockedUserIds: value3,
|
||||
ignoredUserIds: value4});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function handleAppStateChanged({state}) { // fn#96389, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12770:1037, offset: 0x0215c4a6, size: 295 bytes, params: 2, frame: 20
|
||||
var channelId;
|
||||
var blockedUsersForVoiceChannel;
|
||||
var ignoredUsersForVoiceChannel;
|
||||
var voiceBlockedWarningInCooldownForUsersBinding;
|
||||
var Set;
|
||||
var items2;
|
||||
var value5;
|
||||
var set;
|
||||
var showVoiceChannelBlockedUserWarning;
|
||||
var value;
|
||||
const AppStates = (require(676) /* metro dependency 676: ConstantsIOS */).AppStates;
|
||||
const ACTIVE = AppStates.ACTIVE;
|
||||
if (state === ACTIVE) {
|
||||
channelId = RTCConnectionStore.getChannelId();
|
||||
if (channelId != null) {
|
||||
blockedUsersForVoiceChannel = VoiceChannelBlockedUserStore.getBlockedUsersForVoiceChannel(channelId);
|
||||
ignoredUsersForVoiceChannel = VoiceChannelBlockedUserStore.getIgnoredUsersForVoiceChannel(channelId);
|
||||
if (blockedUsersForVoiceChannel.size > 0) {
|
||||
if (isBlockedWarningQueued()) {
|
||||
voiceBlockedWarningInCooldownForUsersBinding = voiceBlockedWarningInCooldownForUsers;
|
||||
Set = global.Set;
|
||||
items2 = [];
|
||||
arraySpread(items2, ignoredUsersForVoiceChannel, arraySpread(items2, blockedUsersForVoiceChannel, 0,
|
||||
Set),
|
||||
Set);
|
||||
value5 = Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
set = new Set();
|
||||
if (voiceBlockedWarningInCooldownForUsersBinding(set instanceof Object ? set : value5)) {
|
||||
dequeueBlockWarning();
|
||||
} else {
|
||||
value = require(12586) /* metro dependency 12586: showVoiceChannelBlockedUserWarningNative */;
|
||||
showVoiceChannelBlockedUserWarning = value.showVoiceChannelBlockedUserWarning;
|
||||
items2 = [];
|
||||
arraySpread(items2, ignoredUsersForVoiceChannel, arraySpread(items2,
|
||||
blockedUsersForVoiceChannel, 0,
|
||||
Set),
|
||||
Set);
|
||||
Reflect.apply(showVoiceChannelBlockedUserWarning, value, [channelId, items2[0]]);
|
||||
}
|
||||
} else {
|
||||
dequeueBlockWarning();
|
||||
}
|
||||
} else if (ignoredUsersForVoiceChannel.size > 0) {
|
||||
if (isBlockedWarningQueued()) {
|
||||
voiceBlockedWarningInCooldownForUsersBinding = voiceBlockedWarningInCooldownForUsers;
|
||||
Set = global.Set;
|
||||
items2 = [];
|
||||
arraySpread(items2, ignoredUsersForVoiceChannel, arraySpread(items2, blockedUsersForVoiceChannel, 0,
|
||||
Set),
|
||||
Set);
|
||||
value5 = Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
set = new Set();
|
||||
if (voiceBlockedWarningInCooldownForUsersBinding(set instanceof Object ? set : value5)) {
|
||||
dequeueBlockWarning();
|
||||
} else {
|
||||
value = require(12586) /* metro dependency 12586: showVoiceChannelBlockedUserWarningNative */;
|
||||
showVoiceChannelBlockedUserWarning = value.showVoiceChannelBlockedUserWarning;
|
||||
items2 = [];
|
||||
arraySpread(items2, ignoredUsersForVoiceChannel, arraySpread(items2,
|
||||
blockedUsersForVoiceChannel, 0,
|
||||
Set),
|
||||
Set);
|
||||
Reflect.apply(showVoiceChannelBlockedUserWarning, value, [channelId, items2[0]]);
|
||||
}
|
||||
} else {
|
||||
dequeueBlockWarning();
|
||||
}
|
||||
} else {
|
||||
dequeueBlockWarning();
|
||||
}
|
||||
} else {
|
||||
dequeueBlockWarning();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function isGlobalDismissTimestampInCooldown() { // fn#96390, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12770:1392, offset: 0x0215c5cd, size: 58 bytes, params: 1, frame: 11
|
||||
const r1 = getGlobalDismissTimestamp() ?? 0;
|
||||
const Date = global.Date;
|
||||
return r1 > Date.now() - env0_18;
|
||||
}
|
||||
|
||||
function voiceBlockedWarningInCooldownForUsers(a0) { // fn#96391, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12770:1483, offset: 0x0215c607, size: 59 bytes, params: 2, frame: 12
|
||||
var r0;
|
||||
let value = isGlobalDismissTimestampInCooldown();
|
||||
if (value) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value = global.Array.from(a0);
|
||||
value = value.every(function(a0) {
|
||||
return userBlockedWarningInCooldown(a0, true);
|
||||
});
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function userBlockedWarningInCooldown(a0) { // fn#96393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12770:1639, offset: 0x0215c658, size: 94 bytes, params: 2, frame: 13
|
||||
const value = a1;
|
||||
let r0 = value !== undefined ? value : false;
|
||||
r0 = !r0 ? !isGlobalDismissTimestampInCooldown() : r0;
|
||||
r0 = r0 ? (getUserDismissTimestamp(a0) ?? 0) > global.Date.now() - env0_17 : !r0;
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun96394(a0) { // fn#96394, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12770:1786, offset: 0x0215c6b6, size: 74 bytes, params: 2, frame: 15
|
||||
const closure = SharedSpacesWarningManager;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: 'handleBlockedOrIgnoredUserVoiceChannelJoin', value: value_96396}]);
|
||||
}
|
||||
|
||||
function _fun96388(a0) { // fn#96388, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12770:783, offset: 0x0215c48f, size: 23 bytes, params: 2, frame: 11
|
||||
return RelationshipStore.isIgnored(a0);
|
||||
}
|
||||
|
||||
function SharedSpacesWarningManager(a0) { // fn#96395, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12770:1798, offset: 0x0215c700, size: 152 bytes, params: 2, frame: 20
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env1_2;
|
||||
binding(this, SharedSpacesWarningManager);
|
||||
const items = [];
|
||||
arraySpread(items, value, 0, items);
|
||||
value = env1_5(SharedSpacesWarningManager);
|
||||
binding = env1_4;
|
||||
if (_isNativeReflectConstruct_96383()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, items, env1_5(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, items);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
value.actions = {CHANNEL_SELECT: handleChannelSelect_96386, APP_STATE_UPDATE: handleAppStateChanged};
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_96396(a0, a1) { // fn#96396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12770:2275, offset: 0x0215c798, size: 97 bytes, params: 3, frame: 15
|
||||
const value = environment.__proto__;
|
||||
const channelId = RTCConnectionStore.getChannelId();
|
||||
if (a0 === channelId) {
|
||||
if (ChannelStore.getChannel(a0) != null) {
|
||||
if (!userBlockedWarningInCooldown(a1)) {
|
||||
(require(12586) /* metro dependency 12586: showVoiceChannelBlockedUserWarningNative */).showVoiceChannelBlockedUserWarning(channelId,
|
||||
|
||||
|
||||
|
||||
a1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,117 @@
|
||||
/* Metro module 12581; source: modules/shared_space_warnings/SharedSpacesWarningStore.tsx; dependencies: [629, 4025, 7097, 2] */
|
||||
function _fun96397(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12771:6, offset: 0x0215c7f9, size: 313 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(629) /* metro dependency 629 */;
|
||||
const create = value.create;
|
||||
const value2 = require(4025) /* metro dependency 4025 */;
|
||||
const persist = value2.persist;
|
||||
object2 = {name: 'shared-spaces-warning-storage'};
|
||||
object2.storage = value2.createJSONStorage(function() {
|
||||
return importDefault(dependencyMap[2]);
|
||||
});
|
||||
value = Reflect.apply(create, value, [Reflect.apply(persist, value2, [function() {
|
||||
return {channelDismissTimestamps: {}, userDismissTimestamps: {}, globalDismissTimestamp: null,
|
||||
queuedWarning: false};
|
||||
}, object2])]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/shared_space_warnings/SharedSpacesWarningStore.tsx');
|
||||
exports.useSharedSpacesWarningStore = value;
|
||||
exports.getChannelDismissTimestamp = getChannelDismissTimestamp;
|
||||
exports.getUserDismissTimestamp = getUserDismissTimestamp;
|
||||
exports.getGlobalDismissTimestamp = getGlobalDismissTimestamp;
|
||||
exports.isBlockedWarningQueued = isBlockedWarningQueued;
|
||||
exports.queueBlockWarning = queueBlockWarning;
|
||||
exports.dequeueBlockWarning = dequeueBlockWarning;
|
||||
exports.setDismissalTimeForChannel = setDismissalTimeForChannel;
|
||||
exports.setDismissalTimeForUser = setDismissalTimeForUser;
|
||||
exports.setDismissalTimeForUsers = setDismissalTimeForUsers;
|
||||
}
|
||||
|
||||
function getChannelDismissTimestamp(a0) { // fn#96400, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12771:480, offset: 0x0215c952, size: 32 bytes, params: 2, frame: 9
|
||||
const binding = env0_2;
|
||||
const getState = binding.getState;
|
||||
return Reflect.apply(getState, binding, []).channelDismissTimestamps[a0];
|
||||
}
|
||||
|
||||
function getUserDismissTimestamp(a0) { // fn#96401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12771:594, offset: 0x0215c972, size: 32 bytes, params: 2, frame: 9
|
||||
const binding = env0_2;
|
||||
const getState = binding.getState;
|
||||
const userDismissTimestamps = Reflect.apply(getState, binding, []).userDismissTimestamps;
|
||||
return userDismissTimestamps[a0];
|
||||
}
|
||||
|
||||
function getGlobalDismissTimestamp() { // fn#96402, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12771:704, offset: 0x0215c992, size: 25 bytes, params: 1, frame: 9
|
||||
const binding = env0_2;
|
||||
const getState = binding.getState;
|
||||
return Reflect.apply(getState, binding, []).globalDismissTimestamp;
|
||||
}
|
||||
|
||||
function isBlockedWarningQueued() { // fn#96403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12771:810, offset: 0x0215c9ab, size: 25 bytes, params: 1, frame: 9
|
||||
const binding = env0_2;
|
||||
const getState = binding.getState;
|
||||
return Reflect.apply(getState, binding, []).queuedWarning;
|
||||
}
|
||||
|
||||
function queueBlockWarning() { // fn#96404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12771:899, offset: 0x0215c9c4, size: 31 bytes, params: 1, frame: 12
|
||||
env0_2.setState({queuedWarning: true});
|
||||
}
|
||||
|
||||
function dequeueBlockWarning() { // fn#96405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12771:982, offset: 0x0215c9e3, size: 31 bytes, params: 1, frame: 12
|
||||
env0_2.setState({queuedWarning: false});
|
||||
}
|
||||
|
||||
function setDismissalTimeForChannel(a0) { // fn#96406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12771:1074, offset: 0x0215ca02, size: 38 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
env0_2.setState(_fun96407);
|
||||
}
|
||||
|
||||
function setDismissalTimeForUser(a0) { // fn#96408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12771:1233, offset: 0x0215ca60, size: 38 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
env0_2.setState(_fun96409);
|
||||
}
|
||||
|
||||
function setDismissalTimeForUsers(a0) { // fn#96410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12771:1418, offset: 0x0215cad2, size: 77 bytes, params: 2, frame: 14
|
||||
const Array = global.Array;
|
||||
const env0_0 = Array.from(a0).reduce(function(a0, a1) {
|
||||
var Date = global.Date;
|
||||
a0[a1] = Date.now();
|
||||
return a0;
|
||||
}, {});
|
||||
env0_2.setState(_fun96412);
|
||||
}
|
||||
|
||||
function _fun96407({channelDismissTimestamps}) { // fn#96407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12771:1125, offset: 0x0215ca28, size: 56 bytes, params: 2, frame: 14
|
||||
const object = {};
|
||||
copyDataProperties(object, channelDismissTimestamps, undefined);
|
||||
const binding = env0_0;
|
||||
const Date = global.Date;
|
||||
object[binding] = Date.now();
|
||||
return {channelDismissTimestamps: object};
|
||||
}
|
||||
|
||||
function _fun96409({userDismissTimestamps}) { // fn#96409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12771:1281, offset: 0x0215ca86, size: 76 bytes, params: 2, frame: 15
|
||||
const object3 = {};
|
||||
const object4 = {};
|
||||
copyDataProperties(object4, userDismissTimestamps, undefined);
|
||||
const binding = env0_0;
|
||||
let Date = global.Date;
|
||||
object4[binding] = Date.now();
|
||||
object3.userDismissTimestamps = object4;
|
||||
Date = global.Date;
|
||||
object3.globalDismissTimestamp = Date.now();
|
||||
return object3;
|
||||
}
|
||||
|
||||
function _fun96412(a0) { // fn#96412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12771:1527, offset: 0x0215cb3c, size: 63 bytes, params: 2, frame: 12
|
||||
const object3 = {};
|
||||
const object4 = {};
|
||||
const userDismissTimestamps = a0.userDismissTimestamps;
|
||||
copyDataProperties(object4, userDismissTimestamps, a0);
|
||||
copyDataProperties(object4, env0_0, environment);
|
||||
object3.userDismissTimestamps = object4;
|
||||
const Date = global.Date;
|
||||
object3.globalDismissTimestamp = Date.now();
|
||||
return object3;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,294 @@
|
||||
/* Metro module 12579; source: modules/shared_space_warnings/VoiceChannelBlockedUserStore.tsx; dependencies: [6, 7, 15, 17, 18, 3793, 4297, 12580, 566, 694, 2] */
|
||||
function _fun96367(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12769:6, offset: 0x0215bb3a, size: 401 bytes, params: 8, frame: 21
|
||||
const closure = function() {
|
||||
env0_9 = {};
|
||||
env0_10 = {};
|
||||
};
|
||||
const closure2 = RELATIONSHIP_ADD_96372;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const voiceStateStore = importDefault(4297) /* metro dependency 4297: VoiceStateStore */;
|
||||
let env0_9 = {};
|
||||
let env0_10 = {};
|
||||
const Set = global.Set;
|
||||
let set = new Set();
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
set = _fun96374(Store);
|
||||
set = new set(importDefault(694) /* metro dependency 694: Dispatcher */, {CONNECTION_OPEN: closure, LOGOUT: closure,
|
||||
OVERLAY_INITIALIZE: OVERLAY_INITIALIZE_96379, VOICE_STATE_UPDATES: VOICE_STATE_UPDATES_96380,
|
||||
RELATIONSHIP_ADD: closure2, RELATIONSHIP_REMOVE: closure2, RELATIONSHIP_UPDATE: closure2});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/shared_space_warnings/VoiceChannelBlockedUserStore.tsx');
|
||||
exports.default = set;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_96368() { // fn#96368, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12769:168, offset: 0x0215bccb, 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_96368_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function RELATIONSHIP_ADD_96372({relationship}) { // fn#96372, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12769:411, offset: 0x0215bd2d, size: 77 bytes, params: 2, frame: 15
|
||||
const voiceStateForUser = VoiceStateStore.getVoiceStateForUser(relationship.id);
|
||||
return voiceStateForUser != null && voiceStateForUser.channelId != null && processUserInChannel(voiceStateForUser.channelId,
|
||||
relationship.id);
|
||||
}
|
||||
|
||||
function processUserInChannel(a0, a1) { // fn#96373, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12769:572, offset: 0x0215bd7a, size: 323 bytes, params: 3, frame: 20
|
||||
var r5;
|
||||
var r9;
|
||||
var r0;
|
||||
var r2;
|
||||
var value4;
|
||||
var value5;
|
||||
var value6;
|
||||
var value9;
|
||||
let Set = global.Set;
|
||||
let set = new Set(env0_9[a0]);
|
||||
const isBlocked2 = RelationshipStore.isBlocked(a1);
|
||||
if (isBlocked2) {
|
||||
if (set.has(a1)) {
|
||||
value5 = false;
|
||||
if (isBlocked2) {
|
||||
r5 = value5;
|
||||
r9 = value5;
|
||||
} else {
|
||||
value6 = set.delete(a1);
|
||||
r5 = value5;
|
||||
r9 = value6;
|
||||
}
|
||||
} else {
|
||||
set.add(a1);
|
||||
value4 = true;
|
||||
r5 = value4;
|
||||
r9 = value4;
|
||||
}
|
||||
} else {
|
||||
value5 = false;
|
||||
if (isBlocked2) {
|
||||
r5 = value5;
|
||||
r9 = value5;
|
||||
} else {
|
||||
value6 = set.delete(a1);
|
||||
r5 = value5;
|
||||
r9 = value6;
|
||||
}
|
||||
}
|
||||
if (set.size !== 0) {
|
||||
if (r9) {
|
||||
env0_9[a0] = set;
|
||||
}
|
||||
} else if (r9) {
|
||||
delete env0_9[a0];
|
||||
} else if (r9) {
|
||||
env0_9[a0] = set;
|
||||
}
|
||||
Set = global.Set;
|
||||
set = new Set(env0_10[a0]);
|
||||
const isIgnored2 = RelationshipStore.isIgnored(a1);
|
||||
if (isIgnored2) {
|
||||
if (set.has(a1)) {
|
||||
if (isIgnored2) {
|
||||
r0 = r9;
|
||||
r2 = r5;
|
||||
} else {
|
||||
r0 = set.delete(a1);
|
||||
r2 = r5;
|
||||
}
|
||||
} else {
|
||||
set.add(a1);
|
||||
value9 = true;
|
||||
r0 = value9;
|
||||
r2 = value9;
|
||||
}
|
||||
} else if (isIgnored2) {
|
||||
r0 = r9;
|
||||
r2 = r5;
|
||||
} else {
|
||||
r0 = set.delete(a1);
|
||||
r2 = r5;
|
||||
}
|
||||
if (set.size !== 0) {
|
||||
if (r0) {
|
||||
env0_10[a0] = set;
|
||||
}
|
||||
} else if (r0) {
|
||||
delete env0_10[a0];
|
||||
} else if (r0) {
|
||||
env0_10[a0] = set;
|
||||
}
|
||||
if (r2) {
|
||||
(importDefault(12580) /* metro dependency 12580: SharedSpacesWarningManager */).handleBlockedOrIgnoredUserVoiceChannelJoin(a0,
|
||||
|
||||
a1);
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun96374(a0) { // fn#96374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12769:947, offset: 0x0215bebd, size: 122 bytes, params: 2, frame: 16
|
||||
const closure = VoiceChannelBlockedUserStore;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: 'initialize', value: function() {
|
||||
this.waitFor(RelationshipStore, VoiceStateStore);
|
||||
}}, {key: 'getBlockedUsersForVoiceChannel', value: value_96377}, {key: 'getIgnoredUsersForVoiceChannel',
|
||||
value: value_96378}]);
|
||||
}
|
||||
|
||||
function OVERLAY_INITIALIZE_96379() { // fn#96379, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12769:1615, offset: 0x0215bf6b, size: 198 bytes, params: 1, frame: 28
|
||||
var r3;
|
||||
var r4;
|
||||
var r12;
|
||||
var r13;
|
||||
var r1;
|
||||
var r16;
|
||||
var r11;
|
||||
var r0;
|
||||
var property;
|
||||
var value6;
|
||||
var channelId;
|
||||
var processUserInChannelBinding;
|
||||
var userId;
|
||||
var value7;
|
||||
var value8;
|
||||
var value9;
|
||||
CONNECTION_OPEN_96371();
|
||||
const allVoiceStates = VoiceStateStore.getAllVoiceStates();
|
||||
let Object = global.Object;
|
||||
const value3 = Object.values(allVoiceStates);
|
||||
let length = value3.length;
|
||||
const value4 = 0;
|
||||
const value5 = false;
|
||||
if (value4 < length) {
|
||||
r3 = value4;
|
||||
r4 = value5;
|
||||
while (true) {
|
||||
property = value3[r3];
|
||||
Object = global.Object;
|
||||
value6 = Object.values(property);
|
||||
length = value6.length;
|
||||
if (value4 < length) {
|
||||
r12 = value4;
|
||||
r13 = r4;
|
||||
while (true) {
|
||||
property = value6[r12];
|
||||
channelId = property.channelId;
|
||||
if (channelId == null) {
|
||||
r16 = r13;
|
||||
} else {
|
||||
processUserInChannelBinding = processUserInChannel;
|
||||
channelId = property.channelId;
|
||||
userId = property.userId;
|
||||
value7 = processUserInChannelBinding(channelId, userId);
|
||||
if (value7) {
|
||||
r1 = value7;
|
||||
continue;
|
||||
}
|
||||
r1 = r13;
|
||||
continue;
|
||||
r16 = r1;
|
||||
}
|
||||
value8 = typeof r12 === 'bigint' ? r12 + 1n : +r12 + 1;
|
||||
length = value6.length;
|
||||
if (value8 < length) {
|
||||
r12 = value8;
|
||||
r13 = r16;
|
||||
continue;
|
||||
}
|
||||
r11 = r16;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
r11 = r4;
|
||||
}
|
||||
value9 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
||||
length = value3.length;
|
||||
if (value9 < length) {
|
||||
r3 = value9;
|
||||
r4 = r11;
|
||||
continue;
|
||||
}
|
||||
r0 = r11;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
r0 = value5;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function VOICE_STATE_UPDATES_96380({voiceStates}) { // fn#96380, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12769:1896, offset: 0x0215c031, size: 40 bytes, params: 2, frame: 12
|
||||
voiceStates.forEach(_fun96381);
|
||||
return false;
|
||||
}
|
||||
|
||||
function value_96377(a0) { // fn#96377, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12769:1392, offset: 0x0215bf37, size: 26 bytes, params: 2, frame: 3
|
||||
return env1_9[a0] ?? env1_11;
|
||||
}
|
||||
|
||||
function value_96378(a0) { // fn#96378, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12769:1482, offset: 0x0215bf51, size: 26 bytes, params: 2, frame: 3
|
||||
return env1_10[a0] ?? env1_11;
|
||||
}
|
||||
|
||||
function _fun96381(a0) { // fn#96381, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12769:1973, offset: 0x0215c059, size: 196 bytes, params: 2, frame: 15
|
||||
var r1;
|
||||
var value;
|
||||
var binding;
|
||||
var property;
|
||||
let oldChannelId = a0.oldChannelId;
|
||||
if (oldChannelId != null) {
|
||||
value = environment.__proto__;
|
||||
binding = env1_9;
|
||||
oldChannelId = a0.oldChannelId;
|
||||
if (binding[oldChannelId] != null) {
|
||||
property = env1_9[a0.oldChannelId];
|
||||
if (property != null) {
|
||||
property.delete(a0.userId);
|
||||
}
|
||||
env0_0 = true;
|
||||
}
|
||||
binding = env1_10;
|
||||
oldChannelId = a0.oldChannelId;
|
||||
if (binding[oldChannelId] != null) {
|
||||
property = env1_10[a0.oldChannelId];
|
||||
if (property != null) {
|
||||
property.delete(a0.userId);
|
||||
}
|
||||
env0_0 = true;
|
||||
}
|
||||
}
|
||||
if (a0.channelId != null) {
|
||||
value = environment.__proto__;
|
||||
value = processUserInChannel(a0.channelId, a0.userId);
|
||||
r1 = value || env0_0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,323 @@
|
||||
/* Metro module 12583; source: modules/shared_space_warnings/native/BlockedUserInGdmActionSheet.tsx; dependencies: [31, 27, 1379, 1878, 12584, 661, 33, 4501, 697, 4573, 4617, 1244, 566, 1360, 1305, 11441, 9719, 4073, 4068, 683, 6805, 11300, 6231, 6238, 4578, 4080, 12585, 4603, 2] */
|
||||
function _fun96415(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12773:6, offset: 0x0215cc55, size: 528 bytes, params: 8, frame: 22
|
||||
var object3;
|
||||
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.Image;
|
||||
const env0_5 = value.View;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
value = require(12584) /* metro dependency 12584: SharedSpaceWarningConstants */;
|
||||
const env0_8 = value.BlockWarningEngagements;
|
||||
const env0_9 = value.GdmWarningMedium;
|
||||
const env0_10 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_11 = value.jsx;
|
||||
const env0_12 = value.Fragment;
|
||||
const env0_13 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {};
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object4.paddingTop = PX_12;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object4.gap = PX_8;
|
||||
object4.textAlign = 'center';
|
||||
object3.container = object4;
|
||||
object3.headerImage = {'alignSelf': 'center', 'width': 73, 'height': 86};
|
||||
object3.title = {'textAlign': 'center', 'alignSelf': 'center'};
|
||||
object3.description = {'textAlign': 'center', 'alignSelf': 'center'};
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object3.tableGroup = {paddingVertical: PX_24};
|
||||
object3.buttons = {gap: 8};
|
||||
object3.icon = {'display': 'flex', 'justifyContent': 'center', 'alignItems': 'center', 'minWidth': 32};
|
||||
const env0_14 = Reflect.apply(createStyles, value, [object3]);
|
||||
const closure = getUserCalloutRowText;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/shared_space_warnings/native/BlockedUserInGdmActionSheet.tsx');
|
||||
exports.default = BlockedUserInGdmActionSheet;
|
||||
exports.getUserCalloutRowText = closure;
|
||||
}
|
||||
|
||||
function getUserCalloutRowText({calledOutUserIds, totalUsers, guildId, channelId}) { // fn#96416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12773:705, offset: 0x0215ce65, size: 478 bytes, params: 2, frame: 20
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const items = [];
|
||||
arraySpread(items, calledOutUserIds, 0, undefined);
|
||||
const env0_2 = items.map(function(a0) {
|
||||
return UserStore.getUser(a0);
|
||||
});
|
||||
return totalUsers >= 4 ? intl.format(t.qfo6KR, {usernameHook1: usernameHook1_96419,
|
||||
usernameHook2: usernameHook2_96420,
|
||||
numberOfOtherUsers: totalUsers - calledOutUserIds.length}) : totalUsers === 3 ? intl.format(t['67ZE+9'],
|
||||
{usernameHook1: usernameHook1_96421,
|
||||
usernameHook2: usernameHook2_96422}) : totalUsers === 2 ? intl.format(t.veV4IN, {usernameHook1: usernameHook1,
|
||||
usernameHook2: usernameHook2}) : intl.format(t['4WHCtq'], {usernameHook: usernameHook_96425});
|
||||
}
|
||||
|
||||
function UserCalloutAvatars({userIds, guildId}) { // fn#96426, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12773:1417, offset: 0x0215d0f2, size: 355 bytes, params: 2, frame: 22
|
||||
var r1;
|
||||
var r0;
|
||||
var Avatar;
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([UserStore], function() {
|
||||
return userIds.map(_fun96428);
|
||||
}, [userIds]);
|
||||
const value3 = value2.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish);
|
||||
if (userIds.length === 1) {
|
||||
if (UserStore.getUser(userIds[0]) != null) {
|
||||
Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
|
||||
var avatarProps = {user: value3[0], guildId: guildId,
|
||||
size: (require(1305) /* metro dependency 1305: native */).AvatarSizes.REFRESH_MEDIUM_32};
|
||||
avatarProps['aria-hidden'] = true;
|
||||
r1 = <Avatar {...avatarProps} />;
|
||||
} else {
|
||||
const UserIcon = (require(11441) /* metro dependency 11441: UserIcon */).UserIcon;
|
||||
r1 = <UserIcon />;
|
||||
}
|
||||
r0 = r1;
|
||||
} else {
|
||||
const FacepileGroupDMAvatar = (require(9719) /* metro dependency 9719: GroupDMAvatar */).FacepileGroupDMAvatar;
|
||||
r0 = <FacepileGroupDMAvatar users={value3} size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.REFRESH_MEDIUM_32} />;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function BlockedUserInGDMDescription({numOfBlockedUsers, numOfIgnoredUsers}) { // fn#96429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12773:1837, offset: 0x0215d288, size: 520 bytes, params: 2, frame: 23
|
||||
var r0;
|
||||
var jsxRuntimeEnv0_12Binding;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
let value = numOfBlockedUsers > 0;
|
||||
const value2 = numOfIgnoredUsers > 0;
|
||||
if (value) {
|
||||
if (value2) {
|
||||
jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
|
||||
value = intl.string(t.xbRNI3);
|
||||
value = <>{[value, '\n', intl.string(t['Bp2/ni'])]}</>;
|
||||
r0 = value;
|
||||
} else if (value) {
|
||||
jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
|
||||
value = intl.format(t.iKtixW, {n: numOfBlockedUsers});
|
||||
value = <>{[value, '\n', intl.string(t.SN1hrl)]}</>;
|
||||
r0 = value;
|
||||
} else {
|
||||
value = null;
|
||||
if (value2) {
|
||||
jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
|
||||
value = intl.format(t['6IRwua'], {n: numOfIgnoredUsers});
|
||||
value = <>{[value, '\n', intl.string(t['6AKLRt'])]}</>;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
}
|
||||
} else if (value) {
|
||||
jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
|
||||
value = intl.format(t.iKtixW, {n: numOfBlockedUsers});
|
||||
value = <>{[value, '\n', intl.string(t.SN1hrl)]}</>;
|
||||
r0 = value;
|
||||
} else {
|
||||
value = null;
|
||||
if (value2) {
|
||||
jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
|
||||
value = intl.format(t['6IRwua'], {n: numOfIgnoredUsers});
|
||||
value = <>{[value, '\n', intl.string(t['6AKLRt'])]}</>;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function BlockedUserInGdmActionSheet({channelId, blockedUserIds, ignoredUserIds}) { // fn#96430, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12773:2364, offset: 0x0215d490, size: 1330 bytes, params: 2, frame: 35
|
||||
var r14;
|
||||
var guild_id;
|
||||
var unshift;
|
||||
var getUserCalloutRowTextBinding;
|
||||
var value8;
|
||||
var object2;
|
||||
const styles = useStyles();
|
||||
styles.useEffect(function() {
|
||||
var defaultImport = importDefault(dependencyMap[19]);
|
||||
var GDM_BLOCKED_USER_WARNING_VIEWED = AnalyticEvents.GDM_BLOCKED_USER_WARNING_VIEWED;
|
||||
defaultImport.track(GDM_BLOCKED_USER_WARNING_VIEWED, {channel_id: channelId,
|
||||
warning_medium: GdmWarningMedium.ACTION_SHEET, ignored_user_ids: ignoredUserIds,
|
||||
blocked_user_ids: blockedUserIds});
|
||||
}, [channelId, blockedUserIds, ignoredUserIds]);
|
||||
object = {channelId: channelId, blockedUserIds: blockedUserIds, ignoredUserIds: ignoredUserIds};
|
||||
channelId = object.channelId;
|
||||
const blockedUserIds2 = object.blockedUserIds;
|
||||
const ignoredUserIds2 = object.ignoredUserIds;
|
||||
const channel = ChannelStore.getChannel(channelId);
|
||||
let length = blockedUserIds2.length;
|
||||
const value4 = length > 0;
|
||||
const value5 = ignoredUserIds2.length > 0;
|
||||
object = {};
|
||||
const CircleCheckIcon = (require(4073) /* metro dependency 4073: CircleCheckIcon */).CircleCheckIcon;
|
||||
object.icon = <CircleCheckIcon />;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const RIMw54 = (require(1244) /* metro dependency 1244: indexNative */).t.RIMw54;
|
||||
object.label = Reflect.apply(string, intl, [RIMw54]);
|
||||
const items3 = [object];
|
||||
object = {};
|
||||
const CircleInformationIcon = (require(4068) /* metro dependency 4068: CircleInformationIcon */).CircleInformationIcon;
|
||||
object.icon = <CircleInformationIcon />;
|
||||
object.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bejNWN);
|
||||
items3[1] = object;
|
||||
if (value4) {
|
||||
if (value5) {
|
||||
object = [];
|
||||
arraySpread(object, ignoredUserIds2, arraySpread(object, blockedUserIds2, 0, undefined), undefined);
|
||||
value8 = object.slice(0, 2);
|
||||
unshift = items3.unshift;
|
||||
object2 = {};
|
||||
guild_id = channel?.guild_id;
|
||||
object2.icon = <UserCalloutAvatars userIds={value8} guildId={guild_id} />;
|
||||
getUserCalloutRowTextBinding = getUserCalloutRowText;
|
||||
guild_id = channel?.guild_id;
|
||||
object2.label = getUserCalloutRowTextBinding({calledOutUserIds: value8, totalUsers: object.length,
|
||||
channelId: channelId, guildId: guild_id});
|
||||
Reflect.apply(unshift, items3, [object2]);
|
||||
} else {
|
||||
object = [];
|
||||
if (value4) {
|
||||
arraySpread(object, blockedUserIds2, 0, undefined);
|
||||
r14 = object.slice(0, 2);
|
||||
} else {
|
||||
arraySpread(object, ignoredUserIds2, 0, undefined);
|
||||
r14 = object.slice(0, 2);
|
||||
}
|
||||
length = value4 ? blockedUserIds2.length : ignoredUserIds2.length;
|
||||
unshift = items3.unshift;
|
||||
object = {};
|
||||
guild_id = channel?.guild_id;
|
||||
object.icon = <UserCalloutAvatars userIds={r14} guildId={guild_id} />;
|
||||
getUserCalloutRowTextBinding = getUserCalloutRowText;
|
||||
guild_id = channel?.guild_id;
|
||||
object.label = getUserCalloutRowTextBinding({calledOutUserIds: r14, totalUsers: length,
|
||||
channelId: channelId,
|
||||
guildId: guild_id});
|
||||
Reflect.apply(unshift, items3, [object]);
|
||||
}
|
||||
} else {
|
||||
object = [];
|
||||
if (value4) {
|
||||
arraySpread(object, blockedUserIds2, 0, undefined);
|
||||
r14 = object.slice(0, 2);
|
||||
} else {
|
||||
arraySpread(object, ignoredUserIds2, 0, undefined);
|
||||
r14 = object.slice(0, 2);
|
||||
}
|
||||
length = value4 ? blockedUserIds2.length : ignoredUserIds2.length;
|
||||
unshift = items3.unshift;
|
||||
object = {};
|
||||
guild_id = channel?.guild_id;
|
||||
object.icon = <UserCalloutAvatars userIds={r14} guildId={guild_id} />;
|
||||
getUserCalloutRowTextBinding = getUserCalloutRowText;
|
||||
guild_id = channel?.guild_id;
|
||||
object.label = getUserCalloutRowTextBinding({calledOutUserIds: r14, totalUsers: length, channelId: channelId,
|
||||
guildId: guild_id});
|
||||
Reflect.apply(unshift, items3, [object]);
|
||||
}
|
||||
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
|
||||
const items2 = [<Image source={importDefault(11300) /* metro dependency 11300 */} style={styles.headerImage} />];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
items2[1] = <View><Text variant="heading-xl/bold" color="mobile-text-heading-primary" style={styles.title}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['mwJJ+f'])}</Text><Text variant="text-md/medium" color="text-default" style={styles.description}><BlockedUserInGDMDescription numOfBlockedUsers={blockedUserIds.length} numOfIgnoredUsers={ignoredUserIds.length} /></Text></View>;
|
||||
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
items2[2] = <View style={styles.tableGroup}><TableRowGroup hasIcons>{items3.map(_fun96432)}</TableRowGroup></View>;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const object3 = {size: 'lg', onPress: onPress_96433};
|
||||
string = intl.string;
|
||||
const I4q1kA = (require(1244) /* metro dependency 1244: indexNative */).t.I4q1kA;
|
||||
object3.text = Reflect.apply(string, intl, [I4q1kA]);
|
||||
const button = <Button {...object3} />;
|
||||
const buttonProps = {'size': 'lg', 'variant': 'secondary', onPress: onPress_96434};
|
||||
string = intl.string;
|
||||
const DRJhmT = (require(1244) /* metro dependency 1244: indexNative */).t.DRJhmT;
|
||||
buttonProps.text = Reflect.apply(string, intl, [DRJhmT]);
|
||||
items2[3] = <View style={styles.buttons}>{button}<Button {...buttonProps} /></View>;
|
||||
return (
|
||||
<ActionSheet startExpanded>
|
||||
<View style={styles.container}>
|
||||
{items2}
|
||||
</View>
|
||||
</ActionSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function renderUsername(a0) { // fn#96418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12773:816, owner: getUserCalloutRowText.renderUsername, offset: 0x0215d05a, size: 99 bytes, params: 2, frame: 19
|
||||
let value = environment.__proto__;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
value = importDefault(4617) /* metro dependency 4617: NicknameUtils */;
|
||||
const getName = value.getName;
|
||||
return (
|
||||
<Text variant="text-md/semibold">
|
||||
{Reflect.apply(getName, value, [guildId, channelId, a0])}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
function getUserCalloutRowTextUsernameHook1() { // fn#96419, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12773:963, owner: getUserCalloutRowText.usernameHook1, offset: 0x0215d0bd, size: 26 bytes, params: 1, frame: 11
|
||||
return renderUsername(env0_2[0]);
|
||||
}
|
||||
|
||||
function getUserCalloutRowTextUsernameHook2() { // fn#96420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12773:1002, owner: getUserCalloutRowText.usernameHook2, offset: 0x0215d0d7, size: 27 bytes, params: 1, frame: 11
|
||||
return renderUsername(env0_2[1]);
|
||||
}
|
||||
|
||||
function _fun96427() { // fn#96427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12773:1487, offset: 0x0215d255, size: 28 bytes, params: 1, frame: 11
|
||||
return userIds.map(function(a0) {
|
||||
return UserStore.getUser(a0);
|
||||
});
|
||||
}
|
||||
|
||||
function _fun96432({icon, label}, a1) { // fn#96432, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12773:4041, offset: 0x0215da20, size: 102 bytes, params: 3, frame: 19
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
return (
|
||||
<TableRow
|
||||
icon={<View style={styles.icon}>{icon}</View>}
|
||||
label={label}
|
||||
key={a1}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function BlockedUserInGdmActionSheetOnPress() { // fn#96433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12773:4206, owner: BlockedUserInGdmActionSheet.onPress, offset: 0x0215da86, size: 184 bytes, params: 1, frame: 19
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
const sharedSpacesWarningActionCreatorsModule = require(12585) /* metro dependency 12585: SharedSpacesWarningActionCreators */;
|
||||
const dismissGdmBlockedUserWarning = sharedSpacesWarningActionCreatorsModule.dismissGdmBlockedUserWarning;
|
||||
const channelIdBinding = channelId;
|
||||
Reflect.apply(dismissGdmBlockedUserWarning, sharedSpacesWarningActionCreatorsModule, [channelIdBinding]);
|
||||
(importDefault(4603) /* metro dependency 4603: ChannelActionCreators */).closePrivateChannel(channelIdBinding, true,
|
||||
true);
|
||||
const defaultImport3 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport3.track;
|
||||
const GDM_BLOCKED_USER_WARNING_ENGAGEMENT = AnalyticEvents.GDM_BLOCKED_USER_WARNING_ENGAGEMENT;
|
||||
const CLICK_TO_LEAVE = BlockWarningEngagements.CLICK_TO_LEAVE;
|
||||
const ACTION_SHEET = GdmWarningMedium.ACTION_SHEET;
|
||||
Reflect.apply(track, defaultImport3, [GDM_BLOCKED_USER_WARNING_ENGAGEMENT, {action: CLICK_TO_LEAVE,
|
||||
channel_id: channelIdBinding, warning_medium: ACTION_SHEET, ignored_user_ids: ignoredUserIds,
|
||||
blocked_user_ids: blockedUserIds}]);
|
||||
}
|
||||
|
||||
function BlockedUserInGdmActionSheetOnPress_96434() { // fn#96434, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12773:4583, owner: BlockedUserInGdmActionSheet.onPress, offset: 0x0215db3e, size: 157 bytes, params: 1, frame: 18
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
const sharedSpacesWarningActionCreatorsModule = require(12585) /* metro dependency 12585: SharedSpacesWarningActionCreators */;
|
||||
const dismissGdmBlockedUserWarning = sharedSpacesWarningActionCreatorsModule.dismissGdmBlockedUserWarning;
|
||||
const channelIdBinding = channelId;
|
||||
Reflect.apply(dismissGdmBlockedUserWarning, sharedSpacesWarningActionCreatorsModule, [channelIdBinding]);
|
||||
const defaultImport2 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport2.track;
|
||||
const GDM_BLOCKED_USER_WARNING_ENGAGEMENT = AnalyticEvents.GDM_BLOCKED_USER_WARNING_ENGAGEMENT;
|
||||
const CLICK_TO_STAY = BlockWarningEngagements.CLICK_TO_STAY;
|
||||
const ACTION_SHEET = GdmWarningMedium.ACTION_SHEET;
|
||||
Reflect.apply(track, defaultImport2, [GDM_BLOCKED_USER_WARNING_ENGAGEMENT, {action: CLICK_TO_STAY,
|
||||
channel_id: channelIdBinding, warning_medium: ACTION_SHEET, ignored_user_ids: ignoredUserIds,
|
||||
blocked_user_ids: blockedUserIds}]);
|
||||
}
|
||||
|
||||
+127
@@ -0,0 +1,127 @@
|
||||
/* Metro module 12587; source: modules/shared_space_warnings/native/BlockedUserInVoiceChannelActionSheet.tsx; dependencies: [31, 27, 1379, 3793, 1878, 12581, 12584, 661, 33, 4501, 697, 566, 1244, 6805, 11300, 4573, 6231, 6238, 1305, 11441, 10280, 4578, 4080, 4796, 683, 2] */
|
||||
function _fun96440(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96440, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12777:6, offset: 0x0215df32, size: 524 bytes, params: 8, frame: 23
|
||||
var object4;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value.Image;
|
||||
const env0_4 = value.View;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const env0_8 = (require(12581) /* metro dependency 12581: SharedSpacesWarningStore */).setDismissalTimeForUser;
|
||||
value = require(12584) /* metro dependency 12584: SharedSpaceWarningConstants */;
|
||||
const env0_9 = value.BlockWarningEngagements;
|
||||
const env0_10 = value.VoiceChannelWarningSurfaces;
|
||||
const env0_11 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_12 = value.Fragment;
|
||||
const env0_13 = value.jsxs;
|
||||
const env0_14 = value.jsx;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object4 = {};
|
||||
const object5 = {};
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object5.paddingTop = PX_12;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object5.gap = PX_8;
|
||||
object4.container = object5;
|
||||
object4.headerImage = {'alignSelf': 'center', 'width': 73, 'height': 86};
|
||||
const object6 = {};
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object6.gap = PX_4;
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object6.marginBottom = PX_16;
|
||||
object4.headerText = object6;
|
||||
object4.centerText = {'textAlign': 'center', 'alignSelf': 'center'};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.buttonGroup = {paddingVertical: PX_16, gap: 8};
|
||||
const env0_15 = Reflect.apply(createStyles, value, [object4]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/shared_space_warnings/native/BlockedUserInVoiceChannelActionSheet.tsx');
|
||||
exports.default = BlockedUserInVoiceChannelActionSheet;
|
||||
}
|
||||
|
||||
function BlockedUserInVoiceChannelActionSheet({channelId, blockedUserId}) { // fn#96441, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12777:779, offset: 0x0215e13e, size: 1334 bytes, params: 2, frame: 36
|
||||
var object2;
|
||||
var items4;
|
||||
var items2;
|
||||
const styles = useStyles();
|
||||
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([RelationshipStore], function() {
|
||||
return RelationshipStore.isBlocked(blockedUserId);
|
||||
});
|
||||
const channel = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
|
||||
return ChannelStore.getChannel(channelId);
|
||||
});
|
||||
const user = UserStore.getUser(blockedUserId);
|
||||
const jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
|
||||
object2 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
if (value3) {
|
||||
items2 = [Reflect.apply(string, intl, [t.cpgfFk]), '\n'];
|
||||
string = intl.string;
|
||||
items2[2] = Reflect.apply(string, intl, [t.UKQ4Cn]);
|
||||
object2.children = items2;
|
||||
} else {
|
||||
items4 = [Reflect.apply(string, intl, [t.xj3j47]), '\n'];
|
||||
string = intl.string;
|
||||
items4[2] = Reflect.apply(string, intl, [t.wWueRW]);
|
||||
object2.children = items4;
|
||||
}
|
||||
const fragment = ((Fragment) => <Fragment {...object2} />)(jsxRuntimeEnv0_12Binding);
|
||||
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
|
||||
const items3 = [<Image source={importDefault(11300) /* metro dependency 11300 */} style={styles.headerImage} />];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
items3[1] = <View style={styles.headerText}><Text variant="heading-xl/bold" color="mobile-text-heading-primary" style={styles.centerText}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['1/gpFh'])}</Text><Text variant="text-md/medium" style={styles.centerText}>{fragment}</Text></View>;
|
||||
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const r15 = user != null ? ((Avatar) => <Avatar size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.SMALL} user={user} guildId={channel?.guild_id} />)((require(1305) /* metro dependency 1305: native */).Avatar) : ((UserIcon) => <UserIcon />)((require(11441) /* metro dependency 11441: UserIcon */).UserIcon);
|
||||
const formatToPlainString = intl.formatToPlainString;
|
||||
const w0YvUo = (require(1244) /* metro dependency 1244: indexNative */).t.w0YvUo;
|
||||
const username = user?.username;
|
||||
const tableRow = <TableRow icon={r15} label={Reflect.apply(formatToPlainString, intl, [w0YvUo,
|
||||
{userName: username}])} />;
|
||||
const MicrophoneIcon = (require(10280) /* metro dependency 10280: MicrophoneIcon */).MicrophoneIcon;
|
||||
items3[2] = <TableRowGroup hasIcons>{tableRow}<TableRow icon={<MicrophoneIcon />} label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+4O9nX'])} /></TableRowGroup>;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const button = <Button size="lg" onPress={onPress_96444} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['Y56/oK'])} />;
|
||||
items3[3] = <View style={styles.buttonGroup}>{button}<Button size="lg" variant="secondary" onPress={onPress_96445} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bCcJST)} /></View>;
|
||||
return (
|
||||
<ActionSheet startExpanded>
|
||||
<View style={styles.container}>
|
||||
{items3}
|
||||
</View>
|
||||
</ActionSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function BlockedUserInVoiceChannelActionSheetOnPress() { // fn#96444, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12777:2075, owner: BlockedUserInVoiceChannelActionSheet.onPress, offset: 0x0215e68f, size: 197 bytes, params: 1, frame: 19
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
(importDefault(4796) /* metro dependency 4796: SelectedChannelActionCreators */).disconnect();
|
||||
const defaultImport3 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport3.track;
|
||||
const VOICE_CHANNEL_BLOCKED_USER_WARNING_ENGAGEMENT = AnalyticEvents.VOICE_CHANNEL_BLOCKED_USER_WARNING_ENGAGEMENT;
|
||||
const CLICK_TO_LEAVE = BlockWarningEngagements.CLICK_TO_LEAVE;
|
||||
const POST_JOIN_SHEET = VoiceChannelWarningSurfaces.POST_JOIN_SHEET;
|
||||
Reflect.apply(track, defaultImport3, [VOICE_CHANNEL_BLOCKED_USER_WARNING_ENGAGEMENT, {action: CLICK_TO_LEAVE,
|
||||
channel_id: channelId, blocked_user_ids: env0_2 ? [blockedUserId] : [],
|
||||
ignored_user_ids: env0_2 ? [] : [blockedUserId], warning_surface: POST_JOIN_SHEET}]);
|
||||
}
|
||||
|
||||
function BlockedUserInVoiceChannelActionSheetOnPress_96445() { // fn#96445, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12777:2426, owner: BlockedUserInVoiceChannelActionSheet.onPress, offset: 0x0215e754, size: 188 bytes, params: 1, frame: 19
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
setDismissalTimeForUser(blockedUserId);
|
||||
const defaultImport2 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport2.track;
|
||||
const VOICE_CHANNEL_BLOCKED_USER_WARNING_ENGAGEMENT = AnalyticEvents.VOICE_CHANNEL_BLOCKED_USER_WARNING_ENGAGEMENT;
|
||||
const CLICK_TO_STAY = BlockWarningEngagements.CLICK_TO_STAY;
|
||||
const POST_JOIN_SHEET = VoiceChannelWarningSurfaces.POST_JOIN_SHEET;
|
||||
Reflect.apply(track, defaultImport2, [VOICE_CHANNEL_BLOCKED_USER_WARNING_ENGAGEMENT, {action: CLICK_TO_STAY,
|
||||
channel_id: channelId, blocked_user_ids: env0_2 ? [blockedUserId] : [],
|
||||
ignored_user_ids: env0_2 ? [] : [blockedUserId], warning_surface: POST_JOIN_SHEET}]);
|
||||
}
|
||||
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
/* Metro module 12582; source: modules/shared_space_warnings/show_gdm_modal/showGdmBlockedUserModal.native.tsx; dependencies: [4080, 12583, 1962, 2] */
|
||||
function _fun96413(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96413, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12772:6, offset: 0x0215cb7b, size: 103 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/shared_space_warnings/show_gdm_modal/showGdmBlockedUserModal.native.tsx');
|
||||
exports.showGdmBlockedUserModal = showGdmBlockedUserModal;
|
||||
}
|
||||
|
||||
function showGdmBlockedUserModal({channelId, blockedUserIds, ignoredUserIds}) { // fn#96414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12772:231, offset: 0x0215cbe2, size: 115 bytes, params: 2, frame: 19
|
||||
const defaultImport = importDefault(dependencyMap[0]);
|
||||
const openLazy = defaultImport.openLazy;
|
||||
let value = require(dependencyMap[2]);
|
||||
value = value(dependencyMap[1], dependencyMap.paths);
|
||||
Reflect.apply(openLazy, defaultImport, [value, 'gdm_blocked_user_action_sheet', {channelId: channelId,
|
||||
blockedUserIds: blockedUserIds, ignoredUserIds: ignoredUserIds}]);
|
||||
}
|
||||
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
/* Metro module 12586; source: modules/shared_space_warnings/show_voice_channel_warning/showVoiceChannelBlockedUserWarning.native.tsx; dependencies: [7030, 12581, 12584, 676, 4080, 12587, 1962, 480, 2] */
|
||||
function _fun96438(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96438, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12776:6, offset: 0x0215dd9a, size: 172 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const appStateStore = importDefault(7030) /* metro dependency 7030: AppStateStore */;
|
||||
const sharedSpacesWarningStoreModule = require(12581) /* metro dependency 12581: SharedSpacesWarningStore */;
|
||||
const env0_4 = sharedSpacesWarningStoreModule.queueBlockWarning;
|
||||
const env0_5 = sharedSpacesWarningStoreModule.dequeueBlockWarning;
|
||||
const env0_6 = (require(12584) /* metro dependency 12584: SharedSpaceWarningConstants */).VoiceChannelWarningSurfaces;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/shared_space_warnings/show_voice_channel_warning/showVoiceChannelBlockedUserWarning.native.tsx');
|
||||
exports.showVoiceChannelBlockedUserWarning = showVoiceChannelBlockedUserWarning;
|
||||
}
|
||||
|
||||
function showVoiceChannelBlockedUserWarning(a0, a1) { // fn#96439, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12776:373, offset: 0x0215de46, size: 236 bytes, params: 3, frame: 21
|
||||
var defaultImport;
|
||||
var openLazy;
|
||||
var value3;
|
||||
var object2;
|
||||
const state = AppStateStore.getState();
|
||||
const AppStates = require(dependencyMap[3]).AppStates;
|
||||
const ACTIVE = AppStates.ACTIVE;
|
||||
if (state === ACTIVE) {
|
||||
dequeueBlockWarning();
|
||||
defaultImport = importDefault(dependencyMap[4]);
|
||||
openLazy = defaultImport.openLazy;
|
||||
value3 = require(dependencyMap[6])(dependencyMap[5], dependencyMap.paths);
|
||||
object2 = {channelId: a0, blockedUserId: a1};
|
||||
object2.impressionName = require(dependencyMap[7]).ImpressionNames.VOICE_CHANNEL_BLOCKED_USER_WARNING;
|
||||
object2.impressionProperties = {channel_id: a0, blocked_user_ids: [a1],
|
||||
warning_surface: VoiceChannelWarningSurfaces.POST_JOIN_SHEET};
|
||||
Reflect.apply(openLazy, defaultImport, [value3, 'gdm_blocked_user_action_sheet', object2]);
|
||||
} else {
|
||||
queueBlockWarning();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user