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

No files matched your search

@@ -1,117 +1,129 @@
/* Metro module 12567; source: modules/relationships/GuildFriendshipStore.tsx; dependencies: [6, 7, 15, 17, 18, 6593, 566, 694, 2] */
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun96257(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12757:6, offset: 0x021590be, size: 357 bytes, params: 8, frame: 21
var object2;
const closure = function() {
env0_8 = {};
};
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 */;
object2 = {NOT_FETCHED: 0};
object2[0] = 'NOT_FETCHED';
object2.FETCHING = 1;
object2[1] = 'FETCHING';
object2.FETCHED = 2;
object2[2] = 'FETCHED';
object = {NOT_FETCHED: 0};
object[0] = 'NOT_FETCHED';
object.FETCHING = 1;
object[1] = 'FETCHING';
object.FETCHED = 2;
object[2] = 'FETCHED';
let env0_8 = {};
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
const Store = (Flux).Store;
let value = _fun96263(Store);
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {CONNECTION_OPEN: closure,
LOGOUT: closure, RELATIONSHIP_ADD: closure, RELATIONSHIP_REMOVE: closure,
GUILD_MEMBERS_CHUNK_BATCH: GUILD_MEMBERS_CHUNK_BATCH_96267});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/relationships/GuildFriendshipStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/relationships/GuildFriendshipStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_96258() { // fn#96258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12757:148, offset: 0x02159223, 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) {
function _isNativeReflectConstruct_96258() { // fn#96258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12757:148, offset: 0x02159223, 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_96258_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_96258_isNativeReflectConstruct = function() {
return !!result;
})();
}
function getFetchState(a0) { // fn#96261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12757:470, offset: 0x02159285, size: 47 bytes, params: 2, frame: 5
return env0_8[a0]?.fetchState ?? env0_7.NOT_FETCHED;
}
function getFetchState(a0) { // fn#96261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12757:470, offset: 0x02159285, size: 47 bytes, params: 2, frame: 5
return env0_8[a0]?.fetchState ?? env0_7.NOT_FETCHED;
}
function _fun96263(a0) { // fn#96263, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12757:606, offset: 0x021592b4, size: 101 bytes, params: 2, frame: 16
const closure = GuildFriendshipStore;
env0_6(closure, a0);
return env0_3(closure, [{key: 'isFetchingFriendsForGuild', value: value_96265},
{key: 'fetchFriendMembersIfNotFetched', value: value_96266}]);
}
function _fun96263(a0) { // fn#96263, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12757:606, offset: 0x021592b4, size: 101 bytes, params: 2, frame: 16
const GuildFriendshipStore2 = GuildFriendshipStore;
Inherits(GuildFriendshipStore2, a0);
return CreateClass(GuildFriendshipStore2, [{key: 'isFetchingFriendsForGuild', value: value_96265},
{key: 'fetchFriendMembersIfNotFetched', value: value_96266}]);
function GuildFriendshipStore() { // fn#96264, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12757:618, offset: 0x00ec62ac, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_2(this, GuildFriendshipStore);
const value3 = env1_5(GuildFriendshipStore);
return env1_4(this, _isNativeReflectConstruct_96258() ? global.Reflect.construct(value3, arguments,
env1_5(this).constructor) : value3.apply(this, arguments));
}
function GUILD_MEMBERS_CHUNK_BATCH_96267({chunks}) { // fn#96267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12757:1375, offset: 0x021593b0, size: 210 bytes, params: 2, frame: 18
var length;
var property2;
var foundMembers;
var property3;
var notFoundMembers;
let value = 0;
const property = chunks[value];
const guildId = property.guildId;
const fetchState = getFetchState(guildId);
const FETCHING = env0_7.FETCHING;
if (fetchState === FETCHING) {
property2 = env0_8[guildId];
foundMembers = property2.foundMembers;
length = property.members.length;
property2.foundMembers = foundMembers + length;
property3 = env0_8[guildId];
notFoundMembers = property3.notFoundMembers;
length = property.notFound?.length;
property3.notFoundMembers = notFoundMembers + (length ?? value);
foundMembers = env0_8[guildId].foundMembers;
notFoundMembers = env0_8[guildId].notFoundMembers;
value = foundMembers + notFoundMembers;
if (value >= env0_9) {
env0_8[guildId].fetchState = env0_7.FETCHED;
function value_96265(a0) { // fn#96265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12757:951, offset: 0x02159319, size: 33 bytes, params: 2, frame: 12
const fetchState = getFetchState(a0);
const FETCHING = env1_7.FETCHING;
return fetchState === FETCHING;
}
function value_96266(a0, a1) { // fn#96266, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12757:1046, offset: 0x0215933a, size: 118 bytes, params: 3, frame: 17
var length;
const value = environment.__proto__;
const fetchState = getFetchState(a0);
const NOT_FETCHED = env1_7.NOT_FETCHED;
if (fetchState === NOT_FETCHED) {
env1_8[a0] = {'fetchState': null, 'foundMembers': 0, 'notFoundMembers': 0, fetchState: env1_7.FETCHING};
length = a1.length;
(importDefault(6593) /* metro dependency 6593: GuildActionCreators */).requestMembersById(a0, a1, false);
}
}
}
function GUILD_MEMBERS_CHUNK_BATCH_96267({chunks}) { // fn#96267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12757:1375, offset: 0x021593b0, size: 210 bytes, params: 2, frame: 18
var length;
var property2;
var foundMembers;
var property3;
var notFoundMembers;
let value = 0;
const property = chunks[value];
const guildId = property.guildId;
const fetchState = getFetchState(guildId);
const FETCHING = env0_7.FETCHING;
if (fetchState === FETCHING) {
property2 = env0_8[guildId];
foundMembers = property2.foundMembers;
length = property.members.length;
property2.foundMembers = foundMembers + length;
property3 = env0_8[guildId];
notFoundMembers = property3.notFoundMembers;
length = property.notFound?.length;
property3.notFoundMembers = notFoundMembers + (length ?? value);
foundMembers = env0_8[guildId].foundMembers;
notFoundMembers = env0_8[guildId].notFoundMembers;
value = foundMembers + notFoundMembers;
if (value >= env0_9) {
env0_8[guildId].fetchState = env0_7.FETCHED;
}
}
}
}
function value_96265(a0) { // fn#96265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12757:951, offset: 0x02159319, size: 33 bytes, params: 2, frame: 12
const fetchState = getFetchState(a0);
const FETCHING = env1_7.FETCHING;
return fetchState === FETCHING;
}
function value_96266(a0, a1) { // fn#96266, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12757:1046, offset: 0x0215933a, size: 118 bytes, params: 3, frame: 17
var length;
const value = environment.__proto__;
const fetchState = getFetchState(a0);
const NOT_FETCHED = env1_7.NOT_FETCHED;
if (fetchState === NOT_FETCHED) {
env1_8[a0] = {'fetchState': null, 'foundMembers': 0, 'notFoundMembers': 0, fetchState: env1_7.FETCHING};
length = a1.length;
(importDefault(6593) /* metro dependency 6593: GuildActionCreators */).requestMembersById(a0, a1, false);
}
}
global.__d(_fun96257, 12567, [6, 7, 15, 17, 18, 6593, 566, 694,
2]) /* metro module 12567, dependencies: [6, 7, 15, 17, 18, 6593, 566, 694, 2] */;
@@ -1,16 +1,18 @@
/* Metro module 8784; source: modules/relationships/RelationshipConstants.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun68704(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68704, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8969:6, offset: 0x01c59753, size: 204 bytes, params: 8, frame: 17
var object2;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {SPAM: 1};
object2[1] = 'SPAM';
object2.IGNORED = 2;
object2[2] = 'IGNORED';
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/relationships/RelationshipConstants.tsx');
exports.ClearFriendRequestFilters = object2;
object = {SPAM: 1};
object[1] = 'SPAM';
object.IGNORED = 2;
object[2] = 'IGNORED';
(FileImportTrackerModule).fileFinishedImporting('modules/relationships/RelationshipConstants.tsx');
exports.ClearFriendRequestFilters = object;
exports.UserRemediationAction = {GOTO_IGNORE: 'GOTO_IGNORE', GOTO_BLOCK: 'GOTO_BLOCK',
EXPLORE_FEATURE_GUILD: 'EXPLORE_FEATURE_GUILD', DISMISS_IGNORE: 'DISMISS_IGNORE',
DISMISS_BLOCK: 'DISMISS_BLOCK', CANCEL_IGNORE: 'CANCEL_IGNORE', CANCEL_BLOCK: 'CANCEL_BLOCK'};
}
global.__d(_fun68704, 8784, [2]) /* metro module 8784, dependencies: [2] */;
@@ -1,118 +1,126 @@
/* Metro module 15815; source: modules/relationships/RelationshipManager.tsx; dependencies: [7, 6, 15, 17, 18, 661, 4002, 1244, 15816, 4860, 2] */
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import AutomaticLifecycleManager from '../../lib/AutomaticLifecycleManager.tsx'; /* Metro dependency 4860 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as SharedModule from '../../design/shared.tsx'; /* Metro dependency 4002 */
import * as RelationshipUtilsModule from '../../utils/RelationshipUtils.tsx'; /* Metro dependency 15816 */
function _fun121545(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121545, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16023:6, offset: 0x0254a81c, size: 277 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(7) /* metro dependency 7 */;
const env0_4 = importDefault(6) /* metro dependency 6 */;
const env0_5 = importDefault(15) /* metro dependency 15 */;
const env0_6 = importDefault(17) /* metro dependency 17 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
const env0_8 = (require(661) /* metro dependency 661: Constants */).RelationshipTypes;
let value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
let value = AutomaticLifecycleManager;
value = _fun121551(value);
value = new value();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/relationships/RelationshipManager.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/relationships/RelationshipManager.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_121546() { // fn#121546, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16023:176, offset: 0x0254a931, 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) {
function _isNativeReflectConstruct_121546() { // fn#121546, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16023:176, offset: 0x0254a931, 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_121546_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_121546_isNativeReflectConstruct = function() {
return !!result;
})();
}
function handleRelationshipAdd_121549({relationship}) { // fn#121549, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16023:369, offset: 0x0254a993, size: 192 bytes, params: 2, frame: 20
var AccessibilityAnnouncer;
var announce;
var intl;
var formatToPlainString;
var zH0kC7;
var user;
var showPendingNotification;
const userIgnored = relationship.userIgnored;
const type = relationship.type;
var value;
const PENDING_INCOMING = RelationshipTypes.PENDING_INCOMING;
if (!(type !== PENDING_INCOMING || userIgnored)) {
AccessibilityAnnouncer = (require(4002) /* metro dependency 4002: shared */).AccessibilityAnnouncer;
announce = AccessibilityAnnouncer.announce;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
formatToPlainString = intl.formatToPlainString;
zH0kC7 = (require(1244) /* metro dependency 1244: indexNative */).t.zH0kC7;
user = relationship.user;
Reflect.apply(announce, AccessibilityAnnouncer, [Reflect.apply(formatToPlainString, intl, [zH0kC7,
{username: user.username}])]);
value = importAll(15816) /* metro dependency 15816: RelationshipUtils */;
showPendingNotification = value.showPendingNotification;
user = relationship.user;
Reflect.apply(showPendingNotification, value, [user]);
function handleRelationshipAdd_121549({relationship}) { // fn#121549, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16023:369, offset: 0x0254a993, size: 192 bytes, params: 2, frame: 20
var AccessibilityAnnouncer;
var announce;
var intl;
var formatToPlainString;
var zH0kC7;
var user;
var showPendingNotification;
const userIgnored = relationship.userIgnored;
const type = relationship.type;
var value;
const PENDING_INCOMING = RelationshipTypes.PENDING_INCOMING;
if (!(type !== PENDING_INCOMING || userIgnored)) {
AccessibilityAnnouncer = (require(4002) /* metro dependency 4002: shared */).AccessibilityAnnouncer;
announce = AccessibilityAnnouncer.announce;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
formatToPlainString = intl.formatToPlainString;
zH0kC7 = (require(1244) /* metro dependency 1244: indexNative */).t.zH0kC7;
user = relationship.user;
Reflect.apply(announce, AccessibilityAnnouncer, [Reflect.apply(formatToPlainString, intl, [zH0kC7,
{username: user.username}])]);
value = importAll(15816) /* metro dependency 15816: RelationshipUtils */;
showPendingNotification = value.showPendingNotification;
user = relationship.user;
Reflect.apply(showPendingNotification, value, [user]);
}
}
}
function handleFriendRequestAccepted({user}) { // fn#121550, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16023:631, offset: 0x0254aa53, size: 142 bytes, params: 2, frame: 20
const AccessibilityAnnouncer = (require(4002) /* metro dependency 4002: shared */).AccessibilityAnnouncer;
const announce = AccessibilityAnnouncer.announce;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const formatToPlainString = intl.formatToPlainString;
const property = (require(1244) /* metro dependency 1244: indexNative */).t['/+7xky'];
const username = user.username;
Reflect.apply(announce, AccessibilityAnnouncer, [Reflect.apply(formatToPlainString, intl, [property,
{username: username}])]);
(importAll(15816) /* metro dependency 15816: RelationshipUtils */).showAcceptedNotification(user);
}
function _fun121551(a0) { // fn#121551, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16023:841, offset: 0x0254aae1, size: 42 bytes, params: 2, frame: 14
const closure = RelationshipManager;
env0_7(closure, a0);
return env0_3(closure);
}
function RelationshipManager(a0) { // fn#121552, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16023:853, offset: 0x0254ab0b, size: 152 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_4;
binding(this, RelationshipManager);
const items = [];
arraySpread(items, value, 0, items);
value = env1_6(RelationshipManager);
binding = env1_5;
if (_isNativeReflectConstruct_121546()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items, env1_6(this).constructor);
r0 = value;
} else {
value = value.apply(this, items);
r0 = value;
function handleFriendRequestAccepted({user}) { // fn#121550, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16023:631, offset: 0x0254aa53, size: 142 bytes, params: 2, frame: 20
const AccessibilityAnnouncer = (SharedModule).AccessibilityAnnouncer;
const announce = AccessibilityAnnouncer.announce;
const intl = (IndexNativeModule).intl;
const formatToPlainString = intl.formatToPlainString;
const property = (IndexNativeModule).t['/+7xky'];
const username = user.username;
Reflect.apply(announce, AccessibilityAnnouncer, [Reflect.apply(formatToPlainString, intl, [property,
{username: username}])]);
(RelationshipUtilsModule).showAcceptedNotification(user);
}
value = binding(this, r0);
value.actions = {RELATIONSHIP_ADD: handleRelationshipAdd_121549,
FRIEND_REQUEST_ACCEPTED: handleFriendRequestAccepted};
return value;
function _fun121551(a0) { // fn#121551, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16023:841, offset: 0x0254aae1, size: 42 bytes, params: 2, frame: 14
const RelationshipManager2 = RelationshipManager;
Inherits(RelationshipManager2, a0);
return CreateClass(RelationshipManager2);
function RelationshipManager(a0) { // fn#121552, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16023:853, offset: 0x0254ab0b, size: 152 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_4;
binding(this, RelationshipManager);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_6(RelationshipManager);
binding = env1_5;
if (_isNativeReflectConstruct_121546()) {
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.actions = {RELATIONSHIP_ADD: handleRelationshipAdd_121549,
FRIEND_REQUEST_ACCEPTED: handleFriendRequestAccepted};
return value;
}
}
}
global.__d(_fun121545, 15815, [7, 6, 15, 17, 18, 661, 4002, 1244, 15816, 4860,
2]) /* metro module 15815, dependencies: [7, 6, 15, 17, 18, 661, 4002, 1244, 15816, 4860, 2] */;
@@ -1,58 +1,68 @@
/* Metro module 8794; source: modules/relationships/native/BlockConfirmationActionSheet.tsx; dependencies: [57, 31, 27, 1379, 3793, 1878, 8784, 8781, 661, 33, 4501, 697, 8745, 1244, 4070, 6231, 6238, 1305, 1585, 6771, 6789, 566, 8061, 6275, 683, 6277, 8747, 4573, 4617, 8748, 4080, 8793, 1962, 480, 4578, 8783, 6264, 6766, 1948, 3853, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import AnalyticsUtils from '../../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import ChannelStore from '../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import UseSafeAreaInsetsNative from '../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import HelpdeskUtils from '../../../utils/HelpdeskUtils.tsx'; /* Metro dependency 1948 */
import RelationshipStore from '../../../stores/RelationshipStore.tsx'; /* Metro dependency 3793 */
import Linking from '../../../lib/native/Linking.tsx'; /* Metro dependency 3853 */
import ActionSheetActionCreators from '../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import SafetyToastsActionCreatorsNative from '../../safety_common/SafetyToastsActionCreators.native.tsx'; /* Metro dependency 6264 */
import UseAnalyticsLocations from '../../app_analytics/useAnalyticsLocations.tsx'; /* Metro dependency 6771 */
import AnalyticsLocation from '../../app_analytics/AnalyticsLocation.tsx'; /* Metro dependency 6789 */
import RelationshipActionCreators from '../../../actions/RelationshipActionCreators.tsx'; /* Metro dependency 8783 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as TableRowGroupNativeModule from '../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
import * as TableRowNativeModule from '../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
import * as RestrictionConfirmationConstantsModule from './RestrictionConfirmationConstants.tsx'; /* Metro dependency 8781 */
import * as RelationshipConstantsModule from '../RelationshipConstants.tsx'; /* Metro dependency 8784 */
function _fun68761(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8979:6, offset: 0x01c5bf8a, size: 935 bytes, params: 8, frame: 25
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
let value = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(27) /* metro dependency 27 */).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_9 = (require(8784) /* metro dependency 8784: RelationshipConstants */).UserRemediationAction;
const restrictionConfirmationConstantsModule = require(8781) /* metro dependency 8781: RestrictionConfirmationConstants */;
const env0_10 = restrictionConfirmationConstantsModule.IGNORE_CONFIRMATION_ACTION_SHEET_KEY;
const env0_11 = restrictionConfirmationConstantsModule.RESTRICTION_CONFIRMATION_ACTION_SHEET_HEIGHT;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_12 = constantsModule.HelpdeskArticles;
const env0_13 = constantsModule.AnalyticEvents;
const value4 = require(33) /* metro dependency 33 */;
const env0_14 = value4.jsx;
const env0_15 = value4.jsxs;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object2 = {button: {'alignContent': 'center', 'textAlign': 'center'}};
let value = ReactModule;
const createStyles = CreateStylesModule.createStyles;
object = {button: {'alignContent': 'center', 'textAlign': 'center'}};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.tableContainer = {marginBottom: PX_16};
object.tableContainer = {marginBottom: PX_16};
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object2.otherOptions = {marginBottom: PX_24};
object2.headerText = {textAlign: 'center'};
const object3 = {flex: 1};
object.otherOptions = {marginBottom: PX_24};
object.headerText = {textAlign: 'center'};
const object5 = {flex: 1};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object3.paddingHorizontal = PX_16;
object5.paddingHorizontal = PX_16;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object3.paddingTop = PX_16;
object2.container = object3;
object5.paddingTop = PX_16;
object.container = object5;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.header = {marginBottom: PX_16};
object.header = {marginBottom: PX_16};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.avatarContainer = {'position': 'relative', 'alignSelf': 'center', marginBottom: PX_16};
const object4 = {'position': 'absolute', 'bottom': -8, 'right': -8};
object.avatarContainer = {'position': 'relative', 'alignSelf': 'center', marginBottom: PX_16};
const object7 = {'position': 'absolute', 'bottom': -8, 'right': -8};
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object4.padding = PX_4;
object7.padding = PX_4;
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object4.backgroundColor = BACKGROUND_SURFACE_HIGH;
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object2.avatarIconContainer = object4;
object2.avatar = {alignSelf: 'center'};
const object6 = {textAlign: 'center'};
object7.backgroundColor = BACKGROUND_SURFACE_HIGH;
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object.avatarIconContainer = object7;
object.avatar = {alignSelf: 'center'};
const object8 = {textAlign: 'center'};
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object6.marginTop = PX_12;
object8.marginTop = PX_12;
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object6.paddingBottom = PX_4;
object2.footerText = object6;
const env0_16 = Reflect.apply(createStyles, createStylesModule, [object2]);
object8.paddingBottom = PX_4;
object.footerText = object8;
const env0_16 = Reflect.apply(createStyles, CreateStylesModule, [object]);
const items2 = [{icon: importDefault(8745) /* metro dependency 8745 */, text: function() {
return require(dependencyMap[13]).intl.string(require(dependencyMap[13]).t.fjFJFV);
}, subtext: function() {
@@ -75,222 +85,294 @@ function _fun68761(global, require, importDefault, importAll, module, exports, d
return require(dependencyMap[13]).intl.string(require(dependencyMap[13]).t.lfrNw0);
}};
value = value.memo(BlockConfirmationActionSheet);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/relationships/native/BlockConfirmationActionSheet.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/relationships/native/BlockConfirmationActionSheet.tsx');
exports.default = value;
}
function BlockedInformationTable() { // fn#68762, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8979:1633, offset: 0x01c5c331, size: 79 bytes, params: 1, frame: 16
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
return (
<TableRowGroup hasIcons>
{env0_17.map(_fun68763)}
</TableRowGroup>
);
}
function BlockConfirmationActionSheet({userId, channelId, onBlock, onIgnore, onSuccess}) { // fn#68773, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8979:1963, offset: 0x01c5c68e, size: 1895 bytes, params: 2, frame: 47
var r12;
var r0;
var AnalyticsLocationProvider;
var BottomSheet;
var object4;
var value9;
var space;
var PX_24;
var value10;
var object5;
var BottomSheetScrollView;
var items5;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var object6;
var headerText;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var format;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var CIbzHR;
var object7;
var string;
var items6;
var TableRowGroup;
var TableRow;
var Button;
var items7;
var TextWithIOSLinkWorkaround;
const styles = useStyles();
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
let defaultImport = importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */;
const IGNORE_CONFIRMATION_ACTION_SHEET = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).IGNORE_CONFIRMATION_ACTION_SHEET;
let object = [IGNORE_CONFIRMATION_ACTION_SHEET];
const analyticsLocations = defaultImport(object).analyticsLocations;
const binding = onSuccess;
const [property, env0_5] = onIgnore(binding.useState(false), 2);
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getUser(userId);
}, [userId]);
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStores([RelationshipStore], function() {
return RelationshipStore.isIgnored(userId);
}, [userId]);
const value6 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], _fun68776,
[channelId]);
binding.useEffect(_fun68777, [value4, userId]);
if (value4 == null) {
r0 = null;
} else {
AnalyticsLocationProvider = (require(6771) /* metro dependency 6771: useAnalyticsLocations */).AnalyticsLocationProvider;
object = {value: analyticsLocations};
BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
object4 = {onDismiss: function() {
var defaultImport = importDefault(dependencyMap[24]);
var USER_REMEDIATION_ACTION = AnalyticEvents.USER_REMEDIATION_ACTION;
defaultImport.track(USER_REMEDIATION_ACTION, {action: UserRemediationAction.DISMISS_BLOCK,
location: 'user-profile-context-menu'});
}, scrollable: true};
value9 = (value5 ? 485 : RESTRICTION_CONFIRMATION_ACTION_SHEET_HEIGHT) + bottom;
space = (importDefault(697) /* metro dependency 697: native */).space;
PX_24 = space.PX_24;
value10 = value9 + PX_24;
space = (importDefault(697) /* metro dependency 697: native */).space;
PX_24 = space.PX_24;
object4.startHeight = value10 + PX_24;
object5 = {};
space = (importDefault(697) /* metro dependency 697: native */).space;
PX_24 = space.PX_24;
object5.paddingBottom = PX_24 + bottom;
copyDataProperties(object5, styles.container, undefined);
object4.bodyStyles = object5;
BottomSheetScrollView = (require(6277) /* metro dependency 6277 */).BottomSheetScrollView;
var viewBindingProps2 = {style: styles.header};
items5 = [<View style={styles.avatarContainer}>{((Avatar) => <Avatar guildId={undefined} user={value4} animate={false} size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.XLARGE} style={styles.avatar} />)((require(1305) /* metro dependency 1305: native */).Avatar)}<View style={styles.avatarIconContainer}>{((Icon) => <Icon size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.MEDIUM} source={importDefault(8747) /* metro dependency 8747 */} />)((require(1305) /* metro dependency 1305: native */).Icon)}</View></View>];
object6 = {'style': null, 'variant': 'heading-xl/bold', 'color': 'mobile-text-heading-primary',
'accessibilityRole': 'header'};
headerText = styles.headerText;
object6.style = headerText;
format = intl.format;
CIbzHR = t.CIbzHR;
object7 = {};
object7.username = (importDefault(4617) /* metro dependency 4617: NicknameUtils */).getName(value6, channelId,
value4);
items5[1] = <Text {...object6}>{Reflect.apply(format, intl, [CIbzHR, object7])}</Text>;
headerText = styles.headerText;
string = intl.string;
items5[2] = <Text style={headerText} variant="heading-md/medium" color="text-default" accessibilityRole="header">{Reflect.apply(string,
intl, [t.S70jou])}</Text>;
items6 = [<View {...viewBindingProps2}>{items5}</View>];
items6[1] = <View style={styles.tableContainer}><BlockedInformationTable /></View>;
if (value5) {
r12 = !value5;
} else {
var viewBindingProps = {style: styles.otherOptions};
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
var tableRowGroupProps = {title: intl.string(t['+BJTcB']), hasIcons: true};
TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
r12 = <View {...viewBindingProps}><TableRowGroup {...tableRowGroupProps}><TableRow icon={((Icon) => <Icon size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.MEDIUM} source={importDefault(8748) /* metro dependency 8748 */} />)((require(1305) /* metro dependency 1305: native */).Icon)} label={intl.string(t.hC8tcc)} subLabel={intl.string(t.If89rE)} accessibilityLabel={intl.string(t['8qGQsM'])} onPress={onPress_68779} arrow /></TableRowGroup></View>;
function BlockedInformationTable() { // fn#68762, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8979:1633, offset: 0x01c5c331, size: 79 bytes, params: 1, frame: 16
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
return (
<TableRowGroup hasIcons>
{env0_17.map(_fun68763)}
</TableRowGroup>
);
function _fun68763(a0, a1) { // fn#68763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8979:1729, offset: 0x01c5c380, size: 206 bytes, params: 3, frame: 22
const TableRow = (TableRowNativeModule).TableRow;
const length = env1_17.length;
const Icon = (NativeModule).Icon;
const Icon2 = (NativeModule).Icon;
const Sizes = Icon2.Sizes;
const MEDIUM = Sizes.MEDIUM;
return (
<TableRow
start={a1 === 0}
end={length - 1 === a1}
icon={<Icon size={MEDIUM} source={a0.icon} />}
label={a0.text()}
subLabel={a0.subtext()}
accessible
accessibilityLabel={a0.a11yLabel()}
key={a1}
/>
);
}
items6[2] = r12;
var viewBindingProps5 = {style: styles.button};
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
string = intl.string;
items7 = [<Button size="lg" variant="destructive" text={Reflect.apply(string, intl,
[t.l4Emac])} onPress={onPress_68780} disabled={property} loading={property} />];
TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
format = intl.format;
items7[1] = <TextWithIOSLinkWorkaround style={styles.footerText} variant="text-sm/normal" color="text-default">{Reflect.apply(format,
intl, [t.CpTgBn, {articleLink: articleLink}])}</TextWithIOSLinkWorkaround>;
items6[3] = <View {...viewBindingProps5}>{items7}</View>;
r0 = <AnalyticsLocationProvider {...object}><BottomSheet {...object4}><BottomSheetScrollView>{items6}</BottomSheetScrollView></BottomSheet></AnalyticsLocationProvider>;
}
return r0;
}
function _fun68763(a0, a1) { // fn#68763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8979:1729, offset: 0x01c5c380, size: 206 bytes, params: 3, frame: 22
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const length = env1_17.length;
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
const Icon2 = (require(1305) /* metro dependency 1305: native */).Icon;
const Sizes = Icon2.Sizes;
const MEDIUM = Sizes.MEDIUM;
return (
<TableRow
start={a1 === 0}
end={length - 1 === a1}
icon={<Icon size={MEDIUM} source={a0.icon} />}
label={a0.text()}
subLabel={a0.subtext()}
accessible
accessibilityLabel={a0.a11yLabel()}
key={a1}
/>
);
}
function BlockConfirmationActionSheet({userId, channelId, onBlock, onIgnore, onSuccess}) { // fn#68773, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8979:1963, offset: 0x01c5c68e, size: 1895 bytes, params: 2, frame: 47
var r12;
var r0;
var AnalyticsLocationProvider;
var BottomSheet;
var object2;
var value9;
var space;
var PX_24;
var value10;
var object3;
var BottomSheetScrollView;
var items5;
const Text = (TextModule).Text;
var object9;
var headerText;
const intl = (IndexNativeModule).intl;
var format;
const t = (IndexNativeModule).t;
var CIbzHR;
var object10;
var string;
var items6;
var TableRowGroup;
var TableRow;
var Button;
var items7;
var TextWithIOSLinkWorkaround;
const styles = useStyles();
const bottom = (UseSafeAreaInsetsNative)().bottom;
let defaultImport = UseAnalyticsLocations;
const IGNORE_CONFIRMATION_ACTION_SHEET = (AnalyticsLocation).IGNORE_CONFIRMATION_ACTION_SHEET;
let object = [IGNORE_CONFIRMATION_ACTION_SHEET];
const analyticsLocations = defaultImport(object).analyticsLocations;
const binding = onSuccess;
const [property, env0_5] = onIgnore(binding.useState(false), 2);
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getUser(userId);
}, [userId]);
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStores([RelationshipStore], function() {
return RelationshipStore.isIgnored(userId);
}, [userId]);
const value6 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], _fun68776,
[channelId]);
binding.useEffect(_fun68777, [value4, userId]);
if (value4 == null) {
r0 = null;
} else {
AnalyticsLocationProvider = (require(6771) /* metro dependency 6771: useAnalyticsLocations */).AnalyticsLocationProvider;
object = {value: analyticsLocations};
BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
object2 = {onDismiss: function() {
var defaultImport = importDefault(dependencyMap[24]);
var USER_REMEDIATION_ACTION = AnalyticEvents.USER_REMEDIATION_ACTION;
defaultImport.track(USER_REMEDIATION_ACTION, {action: UserRemediationAction.DISMISS_BLOCK,
location: 'user-profile-context-menu'});
}, scrollable: true};
value9 = (value5 ? 485 : RESTRICTION_CONFIRMATION_ACTION_SHEET_HEIGHT) + bottom;
space = (importDefault(697) /* metro dependency 697: native */).space;
PX_24 = space.PX_24;
value10 = value9 + PX_24;
space = (importDefault(697) /* metro dependency 697: native */).space;
PX_24 = space.PX_24;
object2.startHeight = value10 + PX_24;
object3 = {};
space = (importDefault(697) /* metro dependency 697: native */).space;
PX_24 = space.PX_24;
object3.paddingBottom = PX_24 + bottom;
copyDataProperties(object3, styles.container, undefined);
object2.bodyStyles = object3;
BottomSheetScrollView = (require(6277) /* metro dependency 6277 */).BottomSheetScrollView;
var viewBindingProps2 = {style: styles.header};
items5 = [
<View style={styles.avatarContainer}>
{((Avatar) => <Avatar guildId={undefined} user={value4} animate={false} size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.XLARGE} style={styles.avatar} />)((require(1305) /* metro dependency 1305: native */).Avatar)}
<View style={styles.avatarIconContainer}>
{((Icon) => <Icon size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.MEDIUM} source={importDefault(8747) /* metro dependency 8747 */} />)((require(1305) /* metro dependency 1305: native */).Icon)}
</View>
</View>,
];
object9 = {'style': null, 'variant': 'heading-xl/bold', 'color': 'mobile-text-heading-primary',
'accessibilityRole': 'header'};
headerText = styles.headerText;
object9.style = headerText;
format = intl.format;
CIbzHR = t.CIbzHR;
object10 = {};
object10.username = (importDefault(4617) /* metro dependency 4617: NicknameUtils */).getName(value6, channelId,
value4);
items5[1] = (
<Text {...object9}>
{Reflect.apply(format, intl, [CIbzHR, object10])}
</Text>
);
headerText = styles.headerText;
string = intl.string;
items5[2] = (
<Text
style={headerText}
variant="heading-md/medium"
color="text-default"
accessibilityRole="header"
>
{Reflect.apply(string, intl, [t.S70jou])}
</Text>
);
items6 = [
<View {...viewBindingProps2}>
{items5}
</View>,
];
items6[1] = (
<View style={styles.tableContainer}>
<BlockedInformationTable />
</View>
);
if (value5) {
r12 = !value5;
} else {
var viewBindingProps = {style: styles.otherOptions};
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
var tableRowGroupProps = {title: intl.string(t['+BJTcB']), hasIcons: true};
TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
r12 = (
<View {...viewBindingProps}>
<TableRowGroup {...tableRowGroupProps}>
<TableRow
icon={((Icon) => <Icon size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.MEDIUM} source={importDefault(8748) /* metro dependency 8748 */} />)((require(1305) /* metro dependency 1305: native */).Icon)}
label={intl.string(t.hC8tcc)}
subLabel={intl.string(t.If89rE)}
accessibilityLabel={intl.string(t['8qGQsM'])}
onPress={onPress_68779}
arrow
/>
</TableRowGroup>
</View>
);
}
items6[2] = r12;
var viewBindingProps5 = {style: styles.button};
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
string = intl.string;
items7 = [
<Button
size="lg"
variant="destructive"
text={Reflect.apply(string, intl, [t.l4Emac])}
onPress={onPress_68780}
disabled={property}
loading={property}
/>,
];
TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
format = intl.format;
items7[1] = (
<TextWithIOSLinkWorkaround
style={styles.footerText}
variant="text-sm/normal"
color="text-default"
>
{Reflect.apply(format, intl, [t.CpTgBn, {articleLink: articleLink}])}
</TextWithIOSLinkWorkaround>
);
items6[3] = (
<View {...viewBindingProps5}>
{items7}
</View>
);
r0 = (
<AnalyticsLocationProvider {...object}>
<BottomSheet {...object2}>
<BottomSheetScrollView>
{items6}
</BottomSheetScrollView>
</BottomSheet>
</AnalyticsLocationProvider>
);
}
return r0;
function _fun68776() { // fn#68776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8979:2356, offset: 0x01c5bcd7, size: 42 bytes, params: 1, frame: 11
const value = environment.__proto__;
return ChannelStore.getChannel(channelId)?.guild_id;
}
function _fun68777() { // fn#68777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8979:2445, offset: 0x01c5ce10, size: 57 bytes, params: 1, frame: 12
var value2;
var moduleValue;
if (env0_6 == null) {
value2 = environment.__proto__;
moduleValue = require(8061) /* metro dependency 8061: UserActionCreators */;
moduleValue.getUser(userId);
}
}
function BlockConfirmationActionSheetOnPress() { // fn#68779, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8979:4022, owner: BlockConfirmationActionSheet.onPress, offset: 0x01c5ce93, size: 217 bytes, params: 1, frame: 21
const defaultImport = importDefault(dependencyMap[24]);
const track = defaultImport.track;
const USER_REMEDIATION_ACTION = AnalyticEvents.USER_REMEDIATION_ACTION;
const GOTO_IGNORE = UserRemediationAction.GOTO_IGNORE;
Reflect.apply(track, defaultImport, [USER_REMEDIATION_ACTION, {action: GOTO_IGNORE,
location: 'user-profile-context-menu'}]);
const defaultImport2 = importDefault(dependencyMap[30]);
const openLazy = defaultImport2.openLazy;
const value2 = require(dependencyMap[32])(dependencyMap[31], dependencyMap.paths);
object = {};
object.userId = userId;
object.channelId = channelId;
object.onSuccess = onSuccess;
object.onIgnore = onIgnore;
const ImpressionNames = require(dependencyMap[33]).ImpressionNames;
const IGNORE_USER_CONFIRMATION = ImpressionNames.IGNORE_USER_CONFIRMATION;
object.impressionName = IGNORE_USER_CONFIRMATION;
Reflect.apply(openLazy, defaultImport2, [value2, IGNORE_CONFIRMATION_ACTION_SHEET_KEY, object, 'replaceTopSheet']);
}
function BlockConfirmationActionSheetOnPress_68780() { // fn#68780, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8979:4453, owner: BlockConfirmationActionSheet.onPress, offset: 0x01c5cf6c, size: 158 bytes, params: 1, frame: 19
env0_5(true);
const defaultImport = RelationshipActionCreators;
const blockUser = defaultImport.blockUser;
const userIdBinding = userId;
const BLOCK_CONFIRMATION_ACTION_SHEET = (AnalyticsLocation).BLOCK_CONFIRMATION_ACTION_SHEET;
Reflect.apply(blockUser, defaultImport, [userIdBinding,
{location: BLOCK_CONFIRMATION_ACTION_SHEET}]).then(_fun68781);
if (onBlock != null) {
onBlock();
}
const track = AnalyticsUtils.track;
const BLOCK_USER_CONFIRMED = AnalyticEvents.BLOCK_USER_CONFIRMED;
Reflect.apply(track, AnalyticsUtils, [BLOCK_USER_CONFIRMED]);
function _fun68781() { // fn#68781, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8979:4544, offset: 0x01c5d00a, size: 98 bytes, params: 1, frame: 16
const value = environment.__proto__.__proto__;
const defaultImport = SafetyToastsActionCreatorsNative;
defaultImport.showBlockSuccessToast(userId, channelId);
if (onSuccess != null) {
onSuccess();
}
(ActionSheetActionCreators).hideActionSheet();
}
}
function BlockConfirmationActionSheetArticleLink() { // fn#68782, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8979:4868, owner: BlockConfirmationActionSheet.articleLink, offset: 0x01c5d06c, size: 93 bytes, params: 1, frame: 14
const value = environment.__proto__;
(ActionSheetActionCreators).hideActionSheet();
const defaultImport2 = HelpdeskUtils;
const getArticleURL = defaultImport2.getArticleURL;
const STEALTH_REMEDIATION_FEATURE_GUIDE = HelpdeskArticles.STEALTH_REMEDIATION_FEATURE_GUIDE;
(Linking).openURL(Reflect.apply(getArticleURL, defaultImport2,
[STEALTH_REMEDIATION_FEATURE_GUIDE]));
}
function _fun68777() { // fn#68777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8979:2445, offset: 0x01c5ce10, size: 57 bytes, params: 1, frame: 12
var value2;
var moduleValue;
if (env0_6 == null) {
value2 = environment.__proto__;
moduleValue = require(8061) /* metro dependency 8061: UserActionCreators */;
moduleValue.getUser(userId);
}
}
function BlockConfirmationActionSheetOnPress() { // fn#68779, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8979:4022, owner: BlockConfirmationActionSheet.onPress, offset: 0x01c5ce93, size: 217 bytes, params: 1, frame: 21
var object2;
const defaultImport = importDefault(dependencyMap[24]);
const track = defaultImport.track;
const USER_REMEDIATION_ACTION = AnalyticEvents.USER_REMEDIATION_ACTION;
const GOTO_IGNORE = UserRemediationAction.GOTO_IGNORE;
Reflect.apply(track, defaultImport, [USER_REMEDIATION_ACTION, {action: GOTO_IGNORE,
location: 'user-profile-context-menu'}]);
const defaultImport2 = importDefault(dependencyMap[30]);
const openLazy = defaultImport2.openLazy;
const value2 = require(dependencyMap[32])(dependencyMap[31], dependencyMap.paths);
object2 = {};
object2.userId = userId;
object2.channelId = channelId;
object2.onSuccess = onSuccess;
object2.onIgnore = onIgnore;
const ImpressionNames = require(dependencyMap[33]).ImpressionNames;
const IGNORE_USER_CONFIRMATION = ImpressionNames.IGNORE_USER_CONFIRMATION;
object2.impressionName = IGNORE_USER_CONFIRMATION;
Reflect.apply(openLazy, defaultImport2, [value2, IGNORE_CONFIRMATION_ACTION_SHEET_KEY, object2, 'replaceTopSheet']);
}
function BlockConfirmationActionSheetOnPress_68780() { // fn#68780, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8979:4453, owner: BlockConfirmationActionSheet.onPress, offset: 0x01c5cf6c, size: 158 bytes, params: 1, frame: 19
env0_5(true);
const defaultImport = importDefault(8783) /* metro dependency 8783: RelationshipActionCreators */;
const blockUser = defaultImport.blockUser;
const userIdBinding = userId;
const BLOCK_CONFIRMATION_ACTION_SHEET = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).BLOCK_CONFIRMATION_ACTION_SHEET;
Reflect.apply(blockUser, defaultImport, [userIdBinding,
{location: BLOCK_CONFIRMATION_ACTION_SHEET}]).then(_fun68781);
if (onBlock != null) {
onBlock();
}
const value = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = value.track;
const BLOCK_USER_CONFIRMED = AnalyticEvents.BLOCK_USER_CONFIRMED;
Reflect.apply(track, value, [BLOCK_USER_CONFIRMED]);
}
function BlockConfirmationActionSheetArticleLink() { // fn#68782, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8979:4868, owner: BlockConfirmationActionSheet.articleLink, offset: 0x01c5d06c, size: 93 bytes, params: 1, frame: 14
const value = environment.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
const defaultImport2 = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
const getArticleURL = defaultImport2.getArticleURL;
const STEALTH_REMEDIATION_FEATURE_GUIDE = HelpdeskArticles.STEALTH_REMEDIATION_FEATURE_GUIDE;
(importDefault(3853) /* metro dependency 3853: Linking */).openURL(Reflect.apply(getArticleURL, defaultImport2,
[STEALTH_REMEDIATION_FEATURE_GUIDE]));
}
function _fun68781() { // fn#68781, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8979:4544, offset: 0x01c5d00a, size: 98 bytes, params: 1, frame: 16
const value = environment.__proto__.__proto__;
const defaultImport = importDefault(6264) /* metro dependency 6264: SafetyToastsActionCreatorsNative */;
defaultImport.showBlockSuccessToast(userId, channelId);
if (onSuccess != null) {
onSuccess();
}
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
}
global.__d(_fun68761, 8794, [57, 31, 27, 1379, 3793, 1878, 8784, 8781, 661, 33, 4501, 697, 8745, 1244, 4070, 6231,
6238, 1305, 1585, 6771, 6789, 566, 8061, 6275, 683, 6277, 8747, 4573, 4617, 8748, 4080, 8793, 1962, 480, 4578,
8783, 6264, 6766, 1948, 3853,
2]) /* metro module 8794, dependencies: [57, 31, 27, 1379, 3793, 1878, 8784, 8781, 661, 33, 4501, 697, 8745, 1244, 4070, 6231, 6238, 1305, 1585, 6771, 6789, 566, 8061, 6275, 683, 6277, 8747, 4573, 4617, 8748, 4080, 8793, 1962, 480, 4578, 8783, 6264, 6766, 1948, 3853, 2] */;
@@ -1,55 +1,64 @@
/* Metro module 8793; source: modules/relationships/native/IgnoreConfirmationActionSheet.tsx; dependencies: [57, 31, 27, 1379, 1878, 8784, 8781, 661, 33, 4501, 697, 8745, 1244, 4070, 6231, 6238, 1305, 1585, 6771, 6789, 566, 683, 8061, 6275, 6277, 8748, 4573, 4617, 8747, 4080, 8794, 1962, 480, 4578, 8783, 6766, 1948, 3853, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import AnalyticsUtils from '../../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import ChannelStore from '../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import UseSafeAreaInsetsNative from '../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import HelpdeskUtils from '../../../utils/HelpdeskUtils.tsx'; /* Metro dependency 1948 */
import Linking from '../../../lib/native/Linking.tsx'; /* Metro dependency 3853 */
import ActionSheetActionCreators from '../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import UseAnalyticsLocations from '../../app_analytics/useAnalyticsLocations.tsx'; /* Metro dependency 6771 */
import AnalyticsLocation from '../../app_analytics/AnalyticsLocation.tsx'; /* Metro dependency 6789 */
import RelationshipActionCreators from '../../../actions/RelationshipActionCreators.tsx'; /* Metro dependency 8783 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as TableRowGroupNativeModule from '../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
import * as TableRowNativeModule from '../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
import * as RestrictionConfirmationConstantsModule from './RestrictionConfirmationConstants.tsx'; /* Metro dependency 8781 */
import * as RelationshipConstantsModule from '../RelationshipConstants.tsx'; /* Metro dependency 8784 */
function _fun68740(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8978:6, offset: 0x01c5ae34, size: 924 bytes, params: 8, frame: 25
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
let value = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(27) /* metro dependency 27 */).View;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_8 = (require(8784) /* metro dependency 8784: RelationshipConstants */).UserRemediationAction;
const restrictionConfirmationConstantsModule = require(8781) /* metro dependency 8781: RestrictionConfirmationConstants */;
const env0_9 = restrictionConfirmationConstantsModule.BLOCK_CONFIRMATION_ACTION_SHEET_KEY;
const env0_10 = restrictionConfirmationConstantsModule.RESTRICTION_CONFIRMATION_ACTION_SHEET_HEIGHT;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_11 = constantsModule.AnalyticEvents;
const env0_12 = constantsModule.HelpdeskArticles;
const value4 = require(33) /* metro dependency 33 */;
const env0_13 = value4.jsx;
const env0_14 = value4.jsxs;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object2 = {button: {'alignContent': 'center', 'textAlign': 'center'}};
let value = ReactModule;
const createStyles = CreateStylesModule.createStyles;
object = {button: {'alignContent': 'center', 'textAlign': 'center'}};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.tableContainer = {marginBottom: PX_16};
object.tableContainer = {marginBottom: PX_16};
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object2.otherOptions = {marginBottom: PX_24};
object2.subTitle = {textAlign: 'center'};
object.otherOptions = {marginBottom: PX_24};
object.subTitle = {textAlign: 'center'};
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object2.title = {textAlign: 'center', marginBottom: PX_4};
const object3 = {flex: 1};
object.title = {textAlign: 'center', marginBottom: PX_4};
const object5 = {flex: 1};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object3.paddingHorizontal = PX_16;
object5.paddingHorizontal = PX_16;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object3.paddingTop = PX_16;
object2.container = object3;
object5.paddingTop = PX_16;
object.container = object5;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.header = {marginBottom: PX_16};
object.header = {marginBottom: PX_16};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.avatarContainer = {'position': 'relative', 'alignSelf': 'center', marginBottom: PX_16};
const object4 = {'position': 'absolute', 'bottom': -8, 'right': -8};
object.avatarContainer = {'position': 'relative', 'alignSelf': 'center', marginBottom: PX_16};
const object6 = {'position': 'absolute', 'bottom': -8, 'right': -8};
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object4.padding = PX_4;
object6.padding = PX_4;
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object4.backgroundColor = BACKGROUND_SURFACE_HIGH;
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object2.avatarIconContainer = object4;
object2.avatar = {alignSelf: 'center'};
object6.backgroundColor = BACKGROUND_SURFACE_HIGH;
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object.avatarIconContainer = object6;
object.avatar = {alignSelf: 'center'};
const TEXT_FEEDBACK_CRITICAL = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_FEEDBACK_CRITICAL;
object2.destructiveIcon = {color: TEXT_FEEDBACK_CRITICAL};
const env0_15 = Reflect.apply(createStyles, createStylesModule, [object2]);
object.destructiveIcon = {color: TEXT_FEEDBACK_CRITICAL};
const env0_15 = Reflect.apply(createStyles, CreateStylesModule, [object]);
const items2 = [{icon: importDefault(8745) /* metro dependency 8745 */, text: function() {
return require(dependencyMap[12]).intl.string(require(dependencyMap[12]).t.ruhGkg);
}, subtext: function() {
@@ -72,239 +81,319 @@ function _fun68740(global, require, importDefault, importAll, module, exports, d
return require(dependencyMap[12]).intl.string(require(dependencyMap[12]).t['/XoqE6']);
}};
value = value.memo(IgnoreConfirmationActionSheet);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/relationships/native/IgnoreConfirmationActionSheet.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/relationships/native/IgnoreConfirmationActionSheet.tsx');
exports.default = value;
}
function IgnoredInformationTable() { // fn#68741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8978:1648, offset: 0x01c5b1d0, size: 79 bytes, params: 1, frame: 16
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
return (
<TableRowGroup hasIcons>
{env0_16.map(_fun68742)}
</TableRowGroup>
);
function _fun68742(a0, a1) { // fn#68742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8978:1744, offset: 0x01c5b21f, size: 206 bytes, params: 3, frame: 22
const TableRow = (TableRowNativeModule).TableRow;
const length = env1_16.length;
const Icon = (NativeModule).Icon;
const Icon2 = (NativeModule).Icon;
const Sizes = Icon2.Sizes;
const MEDIUM = Sizes.MEDIUM;
return (
<TableRow
start={a1 === 0}
end={length - 1 === a1}
icon={<Icon size={MEDIUM} source={a0.icon} />}
label={a0.text()}
subLabel={a0.subtext()}
accessible
accessibilityLabel={a0.a11yLabel()}
key={a1}
/>
);
}
function IgnoredInformationTable() { // fn#68741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8978:1648, offset: 0x01c5b1d0, size: 79 bytes, params: 1, frame: 16
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
return (
<TableRowGroup hasIcons>
{env0_16.map(_fun68742)}
</TableRowGroup>
);
}
function IgnoreConfirmationActionSheet({userId, channelId, onIgnore, onSuccess}) { // fn#68752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8978:1978, offset: 0x01c5b52d, size: 1935 bytes, params: 2, frame: 50
var r0;
var AnalyticsLocationProvider;
var BottomSheet;
var object4;
var value8;
var space;
var PX_24;
var value9;
var object5;
var BottomSheetScrollView;
var items3;
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
var Sizes;
var MEDIUM;
var items4;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var format;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var property2;
var object6;
var string;
var items5;
var TableRowGroup;
var TableRow;
var object7;
var Button;
var items6;
var TextWithIOSLinkWorkaround;
var object8;
var object9;
const styles = useStyles();
const binding = env0_4;
var [property, env0_4] = onSuccess(binding.useState(false), 2);
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
let defaultImport = importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */;
const IGNORE_CONFIRMATION_ACTION_SHEET = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).IGNORE_CONFIRMATION_ACTION_SHEET;
let object = [IGNORE_CONFIRMATION_ACTION_SHEET];
const analyticsLocations = defaultImport(object).analyticsLocations;
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getUser(userId);
}, [userId]);
const value6 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], _fun68754,
[channelId]);
const closure = function() {
var defaultImport = importDefault(dependencyMap[21]);
var USER_REMEDIATION_ACTION = AnalyticEvents.USER_REMEDIATION_ACTION;
defaultImport.track(USER_REMEDIATION_ACTION, {action: UserRemediationAction.DISMISS_IGNORE,
location: 'user-profile-context-menu'});
};
binding.useEffect(_fun68756, [value5, userId]);
if (value5 == null) {
r0 = null;
} else {
AnalyticsLocationProvider = (require(6771) /* metro dependency 6771: useAnalyticsLocations */).AnalyticsLocationProvider;
object = {value: analyticsLocations};
BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
object4 = {onDismiss: closure, scrollable: true};
value8 = RESTRICTION_CONFIRMATION_ACTION_SHEET_HEIGHT + bottom;
space = (importDefault(697) /* metro dependency 697: native */).space;
PX_24 = space.PX_24;
value9 = value8 + PX_24;
space = (importDefault(697) /* metro dependency 697: native */).space;
PX_24 = space.PX_24;
object4.startHeight = value9 + PX_24;
object5 = {};
space = (importDefault(697) /* metro dependency 697: native */).space;
object5.paddingBottom = space.PX_16 + bottom;
copyDataProperties(object5, styles.container, undefined);
object4.bodyStyles = object5;
BottomSheetScrollView = (require(6277) /* metro dependency 6277 */).BottomSheetScrollView;
var viewBindingProps = {style: styles.header};
var viewBindingProps2 = {style: styles.avatarContainer};
items3 = [((Avatar) => <Avatar guildId={value6 ?? undefined} user={value5} animate={false} size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.XLARGE} style={styles.avatar} />)((require(1305) /* metro dependency 1305: native */).Avatar)];
var viewBinding2Props = {style: styles.avatarIconContainer};
Sizes = (require(1305) /* metro dependency 1305: native */).Icon.Sizes;
MEDIUM = Sizes.MEDIUM;
items3[1] = <View {...viewBinding2Props}><Icon size={MEDIUM} source={importDefault(8748) /* metro dependency 8748 */} /></View>;
items4 = [<View {...viewBindingProps2}>{items3}</View>];
var textProps = {'style': null, 'variant': 'heading-xl/bold', 'color': 'mobile-text-heading-primary',
'accessibilityRole': 'header', style: styles.title};
format = intl.format;
property2 = t['WrQD/Y'];
object6 = {};
object6.username = (importDefault(4617) /* metro dependency 4617: NicknameUtils */).getName(value6, channelId,
value5);
items4[1] = <Text {...textProps}>{Reflect.apply(format, intl, [property2, object6])}</Text>;
string = intl.string;
items4[2] = <Text style={styles.subTitle} variant="heading-md/medium" color="text-default" accessibilityRole="header">{Reflect.apply(string,
intl, [t.JKL1u1])}</Text>;
items5 = [<View {...viewBindingProps}>{items4}</View>];
items5[1] = <View style={styles.tableContainer}><IgnoredInformationTable /></View>;
var viewBinding2Props2 = {style: styles.otherOptions};
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
var tableRowGroupProps = {title: intl.string(t['1v01gh']), hasIcons: true};
TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
object7 = {};
Sizes = (require(1305) /* metro dependency 1305: native */).Icon.Sizes;
MEDIUM = Sizes.MEDIUM;
object7.icon = <Icon size={MEDIUM} source={importDefault(8747) /* metro dependency 8747 */} color={styles.destructiveIcon.color} />;
object7.label = intl.string(t.bwxY30);
object7.variant = 'danger';
string = intl.string;
object7.subLabel = <Text variant="text-xs/medium" color="text-feedback-critical">{Reflect.apply(string, intl,
[t.NTnf1T])}</Text>;
object7.accessibilityLabel = intl.string(t['fZ+p9C']);
object7.onPress = onPress_68757;
object7.arrow = true;
items5[2] = <View {...viewBinding2Props2}><TableRowGroup {...tableRowGroupProps}><TableRow {...object7} /></TableRowGroup></View>;
var viewBinding2Props3 = {style: styles.button};
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
string = intl.string;
items6 = [<Button size="lg" text={Reflect.apply(string, intl,
[t.ytCpKs])} onPress={onPress_68758} disabled={property} loading={property} />];
TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
object8 = {onPress: closure};
object9 = {textAlign: 'center'};
space = (importDefault(697) /* metro dependency 697: native */).space;
object9.marginTop = space.PX_12;
space = (importDefault(697) /* metro dependency 697: native */).space;
object9.paddingBottom = space.PX_4;
object8.style = object9;
object8.variant = 'text-sm/normal';
object8.color = 'text-default';
format = intl.format;
items6[1] = <TextWithIOSLinkWorkaround {...object8}>{Reflect.apply(format, intl, [t.iX9qtL,
{articleLink: articleLink}])}</TextWithIOSLinkWorkaround>;
items5[3] = <View {...viewBinding2Props3}>{items6}</View>;
r0 = <AnalyticsLocationProvider {...object}><BottomSheet {...object4}><BottomSheetScrollView>{items5}</BottomSheetScrollView></BottomSheet></AnalyticsLocationProvider>;
}
return r0;
}
function _fun68742(a0, a1) { // fn#68742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8978:1744, offset: 0x01c5b21f, size: 206 bytes, params: 3, frame: 22
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const length = env1_16.length;
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
const Icon2 = (require(1305) /* metro dependency 1305: native */).Icon;
const Sizes = Icon2.Sizes;
const MEDIUM = Sizes.MEDIUM;
return (
<TableRow
start={a1 === 0}
end={length - 1 === a1}
icon={<Icon size={MEDIUM} source={a0.icon} />}
label={a0.text()}
subLabel={a0.subtext()}
accessible
accessibilityLabel={a0.a11yLabel()}
key={a1}
/>
);
}
function IgnoreConfirmationActionSheet({userId, channelId, onIgnore, onSuccess}) { // fn#68752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8978:1978, offset: 0x01c5b52d, size: 1935 bytes, params: 2, frame: 50
var r0;
var AnalyticsLocationProvider;
var BottomSheet;
var object2;
var value8;
var space;
var PX_24;
var value9;
var object3;
var BottomSheetScrollView;
var items3;
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
var Sizes;
var MEDIUM;
var items4;
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
var format;
const t = (IndexNativeModule).t;
var property2;
var object11;
var string;
var items5;
var TableRowGroup;
var TableRow;
var object12;
var Button;
var items6;
var TextWithIOSLinkWorkaround;
var object13;
var object14;
const styles = useStyles();
const binding = env0_4;
var [property, env0_4] = onSuccess(binding.useState(false), 2);
const bottom = (UseSafeAreaInsetsNative)().bottom;
let defaultImport = UseAnalyticsLocations;
const IGNORE_CONFIRMATION_ACTION_SHEET = (AnalyticsLocation).IGNORE_CONFIRMATION_ACTION_SHEET;
let object = [IGNORE_CONFIRMATION_ACTION_SHEET];
const analyticsLocations = defaultImport(object).analyticsLocations;
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getUser(userId);
}, [userId]);
const value6 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], _fun68754,
[channelId]);
const closure = function() {
var defaultImport = importDefault(dependencyMap[21]);
var USER_REMEDIATION_ACTION = AnalyticEvents.USER_REMEDIATION_ACTION;
defaultImport.track(USER_REMEDIATION_ACTION, {action: UserRemediationAction.DISMISS_IGNORE,
location: 'user-profile-context-menu'});
};
binding.useEffect(_fun68756, [value5, userId]);
if (value5 == null) {
r0 = null;
} else {
AnalyticsLocationProvider = (require(6771) /* metro dependency 6771: useAnalyticsLocations */).AnalyticsLocationProvider;
object = {value: analyticsLocations};
BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
object2 = {onDismiss: closure, scrollable: true};
value8 = RESTRICTION_CONFIRMATION_ACTION_SHEET_HEIGHT + bottom;
space = (importDefault(697) /* metro dependency 697: native */).space;
PX_24 = space.PX_24;
value9 = value8 + PX_24;
space = (importDefault(697) /* metro dependency 697: native */).space;
PX_24 = space.PX_24;
object2.startHeight = value9 + PX_24;
object3 = {};
space = (importDefault(697) /* metro dependency 697: native */).space;
object3.paddingBottom = space.PX_16 + bottom;
copyDataProperties(object3, styles.container, undefined);
object2.bodyStyles = object3;
BottomSheetScrollView = (require(6277) /* metro dependency 6277 */).BottomSheetScrollView;
var viewBindingProps = {style: styles.header};
var viewBindingProps2 = {style: styles.avatarContainer};
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
items3 = [
<Avatar
guildId={value6 ?? undefined}
user={value5}
animate={false}
size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.XLARGE}
style={styles.avatar}
/>,
];
var viewBinding2Props = {style: styles.avatarIconContainer};
Sizes = (require(1305) /* metro dependency 1305: native */).Icon.Sizes;
MEDIUM = Sizes.MEDIUM;
items3[1] = (
<View {...viewBinding2Props}>
<Icon size={MEDIUM} source={importDefault(8748) /* metro dependency 8748 */} />
</View>
);
items4 = [
<View {...viewBindingProps2}>
{items3}
</View>,
];
var textProps = {'style': null, 'variant': 'heading-xl/bold', 'color': 'mobile-text-heading-primary',
'accessibilityRole': 'header', style: styles.title};
format = intl.format;
property2 = t['WrQD/Y'];
object11 = {};
object11.username = (importDefault(4617) /* metro dependency 4617: NicknameUtils */).getName(value6, channelId,
value5);
items4[1] = (
<Text {...textProps}>
{Reflect.apply(format, intl, [property2, object11])}
</Text>
);
string = intl.string;
items4[2] = (
<Text
style={styles.subTitle}
variant="heading-md/medium"
color="text-default"
accessibilityRole="header"
>
{Reflect.apply(string, intl, [t.JKL1u1])}
</Text>
);
items5 = [
<View {...viewBindingProps}>
{items4}
</View>,
];
items5[1] = (
<View style={styles.tableContainer}>
<IgnoredInformationTable />
</View>
);
var viewBinding2Props2 = {style: styles.otherOptions};
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
var tableRowGroupProps = {title: intl.string(t['1v01gh']), hasIcons: true};
TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
object12 = {};
Sizes = (require(1305) /* metro dependency 1305: native */).Icon.Sizes;
MEDIUM = Sizes.MEDIUM;
object12.icon = (
<Icon
size={MEDIUM}
source={importDefault(8747) /* metro dependency 8747 */}
color={styles.destructiveIcon.color}
/>
);
object12.label = intl.string(t.bwxY30);
object12.variant = 'danger';
string = intl.string;
object12.subLabel = (
<Text variant="text-xs/medium" color="text-feedback-critical">
{Reflect.apply(string, intl, [t.NTnf1T])}
</Text>
);
object12.accessibilityLabel = intl.string(t['fZ+p9C']);
object12.onPress = onPress_68757;
object12.arrow = true;
items5[2] = (
<View {...viewBinding2Props2}>
<TableRowGroup {...tableRowGroupProps}>
<TableRow {...object12} />
</TableRowGroup>
</View>
);
var viewBinding2Props3 = {style: styles.button};
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
string = intl.string;
items6 = [
<Button
size="lg"
text={Reflect.apply(string, intl, [t.ytCpKs])}
onPress={onPress_68758}
disabled={property}
loading={property}
/>,
];
TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
object13 = {onPress: closure};
object14 = {textAlign: 'center'};
space = (importDefault(697) /* metro dependency 697: native */).space;
object14.marginTop = space.PX_12;
space = (importDefault(697) /* metro dependency 697: native */).space;
object14.paddingBottom = space.PX_4;
object13.style = object14;
object13.variant = 'text-sm/normal';
object13.color = 'text-default';
format = intl.format;
items6[1] = (
<TextWithIOSLinkWorkaround {...object13}>
{Reflect.apply(format, intl, [t.iX9qtL, {articleLink: articleLink}])}
</TextWithIOSLinkWorkaround>
);
items5[3] = (
<View {...viewBinding2Props3}>
{items6}
</View>
);
r0 = (
<AnalyticsLocationProvider {...object}>
<BottomSheet {...object2}>
<BottomSheetScrollView>
{items5}
</BottomSheetScrollView>
</BottomSheet>
</AnalyticsLocationProvider>
);
}
return r0;
function _fun68754() { // fn#68754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8978:2302, offset: 0x01c5bcd7, size: 42 bytes, params: 1, frame: 11
const value = environment.__proto__;
return ChannelStore.getChannel(channelId)?.guild_id;
}
function _fun68756() { // fn#68756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8978:2514, offset: 0x01c5bd4b, size: 57 bytes, params: 1, frame: 12
var value2;
var moduleValue;
if (ReactNativeModule.View == null) {
value2 = environment.__proto__;
moduleValue = require(8061) /* metro dependency 8061: UserActionCreators */;
moduleValue.getUser(userId);
}
}
function IgnoreConfirmationActionSheetOnPress() { // fn#68757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8978:4118, owner: IgnoreConfirmationActionSheet.onPress, offset: 0x01c5bd84, size: 208 bytes, params: 1, frame: 21
const defaultImport = importDefault(dependencyMap[21]);
const track = defaultImport.track;
const USER_REMEDIATION_ACTION = AnalyticEvents.USER_REMEDIATION_ACTION;
const GOTO_BLOCK = UserRemediationAction.GOTO_BLOCK;
Reflect.apply(track, defaultImport, [USER_REMEDIATION_ACTION, {action: GOTO_BLOCK,
location: 'user-profile-context-menu'}]);
const defaultImport2 = importDefault(dependencyMap[29]);
const openLazy = defaultImport2.openLazy;
const value2 = require(dependencyMap[31])(dependencyMap[30], dependencyMap.paths);
object = {};
object.userId = userId;
object.channelId = channelId;
object.onSuccess = onSuccess;
const ImpressionNames = require(dependencyMap[32]).ImpressionNames;
const BLOCK_USER_CONFIRMATION = ImpressionNames.BLOCK_USER_CONFIRMATION;
object.impressionName = BLOCK_USER_CONFIRMATION;
Reflect.apply(openLazy, defaultImport2, [value2, BLOCK_CONFIRMATION_ACTION_SHEET_KEY, object, 'replaceTopSheet']);
}
function IgnoreConfirmationActionSheetOnPress_68758() { // fn#68758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8978:4514, owner: IgnoreConfirmationActionSheet.onPress, offset: 0x01c5be54, size: 157 bytes, params: 1, frame: 19
env0_4(true);
const defaultImport = RelationshipActionCreators;
const ignoreUser = defaultImport.ignoreUser;
const userIdBinding = userId;
const IGNORE_CONFIRMATION_ACTION_SHEET = (AnalyticsLocation).IGNORE_CONFIRMATION_ACTION_SHEET;
Reflect.apply(ignoreUser, defaultImport, [userIdBinding, IGNORE_CONFIRMATION_ACTION_SHEET,
channelId]).then(_fun68759);
if (onIgnore != null) {
onIgnore();
}
const track = AnalyticsUtils.track;
const IGNORE_USER_CONFIRMED = AnalyticEvents.IGNORE_USER_CONFIRMED;
Reflect.apply(track, AnalyticsUtils, [IGNORE_USER_CONFIRMED]);
function _fun68759() { // fn#68759, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8978:4598, offset: 0x01c5bef1, size: 60 bytes, params: 1, frame: 11
let value = environment.__proto__;
if (onSuccess != null) {
onSuccess();
}
value = environment.__proto__.__proto__;
(ActionSheetActionCreators).hideActionSheet();
}
}
function IgnoreConfirmationActionSheetArticleLink() { // fn#68760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8978:4980, owner: IgnoreConfirmationActionSheet.articleLink, offset: 0x01c5bf2d, size: 93 bytes, params: 1, frame: 14
const value = environment.__proto__;
(ActionSheetActionCreators).hideActionSheet();
const defaultImport2 = HelpdeskUtils;
const getArticleURL = defaultImport2.getArticleURL;
const STEALTH_REMEDIATION_FEATURE_GUIDE = HelpdeskArticles.STEALTH_REMEDIATION_FEATURE_GUIDE;
(Linking).openURL(Reflect.apply(getArticleURL, defaultImport2,
[STEALTH_REMEDIATION_FEATURE_GUIDE]));
}
function _fun68756() { // fn#68756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8978:2514, offset: 0x01c5bd4b, size: 57 bytes, params: 1, frame: 12
var value2;
var moduleValue;
if (env0_5 == null) {
value2 = environment.__proto__;
moduleValue = require(8061) /* metro dependency 8061: UserActionCreators */;
moduleValue.getUser(userId);
}
}
function IgnoreConfirmationActionSheetOnPress() { // fn#68757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8978:4118, owner: IgnoreConfirmationActionSheet.onPress, offset: 0x01c5bd84, size: 208 bytes, params: 1, frame: 21
var object2;
const defaultImport = importDefault(dependencyMap[21]);
const track = defaultImport.track;
const USER_REMEDIATION_ACTION = AnalyticEvents.USER_REMEDIATION_ACTION;
const GOTO_BLOCK = UserRemediationAction.GOTO_BLOCK;
Reflect.apply(track, defaultImport, [USER_REMEDIATION_ACTION, {action: GOTO_BLOCK,
location: 'user-profile-context-menu'}]);
const defaultImport2 = importDefault(dependencyMap[29]);
const openLazy = defaultImport2.openLazy;
const value2 = require(dependencyMap[31])(dependencyMap[30], dependencyMap.paths);
object2 = {};
object2.userId = userId;
object2.channelId = channelId;
object2.onSuccess = onSuccess;
const ImpressionNames = require(dependencyMap[32]).ImpressionNames;
const BLOCK_USER_CONFIRMATION = ImpressionNames.BLOCK_USER_CONFIRMATION;
object2.impressionName = BLOCK_USER_CONFIRMATION;
Reflect.apply(openLazy, defaultImport2, [value2, BLOCK_CONFIRMATION_ACTION_SHEET_KEY, object2, 'replaceTopSheet']);
}
function IgnoreConfirmationActionSheetOnPress_68758() { // fn#68758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8978:4514, owner: IgnoreConfirmationActionSheet.onPress, offset: 0x01c5be54, size: 157 bytes, params: 1, frame: 19
env0_4(true);
const defaultImport = importDefault(8783) /* metro dependency 8783: RelationshipActionCreators */;
const ignoreUser = defaultImport.ignoreUser;
const userIdBinding = userId;
const IGNORE_CONFIRMATION_ACTION_SHEET = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).IGNORE_CONFIRMATION_ACTION_SHEET;
Reflect.apply(ignoreUser, defaultImport, [userIdBinding, IGNORE_CONFIRMATION_ACTION_SHEET,
channelId]).then(_fun68759);
if (onIgnore != null) {
onIgnore();
}
const value = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = value.track;
const IGNORE_USER_CONFIRMED = AnalyticEvents.IGNORE_USER_CONFIRMED;
Reflect.apply(track, value, [IGNORE_USER_CONFIRMED]);
}
function IgnoreConfirmationActionSheetArticleLink() { // fn#68760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8978:4980, owner: IgnoreConfirmationActionSheet.articleLink, offset: 0x01c5bf2d, size: 93 bytes, params: 1, frame: 14
const value = environment.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
const defaultImport2 = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
const getArticleURL = defaultImport2.getArticleURL;
const STEALTH_REMEDIATION_FEATURE_GUIDE = HelpdeskArticles.STEALTH_REMEDIATION_FEATURE_GUIDE;
(importDefault(3853) /* metro dependency 3853: Linking */).openURL(Reflect.apply(getArticleURL, defaultImport2,
[STEALTH_REMEDIATION_FEATURE_GUIDE]));
}
function _fun68759() { // fn#68759, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8978:4598, offset: 0x01c5bef1, size: 60 bytes, params: 1, frame: 11
let value = environment.__proto__;
if (onSuccess != null) {
onSuccess();
}
value = environment.__proto__.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
}
global.__d(_fun68740, 8793, [57, 31, 27, 1379, 1878, 8784, 8781, 661, 33, 4501, 697, 8745, 1244, 4070, 6231, 6238,
1305, 1585, 6771, 6789, 566, 683, 8061, 6275, 6277, 8748, 4573, 4617, 8747, 4080, 8794, 1962, 480, 4578, 8783,
6766, 1948, 3853,
2]) /* metro module 8793, dependencies: [57, 31, 27, 1379, 1878, 8784, 8781, 661, 33, 4501, 697, 8745, 1244, 4070, 6231, 6238, 1305, 1585, 6771, 6789, 566, 683, 8061, 6275, 6277, 8748, 4573, 4617, 8747, 4080, 8794, 1962, 480, 4578, 8783, 6766, 1948, 3853, 2] */;
@@ -1,10 +1,13 @@
/* Metro module 8781; source: modules/relationships/native/RestrictionConfirmationConstants.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun68661(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68661, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8966:6, offset: 0x01c58515, size: 108 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/relationships/native/RestrictionConfirmationConstants.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/relationships/native/RestrictionConfirmationConstants.tsx');
exports.IGNORE_CONFIRMATION_ACTION_SHEET_KEY = 'IgnoreConfirmationActionSheet';
exports.BLOCK_CONFIRMATION_ACTION_SHEET_KEY = 'BlockConfirmationActionSheet';
exports.RESTRICTION_CONFIRMATION_ACTION_SHEET_HEIGHT = 600;
}
global.__d(_fun68661, 8781, [2]) /* metro module 8781, dependencies: [2] */;