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

No files matched your search

File diff suppressed because it is too large. Load diff
+347 -332
View File
@@ -1,14 +1,15 @@
/* Metro module 9589; source: modules/icymi/ICYMIAnalytics.tsx; dependencies: [9569, 661, 8370, 7230, 683, 2] */
import AnalyticsUtils from '../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import ICYMIStore from './ICYMIStore.tsx'; /* Metro dependency 9569 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as ICYMITypesModule from './ICYMITypes.tsx'; /* Metro dependency 7230 */
function _fun75101(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75101, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9775:6, offset: 0x01da2b0e, size: 429 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const icymiStore = importDefault(9569) /* metro dependency 9569: ICYMIStore */;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_4 = constantsModule.ChannelTypes;
const env0_5 = constantsModule.AnalyticEvents;
object2 = {trackItemInteraction: trackItemInteraction, trackItemShortImpression: trackItemShortImpression,
object = {trackItemInteraction: trackItemInteraction, trackItemShortImpression: trackItemShortImpression,
trackItemLongImpression: trackItemLongImpression, trackFeedLoaded: trackFeedLoaded,
trackFeedShown: function(a0) {
var defaultImport = importDefault(dependencyMap[4]);
@@ -31,9 +32,10 @@ function _fun75101(global, require, importDefault, importAll, module, exports, d
var defaultImport = importDefault(dependencyMap[4]);
var HOME_FEEDBACK_SUBMITTED = AnalyticEvents.HOME_FEEDBACK_SUBMITTED;
var object = {};
object.load_id = ICYMIStore.getLoadId();
var icymiStoreBinding = ICYMIStore;
object.load_id = icymiStoreBinding.getLoadId();
object.home_session_id = 'gravity';
copyDataProperties(object, a0, ICYMIStore);
copyDataProperties(object, a0, icymiStoreBinding);
defaultImport.track(HOME_FEEDBACK_SUBMITTED, object);
}, trackFeedOnboardingScreenSkipped: function(a0) {
var defaultImport = importDefault(dependencyMap[4]);
@@ -51,361 +53,374 @@ function _fun75101(global, require, importDefault, importAll, module, exports, d
var defaultImport = importDefault(dependencyMap[4]);
var ICYMI_FEED_EMPTY_LOADING_SEEN = AnalyticEvents.ICYMI_FEED_EMPTY_LOADING_SEEN;
var object = {};
object.load_id = ICYMIStore.getLoadId();
object.version = ICYMIStore.getVersion();
var icymiStoreBinding = ICYMIStore;
object.load_id = icymiStoreBinding.getLoadId();
object.version = icymiStoreBinding.getVersion();
defaultImport.track(ICYMI_FEED_EMPTY_LOADING_SEEN, object);
}, trackFeedEmptyLoadingComplete: function(a0) {
var defaultImport = importDefault(dependencyMap[4]);
var ICYMI_FEED_EMPTY_LOADING_COMPLETE = AnalyticEvents.ICYMI_FEED_EMPTY_LOADING_COMPLETE;
var object = {};
object.load_id = ICYMIStore.getLoadId();
var icymiStoreBinding = ICYMIStore;
object.load_id = icymiStoreBinding.getLoadId();
object.dwell_time_ms = a0.dwellTimeMs;
object.version = ICYMIStore.getVersion();
object.version = icymiStoreBinding.getVersion();
defaultImport.track(ICYMI_FEED_EMPTY_LOADING_COMPLETE, object);
}, trackFeedEmptyLoadingAbandoned: function(a0) {
var defaultImport = importDefault(dependencyMap[4]);
var ICYMI_FEED_EMPTY_LOADING_ABANDONED = AnalyticEvents.ICYMI_FEED_EMPTY_LOADING_ABANDONED;
var object = {};
object.load_id = ICYMIStore.getLoadId();
var icymiStoreBinding = ICYMIStore;
object.load_id = icymiStoreBinding.getLoadId();
object.dwell_time_ms = a0.dwellTimeMs;
object.version = ICYMIStore.getVersion();
object.version = icymiStoreBinding.getVersion();
defaultImport.track(ICYMI_FEED_EMPTY_LOADING_ABANDONED, object);
}, trackFeedSessionStarted: trackFeedSessionStarted, trackFeedSessionCompleted: trackFeedSessionCompleted,
trackFeedItemDwell1s: trackFeedItemDwell1s, trackFeedItemDwelled: trackFeedItemDwelled,
trackFeedItemActioned: trackFeedItemActioned, trackFeedFilterActioned: trackFeedFilterActioned,
trackFeedPageActioned: trackFeedPageActioned};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/ICYMIAnalytics.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/ICYMIAnalytics.tsx');
exports.DEFAULT_UX_VARIATION = 'default';
exports.ICYMIAnalytics = object2;
}
function listItemToType(a0) { // fn#75102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9775:167, offset: 0x01da2cbb, size: 239 bytes, params: 2, frame: 16
const kind = a0.data.kind;
if (kind === 'end') {
return 'end';
exports.ICYMIAnalytics = object;
function listItemToType(a0) { // fn#75102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9775:167, offset: 0x01da2cbb, size: 239 bytes, params: 2, frame: 16
const kind = a0.data.kind;
if (kind === 'end') {
return 'end';
}
if (kind === 'loading') {
return 'loading';
}
const value = 'message';
if (value === kind) {
return a0.channelType !== ChannelTypes.GUILD_ANNOUNCEMENT ? value : 'announcement';
}
if (kind === 'guildEvent') {
return 'guild_event';
}
if (kind === 'contentInventory') {
return a0.data.content.content_type !== (require(8370) /* metro dependency 8370: ContentInventoryEntryType */).ContentInventoryEntryType.CUSTOM_STATUS ? 'hotwheels_gaming_activity' : 'hotwheels_custom_status';
}
if (kind === 'recommendedGuilds') {
return 'recommended_guilds';
}
if (kind === 'forumThread') {
return 'forum_thread';
}
if (kind === 'icymiHeader') {
return 'icymi_header';
}
return 'unknown';
}
if (kind === 'loading') {
return 'loading';
function dehydratedItemToType(a0) { // fn#75103, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9775:701, offset: 0x01da2daa, size: 256 bytes, params: 2, frame: 15
const type = a0.type;
const ICYMIItemTypes = (ICYMITypesModule).ICYMIItemTypes;
const MESSAGE = ICYMIItemTypes.MESSAGE;
if (MESSAGE === type) {
return a0.data.channel_type !== ChannelTypes.GUILD_ANNOUNCEMENT ? 'message' : 'announcement';
}
const ACTIVITY = ICYMIItemTypes.ACTIVITY;
if (ACTIVITY === type) {
return 'hotwheels_gaming_activity';
}
const CUSTOM_STATUS = ICYMIItemTypes.CUSTOM_STATUS;
if (CUSTOM_STATUS === type) {
return 'hotwheels_custom_status';
}
const GUILD_EVENT = ICYMIItemTypes.GUILD_EVENT;
if (GUILD_EVENT === type) {
return 'guild_event';
}
const RECOMMENDED_GUILDS = ICYMIItemTypes.RECOMMENDED_GUILDS;
if (RECOMMENDED_GUILDS === type) {
return 'recommended_guilds';
}
}
const value = 'message';
if (value === kind) {
return a0.channelType !== ChannelTypes.GUILD_ANNOUNCEMENT ? value : 'announcement';
function trackItemInteraction(a0) { // fn#75104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9775:1115, offset: 0x01da2eaa, size: 189 bytes, params: 2, frame: 18
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const FEED_ITEM_INTERACTED = AnalyticEvents.FEED_ITEM_INTERACTED;
const object = {};
const icymiStoreBinding = ICYMIStore;
object.load_id = icymiStoreBinding.getLoadId();
object.feed_item_type = a0.type;
object.feed_item_id = a0.id;
object.home_session_id = 'gravity';
object.action_type = a0.actionType;
object.feed_item_index = icymiStoreBinding.getIndexInHydratedFeed(a0.id);
object.icymi_session_id = a0.icymiSessionId;
object.impression_id = a0.impressionId;
object.ux_variation = a0.uxVariation;
object.session_interaction_index = a0.sessionInteractionIndex;
Reflect.apply(track, defaultImport, [FEED_ITEM_INTERACTED, object]);
}
if (kind === 'guildEvent') {
return 'guild_event';
function trackItemShortImpression(a0, a1, a2) { // fn#75105, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9775:1482, offset: 0x01da2f67, size: 234 bytes, params: 4, frame: 19
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const FEED_ITEM_SEEN_BATCH = AnalyticEvents.FEED_ITEM_SEEN_BATCH;
const object = {};
object.load_id = ICYMIStore.getLoadId();
object.home_session_id = 'gravity';
object.feed_item_ids = a0.map(function(a0) {
return a0.item.id;
});
object.feed_item_types = a0.map(function(a0) {
return listItemToType(a0.item);
});
object.num_items = a0.length;
object.all_feed_item_ids = a1.map(function(a0) {
return a0.id;
});
object.all_feed_item_types = a1.map(function(a0) {
return a0.type;
});
object.num_all_items = a1.length;
object.all_feed_item_indices = a1.map(function(a0, a1) {
return a1;
});
object.feed_version = a2;
object.version = 3;
Reflect.apply(track, defaultImport, [FEED_ITEM_SEEN_BATCH, object]);
}
if (kind === 'contentInventory') {
return a0.data.content.content_type !== (require(8370) /* metro dependency 8370: ContentInventoryEntryType */).ContentInventoryEntryType.CUSTOM_STATUS ? 'hotwheels_gaming_activity' : 'hotwheels_custom_status';
function trackItemLongImpression(a0, a1, a2) { // fn#75111, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9775:1871, offset: 0x01da3069, size: 234 bytes, params: 4, frame: 19
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const FEED_ITEM_SEEN_LONG = AnalyticEvents.FEED_ITEM_SEEN_LONG;
const object = {};
object.load_id = ICYMIStore.getLoadId();
object.home_session_id = 'gravity';
object.feed_item_ids = a0.map(function(a0) {
return a0.item.id;
});
object.feed_item_types = a0.map(function(a0) {
return listItemToType(a0.item);
});
object.num_items = a0.length;
object.all_feed_item_ids = a1.map(function(a0) {
return a0.id;
});
object.all_feed_item_types = a1.map(function(a0) {
return a0.type;
});
object.num_all_items = a1.length;
object.all_feed_item_indices = a1.map(function(a0, a1) {
return a1;
});
object.feed_version = a2;
object.version = 3;
Reflect.apply(track, defaultImport, [FEED_ITEM_SEEN_LONG, object]);
}
if (kind === 'recommendedGuilds') {
return 'recommended_guilds';
function trackFeedLoaded({unreadFeedItems, readFeedItems, newTrackingProps, homeSessionId, hasNewContent}) { // fn#75117, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9775:2258, offset: 0x01da3153, size: 222 bytes, params: 2, frame: 21
unreadFeedItems.forEach(_fun75118);
readFeedItems.forEach(_fun75119);
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const FEED_LOADED = AnalyticEvents.FEED_LOADED;
const object = {};
copyDataProperties(object, newTrackingProps, undefined);
object['home_session_id'] = homeSessionId;
object['tab_badged'] = hasNewContent;
object['unread_feed_item_ids'] = [];
object['read_feed_item_ids'] = [];
object['unread_feed_item_types'] = [];
object['read_feed_item_types'] = [];
Reflect.apply(track, defaultImport, [FEED_LOADED, object]);
function _fun75118(a0) { // fn#75118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9775:2328, offset: 0x01da3231, size: 55 bytes, params: 2, frame: 13
let binding = env0_0;
binding.push(a0.id);
binding = env0_2;
binding.push(dehydratedItemToType(a0));
}
function _fun75119(a0) { // fn#75119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9775:2405, offset: 0x01da3268, size: 55 bytes, params: 2, frame: 13
let binding = env0_1;
binding.push(a0.id);
binding = env0_3;
binding.push(dehydratedItemToType(a0));
}
}
if (kind === 'forumThread') {
return 'forum_thread';
function trackFeedSessionStarted({sessionStartTimeMs, icymiSessionId, previousIcymiSessionCount, uxVariation}) { // fn#75130, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9775:3923, offset: 0x01da35be, size: 131 bytes, params: 2, frame: 17
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const FEED_SESSION_STARTED = AnalyticEvents.FEED_SESSION_STARTED;
const object = {};
const icymiStoreBinding = ICYMIStore;
object.load_id = icymiStoreBinding.getLoadId();
object.version = icymiStoreBinding.getVersion();
object.session_start_time_ms = sessionStartTimeMs;
object.icymi_session_id = icymiSessionId;
object.previous_icymi_session_count = previousIcymiSessionCount;
object.ux_variation = uxVariation;
Reflect.apply(track, defaultImport, [FEED_SESSION_STARTED, object]);
}
if (kind === 'icymiHeader') {
return 'icymi_header';
function trackFeedSessionCompleted({sessionDurationMs, sessionStartTimeMs, sessionEndTimeMs, impressionCount, uniqueImpressionCount, icymiSessionId, feedReloadCount, feedDwelledItemsChangedCount, feedFetchCount, impressionItemTypes, latestDwellStartTimeMs, previousIcyMiSessionCount, uxVariation, interactionCount, dwelledCount, uniqueDwelledCount}) { // fn#75131, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9775:4197, offset: 0x01da3641, size: 285 bytes, params: 2, frame: 17
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const FEED_SESSION_COMPLETED = AnalyticEvents.FEED_SESSION_COMPLETED;
const object = {};
const icymiStoreBinding = ICYMIStore;
object.load_id = icymiStoreBinding.getLoadId();
object.version = icymiStoreBinding.getVersion();
object.session_duration_ms = sessionDurationMs;
object.session_start_time_ms = sessionStartTimeMs;
object.session_end_time_ms = sessionEndTimeMs;
object.impression_count = impressionCount;
object.unique_impression_count = uniqueImpressionCount;
object.icymi_session_id = icymiSessionId;
object.feed_reload_count = feedReloadCount;
object.feed_visible_items_changed_count = feedDwelledItemsChangedCount;
object.feed_fetch_count = feedFetchCount;
object.impression_item_types = impressionItemTypes;
object.latest_dwell_start_time_ms = latestDwellStartTimeMs;
object.previous_icymi_session_count = previousIcyMiSessionCount;
object.ux_variation = uxVariation;
object.interaction_count = interactionCount;
object.dwelled_count = dwelledCount;
object.unique_dwelled_count = uniqueDwelledCount;
Reflect.apply(track, defaultImport, [FEED_SESSION_COMPLETED, object]);
}
return 'unknown';
}
function dehydratedItemToType(a0) { // fn#75103, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9775:701, offset: 0x01da2daa, size: 256 bytes, params: 2, frame: 15
const type = a0.type;
const ICYMIItemTypes = (require(7230) /* metro dependency 7230: ICYMITypes */).ICYMIItemTypes;
const MESSAGE = ICYMIItemTypes.MESSAGE;
if (MESSAGE === type) {
return a0.data.channel_type !== ChannelTypes.GUILD_ANNOUNCEMENT ? 'message' : 'announcement';
function trackFeedItemDwell1s({impressionId, itemId, itemType, dwellStartTimeMs, icymiSessionId, triggerType, itemOccurenceCountInSession, itemFeedIndex, isInitiallyVisible, itemScore, itemChannelType, itemCardHeight, isDwelling, interactionActionTypes, interactionCount, uxVariation, sessionImpressionIndex}) { // fn#75132, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9775:4975, offset: 0x01da375e, size: 288 bytes, params: 2, frame: 18
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const FEED_ITEM_1S_DWELLED = AnalyticEvents.FEED_ITEM_1S_DWELLED;
const object = {};
const icymiStoreBinding = ICYMIStore;
object.load_id = icymiStoreBinding.getLoadId();
object.version = icymiStoreBinding.getVersion();
object.impression_id = impressionId;
object.item_id = itemId;
object.item_type = itemType;
object.dwell_start_time_ms = dwellStartTimeMs;
object.icymi_session_id = icymiSessionId;
object.trigger_type = triggerType;
object.item_occurence_count_in_session = itemOccurenceCountInSession;
object.item_feed_index = itemFeedIndex;
object.is_initially_visible = isInitiallyVisible;
object.item_score = itemScore;
object.item_channel_type = itemChannelType ?? null;
object.item_card_height = itemCardHeight;
object.is_dwelling = isDwelling;
object.interaction_action_types = interactionActionTypes;
object.interaction_count = interactionCount;
object.ux_variation = uxVariation;
object.session_impression_index = sessionImpressionIndex;
Reflect.apply(track, defaultImport, [FEED_ITEM_1S_DWELLED, object]);
}
const ACTIVITY = ICYMIItemTypes.ACTIVITY;
if (ACTIVITY === type) {
return 'hotwheels_gaming_activity';
function trackFeedItemDwelled({impressionId, dwellTimeMs, itemId, itemType, dwellStartTimeMs, dwellEndTimeMs, icymiSessionId, triggerType, itemOccurenceCountInSession, itemFeedIndex, isInitiallyVisible, itemScore, itemChannelType, itemCardHeight, uxVariation, interactionActionTypes, interactionCount, sessionImpressionIndex}) { // fn#75133, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9775:5693, offset: 0x01da387e, size: 299 bytes, params: 2, frame: 18
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const FEED_ITEM_DWELLED = AnalyticEvents.FEED_ITEM_DWELLED;
const object = {};
const icymiStoreBinding = ICYMIStore;
object.load_id = icymiStoreBinding.getLoadId();
object.version = icymiStoreBinding.getVersion();
object.impression_id = impressionId;
object.dwell_time_ms = dwellTimeMs;
object.item_id = itemId;
object.item_type = itemType;
object.dwell_start_time_ms = dwellStartTimeMs;
object.dwell_end_time_ms = dwellEndTimeMs;
object.icymi_session_id = icymiSessionId;
object.trigger_type = triggerType;
object.item_occurence_count_in_session = itemOccurenceCountInSession;
object.item_feed_index = itemFeedIndex;
object.is_initially_visible = isInitiallyVisible;
object.item_score = itemScore;
object.item_channel_type = itemChannelType ?? null;
object.item_card_height = itemCardHeight;
object.ux_variation = uxVariation;
object.interaction_action_types = interactionActionTypes;
object.interaction_count = interactionCount;
object.session_impression_index = sessionImpressionIndex;
Reflect.apply(track, defaultImport, [FEED_ITEM_DWELLED, object]);
}
const CUSTOM_STATUS = ICYMIItemTypes.CUSTOM_STATUS;
if (CUSTOM_STATUS === type) {
return 'hotwheels_custom_status';
function trackFeedItemActioned(a0) { // fn#75134, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9775:6446, offset: 0x01da39a9, size: 233 bytes, params: 2, frame: 18
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const FEED_ITEM_ACTIONED = AnalyticEvents.FEED_ITEM_ACTIONED;
const object = {};
const icymiStoreBinding = ICYMIStore;
object.load_id = icymiStoreBinding.getLoadId();
object.icymi_session_id = a0.icymiSessionId;
object.ux_variation = a0.uxVariation;
object.version = icymiStoreBinding.getVersion();
object.session_action_index = a0.sessionActionIndex;
object.item_id = a0.itemId;
object.item_type = a0.itemType;
const impressionId = a0.impressionId;
const value = null;
object.impression_id = value != impressionId ? impressionId : value;
object.action_gesture_type = a0.actionParameters.actionGestureType;
object.action_target_element = a0.actionParameters.actionTargetElement;
object.action_intent_type = a0.actionParameters.actionIntentType;
object.action_destination_type = a0.actionParameters.actionDestinationType;
Reflect.apply(track, defaultImport, [FEED_ITEM_ACTIONED, object]);
}
const GUILD_EVENT = ICYMIItemTypes.GUILD_EVENT;
if (GUILD_EVENT === type) {
return 'guild_event';
function trackFeedFilterActioned(a0) { // fn#75135, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9775:6986, offset: 0x01da3a92, size: 427 bytes, params: 2, frame: 19
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const FEED_FILTER_ACTIONED = AnalyticEvents.FEED_FILTER_ACTIONED;
const object = {};
const icymiStoreBinding = ICYMIStore;
object.load_id = icymiStoreBinding.getLoadId();
object.icymi_session_id = a0.icymiSessionId;
object.ux_variation = a0.uxVariation;
object.version = icymiStoreBinding.getVersion();
object.session_action_index = a0.sessionActionIndex;
object.filter_setting_context = a0.filterParameters.filterSettingContext;
object.filter_target_type = a0.filterParameters.filterTargetType;
const targetGuildId = a0.filterParameters.targetGuildId;
const value = null;
object.target_guild_id = value != targetGuildId ? targetGuildId : value;
const targetChannelId = a0.filterParameters.targetChannelId;
object.target_channel_id = value != targetChannelId ? targetChannelId : value;
const previousTuneSetting = a0.filterParameters.previousTuneSetting;
object.previous_tune_setting = value != previousTuneSetting ? previousTuneSetting : value;
const newTuneSetting = a0.filterParameters.newTuneSetting;
object.new_tune_setting = value != newTuneSetting ? newTuneSetting : value;
const previousOutSetting = a0.filterParameters.previousOutSetting;
object.previous_out_setting = value != previousOutSetting ? previousOutSetting : value;
const newOutSetting = a0.filterParameters.newOutSetting;
object.new_out_setting = value != newOutSetting ? newOutSetting : value;
const itemId = a0.itemId;
object.item_id = value != itemId ? itemId : value;
const itemType = a0.itemType;
object.item_type = value != itemType ? itemType : value;
const impressionId = a0.impressionId;
object.impression_id = value != impressionId ? impressionId : value;
Reflect.apply(track, defaultImport, [FEED_FILTER_ACTIONED, object]);
}
const RECOMMENDED_GUILDS = ICYMIItemTypes.RECOMMENDED_GUILDS;
if (RECOMMENDED_GUILDS === type) {
return 'recommended_guilds';
function trackFeedPageActioned(a0) { // fn#75136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9775:7884, offset: 0x01da3c3d, size: 188 bytes, params: 2, frame: 17
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const FEED_PAGE_ACTIONED = AnalyticEvents.FEED_PAGE_ACTIONED;
const object = {};
const icymiStoreBinding = ICYMIStore;
object.load_id = icymiStoreBinding.getLoadId();
object.icymi_session_id = a0.icymiSessionId;
object.ux_variation = a0.uxVariation;
object.version = icymiStoreBinding.getVersion();
object.session_action_index = a0.sessionActionIndex;
object.action_gesture_type = a0.actionParameters.actionGestureType;
object.action_target_element = a0.actionParameters.actionTargetElement;
object.action_intent_type = a0.actionParameters.actionIntentType;
object.action_destination_type = a0.actionParameters.actionDestinationType;
Reflect.apply(track, defaultImport, [FEED_PAGE_ACTIONED, object]);
}
}
function trackItemInteraction(a0) { // fn#75104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9775:1115, offset: 0x01da2eaa, size: 189 bytes, params: 2, frame: 18
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const FEED_ITEM_INTERACTED = AnalyticEvents.FEED_ITEM_INTERACTED;
const object2 = {};
object2.load_id = ICYMIStore.getLoadId();
object2.feed_item_type = a0.type;
object2.feed_item_id = a0.id;
object2.home_session_id = 'gravity';
object2.action_type = a0.actionType;
object2.feed_item_index = ICYMIStore.getIndexInHydratedFeed(a0.id);
object2.icymi_session_id = a0.icymiSessionId;
object2.impression_id = a0.impressionId;
object2.ux_variation = a0.uxVariation;
object2.session_interaction_index = a0.sessionInteractionIndex;
Reflect.apply(track, defaultImport, [FEED_ITEM_INTERACTED, object2]);
}
function trackItemShortImpression(a0, a1, a2) { // fn#75105, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9775:1482, offset: 0x01da2f67, size: 234 bytes, params: 4, frame: 19
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const FEED_ITEM_SEEN_BATCH = AnalyticEvents.FEED_ITEM_SEEN_BATCH;
const object2 = {};
object2.load_id = ICYMIStore.getLoadId();
object2.home_session_id = 'gravity';
object2.feed_item_ids = a0.map(function(a0) {
return a0.item.id;
});
object2.feed_item_types = a0.map(function(a0) {
return listItemToType(a0.item);
});
object2.num_items = a0.length;
object2.all_feed_item_ids = a1.map(function(a0) {
return a0.id;
});
object2.all_feed_item_types = a1.map(function(a0) {
return a0.type;
});
object2.num_all_items = a1.length;
object2.all_feed_item_indices = a1.map(function(a0, a1) {
return a1;
});
object2.feed_version = a2;
object2.version = 3;
Reflect.apply(track, defaultImport, [FEED_ITEM_SEEN_BATCH, object2]);
}
function trackItemLongImpression(a0, a1, a2) { // fn#75111, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9775:1871, offset: 0x01da3069, size: 234 bytes, params: 4, frame: 19
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const FEED_ITEM_SEEN_LONG = AnalyticEvents.FEED_ITEM_SEEN_LONG;
const object2 = {};
object2.load_id = ICYMIStore.getLoadId();
object2.home_session_id = 'gravity';
object2.feed_item_ids = a0.map(function(a0) {
return a0.item.id;
});
object2.feed_item_types = a0.map(function(a0) {
return listItemToType(a0.item);
});
object2.num_items = a0.length;
object2.all_feed_item_ids = a1.map(function(a0) {
return a0.id;
});
object2.all_feed_item_types = a1.map(function(a0) {
return a0.type;
});
object2.num_all_items = a1.length;
object2.all_feed_item_indices = a1.map(function(a0, a1) {
return a1;
});
object2.feed_version = a2;
object2.version = 3;
Reflect.apply(track, defaultImport, [FEED_ITEM_SEEN_LONG, object2]);
}
function trackFeedLoaded({unreadFeedItems, readFeedItems, newTrackingProps, homeSessionId, hasNewContent}) { // fn#75117, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9775:2258, offset: 0x01da3153, size: 222 bytes, params: 2, frame: 21
unreadFeedItems.forEach(_fun75118);
readFeedItems.forEach(_fun75119);
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const FEED_LOADED = AnalyticEvents.FEED_LOADED;
const object2 = {};
copyDataProperties(object2, newTrackingProps, undefined);
object2['home_session_id'] = homeSessionId;
object2['tab_badged'] = hasNewContent;
object2['unread_feed_item_ids'] = [];
object2['read_feed_item_ids'] = [];
object2['unread_feed_item_types'] = [];
object2['read_feed_item_types'] = [];
Reflect.apply(track, defaultImport, [FEED_LOADED, object2]);
}
function trackFeedSessionStarted({sessionStartTimeMs, icymiSessionId, previousIcymiSessionCount, uxVariation}) { // fn#75130, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9775:3923, offset: 0x01da35be, size: 131 bytes, params: 2, frame: 17
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const FEED_SESSION_STARTED = AnalyticEvents.FEED_SESSION_STARTED;
const object2 = {};
object2.load_id = ICYMIStore.getLoadId();
object2.version = ICYMIStore.getVersion();
object2.session_start_time_ms = sessionStartTimeMs;
object2.icymi_session_id = icymiSessionId;
object2.previous_icymi_session_count = previousIcymiSessionCount;
object2.ux_variation = uxVariation;
Reflect.apply(track, defaultImport, [FEED_SESSION_STARTED, object2]);
}
function trackFeedSessionCompleted({sessionDurationMs, sessionStartTimeMs, sessionEndTimeMs, impressionCount, uniqueImpressionCount, icymiSessionId, feedReloadCount, feedDwelledItemsChangedCount, feedFetchCount, impressionItemTypes, latestDwellStartTimeMs, previousIcyMiSessionCount, uxVariation, interactionCount, dwelledCount, uniqueDwelledCount}) { // fn#75131, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9775:4197, offset: 0x01da3641, size: 285 bytes, params: 2, frame: 17
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const FEED_SESSION_COMPLETED = AnalyticEvents.FEED_SESSION_COMPLETED;
const object2 = {};
object2.load_id = ICYMIStore.getLoadId();
object2.version = ICYMIStore.getVersion();
object2.session_duration_ms = sessionDurationMs;
object2.session_start_time_ms = sessionStartTimeMs;
object2.session_end_time_ms = sessionEndTimeMs;
object2.impression_count = impressionCount;
object2.unique_impression_count = uniqueImpressionCount;
object2.icymi_session_id = icymiSessionId;
object2.feed_reload_count = feedReloadCount;
object2.feed_visible_items_changed_count = feedDwelledItemsChangedCount;
object2.feed_fetch_count = feedFetchCount;
object2.impression_item_types = impressionItemTypes;
object2.latest_dwell_start_time_ms = latestDwellStartTimeMs;
object2.previous_icymi_session_count = previousIcyMiSessionCount;
object2.ux_variation = uxVariation;
object2.interaction_count = interactionCount;
object2.dwelled_count = dwelledCount;
object2.unique_dwelled_count = uniqueDwelledCount;
Reflect.apply(track, defaultImport, [FEED_SESSION_COMPLETED, object2]);
}
function trackFeedItemDwell1s({impressionId, itemId, itemType, dwellStartTimeMs, icymiSessionId, triggerType, itemOccurenceCountInSession, itemFeedIndex, isInitiallyVisible, itemScore, itemChannelType, itemCardHeight, isDwelling, interactionActionTypes, interactionCount, uxVariation, sessionImpressionIndex}) { // fn#75132, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9775:4975, offset: 0x01da375e, size: 288 bytes, params: 2, frame: 18
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const FEED_ITEM_1S_DWELLED = AnalyticEvents.FEED_ITEM_1S_DWELLED;
const object2 = {};
object2.load_id = ICYMIStore.getLoadId();
object2.version = ICYMIStore.getVersion();
object2.impression_id = impressionId;
object2.item_id = itemId;
object2.item_type = itemType;
object2.dwell_start_time_ms = dwellStartTimeMs;
object2.icymi_session_id = icymiSessionId;
object2.trigger_type = triggerType;
object2.item_occurence_count_in_session = itemOccurenceCountInSession;
object2.item_feed_index = itemFeedIndex;
object2.is_initially_visible = isInitiallyVisible;
object2.item_score = itemScore;
object2.item_channel_type = itemChannelType ?? null;
object2.item_card_height = itemCardHeight;
object2.is_dwelling = isDwelling;
object2.interaction_action_types = interactionActionTypes;
object2.interaction_count = interactionCount;
object2.ux_variation = uxVariation;
object2.session_impression_index = sessionImpressionIndex;
Reflect.apply(track, defaultImport, [FEED_ITEM_1S_DWELLED, object2]);
}
function trackFeedItemDwelled({impressionId, dwellTimeMs, itemId, itemType, dwellStartTimeMs, dwellEndTimeMs, icymiSessionId, triggerType, itemOccurenceCountInSession, itemFeedIndex, isInitiallyVisible, itemScore, itemChannelType, itemCardHeight, uxVariation, interactionActionTypes, interactionCount, sessionImpressionIndex}) { // fn#75133, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9775:5693, offset: 0x01da387e, size: 299 bytes, params: 2, frame: 18
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const FEED_ITEM_DWELLED = AnalyticEvents.FEED_ITEM_DWELLED;
const object2 = {};
object2.load_id = ICYMIStore.getLoadId();
object2.version = ICYMIStore.getVersion();
object2.impression_id = impressionId;
object2.dwell_time_ms = dwellTimeMs;
object2.item_id = itemId;
object2.item_type = itemType;
object2.dwell_start_time_ms = dwellStartTimeMs;
object2.dwell_end_time_ms = dwellEndTimeMs;
object2.icymi_session_id = icymiSessionId;
object2.trigger_type = triggerType;
object2.item_occurence_count_in_session = itemOccurenceCountInSession;
object2.item_feed_index = itemFeedIndex;
object2.is_initially_visible = isInitiallyVisible;
object2.item_score = itemScore;
object2.item_channel_type = itemChannelType ?? null;
object2.item_card_height = itemCardHeight;
object2.ux_variation = uxVariation;
object2.interaction_action_types = interactionActionTypes;
object2.interaction_count = interactionCount;
object2.session_impression_index = sessionImpressionIndex;
Reflect.apply(track, defaultImport, [FEED_ITEM_DWELLED, object2]);
}
function trackFeedItemActioned(a0) { // fn#75134, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9775:6446, offset: 0x01da39a9, size: 233 bytes, params: 2, frame: 18
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const FEED_ITEM_ACTIONED = AnalyticEvents.FEED_ITEM_ACTIONED;
const object2 = {};
object2.load_id = ICYMIStore.getLoadId();
object2.icymi_session_id = a0.icymiSessionId;
object2.ux_variation = a0.uxVariation;
object2.version = ICYMIStore.getVersion();
object2.session_action_index = a0.sessionActionIndex;
object2.item_id = a0.itemId;
object2.item_type = a0.itemType;
const impressionId = a0.impressionId;
const value = null;
object2.impression_id = value != impressionId ? impressionId : value;
object2.action_gesture_type = a0.actionParameters.actionGestureType;
object2.action_target_element = a0.actionParameters.actionTargetElement;
object2.action_intent_type = a0.actionParameters.actionIntentType;
object2.action_destination_type = a0.actionParameters.actionDestinationType;
Reflect.apply(track, defaultImport, [FEED_ITEM_ACTIONED, object2]);
}
function trackFeedFilterActioned(a0) { // fn#75135, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9775:6986, offset: 0x01da3a92, size: 427 bytes, params: 2, frame: 19
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const FEED_FILTER_ACTIONED = AnalyticEvents.FEED_FILTER_ACTIONED;
const object2 = {};
object2.load_id = ICYMIStore.getLoadId();
object2.icymi_session_id = a0.icymiSessionId;
object2.ux_variation = a0.uxVariation;
object2.version = ICYMIStore.getVersion();
object2.session_action_index = a0.sessionActionIndex;
object2.filter_setting_context = a0.filterParameters.filterSettingContext;
object2.filter_target_type = a0.filterParameters.filterTargetType;
const targetGuildId = a0.filterParameters.targetGuildId;
const value = null;
object2.target_guild_id = value != targetGuildId ? targetGuildId : value;
const targetChannelId = a0.filterParameters.targetChannelId;
object2.target_channel_id = value != targetChannelId ? targetChannelId : value;
const previousTuneSetting = a0.filterParameters.previousTuneSetting;
object2.previous_tune_setting = value != previousTuneSetting ? previousTuneSetting : value;
const newTuneSetting = a0.filterParameters.newTuneSetting;
object2.new_tune_setting = value != newTuneSetting ? newTuneSetting : value;
const previousOutSetting = a0.filterParameters.previousOutSetting;
object2.previous_out_setting = value != previousOutSetting ? previousOutSetting : value;
const newOutSetting = a0.filterParameters.newOutSetting;
object2.new_out_setting = value != newOutSetting ? newOutSetting : value;
const itemId = a0.itemId;
object2.item_id = value != itemId ? itemId : value;
const itemType = a0.itemType;
object2.item_type = value != itemType ? itemType : value;
const impressionId = a0.impressionId;
object2.impression_id = value != impressionId ? impressionId : value;
Reflect.apply(track, defaultImport, [FEED_FILTER_ACTIONED, object2]);
}
function trackFeedPageActioned(a0) { // fn#75136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9775:7884, offset: 0x01da3c3d, size: 188 bytes, params: 2, frame: 17
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const FEED_PAGE_ACTIONED = AnalyticEvents.FEED_PAGE_ACTIONED;
const object2 = {};
object2.load_id = ICYMIStore.getLoadId();
object2.icymi_session_id = a0.icymiSessionId;
object2.ux_variation = a0.uxVariation;
object2.version = ICYMIStore.getVersion();
object2.session_action_index = a0.sessionActionIndex;
object2.action_gesture_type = a0.actionParameters.actionGestureType;
object2.action_target_element = a0.actionParameters.actionTargetElement;
object2.action_intent_type = a0.actionParameters.actionIntentType;
object2.action_destination_type = a0.actionParameters.actionDestinationType;
Reflect.apply(track, defaultImport, [FEED_PAGE_ACTIONED, object2]);
}
function _fun75118(a0) { // fn#75118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9775:2328, offset: 0x01da3231, size: 55 bytes, params: 2, frame: 13
let binding = env0_0;
binding.push(a0.id);
binding = env0_2;
binding.push(dehydratedItemToType(a0));
}
function _fun75119(a0) { // fn#75119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9775:2405, offset: 0x01da3268, size: 55 bytes, params: 2, frame: 13
let binding = env0_1;
binding.push(a0.id);
binding = env0_3;
binding.push(dehydratedItemToType(a0));
}
global.__d(_fun75101, 9589, [9569, 661, 8370, 7230, 683,
2]) /* metro module 9589, dependencies: [9569, 661, 8370, 7230, 683, 2] */;
@@ -1,32 +1,40 @@
/* Metro module 4695; source: modules/icymi/ICYMIAttachmentUploadTarget.tsx; dependencies: [6, 7, 661, 4651, 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 * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
function _fun40590(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#40590, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4873:6, offset: 0x0110585e, size: 174 bytes, params: 8, frame: 19
const env0_0 = require;
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 */;
let value = require(661) /* metro dependency 661: Constants */;
let value = ConstantsModule;
const env0_4 = value.Endpoints;
const env0_5 = value.MAX_ATTACHMENT_SIZE;
const env0_6 = value.MAX_UPLOAD_COUNT;
value = _fun40591();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/ICYMIAttachmentUploadTarget.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/ICYMIAttachmentUploadTarget.tsx');
exports.default = value;
function _fun40591() { // fn#40591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4873:187, offset: 0x0110590c, size: 176 bytes, params: 1, frame: 15
return CreateClass(ICYMIAttachmentUploadTarget, [{key: 'getCreateAttachmentURL', value: function() {
return Endpoints.GRAVITY_ATTACHMENTS;
}}, {key: 'getDeleteUploadURL', value: function(a0) {
return Endpoints.MESSAGE_DELETE_UPLOAD(a0);
}}, {key: 'getMaxFileSize', value: function() {
return MAX_ATTACHMENT_SIZE;
}}, {key: 'getMaxAttachmentsCount', value: function() {
return MAX_UPLOAD_COUNT;
}}, {key: 'getMaxTotalAttachmentSize', value: function() {
return require(dependencyMap[3]).MAX_TOTAL_ATTACHMENT_SIZE;
}}, {key: 'shouldReactNativeCompressUploads', get: function() {
return true;
}}]);
function ICYMIAttachmentUploadTarget() { // fn#40592, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4873:208, offset: 0x00c618a4, size: 27 bytes, params: 1, frame: 13
env1_2(this, ICYMIAttachmentUploadTarget);
}
}
}
function _fun40591() { // fn#40591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4873:187, offset: 0x0110590c, size: 176 bytes, params: 1, frame: 15
return env0_3(ICYMIAttachmentUploadTarget, [{key: 'getCreateAttachmentURL', value: function() {
return Endpoints.GRAVITY_ATTACHMENTS;
}}, {key: 'getDeleteUploadURL', value: function(a0) {
return Endpoints.MESSAGE_DELETE_UPLOAD(a0);
}}, {key: 'getMaxFileSize', value: function() {
return MAX_ATTACHMENT_SIZE;
}}, {key: 'getMaxAttachmentsCount', value: function() {
return MAX_UPLOAD_COUNT;
}}, {key: 'getMaxTotalAttachmentSize', value: function() {
return require(dependencyMap[3]).MAX_TOTAL_ATTACHMENT_SIZE;
}}, {key: 'shouldReactNativeCompressUploads', get: function() {
return true;
}}]);
}
global.__d(_fun40590, 4695, [6, 7, 661, 4651, 2]) /* metro module 4695, dependencies: [6, 7, 661, 4651, 2] */;
+6 -2
View File
@@ -1,12 +1,16 @@
/* Metro module 14814; source: modules/icymi/ICYMIConstants.tsx; dependencies: [672, 2] */
import Durations from '../../utils/Durations.tsx'; /* Metro dependency 672 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun111818(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15011:6, offset: 0x023b3671, size: 121 bytes, params: 8, frame: 16
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
const Millis = (Durations).Millis;
const MINUTE = Millis.MINUTE;
const value = 15 * MINUTE;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/ICYMIConstants.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/ICYMIConstants.tsx');
exports.NUM_GUILDS_EXTENDED_ONBOARDING = 3;
exports.SCROLL_EVENT_THROTTLE_MS = value;
}
global.__d(_fun111818, 14814, [672, 2]) /* metro module 14814, dependencies: [672, 2] */;
+26 -21
View File
@@ -1,37 +1,42 @@
/* Metro module 9581; source: modules/icymi/ICYMIExperiment.tsx; dependencies: [9582, 1854, 9584, 2] */
import LabFeatureStore from '../labs/LabFeatureStore.tsx'; /* Metro dependency 9582 */
import UseLabFeature from '../labs/useLabFeature.tsx'; /* Metro dependency 9584 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun75055(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9767:6, offset: 0x01da14c4, size: 360 bytes, params: 8, frame: 25
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const labFeatureStore = importDefault(9582) /* metro dependency 9582: LabFeatureStore */;
let value = require(1854) /* metro dependency 1854: apex */;
let value = ApexModule;
value = value.createApexExperiment({'name': '2026-04-icymi-staff-only', 'kind': 'user',
defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}});
const apexExperiment = (require(1854) /* metro dependency 1854: apex */).createApexExperiment({'name': '2026-03-icymi-staff-debugging-utility',
const apexExperiment = (ApexModule).createApexExperiment({'name': '2026-03-icymi-staff-debugging-utility',
'kind': 'user', defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}});
const apexExperiment2 = (require(1854) /* metro dependency 1854: apex */).createApexExperiment({'name': '2026-03-icymi-desktop',
const apexExperiment2 = (ApexModule).createApexExperiment({'name': '2026-03-icymi-desktop',
'kind': 'user', defaultConfig: {icymiDesktopEnabled: false}, variations: {[1]: {icymiDesktopEnabled: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/ICYMIExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/ICYMIExperiment.tsx');
exports.ICYMI_LAB_FEATURE = 'hide_icymi_tab';
exports.ICYMIStaffOnlyExperiment = value;
exports.useICYMIEnabled = useICYMIEnabled;
exports.getICYMIEnabled = getICYMIEnabled;
exports.ICYMIStaffDebuggingUtilityExperiment = apexExperiment;
exports.ICYMIDesktopExperiment = apexExperiment2;
function useICYMIEnabled(a0) { // fn#75056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9767:698, offset: 0x01da162c, size: 97 bytes, params: 2, frame: 15
const value2 = (UseLabFeature)('hide_icymi_tab');
const binding = env0_3;
const useConfig = binding.useConfig;
const enabled = Reflect.apply(useConfig, binding, [{location: a0}]).enabled;
env0_4.useConfig({location: a0});
return !value2 && enabled;
}
function getICYMIEnabled(a0) { // fn#75057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9767:837, offset: 0x01da168d, size: 63 bytes, params: 2, frame: 13
const value2 = LabFeatureStore.get('hide_icymi_tab');
const binding = env0_3;
const getConfig = binding.getConfig;
return !value2 && Reflect.apply(getConfig, binding, [{location: a0}]).enabled;
}
}
function useICYMIEnabled(a0) { // fn#75056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9767:698, offset: 0x01da162c, size: 97 bytes, params: 2, frame: 15
const value2 = (importDefault(9584) /* metro dependency 9584: useLabFeature */)('hide_icymi_tab');
const binding = env0_3;
const useConfig = binding.useConfig;
const enabled = Reflect.apply(useConfig, binding, [{location: a0}]).enabled;
env0_4.useConfig({location: a0});
return !value2 && enabled;
}
function getICYMIEnabled(a0) { // fn#75057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9767:837, offset: 0x01da168d, size: 63 bytes, params: 2, frame: 13
const value2 = LabFeatureStore.get('hide_icymi_tab');
const binding = env0_3;
const getConfig = binding.getConfig;
return !value2 && Reflect.apply(getConfig, binding, [{location: a0}]).enabled;
}
global.__d(_fun75055, 9581, [9582, 1854, 9584, 2]) /* metro module 9581, dependencies: [9582, 1854, 9584, 2] */;
+78 -57
View File
@@ -1,73 +1,94 @@
/* Metro module 9577; source: modules/icymi/ICYMIFiltersStore.tsx; dependencies: [6, 7, 15, 17, 18, 7230, 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 _fun74935(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9763:6, offset: 0x01d9e122, size: 287 bytes, params: 8, frame: 19
const env0_0 = require;
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 */;
let env0_7 = {};
const DeviceSettingsStore = (importDefault(566) /* metro dependency 566: flux */).DeviceSettingsStore;
const DeviceSettingsStore = (Flux).DeviceSettingsStore;
let value = _fun74939(DeviceSettingsStore);
value.displayName = 'ICYMIFiltersStore';
value.persistKey = 'ICYMIFiltersStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {SET_ICYMI_FILTERS: function(a0) {
env0_7 = a0.filters;
}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/ICYMIFiltersStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/ICYMIFiltersStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_74936() { // fn#74936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9763:148, offset: 0x01d9e241, 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_74936() { // fn#74936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9763:148, offset: 0x01d9e241, 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_74936_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_74936_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun74939(a0) { // fn#74939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9763:356, offset: 0x01d9e2a3, size: 174 bytes, params: 2, frame: 16
const closure = ICYMIFiltersStore;
env0_6(closure, a0);
return env0_3(closure, [{key: 'initialize', value: value_74941}, {key: 'filterStaffContent', value: value_74942},
{key: 'getDoubleTapBehavior', value: value_74943}, {key: 'getState', value: value_74944},
{key: 'getUserAgnosticState', value: value_74945}]);
}
function value_74941(a0) { // fn#74941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9763:671, offset: 0x01d9e351, size: 22 bytes, params: 2, frame: 2
const r1 = a0 ?? ({});
value = environment.__proto__;
}
function value_74942() { // fn#74942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9763:732, offset: 0x01d9e367, size: 21 bytes, params: 1, frame: 2
return env1_7.filterStaffContent === true;
}
function value_74943() { // fn#74943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9763:811, offset: 0x01d9e37c, size: 57 bytes, params: 1, frame: 12
return env1_7.doubleTapBehavior ?? (require(7230) /* metro dependency 7230: ICYMITypes */).GravityICYMIDoubleTapBehavior.DEFAULT;
function _fun74939(a0) { // fn#74939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9763:356, offset: 0x01d9e2a3, size: 174 bytes, params: 2, frame: 16
const ICYMIFiltersStore2 = ICYMIFiltersStore;
Inherits(ICYMIFiltersStore2, a0);
return CreateClass(ICYMIFiltersStore2, [{key: 'initialize', value: value_74941}, {key: 'filterStaffContent',
value: value_74942}, {key: 'getDoubleTapBehavior', value: value_74943}, {key: 'getState', value: value_74944},
{key: 'getUserAgnosticState', value: value_74945}]);
function ICYMIFiltersStore() { // fn#74940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9763:368, offset: 0x00c6223c, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_2(this, ICYMIFiltersStore);
const value3 = env1_5(ICYMIFiltersStore);
return env1_4(this, _isNativeReflectConstruct_74936() ? global.Reflect.construct(value3, arguments,
env1_5(this).constructor) : value3.apply(this, arguments));
}
function value_74941(a0) { // fn#74941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9763:671, offset: 0x01d9e351, size: 22 bytes, params: 2, frame: 2
const r1 = a0 ?? ({});
value = environment.__proto__;
}
function value_74942() { // fn#74942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9763:732, offset: 0x01d9e367, size: 21 bytes, params: 1, frame: 2
return env1_7.filterStaffContent === true;
}
function value_74943() { // fn#74943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9763:811, offset: 0x01d9e37c, size: 57 bytes, params: 1, frame: 12
return env1_7.doubleTapBehavior ?? (require(7230) /* metro dependency 7230: ICYMITypes */).GravityICYMIDoubleTapBehavior.DEFAULT;
}
function value_74944() { // fn#74944, offset: 0x00fbd9cb, size: 9 bytes, params: 1, frame: 1
return env1_7;
}
function value_74945() { // fn#74945, offset: 0x00fbd9cb, size: 9 bytes, params: 1, frame: 1
return env1_7;
}
}
}
global.__d(_fun74935, 9577, [6, 7, 15, 17, 18, 7230, 566, 694,
2]) /* metro module 9577, dependencies: [6, 7, 15, 17, 18, 7230, 566, 694, 2] */;
+4 -1
View File
@@ -1,10 +1,13 @@
/* Metro module 9586; source: modules/icymi/ICYMIItemTypes.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun75074(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9772:6, offset: 0x01da1b4e, size: 114 bytes, params: 8, frame: 16
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const Set = global.Set;
const set = new Set(['end', 'loading', 'bottomLoading', 'icymiHeader', 'recommendedGuilds']);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/ICYMIItemTypes.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/ICYMIItemTypes.tsx');
exports.NON_ELIGIBLE_SCROLL_ITEMS = set;
}
global.__d(_fun75074, 9586, [2]) /* metro module 9586, dependencies: [2] */;
+92 -77
View File
@@ -1,95 +1,110 @@
/* Metro module 13087; source: modules/icymi/ICYMIManager.tsx; dependencies: [6, 7, 15, 17, 18, 9580, 672, 694, 9581, 4561, 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 Durations from '../../utils/Durations.tsx'; /* Metro dependency 672 */
import LifecycleManager from '../../lib/LifecycleManager.tsx'; /* Metro dependency 4561 */
import ICYMIActionCreators from './ICYMIActionCreators.tsx'; /* Metro dependency 9580 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ICYMIExperimentModule from './ICYMIExperiment.tsx'; /* Metro dependency 9581 */
function _fun99996(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13277:6, offset: 0x021db75c, size: 247 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
const env0_5 = importDefault(15) /* metro dependency 15 */;
const env0_6 = importDefault(17) /* metro dependency 17 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
let value = importDefault(4561) /* metro dependency 4561: LifecycleManager */;
let value = LifecycleManager;
value = _fun100002(value);
value = new value();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/ICYMIManager.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/ICYMIManager.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_99997() { // fn#99997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13277:148, offset: 0x021db853, 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_99997() { // fn#99997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13277:148, offset: 0x021db853, 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_99997_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_99997_isNativeReflectConstruct = function() {
return !!result;
})();
}
function fetchDehydratedData() { // fn#100000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13277:352, offset: 0x021db8b5, size: 147 bytes, params: 1, frame: 15
const value = a0;
const r5 = value !== undefined ? value : false;
const defaultImport = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
defaultImport.fetchDehydrated({isInitialLoad: r5});
if (env0_8 != null) {
global.clearTimeout(env0_8);
function fetchDehydratedData() { // fn#100000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13277:352, offset: 0x021db8b5, size: 147 bytes, params: 1, frame: 15
const value = a0;
const r5 = value !== undefined ? value : false;
const defaultImport = ICYMIActionCreators;
defaultImport.fetchDehydrated({isInitialLoad: r5});
if (env0_8 != null) {
global.clearTimeout(env0_8);
}
const setTimeout = global.setTimeout;
const Millis = (Durations).Millis;
const MINUTE = Millis.MINUTE;
env0_8 = setTimeout(function() {
fetchDehydratedData();
}, 15 * MINUTE);
}
const setTimeout = global.setTimeout;
const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
const MINUTE = Millis.MINUTE;
env0_8 = setTimeout(function() {
fetchDehydratedData();
}, 15 * MINUTE);
}
function _fun100002(a0) { // fn#100002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13277:528, offset: 0x021db957, size: 122 bytes, params: 2, frame: 16
const closure = ICYMIManager;
env0_7(closure, a0);
return env0_4(closure, [{key: '_initialize', value: value_100004}, {key: '_terminate', value: value_100005},
{key: 'handlePostConnectionOpen', value: value_100006}]);
}
function _fun100002(a0) { // fn#100002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13277:528, offset: 0x021db957, size: 122 bytes, params: 2, frame: 16
const ICYMIManager2 = ICYMIManager;
Inherits(ICYMIManager2, a0);
return CreateClass(ICYMIManager2, [{key: '_initialize', value: value_100004}, {key: '_terminate', value: value_100005},
{key: 'handlePostConnectionOpen', value: value_100006}]);
function ICYMIManager() { // fn#100003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13277:540, offset: 0x00c7c82b, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_3(this, ICYMIManager);
const value3 = env1_6(ICYMIManager);
return env1_5(this, _isNativeReflectConstruct_99997() ? global.Reflect.construct(value3, arguments,
env1_6(this).constructor) : value3.apply(this, arguments));
}
function value_100004() { // fn#100004, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13277:819, offset: 0x021db9d1, size: 52 bytes, params: 1, frame: 14
let value = environment.__proto__;
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.subscribe('POST_CONNECTION_OPEN', this.handlePostConnectionOpen);
}
function value_100004() { // fn#100004, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13277:819, offset: 0x021db9d1, size: 52 bytes, params: 1, frame: 14
let value = environment.__proto__;
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.subscribe('POST_CONNECTION_OPEN', this.handlePostConnectionOpen);
}
function value_100005() { // fn#100005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13277:928, offset: 0x021dba05, size: 52 bytes, params: 1, frame: 14
let value = environment.__proto__;
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.unsubscribe('POST_CONNECTION_OPEN', this.handlePostConnectionOpen);
}
function value_100005() { // fn#100005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13277:928, offset: 0x021dba05, size: 52 bytes, params: 1, frame: 14
let value = environment.__proto__;
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.unsubscribe('POST_CONNECTION_OPEN', this.handlePostConnectionOpen);
}
function value_100006() { // fn#100006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13277:1053, offset: 0x021dba39, size: 107 bytes, params: 1, frame: 14
let value = environment.__proto__;
const getICYMIEnabled = ICYMIExperimentModule.getICYMIEnabled;
if (Reflect.apply(getICYMIEnabled, ICYMIExperimentModule, ['ICYMIManager'])) {
fetchDehydratedData(true);
value = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
value.getGuildChannelScores();
value = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
value.getRecommendedGuilds();
}
}
function value_100006() { // fn#100006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13277:1053, offset: 0x021dba39, size: 107 bytes, params: 1, frame: 14
let value = environment.__proto__;
const icymiExperimentModule = require(9581) /* metro dependency 9581: ICYMIExperiment */;
const getICYMIEnabled = icymiExperimentModule.getICYMIEnabled;
if (Reflect.apply(getICYMIEnabled, icymiExperimentModule, ['ICYMIManager'])) {
fetchDehydratedData(true);
value = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
value.getGuildChannelScores();
value = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
value.getRecommendedGuilds();
}
}
global.__d(_fun99996, 13087, [6, 7, 15, 17, 18, 9580, 672, 694, 9581, 4561,
2]) /* metro module 13087, dependencies: [6, 7, 15, 17, 18, 9580, 672, 694, 9581, 4561, 2] */;
@@ -1,17 +1,21 @@
/* Metro module 14846; source: modules/icymi/ICYMIPopularGuildsStore.tsx; dependencies: [6, 7, 15, 17, 18, 1867, 1418, 6946, 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 GuildStore from '../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as GuildDiscoveryUtilsModule from '../../utils/GuildDiscoveryUtils.tsx'; /* Metro dependency 6946 */
function _fun112150(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112150, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15043:6, offset: 0x023bcfc3, size: 323 bytes, params: 8, frame: 19
const env0_0 = require;
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 guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
let env0_8 = [];
let env0_9 = [];
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
const Store = (Flux).Store;
let value = _fun112154(Store);
value.displayName = 'ICYMIPopularGuildsStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
@@ -20,74 +24,95 @@ function _fun112150(global, require, importDefault, importAll, module, exports,
env0_9 = [];
env0_10 = 0;
}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/ICYMIPopularGuildsStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/ICYMIPopularGuildsStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_112151() { // fn#112151, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15043:158, offset: 0x023bd106, 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_112151() { // fn#112151, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15043:158, offset: 0x023bd106, 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_112151_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_112151_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun112154(a0) { // fn#112154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15043:375, offset: 0x023bd168, size: 153 bytes, params: 2, frame: 16
const closure = ICYMIPopularGuildsStore;
env0_6(closure, a0);
return env0_3(closure, [{key: 'initialize', value: function() {
this.waitFor(GuildStore);
}}, {key: 'getOnboardingCategoryIds', value: value_112157}, {key: 'getOnboardingGuilds', value: value_112158},
{key: 'getCurrentOnboardingGuildOffset', value: value_112159}]);
}
function LOAD_ICYMI_POPULAR_GUILDS({categoryIds, guilds, offset}) { // fn#112160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15043:1036, offset: 0x023bd201, size: 229 bytes, params: 2, frame: 21
env0_9 = offset === 0 ? [] : env0_9;
let Set = global.Set;
const binding = env0_9;
let set = new Set(binding.map(function(a0) {
return a0.id;
}));
Set = global.Set;
set = new Set(GuildStore.getGuildIds());
const value9 = guilds.map(_fun112162).filter(_fun112163);
const binding2 = env0_9;
const items2 = [];
arraySpread(items2, value9, arraySpread(items2, binding2, 0, binding), binding);
}
function _fun112162(a0) { // fn#112162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15043:1198, offset: 0x023bd2e6, size: 64 bytes, params: 2, frame: 14
let value = environment.__proto__;
value = require(1418) /* metro dependency 1418: GuildRecordUtils */;
const fromClientDiscoverableGuild = value.fromClientDiscoverableGuild;
const guildDiscoveryUtilsModule = require(6946) /* metro dependency 6946: GuildDiscoveryUtils */;
return Reflect.apply(fromClientDiscoverableGuild, value, [guildDiscoveryUtilsModule.makeDiscoverableGuild(a0)]);
}
function _fun112163(a0) { // fn#112163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15043:1281, offset: 0x023bd326, size: 55 bytes, params: 2, frame: 13
const binding = env0_1;
return !binding.has(a0.id) && !env0_0.has(a0.id);
function _fun112154(a0) { // fn#112154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15043:375, offset: 0x023bd168, size: 153 bytes, params: 2, frame: 16
const ICYMIPopularGuildsStore2 = ICYMIPopularGuildsStore;
Inherits(ICYMIPopularGuildsStore2, a0);
return CreateClass(ICYMIPopularGuildsStore2, [{key: 'initialize', value: function() {
this.waitFor(GuildStore);
}}, {key: 'getOnboardingCategoryIds', value: value_112157}, {key: 'getOnboardingGuilds', value: value_112158},
{key: 'getCurrentOnboardingGuildOffset', value: value_112159}]);
function ICYMIPopularGuildsStore() { // fn#112155, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15043:387, offset: 0x00ff71a7, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_2(this, ICYMIPopularGuildsStore);
const value3 = env1_5(ICYMIPopularGuildsStore);
return env1_4(this, _isNativeReflectConstruct_112151() ? global.Reflect.construct(value3, arguments,
env1_5(this).constructor) : value3.apply(this, arguments));
}
function value_112157() { // fn#112157, offset: 0x00fbd9d4, size: 9 bytes, params: 1, frame: 1
return env1_8;
}
function value_112158() { // fn#112158, offset: 0x00e07a77, size: 9 bytes, params: 1, frame: 1
return env1_9;
}
function value_112159() { // fn#112159, offset: 0x00fbd9ec, size: 9 bytes, params: 1, frame: 1
return env1_10;
}
}
function LOAD_ICYMI_POPULAR_GUILDS({categoryIds, guilds, offset}) { // fn#112160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15043:1036, offset: 0x023bd201, size: 229 bytes, params: 2, frame: 21
env0_9 = offset === 0 ? [] : env0_9;
let Set = global.Set;
const binding = env0_9;
let set = new Set(binding.map(function(a0) {
return a0.id;
}));
Set = global.Set;
set = new Set(GuildStore.getGuildIds());
const value9 = guilds.map(_fun112162).filter(_fun112163);
const binding2 = env0_9;
const items2 = [];
arraySpread(items2, value9, arraySpread(items2, binding2, 0, binding), binding);
function _fun112162(a0) { // fn#112162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15043:1198, offset: 0x023bd2e6, size: 64 bytes, params: 2, frame: 14
let value = environment.__proto__;
value = require(1418) /* metro dependency 1418: GuildRecordUtils */;
const fromClientDiscoverableGuild = value.fromClientDiscoverableGuild;
return Reflect.apply(fromClientDiscoverableGuild, value, [GuildDiscoveryUtilsModule.makeDiscoverableGuild(a0)]);
}
function _fun112163(a0) { // fn#112163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15043:1281, offset: 0x023bd326, size: 55 bytes, params: 2, frame: 13
const binding = env0_1;
return !binding.has(a0.id) && !env0_0.has(a0.id);
}
}
}
global.__d(_fun112150, 14846, [6, 7, 15, 17, 18, 1867, 1418, 6946, 566, 694,
2]) /* metro module 14846, dependencies: [6, 7, 15, 17, 18, 1867, 1418, 6946, 566, 694, 2] */;
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+64 -63
View File
@@ -1,87 +1,88 @@
/* Metro module 7230; source: modules/icymi/ICYMITypes.tsx; dependencies: [661, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
function _fun57906(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#57906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7408:6, offset: 0x016b9378, size: 507 bytes, params: 8, frame: 24
var object3;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_0 = constantsModule.ChannelTypes;
const MessageEmbedTypes = constantsModule.MessageEmbedTypes;
object3 = {MESSAGE: 0};
object3[0] = 'MESSAGE';
object3.ACTIVITY = 2;
object3[2] = 'ACTIVITY';
object3.CUSTOM_STATUS = 3;
object3[3] = 'CUSTOM_STATUS';
object3.GUILD_EVENT = 5;
object3[5] = 'GUILD_EVENT';
object3.RECOMMENDED_GUILDS = 6;
object3[6] = 'RECOMMENDED_GUILDS';
const MessageEmbedTypes = ConstantsModule.MessageEmbedTypes;
object = {MESSAGE: 0};
object[0] = 'MESSAGE';
object.ACTIVITY = 2;
object[2] = 'ACTIVITY';
object.CUSTOM_STATUS = 3;
object[3] = 'CUSTOM_STATUS';
object.GUILD_EVENT = 5;
object[5] = 'GUILD_EVENT';
object.RECOMMENDED_GUILDS = 6;
object[6] = 'RECOMMENDED_GUILDS';
let Set = global.Set;
const MESSAGE = object3.MESSAGE;
const CUSTOM_STATUS = object3.CUSTOM_STATUS;
const MESSAGE = object.MESSAGE;
const CUSTOM_STATUS = object.CUSTOM_STATUS;
let set = new Set([MESSAGE, CUSTOM_STATUS]);
Set = global.Set;
const IMAGE = MessageEmbedTypes.IMAGE;
const GIFV = MessageEmbedTypes.GIFV;
set = new Set([IMAGE, GIFV]);
const object4 = {DEFAULT: 0};
object4[0] = 'DEFAULT';
object4.BOOKMARKS = 2;
object4[2] = 'BOOKMARKS';
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/ICYMITypes.tsx');
const object2 = {DEFAULT: 0};
object2[0] = 'DEFAULT';
object2.BOOKMARKS = 2;
object2[2] = 'BOOKMARKS';
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/ICYMITypes.tsx');
exports.ICYMI_PAGE_SIZE = 15;
exports.MIN_ITEMS_FOR_NEW_PILL = 3;
exports.MIN_SCORE_FOR_NEW_PILL = 50;
exports.GAME_CONTENT_GUILD_ID = '1312632705086787756';
exports.ICYMIItemTypes = object3;
exports.ICYMIItemTypes = object;
exports.typeToString = typeToString;
exports.SUPPORTED_ITEM_TYPES = set;
exports.GRAVITY_VALID_EMBED_TYPES = set;
exports.GravityICYMIDoubleTapBehavior = object4;
exports.GravityICYMIDoubleTapBehavior = object2;
exports.ContentType = {POPULAR_MESSAGE: 'POPULAR_MESSAGE', IMAGE: 'IMAGE', VIDEO: 'VIDEO', LINK: 'LINK',
THREAD: 'THREAD', CHANGED_STATUS: 'CHANGED_STATUS', INTERESTING: 'INTERESTING', ANNOUNCEMENT: 'ANNOUNCEMENT',
FORUM_POST: 'FORUM_POST', FILE: 'FILE'};
}
function typeToString(a0) { // fn#57907, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7408:973, offset: 0x016b9573, size: 196 bytes, params: 2, frame: 5
var external_content_application_id;
var r0;
var channel_type;
var GUILD_ANNOUNCEMENT;
var message_context;
const type = a0.type;
var value;
const MESSAGE = env0_1.MESSAGE;
if (MESSAGE === type) {
channel_type = a0.data.channel_type;
GUILD_ANNOUNCEMENT = ChannelTypes.GUILD_ANNOUNCEMENT;
value = 'announcement';
if (channel_type === GUILD_ANNOUNCEMENT) {
r0 = value;
} else {
message_context = a0.data.message_context;
value = undefined;
external_content_application_id = message_context == null ? value : message_context.external_content_application_id;
value = 'message';
r0 = external_content_application_id != null ? 'game_message' : value;
function typeToString(a0) { // fn#57907, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7408:973, offset: 0x016b9573, size: 196 bytes, params: 2, frame: 5
var external_content_application_id;
var r0;
var channel_type;
var GUILD_ANNOUNCEMENT;
var message_context;
const type = a0.type;
var value;
const MESSAGE = env0_1.MESSAGE;
if (MESSAGE === type) {
channel_type = a0.data.channel_type;
GUILD_ANNOUNCEMENT = ChannelTypes.GUILD_ANNOUNCEMENT;
value = 'announcement';
if (channel_type === GUILD_ANNOUNCEMENT) {
r0 = value;
} else {
message_context = a0.data.message_context;
value = undefined;
external_content_application_id = message_context == null ? value : message_context.external_content_application_id;
value = 'message';
r0 = external_content_application_id != null ? 'game_message' : value;
}
return r0;
}
const ACTIVITY = env0_1.ACTIVITY;
if (ACTIVITY === type) {
return 'hotwheels_gaming_activity';
}
const CUSTOM_STATUS = env0_1.CUSTOM_STATUS;
if (CUSTOM_STATUS === type) {
return 'hotwheels_custom_status';
}
const GUILD_EVENT = env0_1.GUILD_EVENT;
if (GUILD_EVENT === type) {
return 'guild_event';
}
const RECOMMENDED_GUILDS = env0_1.RECOMMENDED_GUILDS;
if (RECOMMENDED_GUILDS === type) {
return 'recommended_guilds';
}
return r0;
}
const ACTIVITY = env0_1.ACTIVITY;
if (ACTIVITY === type) {
return 'hotwheels_gaming_activity';
}
const CUSTOM_STATUS = env0_1.CUSTOM_STATUS;
if (CUSTOM_STATUS === type) {
return 'hotwheels_custom_status';
}
const GUILD_EVENT = env0_1.GUILD_EVENT;
if (GUILD_EVENT === type) {
return 'guild_event';
}
const RECOMMENDED_GUILDS = env0_1.RECOMMENDED_GUILDS;
if (RECOMMENDED_GUILDS === type) {
return 'recommended_guilds';
}
}
global.__d(_fun57906, 7230, [661, 2]) /* metro module 7230, dependencies: [661, 2] */;
+263 -235
View File
@@ -1,4 +1,13 @@
/* Metro module 9578; source: modules/icymi/ICYMIUnreadStateStore.tsx; dependencies: [6, 7, 15, 17, 18, 672, 7230, 9579, 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 Durations from '../../utils/Durations.tsx'; /* Metro dependency 672 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun74947(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9764:6, offset: 0x01d9e3b5, size: 377 bytes, params: 8, frame: 19
const env0_0 = require;
const _arrayLikeToArray_74953 = function(a0, a1) {
@@ -46,16 +55,11 @@ function _fun74947(global, require, importDefault, importAll, module, exports, d
};
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 Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
const Millis = (Durations).Millis;
const DAY = Millis.DAY;
const env0_7 = 7 * DAY;
object = {readIdToTimestampMap: {}};
const DeviceSettingsStore = (importDefault(566) /* metro dependency 566: flux */).DeviceSettingsStore;
const DeviceSettingsStore = (Flux).DeviceSettingsStore;
let value = _fun74954(DeviceSettingsStore);
value.displayName = 'ICYMIUnreadStateStore';
value.persistKey = 'ICYMIUnreadStateStore';
@@ -63,259 +67,283 @@ function _fun74947(global, require, importDefault, importAll, module, exports, d
override}) {
items.forEach(_fun74962);
}, LOAD_ICYMI_DEHYDRATED: LOAD_ICYMI_DEHYDRATED_74963, CLEAR_ICYMI_READ_STATES: CLEAR_ICYMI_READ_STATES});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/ICYMIUnreadStateStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/ICYMIUnreadStateStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_74948() { // fn#74948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9764:150, offset: 0x01d9e52e, 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_74948_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _createForOfIteratorHelperLoose_74951(a0, a1) { // fn#74951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9764:343, offset: 0x01d9e590, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
function _isNativeReflectConstruct_74948() { // fn#74948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9764:150, offset: 0x01d9e52e, 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 _fun74952;
return (_isNativeReflectConstruct_74948_isNativeReflectConstruct = function() {
return !!result;
})();
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_74953(a0, value);
r5 = value;
} else {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
function _createForOfIteratorHelperLoose_74951(a0, a1) { // fn#74951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9764:343, offset: 0x01d9e590, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun74952;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_74953(a0, value);
r6 = value;
r5 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
value = _arrayLikeToArray_74953(a0, value);
r6 = value;
} else {
r6 = value;
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_74953(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
r5 = r6;
} else {
r5 = value;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
if (r5) {
}
return _fun74952;
}
return _fun74952;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
}
function _fun74954(a0) { // fn#74954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9764:1314, offset: 0x01d9e704, size: 147 bytes, params: 2, frame: 16
const closure = ICYMIUnreadStateStore;
env0_6(closure, a0);
return env0_3(closure, [{key: 'initialize', value: value_74956}, {key: 'getReadTimestamp', value: value_74958},
{key: 'getState', value: value_74959}, {key: 'getUserAgnosticState', value: value_74960}]);
}
function ICYMI_ACK_ITEMS({items, override}) { // fn#74961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9764:2301, offset: 0x01d9e888, size: 42 bytes, params: 2, frame: 11
items.forEach(_fun74962);
}
function LOAD_ICYMI_DEHYDRATED_74963({items}) { // fn#74963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9764:2479, offset: 0x01d9e908, size: 265 bytes, params: 2, frame: 25
var r3;
var external_content_application_id;
var r11;
var value5;
var type;
var ICYMIItemTypes;
var MESSAGE;
var readIdToTimestampMap;
var id;
var value6;
var data;
var message_context;
var value7;
var moduleValue;
var isItemUnreadInChannel;
var channel_id;
var message_id;
var isItemUnreadInChannel2;
var value8;
const value3 = _createForOfIteratorHelperLoose_74951(items);
const value4 = value3();
let done = value4.done;
if (!done) {
r3 = value4;
while (true) {
value5 = r3.value;
type = value5.type;
ICYMIItemTypes = (require(7230) /* metro dependency 7230: ICYMITypes */).ICYMIItemTypes;
MESSAGE = ICYMIItemTypes.MESSAGE;
if (type === MESSAGE) {
readIdToTimestampMap = env0_8.readIdToTimestampMap;
id = value5.id;
value6 = readIdToTimestampMap[id] != null;
if (value6) {
r11 = value6;
continue;
}
data = value5.data;
message_context = data.message_context;
if (message_context == null) {
external_content_application_id = undefined;
continue;
}
external_content_application_id = message_context.external_content_application_id;
value7 = external_content_application_id != null;
r11 = value7;
if (r11) {
continue;
}
moduleValue = require(9579) /* metro dependency 9579: ICYMIUtils */;
isItemUnreadInChannel = moduleValue.isItemUnreadInChannel;
data = value5.data;
channel_id = data.channel_id;
data = value5.data;
message_id = data.message_id;
isItemUnreadInChannel2 = Reflect.apply(isItemUnreadInChannel, moduleValue, [channel_id, message_id]);
r11 = isItemUnreadInChannel2;
if (r11) {
break;
}
readIdToTimestampMap = env0_8.readIdToTimestampMap;
id = value5.id;
readIdToTimestampMap[id] = 0;
break;
}
value8 = value3();
done = value8.done;
if (done) {
break;
}
r3 = value8;
continue;
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
function _fun74952() { // fn#74952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9764:914, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
}
}
function CLEAR_ICYMI_READ_STATES() { // fn#74964, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9764:2890, offset: 0x01d9ea11, size: 19 bytes, params: 1, frame: 2
env0_8.readIdToTimestampMap = {};
}
function _fun74954(a0) { // fn#74954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9764:1314, offset: 0x01d9e704, size: 147 bytes, params: 2, frame: 16
const ICYMIUnreadStateStore2 = ICYMIUnreadStateStore;
Inherits(ICYMIUnreadStateStore2, a0);
return CreateClass(ICYMIUnreadStateStore2, [{key: 'initialize', value: value_74956}, {key: 'getReadTimestamp',
value: value_74958}, {key: 'getState', value: value_74959}, {key: 'getUserAgnosticState', value: value_74960}]);
function ICYMIUnreadStateStore() { // fn#74955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9764:1326, offset: 0x01081bdc, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_2(this, ICYMIUnreadStateStore);
const value3 = env1_5(ICYMIUnreadStateStore);
return env1_4(this, _isNativeReflectConstruct_74948() ? global.Reflect.construct(value3, arguments,
env1_5(this).constructor) : value3.apply(this, arguments));
}
function value_74956(a0) { // fn#74956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9764:1649, offset: 0x01d9e797, size: 186 bytes, params: 2, frame: 14
var object;
var r2;
var readIdToTimestampMap;
var value7;
var value8;
reducibleJoin4: while (true) {
reducibleJoin2: while (true) {
if (a0 == null) {
break reducibleJoin2;
}
readIdToTimestampMap = a0.readIdToTimestampMap;
if (readIdToTimestampMap != null) {
readIdToTimestampMap = a0.readIdToTimestampMap;
object = {readIdToTimestampMap: readIdToTimestampMap};
function value_74956(a0) { // fn#74956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9764:1649, offset: 0x01d9e797, size: 186 bytes, params: 2, frame: 14
var object3;
var object2;
var r2;
var readIdToTimestampMap;
var value7;
var value8;
reducibleJoin4: while (true) {
reducibleJoin2: while (true) {
if (a0 == null) {
break reducibleJoin2;
}
readIdToTimestampMap = a0.readIdToTimestampMap;
if (readIdToTimestampMap != null) {
readIdToTimestampMap = a0.readIdToTimestampMap;
object2 = {readIdToTimestampMap: readIdToTimestampMap};
break reducibleJoin4;
}
break reducibleJoin2;
}
object2 = {readIdToTimestampMap: {}};
break reducibleJoin4;
}
break reducibleJoin2;
object3 = object2;
const Date = global.Date;
const env0_0 = Date.now() - env1_7;
const Object = global.Object;
const value5 = _createForOfIteratorHelperLoose_74951(Object.keys(object3.readIdToTimestampMap).filter(_fun74957));
const value6 = value5();
let done = value6.done;
if (!done) {
r2 = value6;
reducibleLoop5: while (true) {
value7 = r2.value;
readIdToTimestampMap = object3.readIdToTimestampMap;
delete readIdToTimestampMap[value7];
value8 = value5();
done = value8.done;
if (done) {
break reducibleLoop5;
}
r2 = value8;
continue reducibleLoop5;
}
}
function _fun74957(a0) { // fn#74957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9764:1844, offset: 0x01d9e851, size: 33 bytes, params: 2, frame: 2
return env2_8.readIdToTimestampMap[a0] < env0_0;
}
}
object = {readIdToTimestampMap: {}};
break reducibleJoin4;
function value_74958(a0) { // fn#74958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9764:2010, offset: 0x01d9e872, size: 22 bytes, params: 2, frame: 2
return env1_8.readIdToTimestampMap[a0];
}
function value_74959() { // fn#74959, offset: 0x00fbd9d4, size: 9 bytes, params: 1, frame: 1
return env1_8;
}
function value_74960() { // fn#74960, offset: 0x00fbd9d4, size: 9 bytes, params: 1, frame: 1
return env1_8;
}
}
function ICYMI_ACK_ITEMS({items, override}) { // fn#74961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9764:2301, offset: 0x01d9e888, size: 42 bytes, params: 2, frame: 11
items.forEach(_fun74962);
function _fun74962(a0) { // fn#74962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9764:2356, offset: 0x01d9e8b2, size: 86 bytes, params: 2, frame: 5
var r1;
let value = a0 != null;
if (value) {
value = environment.__proto__;
value = env1_8.readIdToTimestampMap[a0.id] == null;
r1 = value || override;
} else {
r1 = value;
}
if (r1) {
value = environment.__proto__;
env1_8.readIdToTimestampMap[a0.id] = a0.timestamp;
}
}
}
env1_8 = object;
const Date = global.Date;
const env0_0 = Date.now() - env1_7;
const Object = global.Object;
const value5 = _createForOfIteratorHelperLoose_74951(Object.keys(env1_8.readIdToTimestampMap).filter(_fun74957));
const value6 = value5();
let done = value6.done;
if (!done) {
r2 = value6;
reducibleLoop5: while (true) {
value7 = r2.value;
readIdToTimestampMap = env1_8.readIdToTimestampMap;
delete readIdToTimestampMap[value7];
value8 = value5();
done = value8.done;
if (done) {
break reducibleLoop5;
function LOAD_ICYMI_DEHYDRATED_74963({items}) { // fn#74963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9764:2479, offset: 0x01d9e908, size: 265 bytes, params: 2, frame: 25
var r3;
var external_content_application_id;
var r11;
var value5;
var type;
var ICYMIItemTypes;
var MESSAGE;
var readIdToTimestampMap;
var id;
var value6;
var data;
var message_context;
var value7;
var moduleValue;
var isItemUnreadInChannel;
var channel_id;
var message_id;
var isItemUnreadInChannel2;
var value8;
const value3 = _createForOfIteratorHelperLoose_74951(items);
const value4 = value3();
let done = value4.done;
if (!done) {
r3 = value4;
while (true) {
value5 = r3.value;
type = value5.type;
ICYMIItemTypes = (require(7230) /* metro dependency 7230: ICYMITypes */).ICYMIItemTypes;
MESSAGE = ICYMIItemTypes.MESSAGE;
if (type === MESSAGE) {
readIdToTimestampMap = env0_8.readIdToTimestampMap;
id = value5.id;
value6 = readIdToTimestampMap[id] != null;
if (value6) {
r11 = value6;
continue;
}
data = value5.data;
message_context = data.message_context;
if (message_context == null) {
external_content_application_id = undefined;
continue;
}
external_content_application_id = message_context.external_content_application_id;
value7 = external_content_application_id != null;
r11 = value7;
if (r11) {
continue;
}
moduleValue = require(9579) /* metro dependency 9579: ICYMIUtils */;
isItemUnreadInChannel = moduleValue.isItemUnreadInChannel;
data = value5.data;
channel_id = data.channel_id;
data = value5.data;
message_id = data.message_id;
isItemUnreadInChannel2 = Reflect.apply(isItemUnreadInChannel, moduleValue, [channel_id, message_id]);
r11 = isItemUnreadInChannel2;
if (r11) {
break;
}
readIdToTimestampMap = env0_8.readIdToTimestampMap;
id = value5.id;
readIdToTimestampMap[id] = 0;
break;
}
value8 = value3();
done = value8.done;
if (done) {
break;
}
r3 = value8;
continue;
}
r2 = value8;
continue reducibleLoop5;
}
}
}
function value_74958(a0) { // fn#74958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9764:2010, offset: 0x01d9e872, size: 22 bytes, params: 2, frame: 2
return env1_8.readIdToTimestampMap[a0];
}
function _fun74962(a0) { // fn#74962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9764:2356, offset: 0x01d9e8b2, size: 86 bytes, params: 2, frame: 5
var r1;
let value = a0 != null;
if (value) {
value = environment.__proto__;
value = env1_8.readIdToTimestampMap[a0.id] == null;
r1 = value || override;
} else {
r1 = value;
}
if (r1) {
value = environment.__proto__;
env1_8.readIdToTimestampMap[a0.id] = a0.timestamp;
function CLEAR_ICYMI_READ_STATES() { // fn#74964, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9764:2890, offset: 0x01d9ea11, size: 19 bytes, params: 1, frame: 2
env0_8.readIdToTimestampMap = {};
}
}
function _fun74957(a0) { // fn#74957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9764:1844, offset: 0x01d9e851, size: 33 bytes, params: 2, frame: 2
return env2_8.readIdToTimestampMap[a0] < env0_0;
}
global.__d(_fun74947, 9578, [6, 7, 15, 17, 18, 672, 7230, 9579, 566, 694,
2]) /* metro module 9578, dependencies: [6, 7, 15, 17, 18, 672, 7230, 9579, 566, 694, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,19 +1,30 @@
/* Metro module 14852; source: modules/icymi/native/AnnouncementMessageRow.tsx; dependencies: [31, 27, 1379, 1867, 3793, 4864, 1878, 14853, 33, 14815, 697, 566, 6593, 9580, 12129, 11401, 14854, 9579, 14856, 1244, 21, 5278, 9122, 14858, 14862, 2] */
import SnowflakeUtils from '../../../utils/SnowflakeUtils.tsx'; /* Metro dependency 21 */
import ChannelStore from '../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import GuildStore from '../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import RelationshipStore from '../../../stores/RelationshipStore.tsx'; /* Metro dependency 3793 */
import UserGuildSettingsStore from '../../../stores/UserGuildSettingsStore.tsx'; /* Metro dependency 4864 */
import GetChannelA11yLabel from '../../channel/getChannelA11yLabel.tsx'; /* Metro dependency 9122 */
import ICYMIActionCreators from '../ICYMIActionCreators.tsx'; /* Metro dependency 9580 */
import ICYMICardInCard from './ICYMICardInCard.tsx'; /* Metro dependency 14856 */
import ICYMICardInteractionRow from './ICYMICardInteractionRow.tsx'; /* Metro dependency 14862 */
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 FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as PressablesModule from '../../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */
import * as GetChannelA11yLabelModule from '../../channel/getChannelA11yLabel.tsx'; /* Metro dependency 9122 */
import * as ICYMIUtilsModule from '../ICYMIUtils.tsx'; /* Metro dependency 9579 */
import * as ShowLongPressMessageActionSheetModule from '../../messages/native/long_press/showLongPressMessageActionSheet.tsx'; /* Metro dependency 11401 */
import * as DesignConstantsModule from './DesignConstants.tsx'; /* Metro dependency 14853 */
import * as ICYMIMessageRowModule from './ICYMIMessageRow.tsx'; /* Metro dependency 14858 */
function _fun112236(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112236, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15049:6, offset: 0x023c02f6, size: 329 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const value = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_10 = (require(14853) /* metro dependency 14853: DesignConstants */).ITEM_PADDING;
const value2 = require(33) /* metro dependency 33 */;
const env0_11 = value2.jsx;
const env0_12 = value2.jsxs;
const env0_13 = (require(14815) /* metro dependency 14815: createICYMIStyles */).createICYMIStyles(function(a0) {
var object = {};
object.pressable = {flex: 1, paddingLeft: a0.inset};
@@ -24,157 +35,163 @@ function _fun112236(global, require, importDefault, importAll, module, exports,
object.footer = object3;
return object;
});
const env0_14 = value.memo(_fun112238);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/AnnouncementMessageRow.tsx');
const env0_14 = ReactModule.memo(_fun112238);
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/AnnouncementMessageRow.tsx');
exports.default = AnnouncementMessageRowWrapper;
}
function _fun112238({unread, message, guild, channel, visible}) { // fn#112238, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15049:404, offset: 0x023c04ab, size: 767 bytes, params: 2, frame: 32
const value3 = (FluxModule).useStateFromStores([UserGuildSettingsStore],
_fun112239);
const value4 = env0_13();
let binding = env0_3;
binding.useEffect(_fun112240, [guild?.id, message.author.id]);
binding = env0_3;
const value5 = binding.useCallback(_fun112241, [channel.id, message.id]);
const value6 = binding.useCallback(_fun112242, [channel, message]);
const value7 = binding.useCallback(_fun112243, [message, channel.id, guild.id]);
const value8 = (ICYMIUtilsModule).useGravityMessage(message);
object = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.actionLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['8P08G9']);
object.id = message.id;
object.interactionType = 'announcement';
object.channelId = channel.id;
const defaultImport2 = SnowflakeUtils;
object.timestamp = defaultImport2.extractTimestamp(message.id);
object.onHeaderPress = value7;
object.onHeaderLongPress = value5;
object.message = value8;
object.shouldFeatureUser = true;
const PressableHighlight = (PressablesModule).PressableHighlight;
const pressableHighlightProps = {onPress: value7, onLongPress: value6, accessibilityRole: 'button',
accessibilityLabel: (GetChannelA11yLabel)({channel: channel,
unread: unread}),
accessibilityHint: (GetChannelA11yLabelModule).getChannelA11yHint({channel: channel,
muted: value3}), unstable_pressDelay: 130, style: value4.pressable};
const MessageRowContent = (ICYMIMessageRowModule).MessageRowContent;
return (
<ICYMICardInCard {...object}>
<PressableHighlight {...pressableHighlightProps}>
<MessageRowContent
message={message}
channel={channel}
guild={guild}
lineClamp={5}
visible={visible}
/>
</PressableHighlight>
<View style={value4.footer}>
{((Component) => <Component message={message} channel={channel} guild={guild} backgroundVariant="base" id={message.id} itemType="announcement" />)(ICYMICardInteractionRow)}
</View>
</ICYMICardInCard>
);
function _fun112239() { // fn#112239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15049:502, offset: 0x023c07aa, size: 43 bytes, params: 1, frame: 13
const value = environment.__proto__;
const userGuildSettingsStoreBinding = UserGuildSettingsStore;
const isChannelMuted = userGuildSettingsStoreBinding.isChannelMuted;
const channelBinding = channel;
return Reflect.apply(isChannelMuted, userGuildSettingsStoreBinding, [channelBinding.getGuildId(),
channelBinding.id]);
}
function _fun112238({unread, message, guild, channel, visible}) { // fn#112238, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15049:404, offset: 0x023c04ab, size: 767 bytes, params: 2, frame: 32
var object2;
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserGuildSettingsStore],
_fun112239);
const value4 = env0_13();
let binding = env0_3;
binding.useEffect(_fun112240, [guild?.id, message.author.id]);
binding = env0_3;
const value5 = binding.useCallback(_fun112241, [channel.id, message.id]);
const value6 = binding.useCallback(_fun112242, [channel, message]);
const value7 = binding.useCallback(_fun112243, [message, channel.id, guild.id]);
const value8 = (require(9579) /* metro dependency 9579: ICYMIUtils */).useGravityMessage(message);
const ICYMICardInCard = importDefault(14856) /* metro dependency 14856: ICYMICardInCard */;
object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.actionLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['8P08G9']);
object2.id = message.id;
object2.interactionType = 'announcement';
object2.channelId = channel.id;
const defaultImport2 = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
object2.timestamp = defaultImport2.extractTimestamp(message.id);
object2.onHeaderPress = value7;
object2.onHeaderLongPress = value5;
object2.message = value8;
object2.shouldFeatureUser = true;
const PressableHighlight = (require(5278) /* metro dependency 5278: Pressables */).PressableHighlight;
const pressableHighlightProps = {onPress: value7, onLongPress: value6, accessibilityRole: 'button',
accessibilityLabel: (importDefault(9122) /* metro dependency 9122: getChannelA11yLabel */)({channel: channel,
unread: unread}),
accessibilityHint: (require(9122) /* metro dependency 9122: getChannelA11yLabel */).getChannelA11yHint({channel: channel,
muted: value3}), unstable_pressDelay: 130, style: value4.pressable};
const MessageRowContent = (require(14858) /* metro dependency 14858: ICYMIMessageRow */).MessageRowContent;
return (
<ICYMICardInCard {...object2}>
<PressableHighlight {...pressableHighlightProps}>
<MessageRowContent
message={message}
channel={channel}
guild={guild}
lineClamp={5}
visible={visible}
/>
</PressableHighlight>
<View style={value4.footer}>
{((Component) => <Component message={message} channel={channel} guild={guild} backgroundVariant="base" id={message.id} itemType="announcement" />)(importDefault(14862) /* metro dependency 14862: ICYMICardInteractionRow */)}
</View>
</ICYMICardInCard>
);
}
function _fun112240() { // fn#112240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15049:565, offset: 0x023c07d5, size: 107 bytes, params: 1, frame: 15
var value3;
var defaultImport;
const guildBinding = guild;
const value2 = undefined;
if ((guildBinding == null ? value2 : guild.id) != null) {
value3 = environment.__proto__;
defaultImport = importDefault(6593) /* metro dependency 6593: GuildActionCreators */;
defaultImport.requestMembersById(guild == null ? value2 : guild.id, message.author.id);
}
return value2;
}
function AnnouncementMessageRowWrapper({unread, message, visible}) { // fn#112244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15049:2719, offset: 0x023c0a93, size: 300 bytes, params: 2, frame: 23
const fluxModule = require(566) /* metro dependency 566: flux */;
let useStateFromStores = fluxModule.useStateFromStores;
const channel = Reflect.apply(useStateFromStores, fluxModule, [[ChannelStore], function() {
return ChannelStore.getChannel(message.getChannelId());
}]);
const guild = fluxModule.useStateFromStores([GuildStore], function() {
return GuildStore.getGuild(channel?.guild_id);
});
const value3 = (require(9579) /* metro dependency 9579: ICYMIUtils */).useGravityMessage(message);
const author = value3?.author;
const moduleValue4 = fluxModule;
useStateFromStores = moduleValue4.useStateFromStores;
return channel == null || guild == null || (value3 == null || author == null) || Reflect.apply(useStateFromStores,
moduleValue4, [[RelationshipStore], function() {
return RelationshipStore.isBlockedOrIgnored(author?.id);
}]) ? null : ((Component) => <Component unread={unread} message={value3} channel={channel} guild={guild} visible={visible} />)(env0_14);
}
function _fun112241() { // fn#112241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15049:718, offset: 0x023c0840, size: 154 bytes, params: 1, frame: 22
let value = environment.__proto__;
const defaultImport = ICYMIActionCreators;
const itemInteracted = defaultImport.itemInteracted;
const messageBinding = message;
Reflect.apply(itemInteracted, defaultImport, [messageBinding.id, 'announcement', 'long_press_channel']);
defaultImport.feedItemActioned({itemId: messageBinding.id, itemType: 'announcement',
actionParameters: {'actionGestureType': 'long_press', 'actionTargetElement': 'item_header',
'actionIntentType': 'open', 'actionDestinationType': 'channel'}});
value = require(12129) /* metro dependency 12129: openChannelLongPressActionSheet */;
value.openChannelLongPressActionSheet(channel.id);
}
function _fun112239() { // fn#112239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15049:502, offset: 0x023c07aa, size: 43 bytes, params: 1, frame: 13
const value = environment.__proto__;
const isChannelMuted = UserGuildSettingsStore.isChannelMuted;
const channelBinding = channel;
return Reflect.apply(isChannelMuted, UserGuildSettingsStore, [channelBinding.getGuildId(), channelBinding.id]);
}
function _fun112242() { // fn#112242, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15049:1073, offset: 0x023c08da, size: 189 bytes, params: 1, frame: 22
const value = environment.__proto__;
const defaultImport = ICYMIActionCreators;
const itemInteracted = defaultImport.itemInteracted;
const messageBinding = message;
Reflect.apply(itemInteracted, defaultImport, [messageBinding.id, 'announcement', 'long_press_message']);
defaultImport.feedItemActioned({itemId: messageBinding.id, itemType: 'announcement',
actionParameters: {'actionGestureType': 'long_press', 'actionTargetElement': 'item_container',
'actionIntentType': 'open', 'actionDestinationType': 'channel'}});
(ShowLongPressMessageActionSheetModule).showLongPressMessageActionSheet({channel: channel,
message: messageBinding, user: UserStore.getUser(messageBinding.author.id)});
}
function _fun112243() { // fn#112243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15049:1478, offset: 0x023c0997, size: 252 bytes, params: 1, frame: 22
var defaultImport3;
var ackGravityItems;
var navigateToPost;
let value = environment.__proto__;
const defaultImport = ICYMIActionCreators;
const itemInteracted = defaultImport.itemInteracted;
let messageBinding = message;
let id = messageBinding.id;
Reflect.apply(itemInteracted, defaultImport, [id, 'announcement', 'press_message']);
const defaultImport2 = defaultImport;
const feedItemActioned = defaultImport2.feedItemActioned;
let object = {};
object.itemId = messageBinding.id;
object.itemType = 'announcement';
object.actionParameters = {'actionGestureType': 'press', 'actionTargetElement': 'item_container',
'actionIntentType': 'navigate', 'actionDestinationType': 'channel'};
Reflect.apply(feedItemActioned, defaultImport2, [object]);
if (messageBinding != null) {
defaultImport3 = defaultImport;
ackGravityItems = defaultImport3.ackGravityItems;
object = {};
messageBinding = message;
id = messageBinding.id;
object.id = id;
object.timestamp = global.Date.now();
Reflect.apply(ackGravityItems, defaultImport3, [[object]]);
value = require(14854) /* metro dependency 14854: ICYMIShared */;
navigateToPost = value.navigateToPost;
id = channel.id;
Reflect.apply(navigateToPost, value, [id, guild.id, messageBinding.id]);
}
}
function _fun112240() { // fn#112240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15049:565, offset: 0x023c07d5, size: 107 bytes, params: 1, frame: 15
var value3;
var defaultImport;
const guildBinding = guild;
const value2 = undefined;
if ((guildBinding == null ? value2 : guild.id) != null) {
value3 = environment.__proto__;
defaultImport = importDefault(6593) /* metro dependency 6593: GuildActionCreators */;
defaultImport.requestMembersById(guild == null ? value2 : guild.id, message.author.id);
}
return value2;
}
function _fun112241() { // fn#112241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15049:718, offset: 0x023c0840, size: 154 bytes, params: 1, frame: 22
let value = environment.__proto__;
const defaultImport = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
const itemInteracted = defaultImport.itemInteracted;
const messageBinding = message;
Reflect.apply(itemInteracted, defaultImport, [messageBinding.id, 'announcement', 'long_press_channel']);
defaultImport.feedItemActioned({itemId: messageBinding.id, itemType: 'announcement',
actionParameters: {'actionGestureType': 'long_press', 'actionTargetElement': 'item_header',
'actionIntentType': 'open', 'actionDestinationType': 'channel'}});
value = require(12129) /* metro dependency 12129: openChannelLongPressActionSheet */;
value.openChannelLongPressActionSheet(channel.id);
}
function _fun112242() { // fn#112242, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15049:1073, offset: 0x023c08da, size: 189 bytes, params: 1, frame: 22
const value = environment.__proto__;
const defaultImport = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
const itemInteracted = defaultImport.itemInteracted;
const messageBinding = message;
Reflect.apply(itemInteracted, defaultImport, [messageBinding.id, 'announcement', 'long_press_message']);
defaultImport.feedItemActioned({itemId: messageBinding.id, itemType: 'announcement',
actionParameters: {'actionGestureType': 'long_press', 'actionTargetElement': 'item_container',
'actionIntentType': 'open', 'actionDestinationType': 'channel'}});
(require(11401) /* metro dependency 11401: showLongPressMessageActionSheet */).showLongPressMessageActionSheet({channel: channel,
message: messageBinding, user: UserStore.getUser(messageBinding.author.id)});
}
function _fun112243() { // fn#112243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15049:1478, offset: 0x023c0997, size: 252 bytes, params: 1, frame: 22
var defaultImport3;
var ackGravityItems;
var navigateToPost;
let value = environment.__proto__;
const defaultImport = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
const itemInteracted = defaultImport.itemInteracted;
let messageBinding = message;
let id = messageBinding.id;
Reflect.apply(itemInteracted, defaultImport, [id, 'announcement', 'press_message']);
const defaultImport2 = defaultImport;
const feedItemActioned = defaultImport2.feedItemActioned;
let object2 = {};
object2.itemId = messageBinding.id;
object2.itemType = 'announcement';
object2.actionParameters = {'actionGestureType': 'press', 'actionTargetElement': 'item_container',
'actionIntentType': 'navigate', 'actionDestinationType': 'channel'};
Reflect.apply(feedItemActioned, defaultImport2, [object2]);
if (messageBinding != null) {
defaultImport3 = defaultImport;
ackGravityItems = defaultImport3.ackGravityItems;
object2 = {};
messageBinding = message;
id = messageBinding.id;
object2.id = id;
object2.timestamp = global.Date.now();
Reflect.apply(ackGravityItems, defaultImport3, [[object2]]);
value = require(14854) /* metro dependency 14854: ICYMIShared */;
navigateToPost = value.navigateToPost;
id = channel.id;
Reflect.apply(navigateToPost, value, [id, guild.id, messageBinding.id]);
function AnnouncementMessageRowWrapper({unread, message, visible}) { // fn#112244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15049:2719, offset: 0x023c0a93, size: 300 bytes, params: 2, frame: 23
let useStateFromStores = FluxModule.useStateFromStores;
const channel = Reflect.apply(useStateFromStores, FluxModule, [[ChannelStore], function() {
return ChannelStore.getChannel(message.getChannelId());
}]);
const guild = FluxModule.useStateFromStores([GuildStore], function() {
return GuildStore.getGuild(channel?.guild_id);
});
const value3 = (ICYMIUtilsModule).useGravityMessage(message);
const author = value3?.author;
useStateFromStores = FluxModule.useStateFromStores;
return (
channel == null || guild == null || (value3 == null || author == null) || Reflect.apply(useStateFromStores,
FluxModule, [[RelationshipStore], function() {
var relationshipStoreBinding = RelationshipStore;
return relationshipStoreBinding.isBlockedOrIgnored(author?.id);
}])
? null
: ((Component) => <Component unread={unread} message={value3} channel={channel} guild={guild} visible={visible} />)(env0_14)
);
}
}
global.__d(_fun112236, 14852, [31, 27, 1379, 1867, 3793, 4864, 1878, 14853, 33, 14815, 697, 566, 6593, 9580, 12129,
11401, 14854, 9579, 14856, 1244, 21, 5278, 9122, 14858, 14862,
2]) /* metro module 14852, dependencies: [31, 27, 1379, 1867, 3793, 4864, 1878, 14853, 33, 14815, 697, 566, 6593, 9580, 12129, 11401, 14854, 9579, 14856, 1244, 21, 5278, 9122, 14858, 14862, 2] */;
@@ -1,35 +1,41 @@
/* Metro module 14883; source: modules/icymi/native/CardHeightMeasurer.tsx; dependencies: [31, 27, 33, 14816, 9580, 2] */
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 ICYMIContextModule from './ICYMIContext.tsx'; /* Metro dependency 14816 */
function _fun112597(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112597, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15080:6, offset: 0x023d3fe8, size: 173 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
let value = ReactModule;
value = value.memo(_fun112598);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/CardHeightMeasurer.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/CardHeightMeasurer.tsx');
exports.CardHeightMeasurer = value;
function _fun112598({itemId, children}) { // fn#112598, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15080:145, offset: 0x023d4095, size: 154 bytes, params: 2, frame: 18
const binding = env0_3;
const useContext = binding.useContext;
const ICYMIContext = (ICYMIContextModule).ICYMIContext;
return (
<View
onLayout={binding.useCallback(_fun112599, [itemId])}
pointerEvents="box-none"
style={{width: Reflect.apply(useContext, binding, [ICYMIContext]).width, alignSelf: 'center'}}
>
{children}
</View>
);
function _fun112599({nativeEvent}) { // fn#112599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15080:241, offset: 0x023d412f, size: 66 bytes, params: 2, frame: 14
const height = nativeEvent.layout.height;
let value = environment.__proto__;
value = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
value.setCardHeight(itemId, height);
}
}
}
function _fun112598({itemId, children}) { // fn#112598, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15080:145, offset: 0x023d4095, size: 154 bytes, params: 2, frame: 18
const binding = env0_3;
const useContext = binding.useContext;
const ICYMIContext = (require(14816) /* metro dependency 14816: ICYMIContext */).ICYMIContext;
return (
<View
onLayout={binding.useCallback(_fun112599, [itemId])}
pointerEvents="box-none"
style={{width: Reflect.apply(useContext, binding, [ICYMIContext]).width, alignSelf: 'center'}}
>
{children}
</View>
);
}
function _fun112599({nativeEvent}) { // fn#112599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15080:241, offset: 0x023d412f, size: 66 bytes, params: 2, frame: 14
const height = nativeEvent.layout.height;
let value = environment.__proto__;
value = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
value.setCardHeight(itemId, height);
}
global.__d(_fun112597, 14883, [31, 27, 33, 14816, 9580,
2]) /* metro module 14883, dependencies: [31, 27, 33, 14816, 9580, 2] */;
+341 -293
View File
@@ -1,313 +1,361 @@
/* Metro module 14878; source: modules/icymi/native/CaughtUpRow.tsx; dependencies: [5, 57, 31, 27, 33, 4017, 4573, 14815, 697, 9580, 14832, 14828, 4008, 4504, 3860, 10231, 1244, 4578, 14854, 4589, 676, 674, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Module00674 from '../../../by-id/module-00674.js'; /* Metro dependency 674 */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ReanimatedRexport from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import ICYMIActionCreators from '../ICYMIActionCreators.tsx'; /* Metro dependency 9580 */
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 ConstantsIOSModule from '../../../ConstantsIOS.tsx'; /* Metro dependency 676 */
import * as UseTokenModule from '../../../design/tokens/native/useToken.tsx'; /* Metro dependency 3860 */
import * as ReanimatedRexportModule from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as FlashIconModule from '../../../design/components/Icon/native/redesign/generated/FlashIcon.tsx'; /* Metro dependency 10231 */
import * as CreateICYMIStylesModule from './createICYMIStyles.tsx'; /* Metro dependency 14815 */
import * as ICYMISharedModule from './ICYMIShared.tsx'; /* Metro dependency 14854 */
function _fun112546(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112546, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15075:6, offset: 0x023d0ee1, size: 330 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = importDefault(57) /* metro dependency 57 */;
const env0_5 = importAll(31) /* metro dependency 31 */;
const env0_6 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_7 = value.jsx;
const env0_8 = value.jsxs;
value = importDefault(4017) /* metro dependency 4017: ReanimatedRexport */;
const createAnimatedComponent = value.createAnimatedComponent;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const Text = (TextModule).Text;
const env0_9 = Reflect.apply(createAnimatedComponent, value, [Text]);
const env0_10 = (require(14815) /* metro dependency 14815: createICYMIStyles */).createICYMIStyles(_fun112547);
const env0_10 = (CreateICYMIStylesModule).createICYMIStyles(_fun112547);
object = {code: 'function CaughtUpRowTsx1(){const{visibleSharedValue,withTiming,Easing}=this.__closure;return{transform:[{translateY:visibleSharedValue.get()?withTiming(0,{duration:250,easing:Easing.bezier(0.5,1.8,0.5,1)}):-80}],opacity:visibleSharedValue.get()?withTiming(1,{duration:100,easing:Easing.out(Easing.bezierFn(0.33,1,0.68,1))}):0};}'};
object = {code: 'function CaughtUpRowTsx2(){const{visibleSharedValue,withDelay,withSequence,withTiming,Easing}=this.__closure;return{transform:[{translateY:visibleSharedValue.get()?withDelay(80,withSequence(withTiming(8,{duration:100,easing:Easing.inOut(Easing.ease)}),withTiming(0,{duration:300,easing:Easing.out(Easing.ease)}))):0}]};}'};
object = {code: 'function CaughtUpRowTsx3(){const{visibleSharedValue,withDelay,withSequence,withTiming,Easing}=this.__closure;return{transform:[{translateY:visibleSharedValue.get()?withDelay(115,withSequence(withTiming(8,{duration:150,easing:Easing.inOut(Easing.ease)}),withTiming(0,{duration:300,easing:Easing.out(Easing.ease)}))):0}]};}'};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/CaughtUpRow.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/CaughtUpRow.tsx');
exports.default = ExploreServersRow;
}
function _fun112547(a0) { // fn#112547, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15075:245, offset: 0x023d102b, size: 344 bytes, params: 2, frame: 17
const object2 = {};
const PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
object2.container = {'flex': 1, 'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center',
marginVertical: PX_32};
const object4 = {};
object4.marginHorizontal = a0.margin;
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object4.marginBottom = PX_24;
object2.textContainer = object4;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object2.recommendedGuildsContainer = {flex: 1, marginBottom: PX_24};
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object2.iconWrapper = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', marginBottom: PX_24};
object2.icon = {'height': 40, 'width': 40};
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.headerText = {'alignSelf': 'center', 'marginBottom': null, 'textAlign': 'center', marginBottom: PX_8};
object2.subtitleText = {'alignSelf': 'center', 'textAlign': 'center'};
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object2.buttonContainer = {'flex': 1, 'width': '100%', gap: PX_12, paddingHorizontal: a0.margin};
object2.gradient = {'position': 'absolute', 'top': 0, 'left': 0, 'right': 0, 'height': 150};
return object2;
}
function ExploreServersRow({visible}) { // fn#112548, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15075:2017, offset: 0x023d1183, size: 1477 bytes, params: 2, frame: 33
var object2;
const value2 = env0_10();
const value3 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(false);
let binding = env0_5;
binding.useEffect(_fun112549, [visible, value3]);
const [property, env0_2] = env0_4(binding.useState(false), 2);
const value7 = binding.useCallback(env0_3(_fun112552), []);
let closure = _fun112555;
const value8 = binding.useCallback(closure, []);
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
let useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
closure = ExploreServersRowE;
object2 = {visibleSharedValue: value3};
object2.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
const Easing = reanimatedRexportModule.Easing;
object2.Easing = Easing;
closure.__closure = object2;
closure.__workletHash = 6575188656069;
closure.__initData = env0_11;
const value9 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
const moduleValue3 = reanimatedRexportModule;
useAnimatedStyle = moduleValue3.useAnimatedStyle;
closure = ExploreServersRowB;
object2 = {visibleSharedValue: value3};
object2.withDelay = reanimatedRexportModule.withDelay;
object2.withSequence = reanimatedRexportModule.withSequence;
object2.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
object2.Easing = Easing;
closure.__closure = object2;
closure.__workletHash = 469742746264;
closure.__initData = env0_12;
const value10 = Reflect.apply(useAnimatedStyle, moduleValue3, [closure]);
const moduleValue4 = reanimatedRexportModule;
useAnimatedStyle = moduleValue4.useAnimatedStyle;
closure = ExploreServersRowX;
object2 = {visibleSharedValue: value3};
object2.withDelay = reanimatedRexportModule.withDelay;
object2.withSequence = reanimatedRexportModule.withSequence;
object2.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
object2.Easing = Easing;
closure.__closure = object2;
closure.__workletHash = 14933607481025;
closure.__initData = env0_13;
const value11 = Reflect.apply(useAnimatedStyle, moduleValue4, [closure]);
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
const useToken = useTokenModule.useToken;
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
const value12 = Reflect.apply(useToken, useTokenModule, [BACKGROUND_BRAND]);
const container = value2.container;
const textContainer = value2.textContainer;
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
const items4 = [value2.iconWrapper, value9];
const FlashIcon = (require(10231) /* metro dependency 10231: FlashIcon */).FlashIcon;
const items2 = [<View2 style={items4}><FlashIcon size="custom" style={value2.icon} color="background-brand" /></View2>];
binding = env0_9;
const items3 = [value2.headerText, value10];
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
items2[1] = ((Component) => <Component variant="heading-lg/semibold" color="mobile-text-heading-primary" style={items3}>{Reflect.apply(string,
intl, [(require(1244) /* metro dependency 1244: indexNative */).t.xjxffq])}</Component>)(binding);
items2[2] = ((Component) => <Component variant="text-md/normal" color="text-default" style={[value2.subtitleText,
value11]}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.sAApb0)}</Component>)(binding);
const items5 = [<View style={textContainer}>{items2}</View>];
const buttonContainer = value2.buttonContainer;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
let value = <Button size="md" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.lNJYV8)} grow variant="primary" onPress={value7} loading={property} />;
string = intl.string;
const AGrUbj = (require(1244) /* metro dependency 1244: indexNative */).t.AGrUbj;
items5[1] = <View style={buttonContainer}>{value}<Button size="md" text={Reflect.apply(string, intl,
[AGrUbj])} grow variant="secondary" onPress={value8} /></View>;
const items7 = [<View style={container}>{items5}</View>];
const Separator = (require(14854) /* metro dependency 14854: ICYMIShared */).Separator;
items7[1] = <Separator />;
value = importDefault(4589) /* metro dependency 4589 */;
const gradient = value2.gradient;
const {START, END} = (require(676) /* metro dependency 676: ConstantsIOS */).VerticalGradient;
const value15 = (importDefault(674) /* metro dependency 674 */)(value12).alpha(0.2);
const items8 = [value15.hex()];
const value18 = (importDefault(674) /* metro dependency 674 */)(value12).alpha(0);
items8[1] = value18.hex();
items7[2] = ((Component) => <Component style={gradient} start={START} end={END} colors={items8} pointerEvents="none" />)(value);
return (
<View>
{items7}
</View>
);
}
function _fun112549() { // fn#112549, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15075:2109, offset: 0x023d1748, size: 69 bytes, params: 1, frame: 13
if (visible && env0_1.get() !== visible) {
global.setTimeout(_fun112550, 500);
function _fun112547(a0) { // fn#112547, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15075:245, offset: 0x023d102b, size: 344 bytes, params: 2, frame: 17
const object = {};
const PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
object.container = {'flex': 1, 'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center',
marginVertical: PX_32};
const object3 = {};
object3.marginHorizontal = a0.margin;
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object3.marginBottom = PX_24;
object.textContainer = object3;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object.recommendedGuildsContainer = {flex: 1, marginBottom: PX_24};
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object.iconWrapper = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', marginBottom: PX_24};
object.icon = {'height': 40, 'width': 40};
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object.headerText = {'alignSelf': 'center', 'marginBottom': null, 'textAlign': 'center', marginBottom: PX_8};
object.subtitleText = {'alignSelf': 'center', 'textAlign': 'center'};
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object.buttonContainer = {'flex': 1, 'width': '100%', gap: PX_12, paddingHorizontal: a0.margin};
object.gradient = {'position': 'absolute', 'top': 0, 'left': 0, 'right': 0, 'height': 150};
return object;
}
}
function* _fun112552() { // fn#112552, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15075:2242, offset: 0x023d17af, size: 198 bytes, params: 1, frame: 20
var environment;
if (true) {
value = environment.__proto__;
dependencyMap(true);
value = environment.__proto__.__proto__;
var binding = env2_1;
var binding2 = env2_2;
binding(binding2[9]).itemInteracted('caught_up', 'caught_up', 'press_explore');
binding(binding2[9]).feedItemActioned({'itemId': 'caught_up', 'itemType': 'caught_up',
actionParameters: {'actionGestureType': 'press', 'actionTargetElement': 'browse_servers_button',
'actionIntentType': 'open', 'actionDestinationType': null}});
value = env2_0(binding2[10]);
yield value.maybeFetchGuildDiscoveryCategories();
if (false) {
return undefined;
function ExploreServersRow({visible}) { // fn#112548, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15075:2017, offset: 0x023d1183, size: 1477 bytes, params: 2, frame: 33
const value2 = env0_10();
const value3 = (ReanimatedRexportModule).useSharedValue(false);
let binding = ReactModule;
binding.useEffect(_fun112549, [visible, value3]);
const [property, env0_2] = Module00057(binding.useState(false), 2);
const value7 = binding.useCallback(Module00005(_fun112552), []);
let closure = _fun112555;
const value8 = binding.useCallback(closure, []);
let useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
closure = ExploreServersRowE;
object = {visibleSharedValue: value3};
object.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
const Easing = ReanimatedRexportModule.Easing;
object.Easing = Easing;
closure.__closure = object;
closure.__workletHash = 6575188656069;
closure.__initData = env0_11;
const value9 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]);
useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
closure = ExploreServersRowB;
object = {visibleSharedValue: value3};
object.withDelay = ReanimatedRexportModule.withDelay;
object.withSequence = ReanimatedRexportModule.withSequence;
object.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
object.Easing = Easing;
closure.__closure = object;
closure.__workletHash = 469742746264;
closure.__initData = env0_12;
const value10 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]);
useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
closure = ExploreServersRowX;
object = {visibleSharedValue: value3};
object.withDelay = ReanimatedRexportModule.withDelay;
object.withSequence = ReanimatedRexportModule.withSequence;
object.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
object.Easing = Easing;
closure.__closure = object;
closure.__workletHash = 14933607481025;
closure.__initData = env0_13;
const value11 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]);
const useToken = UseTokenModule.useToken;
const BACKGROUND_BRAND = (Native).colors.BACKGROUND_BRAND;
const value12 = Reflect.apply(useToken, UseTokenModule, [BACKGROUND_BRAND]);
const container = value2.container;
const textContainer = value2.textContainer;
const View2 = (ReanimatedRexport).View;
const items4 = [value2.iconWrapper, value9];
const FlashIcon = (FlashIconModule).FlashIcon;
const items2 = [
<View2 style={items4}>
<FlashIcon
size="custom"
style={value2.icon}
color="background-brand"
/>
</View2>,
];
binding = env0_9;
const items3 = [value2.headerText, value10];
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
items2[1] = ((Component) => <Component variant="heading-lg/semibold" color="mobile-text-heading-primary" style={items3}>{Reflect.apply(string,
intl, [(require(1244) /* metro dependency 1244: indexNative */).t.xjxffq])}</Component>)(binding);
items2[2] = ((Component) => <Component variant="text-md/normal" color="text-default" style={[value2.subtitleText,
value11]}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.sAApb0)}</Component>)(binding);
const items5 = [
<View style={textContainer}>
{items2}
</View>,
];
const buttonContainer = value2.buttonContainer;
const Button = (ButtonNativeModule).Button;
let value = (
<Button
size="md"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.lNJYV8)}
grow
variant="primary"
onPress={value7}
loading={property}
/>
);
string = intl.string;
const AGrUbj = (require(1244) /* metro dependency 1244: indexNative */).t.AGrUbj;
items5[1] = (
<View style={buttonContainer}>
{value}
<Button
size="md"
text={Reflect.apply(string, intl, [AGrUbj])}
grow
variant="secondary"
onPress={value8}
/>
</View>
);
const items7 = [
<View style={container}>
{items5}
</View>,
];
const Separator = (ICYMISharedModule).Separator;
items7[1] = <Separator />;
value = importDefault(4589) /* metro dependency 4589 */;
const gradient = value2.gradient;
const {START, END} = (ConstantsIOSModule).VerticalGradient;
const value15 = (Module00674)(value12).alpha(0.2);
const items8 = [value15.hex()];
const value18 = (Module00674)(value12).alpha(0);
items8[1] = value18.hex();
items7[2] = ((Component) => <Component style={gradient} start={START} end={END} colors={items8} pointerEvents="none" />)(value);
return (
<View>
{items7}
</View>
);
function _fun112549() { // fn#112549, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15075:2109, offset: 0x023d1748, size: 69 bytes, params: 1, frame: 13
if (visible && env0_1.get() !== visible) {
global.setTimeout(_fun112550, 500);
}
function _fun112550() { // fn#112550, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15075:2142, offset: 0x023d178d, size: 23 bytes, params: 1, frame: 11
env1_1.set(true);
}
}
global.setTimeout(_fun112553, 100);
function* _fun112552() { // fn#112552, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15075:2242, offset: 0x023d17af, size: 198 bytes, params: 1, frame: 20
var environment;
if (true) {
value = environment.__proto__;
dependencyMap(true);
value = environment.__proto__.__proto__;
var binding = env2_1;
var binding2 = env2_2;
binding(binding2[9]).itemInteracted('caught_up', 'caught_up', 'press_explore');
binding(binding2[9]).feedItemActioned({'itemId': 'caught_up', 'itemType': 'caught_up',
actionParameters: {'actionGestureType': 'press', 'actionTargetElement': 'browse_servers_button',
'actionIntentType': 'open', 'actionDestinationType': null}});
value = env2_0(binding2[10]);
yield value.maybeFetchGuildDiscoveryCategories();
if (false) {
return undefined;
}
global.setTimeout(_fun112553, 100);
}
function _fun112553() { // fn#112553, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15075:2596, offset: 0x023d1875, size: 81 bytes, params: 1, frame: 13
var environment;
const value = environment.__proto__.__proto__.__proto__;
env3_0(env3_2[11]).pushICYMIInfoModal({'extendedOnboarding': true, 'skipIntro': true});
global.setTimeout(function() {
dependencyMap(false);
}, 500);
}
}
function _fun112555() { // fn#112555, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15075:2728, offset: 0x023d18d8, size: 164 bytes, params: 1, frame: 19
let value = environment.__proto__;
(ICYMIActionCreators).itemInteracted('caught_up', 'caught_up',
'press_home');
(ICYMIActionCreators).feedItemActioned({'itemId': 'caught_up',
'itemType': 'caught_up', actionParameters: {'actionGestureType': 'press',
'actionTargetElement': 'back_to_home_button', 'actionIntentType': 'navigate',
'actionDestinationType': 'guild_home'}});
value = require(4008) /* metro dependency 4008: RootNavigationRefNative */;
value = value.getRootNavigationRef();
if (value != null) {
value.navigate('tabs', {screen: 'guilds'});
}
}
function ExploreServersRowE() { // fn#112556, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15075:3133, owner: ExploreServersRow.E, offset: 0x023d197c, size: 321 bytes, params: 1, frame: 23
var r2;
var r1;
var value4;
var moduleValue;
var withTiming;
var object;
const Easing = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Easing;
var out;
var Easing2;
const object3 = {};
if (env0_1.get()) {
value4 = environment.__proto__;
moduleValue = require(4504) /* metro dependency 4504: timing */;
withTiming = moduleValue.withTiming;
object = {duration: 250};
object.easing = Easing.bezier(0.5, 1.8, 0.5, 1);
r2 = Reflect.apply(withTiming, moduleValue, [0, object]);
} else {
r2 = -80;
}
object3.transform = [{translateY: r2}];
let value = env0_1.get();
if (value) {
value = environment.__proto__;
value = require(4504) /* metro dependency 4504: timing */;
withTiming = value.withTiming;
out = Easing.out;
Easing2 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Easing;
value = Reflect.apply(withTiming, value, [1, {duration: 100, easing: Reflect.apply(out, Easing,
[Easing2.bezierFn(0.33, 1, 0.68, 1)])}]);
r1 = value;
} else {
r1 = 0;
}
object3.opacity = r1;
return object3;
}
function ExploreServersRowB() { // fn#112557, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15075:3557, owner: ExploreServersRow.b, offset: 0x023d1abd, size: 281 bytes, params: 1, frame: 28
var r1;
var withDelay;
var moduleValue;
var withSequence;
var moduleValue2;
var withTiming;
const Easing = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Easing;
var inOut;
var ease;
var value3;
var moduleValue3;
var out;
let value = env0_1.get();
const value2 = 0;
if (value) {
value = environment.__proto__;
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
withDelay = value.withDelay;
moduleValue = require(4017) /* metro dependency 4017: ReanimatedRexport */;
withSequence = moduleValue.withSequence;
moduleValue2 = require(4504) /* metro dependency 4504: timing */;
withTiming = moduleValue2.withTiming;
inOut = Easing.inOut;
ease = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Easing.ease;
value3 = Reflect.apply(withTiming, moduleValue2, [8, {duration: 100, easing: Reflect.apply(inOut, Easing,
[ease])}]);
moduleValue3 = require(4504) /* metro dependency 4504: timing */;
withTiming = moduleValue3.withTiming;
out = Easing.out;
ease = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Easing.ease;
value = Reflect.apply(withDelay, value, [80, Reflect.apply(withSequence, moduleValue, [value3,
Reflect.apply(withTiming, moduleValue3, [value2, {duration: 300, easing: Reflect.apply(out, Easing,
[ease])}])])]);
r1 = value;
} else {
r1 = value2;
}
return {transform: [{translateY: r1}]};
}
function ExploreServersRowX() { // fn#112558, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15075:4056, owner: ExploreServersRow.x, offset: 0x023d1bd6, size: 281 bytes, params: 1, frame: 28
var r1;
var withDelay;
var moduleValue;
var withSequence;
var moduleValue2;
var withTiming;
const Easing = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Easing;
var inOut;
var ease;
var value3;
var moduleValue3;
var out;
let value = env0_1.get();
const value2 = 0;
if (value) {
value = environment.__proto__;
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
withDelay = value.withDelay;
moduleValue = require(4017) /* metro dependency 4017: ReanimatedRexport */;
withSequence = moduleValue.withSequence;
moduleValue2 = require(4504) /* metro dependency 4504: timing */;
withTiming = moduleValue2.withTiming;
inOut = Easing.inOut;
ease = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Easing.ease;
value3 = Reflect.apply(withTiming, moduleValue2, [8, {duration: 150, easing: Reflect.apply(inOut, Easing,
[ease])}]);
moduleValue3 = require(4504) /* metro dependency 4504: timing */;
withTiming = moduleValue3.withTiming;
out = Easing.out;
ease = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Easing.ease;
value = Reflect.apply(withDelay, value, [115, Reflect.apply(withSequence, moduleValue, [value3,
Reflect.apply(withTiming, moduleValue3, [value2, {duration: 300, easing: Reflect.apply(out, Easing,
[ease])}])])]);
r1 = value;
} else {
r1 = value2;
}
return {transform: [{translateY: r1}]};
}
}
}
function _fun112555() { // fn#112555, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15075:2728, offset: 0x023d18d8, size: 164 bytes, params: 1, frame: 19
let value = environment.__proto__;
(importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */).itemInteracted('caught_up', 'caught_up',
'press_home');
(importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */).feedItemActioned({'itemId': 'caught_up',
'itemType': 'caught_up', actionParameters: {'actionGestureType': 'press',
'actionTargetElement': 'back_to_home_button', 'actionIntentType': 'navigate',
'actionDestinationType': 'guild_home'}});
value = require(4008) /* metro dependency 4008: RootNavigationRefNative */;
value = value.getRootNavigationRef();
if (value != null) {
value.navigate('tabs', {screen: 'guilds'});
}
}
function ExploreServersRowE() { // fn#112556, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15075:3133, owner: ExploreServersRow.E, offset: 0x023d197c, size: 321 bytes, params: 1, frame: 23
var r2;
var r1;
var value4;
var moduleValue;
var withTiming;
var object2;
const Easing = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Easing;
var out;
var Easing2;
const object4 = {};
if (env0_1.get()) {
value4 = environment.__proto__;
moduleValue = require(4504) /* metro dependency 4504: timing */;
withTiming = moduleValue.withTiming;
object2 = {duration: 250};
object2.easing = Easing.bezier(0.5, 1.8, 0.5, 1);
r2 = Reflect.apply(withTiming, moduleValue, [0, object2]);
} else {
r2 = -80;
}
object4.transform = [{translateY: r2}];
let value = env0_1.get();
if (value) {
value = environment.__proto__;
value = require(4504) /* metro dependency 4504: timing */;
withTiming = value.withTiming;
out = Easing.out;
Easing2 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Easing;
value = Reflect.apply(withTiming, value, [1, {duration: 100, easing: Reflect.apply(out, Easing,
[Easing2.bezierFn(0.33, 1, 0.68, 1)])}]);
r1 = value;
} else {
r1 = 0;
}
object4.opacity = r1;
return object4;
}
function ExploreServersRowB() { // fn#112557, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15075:3557, owner: ExploreServersRow.b, offset: 0x023d1abd, size: 281 bytes, params: 1, frame: 28
var r1;
var withDelay;
var moduleValue;
var withSequence;
var moduleValue2;
var withTiming;
const Easing = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Easing;
var inOut;
var ease;
var value3;
var moduleValue3;
var out;
let value = env0_1.get();
const value2 = 0;
if (value) {
value = environment.__proto__;
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
withDelay = value.withDelay;
moduleValue = require(4017) /* metro dependency 4017: ReanimatedRexport */;
withSequence = moduleValue.withSequence;
moduleValue2 = require(4504) /* metro dependency 4504: timing */;
withTiming = moduleValue2.withTiming;
inOut = Easing.inOut;
ease = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Easing.ease;
value3 = Reflect.apply(withTiming, moduleValue2, [8, {duration: 100, easing: Reflect.apply(inOut, Easing,
[ease])}]);
moduleValue3 = require(4504) /* metro dependency 4504: timing */;
withTiming = moduleValue3.withTiming;
out = Easing.out;
ease = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Easing.ease;
value = Reflect.apply(withDelay, value, [80, Reflect.apply(withSequence, moduleValue, [value3,
Reflect.apply(withTiming, moduleValue3, [value2, {duration: 300, easing: Reflect.apply(out, Easing,
[ease])}])])]);
r1 = value;
} else {
r1 = value2;
}
return {transform: [{translateY: r1}]};
}
function ExploreServersRowX() { // fn#112558, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15075:4056, owner: ExploreServersRow.x, offset: 0x023d1bd6, size: 281 bytes, params: 1, frame: 28
var r1;
var withDelay;
var moduleValue;
var withSequence;
var moduleValue2;
var withTiming;
const Easing = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Easing;
var inOut;
var ease;
var value3;
var moduleValue3;
var out;
let value = env0_1.get();
const value2 = 0;
if (value) {
value = environment.__proto__;
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
withDelay = value.withDelay;
moduleValue = require(4017) /* metro dependency 4017: ReanimatedRexport */;
withSequence = moduleValue.withSequence;
moduleValue2 = require(4504) /* metro dependency 4504: timing */;
withTiming = moduleValue2.withTiming;
inOut = Easing.inOut;
ease = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Easing.ease;
value3 = Reflect.apply(withTiming, moduleValue2, [8, {duration: 150, easing: Reflect.apply(inOut, Easing,
[ease])}]);
moduleValue3 = require(4504) /* metro dependency 4504: timing */;
withTiming = moduleValue3.withTiming;
out = Easing.out;
ease = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Easing.ease;
value = Reflect.apply(withDelay, value, [115, Reflect.apply(withSequence, moduleValue, [value3,
Reflect.apply(withTiming, moduleValue3, [value2, {duration: 300, easing: Reflect.apply(out, Easing,
[ease])}])])]);
r1 = value;
} else {
r1 = value2;
}
return {transform: [{translateY: r1}]};
}
function _fun112550() { // fn#112550, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15075:2142, offset: 0x023d178d, size: 23 bytes, params: 1, frame: 11
env1_1.set(true);
}
function _fun112553() { // fn#112553, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15075:2596, offset: 0x023d1875, size: 81 bytes, params: 1, frame: 13
var environment;
const value = environment.__proto__.__proto__.__proto__;
env3_0(env3_2[11]).pushICYMIInfoModal({'extendedOnboarding': true, 'skipIntro': true});
global.setTimeout(function() {
dependencyMap(false);
}, 500);
}
global.__d(_fun112546, 14878, [5, 57, 31, 27, 33, 4017, 4573, 14815, 697, 9580, 14832, 14828, 4008, 4504, 3860,
10231, 1244, 4578, 14854, 4589, 676, 674,
2]) /* metro module 14878, dependencies: [5, 57, 31, 27, 33, 4017, 4573, 14815, 697, 9580, 14832, 14828, 4008, 4504, 3860, 10231, 1244, 4578, 14854, 4589, 676, 674, 2] */;
@@ -1,39 +1,44 @@
/* Metro module 14863; source: modules/icymi/native/ContentInventoryEntryRow.tsx; dependencies: [31, 3793, 33, 566, 8370, 14864, 14873, 2] */
import RelationshipStore from '../../../stores/RelationshipStore.tsx'; /* Metro dependency 3793 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
function _fun112403(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15060:6, offset: 0x023c9f97, size: 154 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/ContentInventoryEntryRow.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/ContentInventoryEntryRow.tsx');
exports.default = ContentInventoryEntryRow;
}
function ContentInventoryEntryRow({content, renderForScreenshot, visible}) { // fn#112404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15060:221, offset: 0x023ca031, size: 315 bytes, params: 2, frame: 19
renderForScreenshot = !(renderForScreenshot === undefined) && renderForScreenshot;
const fluxModule = require(566) /* metro dependency 566: flux */;
const useStateFromStores = fluxModule.useStateFromStores;
if (!Reflect.apply(useStateFromStores, fluxModule, [[RelationshipStore], function() {
return RelationshipStore.isBlockedOrIgnored(content.author_id);
}])) {
var content_type = content.content_type;
var ContentInventoryEntryType = (require(8370) /* metro dependency 8370: ContentInventoryEntryType */).ContentInventoryEntryType;
var TOP_GAME = ContentInventoryEntryType.TOP_GAME;
if (TOP_GAME === content_type) {
return ((Component) => <Component content={content} renderForScreenshot={renderForScreenshot} />)(importDefault(14864) /* metro dependency 14864: GamingLikeEntryRow */);
}
ContentInventoryEntryType = (require(8370) /* metro dependency 8370: ContentInventoryEntryType */).ContentInventoryEntryType;
var PLAYED_GAME = ContentInventoryEntryType.PLAYED_GAME;
if (PLAYED_GAME === content_type) {
return ((Component) => <Component content={content} renderForScreenshot={renderForScreenshot} />)(importDefault(14864) /* metro dependency 14864: GamingLikeEntryRow */);
}
ContentInventoryEntryType = (require(8370) /* metro dependency 8370: ContentInventoryEntryType */).ContentInventoryEntryType;
var CUSTOM_STATUS = ContentInventoryEntryType.CUSTOM_STATUS;
if (CUSTOM_STATUS === content_type) {
return ((Component) => <Component content={content} renderForScreenshot={renderForScreenshot} visible={visible != null && visible} />)(importDefault(14873) /* metro dependency 14873: CustomStatusEntryRow */);
function ContentInventoryEntryRow({content, renderForScreenshot, visible}) { // fn#112404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15060:221, offset: 0x023ca031, size: 315 bytes, params: 2, frame: 19
renderForScreenshot = !(renderForScreenshot === undefined) && renderForScreenshot;
const useStateFromStores = FluxModule.useStateFromStores;
if (!Reflect.apply(useStateFromStores, FluxModule, [[RelationshipStore], function() {
return RelationshipStore.isBlockedOrIgnored(content.author_id);
}])) {
var content_type = content.content_type;
var ContentInventoryEntryType = (require(8370) /* metro dependency 8370: ContentInventoryEntryType */).ContentInventoryEntryType;
var TOP_GAME = ContentInventoryEntryType.TOP_GAME;
if (TOP_GAME === content_type) {
return ((Component) => <Component content={content} renderForScreenshot={renderForScreenshot} />)(importDefault(14864) /* metro dependency 14864: GamingLikeEntryRow */);
}
ContentInventoryEntryType = (require(8370) /* metro dependency 8370: ContentInventoryEntryType */).ContentInventoryEntryType;
var PLAYED_GAME = ContentInventoryEntryType.PLAYED_GAME;
if (PLAYED_GAME === content_type) {
return ((Component) => <Component content={content} renderForScreenshot={renderForScreenshot} />)(importDefault(14864) /* metro dependency 14864: GamingLikeEntryRow */);
}
ContentInventoryEntryType = (require(8370) /* metro dependency 8370: ContentInventoryEntryType */).ContentInventoryEntryType;
var CUSTOM_STATUS = ContentInventoryEntryType.CUSTOM_STATUS;
if (CUSTOM_STATUS === content_type) {
return ((Component) => <Component content={content} renderForScreenshot={renderForScreenshot} visible={visible != null && visible} />)(importDefault(14873) /* metro dependency 14873: CustomStatusEntryRow */);
}
}
return null;
}
return null;
}
global.__d(_fun112403, 14863, [31, 3793, 33, 566, 8370, 14864, 14873,
2]) /* metro module 14863, dependencies: [31, 3793, 33, 566, 8370, 14864, 14873, 2] */;
@@ -1,9 +1,13 @@
/* Metro module 14853; source: modules/icymi/native/DesignConstants.tsx; dependencies: [697, 2] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun112248(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15050:6, offset: 0x023c0c41, size: 104 bytes, params: 8, frame: 16
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/DesignConstants.tsx');
const PX_12 = (Native).space.PX_12;
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/DesignConstants.tsx');
exports.ITEM_PADDING = PX_12;
}
global.__d(_fun112248, 14853, [697, 2]) /* metro module 14853, dependencies: [697, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,12 +1,13 @@
/* Metro module 14877; source: modules/icymi/native/ICYMIBottomLoading.tsx; dependencies: [31, 27, 33, 4501, 697, 2] */
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 */
function _fun112543(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112543, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15074:6, offset: 0x023d0d84, size: 198 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const value = require(27) /* metro dependency 27 */;
const env0_2 = value.View;
const env0_3 = value.ActivityIndicator;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
ReactModule;
const env0_5 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(function() {
var object2 = {};
object2.paddingTop = importDefault(dependencyMap[4]).space.PX_8;
@@ -15,16 +16,18 @@ function _fun112543(global, require, importDefault, importAll, module, exports,
object2.justifyContent = 'center';
return {container: object2};
});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/ICYMIBottomLoading.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/ICYMIBottomLoading.tsx');
exports.ICYMIBottomLoading = ICYMIBottomLoading;
function ICYMIBottomLoading() { // fn#112545, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15074:411, offset: 0x023d0ea1, size: 64 bytes, params: 1, frame: 16
const styles = useStyles();
return (
<View style={styles.container}>
<ActivityIndicator size="small" />
</View>
);
}
}
function ICYMIBottomLoading() { // fn#112545, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15074:411, offset: 0x023d0ea1, size: 64 bytes, params: 1, frame: 16
const styles = useStyles();
return (
<View style={styles.container}>
<ActivityIndicator size="small" />
</View>
);
}
global.__d(_fun112543, 14877, [31, 27, 33, 4501, 697,
2]) /* metro module 14877, dependencies: [31, 27, 33, 4501, 697, 2] */;
+547 -343
View File
@@ -1,4 +1,25 @@
/* Metro module 14856; source: modules/icymi/native/ICYMICardInCard.tsx; dependencies: [31, 27, 1379, 1945, 1867, 661, 33, 14815, 697, 7599, 6819, 1305, 4584, 566, 4635, 8699, 4617, 4573, 4805, 14857, 1244, 6691, 14855, 5278, 4788, 8638, 2] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ChannelStore from '../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import GuildStore from '../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import GuildMemberStore from '../../../stores/GuildMemberStore.tsx'; /* Metro dependency 1945 */
import GuildIcon from '../../guild/native/GuildIcon.tsx'; /* Metro dependency 6819 */
import ClipView from '../../../design/components/Icon/native/ClipView.tsx'; /* Metro dependency 7599 */
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 NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as UseFontScaleModule from '../../screen/native/useFontScale.tsx'; /* Metro dependency 4584 */
import * as NicknameUtilsModule from '../../../utils/NicknameUtils.tsx'; /* Metro dependency 4617 */
import * as PressablesModule from '../../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */
import * as GuildIconModule from '../../guild/native/GuildIcon.tsx'; /* Metro dependency 6819 */
import * as ClipViewModule from '../../../design/components/Icon/native/ClipView.tsx'; /* Metro dependency 7599 */
import * as MoreHorizontalIconModule from '../../../design/components/Icon/native/redesign/generated/MoreHorizontalIcon.tsx'; /* Metro dependency 8638 */
import * as CreateICYMIStylesModule from './createICYMIStyles.tsx'; /* Metro dependency 14815 */
function _fun112281(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112281, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15053:6, offset: 0x023c303b, size: 308 bytes, params: 8, frame: 19
const env0_0 = require;
const truncateUsername_112282 = function(a0) {
@@ -15,363 +36,546 @@ function _fun112281(global, require, importDefault, importAll, module, exports,
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const guildMemberStore = importDefault(1945) /* metro dependency 1945: GuildMemberStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const env0_8 = (require(661) /* metro dependency 661: Constants */).DEFAULT_ROLE_COLOR_HEX;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_9 = value.jsx;
const env0_10 = value.jsxs;
const env0_11 = value.Fragment;
const env0_12 = (require(14815) /* metro dependency 14815: createICYMIStyles */).createICYMIStyles(_fun112284);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/ICYMICardInCard.tsx');
const env0_12 = (CreateICYMIStylesModule).createICYMIStyles(_fun112284);
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/ICYMICardInCard.tsx');
exports.default = ICYMICardInCard;
}
function CutoutGuildIconWithUserCustom({guild, author}) { // fn#112283, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15053:1518, offset: 0x023c316f, size: 311 bytes, params: 2, frame: 27
const value2 = env0_12();
const CutoutShape = (ClipViewModule).CutoutShape;
const Circle = CutoutShape.Circle;
const items2 = [{'shape': null, 'x': 18, 'y': 18, 'size': 24, shape: Circle}];
const GuildIconSizes = (GuildIconModule).GuildIconSizes;
const SMALL_32 = GuildIconSizes.SMALL_32;
const clipView = (
<ClipView cutouts={items2}>
<GuildIcon guild={guild} size={SMALL_32} />
</ClipView>
);
const Avatar = (NativeModule).Avatar;
const authorAvatar = value2.authorAvatar;
const id = guild.id;
const AvatarSizes = (NativeModule).AvatarSizes;
const XSMALL_20 = AvatarSizes.XSMALL_20;
return (
<View style={{'width': 40, 'height': 40}}>
{clipView}
<Avatar
animate
style={authorAvatar}
guildId={id}
user={author}
size={XSMALL_20}
/>
</View>
);
}
function CutoutGuildIconWithUserCustom({guild, author}) { // fn#112283, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15053:1518, offset: 0x023c316f, size: 311 bytes, params: 2, frame: 27
const value2 = env0_12();
const ClipView = importDefault(7599) /* metro dependency 7599: ClipView */;
const CutoutShape = (require(7599) /* metro dependency 7599: ClipView */).CutoutShape;
const Circle = CutoutShape.Circle;
const items2 = [{'shape': null, 'x': 18, 'y': 18, 'size': 24, shape: Circle}];
const GuildIcon = importDefault(6819) /* metro dependency 6819: GuildIcon */;
const GuildIconSizes = (require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes;
const SMALL_32 = GuildIconSizes.SMALL_32;
const clipView = <ClipView cutouts={items2}><GuildIcon guild={guild} size={SMALL_32} /></ClipView>;
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
const authorAvatar = value2.authorAvatar;
const id = guild.id;
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
const XSMALL_20 = AvatarSizes.XSMALL_20;
return (
<View style={{'width': 40, 'height': 40}}>
{clipView}
<Avatar
animate
style={authorAvatar}
guildId={id}
user={author}
size={XSMALL_20}
/>
</View>
);
}
function _fun112284(a0) { // fn#112284, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15053:329, offset: 0x023c32a6, size: 476 bytes, params: 2, frame: 17
const object = {};
object.container = {marginTop: a0.margin};
object.content = {'flex': 1, 'overflow': 'hidden'};
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object.channelNameAndAccessory = {'flexDirection': 'row', 'justifyContent': 'space-between', 'alignItems': 'center',
paddingBottom: PX_4, marginHorizontal: a0.margin};
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object.channelNameAndAccessoryLarge = {flexDirection: 'column', paddingBottom: PX_4, marginHorizontal: a0.margin};
object.header = {'flexDirection': 'row', 'flexGrow': 1};
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object.headerInfo = {'flexGrow': 1, 'flexShrink': 1, marginLeft: PX_12};
object.title = {'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'space-between',
'marginBottom': 2};
object.titleLeft = {'flexShrink': 1, 'flexGrow': 0, 'flexDirection': 'row', 'alignItems': 'center', 'gap': 6};
const object4 = {'flexDirection': 'row', 'justifyContent': 'space-between'};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object.subTitleContainer = object4;
object.subtitle = {'flexShrink': 1, 'flexGrow': 0, 'width': '100%'};
object.genContentSubtitle = {'flexDirection': 'row', 'alignItems': 'center', 'gap': 2};
object.genContentSubtitleChannel = {'flexDirection': 'row', 'alignItems': 'center', 'gap': 2, 'flex': 1};
object.subtitleTrailing = {paddingVertical: 1};
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object.separator = {'height': 1, 'width': '100%', backgroundColor: BORDER_SUBTLE};
const BORDER_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_STRONG;
object.normalContent = {'borderBottomWidth': 1, 'borderBottomColor': null, 'flexShrink': 0,
borderBottomColor: BORDER_STRONG};
object.authorAvatar = {'position': 'absolute', 'right': 0, 'bottom': 0};
return object;
}
function _fun112284(a0) { // fn#112284, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15053:329, offset: 0x023c32a6, size: 476 bytes, params: 2, frame: 17
const object2 = {};
object2.container = {marginTop: a0.margin};
object2.content = {'flex': 1, 'overflow': 'hidden'};
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object2.channelNameAndAccessory = {'flexDirection': 'row', 'justifyContent': 'space-between',
'alignItems': 'center', paddingBottom: PX_4, marginHorizontal: a0.margin};
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object2.channelNameAndAccessoryLarge = {flexDirection: 'column', paddingBottom: PX_4, marginHorizontal: a0.margin};
object2.header = {'flexDirection': 'row', 'flexGrow': 1};
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object2.headerInfo = {'flexGrow': 1, 'flexShrink': 1, marginLeft: PX_12};
object2.title = {'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'space-between',
'marginBottom': 2};
object2.titleLeft = {'flexShrink': 1, 'flexGrow': 0, 'flexDirection': 'row', 'alignItems': 'center', 'gap': 6};
const object3 = {'flexDirection': 'row', 'justifyContent': 'space-between'};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object2.subTitleContainer = object3;
object2.subtitle = {'flexShrink': 1, 'flexGrow': 0, 'width': '100%'};
object2.genContentSubtitle = {'flexDirection': 'row', 'alignItems': 'center', 'gap': 2};
object2.genContentSubtitleChannel = {'flexDirection': 'row', 'alignItems': 'center', 'gap': 2, 'flex': 1};
object2.subtitleTrailing = {paddingVertical: 1};
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object2.separator = {'height': 1, 'width': '100%', backgroundColor: BORDER_SUBTLE};
const BORDER_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_STRONG;
object2.normalContent = {'borderBottomWidth': 1, 'borderBottomColor': null, 'flexShrink': 0,
borderBottomColor: BORDER_STRONG};
object2.authorAvatar = {'position': 'absolute', 'right': 0, 'bottom': 0};
return object2;
}
function ICYMICardInCard({children, message, actionLabel, timestamp, id, interactionType, onHeaderPress, onHeaderLongPress, channelId, guildId, hideTimestamp, shouldFeatureUser}) { // fn#112285, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15053:1978, offset: 0x023c3482, size: 1496 bytes, params: 2, frame: 48
const env0_3 = interactionType;
hideTimestamp = !(hideTimestamp === undefined) && hideTimestamp;
shouldFeatureUser = !(shouldFeatureUser === undefined) && shouldFeatureUser;
const value5 = undefined();
const value6 = (require(4584) /* metro dependency 4584: useFontScale */).useFontScale();
const value7 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
return ChannelStore.getChannel(channelId);
}, [channelId]);
const r21 = value7?.guild_id ?? guildId;
const value9 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], _fun112287, [r21]);
const value10 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildMemberStore], _fun112288,
[shouldFeatureUser, r21, message]);
const value12 = (require(8699) /* metro dependency 8699: useDisplayNameStylesFont */).useDisplayNameStylesFont({displayNameStyles: (importDefault(4635) /* metro dependency 4635: useDisplayNameStyles */)({userId: message == null || message.author == null ? undefined : message.author.id})});
const nicknameUtilsModule = require(4617) /* metro dependency 4617: NicknameUtils */;
const useName = nicknameUtilsModule.useName;
const r19 = shouldFeatureUser && (message?.author != null && r21 != null) && value7 != null ? Reflect.apply(useName,
nicknameUtilsModule, [r21, value7?.id, message?.author]) : null;
let binding = env0_3;
const value14 = binding.useMemo(_fun112289, [value9, shouldFeatureUser, message?.author]);
binding = env0_3;
const value15 = binding.useMemo(_fun112290, [value9]);
const value17 = binding.useMemo(_fun112291, [shouldFeatureUser, message?.author, r21, value7,
(importDefault(4805) /* metro dependency 4805: useChannelName */)(value7), r19, value10, value12,
value5.genContentSubtitle, value5.genContentSubtitleChannel, onHeaderPress, actionLabel]);
binding = env0_3;
const value18 = binding.useCallback(_fun112292, [value9, value7, id, interactionType]);
const value19 = binding.useMemo(_fun112293, [value6, value5.channelNameAndAccessoryLarge,
value5.channelNameAndAccessory]);
const container = value5.container;
const PressableHighlight = (require(5278) /* metro dependency 5278: Pressables */).PressableHighlight;
const content = value5.content;
const header = value5.header;
const headerInfo = value5.headerInfo;
const title = value5.title;
const view = <View style={value5.titleLeft}>{value15}{!hideTimestamp && ((Text) => <Text lineClamp={1} variant="text-xs/normal" color="text-muted">{(require(4788) /* metro dependency 4788: NotificationCenterUtils */).getRelativeTimestamp(timestamp)}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}</View>;
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
const subtitleTrailing = value5.subtitleTrailing;
const MoreHorizontalIcon = (require(8638) /* metro dependency 8638: MoreHorizontalIcon */).MoreHorizontalIcon;
const ICON_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.ICON_MUTED;
return (
<View style={container}>
<PressableHighlight
onPress={onHeaderPress}
onLongPress={onHeaderLongPress}
style={content}
>
<View style={value19}>
<View style={header}>
{value14}
<View style={headerInfo}>
<View style={title}>
{view}
<PressableOpacity
onPress={value18}
style={subtitleTrailing}
hitSlop={8}
>
<MoreHorizontalIcon color={ICON_MUTED} size="sm" />
</PressableOpacity>
</View>
<View style={value5.subTitleContainer}>
<View style={value5.subtitle}>
{value17}
function ICYMICardInCard({children, message, actionLabel, timestamp, id, interactionType, onHeaderPress, onHeaderLongPress, channelId, guildId, hideTimestamp, shouldFeatureUser}) { // fn#112285, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15053:1978, offset: 0x023c3482, size: 1496 bytes, params: 2, frame: 48
const interactionType2 = interactionType;
hideTimestamp = !(hideTimestamp === undefined) && hideTimestamp;
shouldFeatureUser = !(shouldFeatureUser === undefined) && shouldFeatureUser;
const value5 = undefined();
const value6 = (UseFontScaleModule).useFontScale();
const value7 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
return ChannelStore.getChannel(channelId);
}, [channelId]);
const r21 = value7?.guild_id ?? guildId;
const value9 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], _fun112287, [r21]);
const value10 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildMemberStore], _fun112288,
[shouldFeatureUser, r21, message]);
const value12 = (require(8699) /* metro dependency 8699: useDisplayNameStylesFont */).useDisplayNameStylesFont({displayNameStyles: (importDefault(4635) /* metro dependency 4635: useDisplayNameStyles */)({userId: message == null || message.author == null ? undefined : message.author.id})});
const useName = NicknameUtilsModule.useName;
const r19 = shouldFeatureUser && (message?.author != null && r21 != null) && value7 != null ? Reflect.apply(useName,
NicknameUtilsModule, [r21, value7?.id, message?.author]) : null;
let binding = interactionType2;
const value14 = binding.useMemo(_fun112289, [value9, shouldFeatureUser, message?.author]);
binding = interactionType2;
const value15 = binding.useMemo(_fun112290, [value9]);
const value17 = binding.useMemo(_fun112291, [shouldFeatureUser, message?.author, r21, value7,
(importDefault(4805) /* metro dependency 4805: useChannelName */)(value7), r19, value10, value12,
value5.genContentSubtitle, value5.genContentSubtitleChannel, onHeaderPress, actionLabel]);
binding = interactionType2;
const value18 = binding.useCallback(_fun112292, [value9, value7, id, interactionType]);
const value19 = binding.useMemo(_fun112293, [value6, value5.channelNameAndAccessoryLarge,
value5.channelNameAndAccessory]);
const container = value5.container;
const PressableHighlight = (PressablesModule).PressableHighlight;
const content = value5.content;
const header = value5.header;
const headerInfo = value5.headerInfo;
const title = value5.title;
const view = (
<View style={value5.titleLeft}>
{value15}
{!hideTimestamp && ((Text) => <Text lineClamp={1} variant="text-xs/normal" color="text-muted">{(require(4788) /* metro dependency 4788: NotificationCenterUtils */).getRelativeTimestamp(timestamp)}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}
</View>
);
const PressableOpacity = (PressablesModule).PressableOpacity;
const subtitleTrailing = value5.subtitleTrailing;
const MoreHorizontalIcon = (MoreHorizontalIconModule).MoreHorizontalIcon;
const ICON_MUTED = (Native).colors.ICON_MUTED;
return (
<View style={container}>
<PressableHighlight
onPress={onHeaderPress}
onLongPress={onHeaderLongPress}
style={content}
>
<View style={value19}>
<View style={header}>
{value14}
<View style={headerInfo}>
<View style={title}>
{view}
<PressableOpacity
onPress={value18}
style={subtitleTrailing}
hitSlop={8}
>
<MoreHorizontalIcon color={ICON_MUTED} size="sm" />
</PressableOpacity>
</View>
<View style={value5.subTitleContainer}>
<View style={value5.subtitle}>
{value17}
</View>
</View>
</View>
</View>
</View>
</PressableHighlight>
<View style={value5.normalContent}>
{children}
</View>
</PressableHighlight>
<View style={value5.normalContent}>
{children}
</View>
</View>
);
}
function _fun112287() { // fn#112287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15053:2354, offset: 0x023c3a74, size: 40 bytes, params: 1, frame: 12
const value2 = null;
return value2 != env0_10 ? GuildStore.getGuild(env0_10) : value2;
}
function _fun112288() { // fn#112288, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15053:2426, offset: 0x023c3a9c, size: 104 bytes, params: 1, frame: 14
const shouldFeatureUserBinding = shouldFeatureUser;
const value2 = null;
return shouldFeatureUserBinding && value2 != env0_10 && value2 != (value2 == message ? undefined : message.author.id) ? GuildMemberStore.getMember(env0_10,
message.author.id) : value2;
}
function _fun112289() { // fn#112289, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15053:2780, offset: 0x023c3b04, size: 180 bytes, params: 1, frame: 20
const value2 = null;
return value2 == env0_11 ? value2 : shouldFeatureUser && value2 != (value2 == message ? undefined : message.author) ? <CutoutGuildIconWithUserCustom guild={env0_11} author={message.author} /> : ((Component) => <Component guild={env0_11} size={(require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes.NORMAL} />)(importDefault(6819) /* metro dependency 6819: GuildIcon */);
}
function _fun112290() { // fn#112290, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15053:2994, offset: 0x023c3bb8, size: 111 bytes, params: 1, frame: 18
const value2 = null;
if (value2 != env0_11) {
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<Text
style={{maxWidth: 225}}
lineClamp={1}
variant="text-md/semibold"
color="mobile-text-heading-primary"
key={env0_11.id}
>
{env0_11.name}
</Text>
);
} else {
return value2;
}
}
function _fun112291() { // fn#112291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15053:3180, offset: 0x023c3c27, size: 1014 bytes, params: 1, frame: 32
var r22;
var r6;
var r7;
var messageBinding;
var value2;
var value3;
var value7;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var items4;
var jsxRuntimeEnv1_11Binding;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var items2;
var items3;
var value12;
var iconForChannel;
var items5;
var items6;
if (shouldFeatureUser) {
messageBinding = message;
value2 = undefined;
if ((messageBinding == null ? value2 : message.author) == null) {
value3 = null;
r22 = value3 != env0_9 ? (require(14857) /* metro dependency 14857: getIconForChannel */).getIconForChannel(env0_9) : (require(6691) /* metro dependency 6691: TextIcon */).TextIcon;
value7 = environment.__proto__;
var viewBindingProps = {style: env0_7.genContentSubtitle};
items4 = [<Text variant="text-sm/medium" color="text-default">{actionLabel}</Text>];
if (value3 != env0_9) {
jsxRuntimeEnv1_11Binding = jsxRuntimeEnv1_11;
items2 = [<Text variant="text-sm/medium" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.CHUAYk)}</Text>];
var viewBinding2Props = {style: env0_7.genContentSubtitleChannel};
items3 = [((Component) => <Component size="xs" color="text-default" />)(r22)];
items3[1] = <Text variant="text-sm/medium" color="text-default" onPress={onHeaderPress} style={{flex: 1}} lineClamp={1} ellipsizeMode="tail">{env0_15}</Text>;
items2[1] = <View {...viewBinding2Props}>{items3}</View>;
r6 = <>{items2}</>;
} else {
r6 = value3;
}
items4[1] = r6;
return (
<View {...viewBindingProps}>
{items4}
</View>
);
}
if (env0_10 == null) {
value3 = null;
r22 = value3 != env0_9 ? (require(14857) /* metro dependency 14857: getIconForChannel */).getIconForChannel(env0_9) : (require(6691) /* metro dependency 6691: TextIcon */).TextIcon;
value7 = environment.__proto__;
var viewBindingProps = {style: env0_7.genContentSubtitle};
items4 = [<Text variant="text-sm/medium" color="text-default">{actionLabel}</Text>];
if (value3 != env0_9) {
jsxRuntimeEnv1_11Binding = jsxRuntimeEnv1_11;
items2 = [<Text variant="text-sm/medium" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.CHUAYk)}</Text>];
var viewBinding2Props = {style: env0_7.genContentSubtitleChannel};
items3 = [((Component) => <Component size="xs" color="text-default" />)(r22)];
items3[1] = <Text variant="text-sm/medium" color="text-default" onPress={onHeaderPress} style={{flex: 1}} lineClamp={1} ellipsizeMode="tail">{env0_15}</Text>;
items2[1] = <View {...viewBinding2Props}>{items3}</View>;
r6 = <>{items2}</>;
} else {
r6 = value3;
}
items4[1] = r6;
return (
<View {...viewBindingProps}>
{items4}
</View>
);
}
if (env0_9 == null) {
value3 = null;
r22 = value3 != env0_9 ? (require(14857) /* metro dependency 14857: getIconForChannel */).getIconForChannel(env0_9) : (require(6691) /* metro dependency 6691: TextIcon */).TextIcon;
value7 = environment.__proto__;
var viewBindingProps = {style: env0_7.genContentSubtitle};
items4 = [<Text variant="text-sm/medium" color="text-default">{actionLabel}</Text>];
if (value3 != env0_9) {
jsxRuntimeEnv1_11Binding = jsxRuntimeEnv1_11;
items2 = [<Text variant="text-sm/medium" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.CHUAYk)}</Text>];
var viewBinding2Props = {style: env0_7.genContentSubtitleChannel};
items3 = [((Component) => <Component size="xs" color="text-default" />)(r22)];
items3[1] = <Text variant="text-sm/medium" color="text-default" onPress={onHeaderPress} style={{flex: 1}} lineClamp={1} ellipsizeMode="tail">{env0_15}</Text>;
items2[1] = <View {...viewBinding2Props}>{items3}</View>;
r6 = <>{items2}</>;
} else {
r6 = value3;
}
items4[1] = r6;
return (
<View {...viewBindingProps}>
{items4}
</View>
);
}
if (env0_14 != null) {
r7 = (env0_12 == null ? value2 : env0_12.colorString) ?? DEFAULT_ROLE_COLOR_HEX;
value12 = environment.__proto__;
iconForChannel = (require(14857) /* metro dependency 14857: getIconForChannel */).getIconForChannel(env0_9);
var viewBindingProps = {style: env0_7.genContentSubtitle};
items5 = [<Text variant="text-sm/semibold" style={[{color: r7},
env0_13 != null ? {fontFamily: env0_13} : value2]}>{truncateUsername_112282(env0_14)}</Text>];
items5[1] = <Text variant="text-sm/medium" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.CHUAYk)}</Text>;
var viewBinding3Props = {style: env0_7.genContentSubtitleChannel};
items6 = [((Component) => <Component size="xs" color="text-default" />)(iconForChannel)];
items6[1] = <Text variant="text-sm/medium" color="text-default" onPress={onHeaderPress} style={{flex: 1}} lineClamp={1} ellipsizeMode="tail">{env0_15}</Text>;
items5[2] = <View {...viewBinding3Props}>{items6}</View>;
return (
<View {...viewBindingProps}>
{items5}
</View>
);
}
value3 = null;
r22 = value3 != env0_9 ? (require(14857) /* metro dependency 14857: getIconForChannel */).getIconForChannel(env0_9) : (require(6691) /* metro dependency 6691: TextIcon */).TextIcon;
value7 = environment.__proto__;
var viewBindingProps2 = {style: env0_7.genContentSubtitle};
items4 = [<Text variant="text-sm/medium" color="text-default">{actionLabel}</Text>];
if (value3 != env0_9) {
jsxRuntimeEnv1_11Binding = jsxRuntimeEnv1_11;
items2 = [<Text variant="text-sm/medium" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.CHUAYk)}</Text>];
var viewBinding2Props = {style: env0_7.genContentSubtitleChannel};
items3 = [((Component) => <Component size="xs" color="text-default" />)(r22)];
items3[1] = <Text variant="text-sm/medium" color="text-default" onPress={onHeaderPress} style={{flex: 1}} lineClamp={1} ellipsizeMode="tail">{env0_15}</Text>;
items2[1] = <View {...viewBinding2Props}>{items3}</View>;
r6 = <>{items2}</>;
} else {
r6 = value3;
}
items4[1] = r6;
return (
<View {...viewBindingProps2}>
{items4}
</View>
);
function _fun112287() { // fn#112287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15053:2354, offset: 0x023c3a74, size: 40 bytes, params: 1, frame: 12
const value2 = null;
return value2 != env0_10 ? GuildStore.getGuild(env0_10) : value2;
}
function _fun112288() { // fn#112288, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15053:2426, offset: 0x023c3a9c, size: 104 bytes, params: 1, frame: 14
const shouldFeatureUserBinding = shouldFeatureUser;
const value2 = null;
return shouldFeatureUserBinding && value2 != env0_10 && value2 != (value2 == message ? undefined : message.author.id) ? GuildMemberStore.getMember(env0_10,
message.author.id) : value2;
}
function _fun112289() { // fn#112289, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15053:2780, offset: 0x023c3b04, size: 180 bytes, params: 1, frame: 20
const value2 = null;
return (
value2 == env0_11
? value2
: (
shouldFeatureUser && value2 != (value2 == message ? undefined : message.author)
? (
<CutoutGuildIconWithUserCustom guild={env0_11} author={message.author} />
)
: ((Component) => <Component guild={env0_11} size={(require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes.NORMAL} />)(importDefault(6819) /* metro dependency 6819: GuildIcon */)
)
);
}
function _fun112290() { // fn#112290, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15053:2994, offset: 0x023c3bb8, size: 111 bytes, params: 1, frame: 18
const value2 = null;
if (value2 != env0_11) {
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<Text
style={{maxWidth: 225}}
lineClamp={1}
variant="text-md/semibold"
color="mobile-text-heading-primary"
key={env0_11.id}
>
{env0_11.name}
</Text>
);
} else {
return value2;
}
}
function _fun112291() { // fn#112291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15053:3180, offset: 0x023c3c27, size: 1014 bytes, params: 1, frame: 32
var r22;
var r6;
var r7;
var messageBinding;
var value2;
var value3;
var value7;
const Text = (TextModule).Text;
var items4;
var jsxRuntimeEnv1_11Binding;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var items2;
var items3;
var value12;
var iconForChannel;
var items5;
var items6;
if (shouldFeatureUser) {
messageBinding = message;
value2 = undefined;
if ((messageBinding == null ? value2 : message.author) == null) {
value3 = null;
r22 = value3 != env0_9 ? (require(14857) /* metro dependency 14857: getIconForChannel */).getIconForChannel(env0_9) : (require(6691) /* metro dependency 6691: TextIcon */).TextIcon;
value7 = environment.__proto__;
var viewBindingProps = {style: env0_7.genContentSubtitle};
items4 = [
<Text variant="text-sm/medium" color="text-default">
{actionLabel}
</Text>,
];
if (value3 != env0_9) {
jsxRuntimeEnv1_11Binding = jsxRuntimeEnv1_11;
items2 = [
<Text variant="text-sm/medium" color="text-default">
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.CHUAYk)}
</Text>,
];
var viewBinding2Props = {style: env0_7.genContentSubtitleChannel};
items3 = [
((Component) => <Component size="xs" color="text-default" />)(r22),
];
items3[1] = (
<Text
variant="text-sm/medium"
color="text-default"
onPress={onHeaderPress}
style={{flex: 1}}
lineClamp={1}
ellipsizeMode="tail"
>
{env0_15}
</Text>
);
items2[1] = (
<View {...viewBinding2Props}>
{items3}
</View>
);
r6 = (
<>
{items2}
</>
);
} else {
r6 = value3;
}
items4[1] = r6;
return (
<View {...viewBindingProps}>
{items4}
</View>
);
}
if (env0_10 == null) {
value3 = null;
r22 = value3 != env0_9 ? (require(14857) /* metro dependency 14857: getIconForChannel */).getIconForChannel(env0_9) : (require(6691) /* metro dependency 6691: TextIcon */).TextIcon;
value7 = environment.__proto__;
var viewBindingProps = {style: env0_7.genContentSubtitle};
items4 = [
<Text variant="text-sm/medium" color="text-default">
{actionLabel}
</Text>,
];
if (value3 != env0_9) {
jsxRuntimeEnv1_11Binding = jsxRuntimeEnv1_11;
items2 = [
<Text variant="text-sm/medium" color="text-default">
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.CHUAYk)}
</Text>,
];
var viewBinding2Props = {style: env0_7.genContentSubtitleChannel};
items3 = [
((Component) => <Component size="xs" color="text-default" />)(r22),
];
items3[1] = (
<Text
variant="text-sm/medium"
color="text-default"
onPress={onHeaderPress}
style={{flex: 1}}
lineClamp={1}
ellipsizeMode="tail"
>
{env0_15}
</Text>
);
items2[1] = (
<View {...viewBinding2Props}>
{items3}
</View>
);
r6 = (
<>
{items2}
</>
);
} else {
r6 = value3;
}
items4[1] = r6;
return (
<View {...viewBindingProps}>
{items4}
</View>
);
}
if (env0_9 == null) {
value3 = null;
r22 = value3 != env0_9 ? (require(14857) /* metro dependency 14857: getIconForChannel */).getIconForChannel(env0_9) : (require(6691) /* metro dependency 6691: TextIcon */).TextIcon;
value7 = environment.__proto__;
var viewBindingProps = {style: env0_7.genContentSubtitle};
items4 = [
<Text variant="text-sm/medium" color="text-default">
{actionLabel}
</Text>,
];
if (value3 != env0_9) {
jsxRuntimeEnv1_11Binding = jsxRuntimeEnv1_11;
items2 = [
<Text variant="text-sm/medium" color="text-default">
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.CHUAYk)}
</Text>,
];
var viewBinding2Props = {style: env0_7.genContentSubtitleChannel};
items3 = [
((Component) => <Component size="xs" color="text-default" />)(r22),
];
items3[1] = (
<Text
variant="text-sm/medium"
color="text-default"
onPress={onHeaderPress}
style={{flex: 1}}
lineClamp={1}
ellipsizeMode="tail"
>
{env0_15}
</Text>
);
items2[1] = (
<View {...viewBinding2Props}>
{items3}
</View>
);
r6 = (
<>
{items2}
</>
);
} else {
r6 = value3;
}
items4[1] = r6;
return (
<View {...viewBindingProps}>
{items4}
</View>
);
}
if (env0_14 != null) {
r7 = (env0_12 == null ? value2 : env0_12.colorString) ?? DEFAULT_ROLE_COLOR_HEX;
value12 = environment.__proto__;
iconForChannel = (require(14857) /* metro dependency 14857: getIconForChannel */).getIconForChannel(env0_9);
var viewBindingProps = {style: env0_7.genContentSubtitle};
items5 = [
<Text variant="text-sm/semibold" style={[{color: r7},
env0_13 != null ? {fontFamily: env0_13} : value2]}>
{truncateUsername_112282(env0_14)}
</Text>,
];
items5[1] = (
<Text variant="text-sm/medium" color="text-default">
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.CHUAYk)}
</Text>
);
var viewBinding3Props = {style: env0_7.genContentSubtitleChannel};
items6 = [
((Component) => <Component size="xs" color="text-default" />)(iconForChannel),
];
items6[1] = (
<Text
variant="text-sm/medium"
color="text-default"
onPress={onHeaderPress}
style={{flex: 1}}
lineClamp={1}
ellipsizeMode="tail"
>
{env0_15}
</Text>
);
items5[2] = (
<View {...viewBinding3Props}>
{items6}
</View>
);
return (
<View {...viewBindingProps}>
{items5}
</View>
);
}
value3 = null;
r22 = value3 != env0_9 ? (require(14857) /* metro dependency 14857: getIconForChannel */).getIconForChannel(env0_9) : (require(6691) /* metro dependency 6691: TextIcon */).TextIcon;
value7 = environment.__proto__;
var viewBindingProps2 = {style: env0_7.genContentSubtitle};
items4 = [
<Text variant="text-sm/medium" color="text-default">
{actionLabel}
</Text>,
];
if (value3 != env0_9) {
jsxRuntimeEnv1_11Binding = jsxRuntimeEnv1_11;
items2 = [
<Text variant="text-sm/medium" color="text-default">
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.CHUAYk)}
</Text>,
];
var viewBinding2Props = {style: env0_7.genContentSubtitleChannel};
items3 = [
((Component) => <Component size="xs" color="text-default" />)(r22),
];
items3[1] = (
<Text
variant="text-sm/medium"
color="text-default"
onPress={onHeaderPress}
style={{flex: 1}}
lineClamp={1}
ellipsizeMode="tail"
>
{env0_15}
</Text>
);
items2[1] = (
<View {...viewBinding2Props}>
{items3}
</View>
);
r6 = (
<>
{items2}
</>
);
} else {
r6 = value3;
}
items4[1] = r6;
return (
<View {...viewBindingProps2}>
{items4}
</View>
);
}
value3 = null;
r22 = value3 != env0_9 ? (require(14857) /* metro dependency 14857: getIconForChannel */).getIconForChannel(env0_9) : (require(6691) /* metro dependency 6691: TextIcon */).TextIcon;
const genContentSubtitle = env0_7.genContentSubtitle;
const text = (
<Text variant="text-sm/medium" color="text-default">
{actionLabel}
</Text>
);
if (value3 != env0_9) {
jsxRuntimeEnv1_11Binding = jsxRuntimeEnv1_11;
items2 = [
<Text variant="text-sm/medium" color="text-default">
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.CHUAYk)}
</Text>,
];
var viewBinding2Props = {style: env0_7.genContentSubtitleChannel};
items3 = [
((Component) => <Component size="xs" color="text-default" />)(r22),
];
items3[1] = (
<Text
variant="text-sm/medium"
color="text-default"
onPress={onHeaderPress}
style={{flex: 1}}
lineClamp={1}
ellipsizeMode="tail"
>
{env0_15}
</Text>
);
items2[1] = (
<View {...viewBinding2Props}>
{items3}
</View>
);
r6 = (
<>
{items2}
</>
);
} else {
r6 = value3;
}
return (
<View style={genContentSubtitle}>
{text}
{r6}
</View>
);
}
function _fun112292() { // fn#112292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15053:4519, offset: 0x023c401d, size: 111 bytes, params: 1, frame: 13
var value4;
if (env0_11 != null && env0_9 != null) {
value4 = environment.__proto__;
(require(14855) /* metro dependency 14855: openDetailsActionSheet */).openDetailsActionSheet({guildId: env0_11.id,
channelId: env0_9.id, id: id, type: interactionType});
}
}
function _fun112293() { // fn#112293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15053:4643, offset: 0x023c408c, size: 45 bytes, params: 1, frame: 3
return ConstantsModule.DEFAULT_ROLE_COLOR_HEX > 1.8 ? env0_7.channelNameAndAccessoryLarge : env0_7.channelNameAndAccessory;
}
}
value3 = null;
r22 = value3 != env0_9 ? (require(14857) /* metro dependency 14857: getIconForChannel */).getIconForChannel(env0_9) : (require(6691) /* metro dependency 6691: TextIcon */).TextIcon;
const genContentSubtitle = env0_7.genContentSubtitle;
const text = <Text variant="text-sm/medium" color="text-default">{actionLabel}</Text>;
if (value3 != env0_9) {
jsxRuntimeEnv1_11Binding = jsxRuntimeEnv1_11;
items2 = [<Text variant="text-sm/medium" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.CHUAYk)}</Text>];
var viewBinding2Props = {style: env0_7.genContentSubtitleChannel};
items3 = [((Component) => <Component size="xs" color="text-default" />)(r22)];
items3[1] = <Text variant="text-sm/medium" color="text-default" onPress={onHeaderPress} style={{flex: 1}} lineClamp={1} ellipsizeMode="tail">{env0_15}</Text>;
items2[1] = <View {...viewBinding2Props}>{items3}</View>;
r6 = <>{items2}</>;
} else {
r6 = value3;
}
return (
<View style={genContentSubtitle}>
{text}
{r6}
</View>
);
}
function _fun112292() { // fn#112292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15053:4519, offset: 0x023c401d, size: 111 bytes, params: 1, frame: 13
var value4;
if (env0_11 != null && env0_9 != null) {
value4 = environment.__proto__;
(require(14855) /* metro dependency 14855: openDetailsActionSheet */).openDetailsActionSheet({guildId: env0_11.id,
channelId: env0_9.id, id: id, type: interactionType});
}
}
function _fun112293() { // fn#112293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15053:4643, offset: 0x023c408c, size: 45 bytes, params: 1, frame: 3
return env0_8 > 1.8 ? env0_7.channelNameAndAccessoryLarge : env0_7.channelNameAndAccessory;
}
global.__d(_fun112281, 14856, [31, 27, 1379, 1945, 1867, 661, 33, 14815, 697, 7599, 6819, 1305, 4584, 566, 4635,
8699, 4617, 4573, 4805, 14857, 1244, 6691, 14855, 5278, 4788, 8638,
2]) /* metro module 14856, dependencies: [31, 27, 1379, 1945, 1867, 661, 33, 14815, 697, 7599, 6819, 1305, 4584, 566, 4635, 8699, 4617, 4573, 4805, 14857, 1244, 6691, 14855, 5278, 4788, 8638, 2] */;
File diff suppressed because it is too large. Load diff
+29 -23
View File
@@ -1,32 +1,38 @@
/* Metro module 14816; source: modules/icymi/native/ICYMIContext.tsx; dependencies: [31, 33, 1478, 697, 2] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UseWindowDimensionsNative from '../../screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
function _fun111822(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111822, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15013:6, offset: 0x023b37ec, size: 185 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const createContext = (require(31) /* metro dependency 31 */).createContext;
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
const createContext = (ReactModule).createContext;
const context = createContext({'width': 0, 'margin': 0, 'inset': 0});
const closure = useICYMIContextConstructor;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/ICYMIContext.tsx');
const useICYMIContextConstructor2 = useICYMIContextConstructor;
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/ICYMIContext.tsx');
exports.ICYMIContext = context;
exports.useICYMIContextConstructor = closure;
exports.useICYMIContextConstructor = useICYMIContextConstructor2;
exports.ICYMIContextProvider = ICYMIContextProvider;
function useICYMIContextConstructor() { // fn#111823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15013:193, offset: 0x023b38a5, size: 106 bytes, params: 1, frame: 16
const width = (UseWindowDimensionsNative)().width;
const Math = global.Math;
const value = Math.min(width, 480);
const PX_16 = (Native).space.PX_16;
return {width: value, margin: PX_16, inset: PX_16 + 38};
}
function ICYMIContextProvider({children}) { // fn#111824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15013:464, offset: 0x023b390f, size: 86 bytes, params: 2, frame: 18
const {width, margin, inset} = useICYMIContextConstructor();
const Provider = env0_3.Provider;
return (
<Provider value={{width: width, margin: margin, inset: inset}}>
{children}
</Provider>
);
}
}
function useICYMIContextConstructor() { // fn#111823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15013:193, offset: 0x023b38a5, size: 106 bytes, params: 1, frame: 16
const width = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)().width;
const Math = global.Math;
const value = Math.min(width, 480);
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
return {width: value, margin: PX_16, inset: PX_16 + 38};
}
function ICYMIContextProvider({children}) { // fn#111824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15013:464, offset: 0x023b390f, size: 86 bytes, params: 2, frame: 18
const {width, margin, inset} = useICYMIContextConstructor();
const Provider = env0_3.Provider;
return (
<Provider value={{width: width, margin: margin, inset: inset}}>
{children}
</Provider>
);
}
global.__d(_fun111822, 14816, [31, 33, 1478, 697, 2]) /* metro module 14816, dependencies: [31, 33, 1478, 697, 2] */;
@@ -1,54 +1,61 @@
/* Metro module 14838; source: modules/icymi/native/ICYMIFeedbackSheet.tsx; dependencies: [31, 33, 9927, 1244, 9589, 9580, 2] */
import ICYMIActionCreators from '../ICYMIActionCreators.tsx'; /* Metro dependency 9580 */
import FeedbackActionSheet from '../../feedback/native/FeedbackActionSheet.tsx'; /* Metro dependency 9927 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ICYMIAnalyticsModule from '../ICYMIAnalytics.tsx'; /* Metro dependency 9589 */
function _fun111980(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15035:6, offset: 0x023b998d, size: 138 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/ICYMIFeedbackSheet.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/ICYMIFeedbackSheet.tsx');
exports.default = ICYMIFeedbackSheet;
function ICYMIFeedbackSheet() { // fn#111981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15035:205, offset: 0x023b9a17, size: 570 bytes, params: 1, frame: 21
const object = {'headerLabel': null, 'showHeaderCloseButton': true, 'hideDontShowAgainCheckbox': true};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
object.headerLabel = Reflect.apply(string, intl,
[(require(1244) /* metro dependency 1244: indexNative */).t['ppfH9+']]);
object.ratingsBodyLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ePk/Cf']);
object.reasonsHeaderLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.sBOuOf);
string = intl.string;
const F6TmZA = (require(1244) /* metro dependency 1244: indexNative */).t.F6TmZA;
const items2 = [{label: Reflect.apply(string, intl, [F6TmZA]), value: 'irrelevant_content'}];
const object3 = {};
object3.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.voWAzi);
object3.value = 'not_enough_content';
items2[1] = object3;
string = intl.string;
const Ay8iwx = (require(1244) /* metro dependency 1244: indexNative */).t.Ay8iwx;
items2[2] = {label: Reflect.apply(string, intl, [Ay8iwx]), value: 'too_much_content'};
const object5 = {};
object5.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['Yu+52W']);
object5.value = 'laggy';
items2[3] = object5;
items2[4] = {'label': 'Other', 'value': 'other'};
object.reasons = items2;
object.otherKey = 'other';
const ICYMIAnalytics = (ICYMIAnalyticsModule).ICYMIAnalytics;
object.trackOpen = ICYMIAnalytics.trackFeedFeedbackPromptViewed;
object.feedbackReasons = ['other'];
object.trackReport = trackReport_111982;
return <FeedbackActionSheet {...object} />;
function ICYMIFeedbackSheetTrackReport(a0) { // fn#111982, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15035:913, owner: ICYMIFeedbackSheet.trackReport, offset: 0x023b9c51, size: 157 bytes, params: 2, frame: 17
const value = environment.__proto__;
const value2 = undefined;
(ICYMIActionCreators).giveFeedback();
const ICYMIAnalytics = (ICYMIAnalyticsModule).ICYMIAnalytics;
ICYMIAnalytics.trackFeedFeedbackSubmitted({reason_descriptions: a0.reason != null ? [a0.reason.value] : value2,
rating: a0.rating ?? value2, user_feedback: a0.feedback});
return value2;
}
}
}
function ICYMIFeedbackSheet() { // fn#111981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15035:205, offset: 0x023b9a17, size: 570 bytes, params: 1, frame: 21
const FeedbackActionSheet = importDefault(9927) /* metro dependency 9927: FeedbackActionSheet */;
const object2 = {'headerLabel': null, 'showHeaderCloseButton': true, 'hideDontShowAgainCheckbox': true};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
object2.headerLabel = Reflect.apply(string, intl,
[(require(1244) /* metro dependency 1244: indexNative */).t['ppfH9+']]);
object2.ratingsBodyLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ePk/Cf']);
object2.reasonsHeaderLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.sBOuOf);
string = intl.string;
const F6TmZA = (require(1244) /* metro dependency 1244: indexNative */).t.F6TmZA;
const items2 = [{label: Reflect.apply(string, intl, [F6TmZA]), value: 'irrelevant_content'}];
const object4 = {};
object4.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.voWAzi);
object4.value = 'not_enough_content';
items2[1] = object4;
string = intl.string;
const Ay8iwx = (require(1244) /* metro dependency 1244: indexNative */).t.Ay8iwx;
items2[2] = {label: Reflect.apply(string, intl, [Ay8iwx]), value: 'too_much_content'};
const object6 = {};
object6.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['Yu+52W']);
object6.value = 'laggy';
items2[3] = object6;
items2[4] = {'label': 'Other', 'value': 'other'};
object2.reasons = items2;
object2.otherKey = 'other';
const ICYMIAnalytics = (require(9589) /* metro dependency 9589: ICYMIAnalytics */).ICYMIAnalytics;
object2.trackOpen = ICYMIAnalytics.trackFeedFeedbackPromptViewed;
object2.feedbackReasons = ['other'];
object2.trackReport = trackReport;
return <FeedbackActionSheet {...object2} />;
}
function ICYMIFeedbackSheetTrackReport(a0) { // fn#111982, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15035:913, owner: ICYMIFeedbackSheet.trackReport, offset: 0x023b9c51, size: 157 bytes, params: 2, frame: 17
const value = environment.__proto__;
const value2 = undefined;
(importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */).giveFeedback();
const ICYMIAnalytics = (require(9589) /* metro dependency 9589: ICYMIAnalytics */).ICYMIAnalytics;
ICYMIAnalytics.trackFeedFeedbackSubmitted({reason_descriptions: a0.reason != null ? [a0.reason.value] : value2,
rating: a0.rating ?? value2, user_feedback: a0.feedback});
return value2;
}
global.__d(_fun111980, 14838, [31, 33, 9927, 1244, 9589, 9580,
2]) /* metro module 14838, dependencies: [31, 33, 9927, 1244, 9589, 9580, 2] */;
@@ -1,183 +1,215 @@
/* Metro module 14882; source: modules/icymi/native/ICYMIForumThreadRow.tsx; dependencies: [31, 27, 1379, 1867, 33, 14815, 697, 566, 6593, 9580, 14854, 12129, 9579, 4805, 14856, 1244, 21, 5278, 4573, 6622, 14860, 14862, 2] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ChannelStore from '../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import GuildStore from '../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import ICYMIActionCreators from '../ICYMIActionCreators.tsx'; /* Metro dependency 9580 */
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 TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ICYMIUtilsModule from '../ICYMIUtils.tsx'; /* Metro dependency 9579 */
import * as CreateICYMIStylesModule from './createICYMIStyles.tsx'; /* Metro dependency 14815 */
function _fun112588(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112588, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15079:6, offset: 0x023d37bd, size: 263 bytes, params: 8, frame: 20
const env0_0 = require;
const closure = ICYMIForumThreadRow;
const ICYMIForumThreadRow2 = ICYMIForumThreadRow;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const value = require(33) /* metro dependency 33 */;
const env0_7 = value.jsx;
const env0_8 = value.jsxs;
const env0_9 = (require(14815) /* metro dependency 14815: createICYMIStyles */).createICYMIStyles(_fun112595);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/ICYMIForumThreadRow.tsx');
const env0_9 = (CreateICYMIStylesModule).createICYMIStyles(_fun112595);
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/ICYMIForumThreadRow.tsx');
exports.default = ForumThreadRowWrapper;
exports.MAX_AVATARS_IN_PILE = 3;
exports.ICYMIForumThreadRow = closure;
}
exports.ICYMIForumThreadRow = ICYMIForumThreadRow2;
function ICYMIForumThreadRow({channel, message, visible}) { // fn#112589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15079:551, offset: 0x023d38c4, size: 996 bytes, params: 2, frame: 38
var r0;
var ICYMICardInCard;
var intl;
var defaultImport2;
var extractTimestamp;
var PressableHighlight;
const Text = (TextModule).Text;
var items3;
var defaultImport3;
var items2;
var value;
const value3 = env0_9();
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], _fun112590);
const author = message.author;
const author2 = author;
const channel2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
return ChannelStore.getChannel(channel.parent_id);
});
let binding = author2;
const useEffect = binding.useEffect;
let id = author.id;
Reflect.apply(useEffect, binding, [_fun112592, [id, guild?.id]]);
binding = author2;
let useCallback = binding.useCallback;
const value5 = Reflect.apply(useCallback, binding, [_fun112593, [channel, guild, message.id]]);
binding = author2;
useCallback = binding.useCallback;
object = [channel.parent_id];
object[1] = message.id;
const value6 = Reflect.apply(useCallback, binding, [_fun112594, object]);
const value7 = (ICYMIUtilsModule).useGravityMessage(message);
if (channel == null) {
r0 = null;
} else if (channel.guild_id == null) {
r0 = null;
} else if (guild == null) {
r0 = null;
} else if (author == null) {
r0 = null;
} else if (channel2 == null) {
r0 = null;
} else {
ICYMICardInCard = importDefault(14856) /* metro dependency 14856: ICYMICardInCard */;
object = {};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.actionLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bYNuVx);
id = value7.id;
object.id = id;
object.interactionType = 'forum_thread';
object.channelId = channel.parent_id;
defaultImport2 = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
extractTimestamp = defaultImport2.extractTimestamp;
id = value7.id;
object.timestamp = Reflect.apply(extractTimestamp, defaultImport2, [id]);
object.onHeaderPress = value5;
object.onHeaderLongPress = value6;
object.message = value7;
object.shouldFeatureUser = true;
PressableHighlight = (require(5278) /* metro dependency 5278: Pressables */).PressableHighlight;
var pressableHighlightProps = {onPress: value5, onLongPress: value6, accessibilityRole: 'button',
unstable_pressDelay: 130, style: value3.pressable};
var viewBindingProps = {style: value3.container};
items3 = [
<Text variant="text-lg/semibold" color="mobile-text-heading-primary">
{(importDefault(4805) /* metro dependency 4805: useChannelName */)(channel)}
</Text>,
];
var textProps = {'variant': 'text-md/normal', 'color': 'text-subtle', 'style': null, 'lineClamp': 5,
style: value3.subtitle};
defaultImport3 = importDefault(6622) /* metro dependency 6622: MarkupUtils */;
items3[1] = (
<Text {...textProps}>
{defaultImport3.parseInlineReply(message.content, true)}
</Text>
);
items3[2] = ((Component) => <Component message={message} visible={visible} itemType="forum_thread" />)(importDefault(14860) /* metro dependency 14860: ICYMIMediaMosaic */);
items2 = [
<PressableHighlight {...pressableHighlightProps}>
<View {...viewBindingProps}>
{items3}
</View>
</PressableHighlight>,
];
var viewBindingProps2 = {style: value3.footer};
var viewBinding2Props = {style: value3.ICYMICardInteractionRow};
value = importDefault(14862) /* metro dependency 14862: ICYMICardInteractionRow */;
id = value7.id;
items2[1] = (
<View {...viewBindingProps2}>
<View {...viewBinding2Props}>
{((Component) => <Component message={value7} channel={channel} guild={guild} backgroundVariant="base" id={id} itemType="forum_thread" />)(value)}
</View>
</View>
);
value = (
<ICYMICardInCard {...object}>
{items2}
</ICYMICardInCard>
);
r0 = value;
}
return r0;
function _fun112590() { // fn#112590, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15079:657, offset: 0x023d3ca8, size: 52 bytes, params: 1, frame: 13
const value = environment.__proto__;
return GuildStore.getGuild(channel?.getGuildId());
}
function _fun112592() { // fn#112592, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15079:795, offset: 0x023d3cfc, size: 109 bytes, params: 1, frame: 15
var value3;
var defaultImport;
const guildBinding = guild;
const value2 = undefined;
if ((guildBinding == null ? value2 : guild.id) != null) {
value3 = environment.__proto__;
defaultImport = importDefault(6593) /* metro dependency 6593: GuildActionCreators */;
defaultImport.requestMembersById(guild == null ? value2 : guild.id, [author.id]);
}
return value2;
}
function _fun112593() { // fn#112593, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15079:935, offset: 0x023d3d69, size: 204 bytes, params: 1, frame: 22
let value = environment.__proto__;
const defaultImport = ICYMIActionCreators;
const itemInteracted = defaultImport.itemInteracted;
const messageBinding = message;
Reflect.apply(itemInteracted, defaultImport, [messageBinding.id, 'forum_thread', 'press_forum_thread']);
defaultImport.feedItemActioned({itemId: messageBinding.id, itemType: 'forum_thread',
actionParameters: {'actionGestureType': 'press', 'actionTargetElement': 'item_container',
'actionIntentType': 'navigate', 'actionDestinationType': 'channel'}});
if (channel != null && guild != null) {
value = require(14854) /* metro dependency 14854: ICYMIShared */;
value.navigateToPost(channel.id, guild.id, message.id);
}
}
function _fun112594() { // fn#112594, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15079:1300, offset: 0x023d3e35, size: 178 bytes, params: 1, frame: 22
var value2;
var defaultImport;
var itemInteracted;
var messageBinding;
var id;
var defaultImport2;
var feedItemActioned;
var moduleValue;
if (channel.parent_id != null) {
value2 = environment.__proto__;
defaultImport = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
itemInteracted = defaultImport.itemInteracted;
messageBinding = message;
id = messageBinding.id;
Reflect.apply(itemInteracted, defaultImport, [id, 'forum_thread', 'long_press_forum_thread']);
defaultImport2 = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
feedItemActioned = defaultImport2.feedItemActioned;
id = messageBinding.id;
Reflect.apply(feedItemActioned, defaultImport2, [{itemId: id, itemType: 'forum_thread',
actionParameters: {'actionGestureType': 'long_press', 'actionTargetElement': 'item_container',
'actionIntentType': 'open', 'actionDestinationType': null}}]);
moduleValue = require(12129) /* metro dependency 12129: openChannelLongPressActionSheet */;
moduleValue.openChannelLongPressActionSheet(channel.parent_id);
}
}
function ICYMIForumThreadRow({channel, message, visible}) { // fn#112589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15079:551, offset: 0x023d38c4, size: 996 bytes, params: 2, frame: 38
var r0;
var ICYMICardInCard;
var intl;
var defaultImport2;
var extractTimestamp;
var PressableHighlight;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var items3;
var defaultImport3;
var items2;
var value;
const value3 = env0_9();
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], _fun112590);
const author = message.author;
const env0_3 = author;
const channel2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
return ChannelStore.getChannel(channel.parent_id);
});
let binding = env0_3;
const useEffect = binding.useEffect;
let id = author.id;
Reflect.apply(useEffect, binding, [_fun112592, [id, guild?.id]]);
binding = env0_3;
let useCallback = binding.useCallback;
const value5 = Reflect.apply(useCallback, binding, [_fun112593, [channel, guild, message.id]]);
binding = env0_3;
useCallback = binding.useCallback;
object = [channel.parent_id];
object[1] = message.id;
const value6 = Reflect.apply(useCallback, binding, [_fun112594, object]);
const value7 = (require(9579) /* metro dependency 9579: ICYMIUtils */).useGravityMessage(message);
if (channel == null) {
r0 = null;
} else if (channel.guild_id == null) {
r0 = null;
} else if (guild == null) {
r0 = null;
} else if (author == null) {
r0 = null;
} else if (channel2 == null) {
r0 = null;
} else {
ICYMICardInCard = importDefault(14856) /* metro dependency 14856: ICYMICardInCard */;
object = {};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.actionLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bYNuVx);
id = value7.id;
object.id = id;
object.interactionType = 'forum_thread';
object.channelId = channel.parent_id;
defaultImport2 = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
extractTimestamp = defaultImport2.extractTimestamp;
id = value7.id;
object.timestamp = Reflect.apply(extractTimestamp, defaultImport2, [id]);
object.onHeaderPress = value5;
object.onHeaderLongPress = value6;
object.message = value7;
object.shouldFeatureUser = true;
PressableHighlight = (require(5278) /* metro dependency 5278: Pressables */).PressableHighlight;
var pressableHighlightProps = {onPress: value5, onLongPress: value6, accessibilityRole: 'button',
unstable_pressDelay: 130, style: value3.pressable};
var viewBindingProps = {style: value3.container};
items3 = [<Text variant="text-lg/semibold" color="mobile-text-heading-primary">{(importDefault(4805) /* metro dependency 4805: useChannelName */)(channel)}</Text>];
var textProps = {'variant': 'text-md/normal', 'color': 'text-subtle', 'style': null, 'lineClamp': 5,
style: value3.subtitle};
defaultImport3 = importDefault(6622) /* metro dependency 6622: MarkupUtils */;
items3[1] = <Text {...textProps}>{defaultImport3.parseInlineReply(message.content, true)}</Text>;
items3[2] = ((Component) => <Component message={message} visible={visible} itemType="forum_thread" />)(importDefault(14860) /* metro dependency 14860: ICYMIMediaMosaic */);
items2 = [<PressableHighlight {...pressableHighlightProps}><View {...viewBindingProps}>{items3}</View></PressableHighlight>];
var viewBindingProps2 = {style: value3.footer};
var viewBinding2Props = {style: value3.ICYMICardInteractionRow};
value = importDefault(14862) /* metro dependency 14862: ICYMICardInteractionRow */;
id = value7.id;
items2[1] = <View {...viewBindingProps2}><View {...viewBinding2Props}>{((Component) => <Component message={value7} channel={channel} guild={guild} backgroundVariant="base" id={id} itemType="forum_thread" />)(value)}</View></View>;
value = <ICYMICardInCard {...object}>{items2}</ICYMICardInCard>;
r0 = value;
}
return r0;
}
function _fun112595(a0) { // fn#112595, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15079:197, offset: 0x023d3ee7, size: 201 bytes, params: 2, frame: 14
const object2 = {};
object2.pressable = {flex: 1, paddingLeft: a0.inset};
object2.container = {marginHorizontal: a0.margin};
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.subtitle = {marginTop: PX_8, marginBottom: a0.margin};
object2.footer = {justifyContent: 'flex-end', paddingLeft: a0.inset, marginTop: a0.margin, gap: a0.margin};
object2.threadAsComments = {marginHorizontal: a0.margin};
object2.ICYMICardInteractionRow = {marginHorizontal: a0.margin, marginBottom: a0.margin};
return object2;
}
function ForumThreadRowWrapper({message, threadChannel, visible}) { // fn#112596, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15079:2763, offset: 0x023d3fb0, size: 56 bytes, params: 2, frame: 15
return (
<ICYMIForumThreadRow
message={message}
channel={threadChannel}
visible={visible}
/>
);
}
function _fun112590() { // fn#112590, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15079:657, offset: 0x023d3ca8, size: 52 bytes, params: 1, frame: 13
const value = environment.__proto__;
return GuildStore.getGuild(channel?.getGuildId());
}
function _fun112592() { // fn#112592, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15079:795, offset: 0x023d3cfc, size: 109 bytes, params: 1, frame: 15
var value3;
var defaultImport;
const guildBinding = guild;
const value2 = undefined;
if ((guildBinding == null ? value2 : guild.id) != null) {
value3 = environment.__proto__;
defaultImport = importDefault(6593) /* metro dependency 6593: GuildActionCreators */;
defaultImport.requestMembersById(guild == null ? value2 : guild.id, [author.id]);
function _fun112595(a0) { // fn#112595, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15079:197, offset: 0x023d3ee7, size: 201 bytes, params: 2, frame: 14
const object = {};
object.pressable = {flex: 1, paddingLeft: a0.inset};
object.container = {marginHorizontal: a0.margin};
const PX_8 = (Native).space.PX_8;
object.subtitle = {marginTop: PX_8, marginBottom: a0.margin};
object.footer = {justifyContent: 'flex-end', paddingLeft: a0.inset, marginTop: a0.margin, gap: a0.margin};
object.threadAsComments = {marginHorizontal: a0.margin};
object.ICYMICardInteractionRow = {marginHorizontal: a0.margin, marginBottom: a0.margin};
return object;
}
return value2;
}
function _fun112593() { // fn#112593, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15079:935, offset: 0x023d3d69, size: 204 bytes, params: 1, frame: 22
let value = environment.__proto__;
const defaultImport = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
const itemInteracted = defaultImport.itemInteracted;
const messageBinding = message;
Reflect.apply(itemInteracted, defaultImport, [messageBinding.id, 'forum_thread', 'press_forum_thread']);
defaultImport.feedItemActioned({itemId: messageBinding.id, itemType: 'forum_thread',
actionParameters: {'actionGestureType': 'press', 'actionTargetElement': 'item_container',
'actionIntentType': 'navigate', 'actionDestinationType': 'channel'}});
if (channel != null && guild != null) {
value = require(14854) /* metro dependency 14854: ICYMIShared */;
value.navigateToPost(channel.id, guild.id, message.id);
}
}
function _fun112594() { // fn#112594, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15079:1300, offset: 0x023d3e35, size: 178 bytes, params: 1, frame: 22
var value2;
var defaultImport;
var itemInteracted;
var messageBinding;
var id;
var defaultImport2;
var feedItemActioned;
var moduleValue;
if (channel.parent_id != null) {
value2 = environment.__proto__;
defaultImport = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
itemInteracted = defaultImport.itemInteracted;
messageBinding = message;
id = messageBinding.id;
Reflect.apply(itemInteracted, defaultImport, [id, 'forum_thread', 'long_press_forum_thread']);
defaultImport2 = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
feedItemActioned = defaultImport2.feedItemActioned;
id = messageBinding.id;
Reflect.apply(feedItemActioned, defaultImport2, [{itemId: id, itemType: 'forum_thread',
actionParameters: {'actionGestureType': 'long_press', 'actionTargetElement': 'item_container',
'actionIntentType': 'open', 'actionDestinationType': null}}]);
moduleValue = require(12129) /* metro dependency 12129: openChannelLongPressActionSheet */;
moduleValue.openChannelLongPressActionSheet(channel.parent_id);
function ForumThreadRowWrapper({message, threadChannel, visible}) { // fn#112596, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15079:2763, offset: 0x023d3fb0, size: 56 bytes, params: 2, frame: 15
return (
<ICYMIForumThreadRow
message={message}
channel={threadChannel}
visible={visible}
/>
);
}
}
global.__d(_fun112588, 14882, [31, 27, 1379, 1867, 33, 14815, 697, 566, 6593, 9580, 14854, 12129, 9579, 4805, 14856,
1244, 21, 5278, 4573, 6622, 14860, 14862,
2]) /* metro module 14882, dependencies: [31, 27, 1379, 1867, 33, 14815, 697, 566, 6593, 9580, 14854, 12129, 9579, 4805, 14856, 1244, 21, 5278, 4573, 6622, 14860, 14862, 2] */;
@@ -1,168 +1,235 @@
/* Metro module 14879; source: modules/icymi/native/ICYMIGuildEventRow.tsx; dependencies: [31, 27, 4117, 1379, 1867, 33, 14815, 697, 9045, 1244, 9039, 4805, 9042, 9121, 9580, 9032, 6947, 9035, 14856, 21, 4573, 9123, 6699, 1305, 566, 2] */
import SnowflakeUtils from '../../../utils/SnowflakeUtils.tsx'; /* Metro dependency 21 */
import ChannelStore from '../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import GuildStore from '../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import GuildScheduledEventStore from '../../guild_scheduled_events/GuildScheduledEventStore.tsx'; /* Metro dependency 4117 */
import UseEventSchedule from '../../guild_scheduled_events/useEventSchedule.tsx'; /* Metro dependency 9045 */
import ICYMIActionCreators from '../ICYMIActionCreators.tsx'; /* Metro dependency 9580 */
import ICYMICardInCard from './ICYMICardInCard.tsx'; /* Metro dependency 14856 */
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 TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as GroupIconModule from '../../../design/components/Icon/native/redesign/generated/GroupIcon.tsx'; /* Metro dependency 6699 */
import * as GuildScheduledEventModalActionCreatorsNativeModule from '../../guild_scheduled_events/GuildScheduledEventModalActionCreators.native.tsx'; /* Metro dependency 9032 */
import * as ScheduleUtilsModule from '../../guild_scheduled_events/utils/ScheduleUtils.tsx'; /* Metro dependency 9039 */
import * as GuildEventUtilsModule from '../../guild_scheduled_events/native/components/GuildEventUtils.tsx'; /* Metro dependency 9121 */
import * as CreateICYMIStylesModule from './createICYMIStyles.tsx'; /* Metro dependency 14815 */
function _fun112559(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112559, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15076:6, offset: 0x023d1cef, size: 304 bytes, params: 8, frame: 19
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 */;
let value = ReactNativeModule;
const env0_4 = value.Pressable;
const env0_5 = value.View;
value = require(4117) /* metro dependency 4117: GuildScheduledEventStore */;
const env0_6 = value.isGuildEventEnded;
const env0_7 = value.isGuildScheduledEventActive;
const guildScheduledEventStore = importDefault(4117) /* metro dependency 4117: GuildScheduledEventStore */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
value = require(33) /* metro dependency 33 */;
const env0_11 = value.jsx;
const env0_12 = value.jsxs;
const env0_13 = (require(14815) /* metro dependency 14815: createICYMIStyles */).createICYMIStyles(_fun112564);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/ICYMIGuildEventRow.tsx');
const env0_13 = (CreateICYMIStylesModule).createICYMIStyles(_fun112564);
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/ICYMIGuildEventRow.tsx');
exports.default = ICYMIGuildEventRowWrapper;
}
function ICYMIGuildEventRow({event, channel, guild}) { // fn#112560, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15076:899, offset: 0x023d1e1f, size: 1503 bytes, params: 2, frame: 43
var moduleValue5;
const value3 = env0_13();
const value5 = (UseEventSchedule)(event, null);
const isGuildScheduledEventActive2 = isGuildScheduledEventActive(event);
const r1 = value5 == null ? undefined : value5.startTime.toISOString();
const env0_3 = r1;
const binding = env0_3;
const useMemo = binding.useMemo;
const startDateTimeString = Reflect.apply(useMemo, binding, [_fun112561, [r1,
isGuildScheduledEventActive2]]).startDateTimeString;
const r23 = (importDefault(4805) /* metro dependency 4805: useChannelName */)(channel) ?? (require(9042) /* metro dependency 9042: EntityUtils */).getLocationFromEvent(event);
const eventLocationIconSource = (GuildEventUtilsModule).getEventLocationIconSource(event,
channel, true);
const eventLocationIconComponent = (GuildEventUtilsModule).getEventLocationIconComponent(event,
channel, true);
const nextRecurrenceIdInEvent = (ScheduleUtilsModule).getNextRecurrenceIdInEvent(event);
const value12 = env0_3.useCallback(_fun112562, [event]);
const value13 = env0_3.useCallback(_fun112563, [guild.id, event.id]);
let r11 = event.description != null && event.description.length > 0;
const value16 = (importDefault(9035) /* metro dependency 9035: useGuildScheduledEventUserCount */)(event?.guild_id,
event?.id, nextRecurrenceIdInEvent);
object = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.actionLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['6pFsLQ']);
object.id = event.id;
object.interactionType = 'guild_event';
object.channelId = channel?.id;
object.guildId = guild.id;
const defaultImport4 = SnowflakeUtils;
object.timestamp = defaultImport4.extractTimestamp(event.id);
object.onHeaderPress = value13;
object.onHeaderLongPress = value13;
const container = value3.container;
const timeAndUserPillContainer = value3.timeAndUserPillContainer;
const Text = (TextModule).Text;
const items2 = [
<View style={timeAndUserPillContainer}>
<Text variant="text-sm/semibold" color={isGuildScheduledEventActive2 ? 'status-positive' : 'text-brand'}>
{startDateTimeString}
</Text>
</View>,
];
r11 = r11 && value3.title;
items2[1] = (
<Text style={r11} variant="text-lg/semibold">
{event.name}
</Text>
);
let r8 = event.description != null && event.description.length > 0;
if (r8) {
moduleValue5 = require(9123) /* metro dependency 9123: guildEventDetailsParserNative */;
r8 = (
<Text
variant="text-md/normal"
color="text-subtle"
lineClamp={5}
>
{moduleValue5.guildEventDetailsParser(event.description, true, {guildId: guild.id})}
</Text>
);
}
items2[2] = r8;
items2[3] = <View style={value3.separator} />;
const infoContainer = value3.infoContainer;
const locationContainer = value3.locationContainer;
const GroupIcon = (GroupIconModule).GroupIcon;
items2[4] = (
<View style={infoContainer}>
<View style={locationContainer}>
<GroupIcon size="xs" style={value3.eventsChannelIcon} />
<Text
lineClamp={1}
variant="text-xs/normal"
color="text-muted"
>
{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['+DLsD8'],
{count: value16})}
</Text>
</View>
<View style={value3.locationContainer}>
{
eventLocationIconComponent != null
? ((Component) => <Component size="xs" style={value3.eventsChannelIcon} />)(eventLocationIconComponent)
: eventLocationIconSource != null && ((Icon) => <Icon source={eventLocationIconSource} size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.EXTRA_SMALL} style={value3.eventsChannelIcon} disableColor />)((require(1305) /* metro dependency 1305: native */).Icon)
}
<Text
lineClamp={2}
variant="text-xs/normal"
color="text-muted"
>
{r23 != null ? (require(9123) /* metro dependency 9123: guildEventDetailsParserNative */).guildEventDetailsParser(r23,
true) : null}
</Text>
</View>
</View>
);
return (
<ICYMICardInCard {...object}>
<Pressable onPress={value12} style={container}>
{items2}
</Pressable>
</ICYMICardInCard>
);
function _fun112561() { // fn#112561, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15076:1047, offset: 0x023d23fe, size: 113 bytes, params: 1, frame: 16
var r0;
var object;
var intl;
if (env0_2) {
object = {};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.startDateTimeString = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.TxqPQR);
r0 = object;
} else {
r0 = (require(9039) /* metro dependency 9039: ScheduleUtils */).getEventTimeData(env0_3);
}
return r0;
}
function _fun112562() { // fn#112562, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15076:1386, offset: 0x023d246f, size: 164 bytes, params: 1, frame: 21
const value = environment.__proto__;
const defaultImport = ICYMIActionCreators;
const itemInteracted = defaultImport.itemInteracted;
const eventBinding = event;
Reflect.apply(itemInteracted, defaultImport, [eventBinding.id, 'guild_event', 'press_event']);
defaultImport.feedItemActioned({itemId: eventBinding.id, itemType: 'guild_event',
actionParameters: {'actionGestureType': 'press', 'actionTargetElement': 'item_body',
'actionIntentType': 'navigate', 'actionDestinationType': 'event'}});
(GuildScheduledEventModalActionCreatorsNativeModule).openGuildEventDetails({eventId: eventBinding.id,
event: eventBinding});
}
function _fun112563() { // fn#112563, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15076:1727, offset: 0x023d2513, size: 156 bytes, params: 1, frame: 22
let value = environment.__proto__;
const defaultImport = ICYMIActionCreators;
const itemInteracted = defaultImport.itemInteracted;
const eventBinding = event;
Reflect.apply(itemInteracted, defaultImport, [eventBinding.id, 'guild_event', 'press_event']);
defaultImport.feedItemActioned({itemId: eventBinding.id, itemType: 'guild_event',
actionParameters: {'actionGestureType': 'press', 'actionTargetElement': 'item_header',
'actionIntentType': 'navigate', 'actionDestinationType': 'guild'}});
value = require(6947) /* metro dependency 6947: transitionToGuildNative */;
value.transitionToGuild(guild.id);
}
function ICYMIGuildEventRow({event, channel, guild}) { // fn#112560, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15076:899, offset: 0x023d1e1f, size: 1503 bytes, params: 2, frame: 43
var object2;
var moduleValue5;
const value3 = env0_13();
const value5 = (importDefault(9045) /* metro dependency 9045: useEventSchedule */)(event, null);
const isGuildScheduledEventActive2 = isGuildScheduledEventActive(event);
const r1 = value5 == null ? undefined : value5.startTime.toISOString();
const env0_3 = r1;
const binding = env0_3;
const useMemo = binding.useMemo;
const startDateTimeString = Reflect.apply(useMemo, binding, [_fun112561, [r1,
isGuildScheduledEventActive2]]).startDateTimeString;
const r23 = (importDefault(4805) /* metro dependency 4805: useChannelName */)(channel) ?? (require(9042) /* metro dependency 9042: EntityUtils */).getLocationFromEvent(event);
const eventLocationIconSource = (require(9121) /* metro dependency 9121: GuildEventUtils */).getEventLocationIconSource(event,
channel, true);
const eventLocationIconComponent = (require(9121) /* metro dependency 9121: GuildEventUtils */).getEventLocationIconComponent(event,
channel, true);
const nextRecurrenceIdInEvent = (require(9039) /* metro dependency 9039: ScheduleUtils */).getNextRecurrenceIdInEvent(event);
const value12 = env0_3.useCallback(_fun112562, [event]);
const value13 = env0_3.useCallback(_fun112563, [guild.id, event.id]);
let r11 = event.description != null && event.description.length > 0;
const value16 = (importDefault(9035) /* metro dependency 9035: useGuildScheduledEventUserCount */)(event?.guild_id,
event?.id, nextRecurrenceIdInEvent);
const ICYMICardInCard = importDefault(14856) /* metro dependency 14856: ICYMICardInCard */;
object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.actionLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['6pFsLQ']);
object2.id = event.id;
object2.interactionType = 'guild_event';
object2.channelId = channel?.id;
object2.guildId = guild.id;
const defaultImport4 = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
object2.timestamp = defaultImport4.extractTimestamp(event.id);
object2.onHeaderPress = value13;
object2.onHeaderLongPress = value13;
const container = value3.container;
const timeAndUserPillContainer = value3.timeAndUserPillContainer;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const items2 = [<View style={timeAndUserPillContainer}><Text variant="text-sm/semibold" color={isGuildScheduledEventActive2 ? 'status-positive' : 'text-brand'}>{startDateTimeString}</Text></View>];
r11 = r11 && value3.title;
items2[1] = <Text style={r11} variant="text-lg/semibold">{event.name}</Text>;
let r8 = event.description != null && event.description.length > 0;
if (r8) {
moduleValue5 = require(9123) /* metro dependency 9123: guildEventDetailsParserNative */;
r8 = <Text variant="text-md/normal" color="text-subtle" lineClamp={5}>{moduleValue5.guildEventDetailsParser(event.description,
true, {guildId: guild.id})}</Text>;
}
items2[2] = r8;
items2[3] = <View style={value3.separator} />;
const infoContainer = value3.infoContainer;
const locationContainer = value3.locationContainer;
const GroupIcon = (require(6699) /* metro dependency 6699: GroupIcon */).GroupIcon;
items2[4] = <View style={infoContainer}><View style={locationContainer}><GroupIcon size="xs" style={value3.eventsChannelIcon} /><Text lineClamp={1} variant="text-xs/normal" color="text-muted">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['+DLsD8'],
{count: value16})}</Text></View><View style={value3.locationContainer}>{eventLocationIconComponent != null ? ((Component) => <Component size="xs" style={value3.eventsChannelIcon} />)(eventLocationIconComponent) : eventLocationIconSource != null && ((Icon) => <Icon source={eventLocationIconSource} size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.EXTRA_SMALL} style={value3.eventsChannelIcon} disableColor />)((require(1305) /* metro dependency 1305: native */).Icon)}<Text lineClamp={2} variant="text-xs/normal" color="text-muted">{r23 != null ? (require(9123) /* metro dependency 9123: guildEventDetailsParserNative */).guildEventDetailsParser(r23,
true) : null}</Text></View></View>;
return (
<ICYMICardInCard {...object2}>
<Pressable onPress={value12} style={container}>
{items2}
</Pressable>
</ICYMICardInCard>
);
}
function _fun112564(a0) { // fn#112564, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15076:289, offset: 0x023d25af, size: 349 bytes, params: 2, frame: 15
const object2 = {};
object2.container = {marginHorizontal: a0.margin, marginBottom: a0.margin, marginLeft: a0.margin + a0.inset};
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object2.card = {marginTop: PX_12};
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object2.title = {marginBottom: PX_4};
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.timeAndUserPillContainer = {'flexDirection': 'row', 'alignItems': 'center', 'marginBottom': null,
'justifyContent': 'space-between', marginBottom: PX_8};
const object3 = {'height': 1, 'width': '100%'};
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object3.backgroundColor = BORDER_SUBTLE;
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object3.marginVertical = PX_12;
object2.separator = object3;
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
object2.eventsChannelIcon = {tintColor: INTERACTIVE_TEXT_DEFAULT};
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object2.infoContainer = {gap: PX_4};
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.locationContainer = {'alignItems': 'center', 'flexDirection': 'row', gap: PX_8};
return object2;
}
function ICYMIGuildEventRowWrapper({eventId}) { // fn#112565, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15076:3592, offset: 0x023d270c, size: 217 bytes, params: 2, frame: 20
const guildScheduledEvent = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildScheduledEventStore],
function() {
return GuildScheduledEventStore.getGuildScheduledEvent(eventId);
});
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
return GuildStore.getGuild(guildScheduledEvent?.guild_id);
});
return guildScheduledEvent == null || guild == null || isGuildEventEnded(guildScheduledEvent) ? null : <ICYMIGuildEventRow event={guildScheduledEvent} channel={(require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore],
function() {
return ChannelStore.getChannel(guildScheduledEvent?.channel_id);
})} guild={guild} />;
}
function _fun112561() { // fn#112561, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15076:1047, offset: 0x023d23fe, size: 113 bytes, params: 1, frame: 16
var r0;
var object2;
var intl;
if (env0_2) {
object2 = {};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.startDateTimeString = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.TxqPQR);
r0 = object2;
} else {
r0 = (require(9039) /* metro dependency 9039: ScheduleUtils */).getEventTimeData(env0_3);
function _fun112564(a0) { // fn#112564, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15076:289, offset: 0x023d25af, size: 349 bytes, params: 2, frame: 15
const object = {};
object.container = {marginHorizontal: a0.margin, marginBottom: a0.margin, marginLeft: a0.margin + a0.inset};
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object.card = {marginTop: PX_12};
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object.title = {marginBottom: PX_4};
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object.timeAndUserPillContainer = {'flexDirection': 'row', 'alignItems': 'center', 'marginBottom': null,
'justifyContent': 'space-between', marginBottom: PX_8};
const object4 = {'height': 1, 'width': '100%'};
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object4.backgroundColor = BORDER_SUBTLE;
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object4.marginVertical = PX_12;
object.separator = object4;
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
object.eventsChannelIcon = {tintColor: INTERACTIVE_TEXT_DEFAULT};
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object.infoContainer = {gap: PX_4};
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object.locationContainer = {'alignItems': 'center', 'flexDirection': 'row', gap: PX_8};
return object;
}
return r0;
}
function _fun112562() { // fn#112562, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15076:1386, offset: 0x023d246f, size: 164 bytes, params: 1, frame: 21
const value = environment.__proto__;
const defaultImport = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
const itemInteracted = defaultImport.itemInteracted;
const eventBinding = event;
Reflect.apply(itemInteracted, defaultImport, [eventBinding.id, 'guild_event', 'press_event']);
defaultImport.feedItemActioned({itemId: eventBinding.id, itemType: 'guild_event',
actionParameters: {'actionGestureType': 'press', 'actionTargetElement': 'item_body',
'actionIntentType': 'navigate', 'actionDestinationType': 'event'}});
(require(9032) /* metro dependency 9032: GuildScheduledEventModalActionCreatorsNative */).openGuildEventDetails({eventId: eventBinding.id,
event: eventBinding});
}
function ICYMIGuildEventRowWrapper({eventId}) { // fn#112565, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15076:3592, offset: 0x023d270c, size: 217 bytes, params: 2, frame: 20
const guildScheduledEvent = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildScheduledEventStore],
function() {
return GuildScheduledEventStore.getGuildScheduledEvent(eventId);
});
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
return GuildStore.getGuild(guildScheduledEvent?.guild_id);
});
return (
guildScheduledEvent == null || guild == null || isGuildEventEnded(guildScheduledEvent)
? null
: (
<ICYMIGuildEventRow
event={guildScheduledEvent}
channel={(require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore],
function() {
return ChannelStore.getChannel(guildScheduledEvent?.channel_id);
})}
guild={guild}
/>
)
);
}
function _fun112563() { // fn#112563, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15076:1727, offset: 0x023d2513, size: 156 bytes, params: 1, frame: 22
let value = environment.__proto__;
const defaultImport = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
const itemInteracted = defaultImport.itemInteracted;
const eventBinding = event;
Reflect.apply(itemInteracted, defaultImport, [eventBinding.id, 'guild_event', 'press_event']);
defaultImport.feedItemActioned({itemId: eventBinding.id, itemType: 'guild_event',
actionParameters: {'actionGestureType': 'press', 'actionTargetElement': 'item_header',
'actionIntentType': 'navigate', 'actionDestinationType': 'guild'}});
value = require(6947) /* metro dependency 6947: transitionToGuildNative */;
value.transitionToGuild(guild.id);
}
global.__d(_fun112559, 14879, [31, 27, 4117, 1379, 1867, 33, 14815, 697, 9045, 1244, 9039, 4805, 9042, 9121, 9580,
9032, 6947, 9035, 14856, 21, 4573, 9123, 6699, 1305, 566,
2]) /* metro module 14879, dependencies: [31, 27, 4117, 1379, 1867, 33, 14815, 697, 9045, 1244, 9039, 4805, 9042, 9121, 9580, 9032, 6947, 9035, 14856, 21, 4573, 9123, 6699, 1305, 566, 2] */;
+32 -28
View File
@@ -1,14 +1,16 @@
/* Metro module 14881; source: modules/icymi/native/ICYMIHeader.tsx; dependencies: [31, 27, 33, 14815, 697, 4573, 1244, 2] */
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 IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
function _fun112585(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15078:6, offset: 0x023d35bf, size: 212 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const value = require(33) /* metro dependency 33 */;
const env0_4 = value.jsx;
const env0_5 = value.Fragment;
const env0_6 = value.jsxs;
ReactModule;
const env0_7 = (require(14815) /* metro dependency 14815: createICYMIStyles */).createICYMIStyles(function(a0) {
var object = {};
object.text = {'flexDirection': 'row', 'justifyContent': 'space-between', marginHorizontal: a0.margin};
@@ -18,28 +20,30 @@ function _fun112585(global, require, importDefault, importAll, module, exports,
object.separator = object3;
return object;
});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/ICYMIHeader.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/ICYMIHeader.tsx');
exports.default = ICYMIHeader;
function ICYMIHeader() { // fn#112587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15078:473, offset: 0x023d3709, size: 180 bytes, params: 1, frame: 22
const value2 = env0_7();
const jsxRuntimeEnv0_5Binding = jsxRuntimeEnv0_5;
const view = <View style={value2.separator} />;
const Text = (TextModule).Text;
const text = value2.text;
const intl = (IndexNativeModule).intl;
return (
<>
{view}
<Text
style={text}
variant="heading-md/semibold"
color="mobile-text-heading-primary"
>
{intl.string((IndexNativeModule).t['jnXV/V'])}
</Text>
</>
);
}
}
function ICYMIHeader() { // fn#112587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15078:473, offset: 0x023d3709, size: 180 bytes, params: 1, frame: 22
const value2 = env0_7();
const jsxRuntimeEnv0_5Binding = jsxRuntimeEnv0_5;
const view = <View style={value2.separator} />;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const text = value2.text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<>
{view}
<Text
style={text}
variant="heading-md/semibold"
color="mobile-text-heading-primary"
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['jnXV/V'])}
</Text>
</>
);
}
global.__d(_fun112585, 14881, [31, 27, 33, 14815, 697, 4573, 1244,
2]) /* metro module 14881, dependencies: [31, 27, 33, 14815, 697, 4573, 1244, 2] */;
+110 -92
View File
@@ -1,4 +1,13 @@
/* Metro module 14876; source: modules/icymi/native/ICYMILoading.tsx; dependencies: [31, 27, 33, 14815, 697, 11956, 4017, 14854, 2] */
import ReanimatedRexport from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import UseChatPlaceholderAnimatedStyles from '../../chat/native/placeholder/useChatPlaceholderAnimatedStyles.tsx'; /* Metro dependency 11956 */
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 CreateICYMIStylesModule from './createICYMIStyles.tsx'; /* Metro dependency 14815 */
import * as ICYMISharedModule from './ICYMIShared.tsx'; /* Metro dependency 14854 */
function _fun112537(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112537, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15073:6, offset: 0x023d078c, size: 238 bytes, params: 8, frame: 18
const env0_0 = require;
const placeholderRowWidth_112538 = function(a0, a1, a2) {
@@ -11,116 +20,125 @@ function _fun112537(global, require, importDefault, importAll, module, exports,
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
const env0_7 = value.Fragment;
const env0_8 = (require(14815) /* metro dependency 14815: createICYMIStyles */).createICYMIStyles(_fun112541);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/ICYMILoading.tsx');
const env0_8 = (CreateICYMIStylesModule).createICYMIStyles(_fun112541);
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/ICYMILoading.tsx');
exports.ICYMILoading = ICYMILoading;
}
function ICYMILoadingItem() { // fn#112539, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15073:867, offset: 0x023d08c0, size: 667 bytes, params: 1, frame: 39
const value2 = env0_8();
const value3 = (UseChatPlaceholderAnimatedStyles)({'visible': true,
'animated': true});
const {avatarTitle, title, subtitle} = ReactModule.useMemo(_fun112540, []);
const jsxRuntimeEnv0_7Binding = jsxRuntimeEnv0_7;
const container = value2.container;
const avatarRow = value2.avatarRow;
const View2 = (ReanimatedRexport).View;
const view = <View2 style={[value2.backgroundColor, value2.avatar, value3]} />;
const View3 = (ReanimatedRexport).View;
const items3 = [value2.backgroundColor];
items3[1] = value2.avatarTitle;
items3[2] = value3;
const object4 = {};
const placeholderRowWidth_112538Binding = placeholderRowWidth_112538;
object4.width = '' + placeholderRowWidth_112538Binding(avatarTitle, 30, 60) + '%';
items3[3] = object4;
const items4 = [
<View style={avatarRow}>
{view}
<View3 style={items3} />
</View>,
];
const View4 = (ReanimatedRexport).View;
const items5 = [value2.backgroundColor];
items5[1] = value2.title;
items5[2] = value3;
const object5 = {};
object5.width = '' + placeholderRowWidth_112538Binding(title, 75, 100) + '%';
items5[3] = object5;
items4[1] = <View4 style={items5} />;
const View5 = (ReanimatedRexport).View;
const items6 = [value2.backgroundColor];
items6[1] = value2.subtitle;
items6[2] = value3;
const object6 = {};
object6.width = '' + placeholderRowWidth_112538Binding(subtitle, 75, 100) + '%';
items6[3] = object6;
items4[2] = <View5 style={items6} />;
const View6 = (ReanimatedRexport).View;
items4[3] = <View6 style={[value2.backgroundColor, value2.image, value3]} />;
const view2 = (
<View style={container}>
{items4}
</View>
);
const Separator = (ICYMISharedModule).Separator;
return (
<>
{view2}
<Separator />
</>
);
}
function ICYMILoadingItem() { // fn#112539, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15073:867, offset: 0x023d08c0, size: 667 bytes, params: 1, frame: 39
const value2 = env0_8();
const value3 = (importDefault(11956) /* metro dependency 11956: useChatPlaceholderAnimatedStyles */)({'visible': true,
'animated': true});
const {avatarTitle, title, subtitle} = env0_3.useMemo(_fun112540, []);
const jsxRuntimeEnv0_7Binding = jsxRuntimeEnv0_7;
const container = value2.container;
const avatarRow = value2.avatarRow;
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
const view = <View2 style={[value2.backgroundColor, value2.avatar, value3]} />;
const View3 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
const items3 = [value2.backgroundColor];
items3[1] = value2.avatarTitle;
items3[2] = value3;
const object = {};
const placeholderRowWidth_112538Binding = placeholderRowWidth_112538;
object.width = '' + placeholderRowWidth_112538Binding(avatarTitle, 30, 60) + '%';
items3[3] = object;
const items4 = [<View style={avatarRow}>{view}<View3 style={items3} /></View>];
const View4 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
const items5 = [value2.backgroundColor];
items5[1] = value2.title;
items5[2] = value3;
const object2 = {};
object2.width = '' + placeholderRowWidth_112538Binding(title, 75, 100) + '%';
items5[3] = object2;
items4[1] = <View4 style={items5} />;
const View5 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
const items6 = [value2.backgroundColor];
items6[1] = value2.subtitle;
items6[2] = value3;
const object3 = {};
object3.width = '' + placeholderRowWidth_112538Binding(subtitle, 75, 100) + '%';
items6[3] = object3;
items4[2] = <View5 style={items6} />;
const View6 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
items4[3] = <View6 style={[value2.backgroundColor, value2.image, value3]} />;
const view2 = <View style={container}>{items4}</View>;
const Separator = (require(14854) /* metro dependency 14854: ICYMIShared */).Separator;
return (
<>
{view2}
<Separator />
</>
);
}
function _fun112541(a0) { // fn#112541, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15073:190, offset: 0x023d0be1, size: 352 bytes, params: 2, frame: 18
const object = {};
const BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
object.backgroundColor = {backgroundColor: BACKGROUND_MOD_SUBTLE};
object.container = {padding: a0.margin};
object.avatarRow = {'flexDirection': 'row', 'alignItems': 'center', marginBottom: a0.margin};
const object5 = {'width': 40, 'height': 40};
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object5.marginRight = PX_12;
object.avatar = object5;
object.avatarTitle = {'height': 18, 'borderRadius': 10, 'flexShrink': 1};
const object6 = {};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object6.height = PX_16;
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object6.marginBottom = PX_12;
object6.borderRadius = 10;
object6.flexShrink = 1;
object.title = object6;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object.subtitle = {height: PX_16, marginBottom: a0.margin, borderRadius: 10, flexShrink: 1};
const object8 = {'width': '100%', 'height': 240};
object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object.image = object8;
object.separator = {};
return object;
}
function _fun112541(a0) { // fn#112541, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15073:190, offset: 0x023d0be1, size: 352 bytes, params: 2, frame: 18
const object2 = {};
const BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
object2.backgroundColor = {backgroundColor: BACKGROUND_MOD_SUBTLE};
object2.container = {padding: a0.margin};
object2.avatarRow = {'flexDirection': 'row', 'alignItems': 'center', marginBottom: a0.margin};
const object3 = {'width': 40, 'height': 40};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object3.marginRight = PX_12;
object2.avatar = object3;
object2.avatarTitle = {'height': 18, 'borderRadius': 10, 'flexShrink': 1};
const object4 = {};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.height = PX_16;
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object4.marginBottom = PX_12;
object4.borderRadius = 10;
object4.flexShrink = 1;
object2.title = object4;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.subtitle = {height: PX_16, marginBottom: a0.margin, borderRadius: 10, flexShrink: 1};
const object7 = {'width': '100%', 'height': 240};
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object2.image = object7;
object2.separator = {};
return object2;
}
function ICYMILoading() { // fn#112542, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15073:1738, offset: 0x023d0d41, size: 67 bytes, params: 1, frame: 17
return (
<>
<ICYMILoadingItem />
<ICYMILoadingItem />
</>
);
}
function ICYMILoading() { // fn#112542, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15073:1738, offset: 0x023d0d41, size: 67 bytes, params: 1, frame: 17
return (
<>
<ICYMILoadingItem />
<ICYMILoadingItem />
</>
);
}
function _fun112540() { // fn#112540, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15073:954, offset: 0x023d0b5b, size: 134 bytes, params: 1, frame: 15
const object2 = {};
const object = {};
let Math = global.Math;
let floor = Math.floor;
const Math2 = global.Math;
object2.avatarTitle = Reflect.apply(floor, Math, [10 * Math2.random()]);
object.avatarTitle = Reflect.apply(floor, Math, [10 * Math2.random()]);
Math = global.Math;
floor = Math.floor;
const Math3 = global.Math;
object2.title = Reflect.apply(floor, Math, [10 * Math3.random()]);
object.title = Reflect.apply(floor, Math, [10 * Math3.random()]);
Math = global.Math;
floor = Math.floor;
const Math4 = global.Math;
object2.subtitle = Reflect.apply(floor, Math, [10 * Math4.random()]);
return object2;
object.subtitle = Reflect.apply(floor, Math, [10 * Math4.random()]);
return object;
}
global.__d(_fun112537, 14876, [31, 27, 33, 14815, 697, 11956, 4017, 14854,
2]) /* metro module 14876, dependencies: [31, 27, 33, 14815, 697, 11956, 4017, 14854, 2] */;
+394 -289
View File
@@ -1,302 +1,407 @@
/* Metro module 14858; source: modules/icymi/native/ICYMIMessageRow.tsx; dependencies: [31, 27, 1379, 1945, 1867, 3793, 4864, 1878, 14853, 661, 33, 697, 14815, 477, 14816, 9546, 7230, 566, 14859, 14860, 4573, 1244, 1305, 4617, 6593, 9579, 9580, 12129, 11401, 14854, 14856, 21, 5278, 9122, 14862, 2] */
import SnowflakeUtils from '../../../utils/SnowflakeUtils.tsx'; /* Metro dependency 21 */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ChannelStore from '../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import GuildStore from '../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import GuildMemberStore from '../../../stores/GuildMemberStore.tsx'; /* Metro dependency 1945 */
import RelationshipStore from '../../../stores/RelationshipStore.tsx'; /* Metro dependency 3793 */
import UserGuildSettingsStore from '../../../stores/UserGuildSettingsStore.tsx'; /* Metro dependency 4864 */
import GetChannelA11yLabel from '../../channel/getChannelA11yLabel.tsx'; /* Metro dependency 9122 */
import ICYMIActionCreators from '../ICYMIActionCreators.tsx'; /* Metro dependency 9580 */
import ICYMICardInCard from './ICYMICardInCard.tsx'; /* Metro dependency 14856 */
import ICYMICardInteractionRow from './ICYMICardInteractionRow.tsx'; /* Metro dependency 14862 */
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 PlatformUtilsModule from '../../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */
import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as PressablesModule from '../../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */
import * as ICYMITypesModule from '../ICYMITypes.tsx'; /* Metro dependency 7230 */
import * as GetChannelA11yLabelModule from '../../channel/getChannelA11yLabel.tsx'; /* Metro dependency 9122 */
import * as MediaSourceUtilModule from '../../media_viewer/native/MediaSourceUtil.tsx'; /* Metro dependency 9546 */
import * as ICYMIUtilsModule from '../ICYMIUtils.tsx'; /* Metro dependency 9579 */
import * as ShowLongPressMessageActionSheetModule from '../../messages/native/long_press/showLongPressMessageActionSheet.tsx'; /* Metro dependency 11401 */
import * as CreateICYMIStylesModule from './createICYMIStyles.tsx'; /* Metro dependency 14815 */
import * as ICYMIContextModule from './ICYMIContext.tsx'; /* Metro dependency 14816 */
import * as DesignConstantsModule from './DesignConstants.tsx'; /* Metro dependency 14853 */
function _fun112296(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112296, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15055:6, offset: 0x023c4268, size: 455 bytes, params: 8, frame: 20
const env0_0 = require;
const closure = MessageRowContent;
const MessageRowContent2 = MessageRowContent;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const value = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const guildMemberStore = importDefault(1945) /* metro dependency 1945: GuildMemberStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_11 = (require(14853) /* metro dependency 14853: DesignConstants */).ITEM_PADDING;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_12 = constantsModule.DEFAULT_ROLE_COLOR_HEX;
const env0_13 = constantsModule.MessageEmbedTypes;
const value3 = require(33) /* metro dependency 33 */;
const env0_14 = value3.jsx;
const env0_15 = value3.jsxs;
const env0_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
const env0_17 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
const env0_18 = (require(14815) /* metro dependency 14815: createICYMIStyles */).createICYMIStyles(_fun112304);
const env0_19 = value.memo(_fun112305);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/ICYMIMessageRow.tsx');
const env0_18 = (CreateICYMIStylesModule).createICYMIStyles(_fun112304);
const env0_19 = ReactModule.memo(_fun112305);
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/ICYMIMessageRow.tsx');
exports.default = MessageRowWrapper;
exports.MessageRowContent = closure;
}
function MessageRowContent({message, channel, lineClamp, nested, visible}) { // fn#112297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15055:997, offset: 0x023c442f, size: 728 bytes, params: 2, frame: 31
var r11;
var r6;
var MessageRowPreview;
var object;
lineClamp = lineClamp === undefined ? 3 : lineClamp;
nested = !(nested === undefined) && nested;
visible = !(visible === undefined) && visible;
const value6 = env0_18();
const binding = env0_3;
const useContext = binding.useContext;
const ICYMIContext = (require(14816) /* metro dependency 14816: ICYMIContext */).ICYMIContext;
const value7 = Reflect.apply(useContext, binding, [ICYMIContext]);
const mediaSourceUtilModule = require(9546) /* metro dependency 9546: MediaSourceUtil */;
const extractMediaSourcesFromMessage = mediaSourceUtilModule.extractMediaSourcesFromMessage;
const guild_id = channel.guild_id;
const GRAVITY_VALID_EMBED_TYPES = (require(7230) /* metro dependency 7230: ICYMITypes */).GRAVITY_VALID_EMBED_TYPES;
const value8 = Reflect.apply(extractMediaSourcesFromMessage, mediaSourceUtilModule, [message, message, guild_id,
GRAVITY_VALID_EMBED_TYPES]);
const value9 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserGuildSettingsStore],
_fun112298);
const value10 = env0_3.useMemo(_fun112299, [message.attachments.length, message.content, message.embeds]);
const value11 = message.attachments.every(function({content_type}) {
return content_type?.startsWith('audio/');
});
const items3 = [value6.messagePreview];
items3[1] = nested ? null : {paddingLeft: value7.margin};
if (value10) {
r6 = !value10;
} else {
MessageRowPreview = (require(14859) /* metro dependency 14859: ICYMIMessageRowPreview */).MessageRowPreview;
object = {message: message, muted: value9, lineClamp: lineClamp};
r11 = value8.length !== 0 ? undefined : message.attachments.length > 0 ? message.embeds.length !== 0 ? undefined : {renderAttachments: true} : undefined;
object.messageOptions = r11;
r11 = value11 ? 'auto' : 'none';
object.pointerEvents = r11;
r6 = <MessageRowPreview {...object} />;
}
const items2 = [r6];
items2[1] = value8.length > 0 && <View style={value6.media}>{((Component) => <Component message={message} visible={visible} itemType="message" />)(importDefault(14860) /* metro dependency 14860: ICYMIMediaMosaic */)}</View>;
items2[2] = value8.length === 0 && message.embeds.length > 0 && <View style={value6.media}>{((NonMediaEmbedsRowPreview) => <NonMediaEmbedsRowPreview message={message} muted={value9} lineClamp={3} />)((require(14859) /* metro dependency 14859: ICYMIMessageRowPreview */).NonMediaEmbedsRowPreview)}</View>;
return (
<View style={items3}>
{items2}
</View>
);
}
function ReplyMessageContent({message, channel, guild}) { // fn#112301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15055:2076, offset: 0x023c47da, size: 847 bytes, params: 2, frame: 42
var r0;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var intl;
var items4;
var Avatar;
var id;
var items2;
var object;
var inset;
var moduleValue3;
var getName;
var items3;
var Provider;
const value3 = env0_18();
let binding = env0_3;
let useContext = binding.useContext;
const ICYMIContext = (require(14816) /* metro dependency 14816: ICYMIContext */).ICYMIContext;
const value4 = Reflect.apply(useContext, binding, [ICYMIContext]);
const user = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getUser(message.author.id);
});
const r28 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildMemberStore], function() {
return GuildMemberStore.getMember(guild.id, message.author.id);
})?.colorString ?? DEFAULT_ROLE_COLOR_HEX;
binding = env0_3;
useContext = binding.useContext;
const width = Reflect.apply(useContext, binding, [ICYMIContext]).width;
if (user == null) {
r0 = null;
} else {
var viewBindingProps = {style: value3.replyPreview};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items4 = [<Text variant="text-sm/semibold" color="text-muted" style={{fontStyle: 'italic'}}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.mPPcez)}</Text>];
var viewBinding2Props = {style: value3.replyInner};
Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
id = guild.id;
items2 = [<Avatar animate={false} guildId={id} user={user} size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.SMALL} />];
object = {};
inset = value4.inset;
object.style = {gap: 4, width: width - inset - 2 * ITEM_PADDING - 2 * PX_12 - 30 - PX_8 - 2};
var textProps2 = {'variant': 'text-md/semibold', 'style': null, 'lineClamp': 1, style: {color: r28}};
moduleValue3 = require(4617) /* metro dependency 4617: NicknameUtils */;
getName = moduleValue3.getName;
id = guild.id;
items3 = [<Text {...textProps2}>{Reflect.apply(getName, moduleValue3, [id, channel.id, user])}</Text>];
Provider = (require(14816) /* metro dependency 14816: ICYMIContext */).ICYMIContext.Provider;
inset = value4.inset;
items3[1] = <Provider value={{width: width - 2 * PX_12 - 30 - PX_8 - 2, margin: value4.margin,
inset: inset}}><MessageRowContent message={message} channel={channel} guild={guild} nested /></Provider>;
items2[1] = <View {...object}>{items3}</View>;
items4[1] = <View {...viewBinding2Props}>{items2}</View>;
r0 = <View {...viewBindingProps}>{items4}</View>;
}
return r0;
}
function _fun112304(a0) { // fn#112304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15055:366, offset: 0x023c4b7f, size: 439 bytes, params: 2, frame: 19
const object5 = {};
const object6 = {flex: 1};
object6.paddingLeft = a0.inset;
const PX_82 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object6.gap = PX_82;
object5.pressable = object6;
const object7 = {};
const isAndroid2 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
const value2 = 0;
object7.marginTop = isAndroid2 ? -2 : value2;
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object7.gap = value2;
object5.messagePreview = object7;
const object9 = {};
const PX_83 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object9.gap = PX_83;
object9.marginHorizontal = a0.margin;
object9.padding = PX_12;
object9.overflow = 'hidden';
object9.borderWidth = 1;
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object9.borderColor = BORDER_SUBTLE;
object9.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object9.maxHeight = 132;
object5.replyPreview = object9;
object5.replyInner = {'flexDirection': 'row', 'gap': null, 'overflow': 'hidden', gap: PX_8};
object5.afterMessage = {paddingLeft: a0.inset, paddingBottom: a0.margin};
object5.media = {marginRight: a0.margin};
const object10 = {};
const PX_84 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object10.marginTop = PX_84;
object10.marginBottom = a0.margin;
const PX_85 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object10.gap = PX_85;
object10.paddingHorizontal = a0.margin;
object10.marginLeft = a0.inset;
object5.footer = object10;
return object5;
}
function _fun112305({message, channel, guild, visible, messageContext}) { // fn#112305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15055:3084, offset: 0x023c4d36, size: 941 bytes, params: 2, frame: 33
var object2;
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserGuildSettingsStore],
_fun112306);
env0_3.useEffect(_fun112307, [guild?.id, message.author.id]);
const value5 = (require(9579) /* metro dependency 9579: ICYMIUtils */).useICYMIMessage(channel.id,
messageContext?.reply_message_id);
const value6 = (require(9579) /* metro dependency 9579: ICYMIUtils */).useICYMIMessage(channel.id,
messageContext?.before_message_id);
const value7 = env0_18();
const value8 = env0_3.useCallback(_fun112308, [channel.id, message]);
const value9 = env0_3.useCallback(_fun112309, [channel, message]);
const value10 = env0_3.useCallback(_fun112310, [channel.id, guild.id, message.id]);
const ICYMICardInCard = importDefault(14856) /* metro dependency 14856: ICYMICardInCard */;
object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.actionLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.hMFMY9);
object2.id = message.id;
object2.interactionType = 'message';
object2.channelId = channel.id;
const defaultImport2 = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
object2.timestamp = defaultImport2.extractTimestamp(message.id);
object2.onHeaderPress = value10;
object2.onHeaderLongPress = value8;
object2.message = message;
object2.shouldFeatureUser = true;
const PressableHighlight = (require(5278) /* metro dependency 5278: Pressables */).PressableHighlight;
const pressableHighlightProps = {onPress: value10, onLongPress: value9, unstable_pressDelay: 130,
accessibilityRole: 'button',
accessibilityLabel: (importDefault(9122) /* metro dependency 9122: getChannelA11yLabel */)({channel: channel}),
accessibilityHint: (require(9122) /* metro dependency 9122: getChannelA11yLabel */).getChannelA11yHint({channel: channel,
muted: value3}), style: value7.pressable};
const items2 = [value6 != null ? <MessageRowContent message={value6} channel={channel} guild={guild} visible={visible} /> : null];
items2[1] = <MessageRowContent message={message} channel={channel} guild={guild} visible={visible} />;
items2[2] = value5 != null ? <ReplyMessageContent message={value5} channel={channel} guild={guild} /> : null;
return (
<ICYMICardInCard {...object2}>
<PressableHighlight {...pressableHighlightProps}>
exports.MessageRowContent = MessageRowContent2;
function MessageRowContent({message, channel, lineClamp, nested, visible}) { // fn#112297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15055:997, offset: 0x023c442f, size: 728 bytes, params: 2, frame: 31
var r11;
var r6;
var MessageRowPreview;
var object2;
lineClamp = lineClamp === undefined ? 3 : lineClamp;
nested = !(nested === undefined) && nested;
visible = !(visible === undefined) && visible;
const value6 = env0_18();
const binding = env0_3;
const useContext = binding.useContext;
const ICYMIContext = (ICYMIContextModule).ICYMIContext;
const value7 = Reflect.apply(useContext, binding, [ICYMIContext]);
const extractMediaSourcesFromMessage = MediaSourceUtilModule.extractMediaSourcesFromMessage;
const guild_id = channel.guild_id;
const GRAVITY_VALID_EMBED_TYPES = (ICYMITypesModule).GRAVITY_VALID_EMBED_TYPES;
const value8 = Reflect.apply(extractMediaSourcesFromMessage, MediaSourceUtilModule, [message, message, guild_id,
GRAVITY_VALID_EMBED_TYPES]);
const value9 = (FluxModule).useStateFromStores([UserGuildSettingsStore],
_fun112298);
const value10 = env0_3.useMemo(_fun112299, [message.attachments.length, message.content, message.embeds]);
const value11 = message.attachments.every(function({content_type}) {
return content_type?.startsWith('audio/');
});
const items3 = [value6.messagePreview];
items3[1] = nested ? null : {paddingLeft: value7.margin};
if (value10) {
r6 = !value10;
} else {
MessageRowPreview = (require(14859) /* metro dependency 14859: ICYMIMessageRowPreview */).MessageRowPreview;
object2 = {message: message, muted: value9, lineClamp: lineClamp};
r11 = value8.length !== 0 ? undefined : message.attachments.length > 0 ? message.embeds.length !== 0 ? undefined : {renderAttachments: true} : undefined;
object2.messageOptions = r11;
r11 = value11 ? 'auto' : 'none';
object2.pointerEvents = r11;
r6 = <MessageRowPreview {...object2} />;
}
const items2 = [r6];
items2[1] = value8.length > 0 && <View style={value6.media}>{((Component) => <Component message={message} visible={visible} itemType="message" />)(importDefault(14860) /* metro dependency 14860: ICYMIMediaMosaic */)}</View>;
items2[2] = value8.length === 0 && message.embeds.length > 0 && <View style={value6.media}>{((NonMediaEmbedsRowPreview) => <NonMediaEmbedsRowPreview message={message} muted={value9} lineClamp={3} />)((require(14859) /* metro dependency 14859: ICYMIMessageRowPreview */).NonMediaEmbedsRowPreview)}</View>;
return (
<View style={items3}>
{items2}
</PressableHighlight>
<View style={value7.footer}>
{((Component) => <Component message={message} channel={channel} guild={guild} backgroundVariant="base" id={message.id} itemType="message" />)(importDefault(14862) /* metro dependency 14862: ICYMICardInteractionRow */)}
</View>
</ICYMICardInCard>
);
}
);
function _fun112298() { // fn#112298, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15055:1262, offset: 0x023c4707, size: 43 bytes, params: 1, frame: 13
const value = environment.__proto__;
const userGuildSettingsStoreBinding = UserGuildSettingsStore;
const isChannelMuted = userGuildSettingsStoreBinding.isChannelMuted;
const channelBinding = channel;
return Reflect.apply(isChannelMuted, userGuildSettingsStoreBinding, [channelBinding.getGuildId(),
channelBinding.id]);
}
function MessageRowWrapper({message, messageContext, visible}) { // fn#112311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15055:5479, offset: 0x023c534f, size: 251 bytes, params: 2, frame: 23
const value2 = (require(9579) /* metro dependency 9579: ICYMIUtils */).useGravityMessage(message);
const channel = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], _fun112312);
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
return GuildStore.getGuild(channel?.guild_id);
});
return channel == null || guild == null || (require(566) /* metro dependency 566: flux */).useStateFromStores([RelationshipStore],
_fun112314) ? null : ((Component) => <Component message={value2} channel={channel} guild={guild} messageContext={messageContext} visible={visible} />)(env0_19);
}
function _fun112299() { // fn#112299, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15055:1319, offset: 0x023c4732, size: 129 bytes, params: 1, frame: 5
return !(message.embeds.length !== 1 || message.attachments.length > 0) && (message.embeds[0].type === MessageEmbedTypes.GIFV && message.embeds[0].url === message.content);
}
function _fun112298() { // fn#112298, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15055:1262, offset: 0x023c4707, size: 43 bytes, params: 1, frame: 13
const value = environment.__proto__;
const isChannelMuted = UserGuildSettingsStore.isChannelMuted;
const channelBinding = channel;
return Reflect.apply(isChannelMuted, UserGuildSettingsStore, [channelBinding.getGuildId(), channelBinding.id]);
}
function _fun112299() { // fn#112299, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15055:1319, offset: 0x023c4732, size: 129 bytes, params: 1, frame: 5
return !(message.embeds.length !== 1 || message.attachments.length > 0) && (message.embeds[0].type === MessageEmbedTypes.GIFV && message.embeds[0].url === message.content);
}
function _fun112307() { // fn#112307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15055:3247, offset: 0x023c50e3, size: 107 bytes, params: 1, frame: 15
var value3;
var defaultImport;
const guildBinding = guild;
const value2 = undefined;
if ((guildBinding == null ? value2 : guild.id) != null) {
value3 = environment.__proto__;
defaultImport = importDefault(6593) /* metro dependency 6593: GuildActionCreators */;
defaultImport.requestMembersById(guild == null ? value2 : guild.id, message.author.id);
}
return value2;
}
function _fun112308() { // fn#112308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15055:3541, offset: 0x023c514e, size: 154 bytes, params: 1, frame: 22
let value = environment.__proto__;
const defaultImport = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
const itemInteracted = defaultImport.itemInteracted;
const messageBinding = message;
Reflect.apply(itemInteracted, defaultImport, [messageBinding.id, 'message', 'long_press_channel']);
defaultImport.feedItemActioned({itemId: messageBinding.id, itemType: 'message',
actionParameters: {'actionGestureType': 'long_press', 'actionTargetElement': 'item_header',
'actionIntentType': 'open', 'actionDestinationType': null}});
value = require(12129) /* metro dependency 12129: openChannelLongPressActionSheet */;
value.openChannelLongPressActionSheet(channel.id);
}
function _fun112309() { // fn#112309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15055:3878, offset: 0x023c51e8, size: 189 bytes, params: 1, frame: 22
const defaultImport = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
const itemInteracted = defaultImport.itemInteracted;
const messageBinding = message;
Reflect.apply(itemInteracted, defaultImport, [messageBinding.id, 'message', 'long_press_message']);
defaultImport.feedItemActioned({itemId: messageBinding.id, itemType: 'message',
actionParameters: {'actionGestureType': 'long_press', 'actionTargetElement': 'item_body',
'actionIntentType': 'open', 'actionDestinationType': null}});
const showLongPressMessageActionSheetModule = require(11401) /* metro dependency 11401: showLongPressMessageActionSheet */;
const showLongPressMessageActionSheet = showLongPressMessageActionSheetModule.showLongPressMessageActionSheet;
const getUser = UserStore.getUser;
Reflect.apply(showLongPressMessageActionSheet, showLongPressMessageActionSheetModule, [{channel: channel,
message: messageBinding, user: Reflect.apply(getUser, UserStore, [messageBinding.author.id])}]);
}
function _fun112310() { // fn#112310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15055:4255, offset: 0x023c52a5, size: 170 bytes, params: 1, frame: 22
let value = environment.__proto__;
const defaultImport = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
const itemInteracted = defaultImport.itemInteracted;
const messageBinding = message;
Reflect.apply(itemInteracted, defaultImport, [messageBinding.id, 'message', 'press_message']);
defaultImport.feedItemActioned({itemId: messageBinding.id, itemType: 'message',
actionParameters: {'actionGestureType': 'press', 'actionTargetElement': 'item_container',
'actionIntentType': 'navigate', 'actionDestinationType': 'channel'}});
value = require(14854) /* metro dependency 14854: ICYMIShared */;
value.navigateToPost(channel.id, guild.id, messageBinding.id);
}
function _fun112314() { // fn#112314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15055:5768, offset: 0x023c5479, size: 38 bytes, params: 1, frame: 11
return RelationshipStore.isBlockedOrIgnored(env0_0.author.id);
function ReplyMessageContent({message, channel, guild}) { // fn#112301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15055:2076, offset: 0x023c47da, size: 847 bytes, params: 2, frame: 42
var r0;
const Text = (TextModule).Text;
var intl;
var items4;
var Avatar;
var id;
var items2;
var object2;
var inset;
var moduleValue3;
var getName;
var items3;
var Provider;
const value3 = env0_18();
let binding = env0_3;
let useContext = binding.useContext;
const ICYMIContext = (require(14816) /* metro dependency 14816: ICYMIContext */).ICYMIContext;
const value4 = Reflect.apply(useContext, binding, [ICYMIContext]);
const user = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getUser(message.author.id);
});
const r28 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildMemberStore], function() {
return GuildMemberStore.getMember(guild.id, message.author.id);
})?.colorString ?? DEFAULT_ROLE_COLOR_HEX;
binding = env0_3;
useContext = binding.useContext;
const width = Reflect.apply(useContext, binding, [ICYMIContext]).width;
if (user == null) {
r0 = null;
} else {
var viewBindingProps = {style: value3.replyPreview};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items4 = [
<Text
variant="text-sm/semibold"
color="text-muted"
style={{fontStyle: 'italic'}}
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.mPPcez)}
</Text>,
];
var viewBinding2Props = {style: value3.replyInner};
Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
id = guild.id;
items2 = [
<Avatar
animate={false}
guildId={id}
user={user}
size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.SMALL}
/>,
];
object2 = {};
inset = value4.inset;
object2.style = {gap: 4, width: width - inset - 2 * ITEM_PADDING - 2 * PX_12 - 30 - PX_8 - 2};
var textProps2 = {'variant': 'text-md/semibold', 'style': null, 'lineClamp': 1, style: {color: r28}};
moduleValue3 = require(4617) /* metro dependency 4617: NicknameUtils */;
getName = moduleValue3.getName;
id = guild.id;
items3 = [
<Text {...textProps2}>
{Reflect.apply(getName, moduleValue3, [id, channel.id, user])}
</Text>,
];
Provider = (require(14816) /* metro dependency 14816: ICYMIContext */).ICYMIContext.Provider;
inset = value4.inset;
items3[1] = (
<Provider value={{width: width - 2 * PX_12 - 30 - PX_8 - 2, margin: value4.margin, inset: inset}}>
<MessageRowContent
message={message}
channel={channel}
guild={guild}
nested
/>
</Provider>
);
items2[1] = (
<View {...object2}>
{items3}
</View>
);
items4[1] = (
<View {...viewBinding2Props}>
{items2}
</View>
);
r0 = (
<View {...viewBindingProps}>
{items4}
</View>
);
}
return r0;
}
function _fun112304(a0) { // fn#112304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15055:366, offset: 0x023c4b7f, size: 439 bytes, params: 2, frame: 19
const object = {};
const object2 = {flex: 1};
object2.paddingLeft = a0.inset;
const PX_82 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.gap = PX_82;
object.pressable = object2;
const object3 = {};
const isAndroid2 = (PlatformUtilsModule).isAndroid();
const value2 = 0;
object3.marginTop = isAndroid2 ? -2 : value2;
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object3.gap = value2;
object.messagePreview = object3;
const object4 = {};
const PX_83 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object4.gap = PX_83;
object4.marginHorizontal = a0.margin;
object4.padding = PX_12;
object4.overflow = 'hidden';
object4.borderWidth = 1;
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object4.borderColor = BORDER_SUBTLE;
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object4.maxHeight = 132;
object.replyPreview = object4;
object.replyInner = {'flexDirection': 'row', 'gap': null, 'overflow': 'hidden', gap: PX_8};
object.afterMessage = {paddingLeft: a0.inset, paddingBottom: a0.margin};
object.media = {marginRight: a0.margin};
const object8 = {};
const PX_84 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object8.marginTop = PX_84;
object8.marginBottom = a0.margin;
const PX_85 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object8.gap = PX_85;
object8.paddingHorizontal = a0.margin;
object8.marginLeft = a0.inset;
object.footer = object8;
return object;
}
function _fun112305({message, channel, guild, visible, messageContext}) { // fn#112305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15055:3084, offset: 0x023c4d36, size: 941 bytes, params: 2, frame: 33
const value3 = (FluxModule).useStateFromStores([UserGuildSettingsStore],
_fun112306);
env0_3.useEffect(_fun112307, [guild?.id, message.author.id]);
const value5 = (require(9579) /* metro dependency 9579: ICYMIUtils */).useICYMIMessage(channel.id,
messageContext?.reply_message_id);
const value6 = (require(9579) /* metro dependency 9579: ICYMIUtils */).useICYMIMessage(channel.id,
messageContext?.before_message_id);
const value7 = env0_18();
const value8 = env0_3.useCallback(_fun112308, [channel.id, message]);
const value9 = env0_3.useCallback(_fun112309, [channel, message]);
const value10 = env0_3.useCallback(_fun112310, [channel.id, guild.id, message.id]);
object = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.actionLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.hMFMY9);
object.id = message.id;
object.interactionType = 'message';
object.channelId = channel.id;
const defaultImport2 = SnowflakeUtils;
object.timestamp = defaultImport2.extractTimestamp(message.id);
object.onHeaderPress = value10;
object.onHeaderLongPress = value8;
object.message = message;
object.shouldFeatureUser = true;
const PressableHighlight = (PressablesModule).PressableHighlight;
const pressableHighlightProps = {onPress: value10, onLongPress: value9, unstable_pressDelay: 130,
accessibilityRole: 'button',
accessibilityLabel: (GetChannelA11yLabel)({channel: channel}),
accessibilityHint: (GetChannelA11yLabelModule).getChannelA11yHint({channel: channel,
muted: value3}), style: value7.pressable};
const items2 = [
value6 != null
? (
<MessageRowContent
message={value6}
channel={channel}
guild={guild}
visible={visible}
/>
)
: null,
];
items2[1] = (
<MessageRowContent
message={message}
channel={channel}
guild={guild}
visible={visible}
/>
);
items2[2] = (
value5 != null
? (
<ReplyMessageContent
message={value5}
channel={channel}
guild={guild}
/>
)
: null
);
return (
<ICYMICardInCard {...object}>
<PressableHighlight {...pressableHighlightProps}>
{items2}
</PressableHighlight>
<View style={value7.footer}>
{((Component) => <Component message={message} channel={channel} guild={guild} backgroundVariant="base" id={message.id} itemType="message" />)(ICYMICardInteractionRow)}
</View>
</ICYMICardInCard>
);
function _fun112306() { // fn#112306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15055:3190, offset: 0x023c4707, size: 43 bytes, params: 1, frame: 13
const value = environment.__proto__;
const userGuildSettingsStoreBinding = UserGuildSettingsStore;
const isChannelMuted = userGuildSettingsStoreBinding.isChannelMuted;
const channelBinding = channel;
return Reflect.apply(isChannelMuted, userGuildSettingsStoreBinding, [channelBinding.getGuildId(),
channelBinding.id]);
}
function _fun112307() { // fn#112307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15055:3247, offset: 0x023c50e3, size: 107 bytes, params: 1, frame: 15
var value3;
var defaultImport;
const guildBinding = guild;
const value2 = undefined;
if ((guildBinding == null ? value2 : guild.id) != null) {
value3 = environment.__proto__;
defaultImport = importDefault(6593) /* metro dependency 6593: GuildActionCreators */;
defaultImport.requestMembersById(guild == null ? value2 : guild.id, message.author.id);
}
return value2;
}
function _fun112308() { // fn#112308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15055:3541, offset: 0x023c514e, size: 154 bytes, params: 1, frame: 22
let value = environment.__proto__;
const defaultImport = ICYMIActionCreators;
const itemInteracted = defaultImport.itemInteracted;
const messageBinding = message;
Reflect.apply(itemInteracted, defaultImport, [messageBinding.id, 'message', 'long_press_channel']);
defaultImport.feedItemActioned({itemId: messageBinding.id, itemType: 'message',
actionParameters: {'actionGestureType': 'long_press', 'actionTargetElement': 'item_header',
'actionIntentType': 'open', 'actionDestinationType': null}});
value = require(12129) /* metro dependency 12129: openChannelLongPressActionSheet */;
value.openChannelLongPressActionSheet(channel.id);
}
function _fun112309() { // fn#112309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15055:3878, offset: 0x023c51e8, size: 189 bytes, params: 1, frame: 22
const defaultImport = ICYMIActionCreators;
const itemInteracted = defaultImport.itemInteracted;
const messageBinding = message;
Reflect.apply(itemInteracted, defaultImport, [messageBinding.id, 'message', 'long_press_message']);
defaultImport.feedItemActioned({itemId: messageBinding.id, itemType: 'message',
actionParameters: {'actionGestureType': 'long_press', 'actionTargetElement': 'item_body',
'actionIntentType': 'open', 'actionDestinationType': null}});
const showLongPressMessageActionSheet = ShowLongPressMessageActionSheetModule.showLongPressMessageActionSheet;
const userStoreBinding = UserStore;
const getUser = userStoreBinding.getUser;
Reflect.apply(showLongPressMessageActionSheet, ShowLongPressMessageActionSheetModule, [{channel: channel,
message: messageBinding, user: Reflect.apply(getUser, userStoreBinding, [messageBinding.author.id])}]);
}
function _fun112310() { // fn#112310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15055:4255, offset: 0x023c52a5, size: 170 bytes, params: 1, frame: 22
let value = environment.__proto__;
const defaultImport = ICYMIActionCreators;
const itemInteracted = defaultImport.itemInteracted;
const messageBinding = message;
Reflect.apply(itemInteracted, defaultImport, [messageBinding.id, 'message', 'press_message']);
defaultImport.feedItemActioned({itemId: messageBinding.id, itemType: 'message',
actionParameters: {'actionGestureType': 'press', 'actionTargetElement': 'item_container',
'actionIntentType': 'navigate', 'actionDestinationType': 'channel'}});
value = require(14854) /* metro dependency 14854: ICYMIShared */;
value.navigateToPost(channel.id, guild.id, messageBinding.id);
}
}
function MessageRowWrapper({message, messageContext, visible}) { // fn#112311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15055:5479, offset: 0x023c534f, size: 251 bytes, params: 2, frame: 23
const value2 = (ICYMIUtilsModule).useGravityMessage(message);
const channel = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], _fun112312);
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
return GuildStore.getGuild(channel?.guild_id);
});
return (
channel == null || guild == null || (require(566) /* metro dependency 566: flux */).useStateFromStores([RelationshipStore],
_fun112314)
? null
: ((Component) => <Component message={value2} channel={channel} guild={guild} messageContext={messageContext} visible={visible} />)(env0_19)
);
function _fun112312() { // fn#112312, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15055:5617, offset: 0x023c0bbf, size: 36 bytes, params: 1, frame: 12
const channelStoreBinding = ChannelStore;
const getChannel = channelStoreBinding.getChannel;
const binding = env0_0;
const getChannelId = binding.getChannelId;
return Reflect.apply(getChannel, channelStoreBinding, [Reflect.apply(getChannelId, binding, [])]);
}
function _fun112314() { // fn#112314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15055:5768, offset: 0x023c5479, size: 38 bytes, params: 1, frame: 11
const relationshipStoreBinding = RelationshipStore;
return relationshipStoreBinding.isBlockedOrIgnored(env0_0.author.id);
}
}
}
global.__d(_fun112296, 14858, [31, 27, 1379, 1945, 1867, 3793, 4864, 1878, 14853, 661, 33, 697, 14815, 477, 14816,
9546, 7230, 566, 14859, 14860, 4573, 1244, 1305, 4617, 6593, 9579, 9580, 12129, 11401, 14854, 14856, 21, 5278,
9122, 14862,
2]) /* metro module 14858, dependencies: [31, 27, 1379, 1945, 1867, 3793, 4864, 1878, 14853, 661, 33, 697, 14815, 477, 14816, 9546, 7230, 566, 14859, 14860, 4573, 1244, 1305, 4617, 6593, 9579, 9580, 12129, 11401, 14854, 14856, 21, 5278, 9122, 14862, 2] */;
@@ -1,224 +1,249 @@
/* Metro module 14859; source: modules/icymi/native/ICYMIMessageRowPreview.tsx; dependencies: [31, 661, 33, 9587, 3834, 8179, 4845, 4048, 4501, 697, 3829, 8177, 9773, 8368, 1244, 2] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UseTheme from '../../../hooks/useTheme.tsx'; /* Metro dependency 4048 */
import IsForwardMessage from '../../forwarding/isForwardMessage.tsx'; /* Metro dependency 4845 */
import ChatItem from '../../../components_native/chat/ChatItem.tsx'; /* Metro dependency 9773 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as UserSettingsModule from '../../user_settings/UserSettings.tsx'; /* Metro dependency 3829 */
import * as ChannelListLayoutTypesModule from '../../main_tabs_v2/ChannelListLayoutTypes.tsx'; /* Metro dependency 3834 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as RenderMessageOptionsContextModule from '../../messages/native/renderer/RenderMessageOptionsContext.tsx'; /* Metro dependency 8179 */
import * as RowGeneratorTypesModule from '../../messages/native/renderer/RowGeneratorTypes.tsx'; /* Metro dependency 8368 */
import * as ForumPostMediaUtilsModule from '../../forums/ForumPostMediaUtils.tsx'; /* Metro dependency 9587 */
function _fun112315(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:6, offset: 0x023c549f, size: 244 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(661) /* metro dependency 661: Constants */).MessageEmbedTypes;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
let value = ReactModule;
const value2 = value.memo(_fun112320);
const value3 = value.memo(_fun112325);
value = value.memo(_fun112330);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/ICYMIMessageRowPreview.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/ICYMIMessageRowPreview.tsx');
exports.MediaOnlyRowPreview = value2;
exports.NonMediaEmbedsRowPreview = value3;
exports.MessageRowPreview = value;
}
function isMediaEmbed(a0) { // fn#112316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:148, offset: 0x023c5593, size: 39 bytes, params: 2, frame: 4
const IMAGE = MessageEmbedTypes.IMAGE;
return a0 === IMAGE || a0 === MessageEmbedTypes.GIFV;
}
function ICYMIMessageRowPreview({message, lineClamp, messageSizeCacheRef, messageOptions, maxHeight, pointerEvents}) { // fn#112317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:2246, offset: 0x023c55ba, size: 368 bytes, params: 2, frame: 25
pointerEvents = pointerEvents === undefined ? 'none' : pointerEvents;
const value2 = (importDefault(4048) /* metro dependency 4048: useTheme */)();
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createNativeStyleProperties = createStylesModule.createNativeStyleProperties;
const TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT;
const env0_2 = Reflect.apply(createNativeStyleProperties, createStylesModule,
[{seeMoreLabelColor: TEXT_DEFAULT}])(value2);
const RenderEmbeds = (require(3829) /* metro dependency 3829: UserSettings */).RenderEmbeds;
const setting = RenderEmbeds.getSetting();
const env0_3 = setting;
const InlineEmbedMedia = (require(3829) /* metro dependency 3829: UserSettings */).InlineEmbedMedia;
const setting2 = InlineEmbedMedia.getSetting();
const InlineAttachmentMedia = (require(3829) /* metro dependency 3829: UserSettings */).InlineAttachmentMedia;
return ((Component) => <Component pointerEvents={pointerEvents} horizontalOffset={0} modifyRow={modifyRow} message={message} rowGenerator={env0_3.useMemo(_fun112318,
[setting, setting2, InlineAttachmentMedia.getSetting(),
messageOptions])} messageSizeCacheRef={messageSizeCacheRef} maxHeight={maxHeight} />)(importDefault(9773) /* metro dependency 9773: ChatItem */);
}
function _fun112320(a0) { // fn#112320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:218, offset: 0x023c5840, size: 323 bytes, params: 2, frame: 19
const message = a0.message;
const messageOptions = a0.messageOptions;
const value = Object.create(null);
value.message = 0;
value.messageOptions = 0;
const value2 = copyDataProperties({}, a0, value, undefined);
let binding = env0_3;
let useMemo = binding.useMemo;
const value4 = Reflect.apply(useMemo, binding, [_fun112321, [message]]);
binding = env0_3;
useMemo = binding.useMemo;
const icymiMessageRowPreviewBindingProps = {...Reflect.apply(useMemo, binding, [_fun112324, [value4, value2.muted,
value2.lineClamp]])};
const object = {};
const DEFAULT_OPTIONS = (require(8179) /* metro dependency 8179: RenderMessageOptionsContext */).DEFAULT_OPTIONS;
copyDataProperties(object, DEFAULT_OPTIONS, value);
object['ignoreMentioned'] = true;
object['renderReplies'] = false;
object['renderThreadEmbeds'] = false;
object['renderReactions'] = false;
object['renderEmbeds'] = true;
object['gifAutoPlay'] = true;
object['animateEmoji'] = true;
object['renderPolls'] = true;
object['inlineEmbedMedia'] = true;
object['renderForumPostActions'] = false;
object['renderAttachments'] = true;
copyDataProperties(object, messageOptions, value);
icymiMessageRowPreviewBindingProps['messageOptions'] = object;
return <ICYMIMessageRowPreview {...icymiMessageRowPreviewBindingProps} />;
}
function _fun112325(a0) { // fn#112325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:975, offset: 0x023c5a9e, size: 278 bytes, params: 2, frame: 19
const message = a0.message;
const messageOptions = a0.messageOptions;
const value = Object.create(null);
value.message = 0;
value.messageOptions = 0;
const value2 = copyDataProperties({}, a0, value, undefined);
let binding = env0_3;
let useMemo = binding.useMemo;
const value4 = Reflect.apply(useMemo, binding, [_fun112326, [message]]);
binding = env0_3;
useMemo = binding.useMemo;
const icymiMessageRowPreviewBindingProps = {...Reflect.apply(useMemo, binding, [_fun112329, [value4, value2.muted,
value2.lineClamp]])};
const object = {};
const DEFAULT_OPTIONS = (require(8179) /* metro dependency 8179: RenderMessageOptionsContext */).DEFAULT_OPTIONS;
copyDataProperties(object, DEFAULT_OPTIONS, value);
object['ignoreMentioned'] = true;
object['renderReplies'] = false;
object['renderThreadEmbeds'] = false;
object['renderReactions'] = false;
object['renderEmbeds'] = true;
object['renderAttachments'] = true;
copyDataProperties(object, messageOptions, value);
icymiMessageRowPreviewBindingProps['messageOptions'] = object;
return <ICYMIMessageRowPreview {...icymiMessageRowPreviewBindingProps} />;
}
function _fun112330(a0) { // fn#112330, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:1664, offset: 0x023c5c8d, size: 335 bytes, params: 2, frame: 20
const message = a0.message;
const messageOptions = a0.messageOptions;
const value = Object.create(null);
value.message = 0;
value.messageOptions = 0;
const value2 = copyDataProperties({}, a0, value, undefined);
const value4 = env0_3.useMemo(_fun112331, [message, value2.lineClamp, value2.muted, value2.pointerEvents]);
const value5 = (importDefault(4845) /* metro dependency 4845: isForwardMessage */)(message);
const icymiMessageRowPreviewBindingProps = {...value4};
const object = {};
const DEFAULT_OPTIONS = (require(8179) /* metro dependency 8179: RenderMessageOptionsContext */).DEFAULT_OPTIONS;
copyDataProperties(object, DEFAULT_OPTIONS, value);
object['ignoreMentioned'] = true;
object['renderReplies'] = false;
object['renderThreadEmbeds'] = false;
object['renderReactions'] = false;
object['gifAutoPlay'] = true;
object['animateEmoji'] = true;
object['renderPolls'] = true;
object['renderForumPostActions'] = false;
object['renderAttachments'] = value5;
object['renderEmbeds'] = value5;
object['inlineEmbedMedia'] = value5;
copyDataProperties(object, messageOptions, value);
icymiMessageRowPreviewBindingProps['messageOptions'] = object;
icymiMessageRowPreviewBindingProps['seeMoreLabel'] = '...';
return <ICYMIMessageRowPreview {...icymiMessageRowPreviewBindingProps} />;
}
function _fun112318() { // fn#112318, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:2620, offset: 0x023c572a, size: 116 bytes, params: 1, frame: 14
let value = environment.__proto__;
value = importDefault(8177) /* metro dependency 8177: RowGenerator */;
value = new value();
const setOptions = value.setOptions;
const object2 = {'renderEmbeds': null, 'inlineEmbedMedia': null, 'inlineAttachmentMedia': null,
'renderReactions': false, 'animateEmoji': false, 'gifAutoPlay': false, 'renderReplies': false,
'renderCodedLinks': false, 'renderGiftCode': false, 'renderActivityInviteEmbed': false,
'renderThreadEmbeds': false, 'renderForumPostActions': false, 'ignoreMentioned': true,
'enableSwipeActions': false, 'renderExecutedCommands': false, 'useAlternateEmbedColors': true};
object2.renderEmbeds = env0_3;
object2.inlineEmbedMedia = env0_4;
const binding = env0_5;
object2.inlineAttachmentMedia = binding;
copyDataProperties(object2, messageOptions, binding);
Reflect.apply(setOptions, value, [object2]);
return value;
}
function ICYMIMessageRowPreviewModifyRow(a0) { // fn#112319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:3086, owner: ICYMIMessageRowPreview.modifyRow, offset: 0x023c579e, size: 162 bytes, params: 2, frame: 17
var object2;
var intl;
const MessageContextType = (require(8368) /* metro dependency 8368: RowGeneratorTypes */).MessageContextType;
const SEARCH = MessageContextType.SEARCH;
a0.contextType = SEARCH;
if (lineClamp != null) {
object2 = {};
object2.numberOfLines = lineClamp;
object2.expandable = false;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.seeMoreLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.qCozu3);
object2.seeMoreLabelColor = env0_2.seeMoreLabelColor;
a0.truncation = object2;
function isMediaEmbed(a0) { // fn#112316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:148, offset: 0x023c5593, size: 39 bytes, params: 2, frame: 4
const IMAGE = MessageEmbedTypes.IMAGE;
return a0 === IMAGE || a0 === MessageEmbedTypes.GIFV;
}
function ICYMIMessageRowPreview({message, lineClamp, messageSizeCacheRef, messageOptions, maxHeight, pointerEvents}) { // fn#112317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:2246, offset: 0x023c55ba, size: 368 bytes, params: 2, frame: 25
pointerEvents = pointerEvents === undefined ? 'none' : pointerEvents;
const value2 = (UseTheme)();
const createNativeStyleProperties = CreateStylesModule.createNativeStyleProperties;
const TEXT_DEFAULT = (Native).colors.TEXT_DEFAULT;
const env0_2 = Reflect.apply(createNativeStyleProperties, CreateStylesModule,
[{seeMoreLabelColor: TEXT_DEFAULT}])(value2);
const RenderEmbeds = (UserSettingsModule).RenderEmbeds;
const setting = RenderEmbeds.getSetting();
const setting3 = setting;
const InlineEmbedMedia = (UserSettingsModule).InlineEmbedMedia;
const setting2 = InlineEmbedMedia.getSetting();
const InlineAttachmentMedia = (UserSettingsModule).InlineAttachmentMedia;
return ((Component) => <Component pointerEvents={pointerEvents} horizontalOffset={0} modifyRow={modifyRow_112319} message={message} rowGenerator={setting3.useMemo(_fun112318,
[setting, setting2, InlineAttachmentMedia.getSetting(),
messageOptions])} messageSizeCacheRef={messageSizeCacheRef} maxHeight={maxHeight} />)(ChatItem);
function _fun112318() { // fn#112318, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:2620, offset: 0x023c572a, size: 116 bytes, params: 1, frame: 14
let value = environment.__proto__;
value = importDefault(8177) /* metro dependency 8177: RowGenerator */;
value = new value();
const setOptions = value.setOptions;
const object = {'renderEmbeds': null, 'inlineEmbedMedia': null, 'inlineAttachmentMedia': null,
'renderReactions': false, 'animateEmoji': false, 'gifAutoPlay': false, 'renderReplies': false,
'renderCodedLinks': false, 'renderGiftCode': false, 'renderActivityInviteEmbed': false,
'renderThreadEmbeds': false, 'renderForumPostActions': false, 'ignoreMentioned': true,
'enableSwipeActions': false, 'renderExecutedCommands': false, 'useAlternateEmbedColors': true};
object.renderEmbeds = env0_3;
object.inlineEmbedMedia = ConstantsModule.MessageEmbedTypes;
object.inlineAttachmentMedia = JsxRuntimeModule.jsx;
copyDataProperties(object, messageOptions, JsxRuntimeModule.jsx);
Reflect.apply(setOptions, value, [object]);
return value;
}
function ICYMIMessageRowPreviewModifyRow(a0) { // fn#112319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:3086, owner: ICYMIMessageRowPreview.modifyRow, offset: 0x023c579e, size: 162 bytes, params: 2, frame: 17
var object;
var intl;
const MessageContextType = (RowGeneratorTypesModule).MessageContextType;
const SEARCH = MessageContextType.SEARCH;
a0.contextType = SEARCH;
if (lineClamp != null) {
object = {};
object.numberOfLines = lineClamp;
object.expandable = false;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.seeMoreLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.qCozu3);
object.seeMoreLabelColor = env0_2.seeMoreLabelColor;
a0.truncation = object;
}
}
}
function _fun112320(a0) { // fn#112320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:218, offset: 0x023c5840, size: 323 bytes, params: 2, frame: 19
const message = a0.message;
const messageOptions = a0.messageOptions;
const value = Object.create(null);
value.message = 0;
value.messageOptions = 0;
const value2 = copyDataProperties({}, a0, value, undefined);
let binding = env0_3;
let useMemo = binding.useMemo;
const value4 = Reflect.apply(useMemo, binding, [_fun112321, [message]]);
binding = env0_3;
useMemo = binding.useMemo;
const icymiMessageRowPreviewBindingProps = {...Reflect.apply(useMemo, binding, [_fun112324, [value4, value2.muted,
value2.lineClamp]])};
const object2 = {};
const DEFAULT_OPTIONS = (RenderMessageOptionsContextModule).DEFAULT_OPTIONS;
copyDataProperties(object2, DEFAULT_OPTIONS, value);
object2['ignoreMentioned'] = true;
object2['renderReplies'] = false;
object2['renderThreadEmbeds'] = false;
object2['renderReactions'] = false;
object2['renderEmbeds'] = true;
object2['gifAutoPlay'] = true;
object2['animateEmoji'] = true;
object2['renderPolls'] = true;
object2['inlineEmbedMedia'] = true;
object2['renderForumPostActions'] = false;
object2['renderAttachments'] = true;
copyDataProperties(object2, messageOptions, value);
icymiMessageRowPreviewBindingProps['messageOptions'] = object2;
return <ICYMIMessageRowPreview {...icymiMessageRowPreviewBindingProps} />;
function _fun112321() { // fn#112321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:279, offset: 0x023c5983, size: 119 bytes, params: 1, frame: 15
var value;
value = value.set('embeds', message.set('content', null).embeds.filter(function(a0) {
return isMediaEmbed(a0.type);
}));
value = value.set('attachments', value.attachments.filter(_fun112323));
return value.set('editedTimestamp', null);
function _fun112323(a0) { // fn#112323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:401, offset: 0x023c5a12, size: 41 bytes, params: 2, frame: 11
const value = environment.__proto__.__proto__;
return (ForumPostMediaUtilsModule).isMediaAttachment(a0);
}
}
function _fun112324() { // fn#112324, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:519, offset: 0x023c5a3b, size: 99 bytes, params: 1, frame: 13
const object = {};
object.message = env0_2;
const ChannelListLayoutTypes = (ChannelListLayoutTypesModule).ChannelListLayoutTypes;
const COZY = ChannelListLayoutTypes.COZY;
object.layout = COZY;
const muted = env0_1.muted;
object.muted = muted != null && muted;
object.lineClamp = env0_1.lineClamp;
return object;
}
}
function _fun112325(a0) { // fn#112325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:975, offset: 0x023c5a9e, size: 278 bytes, params: 2, frame: 19
const message = a0.message;
const messageOptions = a0.messageOptions;
const value = Object.create(null);
value.message = 0;
value.messageOptions = 0;
const value2 = copyDataProperties({}, a0, value, undefined);
let binding = env0_3;
let useMemo = binding.useMemo;
const value4 = Reflect.apply(useMemo, binding, [_fun112326, [message]]);
binding = env0_3;
useMemo = binding.useMemo;
const icymiMessageRowPreviewBindingProps = {...Reflect.apply(useMemo, binding, [_fun112329, [value4, value2.muted,
value2.lineClamp]])};
const object2 = {};
const DEFAULT_OPTIONS = (RenderMessageOptionsContextModule).DEFAULT_OPTIONS;
copyDataProperties(object2, DEFAULT_OPTIONS, value);
object2['ignoreMentioned'] = true;
object2['renderReplies'] = false;
object2['renderThreadEmbeds'] = false;
object2['renderReactions'] = false;
object2['renderEmbeds'] = true;
object2['renderAttachments'] = true;
copyDataProperties(object2, messageOptions, value);
icymiMessageRowPreviewBindingProps['messageOptions'] = object2;
return <ICYMIMessageRowPreview {...icymiMessageRowPreviewBindingProps} />;
function _fun112326() { // fn#112326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:1036, offset: 0x023c5bb4, size: 146 bytes, params: 1, frame: 17
const messageBinding = message;
let value = messageBinding.set('content', null);
value = value.set('embeds', value.embeds.filter(function(a0) {
return !isMediaEmbed(a0.type);
}).slice(0, 1));
value = value.set('attachments', value.attachments.filter(_fun112328).slice(0, 1));
return value.set('editedTimestamp', null);
function _fun112328(a0) { // fn#112328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:1170, offset: 0x023c5c61, size: 44 bytes, params: 2, frame: 11
let value = environment.__proto__.__proto__;
value = require(9587) /* metro dependency 9587: ForumPostMediaUtils */;
return !value.isMediaAttachment(a0);
}
}
function _fun112329() { // fn#112329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:1300, offset: 0x023c5a3b, size: 99 bytes, params: 1, frame: 13
const object = {};
object.message = env0_2;
const ChannelListLayoutTypes = (ChannelListLayoutTypesModule).ChannelListLayoutTypes;
const COZY = ChannelListLayoutTypes.COZY;
object.layout = COZY;
const muted = env0_1.muted;
object.muted = muted != null && muted;
object.lineClamp = env0_1.lineClamp;
return object;
}
}
function _fun112330(a0) { // fn#112330, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:1664, offset: 0x023c5c8d, size: 335 bytes, params: 2, frame: 20
const message = a0.message;
const messageOptions = a0.messageOptions;
const value = Object.create(null);
value.message = 0;
value.messageOptions = 0;
const value2 = copyDataProperties({}, a0, value, undefined);
const value4 = env0_3.useMemo(_fun112331, [message, value2.lineClamp, value2.muted, value2.pointerEvents]);
const value5 = (IsForwardMessage)(message);
const icymiMessageRowPreviewBindingProps = {...value4};
const object2 = {};
const DEFAULT_OPTIONS = (RenderMessageOptionsContextModule).DEFAULT_OPTIONS;
copyDataProperties(object2, DEFAULT_OPTIONS, value);
object2['ignoreMentioned'] = true;
object2['renderReplies'] = false;
object2['renderThreadEmbeds'] = false;
object2['renderReactions'] = false;
object2['gifAutoPlay'] = true;
object2['animateEmoji'] = true;
object2['renderPolls'] = true;
object2['renderForumPostActions'] = false;
object2['renderAttachments'] = value5;
object2['renderEmbeds'] = value5;
object2['inlineEmbedMedia'] = value5;
copyDataProperties(object2, messageOptions, value);
icymiMessageRowPreviewBindingProps['messageOptions'] = object2;
icymiMessageRowPreviewBindingProps['seeMoreLabel'] = '...';
return <ICYMIMessageRowPreview {...icymiMessageRowPreviewBindingProps} />;
function _fun112331() { // fn#112331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:1725, offset: 0x023c5ddc, size: 110 bytes, params: 1, frame: 14
const object = {};
object.message = message;
const binding = env0_1;
object.lineClamp = binding.lineClamp;
const ChannelListLayoutTypes = (ChannelListLayoutTypesModule).ChannelListLayoutTypes;
const COZY = ChannelListLayoutTypes.COZY;
object.layout = COZY;
const muted = binding.muted;
object.muted = muted != null && muted;
object.pointerEvents = env0_1.pointerEvents;
return object;
}
}
}
function _fun112321() { // fn#112321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:279, offset: 0x023c5983, size: 119 bytes, params: 1, frame: 15
var value;
value = value.set('embeds', message.set('content', null).embeds.filter(function(a0) {
return isMediaEmbed(a0.type);
}));
value = value.set('attachments', value.attachments.filter(_fun112323));
return value.set('editedTimestamp', null);
}
function _fun112324() { // fn#112324, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:519, offset: 0x023c5a3b, size: 99 bytes, params: 1, frame: 13
const object2 = {};
object2.message = env0_2;
const ChannelListLayoutTypes = (require(3834) /* metro dependency 3834: ChannelListLayoutTypes */).ChannelListLayoutTypes;
const COZY = ChannelListLayoutTypes.COZY;
object2.layout = COZY;
const muted = env0_1.muted;
object2.muted = muted != null && muted;
object2.lineClamp = env0_1.lineClamp;
return object2;
}
function _fun112326() { // fn#112326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:1036, offset: 0x023c5bb4, size: 146 bytes, params: 1, frame: 17
const messageBinding = message;
let value = messageBinding.set('content', null);
value = value.set('embeds', value.embeds.filter(function(a0) {
return !isMediaEmbed(a0.type);
}).slice(0, 1));
value = value.set('attachments', value.attachments.filter(_fun112328).slice(0, 1));
return value.set('editedTimestamp', null);
}
function _fun112331() { // fn#112331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:1725, offset: 0x023c5ddc, size: 110 bytes, params: 1, frame: 14
const object2 = {};
object2.message = message;
const binding = env0_1;
object2.lineClamp = binding.lineClamp;
const ChannelListLayoutTypes = (require(3834) /* metro dependency 3834: ChannelListLayoutTypes */).ChannelListLayoutTypes;
const COZY = ChannelListLayoutTypes.COZY;
object2.layout = COZY;
const muted = binding.muted;
object2.muted = muted != null && muted;
object2.pointerEvents = env0_1.pointerEvents;
return object2;
}
function _fun112323(a0) { // fn#112323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:401, offset: 0x023c5a12, size: 41 bytes, params: 2, frame: 11
const value = environment.__proto__.__proto__;
return (require(9587) /* metro dependency 9587: ForumPostMediaUtils */).isMediaAttachment(a0);
}
function _fun112328(a0) { // fn#112328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15056:1170, offset: 0x023c5c61, size: 44 bytes, params: 2, frame: 11
let value = environment.__proto__.__proto__;
value = require(9587) /* metro dependency 9587: ForumPostMediaUtils */;
return !value.isMediaAttachment(a0);
}
global.__d(_fun112315, 14859, [31, 661, 33, 9587, 3834, 8179, 4845, 4048, 4501, 697, 3829, 8177, 9773, 8368, 1244,
2]) /* metro module 14859, dependencies: [31, 661, 33, 9587, 3834, 8179, 4845, 4048, 4501, 697, 3829, 8177, 9773, 8368, 1244, 2] */;
@@ -1,16 +1,28 @@
/* Metro module 14880; source: modules/icymi/native/ICYMIServerRecommendationRow.tsx; dependencies: [57, 5, 31, 27, 4502, 1867, 9569, 661, 33, 14815, 697, 566, 1423, 1418, 7599, 5475, 6819, 9580, 3857, 1244, 6593, 4573, 4578, 14854, 8671, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import GuildStore from '../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import AccessibilityStore from '../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
import GuildIcon from '../../guild/native/GuildIcon.tsx'; /* Metro dependency 6819 */
import ClipView from '../../../design/components/Icon/native/ClipView.tsx'; /* Metro dependency 7599 */
import ICYMIStore from '../ICYMIStore.tsx'; /* Metro dependency 9569 */
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 FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as GuildIconModule from '../../guild/native/GuildIcon.tsx'; /* Metro dependency 6819 */
import * as ClipViewModule from '../../../design/components/Icon/native/ClipView.tsx'; /* Metro dependency 7599 */
import * as CreateICYMIStylesModule from './createICYMIStyles.tsx'; /* Metro dependency 14815 */
function _fun112569(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112569, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15077:6, offset: 0x023d285d, size: 381 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importDefault(5) /* metro dependency 5 */;
const env0_5 = importAll(31) /* metro dependency 31 */;
const env0_6 = (require(27) /* metro dependency 27 */).View;
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const icymiStore = importDefault(9569) /* metro dependency 9569: ICYMIStore */;
let value = require(661) /* metro dependency 661: Constants */;
let value = ConstantsModule;
const env0_10 = value.AnalyticsObjects;
const env0_11 = value.AnalyticsPages;
const env0_12 = value.AnalyticsSections;
@@ -19,274 +31,337 @@ function _fun112569(global, require, importDefault, importAll, module, exports,
const env0_14 = value.jsx;
const env0_15 = value.jsxs;
const env0_16 = value.Fragment;
const env0_17 = (require(14815) /* metro dependency 14815: createICYMIStyles */).createICYMIStyles(_fun112582);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/ICYMIServerRecommendationRow.tsx');
const env0_17 = (CreateICYMIStylesModule).createICYMIStyles(_fun112582);
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/ICYMIServerRecommendationRow.tsx');
exports.ICYMIServerRecommendationRow = ICYMIServerRecommendationRow;
}
function CutoutGuildBanner_112570({guild}) { // fn#112570, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15077:1082, offset: 0x023d29da, size: 526 bytes, params: 2, frame: 27
var object2;
const value3 = env0_17();
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
const value4 = !useReducedMotion;
const r15 = guild.banner != null ? (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getAnimatableSourceWithFallback(useReducedMotion ? value4 : guild.features.has(GuildFeatures.ANIMATED_BANNER),
_fun112572) : undefined;
const value7 = env0_5.useMemo(_fun112573, [guild]);
object2 = {style: value3.bannerImage};
const ClipView = importDefault(7599) /* metro dependency 7599: ClipView */;
const CutoutShape = (require(7599) /* metro dependency 7599: ClipView */).CutoutShape;
const RoundedRect = CutoutShape.RoundedRect;
const clipView = <ClipView cutouts={[{'shape': null, 'x': 8, 'y': 46, 'width': 56, 'height': 56, 'cornerRadius': 20,
shape: RoundedRect}]}>{guild.banner != null ? ((Component) => <Component style={value3.bannerImage} source={r15} resizeMode="cover" />)(importDefault(5475) /* metro dependency 5475: FastImage */) : <View style={[value3.bannerImage,
value3.emptyBanner]} />}</ClipView>;
const GuildIcon = importDefault(6819) /* metro dependency 6819: GuildIcon */;
const guildIcon = value3.guildIcon;
const GuildIconSizes = (require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes;
const LARGE = GuildIconSizes.LARGE;
return (
<View {...object2}>
{clipView}
<GuildIcon
style={guildIcon}
guild={value7}
size={LARGE}
animate={value4}
/>
</View>
);
}
function FeaturedServer_112574({guild}) { // fn#112574, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15077:1794, offset: 0x023d2c5c, size: 552 bytes, params: 2, frame: 30
const value2 = env0_17();
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], _fun112575);
const value5 = env0_5.useCallback(env0_4(_fun112577), [guild.id]);
const [property, env0_1] = env0_3(env0_5.useState(false), 2);
const featuredServerContainer = value2.featuredServerContainer;
const items2 = [<CutoutGuildBanner_112570 guild={guild} />];
const featuredServerInnerContainer = value2.featuredServerInnerContainer;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
items2[1] = <View style={featuredServerInnerContainer}><Text maxFontSizeMultiplier={1} lineClamp={1} style={value2.featuredServerTitle} variant="text-md/semibold" color="mobile-text-heading-primary">{guild.name}</Text><Text maxFontSizeMultiplier={1} lineClamp={3} variant="text-xs/normal" color="text-default">{guild.description}</Text></View>;
const buttonContainer = value2.buttonContainer;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
items2[2] = <View style={buttonContainer}><Button disabled={value3} loading={property} text={value3 ? Reflect.apply(string,
intl, [t.cEnaWx]) : Reflect.apply(string, intl, [t.VJlc0S])} size="sm" onPress={value5} grow /></View>;
return (
<View style={featuredServerContainer}>
{items2}
</View>
);
}
function RecommendedGuildsRow({discoverableGuilds}) { // fn#112580, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15077:3466, offset: 0x023d314d, size: 215 bytes, params: 2, frame: 19
var r0;
var space;
var PX_16;
var value;
const binding = env0_5;
const useCallback = binding.useCallback;
const object = [discoverableGuilds];
if (discoverableGuilds.length === 0) {
r0 = null;
} else {
value = importDefault(8671) /* metro dependency 8671: FastestListAndroid */;
var valueProps = {sections: [discoverableGuilds.length]};
space = (importDefault(697) /* metro dependency 697: native */).space;
PX_16 = space.PX_16;
valueProps.insetStart = PX_16;
valueProps.renderItem = Reflect.apply(useCallback, binding, [_fun112581, valueProps]);
valueProps.estimatedListSize = 'windowSize';
space = (importDefault(697) /* metro dependency 697: native */).space;
PX_16 = space.PX_16;
valueProps.itemSize = 200 + PX_16;
valueProps.horizontal = true;
valueProps.listId = 'recommended-servers-list';
valueProps.showsHorizontalScrollIndicator = false;
value = ((Component) => <Component {...valueProps} />)(value);
r0 = value;
}
return r0;
}
function _fun112582(a0) { // fn#112582, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15077:330, offset: 0x023d3256, size: 431 bytes, params: 2, frame: 16
const object2 = {};
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object2.container = {marginVertical: PX_24};
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.title = {marginBottom: PX_8, marginHorizontal: a0.margin};
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.subtitle = {marginBottom: PX_16, marginHorizontal: a0.margin};
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object2.featuredServerInnerContainer = {marginHorizontal: PX_12, marginTop: 36};
const object3 = {position: 'absolute'};
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object3.bottom = PX_12;
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object3.left = PX_12;
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object3.right = PX_12;
object2.buttonContainer = object3;
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.featuredServerTitle = {marginBottom: PX_8};
object2.guildIcon = {'position': 'absolute', 'top': 50, 'left': 12};
object2.bannerImage = {'height': 72, 'width': 200};
const BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
object2.emptyBanner = {backgroundColor: BACKGROUND_MOD_SUBTLE};
const object4 = {'borderRadius': null, 'backgroundColor': null, 'height': 244, 'width': 200, 'overflow': 'hidden'};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
const CARD_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CARD_BACKGROUND_DEFAULT;
object4.backgroundColor = CARD_BACKGROUND_DEFAULT;
object2.featuredServerContainer = object4;
return object2;
}
function ICYMIServerRecommendationRow() { // fn#112583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15077:3985, offset: 0x023d3405, size: 421 bytes, params: 1, frame: 29
var r0;
var jsxRuntimeEnv0_16Binding;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var items2;
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([ICYMIStore], function() {
return ICYMIStore.getDiscoverableGuilds();
});
const value3 = env0_17();
if (value2.length === 0) {
r0 = null;
} else {
jsxRuntimeEnv0_16Binding = jsxRuntimeEnv0_16;
var viewBindingProps = {style: value3.container};
string = intl.string;
items2 = [<Text style={value3.title} variant="heading-lg/semibold" color="mobile-text-heading-primary">{Reflect.apply(string,
intl, [t.lv1tce])}</Text>];
string = intl.string;
items2[1] = <Text style={value3.subtitle} variant="heading-sm/normal" color="text-muted">{Reflect.apply(string,
intl, [t.x4OezN])}</Text>;
items2[2] = <RecommendedGuildsRow discoverableGuilds={value2} />;
r0 = <><View {...viewBindingProps}>{items2}</View>{((Separator) => <Separator />)((require(14854) /* metro dependency 14854: ICYMIShared */).Separator)}</>;
}
return r0;
}
function _fun112572(a0) { // fn#112572, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15077:1291, offset: 0x023d2be8, size: 71 bytes, params: 2, frame: 14
let value = environment.__proto__;
value = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
const getGuildBannerSource = value.getGuildBannerSource;
const guildBinding = guild;
return Reflect.apply(getGuildBannerSource, value, [{id: guildBinding.id, banner: guildBinding.banner}, a0]);
}
function _fun112573() { // fn#112573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15077:1375, offset: 0x023d2c2f, size: 45 bytes, params: 1, frame: 11
let value = environment.__proto__;
value = require(1418) /* metro dependency 1418: GuildRecordUtils */;
return value.fromClientDiscoverableGuild(guild);
}
function _fun112575() { // fn#112575, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15077:1874, offset: 0x023d2e84, size: 38 bytes, params: 1, frame: 11
const value = environment.__proto__;
const getGuild = GuildStore.getGuild;
return Reflect.apply(getGuild, GuildStore, [guild.id]) != null;
}
function* _fun112577() { // fn#112577, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15077:1922, offset: 0x023d2eb5, size: 525 bytes, params: 1, frame: 24
var environment;
var binding4;
var dehydrated;
var value11;
var transitionToGuildSync;
var object2;
if (true) {
value = environment.__proto__;
importDefault(true);
var binding = env2_1;
var binding2 = env2_2;
binding(binding2[17]).itemInteracted('recommended_guilds', 'recommended_guilds', 'press_join_guild');
var value5 = binding(binding2[17]);
var feedItemActioned = value5.feedItemActioned;
var object3 = {};
var id = require.id;
object3.itemId = id;
object3.itemType = 'recommended_guilds';
object3.actionParameters = {'actionGestureType': 'press', 'actionTargetElement': 'item_container',
'actionIntentType': 'join', 'actionDestinationType': 'guild'};
Reflect.apply(feedItemActioned, value5, [object3]);
var value6 = binding(binding2[17]);
yield value6.gravityJoinGuild([require.id], 'recommended_guilds');
var value7 = undefined;
if (false) {
return value7;
function CutoutGuildBanner_112570({guild}) { // fn#112570, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15077:1082, offset: 0x023d29da, size: 526 bytes, params: 2, frame: 27
const value3 = env0_17();
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
const value4 = !useReducedMotion;
const r15 = guild.banner != null ? (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getAnimatableSourceWithFallback(useReducedMotion ? value4 : guild.features.has(GuildFeatures.ANIMATED_BANNER),
_fun112572) : undefined;
const value7 = ReactModule.useMemo(_fun112573, [guild]);
object = {style: value3.bannerImage};
const CutoutShape = (ClipViewModule).CutoutShape;
const RoundedRect = CutoutShape.RoundedRect;
const clipView = (
<ClipView
cutouts={[{'shape': null, 'x': 8, 'y': 46, 'width': 56, 'height': 56, 'cornerRadius': 20,
shape: RoundedRect}]}
>
{
guild.banner != null
? ((Component) => <Component style={value3.bannerImage} source={r15} resizeMode="cover" />)(importDefault(5475) /* metro dependency 5475: FastImage */)
: (
<View style={[value3.bannerImage, value3.emptyBanner]} />
)
}
</ClipView>
);
const guildIcon = value3.guildIcon;
const GuildIconSizes = (GuildIconModule).GuildIconSizes;
const LARGE = GuildIconSizes.LARGE;
return (
<View {...object}>
{clipView}
<GuildIcon
style={guildIcon}
guild={value7}
size={LARGE}
animate={value4}
/>
</View>
);
function _fun112572(a0) { // fn#112572, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15077:1291, offset: 0x023d2be8, size: 71 bytes, params: 2, frame: 14
let value = environment.__proto__;
value = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
const getGuildBannerSource = value.getGuildBannerSource;
const guildBinding = guild;
return Reflect.apply(getGuildBannerSource, value, [{id: guildBinding.id, banner: guildBinding.banner}, a0]);
}
if (value7) {
object3 = {};
object3.state = {analyticsSource: {page: env2_11.ICYMI, section: env2_12.ICYMI_RECOMMENDED_SERVERS,
object: env2_10.LIST_ITEM}};
binding = env2_1;
binding4 = env2_2;
binding(binding4[17]).addedRecommendedGuild();
dehydrated = binding(binding4[17]).fetchDehydrated({'isReloading': true, 'forceRefresh': true});
dehydrated.then(env2_4(_fun112579));
value11 = binding(binding4[20]);
transitionToGuildSync = value11.transitionToGuildSync;
id = require.id;
object2 = {};
copyDataProperties(object2, object3, undefined);
yield Reflect.apply(transitionToGuildSync, value11, [id, object2]);
if (false) {
return undefined;
function _fun112573() { // fn#112573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15077:1375, offset: 0x023d2c2f, size: 45 bytes, params: 1, frame: 11
let value = environment.__proto__;
value = require(1418) /* metro dependency 1418: GuildRecordUtils */;
return value.fromClientDiscoverableGuild(guild);
}
}
function FeaturedServer_112574({guild}) { // fn#112574, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15077:1794, offset: 0x023d2c5c, size: 552 bytes, params: 2, frame: 30
const value2 = env0_17();
const value3 = (FluxModule).useStateFromStores([GuildStore], _fun112575);
const value5 = ReactModule.useCallback(Module00005(_fun112577), [guild.id]);
const [property, env0_1] = Module00057(ReactModule.useState(false), 2);
const featuredServerContainer = value2.featuredServerContainer;
const items2 = [
<CutoutGuildBanner_112570 guild={guild} />,
];
const featuredServerInnerContainer = value2.featuredServerInnerContainer;
const Text = (TextModule).Text;
items2[1] = (
<View style={featuredServerInnerContainer}>
<Text
maxFontSizeMultiplier={1}
lineClamp={1}
style={value2.featuredServerTitle}
variant="text-md/semibold"
color="mobile-text-heading-primary"
>
{guild.name}
</Text>
<Text
maxFontSizeMultiplier={1}
lineClamp={3}
variant="text-xs/normal"
color="text-default"
>
{guild.description}
</Text>
</View>
);
const buttonContainer = value2.buttonContainer;
const Button = (ButtonNativeModule).Button;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const t = (IndexNativeModule).t;
items2[2] = (
<View style={buttonContainer}>
<Button
disabled={value3}
loading={property}
text={value3 ? Reflect.apply(string, intl, [t.cEnaWx]) : Reflect.apply(string, intl, [t.VJlc0S])}
size="sm"
onPress={value5}
grow
/>
</View>
);
return (
<View style={featuredServerContainer}>
{items2}
</View>
);
function _fun112575() { // fn#112575, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15077:1874, offset: 0x023d2e84, size: 38 bytes, params: 1, frame: 11
const value = environment.__proto__;
const guildStoreBinding = GuildStore;
const getGuild = guildStoreBinding.getGuild;
return Reflect.apply(getGuild, guildStoreBinding, [guild.id]) != null;
}
function* _fun112577() { // fn#112577, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15077:1922, offset: 0x023d2eb5, size: 525 bytes, params: 1, frame: 24
var environment;
var binding4;
var dehydrated;
var value11;
var transitionToGuildSync;
var object;
if (true) {
value = environment.__proto__;
importDefault(true);
var binding = env2_1;
var binding2 = env2_2;
binding(binding2[17]).itemInteracted('recommended_guilds', 'recommended_guilds', 'press_join_guild');
var value5 = binding(binding2[17]);
var feedItemActioned = value5.feedItemActioned;
var object4 = {};
var id = require.id;
object4.itemId = id;
object4.itemType = 'recommended_guilds';
object4.actionParameters = {'actionGestureType': 'press', 'actionTargetElement': 'item_container',
'actionIntentType': 'join', 'actionDestinationType': 'guild'};
Reflect.apply(feedItemActioned, value5, [object4]);
var value6 = binding(binding2[17]);
yield value6.gravityJoinGuild([require.id], 'recommended_guilds');
var value7 = undefined;
if (false) {
return value7;
}
if (value7) {
object4 = {};
object4.state = {analyticsSource: {page: env2_11.ICYMI, section: env2_12.ICYMI_RECOMMENDED_SERVERS,
object: env2_10.LIST_ITEM}};
binding = env2_1;
binding4 = env2_2;
binding(binding4[17]).addedRecommendedGuild();
dehydrated = binding(binding4[17]).fetchDehydrated({'isReloading': true, 'forceRefresh': true});
dehydrated.then(env2_4(_fun112579));
value11 = binding(binding4[20]);
transitionToGuildSync = value11.transitionToGuildSync;
id = require.id;
object = {};
copyDataProperties(object, object4, undefined);
yield Reflect.apply(transitionToGuildSync, value11, [id, object]);
if (false) {
return undefined;
}
importDefault(false);
} else {
importDefault(false);
binding = env2_1;
var binding3 = env2_2;
value = binding(binding3[18]);
var open = value.open;
binding = env2_0;
var intl = binding(binding3[19]).intl;
var string = intl.string;
var CG4Hks = binding(binding3[19]).t.CG4Hks;
Reflect.apply(open, value, [{key: 'RecommeendedServersRow', content: Reflect.apply(string, intl,
[CG4Hks])}]);
}
}
importDefault(false);
function* _fun112579() { // fn#112579, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15077:2614, offset: 0x023d30cd, size: 128 bytes, params: 1, frame: 15
if (true) {
value = environment.__proto__.__proto__.__proto__.__proto__;
var value3 = env4_1(env4_2[17]);
yield value3.reloadICYMITab();
if (false) {
return undefined;
}
var value6 = env4_1(env4_2[17]);
var getGuildChannelScores = value6.getGuildChannelScores;
yield Reflect.apply(getGuildChannelScores, value6, []);
if (false) {
return undefined;
}
env4_1(env4_2[17]).getRecommendedGuilds();
}
}
}
}
function RecommendedGuildsRow({discoverableGuilds}) { // fn#112580, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15077:3466, offset: 0x023d314d, size: 215 bytes, params: 2, frame: 19
var r0;
var space;
var PX_16;
var value;
const useCallback = ReactModule.useCallback;
const object = [discoverableGuilds];
if (discoverableGuilds.length === 0) {
r0 = null;
} else {
importDefault(false);
binding = env2_1;
var binding3 = env2_2;
value = binding(binding3[18]);
var open = value.open;
binding = env2_0;
var intl = binding(binding3[19]).intl;
var string = intl.string;
var CG4Hks = binding(binding3[19]).t.CG4Hks;
Reflect.apply(open, value, [{key: 'RecommeendedServersRow', content: Reflect.apply(string, intl,
[CG4Hks])}]);
value = importDefault(8671) /* metro dependency 8671: FastestListAndroid */;
var valueProps = {sections: [discoverableGuilds.length]};
space = (importDefault(697) /* metro dependency 697: native */).space;
PX_16 = space.PX_16;
valueProps.insetStart = PX_16;
valueProps.renderItem = Reflect.apply(useCallback, ReactModule, [_fun112581, valueProps]);
valueProps.estimatedListSize = 'windowSize';
space = (importDefault(697) /* metro dependency 697: native */).space;
PX_16 = space.PX_16;
valueProps.itemSize = 200 + PX_16;
valueProps.horizontal = true;
valueProps.listId = 'recommended-servers-list';
valueProps.showsHorizontalScrollIndicator = false;
value = ((Component) => <Component {...valueProps} />)(value);
r0 = value;
}
return r0;
function _fun112581(a0, a1) { // fn#112581, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15077:3541, offset: 0x023d3224, size: 50 bytes, params: 3, frame: 14
var r0;
const property = discoverableGuilds[a1];
let value = null;
if (value == property) {
r0 = value;
} else {
value = environment.__proto__;
value = <FeaturedServer_112574 guild={property} />;
r0 = value;
}
return r0;
}
}
function _fun112582(a0) { // fn#112582, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15077:330, offset: 0x023d3256, size: 431 bytes, params: 2, frame: 16
const object = {};
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object.container = {marginVertical: PX_24};
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object.title = {marginBottom: PX_8, marginHorizontal: a0.margin};
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object.subtitle = {marginBottom: PX_16, marginHorizontal: a0.margin};
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object.featuredServerInnerContainer = {marginHorizontal: PX_12, marginTop: 36};
const object5 = {position: 'absolute'};
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object5.bottom = PX_12;
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object5.left = PX_12;
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object5.right = PX_12;
object.buttonContainer = object5;
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object.featuredServerTitle = {marginBottom: PX_8};
object.guildIcon = {'position': 'absolute', 'top': 50, 'left': 12};
object.bannerImage = {'height': 72, 'width': 200};
const BACKGROUND_MOD_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_SUBTLE;
object.emptyBanner = {backgroundColor: BACKGROUND_MOD_SUBTLE};
const object6 = {'borderRadius': null, 'backgroundColor': null, 'height': 244, 'width': 200, 'overflow': 'hidden'};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
const CARD_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CARD_BACKGROUND_DEFAULT;
object6.backgroundColor = CARD_BACKGROUND_DEFAULT;
object.featuredServerContainer = object6;
return object;
}
function ICYMIServerRecommendationRow() { // fn#112583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15077:3985, offset: 0x023d3405, size: 421 bytes, params: 1, frame: 29
var r0;
var jsxRuntimeEnv0_16Binding;
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
var string;
const t = (IndexNativeModule).t;
var items2;
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([ICYMIStore], function() {
return ICYMIStore.getDiscoverableGuilds();
});
const value3 = env0_17();
if (value2.length === 0) {
r0 = null;
} else {
jsxRuntimeEnv0_16Binding = jsxRuntimeEnv0_16;
var viewBindingProps = {style: value3.container};
string = intl.string;
items2 = [
<Text
style={value3.title}
variant="heading-lg/semibold"
color="mobile-text-heading-primary"
>
{Reflect.apply(string, intl, [t.lv1tce])}
</Text>,
];
string = intl.string;
items2[1] = (
<Text
style={value3.subtitle}
variant="heading-sm/normal"
color="text-muted"
>
{Reflect.apply(string, intl, [t.x4OezN])}
</Text>
);
items2[2] = <RecommendedGuildsRow discoverableGuilds={value2} />;
r0 = (
<>
<View {...viewBindingProps}>
{items2}
</View>
{((Separator) => <Separator />)((require(14854) /* metro dependency 14854: ICYMIShared */).Separator)}
</>
);
}
return r0;
}
}
function _fun112581(a0, a1) { // fn#112581, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15077:3541, offset: 0x023d3224, size: 50 bytes, params: 3, frame: 14
var r0;
const property = discoverableGuilds[a1];
let value = null;
if (value == property) {
r0 = value;
} else {
value = environment.__proto__;
value = <FeaturedServer_112574 guild={property} />;
r0 = value;
}
return r0;
}
function* _fun112579() { // fn#112579, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15077:2614, offset: 0x023d30cd, size: 128 bytes, params: 1, frame: 15
if (true) {
value = environment.__proto__.__proto__.__proto__.__proto__;
var value3 = env4_1(env4_2[17]);
yield value3.reloadICYMITab();
if (false) {
return undefined;
}
var value6 = env4_1(env4_2[17]);
var getGuildChannelScores = value6.getGuildChannelScores;
yield Reflect.apply(getGuildChannelScores, value6, []);
if (false) {
return undefined;
}
env4_1(env4_2[17]).getRecommendedGuilds();
}
}
global.__d(_fun112569, 14880, [57, 5, 31, 27, 4502, 1867, 9569, 661, 33, 14815, 697, 566, 1423, 1418, 7599, 5475,
6819, 9580, 3857, 1244, 6593, 4573, 4578, 14854, 8671,
2]) /* metro module 14880, dependencies: [57, 5, 31, 27, 4502, 1867, 9569, 661, 33, 14815, 697, 566, 1423, 1418, 7599, 5475, 6819, 9580, 3857, 1244, 6593, 4573, 4578, 14854, 8671, 2] */;
@@ -1,15 +1,28 @@
/* Metro module 14817; source: modules/icymi/native/ICYMISettingsActionSheet.tsx; dependencies: [5, 31, 27, 4605, 9577, 9569, 661, 33, 4501, 697, 566, 9581, 6805, 6231, 1244, 6808, 9580, 6238, 7230, 677, 21, 5097, 4080, 9579, 5080, 14818, 1962, 14827, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ActionSheetActionCreators from '../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import ReadStateStore from '../../../stores/ReadStateStore.tsx'; /* Metro dependency 4605 */
import ICYMIStore from '../ICYMIStore.tsx'; /* Metro dependency 9569 */
import ICYMIFiltersStore from '../ICYMIFiltersStore.tsx'; /* Metro dependency 9577 */
import ICYMIActionCreators from '../ICYMIActionCreators.tsx'; /* Metro dependency 9580 */
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 ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
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 ActionSheetNativeModule from '../../../design/components/Sheet/native/ActionSheet.native.tsx'; /* Metro dependency 6805 */
import * as ICYMITypesModule from '../ICYMITypes.tsx'; /* Metro dependency 7230 */
import * as ICYMIExperimentModule from '../ICYMIExperiment.tsx'; /* Metro dependency 9581 */
function _fun111825(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15014:6, offset: 0x023b3965, size: 345 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const readStateStore = importDefault(4605) /* metro dependency 4605: ReadStateStore */;
const icymiFiltersStore = importDefault(9577) /* metro dependency 9577: ICYMIFiltersStore */;
const icymiStore = importDefault(9569) /* metro dependency 9569: ICYMIStore */;
let value = require(661) /* metro dependency 661: Constants */;
ReactModule;
let value = ConstantsModule;
const env0_8 = value.AnalyticsObjectTypes;
const env0_9 = value.AnalyticsObjects;
value = require(33) /* metro dependency 33 */;
@@ -18,151 +31,165 @@ function _fun111825(global, require, importDefault, importAll, module, exports,
const env0_12 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
const PX_16 = (Native).space.PX_16;
const env0_13 = Reflect.apply(createStyles, value, [{padding: {bottomPadding: PX_16, width: '100%'}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/ICYMISettingsActionSheet.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/ICYMISettingsActionSheet.tsx');
exports.default = ICYMISettingsActionSheet;
}
function ICYMISettingsActionSheet() { // fn#111826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15014:434, offset: 0x023b3abe, size: 676 bytes, params: 1, frame: 32
var r7;
var jsxRuntimeEnv0_11Binding;
var TableSwitchRow;
var filterStaffContent;
var items2;
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([ICYMIFiltersStore],
function() {
return ICYMIFiltersStore.getState();
});
const styles = useStyles();
const ICYMIStaffDebuggingUtilityExperiment = (require(9581) /* metro dependency 9581: ICYMIExperiment */).ICYMIStaffDebuggingUtilityExperiment;
const useConfig = ICYMIStaffDebuggingUtilityExperiment.useConfig;
const enabled = Reflect.apply(useConfig, ICYMIStaffDebuggingUtilityExperiment,
[{location: 'settings action sheet'}]).enabled;
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
const object = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object.title = Reflect.apply(string, intl, [t['7Si8Ul']]);
object.hasIcons = false;
const value3 = null;
if (enabled) {
jsxRuntimeEnv0_11Binding = jsxRuntimeEnv0_11;
TableSwitchRow = (require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow;
function ICYMISettingsActionSheet() { // fn#111826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15014:434, offset: 0x023b3abe, size: 676 bytes, params: 1, frame: 32
var r7;
var jsxRuntimeEnv0_11Binding;
var TableSwitchRow;
var filterStaffContent;
var items2;
const TableRow = (TableRowNativeModule).TableRow;
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([ICYMIFiltersStore],
function() {
return ICYMIFiltersStore.getState();
});
const styles = useStyles();
const ICYMIStaffDebuggingUtilityExperiment = (ICYMIExperimentModule).ICYMIStaffDebuggingUtilityExperiment;
const useConfig = ICYMIStaffDebuggingUtilityExperiment.useConfig;
const enabled = Reflect.apply(useConfig, ICYMIStaffDebuggingUtilityExperiment,
[{location: 'settings action sheet'}]).enabled;
const ActionSheet = (ActionSheetNativeModule).ActionSheet;
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
const object2 = {};
const intl = (IndexNativeModule).intl;
let string = intl.string;
const t = (IndexNativeModule).t;
object2.title = Reflect.apply(string, intl, [t['7Si8Ul']]);
object2.hasIcons = false;
const value3 = null;
if (enabled) {
jsxRuntimeEnv0_11Binding = jsxRuntimeEnv0_11;
TableSwitchRow = (require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow;
string = intl.string;
filterStaffContent = value2.filterStaffContent;
items2 = [
<TableSwitchRow
label={Reflect.apply(string, intl, [t['3wDyfQ']])}
value={value3 != filterStaffContent && filterStaffContent}
onValueChange={onValueChange_111828}
/>,
];
items2[1] = <TableRow label="Clear read states" onPress={onPress_111829} />;
items2[2] = <TableRow label="Regenerate feed and clear read states" onPress={Module00005(_fun111832)} />;
r7 = (
<>
{items2}
</>
);
} else {
r7 = value3;
}
string = intl.string;
filterStaffContent = value2.filterStaffContent;
items2 = [<TableSwitchRow label={Reflect.apply(string, intl,
[t['3wDyfQ']])} value={value3 != filterStaffContent && filterStaffContent} onValueChange={onValueChange_111828} />];
items2[1] = <TableRow label="Clear read states" onPress={onPress_111829} />;
items2[2] = <TableRow label="Regenerate feed and clear read states" onPress={env0_3(_fun111832)} />;
r7 = <>{items2}</>;
} else {
r7 = value3;
}
string = intl.string;
const Eorjmy = (require(1244) /* metro dependency 1244: indexNative */).t.Eorjmy;
return (
<ActionSheet showGradient startExpanded>
<TableRowGroup {...object}>
{r7}
<TableRow label={Reflect.apply(string, intl, [Eorjmy])} onPress={onPress_111833} />
</TableRowGroup>
<View style={styles.padding} />
</ActionSheet>
);
}
function ICYMISettingsActionSheetOnValueChange() { // fn#111828, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15014:962, owner: ICYMISettingsActionSheet.onValueChange, offset: 0x023b3d62, size: 94 bytes, params: 1, frame: 18
let value = environment.__proto__;
value = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
const setFilters = value.setFilters;
const object2 = {};
const binding = env0_0;
copyDataProperties(object2, binding, undefined);
object2['filterStaffContent'] = !binding.filterStaffContent;
Reflect.apply(setFilters, value, [object2]);
(importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */).fetchDehydrated();
}
function ICYMISettingsActionSheetOnPress() { // fn#111829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15014:1121, owner: ICYMISettingsActionSheet.onPress, offset: 0x023b3dc0, size: 92 bytes, params: 1, frame: 13
var environment;
const value = environment.__proto__;
ICYMIStore.getDehydratedItems().forEach(_fun111830);
(importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */).clearReadStates();
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
}
function* _fun111832() { // fn#111832, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15014:1648, offset: 0x023b3f5a, size: 102 bytes, params: 1, frame: 14
if (true) {
value = environment.__proto__.__proto__;
var value3 = env2_0(env2_2[23]);
var regenerateFeedAndClearReadStates = value3.regenerateFeedAndClearReadStates;
var ACK_GRAVITY_REGENERATE_FEED_AND_CLEAR_READ_STATES_BUTTON = env2_9.ACK_GRAVITY_REGENERATE_FEED_AND_CLEAR_READ_STATES_BUTTON;
yield Reflect.apply(regenerateFeedAndClearReadStates, value3,
[ACK_GRAVITY_REGENERATE_FEED_AND_CLEAR_READ_STATES_BUTTON]);
if (false) {
return undefined;
const Eorjmy = (IndexNativeModule).t.Eorjmy;
return (
<ActionSheet showGradient startExpanded>
<TableRowGroup {...object2}>
{r7}
<TableRow label={Reflect.apply(string, intl, [Eorjmy])} onPress={onPress_111833} />
</TableRowGroup>
<View style={styles.padding} />
</ActionSheet>
);
function ICYMISettingsActionSheetOnValueChange() { // fn#111828, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15014:962, owner: ICYMISettingsActionSheet.onValueChange, offset: 0x023b3d62, size: 94 bytes, params: 1, frame: 18
let value = environment.__proto__;
value = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
const setFilters = value.setFilters;
const object = {};
const binding = env0_0;
copyDataProperties(object, binding, undefined);
object['filterStaffContent'] = !binding.filterStaffContent;
Reflect.apply(setFilters, value, [object]);
(importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */).fetchDehydrated();
}
env2_1(env2_2[22]).hideActionSheet();
}
}
function ICYMISettingsActionSheetOnPress_111833() { // fn#111833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15014:1883, owner: ICYMISettingsActionSheet.onPress, offset: 0x023b3fc0, size: 211 bytes, params: 1, frame: 20
let value = environment.__proto__;
importDefault(dependencyMap[16]).itemInteracted('icymi_settings_action_sheet', 'icymi_settings_action_sheet',
'custom_scoring_button');
importDefault(dependencyMap[16]).feedPageActioned({actionParameters: {'actionGestureType': 'press',
'actionTargetElement': 'tune_settings_button', 'actionIntentType': 'open', 'actionDestinationType': null}});
const defaultImport3 = importDefault(dependencyMap[24]);
const pushLazy = defaultImport3.pushLazy;
value = require(dependencyMap[26]);
value = value(dependencyMap[25], dependencyMap.paths);
const ICYMI_CUSTOM_SCORES_MODAL_KEY = require(dependencyMap[27]).ICYMI_CUSTOM_SCORES_MODAL_KEY;
Reflect.apply(pushLazy, defaultImport3, [value, {}, ICYMI_CUSTOM_SCORES_MODAL_KEY, {presentation: 'modal'}]);
importDefault(dependencyMap[22]).hideActionSheet();
}
function ICYMISettingsActionSheetOnPress() { // fn#111829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15014:1121, owner: ICYMISettingsActionSheet.onPress, offset: 0x023b3dc0, size: 92 bytes, params: 1, frame: 13
var environment;
const value = environment.__proto__;
ICYMIStore.getDehydratedItems().forEach(_fun111830);
(ICYMIActionCreators).clearReadStates();
(ActionSheetActionCreators).hideActionSheet();
function _fun111830(a0) { // fn#111830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15014:1158, offset: 0x023b3e1c, size: 307 bytes, params: 2, frame: 21
var data;
var defaultImport;
var compare;
var readStateStoreBinding;
var ackMessageId;
var channel_id;
var value4;
var moduleValue;
var ack;
var object;
var atPreviousMillisecond;
const type = a0.type;
let value = environment.__proto__.__proto__;
const ICYMIItemTypes = (ICYMITypesModule).ICYMIItemTypes;
const MESSAGE = ICYMIItemTypes.MESSAGE;
let r3 = type === MESSAGE && a0.data.channel_type === (require(677) /* metro dependency 677: ChannelTypes */).ChannelTypes.GUILD_ANNOUNCEMENT;
if (r3) {
defaultImport = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
compare = defaultImport.compare;
readStateStoreBinding = ReadStateStore;
ackMessageId = readStateStoreBinding.ackMessageId;
data = a0.data;
value4 = Reflect.apply(ackMessageId, readStateStoreBinding, [data.channel_id]);
data = a0.data;
r3 = Reflect.apply(compare, defaultImport, [value4, data.message_id]) >= 0;
}
if (r3) {
moduleValue = require(5097) /* metro dependency 5097: ReadStateActionCreators */;
ack = moduleValue.ack;
data = a0.data;
channel_id = data.channel_id;
object = {};
object.object = AnalyticsObjects.ACK_GRAVITY_CLEAR_READ_STATES_BUTTON;
object.objectType = AnalyticsObjectTypes.ACK_SEMI_AUTOMATIC;
value = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
atPreviousMillisecond = value.atPreviousMillisecond;
data = a0.data;
value = Reflect.apply(atPreviousMillisecond, value, [data.message_id]);
Reflect.apply(ack, moduleValue, [channel_id, object, true, true, value]);
}
}
}
function* _fun111832() { // fn#111832, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15014:1648, offset: 0x023b3f5a, size: 102 bytes, params: 1, frame: 14
if (true) {
value = environment.__proto__.__proto__;
var value3 = env2_0(env2_2[23]);
var regenerateFeedAndClearReadStates = value3.regenerateFeedAndClearReadStates;
var ACK_GRAVITY_REGENERATE_FEED_AND_CLEAR_READ_STATES_BUTTON = env2_9.ACK_GRAVITY_REGENERATE_FEED_AND_CLEAR_READ_STATES_BUTTON;
yield Reflect.apply(regenerateFeedAndClearReadStates, value3,
[ACK_GRAVITY_REGENERATE_FEED_AND_CLEAR_READ_STATES_BUTTON]);
if (false) {
return undefined;
}
env2_1(env2_2[22]).hideActionSheet();
}
}
function ICYMISettingsActionSheetOnPress_111833() { // fn#111833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15014:1883, owner: ICYMISettingsActionSheet.onPress, offset: 0x023b3fc0, size: 211 bytes, params: 1, frame: 20
let value = environment.__proto__;
importDefault(dependencyMap[16]).itemInteracted('icymi_settings_action_sheet', 'icymi_settings_action_sheet',
'custom_scoring_button');
importDefault(dependencyMap[16]).feedPageActioned({actionParameters: {'actionGestureType': 'press',
'actionTargetElement': 'tune_settings_button', 'actionIntentType': 'open', 'actionDestinationType': null}});
const defaultImport3 = importDefault(dependencyMap[24]);
const pushLazy = defaultImport3.pushLazy;
value = require(dependencyMap[26]);
value = value(dependencyMap[25], dependencyMap.paths);
const ICYMI_CUSTOM_SCORES_MODAL_KEY = require(dependencyMap[27]).ICYMI_CUSTOM_SCORES_MODAL_KEY;
Reflect.apply(pushLazy, defaultImport3, [value, {}, ICYMI_CUSTOM_SCORES_MODAL_KEY, {presentation: 'modal'}]);
importDefault(dependencyMap[22]).hideActionSheet();
}
function _fun111830(a0) { // fn#111830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15014:1158, offset: 0x023b3e1c, size: 307 bytes, params: 2, frame: 21
var data;
var defaultImport;
var compare;
var ackMessageId;
var channel_id;
var value4;
var moduleValue;
var ack;
var object2;
var atPreviousMillisecond;
const type = a0.type;
let value = environment.__proto__.__proto__;
const ICYMIItemTypes = (require(7230) /* metro dependency 7230: ICYMITypes */).ICYMIItemTypes;
const MESSAGE = ICYMIItemTypes.MESSAGE;
let r3 = type === MESSAGE && a0.data.channel_type === (require(677) /* metro dependency 677: ChannelTypes */).ChannelTypes.GUILD_ANNOUNCEMENT;
if (r3) {
defaultImport = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
compare = defaultImport.compare;
ackMessageId = ReadStateStore.ackMessageId;
data = a0.data;
value4 = Reflect.apply(ackMessageId, ReadStateStore, [data.channel_id]);
data = a0.data;
r3 = Reflect.apply(compare, defaultImport, [value4, data.message_id]) >= 0;
}
if (r3) {
moduleValue = require(5097) /* metro dependency 5097: ReadStateActionCreators */;
ack = moduleValue.ack;
data = a0.data;
channel_id = data.channel_id;
object2 = {};
object2.object = AnalyticsObjects.ACK_GRAVITY_CLEAR_READ_STATES_BUTTON;
object2.objectType = AnalyticsObjectTypes.ACK_SEMI_AUTOMATIC;
value = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
atPreviousMillisecond = value.atPreviousMillisecond;
data = a0.data;
value = Reflect.apply(atPreviousMillisecond, value, [data.message_id]);
Reflect.apply(ack, moduleValue, [channel_id, object2, true, true, value]);
}
}
global.__d(_fun111825, 14817, [5, 31, 27, 4605, 9577, 9569, 661, 33, 4501, 697, 566, 9581, 6805, 6231, 1244, 6808,
9580, 6238, 7230, 677, 21, 5097, 4080, 9579, 5080, 14818, 1962, 14827,
2]) /* metro module 14817, dependencies: [5, 31, 27, 4605, 9577, 9569, 661, 33, 4501, 697, 566, 9581, 6805, 6231, 1244, 6808, 9580, 6238, 7230, 677, 21, 5097, 4080, 9579, 5080, 14818, 1962, 14827, 2] */;
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -1,80 +1,117 @@
/* Metro module 14821; source: modules/icymi/native/ItemDetailsActionSheet.tsx; dependencies: [31, 27, 1379, 1867, 9569, 33, 4501, 697, 566, 4805, 5115, 6819, 1305, 9579, 6805, 11251, 14822, 6231, 6238, 2] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ChannelStore from '../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import GuildStore from '../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import UseChannelName from '../../channel/useChannelName.tsx'; /* Metro dependency 4805 */
import UseDesignToggle from '../../devtools/design_toggles/useDesignToggle.tsx'; /* Metro dependency 5115 */
import ICYMIStore from '../ICYMIStore.tsx'; /* Metro dependency 9569 */
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 ActionSheetNativeModule from '../../../design/components/Sheet/native/ActionSheet.native.tsx'; /* Metro dependency 6805 */
import * as ActionSheetIconHeaderNativeModule from '../../../design/components/Sheet/native/ActionSheetIconHeader.native.tsx'; /* Metro dependency 11251 */
function _fun111870(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111870, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15018:6, offset: 0x023b5af9, size: 292 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const icymiStore = importDefault(9569) /* metro dependency 9569: ICYMIStore */;
let value = require(33) /* metro dependency 33 */;
ReactModule;
let value = JsxRuntimeModule;
const env0_7 = value.jsx;
const env0_8 = value.Fragment;
const env0_9 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
const BORDER_SUBTLE = (Native).colors.BORDER_SUBTLE;
const env0_10 = Reflect.apply(createStyles, value, [{divider: {height: 1, backgroundColor: BORDER_SUBTLE}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/ItemDetailsActionSheet.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/ItemDetailsActionSheet.tsx');
exports.default = ItemDetailsActionSheet;
}
function ItemDetailsActionSheet({guildId, channelId, id}) { // fn#111871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15018:371, offset: 0x023b5c1d, size: 883 bytes, params: 2, frame: 28
var object2;
var jsxRuntimeEnv0_8Binding;
var TableRowGroup;
var TableRow;
var score;
var JSON;
const channel = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
return ChannelStore.getChannel(channelId);
});
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
return GuildStore.getGuild(guildId);
});
const value3 = (importDefault(4805) /* metro dependency 4805: useChannelName */)(channel, true);
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ICYMIStore], _fun111874);
const value5 = (importDefault(5115) /* metro dependency 5115: useDesignToggle */)('show_icymi_debug_scores');
const r13 = guild != null ? ((Component) => <Component guild={guild} size={(require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes.LARGE} />)(importDefault(6819) /* metro dependency 6819: GuildIcon */) : channel != null ? ((Avatar) => <Avatar size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.LARGE} channel={channel} />)((require(1305) /* metro dependency 1305: native */).Avatar) : undefined;
const styles = useStyles();
let r14 = channel != null && guild != null && (require(9579) /* metro dependency 9579: ICYMIUtils */).isChannelCustomScoreEligible(channel);
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
object2 = {'showGradient': true, 'startExpanded': true};
const ActionSheetIconHeader = (require(11251) /* metro dependency 11251: ActionSheetIconHeaderNative */).ActionSheetIconHeader;
object2.header = <ActionSheetIconHeader icon={r13} title={value3} subtitle={guild?.name ?? ''} />;
const items2 = [r14 && ((ChannelScoreSettings) => <ChannelScoreSettings channel={channel} guild={guild} />)((require(14822) /* metro dependency 14822: ICYMIContentSettingControl */).ChannelScoreSettings)];
let r5 = value4 != null && guild != null;
if (r5) {
jsxRuntimeEnv0_8Binding = jsxRuntimeEnv0_8;
r14 = r14 && <View style={styles.divider} />;
r5 = <>{r14}{((GuildScoreSettings) => <GuildScoreSettings guild={guild} />)((require(14822) /* metro dependency 14822: ICYMIContentSettingControl */).GuildScoreSettings)}</>;
}
items2[1] = r5;
if (value4 != null) {
if (value5) {
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
score = value4.score;
JSON = global.JSON;
r5 = <TableRowGroup title="Debug details" hasIcons={false}><TableRow label={'Total Score: ' + score} subLabel={JSON.stringify(value4.score_components)} /></TableRowGroup>;
function ItemDetailsActionSheet({guildId, channelId, id}) { // fn#111871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15018:371, offset: 0x023b5c1d, size: 883 bytes, params: 2, frame: 28
var jsxRuntimeEnv0_8Binding;
var TableRowGroup;
var TableRow;
var score;
var JSON;
const channel = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
return ChannelStore.getChannel(channelId);
});
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
return GuildStore.getGuild(guildId);
});
const value3 = (UseChannelName)(channel, true);
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ICYMIStore], _fun111874);
const value5 = (UseDesignToggle)('show_icymi_debug_scores');
const r13 = (
guild != null
? ((Component) => <Component guild={guild} size={(require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes.LARGE} />)(importDefault(6819) /* metro dependency 6819: GuildIcon */)
: (
channel != null
? ((Avatar) => <Avatar size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.LARGE} channel={channel} />)((require(1305) /* metro dependency 1305: native */).Avatar)
: undefined
)
);
const styles = useStyles();
let r14 = channel != null && guild != null && (require(9579) /* metro dependency 9579: ICYMIUtils */).isChannelCustomScoreEligible(channel);
const ActionSheet = (ActionSheetNativeModule).ActionSheet;
object = {'showGradient': true, 'startExpanded': true};
const ActionSheetIconHeader = (ActionSheetIconHeaderNativeModule).ActionSheetIconHeader;
object.header = (
<ActionSheetIconHeader
icon={r13}
title={value3}
subtitle={guild?.name ?? ''}
/>
);
const items2 = [
r14 && ((ChannelScoreSettings) => <ChannelScoreSettings channel={channel} guild={guild} />)((require(14822) /* metro dependency 14822: ICYMIContentSettingControl */).ChannelScoreSettings),
];
let r5 = value4 != null && guild != null;
if (r5) {
jsxRuntimeEnv0_8Binding = jsxRuntimeEnv0_8;
r14 = r14 && <View style={styles.divider} />;
r5 = (
<>
{r14}
{((GuildScoreSettings) => <GuildScoreSettings guild={guild} />)((require(14822) /* metro dependency 14822: ICYMIContentSettingControl */).GuildScoreSettings)}
</>
);
}
items2[1] = r5;
if (value4 != null) {
if (value5) {
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
score = value4.score;
JSON = global.JSON;
r5 = (
<TableRowGroup title="Debug details" hasIcons={false}>
<TableRow label={'Total Score: ' + score} subLabel={JSON.stringify(value4.score_components)} />
</TableRowGroup>
);
} else {
r5 = null;
}
} else {
r5 = null;
}
} else {
r5 = null;
items2[2] = r5;
return (
<ActionSheet {...object}>
{items2}
</ActionSheet>
);
function _fun111874() { // fn#111874, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15018:601, offset: 0x023b5f90, size: 42 bytes, params: 1, frame: 12
const idBinding = id;
const value2 = null;
return value2 != idBinding ? ICYMIStore.getDehydratedItem(id) : value2;
}
}
items2[2] = r5;
return (
<ActionSheet {...object2}>
{items2}
</ActionSheet>
);
}
function _fun111874() { // fn#111874, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15018:601, offset: 0x023b5f90, size: 42 bytes, params: 1, frame: 12
const idBinding = id;
const value2 = null;
return value2 != idBinding ? ICYMIStore.getDehydratedItem(id) : value2;
}
global.__d(_fun111870, 14821, [31, 27, 1379, 1867, 9569, 33, 4501, 697, 566, 4805, 5115, 6819, 1305, 9579, 6805,
11251, 14822, 6231, 6238,
2]) /* metro module 14821, dependencies: [31, 27, 1379, 1867, 9569, 33, 4501, 697, 566, 4805, 5115, 6819, 1305, 9579, 6805, 11251, 14822, 6231, 6238, 2] */;
@@ -1,384 +1,387 @@
/* Metro module 14826; source: modules/icymi/native/NativeICYMIActionCreators.tsx; dependencies: [5, 661, 9579, 507, 694, 3857, 1244, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
function _fun111891(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15023:6, offset: 0x023b6f57, size: 147 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = (require(661) /* metro dependency 661: Constants */).Endpoints;
object2 = {customScoreGuild: customScoreGuild};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/NativeICYMIActionCreators.tsx');
exports.default = object2;
}
function customScoreGuild({guildId, channelScores, guildScore}) { // fn#111892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15023:146, offset: 0x023b6fea, size: 61 bytes, params: 2, frame: 11
return env0_3(_fun111894)();
}
function* _fun111894() { // fn#111894, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15023:193, offset: 0x023b7032, size: 471 bytes, params: 1, frame: 20
var environment;
var r7;
var binding;
var value3;
var value4;
var icymiEnabled;
var binding2;
var property;
var value5;
var HTTP;
var put;
var object3;
var GRAVITY_CUSTOM_GUILD_SCORES;
var object4;
var value6;
var value7;
var map;
var closure;
var value8;
var value9;
var value10;
var value11;
var binding3;
var value12;
var dispatch;
var value13;
var open;
var value14;
var intl;
var string;
var value15;
var t;
var OMdbs1;
var value16;
var error;
var binding4;
var value17;
var CG4Hks;
if (false) {
return undefined;
}
reduciblePort74: while (true) {
exceptionLanding73: while (true) {
value = environment.__proto__.__proto__;
binding = env2_0;
value3 = undefined;
value4 = binding(env2_2[2]);
icymiEnabled = value4.icymiEnabled;
if (Reflect.apply(icymiEnabled, value4, ['customScores'])) {
try {
object = {customScoreGuild: customScoreGuild};
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/NativeICYMIActionCreators.tsx');
exports.default = object;
function customScoreGuild({guildId, channelScores, guildScore}) { // fn#111892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15023:146, offset: 0x023b6fea, size: 61 bytes, params: 2, frame: 11
return Module00005(_fun111894)();
function* _fun111894() { // fn#111894, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15023:193, offset: 0x023b7032, size: 471 bytes, params: 1, frame: 20
var environment;
var r7;
var binding;
var value3;
var value4;
var icymiEnabled;
var binding2;
var property;
var value5;
var HTTP;
var put;
var object;
var GRAVITY_CUSTOM_GUILD_SCORES;
var object2;
var value6;
var value7;
var map;
var closure;
var value8;
var value9;
var value10;
var value11;
var binding3;
var value12;
var dispatch;
var value13;
var open;
var value14;
var intl;
var string;
var value15;
var t;
var OMdbs1;
var value16;
var error;
var binding4;
var value17;
var CG4Hks;
if (false) {
return undefined;
}
reduciblePort74: while (true) {
exceptionLanding73: while (true) {
value = environment.__proto__.__proto__;
binding = env2_0;
} catch (error) {
break exceptionLanding73;
}
try {
binding2 = env2_2;
} catch (error) {
break exceptionLanding73;
}
try {
property = binding2[3];
} catch (error) {
break exceptionLanding73;
}
try {
value5 = binding(property);
} catch (error) {
break exceptionLanding73;
}
try {
HTTP = value5.HTTP;
} catch (error) {
break exceptionLanding73;
}
try {
put = HTTP.put;
} catch (error) {
break exceptionLanding73;
}
try {
object3 = {};
} catch (error) {
break exceptionLanding73;
}
try {
binding = env2_4;
} catch (error) {
break exceptionLanding73;
}
try {
GRAVITY_CUSTOM_GUILD_SCORES = binding.GRAVITY_CUSTOM_GUILD_SCORES;
} catch (error) {
break exceptionLanding73;
}
try {
object3.url = GRAVITY_CUSTOM_GUILD_SCORES;
} catch (error) {
break exceptionLanding73;
}
try {
object4 = {};
} catch (error) {
break exceptionLanding73;
}
value6 = environment.__proto__;
try {
} catch (error) {
break exceptionLanding73;
}
try {
object4.guild_id = require;
} catch (error) {
break exceptionLanding73;
}
try {
} catch (error) {
break exceptionLanding73;
}
try {
value7 = importDefault == null;
} catch (error) {
break exceptionLanding73;
}
reducibleJoin26: while (true) {
if (value7) {
r7 = value3;
break reducibleJoin26;
value3 = undefined;
value4 = binding(env2_2[2]);
icymiEnabled = value4.icymiEnabled;
if (Reflect.apply(icymiEnabled, value4, ['customScores'])) {
try {
binding = env2_0;
} catch (error) {
break exceptionLanding73;
}
try {
binding2 = env2_2;
} catch (error) {
break exceptionLanding73;
}
try {
property = binding2[3];
} catch (error) {
break exceptionLanding73;
}
try {
value5 = binding(property);
} catch (error) {
break exceptionLanding73;
}
try {
HTTP = value5.HTTP;
} catch (error) {
break exceptionLanding73;
}
try {
put = HTTP.put;
} catch (error) {
break exceptionLanding73;
}
try {
object = {};
} catch (error) {
break exceptionLanding73;
}
try {
binding = env2_4;
} catch (error) {
break exceptionLanding73;
}
try {
GRAVITY_CUSTOM_GUILD_SCORES = binding.GRAVITY_CUSTOM_GUILD_SCORES;
} catch (error) {
break exceptionLanding73;
}
try {
object.url = GRAVITY_CUSTOM_GUILD_SCORES;
} catch (error) {
break exceptionLanding73;
}
try {
object2 = {};
} catch (error) {
break exceptionLanding73;
}
value6 = environment.__proto__;
try {
} catch (error) {
break exceptionLanding73;
}
try {
object2.guild_id = require;
} catch (error) {
break exceptionLanding73;
}
try {
} catch (error) {
break exceptionLanding73;
}
try {
value7 = importDefault == null;
} catch (error) {
break exceptionLanding73;
}
reducibleJoin26: while (true) {
if (value7) {
r7 = value3;
break reducibleJoin26;
}
try {
} catch (error) {
break exceptionLanding73;
}
try {
map = importDefault.map;
} catch (error) {
break exceptionLanding73;
}
try {
} catch (error) {
break exceptionLanding73;
}
try {
closure = function({channelId, score}) {
return {channel_id: channelId, score: score};
};
} catch (error) {
break exceptionLanding73;
}
try {
value8 = Reflect.apply(map, importDefault, [closure]);
} catch (error) {
break exceptionLanding73;
}
r7 = value8;
break reducibleJoin26;
}
try {
object2.channel_scores = r7;
} catch (error) {
break exceptionLanding73;
}
try {
} catch (error) {
break exceptionLanding73;
}
try {
object2.guild_score = dependencyMap;
} catch (error) {
break exceptionLanding73;
}
try {
object.body = object2;
} catch (error) {
break exceptionLanding73;
}
try {
object.rejectWithError = true;
} catch (error) {
break exceptionLanding73;
}
try {
value9 = Reflect.apply(put, HTTP, [object]);
} catch (error) {
break exceptionLanding73;
}
yield value9;
try {
value10 = undefined;
value11 = false;
} catch (error) {
break exceptionLanding73;
}
if (value11) {
return value10;
}
try {
binding = env2_1;
} catch (error) {
break exceptionLanding73;
}
try {
binding3 = env2_2;
} catch (error) {
break exceptionLanding73;
}
try {
property = binding3[4];
} catch (error) {
break exceptionLanding73;
}
try {
value12 = binding(property);
} catch (error) {
break exceptionLanding73;
}
try {
dispatch = value12.dispatch;
} catch (error) {
break exceptionLanding73;
}
try {
object = {};
} catch (error) {
break exceptionLanding73;
}
try {
object.type = 'ICYMI_CUSTOM_SCORES_UPDATED';
} catch (error) {
break exceptionLanding73;
}
try {
} catch (error) {
break exceptionLanding73;
}
try {
object.guildId = require;
} catch (error) {
break exceptionLanding73;
}
try {
} catch (error) {
break exceptionLanding73;
}
try {
object.channelScores = importDefault;
} catch (error) {
break exceptionLanding73;
}
try {
} catch (error) {
break exceptionLanding73;
}
try {
object.guildScore = dependencyMap;
} catch (error) {
break exceptionLanding73;
}
try {
Reflect.apply(dispatch, value12, [object]);
} catch (error) {
break exceptionLanding73;
}
try {
property = binding3[5];
} catch (error) {
break exceptionLanding73;
}
try {
value13 = binding(property);
} catch (error) {
break exceptionLanding73;
}
try {
open = value13.open;
} catch (error) {
break exceptionLanding73;
}
try {
object = {};
} catch (error) {
break exceptionLanding73;
}
try {
object.key = 'GravityGuildScore';
} catch (error) {
break exceptionLanding73;
}
try {
binding = env2_0;
} catch (error) {
break exceptionLanding73;
}
try {
property = binding3[6];
} catch (error) {
break exceptionLanding73;
}
try {
value14 = binding(property);
} catch (error) {
break exceptionLanding73;
}
try {
intl = value14.intl;
} catch (error) {
break exceptionLanding73;
}
try {
string = intl.string;
} catch (error) {
break exceptionLanding73;
}
try {
property = binding3[6];
} catch (error) {
break exceptionLanding73;
}
try {
value15 = binding(property);
} catch (error) {
break exceptionLanding73;
}
try {
t = value15.t;
} catch (error) {
break exceptionLanding73;
}
try {
OMdbs1 = t.OMdbs1;
} catch (error) {
break exceptionLanding73;
}
try {
value16 = Reflect.apply(string, intl, [OMdbs1]);
} catch (error) {
break exceptionLanding73;
}
try {
object.content = value16;
} catch (error) {
break exceptionLanding73;
}
try {
Reflect.apply(open, value13, [object]);
} catch (error) {
break exceptionLanding73;
}
break reduciblePort74;
}
try {
} catch (error) {
break exceptionLanding73;
}
try {
map = importDefault.map;
} catch (error) {
break exceptionLanding73;
}
try {
} catch (error) {
break exceptionLanding73;
}
try {
closure = function({channelId, score}) {
return {channel_id: channelId, score: score};
};
} catch (error) {
break exceptionLanding73;
}
try {
value8 = Reflect.apply(map, importDefault, [closure]);
} catch (error) {
break exceptionLanding73;
}
r7 = value8;
break reducibleJoin26;
}
try {
object4.channel_scores = r7;
} catch (error) {
break exceptionLanding73;
}
try {
} catch (error) {
break exceptionLanding73;
}
try {
object4.guild_score = dependencyMap;
} catch (error) {
break exceptionLanding73;
}
try {
object3.body = object4;
} catch (error) {
break exceptionLanding73;
}
try {
object3.rejectWithError = true;
} catch (error) {
break exceptionLanding73;
}
try {
value9 = Reflect.apply(put, HTTP, [object3]);
} catch (error) {
break exceptionLanding73;
}
yield value9;
try {
value10 = undefined;
value11 = false;
} catch (error) {
break exceptionLanding73;
}
if (value11) {
return value10;
}
try {
binding = env2_1;
} catch (error) {
break exceptionLanding73;
}
try {
binding3 = env2_2;
} catch (error) {
break exceptionLanding73;
}
try {
property = binding3[4];
} catch (error) {
break exceptionLanding73;
}
try {
value12 = binding(property);
} catch (error) {
break exceptionLanding73;
}
try {
dispatch = value12.dispatch;
} catch (error) {
break exceptionLanding73;
}
try {
object3 = {};
} catch (error) {
break exceptionLanding73;
}
try {
object3.type = 'ICYMI_CUSTOM_SCORES_UPDATED';
} catch (error) {
break exceptionLanding73;
}
try {
} catch (error) {
break exceptionLanding73;
}
try {
object3.guildId = require;
} catch (error) {
break exceptionLanding73;
}
try {
} catch (error) {
break exceptionLanding73;
}
try {
object3.channelScores = importDefault;
} catch (error) {
break exceptionLanding73;
}
try {
} catch (error) {
break exceptionLanding73;
}
try {
object3.guildScore = dependencyMap;
} catch (error) {
break exceptionLanding73;
}
try {
Reflect.apply(dispatch, value12, [object3]);
} catch (error) {
break exceptionLanding73;
}
try {
property = binding3[5];
} catch (error) {
break exceptionLanding73;
}
try {
value13 = binding(property);
} catch (error) {
break exceptionLanding73;
}
try {
open = value13.open;
} catch (error) {
break exceptionLanding73;
}
try {
object3 = {};
} catch (error) {
break exceptionLanding73;
}
try {
object3.key = 'GravityGuildScore';
} catch (error) {
break exceptionLanding73;
}
try {
binding = env2_0;
} catch (error) {
break exceptionLanding73;
}
try {
property = binding3[6];
} catch (error) {
break exceptionLanding73;
}
try {
value14 = binding(property);
} catch (error) {
break exceptionLanding73;
}
try {
intl = value14.intl;
} catch (error) {
break exceptionLanding73;
}
try {
string = intl.string;
} catch (error) {
break exceptionLanding73;
}
try {
property = binding3[6];
} catch (error) {
break exceptionLanding73;
}
try {
value15 = binding(property);
} catch (error) {
break exceptionLanding73;
}
try {
t = value15.t;
} catch (error) {
break exceptionLanding73;
}
try {
OMdbs1 = t.OMdbs1;
} catch (error) {
break exceptionLanding73;
}
try {
value16 = Reflect.apply(string, intl, [OMdbs1]);
} catch (error) {
break exceptionLanding73;
}
try {
object3.content = value16;
} catch (error) {
break exceptionLanding73;
}
try {
Reflect.apply(open, value13, [object3]);
} catch (error) {
break exceptionLanding73;
break reduciblePort74;
}
binding = env2_1;
binding4 = env2_2;
value17 = binding(binding4[5]);
open = value17.open;
binding = env2_0;
intl = binding(binding4[6]).intl;
string = intl.string;
t = binding(binding4[6]).t;
CG4Hks = t.CG4Hks;
Reflect.apply(open, value17, [{key: 'GravityGuildScore', content: Reflect.apply(string, intl, [CG4Hks])}]);
break reduciblePort74;
}
break reduciblePort74;
return value3;
}
binding = env2_1;
binding4 = env2_2;
value17 = binding(binding4[5]);
open = value17.open;
binding = env2_0;
intl = binding(binding4[6]).intl;
string = intl.string;
t = binding(binding4[6]).t;
CG4Hks = t.CG4Hks;
Reflect.apply(open, value17, [{key: 'GravityGuildScore', content: Reflect.apply(string, intl, [CG4Hks])}]);
break reduciblePort74;
}
return value3;
}
global.__d(_fun111891, 14826, [5, 661, 9579, 507, 694, 3857, 1244,
2]) /* metro module 14826, dependencies: [5, 661, 9579, 507, 694, 3857, 1244, 2] */;
@@ -1,19 +1,23 @@
/* Metro module 14828; source: modules/icymi/native/NativeICYMIUtils.tsx; dependencies: [5080, 14829, 1962, 14830, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun111897(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15025:6, offset: 0x023b7278, 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/icymi/native/NativeICYMIUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/NativeICYMIUtils.tsx');
exports.pushICYMIInfoModal = pushICYMIInfoModal;
function pushICYMIInfoModal({extendedOnboarding, skipIntro}) { // fn#111898, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15025:188, offset: 0x023b72df, size: 140 bytes, params: 2, frame: 21
const defaultImport = importDefault(dependencyMap[0]);
const pushLazy = defaultImport.pushLazy;
let value = require(dependencyMap[2]);
value = value(dependencyMap[1], dependencyMap.paths);
const object = {extendedOnboarding: extendedOnboarding, skipIntro: skipIntro};
const ICYMI_INFO_MODAL_KEY = require(dependencyMap[3]).ICYMI_INFO_MODAL_KEY;
Reflect.apply(pushLazy, defaultImport, [value, object, ICYMI_INFO_MODAL_KEY, {presentation: 'fullScreenModal'}]);
}
}
function pushICYMIInfoModal({extendedOnboarding, skipIntro}) { // fn#111898, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15025:188, offset: 0x023b72df, size: 140 bytes, params: 2, frame: 21
const defaultImport = importDefault(dependencyMap[0]);
const pushLazy = defaultImport.pushLazy;
let value = require(dependencyMap[2]);
value = value(dependencyMap[1], dependencyMap.paths);
const object2 = {extendedOnboarding: extendedOnboarding, skipIntro: skipIntro};
const ICYMI_INFO_MODAL_KEY = require(dependencyMap[3]).ICYMI_INFO_MODAL_KEY;
Reflect.apply(pushLazy, defaultImport, [value, object2, ICYMI_INFO_MODAL_KEY, {presentation: 'fullScreenModal'}]);
}
global.__d(_fun111897, 14828, [5080, 14829, 1962, 14830,
2]) /* metro module 14828, dependencies: [5080, 14829, 1962, 14830, 2] */;
+268 -225
View File
@@ -1,253 +1,296 @@
/* Metro module 14884; source: modules/icymi/native/NewContentPill.tsx; dependencies: [57, 31, 27, 1867, 9569, 33, 4501, 697, 7599, 6819, 566, 4048, 7230, 9579, 4017, 4577, 1487, 5278, 14278, 4573, 1244, 4002, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import GuildStore from '../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import UseTheme from '../../../hooks/useTheme.tsx'; /* Metro dependency 4048 */
import GuildIcon2 from '../../guild/native/GuildIcon.tsx'; /* Metro dependency 6819 */
import ClipView from '../../../design/components/Icon/native/ClipView.tsx'; /* Metro dependency 7599 */
import ICYMIStore from '../ICYMIStore.tsx'; /* Metro dependency 9569 */
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 FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as Module01487Module from '../../../by-id/module-01487.js'; /* Metro dependency 1487 */
import * as ReanimatedRexportModule from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as SpringModule from '../../../design/animation/reanimated/spring/spring.tsx'; /* Metro dependency 4577 */
import * as PressablesModule from '../../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */
import * as GuildIconModule from '../../guild/native/GuildIcon.tsx'; /* Metro dependency 6819 */
import * as ICYMITypesModule from '../ICYMITypes.tsx'; /* Metro dependency 7230 */
import * as ClipViewModule from '../../../design/components/Icon/native/ClipView.tsx'; /* Metro dependency 7599 */
function _fun112600(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112600, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15081:6, offset: 0x023d4171, size: 437 bytes, params: 8, frame: 22
var object3;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_5 = value.ActivityIndicator;
const env0_6 = value.View;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const icymiStore = importDefault(9569) /* metro dependency 9569: ICYMIStore */;
value = require(33) /* metro dependency 33 */;
const env0_9 = value.jsx;
const env0_10 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object3 = {};
const object4 = {'alignSelf': 'center', 'alignItems': 'center', 'flexDirection': 'row', 'paddingRight': 12,
object = {};
const object2 = {'alignSelf': 'center', 'alignItems': 'center', 'flexDirection': 'row', 'paddingRight': 12,
'paddingLeft': 8, 'paddingVertical': 6};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
object4.backgroundColor = BACKGROUND_BRAND;
object3.container = object4;
object2.backgroundColor = BACKGROUND_BRAND;
object.container = object2;
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
object3.guildIconBG = {backgroundColor: BACKGROUND_BASE_LOWER};
object3.refreshMorePillContainer = {'position': 'absolute', 'top': 0, 'left': 0, 'height': 32, 'width': '100%',
object.guildIconBG = {backgroundColor: BACKGROUND_BASE_LOWER};
object.refreshMorePillContainer = {'position': 'absolute', 'top': 0, 'left': 0, 'height': 32, 'width': '100%',
'zIndex': 100};
const env0_11 = Reflect.apply(createStyles, value, [object3]);
const env0_11 = Reflect.apply(createStyles, value, [object]);
const env0_12 = {'overshootClamping': true, 'stiffness': 20, 'damping': 15, 'mass': 0.03};
object3 = {code: "function NewContentPillTsx1(){const{withSpring,showingPill,springConfig}=this.__closure;return{transform:[{translateY:withSpring(showingPill?12:0,springConfig)}],opacity:withSpring(showingPill?1:0,springConfig,'respect-motion-settings')};}"};
object3 = {code: "function NewContentPillTsx2(){const{showingPill}=this.__closure;return{pointerEvents:showingPill?'box-none':'none'};}"};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/NewContentPill.tsx');
object = {code: "function NewContentPillTsx1(){const{withSpring,showingPill,springConfig}=this.__closure;return{transform:[{translateY:withSpring(showingPill?12:0,springConfig)}],opacity:withSpring(showingPill?1:0,springConfig,'respect-motion-settings')};}"};
object = {code: "function NewContentPillTsx2(){const{showingPill}=this.__closure;return{pointerEvents:showingPill?'box-none':'none'};}"};
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/NewContentPill.tsx');
exports.default = NewContentPill;
}
function CutoutGuildIcon_112601({guild}) { // fn#112601, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15081:649, offset: 0x023d4326, size: 246 bytes, params: 2, frame: 24
const styles = useStyles();
const ClipView = importDefault(7599) /* metro dependency 7599: ClipView */;
const object = {'shape': null, 'x': 18, 'y': -4, 'width': 32, 'height': 32};
const CutoutShape = (require(7599) /* metro dependency 7599: ClipView */).CutoutShape;
const RoundedRect = CutoutShape.RoundedRect;
object.shape = RoundedRect;
object.cornerRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const items2 = [object];
const guildIcon = importDefault(6819) /* metro dependency 6819: GuildIcon */;
const GuildIconSizes = (require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes;
const XSMALL = GuildIconSizes.XSMALL;
return (
<View style={{'width': 24, 'height': 24}}>
<ClipView cutouts={items2}>
{((Component) => <Component guild={guild} size={XSMALL} style={styles.guildIconBG} />)(guildIcon)}
</ClipView>
</View>
);
}
function NewContentPill({onPress, isRefreshing}) { // fn#112602, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15081:1420, offset: 0x023d441c, size: 1419 bytes, params: 2, frame: 35
var r15;
var view;
var View2;
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
var isThemeDark2;
var unsafe_rawColors;
var items2;
var slice;
var value17;
var object;
var GuildIcon;
var View3;
var items4;
var Text;
var intl;
const styles = useStyles();
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([ICYMIStore], function() {
return ICYMIStore.getNewUnreadDehydratedItems();
});
const fluxModule = require(566) /* metro dependency 566: flux */;
let closure = function() {
return ICYMIStore.hasNewContent();
};
const value3 = fluxModule.useStateFromStores([ICYMIStore], closure, []);
const env0_3 = value3;
let binding = env0_4;
let useState = binding.useState;
const value4 = Reflect.apply(useState, binding, [value2]);
const binding2 = env0_3;
const value5 = binding2(value4, 2);
var property = value5[0];
var env0_4 = property;
const env0_5 = value5[1];
const value6 = (importDefault(4048) /* metro dependency 4048: useTheme */)();
const env0_6 = binding.useMemo(_fun112605, [property]);
const value7 = fluxModule.useStateFromStoresArray([GuildStore], _fun112607);
useState = binding.useState;
const value8 = binding2(Reflect.apply(useState, binding, [false]), 2);
property = value8[0];
const env0_7 = value8[1];
const r19 = value3 && property;
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
closure = NewContentPillY;
closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring, showingPill: r19,
springConfig: env0_12};
closure.__workletHash = 13655660855782;
closure.__initData = env0_13;
const value9 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
const moduleValue5 = reanimatedRexportModule;
const useAnimatedProps = moduleValue5.useAnimatedProps;
closure = NewContentPillC;
closure.__closure = {showingPill: r19};
closure.__workletHash = 876312391659;
closure.__initData = env0_14;
const value10 = Reflect.apply(useAnimatedProps, moduleValue5, [closure]);
const value11 = (require(1487) /* metro dependency 1487 */).useIsFocused();
binding = env0_4;
var [property, env0_11] = env0_3(binding.useState(false), 2);
binding.useLayoutEffect(_fun112611, [value3, value11, property]);
binding.useEffect(_fun112612, [isRefreshing, value2, value3]);
const value14 = binding.useCallback(function() {
onPress();
}, [onPress]);
let length = value7.length;
if (length === 0) {
View3 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
var view3Props = {style: [styles.refreshMorePillContainer, value9], animatedProps: value10};
var pressableOpacityProps = {onPress: value14, style: styles.container};
items4 = [((ArrowSmallUpIcon) => <ArrowSmallUpIcon size="md" color="interactive-text-active" />)((require(14278) /* metro dependency 14278: ArrowSmallUpIcon */).ArrowSmallUpIcon)];
Text = (require(4573) /* metro dependency 4573: Text */).Text;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items4[1] = <Text style={{marginLeft: 4}} variant="heading-md/bold" color="interactive-text-active">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['4Nl0Rl'])}</Text>;
view = <View3 {...view3Props}><PressableOpacity {...pressableOpacityProps}>{items4}</PressableOpacity></View3>;
} else {
View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
var view2Props = {style: [styles.refreshMorePillContainer, value9], animatedProps: value10};
var pressableOpacityProps = {onPress: value14, style: styles.container};
if (isRefreshing) {
isThemeDark2 = (require(4002) /* metro dependency 4002: shared */).isThemeDark(value6);
unsafe_rawColors = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors;
r15 = <ActivityIndicator color={isThemeDark2 ? unsafe_rawColors.WHITE : unsafe_rawColors.PRIMARY_500} />;
} else {
const ArrowSmallUpIcon = (require(14278) /* metro dependency 14278: ArrowSmallUpIcon */).ArrowSmallUpIcon;
r15 = <ArrowSmallUpIcon size="md" color="interactive-text-active" />;
}
items2 = [r15];
slice = value7.slice;
length = value7.length;
value17 = Reflect.apply(slice, value7, [0, length - 1]);
items2[1] = value17.map(_fun112614);
object = {};
length = value7.length;
object.style = {marginLeft: length > 1 ? -2 : 4};
GuildIcon = importDefault(6819) /* metro dependency 6819: GuildIcon */;
length = value7.length;
items2[2] = <View {...object}><GuildIcon guild={value7[length - 1]} size={(require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes.XSMALL} style={styles.guildIconBG} /></View>;
view = <View2 {...view2Props}><PressableOpacity {...pressableOpacityProps}>{items2}</PressableOpacity></View2>;
function CutoutGuildIcon_112601({guild}) { // fn#112601, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15081:649, offset: 0x023d4326, size: 246 bytes, params: 2, frame: 24
const styles = useStyles();
const object2 = {'shape': null, 'x': 18, 'y': -4, 'width': 32, 'height': 32};
const CutoutShape = (ClipViewModule).CutoutShape;
const RoundedRect = CutoutShape.RoundedRect;
object2.shape = RoundedRect;
object2.cornerRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const items2 = [object2];
const guildIcon = GuildIcon2;
const GuildIconSizes = (GuildIconModule).GuildIconSizes;
const XSMALL = GuildIconSizes.XSMALL;
return (
<View style={{'width': 24, 'height': 24}}>
<ClipView cutouts={items2}>
{((Component) => <Component guild={guild} size={XSMALL} style={styles.guildIconBG} />)(guildIcon)}
</ClipView>
</View>
);
}
return view;
}
function _fun112605() { // fn#112605, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15081:1691, offset: 0x023d49cf, size: 36 bytes, params: 1, frame: 12
env0_4.forEach(_fun112606);
return [];
}
function _fun112607() { // fn#112607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15081:1901, offset: 0x023d4a7f, size: 46 bytes, params: 1, frame: 11
const value = env0_6.map(function(a0) {
return GuildStore.getGuild(a0);
});
const filter = value.filter;
const Boolean = global.Boolean;
return Reflect.apply(filter, value, [Boolean]);
}
function NewContentPillY() { // fn#112609, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15081:2028, owner: NewContentPill.y, offset: 0x023d4ac4, size: 133 bytes, params: 1, frame: 21
const object2 = {};
const springModule = require(4577) /* metro dependency 4577: spring */;
const withSpring = springModule.withSpring;
const value3 = 0;
object2.transform = [{translateY: Reflect.apply(withSpring, springModule, [env0_8 ? 12 : value3, env1_12])}];
const moduleValue2 = springModule;
object2.opacity = moduleValue2.withSpring(env0_8 ? 1 : value3, env1_12, 'respect-motion-settings');
return object2;
}
function NewContentPillC() { // fn#112610, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15081:2320, owner: NewContentPill.C, offset: 0x023d4b49, size: 29 bytes, params: 1, frame: 3
return {pointerEvents: env0_8 ? 'box-none' : 'none'};
}
function _fun112611() { // fn#112611, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15081:2534, offset: 0x023d4b66, size: 93 bytes, params: 1, frame: 12
var r1;
if (env0_10) {
r1 = env0_10 && env0_9;
r1 = r1 && !env0_3;
if (r1) {
env0_7(true);
}
} else if (env0_9) {
if (env0_3) {
env0_7(false);
function NewContentPill({onPress, isRefreshing}) { // fn#112602, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15081:1420, offset: 0x023d441c, size: 1419 bytes, params: 2, frame: 35
var r15;
var view;
var View2;
const PressableOpacity = (PressablesModule).PressableOpacity;
var isThemeDark2;
var unsafe_rawColors;
var items2;
var slice;
var value17;
var object2;
var GuildIcon;
var View3;
var items4;
var Text;
var intl;
const styles = useStyles();
const useStateFromStoresArray = FluxModule.useStateFromStoresArray;
const icymiStoreBinding = ICYMIStore;
const value2 = Reflect.apply(useStateFromStoresArray, FluxModule, [[icymiStoreBinding], function() {
return ICYMIStore.getNewUnreadDehydratedItems();
}]);
let closure = function() {
return ICYMIStore.hasNewContent();
};
const value3 = FluxModule.useStateFromStores([icymiStoreBinding], closure, []);
const env0_3 = value3;
let binding = property2;
let useState = binding.useState;
const value4 = Reflect.apply(useState, binding, [value2]);
const binding2 = env0_3;
const value5 = binding2(value4, 2);
var property = value5[0];
var property2 = property;
const env0_5 = value5[1];
const value6 = (UseTheme)();
const env0_6 = binding.useMemo(_fun112605, [property]);
const value7 = FluxModule.useStateFromStoresArray([GuildStore], _fun112607);
useState = binding.useState;
const value8 = binding2(Reflect.apply(useState, binding, [false]), 2);
property = value8[0];
const env0_7 = value8[1];
const r19 = value3 && property;
const useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
closure = NewContentPillY;
closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring, showingPill: r19,
springConfig: env0_12};
closure.__workletHash = 13655660855782;
closure.__initData = env0_13;
const value9 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]);
const useAnimatedProps = ReanimatedRexportModule.useAnimatedProps;
closure = NewContentPillC;
closure.__closure = {showingPill: r19};
closure.__workletHash = 876312391659;
closure.__initData = env0_14;
const value10 = Reflect.apply(useAnimatedProps, ReanimatedRexportModule, [closure]);
const value11 = (Module01487Module).useIsFocused();
binding = property2;
var [property, env0_11] = env0_3(binding.useState(false), 2);
binding.useLayoutEffect(_fun112611, [value3, value11, property]);
binding.useEffect(_fun112612, [isRefreshing, value2, value3]);
const value14 = binding.useCallback(function() {
onPress();
}, [onPress]);
let length = value7.length;
if (length === 0) {
View3 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
var view3Props = {style: [styles.refreshMorePillContainer, value9], animatedProps: value10};
var pressableOpacityProps = {onPress: value14, style: styles.container};
const ArrowSmallUpIcon = (require(14278) /* metro dependency 14278: ArrowSmallUpIcon */).ArrowSmallUpIcon;
items4 = [
<ArrowSmallUpIcon size="md" color="interactive-text-active" />,
];
Text = (require(4573) /* metro dependency 4573: Text */).Text;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items4[1] = (
<Text
style={{marginLeft: 4}}
variant="heading-md/bold"
color="interactive-text-active"
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['4Nl0Rl'])}
</Text>
);
view = (
<View3 {...view3Props}>
<PressableOpacity {...pressableOpacityProps}>
{items4}
</PressableOpacity>
</View3>
);
} else {
r1 = env0_10 && env0_9;
r1 = r1 && !env0_3;
if (r1) {
env0_7(true);
View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
var view2Props = {style: [styles.refreshMorePillContainer, value9], animatedProps: value10};
var pressableOpacityProps = {onPress: value14, style: styles.container};
if (isRefreshing) {
isThemeDark2 = (require(4002) /* metro dependency 4002: shared */).isThemeDark(value6);
unsafe_rawColors = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors;
r15 = <ActivityIndicator color={isThemeDark2 ? unsafe_rawColors.WHITE : unsafe_rawColors.PRIMARY_500} />;
} else {
const ArrowSmallUpIcon2 = (require(14278) /* metro dependency 14278: ArrowSmallUpIcon */).ArrowSmallUpIcon;
r15 = <ArrowSmallUpIcon2 size="md" color="interactive-text-active" />;
}
items2 = [r15];
slice = value7.slice;
length = value7.length;
value17 = Reflect.apply(slice, value7, [0, length - 1]);
items2[1] = value17.map(_fun112614);
object2 = {};
length = value7.length;
object2.style = {marginLeft: length > 1 ? -2 : 4};
GuildIcon = importDefault(6819) /* metro dependency 6819: GuildIcon */;
length = value7.length;
items2[2] = (
<View {...object2}>
<GuildIcon
guild={value7[length - 1]}
size={(require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes.XSMALL}
style={styles.guildIconBG}
/>
</View>
);
view = (
<View2 {...view2Props}>
<PressableOpacity {...pressableOpacityProps}>
{items2}
</PressableOpacity>
</View2>
);
}
return view;
function _fun112605() { // fn#112605, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15081:1691, offset: 0x023d49cf, size: 36 bytes, params: 1, frame: 12
ReactModule.forEach(_fun112606);
return [];
function _fun112606(a0) { // fn#112606, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15081:1723, offset: 0x023d49f3, size: 140 bytes, params: 2, frame: 15
var r3;
var isGuildItem2;
var binding;
const length = env0_0.length;
const MIN_ITEMS_FOR_NEW_PILL = (ICYMITypesModule).MIN_ITEMS_FOR_NEW_PILL;
if (!(length >= MIN_ITEMS_FOR_NEW_PILL)) {
isGuildItem2 = (require(9579) /* metro dependency 9579: ICYMIUtils */).isGuildItem(a0);
if (isGuildItem2) {
binding = env0_0;
r3 = !binding.includes(a0.data.guild_id);
} else {
r3 = isGuildItem2;
}
if (r3) {
binding = env0_0;
binding.push(a0.data.guild_id);
}
}
}
}
function _fun112607() { // fn#112607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15081:1901, offset: 0x023d4a7f, size: 46 bytes, params: 1, frame: 11
const value = env0_6.map(function(a0) {
return GuildStore.getGuild(a0);
});
const filter = value.filter;
const Boolean = global.Boolean;
return Reflect.apply(filter, value, [Boolean]);
}
function NewContentPillY() { // fn#112609, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15081:2028, owner: NewContentPill.y, offset: 0x023d4ac4, size: 133 bytes, params: 1, frame: 21
const object = {};
const withSpring = SpringModule.withSpring;
const value3 = 0;
object.transform = [{translateY: Reflect.apply(withSpring, SpringModule, [env0_8 ? 12 : value3, env1_12])}];
object.opacity = SpringModule.withSpring(env0_8 ? 1 : value3, env1_12, 'respect-motion-settings');
return object;
}
function NewContentPillC() { // fn#112610, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15081:2320, owner: NewContentPill.C, offset: 0x023d4b49, size: 29 bytes, params: 1, frame: 3
return {pointerEvents: env0_8 ? 'box-none' : 'none'};
}
function _fun112611() { // fn#112611, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15081:2534, offset: 0x023d4b66, size: 93 bytes, params: 1, frame: 12
var r1;
if (env0_10) {
r1 = env0_10 && env0_9;
r1 = r1 && !env0_3;
if (r1) {
env0_7(true);
}
} else if (env0_9) {
if (env0_3) {
env0_7(false);
} else {
r1 = env0_10 && env0_9;
r1 = r1 && !env0_3;
if (r1) {
env0_7(true);
}
}
} else {
r1 = env0_10 && env0_9;
r1 = r1 && !env0_3;
if (r1) {
env0_7(true);
}
}
env0_11(env0_9);
}
function _fun112612() { // fn#112612, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15081:2599, offset: 0x023d4bc3, size: 29 bytes, params: 1, frame: 11
if (!isRefreshing) {
env0_5(env0_2);
}
}
} else {
r1 = env0_10 && env0_9;
r1 = r1 && !env0_3;
if (r1) {
env0_7(true);
}
}
env0_11(env0_9);
}
function _fun112612() { // fn#112612, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15081:2599, offset: 0x023d4bc3, size: 29 bytes, params: 1, frame: 11
if (!isRefreshing) {
env0_5(env0_2);
}
}
function _fun112614(a0, a1) { // fn#112614, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15081:3407, offset: 0x023d4be0, size: 88 bytes, params: 3, frame: 18
return (
<View style={{marginLeft: a1 > 0 ? -2 : 4}} key={a0.id}>
<CutoutGuildIcon_112601 guild={a0} />
</View>
);
}
function _fun112606(a0) { // fn#112606, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15081:1723, offset: 0x023d49f3, size: 140 bytes, params: 2, frame: 15
var r3;
var isGuildItem2;
var binding;
const length = env0_0.length;
const MIN_ITEMS_FOR_NEW_PILL = (require(7230) /* metro dependency 7230: ICYMITypes */).MIN_ITEMS_FOR_NEW_PILL;
if (!(length >= MIN_ITEMS_FOR_NEW_PILL)) {
isGuildItem2 = (require(9579) /* metro dependency 9579: ICYMIUtils */).isGuildItem(a0);
if (isGuildItem2) {
binding = env0_0;
r3 = !binding.includes(a0.data.guild_id);
} else {
r3 = isGuildItem2;
}
if (r3) {
binding = env0_0;
binding.push(a0.data.guild_id);
function _fun112614(a0, a1) { // fn#112614, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15081:3407, offset: 0x023d4be0, size: 88 bytes, params: 3, frame: 18
return (
<View style={{marginLeft: a1 > 0 ? -2 : 4}} key={a0.id}>
<CutoutGuildIcon_112601 guild={a0} />
</View>
);
}
}
}
global.__d(_fun112600, 14884, [57, 31, 27, 1867, 9569, 33, 4501, 697, 7599, 6819, 566, 4048, 7230, 9579, 4017, 4577,
1487, 5278, 14278, 4573, 1244, 4002,
2]) /* metro module 14884, dependencies: [57, 31, 27, 1867, 9569, 33, 4501, 697, 7599, 6819, 566, 4048, 7230, 9579, 4017, 4577, 1487, 5278, 14278, 4573, 1244, 4002, 2] */;
+88 -73
View File
@@ -1,83 +1,98 @@
/* Metro module 14872; source: modules/icymi/native/ReplyRow.tsx; dependencies: [31, 27, 33, 14815, 697, 5278, 4573, 7950, 2] */
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 TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as PressablesModule from '../../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */
import * as ReactionIconModule from '../../../design/components/Icon/native/redesign/generated/ReactionIcon.tsx'; /* Metro dependency 7950 */
import * as CreateICYMIStylesModule from './createICYMIStyles.tsx'; /* Metro dependency 14815 */
function _fun112519(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112519, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15069:6, offset: 0x023cee9e, size: 202 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const value = require(33) /* metro dependency 33 */;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
const env0_6 = (require(14815) /* metro dependency 14815: createICYMIStyles */).createICYMIStyles(_fun112520);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/ReplyRow.tsx');
ReactModule;
const env0_6 = (CreateICYMIStylesModule).createICYMIStyles(_fun112520);
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/ReplyRow.tsx');
exports.ContentInventoryReplyRow = ContentInventoryReplyRow;
}
function _fun112520(a0) { // fn#112520, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15069:175, offset: 0x023cef68, size: 515 bytes, params: 2, frame: 17
const object = {};
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object.separator = {height: 1, backgroundColor: BORDER_SUBTLE, marginBottom: a0.margin, width: '100%'};
const object3 = {'flex': 1, 'alignItems': 'center', 'justifyContent': 'center', 'flexDirection': 'row'};
object3.marginHorizontal = a0.margin;
object3.marginBottom = a0.margin;
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object3.gap = PX_12;
object.container = object3;
let PX_40 = (importDefault(697) /* metro dependency 697: native */).space.PX_40;
object.buttonContainer = {'flexGrow': 1, 'flexBasis': 0, height: PX_40};
const object5 = {'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'space-between'};
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object5.gap = PX_12;
PX_40 = (importDefault(697) /* metro dependency 697: native */).space.PX_40;
object5.height = PX_40;
object.feedbackContainer = object5;
object.icon = {'width': 20, 'height': 20};
const BUTTON_OUTLINE_PRIMARY_TEXT = (importDefault(697) /* metro dependency 697: native */).colors.BUTTON_OUTLINE_PRIMARY_TEXT;
object.feedbackButtonIcon = {tintColor: BUTTON_OUTLINE_PRIMARY_TEXT};
const object7 = {flex: 1};
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object.input = object7;
const REDESIGN_CHAT_INPUT_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.REDESIGN_CHAT_INPUT_BACKGROUND;
object.contentInventoryPressable = {'borderRadius': 20, 'width': '100%', 'minHeight': 40, 'backgroundColor': null,
'justifyContent': 'center', backgroundColor: REDESIGN_CHAT_INPUT_BACKGROUND};
const object9 = {'marginLeft': null, 'marginRight': 10, 'paddingVertical': null, 'flexDirection': 'row',
'alignItems': 'center'};
object9.marginLeft = a0.margin;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object9.paddingVertical = PX_8;
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object9.gap = PX_4;
object.contentInventoryContainer = object9;
object.contentInventoryText = {flexShrink: 1};
object.replyContainer = {'flexDirection': 'row', 'alignItems': 'center', marginLeft: a0.inset, marginTop: a0.margin};
return object;
}
function _fun112520(a0) { // fn#112520, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15069:175, offset: 0x023cef68, size: 515 bytes, params: 2, frame: 17
const object2 = {};
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object2.separator = {height: 1, backgroundColor: BORDER_SUBTLE, marginBottom: a0.margin, width: '100%'};
const object4 = {'flex': 1, 'alignItems': 'center', 'justifyContent': 'center', 'flexDirection': 'row'};
object4.marginHorizontal = a0.margin;
object4.marginBottom = a0.margin;
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object4.gap = PX_12;
object2.container = object4;
let PX_40 = (importDefault(697) /* metro dependency 697: native */).space.PX_40;
object2.buttonContainer = {'flexGrow': 1, 'flexBasis': 0, height: PX_40};
const object6 = {'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'space-between'};
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object6.gap = PX_12;
PX_40 = (importDefault(697) /* metro dependency 697: native */).space.PX_40;
object6.height = PX_40;
object2.feedbackContainer = object6;
object2.icon = {'width': 20, 'height': 20};
const BUTTON_OUTLINE_PRIMARY_TEXT = (importDefault(697) /* metro dependency 697: native */).colors.BUTTON_OUTLINE_PRIMARY_TEXT;
object2.feedbackButtonIcon = {tintColor: BUTTON_OUTLINE_PRIMARY_TEXT};
const object8 = {flex: 1};
object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object2.input = object8;
const REDESIGN_CHAT_INPUT_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.REDESIGN_CHAT_INPUT_BACKGROUND;
object2.contentInventoryPressable = {'borderRadius': 20, 'width': '100%', 'minHeight': 40, 'backgroundColor': null,
'justifyContent': 'center', backgroundColor: REDESIGN_CHAT_INPUT_BACKGROUND};
const object10 = {'marginLeft': null, 'marginRight': 10, 'paddingVertical': null, 'flexDirection': 'row',
'alignItems': 'center'};
object10.marginLeft = a0.margin;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object10.paddingVertical = PX_8;
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object10.gap = PX_4;
object2.contentInventoryContainer = object10;
object2.contentInventoryText = {flexShrink: 1};
object2.replyContainer = {'flexDirection': 'row', 'alignItems': 'center', marginLeft: a0.inset,
marginTop: a0.margin};
return object2;
}
function ContentInventoryReplyRow({reactText, onReply}) { // fn#112521, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15069:1340, offset: 0x023cf16b, size: 267 bytes, params: 2, frame: 24
const value2 = env0_6();
const replyContainer = value2.replyContainer;
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
const contentInventoryPressable = value2.contentInventoryPressable;
const contentInventoryContainer = value2.contentInventoryContainer;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const text = <Text variant="text-md/medium" color="input-placeholder-text-default" lineClamp={1} style={value2.contentInventoryText}>{reactText}</Text>;
const ReactionIcon = (require(7950) /* metro dependency 7950: ReactionIcon */).ReactionIcon;
return (
<View style={replyContainer}>
<PressableOpacity
accessibilityRole="button"
onPress={onReply}
style={contentInventoryPressable}
accessibilityLabel={reactText}
pointerEvents="box-only"
function ContentInventoryReplyRow({reactText, onReply}) { // fn#112521, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15069:1340, offset: 0x023cf16b, size: 267 bytes, params: 2, frame: 24
const value2 = env0_6();
const replyContainer = value2.replyContainer;
const PressableOpacity = (PressablesModule).PressableOpacity;
const contentInventoryPressable = value2.contentInventoryPressable;
const contentInventoryContainer = value2.contentInventoryContainer;
const Text = (TextModule).Text;
const text = (
<Text
variant="text-md/medium"
color="input-placeholder-text-default"
lineClamp={1}
style={value2.contentInventoryText}
>
<View style={contentInventoryContainer}>
{text}
<ReactionIcon style={value2.icon} size="custom" />
</View>
</PressableOpacity>
</View>
);
{reactText}
</Text>
);
const ReactionIcon = (ReactionIconModule).ReactionIcon;
return (
<View style={replyContainer}>
<PressableOpacity
accessibilityRole="button"
onPress={onReply}
style={contentInventoryPressable}
accessibilityLabel={reactText}
pointerEvents="box-only"
>
<View style={contentInventoryContainer}>
{text}
<ReactionIcon style={value2.icon} size="custom" />
</View>
</PressableOpacity>
</View>
);
}
}
global.__d(_fun112519, 14872, [31, 27, 33, 14815, 697, 5278, 4573, 7950,
2]) /* metro module 14872, dependencies: [31, 27, 33, 14815, 697, 5278, 4573, 7950, 2] */;
+20 -15
View File
@@ -1,23 +1,28 @@
/* Metro module 14875; source: modules/icymi/native/SeparatorDot.tsx; dependencies: [31, 27, 33, 4501, 697, 2] */
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 CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
function _fun112535(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112535, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15072:6, offset: 0x023d066b, size: 240 bytes, params: 8, frame: 22
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_0 = (require(27) /* metro dependency 27 */).View;
const env0_1 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const object = {'width': 4, 'height': 4};
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
ReactModule;
const createStyles = CreateStylesModule.createStyles;
const object2 = {'width': 4, 'height': 4};
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
const BACKGROUND_MOD_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_STRONG;
object.backgroundColor = BACKGROUND_MOD_STRONG;
const env0_2 = Reflect.apply(createStyles, createStylesModule, [{separatorDot: object}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/SeparatorDot.tsx');
object2.backgroundColor = BACKGROUND_MOD_STRONG;
const env0_2 = Reflect.apply(createStyles, CreateStylesModule, [{separatorDot: object2}]);
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/SeparatorDot.tsx');
exports.default = SeparatorDot;
function SeparatorDot() { // fn#112536, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15072:358, offset: 0x023d075b, size: 49 bytes, params: 1, frame: 15
const styles = useStyles();
return <View style={[styles.separatorDot]} />;
}
}
function SeparatorDot() { // fn#112536, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15072:358, offset: 0x023d075b, size: 49 bytes, params: 1, frame: 15
const styles = useStyles();
return <View style={[styles.separatorDot]} />;
}
global.__d(_fun112535, 14875, [31, 27, 33, 4501, 697,
2]) /* metro module 14875, dependencies: [31, 27, 33, 4501, 697, 2] */;
@@ -1,34 +1,46 @@
/* Metro module 10226; source: modules/icymi/native/content_inventory/Badges.tsx; dependencies: [31, 27, 1949, 33, 4501, 697, 10224, 8375, 4573, 566, 8658, 10227, 10229, 1244, 10231, 10233, 9311, 10234, 8653, 672, 2] */
import Durations from '../../../../utils/Durations.tsx'; /* Metro dependency 672 */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import LocaleStore from '../../../user_settings/LocaleStore.tsx'; /* Metro dependency 1949 */
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 FluxModule from '../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as UtilsModule from '../../../content_inventory/utils.tsx'; /* Metro dependency 8375 */
import * as TrophyIconModule from '../../../../design/components/Icon/native/redesign/generated/TrophyIcon.tsx'; /* Metro dependency 8653 */
import * as GameControllerIconModule from '../../../../design/components/Icon/native/redesign/generated/GameControllerIcon.tsx'; /* Metro dependency 8658 */
import * as UseTimestampTickedNowModule from '../../../content_inventory/memberlist/useTimestampTickedNow.tsx'; /* Metro dependency 10224 */
import * as TimerIconModule from '../../../../design/components/Icon/native/redesign/generated/TimerIcon.tsx'; /* Metro dependency 10227 */
function _fun79527(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79527, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10412:6, offset: 0x01e56770, size: 505 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 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const localeStore = importDefault(1949) /* metro dependency 1949: LocaleStore */;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_6 = value.jsx;
const env0_7 = value.jsxs;
const env0_8 = value.Fragment;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object3 = {icon: {'width': 16, 'height': 16}};
const object4 = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', 'gap': 4,
object = {icon: {'width': 16, 'height': 16}};
const object2 = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', 'gap': 4,
'backgroundColor': 'rgba(255, 255, 255, 0.08)', 'paddingVertical': null, 'paddingLeft': null,
'paddingRight': 10};
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object4.paddingVertical = PX_4;
object2.paddingVertical = PX_4;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object4.paddingLeft = PX_8;
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object3.badgeContainer = object4;
object2.paddingLeft = PX_8;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object.badgeContainer = object2;
const CONTENT_INVENTORY_OVERLAY_TEXT_SECONDARY = (importDefault(697) /* metro dependency 697: native */).colors.CONTENT_INVENTORY_OVERLAY_TEXT_SECONDARY;
object3.text = {color: CONTENT_INVENTORY_OVERLAY_TEXT_SECONDARY};
const env0_9 = Reflect.apply(createStyles, value, [object3]);
const closure = ActiveTimestamp;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/content_inventory/Badges.tsx');
exports.ActiveTimestamp = closure;
object.text = {color: CONTENT_INVENTORY_OVERLAY_TEXT_SECONDARY};
const env0_9 = Reflect.apply(createStyles, value, [object]);
const ActiveTimestamp2 = ActiveTimestamp;
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/content_inventory/Badges.tsx');
exports.ActiveTimestamp = ActiveTimestamp2;
exports.GameTimestampBadge = GameTimestampBadge;
exports.MarathonBadge = MarathonBadge;
exports.NewGameBadge = NewGameBadge;
@@ -37,208 +49,227 @@ function _fun79527(global, require, importDefault, importAll, module, exports, d
exports.ResurrectedBadge = ResurrectedBadge;
exports.TopGameBadge = TopGameBadge;
exports.CustomStatusTimestampBadge = CustomStatusTimestampBadge;
}
function ContentTimestamp({entry}) { // fn#79528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10412:785, offset: 0x01e56969, size: 202 bytes, params: 2, frame: 21
var r0;
var Text;
var value;
const styles = useStyles();
const isEntryActive2 = (require(8375) /* metro dependency 8375: utils */).isEntryActive(entry);
const fluxModule = require(566) /* metro dependency 566: flux */;
const useStateFromStores = fluxModule.useStateFromStores;
if (isEntryActive2) {
r0 = <ActiveTimestamp entry={entry} />;
} else {
Text = (require(4573) /* metro dependency 4573: Text */).Text;
var textProps = {variant: 'text-sm/medium', style: styles.text};
value = require(8375) /* metro dependency 8375: utils */;
value = <Text {...textProps}>{value.formatEndedTimestamp(entry, Reflect.apply(useStateFromStores, fluxModule,
[[LocaleStore], function() {
return LocaleStore.locale;
}]))}</Text>;
r0 = value;
function ContentTimestamp({entry}) { // fn#79528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10412:785, offset: 0x01e56969, size: 202 bytes, params: 2, frame: 21
var r0;
var Text;
var value;
const styles = useStyles();
const isEntryActive2 = (require(8375) /* metro dependency 8375: utils */).isEntryActive(entry);
const useStateFromStores = FluxModule.useStateFromStores;
if (isEntryActive2) {
r0 = <ActiveTimestamp entry={entry} />;
} else {
Text = (require(4573) /* metro dependency 4573: Text */).Text;
var textProps = {variant: 'text-sm/medium', style: styles.text};
value = require(8375) /* metro dependency 8375: utils */;
value = (
<Text {...textProps}>
{value.formatEndedTimestamp(entry, Reflect.apply(useStateFromStores, FluxModule, [[LocaleStore],
function() {
return LocaleStore.locale;
}]))}
</Text>
);
r0 = value;
}
return r0;
}
return r0;
}
function BaseBadge({Icon, iconColor, text}) { // fn#79530, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10412:1045, offset: 0x01e56a33, size: 161 bytes, params: 2, frame: 21
const styles = useStyles();
const icon = <Icon style={styles.icon} color={iconColor} />;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<View style={styles.badgeContainer}>
{icon}
<Text variant="text-sm/medium" style={styles.text}>
{text}
function BaseBadge({Icon, iconColor, text}) { // fn#79530, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10412:1045, offset: 0x01e56a33, size: 161 bytes, params: 2, frame: 21
const styles = useStyles();
const icon = <Icon style={styles.icon} color={iconColor} />;
const Text = (TextModule).Text;
return (
<View style={styles.badgeContainer}>
{icon}
<Text variant="text-sm/medium" style={styles.text}>
{text}
</Text>
</View>
);
}
function ActiveTimestamp({entry, style}) { // fn#79531, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10412:542, offset: 0x01e56ad4, size: 151 bytes, params: 2, frame: 20
const useTimestampTickedNow = UseTimestampTickedNowModule.useTimestampTickedNow;
const value2 = ReactModule.useMemo(_fun79532, [entry, Reflect.apply(useTimestampTickedNow, UseTimestampTickedNowModule,
[]).now]);
const Text = (TextModule).Text;
return (
<Text
style={style}
variant="text-sm/medium"
tabularNumbers
color="text-feedback-positive"
>
{value2}
</Text>
</View>
);
}
);
function _fun79532() { // fn#79532, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10412:619, offset: 0x01e56b6b, size: 50 bytes, params: 1, frame: 13
let value = environment.__proto__;
value = require(8375) /* metro dependency 8375: utils */;
return value.formatActiveTimestamp(entry, now);
}
function ActiveTimestamp({entry, style}) { // fn#79531, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10412:542, offset: 0x01e56ad4, size: 151 bytes, params: 2, frame: 20
const useTimestampTickedNowModule = require(10224) /* metro dependency 10224: useTimestampTickedNow */;
const useTimestampTickedNow = useTimestampTickedNowModule.useTimestampTickedNow;
const value2 = env0_3.useMemo(_fun79532, [entry, Reflect.apply(useTimestampTickedNow, useTimestampTickedNowModule,
[]).now]);
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<Text
style={style}
variant="text-sm/medium"
tabularNumbers
color="text-feedback-positive"
>
{value2}
</Text>
);
}
function GameTimestampBadge({entry}) { // fn#79533, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10412:1385, offset: 0x01e56b9d, size: 211 bytes, params: 2, frame: 21
const styles = useStyles();
const isEntryActive2 = (require(8375) /* metro dependency 8375: utils */).isEntryActive(entry);
const colors = (importDefault(697) /* metro dependency 697: native */).colors;
const r9 = isEntryActive2 ? colors.STATUS_POSITIVE : colors.CONTENT_INVENTORY_OVERLAY_TEXT_SECONDARY;
const GameControllerIcon = (require(8658) /* metro dependency 8658: GameControllerIcon */).GameControllerIcon;
return (
<View style={styles.badgeContainer}>
<GameControllerIcon style={styles.icon} color={r9} />
<ContentTimestamp entry={entry} />
</View>
);
}
function MarathonBadge({entry}) { // fn#79534, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10412:1697, offset: 0x01e56c70, size: 221 bytes, params: 2, frame: 19
var r6;
var isEntryActive2;
var colors;
var moduleValue3;
var text;
var value2;
const utilsModule = require(8375) /* metro dependency 8375: utils */;
if (utilsModule.isEntryMarathon(entry)) {
isEntryActive2 = utilsModule.isEntryActive(entry);
colors = (importDefault(697) /* metro dependency 697: native */).colors;
r6 = isEntryActive2 ? colors.STATUS_POSITIVE : colors.CONTENT_INVENTORY_OVERLAY_TEXT_SECONDARY;
moduleValue3 = require(8375) /* metro dependency 8375: utils */;
text = moduleValue3.getMarathonDescription(entry).text;
value2 = null;
return value2 == text ? value2 : <BaseBadge Icon={(require(10227) /* metro dependency 10227: TimerIcon */).TimerIcon} iconColor={r6} text={text} />;
}
return null;
}
function NewGameBadge({entry}) { // fn#79535, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10412:2027, offset: 0x01e56d4d, size: 186 bytes, params: 2, frame: 20
var r0;
var object;
var intl;
if ((require(8375) /* metro dependency 8375: utils */).isEntryNew(entry)) {
var baseBadgeProps = {Icon: (require(10229) /* metro dependency 10229: NewUserIcon */).NewUserIcon};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
baseBadgeProps.text = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.keY6mW);
baseBadgeProps.iconColor = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_POSITIVE;
r0 = <BaseBadge {...baseBadgeProps} />;
} else {
r0 = null;
function GameTimestampBadge({entry}) { // fn#79533, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10412:1385, offset: 0x01e56b9d, size: 211 bytes, params: 2, frame: 21
const styles = useStyles();
const isEntryActive2 = (UtilsModule).isEntryActive(entry);
const colors = (Native).colors;
const r9 = isEntryActive2 ? colors.STATUS_POSITIVE : colors.CONTENT_INVENTORY_OVERLAY_TEXT_SECONDARY;
const GameControllerIcon = (GameControllerIconModule).GameControllerIcon;
return (
<View style={styles.badgeContainer}>
<GameControllerIcon style={styles.icon} color={r9} />
<ContentTimestamp entry={entry} />
</View>
);
}
return r0;
}
function StreakBadge({entry}) { // fn#79536, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10412:2236, offset: 0x01e56e07, size: 215 bytes, params: 2, frame: 21
var r0;
var object;
var intl;
const streakCount = (require(8375) /* metro dependency 8375: utils */).getStreakCount(entry);
if (streakCount == null) {
r0 = null;
} else if (streakCount < 2) {
r0 = null;
} else {
var baseBadgeProps = {Icon: (require(10231) /* metro dependency 10231: FlashIcon */).FlashIcon};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
baseBadgeProps.text = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['Klie/P'],
{days: streakCount});
baseBadgeProps.iconColor = (importDefault(697) /* metro dependency 697: native */).colors.CONTENT_INVENTORY_OVERLAY_TEXT_SECONDARY;
r0 = <BaseBadge {...baseBadgeProps} />;
}
return r0;
}
function TrendingBadge({entry}) { // fn#79537, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10412:2517, offset: 0x01e56ede, size: 231 bytes, params: 2, frame: 20
var r0;
var object;
var intl;
const trendingType = (require(8375) /* metro dependency 8375: utils */).getTrendingType(entry);
if (trendingType == null) {
r0 = null;
} else if (trendingType === (require(10233) /* metro dependency 10233: TrendingType */).TrendingType.TRENDING_TYPE_UNSPECIFIED) {
r0 = null;
} else {
var baseBadgeProps = {Icon: (require(9311) /* metro dependency 9311: FireIcon */).FireIcon};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
baseBadgeProps.text = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.TsWCdW);
baseBadgeProps.iconColor = (importDefault(697) /* metro dependency 697: native */).colors.CONTENT_INVENTORY_OVERLAY_TEXT_SECONDARY;
r0 = <BaseBadge {...baseBadgeProps} />;
}
return r0;
}
function ResurrectedBadge({entry}) { // fn#79538, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10412:2826, offset: 0x01e56fc5, size: 190 bytes, params: 2, frame: 20
var r0;
var object;
var intl;
if ((require(8375) /* metro dependency 8375: utils */).getResurrectedEntryLastPlayTime(entry) == null) {
r0 = null;
} else {
var baseBadgeProps = {Icon: (require(10234) /* metro dependency 10234: RetryIcon */).RetryIcon};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
baseBadgeProps.text = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.adnLsB);
baseBadgeProps.iconColor = (importDefault(697) /* metro dependency 697: native */).colors.CONTENT_INVENTORY_OVERLAY_TEXT_SECONDARY;
r0 = <BaseBadge {...baseBadgeProps} />;
}
return r0;
}
function TopGameBadge(a0) { // fn#79539, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10412:3090, offset: 0x01e57083, size: 329 bytes, params: 2, frame: 28
const entryDuration = (require(8375) /* metro dependency 8375: utils */).getEntryDuration(a0.entry);
if (entryDuration == null) {
function MarathonBadge({entry}) { // fn#79534, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10412:1697, offset: 0x01e56c70, size: 221 bytes, params: 2, frame: 19
var r6;
var isEntryActive2;
var colors;
var moduleValue3;
var text;
var value2;
const utilsModule = require(8375) /* metro dependency 8375: utils */;
if (utilsModule.isEntryMarathon(entry)) {
isEntryActive2 = utilsModule.isEntryActive(entry);
colors = (importDefault(697) /* metro dependency 697: native */).colors;
r6 = isEntryActive2 ? colors.STATUS_POSITIVE : colors.CONTENT_INVENTORY_OVERLAY_TEXT_SECONDARY;
moduleValue3 = require(8375) /* metro dependency 8375: utils */;
text = moduleValue3.getMarathonDescription(entry).text;
value2 = null;
return (
value2 == text
? value2
: (
<BaseBadge
Icon={(require(10227) /* metro dependency 10227: TimerIcon */).TimerIcon}
iconColor={r6}
text={text}
/>
)
);
}
return null;
}
const SDRHgr = (require(1244) /* metro dependency 1244: indexNative */).t.SDRHgr;
const object2 = {};
const TrophyIcon = (require(8653) /* metro dependency 8653: TrophyIcon */).TrophyIcon;
object2.Icon = TrophyIcon;
const jsxRuntimeEnv0_8Binding = jsxRuntimeEnv0_8;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const items2 = [intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/50eHi']), ': '];
const format = intl.format;
const Math = global.Math;
const round = Math.round;
const Seconds = (importDefault(672) /* metro dependency 672: Durations */).Seconds;
const HOUR = Seconds.HOUR;
items2[2] = Reflect.apply(format, intl, [SDRHgr, {hours: Reflect.apply(round, Math, [entryDuration / HOUR])}]);
object2.text = <>{items2}</>;
const CONTENT_INVENTORY_OVERLAY_TEXT_SECONDARY = (importDefault(697) /* metro dependency 697: native */).colors.CONTENT_INVENTORY_OVERLAY_TEXT_SECONDARY;
object2.iconColor = CONTENT_INVENTORY_OVERLAY_TEXT_SECONDARY;
return <BaseBadge {...object2} />;
}
function CustomStatusTimestampBadge({entry}) { // fn#79540, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10412:3486, offset: 0x01e571cc, size: 165 bytes, params: 2, frame: 21
const styles = useStyles();
const TimerIcon = (require(10227) /* metro dependency 10227: TimerIcon */).TimerIcon;
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
return (
<View style={styles.badgeContainer}>
<TimerIcon style={styles.icon} color={INTERACTIVE_TEXT_DEFAULT} />
<ContentTimestamp entry={entry} />
</View>
);
}
function NewGameBadge({entry}) { // fn#79535, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10412:2027, offset: 0x01e56d4d, size: 186 bytes, params: 2, frame: 20
var r0;
var object2;
var intl;
if ((require(8375) /* metro dependency 8375: utils */).isEntryNew(entry)) {
var baseBadgeProps = {Icon: (require(10229) /* metro dependency 10229: NewUserIcon */).NewUserIcon};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
baseBadgeProps.text = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.keY6mW);
baseBadgeProps.iconColor = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_POSITIVE;
r0 = <BaseBadge {...baseBadgeProps} />;
} else {
r0 = null;
}
return r0;
}
function StreakBadge({entry}) { // fn#79536, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10412:2236, offset: 0x01e56e07, size: 215 bytes, params: 2, frame: 21
var r0;
var object2;
var intl;
const streakCount = (UtilsModule).getStreakCount(entry);
if (streakCount == null) {
r0 = null;
} else if (streakCount < 2) {
r0 = null;
} else {
var baseBadgeProps = {Icon: (require(10231) /* metro dependency 10231: FlashIcon */).FlashIcon};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
baseBadgeProps.text = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['Klie/P'],
{days: streakCount});
baseBadgeProps.iconColor = (importDefault(697) /* metro dependency 697: native */).colors.CONTENT_INVENTORY_OVERLAY_TEXT_SECONDARY;
r0 = <BaseBadge {...baseBadgeProps} />;
}
return r0;
}
function TrendingBadge({entry}) { // fn#79537, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10412:2517, offset: 0x01e56ede, size: 231 bytes, params: 2, frame: 20
var r0;
var object2;
var intl;
const trendingType = (UtilsModule).getTrendingType(entry);
if (trendingType == null) {
r0 = null;
} else if (trendingType === (require(10233) /* metro dependency 10233: TrendingType */).TrendingType.TRENDING_TYPE_UNSPECIFIED) {
r0 = null;
} else {
var baseBadgeProps = {Icon: (require(9311) /* metro dependency 9311: FireIcon */).FireIcon};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
baseBadgeProps.text = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.TsWCdW);
baseBadgeProps.iconColor = (importDefault(697) /* metro dependency 697: native */).colors.CONTENT_INVENTORY_OVERLAY_TEXT_SECONDARY;
r0 = <BaseBadge {...baseBadgeProps} />;
}
return r0;
}
function ResurrectedBadge({entry}) { // fn#79538, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10412:2826, offset: 0x01e56fc5, size: 190 bytes, params: 2, frame: 20
var r0;
var object2;
var intl;
if ((require(8375) /* metro dependency 8375: utils */).getResurrectedEntryLastPlayTime(entry) == null) {
r0 = null;
} else {
var baseBadgeProps = {Icon: (require(10234) /* metro dependency 10234: RetryIcon */).RetryIcon};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
baseBadgeProps.text = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.adnLsB);
baseBadgeProps.iconColor = (importDefault(697) /* metro dependency 697: native */).colors.CONTENT_INVENTORY_OVERLAY_TEXT_SECONDARY;
r0 = <BaseBadge {...baseBadgeProps} />;
}
return r0;
}
function TopGameBadge(a0) { // fn#79539, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10412:3090, offset: 0x01e57083, size: 329 bytes, params: 2, frame: 28
const entryDuration = (UtilsModule).getEntryDuration(a0.entry);
if (entryDuration == null) {
return null;
}
const SDRHgr = (IndexNativeModule).t.SDRHgr;
const object = {};
const TrophyIcon = (TrophyIconModule).TrophyIcon;
object.Icon = TrophyIcon;
const jsxRuntimeEnv0_8Binding = jsxRuntimeEnv0_8;
const intl = (IndexNativeModule).intl;
const items2 = [intl.string((IndexNativeModule).t['/50eHi']), ': '];
const format = intl.format;
const Math = global.Math;
const round = Math.round;
const Seconds = (Durations).Seconds;
const HOUR = Seconds.HOUR;
items2[2] = Reflect.apply(format, intl, [SDRHgr, {hours: Reflect.apply(round, Math, [entryDuration / HOUR])}]);
object.text = (
<>
{items2}
</>
);
const CONTENT_INVENTORY_OVERLAY_TEXT_SECONDARY = (Native).colors.CONTENT_INVENTORY_OVERLAY_TEXT_SECONDARY;
object.iconColor = CONTENT_INVENTORY_OVERLAY_TEXT_SECONDARY;
return <BaseBadge {...object} />;
}
function CustomStatusTimestampBadge({entry}) { // fn#79540, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10412:3486, offset: 0x01e571cc, size: 165 bytes, params: 2, frame: 21
const styles = useStyles();
const TimerIcon = (TimerIconModule).TimerIcon;
const INTERACTIVE_TEXT_DEFAULT = (Native).colors.INTERACTIVE_TEXT_DEFAULT;
return (
<View style={styles.badgeContainer}>
<TimerIcon style={styles.icon} color={INTERACTIVE_TEXT_DEFAULT} />
<ContentTimestamp entry={entry} />
</View>
);
}
function _fun79532() { // fn#79532, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10412:619, offset: 0x01e56b6b, size: 50 bytes, params: 1, frame: 13
let value = environment.__proto__;
value = require(8375) /* metro dependency 8375: utils */;
return value.formatActiveTimestamp(entry, now);
}
global.__d(_fun79527, 10226, [31, 27, 1949, 33, 4501, 697, 10224, 8375, 4573, 566, 8658, 10227, 10229, 1244, 10231,
10233, 9311, 10234, 8653, 672,
2]) /* metro module 10226, dependencies: [31, 27, 1949, 33, 4501, 697, 10224, 8375, 4573, 566, 8658, 10227, 10229, 1244, 10231, 10233, 9311, 10234, 8653, 672, 2] */;
@@ -1,114 +1,152 @@
/* Metro module 14871; source: modules/icymi/native/content_inventory/ContentInventoryEntryContainer.tsx; dependencies: [31, 27, 1878, 33, 14815, 697, 477, 9580, 8743, 566, 5278, 14854, 1305, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UserStore from '../../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
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 PlatformUtilsModule from '../../../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */
function _fun112514(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112514, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15068:6, offset: 0x023ce937, size: 228 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_6 = value.jsx;
const env0_7 = value.jsxs;
value = require(14815) /* metro dependency 14815: createICYMIStyles */;
value = value.createICYMIStyles(_fun112515);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/content_inventory/ContentInventoryEntryContainer.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/content_inventory/ContentInventoryEntryContainer.tsx');
exports.default = ContentInventoryEntryContainer;
exports.useStyles = value;
}
function _fun112515(a0, a1) { // fn#112515, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15068:187, offset: 0x023cea1b, size: 289 bytes, params: 3, frame: 17
const object2 = {};
const value = 0;
object2.pressable = {marginTop: a1 ? value : a0.margin};
object2.container = {marginHorizontal: a0.margin, paddingBottom: a1 ? value : a0.margin,
paddingTop: a1 ? a0.margin : value};
object2.screenshotContainer = {marginBottom: a0.margin};
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object2.header = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', gap: PX_12,
marginBottom: a0.margin};
const value2 = 1;
object2.headerInfo = {flex: value2};
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
object2.title = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', 'gap': 6, 'marginBottom': null,
'marginTop': 2, marginBottom: platformUtilsModule.isAndroid() ? -1 : value2};
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.subTitleContainer = {'flexDirection': 'row', 'alignItems': 'center', gap: PX_8};
return object2;
}
function ContentInventoryEntryContainer({contentId, userId, children, renderForScreenshot, title, subtitle, type, highlight, onPress}) { // fn#112516, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15068:818, offset: 0x023ceb3c, size: 576 bytes, params: 2, frame: 35
var r0;
var PressableHighlight;
var SimplePost;
var object;
var object3;
var items2;
renderForScreenshot = !(renderForScreenshot === undefined) && renderForScreenshot;
highlight = !(highlight === undefined) && highlight;
const env0_3 = onPress;
var value;
const value2 = env0_8(renderForScreenshot);
const value3 = env0_3.useCallback(_fun112517, [contentId, type, userId, onPress]);
const user = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getUser(userId);
});
if (user == null) {
r0 = null;
} else {
PressableHighlight = (require(5278) /* metro dependency 5278: Pressables */).PressableHighlight;
var pressableHighlightProps2 = {'unstable_pressDelay': 130, 'onPress': null, 'accessibilityRole': 'button',
onPress: value3, style: value2.pressable};
SimplePost = (require(14854) /* metro dependency 14854: ICYMIShared */).SimplePost;
object = {hideDivider: renderForScreenshot, highlight: highlight};
var viewProps = {style: [value2.container, renderForScreenshot && value2.screenshotContainer]};
var viewBinding2Props = {style: value2.header};
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
value = <Avatar animate size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.NORMAL} user={user} guildId={undefined} key={user.id} />;
items2 = [value];
var viewBinding2Props2 = {style: value2.headerInfo};
value = <View style={value2.title}>{title}</View>;
items2[1] = <View {...viewBinding2Props2}>{value}<View style={value2.subTitleContainer}>{subtitle}</View></View>;
value = <View {...viewBinding2Props}>{items2}</View>;
value = <PressableHighlight {...pressableHighlightProps2}><SimplePost {...object}><View {...viewProps}>{value}{children}</View></SimplePost></PressableHighlight>;
r0 = value;
function _fun112515(a0, a1) { // fn#112515, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15068:187, offset: 0x023cea1b, size: 289 bytes, params: 3, frame: 17
const object = {};
const value = 0;
object.pressable = {marginTop: a1 ? value : a0.margin};
object.container = {marginHorizontal: a0.margin, paddingBottom: a1 ? value : a0.margin,
paddingTop: a1 ? a0.margin : value};
object.screenshotContainer = {marginBottom: a0.margin};
const PX_12 = (Native).space.PX_12;
object.header = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', gap: PX_12,
marginBottom: a0.margin};
const value2 = 1;
object.headerInfo = {flex: value2};
object.title = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', 'gap': 6, 'marginBottom': null,
'marginTop': 2, marginBottom: PlatformUtilsModule.isAndroid() ? -1 : value2};
const PX_8 = (Native).space.PX_8;
object.subTitleContainer = {'flexDirection': 'row', 'alignItems': 'center', gap: PX_8};
return object;
}
return r0;
}
function _fun112517() { // fn#112517, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15068:997, offset: 0x023ced7c, size: 263 bytes, params: 1, frame: 20
var value2;
var defaultImport;
var itemInteracted;
var contentIdBinding;
var typeBinding;
var value3;
var defaultImport4;
var defaultImport5;
if (onPress != null) {
value3 = environment.__proto__;
defaultImport4 = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
itemInteracted = defaultImport4.itemInteracted;
contentIdBinding = contentId;
typeBinding = type;
Reflect.apply(itemInteracted, defaultImport4, [contentIdBinding, typeBinding, 'press']);
defaultImport5 = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
defaultImport5.feedItemActioned({itemId: contentIdBinding, itemType: typeBinding,
actionParameters: {'actionGestureType': 'press', 'actionTargetElement': 'item_container',
'actionIntentType': 'open', 'actionDestinationType': null}});
onPress();
} else {
value2 = environment.__proto__;
defaultImport = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
itemInteracted = defaultImport.itemInteracted;
contentIdBinding = contentId;
typeBinding = type;
Reflect.apply(itemInteracted, defaultImport, [contentIdBinding, typeBinding, 'open_profile']);
(importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */).feedItemActioned({itemId: contentIdBinding,
itemType: typeBinding, actionParameters: {'actionGestureType': 'press',
'actionTargetElement': 'item_container',
'actionIntentType': 'open', 'actionDestinationType': 'user'}});
(importDefault(8743) /* metro dependency 8743: showUserProfileActionSheet */)({userId: userId});
function ContentInventoryEntryContainer({contentId, userId, children, renderForScreenshot, title, subtitle, type, highlight, onPress}) { // fn#112516, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15068:818, offset: 0x023ceb3c, size: 576 bytes, params: 2, frame: 35
var r0;
var PressableHighlight;
var SimplePost;
var object2;
var object4;
var items2;
renderForScreenshot = !(renderForScreenshot === undefined) && renderForScreenshot;
highlight = !(highlight === undefined) && highlight;
const onPress2 = onPress;
var value;
const value2 = env0_8(renderForScreenshot);
const value3 = onPress2.useCallback(_fun112517, [contentId, type, userId, onPress]);
const user = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getUser(userId);
});
if (user == null) {
r0 = null;
} else {
PressableHighlight = (require(5278) /* metro dependency 5278: Pressables */).PressableHighlight;
var pressableHighlightProps2 = {'unstable_pressDelay': 130, 'onPress': null, 'accessibilityRole': 'button',
onPress: value3, style: value2.pressable};
SimplePost = (require(14854) /* metro dependency 14854: ICYMIShared */).SimplePost;
object2 = {hideDivider: renderForScreenshot, highlight: highlight};
var viewProps = {style: [value2.container, renderForScreenshot && value2.screenshotContainer]};
var viewBinding2Props = {style: value2.header};
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
value = (
<Avatar
animate
size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.NORMAL}
user={user}
guildId={undefined}
key={user.id}
/>
);
items2 = [value];
var viewBinding2Props2 = {style: value2.headerInfo};
value = (
<View style={value2.title}>
{title}
</View>
);
items2[1] = (
<View {...viewBinding2Props2}>
{value}
<View style={value2.subTitleContainer}>
{subtitle}
</View>
</View>
);
value = (
<View {...viewBinding2Props}>
{items2}
</View>
);
value = (
<PressableHighlight {...pressableHighlightProps2}>
<SimplePost {...object2}>
<View {...viewProps}>
{value}
{children}
</View>
</SimplePost>
</PressableHighlight>
);
r0 = value;
}
return r0;
function _fun112517() { // fn#112517, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15068:997, offset: 0x023ced7c, size: 263 bytes, params: 1, frame: 20
var value2;
var defaultImport;
var itemInteracted;
var contentIdBinding;
var typeBinding;
var value3;
var defaultImport4;
var defaultImport5;
if (onPress != null) {
value3 = environment.__proto__;
defaultImport4 = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
itemInteracted = defaultImport4.itemInteracted;
contentIdBinding = contentId;
typeBinding = type;
Reflect.apply(itemInteracted, defaultImport4, [contentIdBinding, typeBinding, 'press']);
defaultImport5 = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
defaultImport5.feedItemActioned({itemId: contentIdBinding, itemType: typeBinding,
actionParameters: {'actionGestureType': 'press', 'actionTargetElement': 'item_container',
'actionIntentType': 'open', 'actionDestinationType': null}});
onPress();
} else {
value2 = environment.__proto__;
defaultImport = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
itemInteracted = defaultImport.itemInteracted;
contentIdBinding = contentId;
typeBinding = type;
Reflect.apply(itemInteracted, defaultImport, [contentIdBinding, typeBinding, 'open_profile']);
(importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */).feedItemActioned({itemId: contentIdBinding,
itemType: typeBinding, actionParameters: {'actionGestureType': 'press',
'actionTargetElement': 'item_container',
'actionIntentType': 'open', 'actionDestinationType': 'user'}});
(importDefault(8743) /* metro dependency 8743: showUserProfileActionSheet */)({userId: userId});
}
}
}
}
global.__d(_fun112514, 14871, [31, 27, 1878, 33, 14815, 697, 477, 9580, 8743, 566, 5278, 14854, 1305,
2]) /* metro module 14871, dependencies: [31, 27, 1878, 33, 14815, 697, 477, 9580, 8743, 566, 5278, 14854, 1305, 2] */;
@@ -1,19 +1,26 @@
/* Metro module 14873; source: modules/icymi/native/content_inventory/CustomStatusEntryRow.tsx; dependencies: [31, 33, 14869, 14874, 2] */
import ICYMICustomStatusRow from './ICYMICustomStatusRow.tsx'; /* Metro dependency 14874 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as UseReplyActionsModule from './useReplyActions.tsx'; /* Metro dependency 14869 */
function _fun112522(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112522, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15070:6, offset: 0x023cf276, size: 138 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/content_inventory/CustomStatusEntryRow.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/content_inventory/CustomStatusEntryRow.tsx');
exports.default = CustomStatusEntryRow;
function CustomStatusEntryRow({content, renderForScreenshot, visible}) { // fn#112523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15070:225, offset: 0x023cf300, size: 170 bytes, params: 2, frame: 19
const {openEmojiPicker,
openReplyActionSheet} = (UseReplyActionsModule).useReplyActions({content: content});
return ((Component) => <Component id={content.id} userId={content.author_id} customStatusExtra={content.extra} renderForScreenshot={renderForScreenshot} visible={visible} variant={{kind: 'otherUserStatus',
handlePressPrimary: openReplyActionSheet,
handlePressSecondary: openEmojiPicker}} />)(ICYMICustomStatusRow);
}
}
function CustomStatusEntryRow({content, renderForScreenshot, visible}) { // fn#112523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15070:225, offset: 0x023cf300, size: 170 bytes, params: 2, frame: 19
const {openEmojiPicker,
openReplyActionSheet} = (require(14869) /* metro dependency 14869: useReplyActions */).useReplyActions({content: content});
return ((Component) => <Component id={content.id} userId={content.author_id} customStatusExtra={content.extra} renderForScreenshot={renderForScreenshot} visible={visible} variant={{kind: 'otherUserStatus',
handlePressPrimary: openReplyActionSheet,
handlePressSecondary: openEmojiPicker}} />)(importDefault(14874) /* metro dependency 14874: ICYMICustomStatusRow */);
}
global.__d(_fun112522, 14873, [31, 33, 14869, 14874,
2]) /* metro module 14873, dependencies: [31, 33, 14869, 14874, 2] */;
@@ -1,243 +1,325 @@
/* Metro module 14864; source: modules/icymi/native/content_inventory/GamingLikeEntryRow.tsx; dependencies: [31, 27, 1878, 33, 10226, 8375, 10233, 14815, 697, 566, 4635, 8699, 6777, 8373, 9953, 9963, 8370, 14865, 1962, 9580, 5080, 14869, 1244, 14871, 4573, 3995, 4788, 21, 674, 5278, 5475, 14872, 2] */
import SnowflakeUtils from '../../../../utils/SnowflakeUtils.tsx'; /* Metro dependency 21 */
import UserStore from '../../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import UseDisplayNameStyles from '../../../display_name_styles/hooks/useDisplayNameStyles.tsx'; /* Metro dependency 4635 */
import UseOpenGameProfileModal from '../../../game_profile/hooks/useOpenGameProfileModal.tsx'; /* Metro dependency 9953 */
import ContentInventoryEntryContainer from './ContentInventoryEntryContainer.tsx'; /* Metro dependency 14871 */
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 TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as NotificationCenterUtilsModule from '../../../notification_center/NotificationCenterUtils.tsx'; /* Metro dependency 4788 */
import * as PressablesModule from '../../../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */
import * as UseGetOrFetchApplicationsModule from '../../../applications/useGetOrFetchApplications.tsx'; /* Metro dependency 6777 */
import * as ContentInventoryEntryTypeModule from '../../../../external/discord_common/js/shared/shared-constants/ContentInventoryEntryType.tsx'; /* Metro dependency 8370 */
import * as UtilsModule from '../../../content_inventory/utils.tsx'; /* Metro dependency 8375 */
import * as UseDisplayNameStylesFontModule from '../../../display_name_styles/native/useDisplayNameStylesFont.tsx'; /* Metro dependency 8699 */
import * as GameProfileAnalyticUtilsModule from '../../../game_profile/GameProfileAnalyticUtils.tsx'; /* Metro dependency 9963 */
import * as BadgesModule from './Badges.tsx'; /* Metro dependency 10226 */
import * as CreateICYMIStylesModule from '../createICYMIStyles.tsx'; /* Metro dependency 14815 */
import * as UseReplyActionsModule from './useReplyActions.tsx'; /* Metro dependency 14869 */
function _fun112406(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15061:6, offset: 0x023ca18d, size: 448 bytes, params: 8, frame: 20
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(27) /* metro dependency 27 */).View;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const value = require(33) /* metro dependency 33 */;
const env0_7 = value.jsx;
const env0_8 = value.Fragment;
const env0_9 = value.jsxs;
object2 = {};
const NewGameBadge = (importAll(10226) /* metro dependency 10226: Badges */).NewGameBadge;
object2.Badge = NewGameBadge;
object2.predicate = (require(8375) /* metro dependency 8375: utils */).isEntryNew;
const items2 = [object2];
const StreakBadge = (importAll(10226) /* metro dependency 10226: Badges */).StreakBadge;
object = {};
const NewGameBadge = (BadgesModule).NewGameBadge;
object.Badge = NewGameBadge;
object.predicate = (require(8375) /* metro dependency 8375: utils */).isEntryNew;
const items2 = [object];
const StreakBadge = (BadgesModule).StreakBadge;
items2[1] = {Badge: StreakBadge, predicate: predicate_112407};
const TrendingBadge = (importAll(10226) /* metro dependency 10226: Badges */).TrendingBadge;
const TrendingBadge = (BadgesModule).TrendingBadge;
items2[2] = {Badge: TrendingBadge, predicate: predicate_112408};
const ResurrectedBadge = (importAll(10226) /* metro dependency 10226: Badges */).ResurrectedBadge;
const ResurrectedBadge = (BadgesModule).ResurrectedBadge;
items2[3] = {Badge: ResurrectedBadge, predicate: function() {
return true;
}};
const MarathonBadge = (importAll(10226) /* metro dependency 10226: Badges */).MarathonBadge;
const MarathonBadge = (BadgesModule).MarathonBadge;
items2[4] = {Badge: MarathonBadge, predicate: predicate_112410};
const env0_11 = (require(14815) /* metro dependency 14815: createICYMIStyles */).createICYMIStyles(_fun112411);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/content_inventory/GamingLikeEntryRow.tsx');
const env0_11 = (CreateICYMIStylesModule).createICYMIStyles(_fun112411);
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/content_inventory/GamingLikeEntryRow.tsx');
exports.default = GamingLikeEntryRow;
}
function predicate_112407(a0) { // fn#112407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15061:269, offset: 0x023ca34d, size: 62 bytes, params: 2, frame: 11
let value = require(8375) /* metro dependency 8375: utils */;
value = value.getStreakCount(a0);
return (value ?? 0) >= 2;
}
function predicate_112408(a0) { // fn#112408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15061:371, offset: 0x023ca38b, size: 86 bytes, params: 2, frame: 14
const trendingType = (require(8375) /* metro dependency 8375: utils */).getTrendingType(a0);
return trendingType != null && trendingType !== (require(10233) /* metro dependency 10233: TrendingType */).TrendingType.TRENDING_TYPE_UNSPECIFIED;
}
function predicate_112410(a0) { // fn#112410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15061:566, offset: 0x023ca3e1, size: 47 bytes, params: 2, frame: 11
let value = require(8375) /* metro dependency 8375: utils */;
value = value.isEntryMarathon(a0);
return value === true;
}
function _fun112411(a0) { // fn#112411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15061:632, offset: 0x023ca410, size: 299 bytes, params: 2, frame: 16
const object4 = {};
const object5 = {'flexDirection': 'row', 'gap': null, 'alignItems': 'center'};
object5.gap = a0.margin;
object5.padding = a0.margin;
object5.marginLeft = a0.inset;
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object5.backgroundColor = BACKGROUND_SURFACE_HIGH;
const shadows = (importDefault(697) /* metro dependency 697: native */).shadows;
const SHADOW_HIGH = shadows.SHADOW_HIGH;
copyDataProperties(object5, SHADOW_HIGH, shadows);
object4.card = object5;
object4.cardInnerContainer = {'overflow': 'hidden', 'flex': 1};
const object6 = {'width': 72, 'height': 72};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object4.image = object6;
const CONTENT_INVENTORY_OVERLAY_TEXT_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.CONTENT_INVENTORY_OVERLAY_TEXT_PRIMARY;
object4.gameName = {maxWidth: 275, color: CONTENT_INVENTORY_OVERLAY_TEXT_PRIMARY};
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object4.badges = {'display': 'flex', 'flexDirection': 'row', 'gap': null, 'flexWrap': 'wrap',
'alignItems': 'center', 'marginTop': 6, gap: PX_8};
return object4;
}
function GamingLikeEntryRow({content, renderForScreenshot}) { // fn#112412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15061:1261, offset: 0x023ca53b, size: 1734 bytes, params: 2, frame: 47
var object4;
var r11;
var object2;
var ContentInventoryReplyRow;
var ghWi8V;
var object3;
const value3 = env0_11();
const application_id = content.extra.application_id;
const author_id = content.author_id;
const user = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getUser(author_id);
});
const value5 = (require(8699) /* metro dependency 8699: useDisplayNameStylesFont */).useDisplayNameStylesFont({displayNameStyles: (importDefault(4635) /* metro dependency 4635: useDisplayNameStyles */)({userId: author_id})});
const value6 = (require(6777) /* metro dependency 6777: useGetOrFetchApplications */).useGetOrFetchApplication(application_id);
const primaryColor = (importDefault(8373) /* metro dependency 8373: useHeroColors */)(value6?.getIconURL(72)).primaryColor;
const iconURL = value6?.getIconURL(240);
const defaultImport2 = importDefault(9953) /* metro dependency 9953: useOpenGameProfileModal */;
object4 = {location: 'ICYMI Activity Card', applicationId: application_id};
const GameProfileSources = (require(9963) /* metro dependency 9963: GameProfileAnalyticUtils */).GameProfileSources;
const ActivityCard = GameProfileSources.ActivityCard;
object4.source = ActivityCard;
object4.trackEntryPointImpression = true;
object4.sourceUserId = author_id;
const value10 = defaultImport2(object4);
const binding = env0_4;
const value11 = binding.useCallback(_fun112414, [value10]);
const value12 = binding.useMemo(_fun112415, [content]);
const value13 = binding.useCallback(_fun112417, [content]);
const useReplyActionsModule = require(14869) /* metro dependency 14869: useReplyActions */;
const useReplyActions = useReplyActionsModule.useReplyActions;
const openReplyActionSheet = Reflect.apply(useReplyActions, useReplyActionsModule,
[{content: content}]).openReplyActionSheet;
const value14 = binding.useCallback(_fun112420, [content, openReplyActionSheet]);
if (value6 == null) {
return null;
function predicate_112407(a0) { // fn#112407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15061:269, offset: 0x023ca34d, size: 62 bytes, params: 2, frame: 11
let value = UtilsModule;
value = value.getStreakCount(a0);
return (value ?? 0) >= 2;
}
if (user == null) {
return null;
function predicate_112408(a0) { // fn#112408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15061:371, offset: 0x023ca38b, size: 86 bytes, params: 2, frame: 14
const trendingType = (UtilsModule).getTrendingType(a0);
return trendingType != null && trendingType !== (require(10233) /* metro dependency 10233: TrendingType */).TrendingType.TRENDING_TYPE_UNSPECIFIED;
}
if (iconURL == null) {
return null;
function predicate_112410(a0) { // fn#112410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15061:566, offset: 0x023ca3e1, size: 47 bytes, params: 2, frame: 11
let value = UtilsModule;
value = value.isEntryMarathon(a0);
return value === true;
}
const isEntryActive2 = (require(8375) /* metro dependency 8375: utils */).isEntryActive(content);
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const r8 = isEntryActive2 ? Reflect.apply(string, intl, [t.Gk1P8Z]) : Reflect.apply(string, intl, [t.ktOTRQ]);
const ContentInventoryEntryContainer = importDefault(14871) /* metro dependency 14871: ContentInventoryEntryContainer */;
object4 = {contentId: content.id, userId: content.author_id, type: 'hotwheels_gaming_activity',
renderForScreenshot: renderForScreenshot, onPress: value14};
const jsxRuntimeEnv0_8Binding = jsxRuntimeEnv0_8;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
let r9 = value5 != null ? {fontFamily: value5} : undefined;
const text = <Text variant="text-md/semibold" color="mobile-text-heading-primary" style={r9}>{(importDefault(3995) /* metro dependency 3995: UserUtils */).getName(user)}</Text>;
const notificationCenterUtilsModule = require(4788) /* metro dependency 4788: NotificationCenterUtils */;
const getRelativeTimestamp = notificationCenterUtilsModule.getRelativeTimestamp;
const defaultImport5 = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
object4.title = <>{text}<Text lineClamp={1} variant="text-xs/normal" color="text-muted">{Reflect.apply(getRelativeTimestamp,
notificationCenterUtilsModule, [defaultImport5.extractTimestamp(content.id)])}</Text></>;
object4.subtitle = <Text variant="text-sm/normal" lineClamp={1} color={(require(8375) /* metro dependency 8375: utils */).isEntryActive(content) ? 'status-positive' : 'text-default'}>{r8}</Text>;
const items2 = [value3.card];
if (primaryColor != null) {
object2 = {};
object2.backgroundColor = (importDefault(674) /* metro dependency 674 */)(primaryColor).alpha(0.5).hex();
r11 = object2;
} else {
r11 = null;
function _fun112411(a0) { // fn#112411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15061:632, offset: 0x023ca410, size: 299 bytes, params: 2, frame: 16
const object = {};
const object2 = {'flexDirection': 'row', 'gap': null, 'alignItems': 'center'};
object2.gap = a0.margin;
object2.padding = a0.margin;
object2.marginLeft = a0.inset;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object2.backgroundColor = BACKGROUND_SURFACE_HIGH;
const shadows = (importDefault(697) /* metro dependency 697: native */).shadows;
const SHADOW_HIGH = shadows.SHADOW_HIGH;
copyDataProperties(object2, SHADOW_HIGH, shadows);
object.card = object2;
object.cardInnerContainer = {'overflow': 'hidden', 'flex': 1};
const object3 = {'width': 72, 'height': 72};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object.image = object3;
const CONTENT_INVENTORY_OVERLAY_TEXT_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.CONTENT_INVENTORY_OVERLAY_TEXT_PRIMARY;
object.gameName = {maxWidth: 275, color: CONTENT_INVENTORY_OVERLAY_TEXT_PRIMARY};
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object.badges = {'display': 'flex', 'flexDirection': 'row', 'gap': null, 'flexWrap': 'wrap', 'alignItems': 'center',
'marginTop': 6, gap: PX_8};
return object;
}
items2[1] = r11;
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
let formatToPlainString = intl.formatToPlainString;
const view = <View style={items2}><PressableOpacity onPress={value11} disabled={value10 == null} accessibilityRole="button" accessibilityLabel={Reflect.apply(formatToPlainString,
intl, [(require(1244) /* metro dependency 1244: indexNative */).t['9sZWVp'],
{gameName: value6.name}])}>{((Component) => <Component source={{uri: iconURL}} style={value3.image} />)(importDefault(5475) /* metro dependency 5475: FastImage */)}</PressableOpacity><View style={value3.cardInnerContainer}><PressableOpacity onPress={value11} disabled={value10 == null} accessibilityRole="button" accessibilityLabel={intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['9sZWVp'],
{gameName: value6.name})}><Text variant="text-md/semibold" style={value3.gameName}>{value6.name}</Text></PressableOpacity>{value12 != null && value12.length > 0 && <View style={value3.badges}>{value12}</View>}</View></View>;
if (renderForScreenshot) {
r9 = null;
} else {
ContentInventoryReplyRow = (require(14872) /* metro dependency 14872: ReplyRow */).ContentInventoryReplyRow;
formatToPlainString = intl.formatToPlainString;
ghWi8V = (require(1244) /* metro dependency 1244: indexNative */).t.ghWi8V;
object3 = {};
object3.username = (importDefault(3995) /* metro dependency 3995: UserUtils */).getName(user);
r9 = <ContentInventoryReplyRow reactText={Reflect.apply(formatToPlainString, intl, [ghWi8V,
object3])} onReply={openReplyActionSheet} onForward={value13} />;
}
return (
<ContentInventoryEntryContainer {...object4}>
<View>
{view}
{r9}
function GamingLikeEntryRow({content, renderForScreenshot}) { // fn#112412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15061:1261, offset: 0x023ca53b, size: 1734 bytes, params: 2, frame: 47
var object6;
var r11;
var object;
var ContentInventoryReplyRow;
var ghWi8V;
var object5;
const value3 = env0_11();
const application_id = content.extra.application_id;
const author_id = content.author_id;
const user = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getUser(author_id);
});
const value5 = (UseDisplayNameStylesFontModule).useDisplayNameStylesFont({displayNameStyles: (UseDisplayNameStyles)({userId: author_id})});
const value6 = (UseGetOrFetchApplicationsModule).useGetOrFetchApplication(application_id);
const primaryColor = (importDefault(8373) /* metro dependency 8373: useHeroColors */)(value6?.getIconURL(72)).primaryColor;
const iconURL = value6?.getIconURL(240);
const defaultImport2 = UseOpenGameProfileModal;
object6 = {location: 'ICYMI Activity Card', applicationId: application_id};
const GameProfileSources = (GameProfileAnalyticUtilsModule).GameProfileSources;
const ActivityCard = GameProfileSources.ActivityCard;
object6.source = ActivityCard;
object6.trackEntryPointImpression = true;
object6.sourceUserId = author_id;
const value10 = defaultImport2(object6);
const value11 = ReactModule.useCallback(_fun112414, [value10]);
const value12 = ReactModule.useMemo(_fun112415, [content]);
const value13 = ReactModule.useCallback(_fun112417, [content]);
const useReplyActions = UseReplyActionsModule.useReplyActions;
const openReplyActionSheet = Reflect.apply(useReplyActions, UseReplyActionsModule,
[{content: content}]).openReplyActionSheet;
const value14 = ReactModule.useCallback(_fun112420, [content, openReplyActionSheet]);
if (value6 == null) {
return null;
}
if (user == null) {
return null;
}
if (iconURL == null) {
return null;
}
const isEntryActive2 = (require(8375) /* metro dependency 8375: utils */).isEntryActive(content);
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const r8 = isEntryActive2 ? Reflect.apply(string, intl, [t.Gk1P8Z]) : Reflect.apply(string, intl, [t.ktOTRQ]);
object6 = {contentId: content.id, userId: content.author_id, type: 'hotwheels_gaming_activity',
renderForScreenshot: renderForScreenshot, onPress: value14};
const jsxRuntimeEnv0_8Binding = jsxRuntimeEnv0_8;
const Text = (TextModule).Text;
let r9 = value5 != null ? {fontFamily: value5} : undefined;
const text = (
<Text
variant="text-md/semibold"
color="mobile-text-heading-primary"
style={r9}
>
{(importDefault(3995) /* metro dependency 3995: UserUtils */).getName(user)}
</Text>
);
const getRelativeTimestamp = NotificationCenterUtilsModule.getRelativeTimestamp;
const defaultImport5 = SnowflakeUtils;
object6.title = (
<>
{text}
<Text
lineClamp={1}
variant="text-xs/normal"
color="text-muted"
>
{Reflect.apply(getRelativeTimestamp, NotificationCenterUtilsModule,
[defaultImport5.extractTimestamp(content.id)])}
</Text>
</>
);
object6.subtitle = (
<Text
variant="text-sm/normal"
lineClamp={1}
color={(require(8375) /* metro dependency 8375: utils */).isEntryActive(content) ? 'status-positive' : 'text-default'}
>
{r8}
</Text>
);
const items2 = [value3.card];
if (primaryColor != null) {
object = {};
object.backgroundColor = (importDefault(674) /* metro dependency 674 */)(primaryColor).alpha(0.5).hex();
r11 = object;
} else {
r11 = null;
}
items2[1] = r11;
const PressableOpacity = (PressablesModule).PressableOpacity;
let formatToPlainString = intl.formatToPlainString;
const view = (
<View style={items2}>
<PressableOpacity
onPress={value11}
disabled={value10 == null}
accessibilityRole="button"
accessibilityLabel={Reflect.apply(formatToPlainString, intl,
[(require(1244) /* metro dependency 1244: indexNative */).t['9sZWVp'], {gameName: value6.name}])}
>
{((Component) => <Component source={{uri: iconURL}} style={value3.image} />)(importDefault(5475) /* metro dependency 5475: FastImage */)}
</PressableOpacity>
<View style={value3.cardInnerContainer}>
<PressableOpacity
onPress={value11}
disabled={value10 == null}
accessibilityRole="button"
accessibilityLabel={intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['9sZWVp'],
{gameName: value6.name})}
>
<Text variant="text-md/semibold" style={value3.gameName}>
{value6.name}
</Text>
</PressableOpacity>
{value12 != null && value12.length > 0 && <View style={value3.badges}>{value12}</View>}
</View>
</View>
</ContentInventoryEntryContainer>
);
}
);
if (renderForScreenshot) {
r9 = null;
} else {
ContentInventoryReplyRow = (require(14872) /* metro dependency 14872: ReplyRow */).ContentInventoryReplyRow;
formatToPlainString = intl.formatToPlainString;
ghWi8V = (require(1244) /* metro dependency 1244: indexNative */).t.ghWi8V;
object5 = {};
object5.username = (importDefault(3995) /* metro dependency 3995: UserUtils */).getName(user);
r9 = (
<ContentInventoryReplyRow
reactText={Reflect.apply(formatToPlainString, intl, [ghWi8V, object5])}
onReply={openReplyActionSheet}
onForward={value13}
/>
);
}
return (
<ContentInventoryEntryContainer {...object6}>
<View>
{view}
{r9}
</View>
</ContentInventoryEntryContainer>
);
function _fun112414() { // fn#112414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15061:1813, offset: 0x01f603a6, size: 27 bytes, params: 1, frame: 10
if (env0_2 != null) {
env0_2();
}
}
function _fun112415() { // fn#112415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15061:1851, offset: 0x023cac01, size: 164 bytes, params: 1, frame: 17
var r0;
var value;
const content_type = content.content_type;
const ContentInventoryEntryType = (require(8370) /* metro dependency 8370: ContentInventoryEntryType */).ContentInventoryEntryType;
const TOP_GAME = ContentInventoryEntryType.TOP_GAME;
if (content_type === TOP_GAME) {
r0 = [((TopGameBadge) => <TopGameBadge entry={content} key="topgame" />)((importAll(10226) /* metro dependency 10226: Badges */).TopGameBadge)];
} else {
value = env1_10.map(_fun112416);
value = value.filter(global.Boolean);
r0 = value;
}
return r0;
}
function _fun112415() { // fn#112415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15061:1851, offset: 0x023cac01, size: 164 bytes, params: 1, frame: 17
var r0;
var value;
const content_type = content.content_type;
const ContentInventoryEntryType = (ContentInventoryEntryTypeModule).ContentInventoryEntryType;
const TOP_GAME = ContentInventoryEntryType.TOP_GAME;
if (content_type === TOP_GAME) {
const TopGameBadge = (importAll(10226) /* metro dependency 10226: Badges */).TopGameBadge;
r0 = [
<TopGameBadge entry={content} key="topgame" />,
];
} else {
value = env1_10.map(_fun112416);
value = value.filter(global.Boolean);
r0 = value;
}
return r0;
function _fun112416({Badge, predicate}) { // fn#112416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15061:1969, offset: 0x023caca5, size: 66 bytes, params: 2, frame: 16
const value = environment.__proto__;
return (
predicate(content)
? (
<Badge entry={content} key={Badge.name} />
)
: null
);
}
function _fun112417() { // fn#112417, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15061:2067, offset: 0x023cace7, size: 64 bytes, params: 1, frame: 13
var environment;
let value = environment.__proto__;
value = require(dependencyMap[18]);
value = value(dependencyMap[17], dependencyMap.paths);
value.then(_fun112418);
}
}
function _fun112420() { // fn#112420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15061:2606, offset: 0x023cae0f, size: 128 bytes, params: 1, frame: 21
let value = environment.__proto__;
value = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
const itemInteracted = value.itemInteracted;
const contentBinding = content;
Reflect.apply(itemInteracted, value, [contentBinding.id, 'hotwheels_gaming_activity', 'press']);
(importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */).feedItemActioned({itemId: contentBinding.id,
itemType: 'hotwheels_gaming_activity', actionParameters: {'actionGestureType': 'press',
'actionTargetElement': 'item_container', 'actionIntentType': 'open', 'actionDestinationType': null}});
openReplyActionSheet();
}
function _fun112417() { // fn#112417, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15061:2067, offset: 0x023cace7, size: 64 bytes, params: 1, frame: 13
var environment;
let value = environment.__proto__;
value = require(dependencyMap[18]);
value = value(dependencyMap[17], dependencyMap.paths);
value.then(_fun112418);
function _fun112418({GameShareModal}) { // fn#112418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15061:2102, offset: 0x023cad27, size: 205 bytes, params: 2, frame: 22
var environment;
var value;
var itemInteracted;
var value2;
var contentBinding;
var id;
var feedItemActioned;
if (GameShareModal != null) {
value = environment.__proto__.__proto__;
value = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
itemInteracted = value.itemInteracted;
value2 = environment.__proto__;
contentBinding = content;
id = contentBinding.id;
Reflect.apply(itemInteracted, value, [id, 'hotwheels_gaming_activity', 'press_forward']);
value = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
feedItemActioned = value.feedItemActioned;
id = contentBinding.id;
Reflect.apply(feedItemActioned, value, [{itemId: id, itemType: 'hotwheels_gaming_activity',
actionParameters: {'actionGestureType': 'press', 'actionTargetElement': 'forward_button',
'actionIntentType': 'share', 'actionDestinationType': null}}]);
value = importDefault(5080) /* metro dependency 5080: ModalActionCreators */;
value.pushLazy(function() {
var Promise = global.Promise;
return Promise.resolve(GameShareModal);
}, {content: contentBinding}, 'GameShareModal', {presentation: 'modal'});
}
}
function _fun112416({Badge, predicate}) { // fn#112416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15061:1969, offset: 0x023caca5, size: 66 bytes, params: 2, frame: 16
const value = environment.__proto__;
return predicate(content) ? <Badge entry={content} key={Badge.name} /> : null;
}
}
function _fun112420() { // fn#112420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15061:2606, offset: 0x023cae0f, size: 128 bytes, params: 1, frame: 21
let value = environment.__proto__;
value = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
const itemInteracted = value.itemInteracted;
const contentBinding = content;
Reflect.apply(itemInteracted, value, [contentBinding.id, 'hotwheels_gaming_activity', 'press']);
(importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */).feedItemActioned({itemId: contentBinding.id,
itemType: 'hotwheels_gaming_activity', actionParameters: {'actionGestureType': 'press',
'actionTargetElement': 'item_container', 'actionIntentType': 'open', 'actionDestinationType': null}});
openReplyActionSheet();
}
function _fun112418({GameShareModal}) { // fn#112418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15061:2102, offset: 0x023cad27, size: 205 bytes, params: 2, frame: 22
var environment;
var value;
var itemInteracted;
var value2;
var contentBinding;
var id;
var feedItemActioned;
if (GameShareModal != null) {
value = environment.__proto__.__proto__;
value = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
itemInteracted = value.itemInteracted;
value2 = environment.__proto__;
contentBinding = content;
id = contentBinding.id;
Reflect.apply(itemInteracted, value, [id, 'hotwheels_gaming_activity', 'press_forward']);
value = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
feedItemActioned = value.feedItemActioned;
id = contentBinding.id;
Reflect.apply(feedItemActioned, value, [{itemId: id, itemType: 'hotwheels_gaming_activity',
actionParameters: {'actionGestureType': 'press', 'actionTargetElement': 'forward_button',
'actionIntentType': 'share', 'actionDestinationType': null}}]);
value = importDefault(5080) /* metro dependency 5080: ModalActionCreators */;
value.pushLazy(function() {
var Promise = global.Promise;
return Promise.resolve(GameShareModal);
}, {content: contentBinding}, 'GameShareModal', {presentation: 'modal'});
}
}
global.__d(_fun112406, 14864, [31, 27, 1878, 33, 10226, 8375, 10233, 14815, 697, 566, 4635, 8699, 6777, 8373, 9953,
9963, 8370, 14865, 1962, 9580, 5080, 14869, 1244, 14871, 4573, 3995, 4788, 21, 674, 5278, 5475, 14872,
2]) /* metro module 14864, dependencies: [31, 27, 1878, 33, 10226, 8375, 10233, 14815, 697, 566, 4635, 8699, 6777, 8373, 9953, 9963, 8370, 14865, 1962, 9580, 5080, 14869, 1244, 14871, 4573, 3995, 4788, 21, 674, 5278, 5475, 14872, 2] */;
@@ -1,364 +1,463 @@
/* Metro module 14874; source: modules/icymi/native/content_inventory/ICYMICustomStatusRow.tsx; dependencies: [57, 31, 27, 1878, 9569, 33, 697, 4501, 14815, 1305, 11158, 4573, 1244, 7701, 4000, 566, 4635, 8699, 8852, 477, 5278, 4071, 9646, 11209, 7950, 21, 672, 14871, 3995, 4788, 14875, 7599, 2] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UserStore from '../../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import UseDisplayNameStyles from '../../../display_name_styles/hooks/useDisplayNameStyles.tsx'; /* Metro dependency 4635 */
import ClipView from '../../../../design/components/Icon/native/ClipView.tsx'; /* Metro dependency 7599 */
import ICYMIStore from '../../ICYMIStore.tsx'; /* Metro dependency 9569 */
import Module11158 from '../../../../by-id/module-11158.js'; /* Metro dependency 11158 */
import ContentInventoryEntryContainer from './ContentInventoryEntryContainer.tsx'; /* Metro dependency 14871 */
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 IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NativeModule from '../../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as ColorUtilsModule from '../../../../utils/ColorUtils.tsx'; /* Metro dependency 4000 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as PressablesModule from '../../../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */
import * as ClipViewModule from '../../../../design/components/Icon/native/ClipView.tsx'; /* Metro dependency 7599 */
import * as UseDisplayNameStylesFontModule from '../../../display_name_styles/native/useDisplayNameStylesFont.tsx'; /* Metro dependency 8699 */
import * as CreateICYMIStylesModule from '../createICYMIStyles.tsx'; /* Metro dependency 14815 */
function _fun112524(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112524, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15071:6, offset: 0x023cf3aa, size: 334 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(27) /* metro dependency 27 */).View;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const icymiStore = importDefault(9569) /* metro dependency 9569: ICYMIStore */;
const value = require(33) /* metro dependency 33 */;
const env0_8 = value.jsx;
const env0_9 = value.jsxs;
const env0_10 = value.Fragment;
const env0_11 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
const env0_12 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(function(a0) {
return {background: {backgroundColor: a0, overflow: 'hidden'}};
});
const env0_13 = (require(14815) /* metro dependency 14815: createICYMIStyles */).createICYMIStyles(_fun112527);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/content_inventory/ICYMICustomStatusRow.tsx');
const env0_13 = (CreateICYMIStylesModule).createICYMIStyles(_fun112527);
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/content_inventory/ICYMICustomStatusRow.tsx');
exports.default = GravityCustomStatusEntryRow;
}
function UploadPlaceholder() { // fn#112525, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15071:1618, offset: 0x023cf4f8, size: 234 bytes, params: 1, frame: 22
const uploadContainer = env0_13(false).uploadContainer;
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
const iconProps = {source: importDefault(11158) /* metro dependency 11158 */};
const IconSizes = (require(1305) /* metro dependency 1305: native */).IconSizes;
const SMALL = IconSizes.SMALL;
iconProps.size = SMALL;
const icon = <Icon {...iconProps} />;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<View style={uploadContainer}>
{icon}
<Text variant="text-md/normal" color="text-strong">
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3UB9ad'])}
</Text>
</View>
);
}
function _fun112527(a0, a1) { // fn#112527, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15071:323, offset: 0x023cf5fd, size: 664 bytes, params: 3, frame: 20
const object2 = {};
const PX_40 = a1 ? 56 : (importDefault(697) /* metro dependency 697: native */).space.PX_40;
object2.bubbles = {position: 'absolute', top: PX_40};
const object5 = {'marginLeft': 32, 'borderRadius': null, 'height': 12, 'width': 12, 'overflow': 'hidden'};
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object2.middleBubble = object5;
const object6 = {'marginLeft': 44, 'marginTop': -4, 'borderRadius': null, 'height': 32, 'width': 32,
'overflow': 'hidden'};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object2.bottomBubble = object6;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.title = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', gap: PX_8};
object2.timestamp = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', 'gap': 6};
object2.cardContainer = {position: 'relative', marginLeft: a0.inset};
const object8 = {'gap': null, 'alignItems': 'center', 'justifyContent': 'center', 'padding': null,
'borderRadius': null, 'width': '100%', 'zIndex': 1};
let margin = a0.margin;
object8.gap = margin;
object8.padding = a0.margin;
object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object8.marginBottom = a1 ? 0 : 17;
object8.overflow = 'hidden';
object2.card = object8;
margin = a0.margin;
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object2.textOnly = {paddingVertical: margin + PX_12};
object2.emojiTextContainer = {'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'center',
gap: a0.margin};
object2.emojiText = {flexShrink: 1};
object2.leftAlign = {justifyContent: 'flex-start'};
const object9 = {'marginHorizontal': null, 'marginBottom': null, 'alignItems': 'center', 'justifyContent': 'center',
'minHeight': null, 'width': '100%', 'borderStyle': 'dashed'};
object9.marginHorizontal = a0.margin;
object9.marginBottom = a0.margin;
const PX_48 = (importDefault(697) /* metro dependency 697: native */).space.PX_48;
object9.minHeight = PX_48;
const BORDER_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_STRONG;
object9.borderColor = BORDER_STRONG;
object9.borderWidth = 1;
object9.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object9.gap = PX_4;
object9.flexDirection = 'row';
object2.uploadContainer = object9;
const object10 = {'alignItems': 'center', 'justifyContent': 'center', 'borderRadius': null, 'height': 28,
'width': 40};
object10.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object2.buttonIcon = object10;
return object2;
}
function GravityCustomStatusEntryRow({id, userId, customStatusExtra, renderForScreenshot, variant}) { // fn#112528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15071:1995, offset: 0x023cf895, size: 2519 bytes, params: 2, frame: 50
var object6;
var r11;
var r24;
var r26;
var r13;
var defaultImport2;
var object2;
var isAndroid2;
var value13;
var animated;
var moduleValue9;
var getRelativeTimestamp;
var defaultImport6;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var object3;
const CutoutShape = (require(7599) /* metro dependency 7599: ClipView */).CutoutShape;
var RoundedRect;
var width;
var space;
var PX_16;
var height;
var radii;
var md;
var items8;
var object4;
const env0_3 = variant;
const value3 = env0_13(renderForScreenshot);
const env0_4 = value3;
const styles = useStyles((require(7701) /* metro dependency 7701: ClientThemesOverrides */).useGradientBottom()?.backgroundColor ?? (importDefault(697) /* metro dependency 697: native */).colors.CARD_BACKGROUND_DEFAULT);
const colorUtilsModule = require(4000) /* metro dependency 4000: ColorUtils */;
const value6 = colorUtilsModule.hexWithOpacity(styles.background.backgroundColor, 0.6);
const user = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getUser(userId);
});
object6 = {id: customStatusExtra.emoji_id?.toString() === '0' ? null : customStatusExtra.emoji_id,
name: customStatusExtra.emoji_name ?? '', animated: customStatusExtra.emoji_animated};
const value10 = (require(8699) /* metro dependency 8699: useDisplayNameStylesFont */).useDisplayNameStylesFont({displayNameStyles: (importDefault(4635) /* metro dependency 4635: useDisplayNameStyles */)({userId: userId})});
let r22 = customStatusExtra.status != null && customStatusExtra.status.length > 0;
if (object6.id != null) {
defaultImport2 = importDefault(8852) /* metro dependency 8852: ActivityEmoji */;
object2 = {};
isAndroid2 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
value13 = 40;
r11 = isAndroid2 ? 36 : value13;
object2.lineHeight = r11;
object2.fontSize = 36;
r11 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid() ? 0 : 4;
object2.marginTop = r11;
animated = object6.animated;
r24 = ((Component) => <Component style={object2} size={value13} animate={animated != null && animated} emoji={object6} />)(defaultImport2);
} else if (object6.name.length === 0) {
r24 = null;
} else {
defaultImport2 = importDefault(8852) /* metro dependency 8852: ActivityEmoji */;
object2 = {};
isAndroid2 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
value13 = 40;
r11 = isAndroid2 ? 36 : value13;
object2.lineHeight = r11;
object2.fontSize = 36;
r11 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid() ? 0 : 4;
object2.marginTop = r11;
animated = object6.animated;
r24 = ((Component) => <Component style={object2} size={value13} animate={animated != null && animated} emoji={object6} />)(defaultImport2);
}
const user2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getUser(userId);
});
const binding = env0_4;
const [property, env0_7] = env0_3(binding.useState({'width': 0, 'height': 0}), 2);
const useMemo = binding.useMemo;
const hasStatus = Reflect.apply(useMemo, binding, [function() {
return variant.kind === 'ownStatus' ? {hasStatus: variant.hasStatus} : {hasStatus: true};
}, [variant]]).hasStatus;
const value21 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ICYMIStore], _fun112532, [id]);
const value22 = binding.useMemo(_fun112533, [styles.background, value6, renderForScreenshot, value3.buttonIcon,
variant.handlePressPrimary, variant.handlePressSecondary, variant.kind]);
if (user == null) {
return null;
}
const r29 = variant.kind === 'otherUserStatus' && (importDefault(21) /* metro dependency 21: SnowflakeUtils */).age(id) < 30 * (importDefault(672) /* metro dependency 672: Durations */).Millis.MINUTE;
const ContentInventoryEntryContainer = importDefault(14871) /* metro dependency 14871: ContentInventoryEntryContainer */;
object6 = {contentId: id, userId: userId, type: 'hotwheels_custom_status', renderForScreenshot: renderForScreenshot};
const title = value3.title;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const text = <Text variant="text-md/semibold" color="mobile-text-heading-primary" style={value10 != null ? {fontFamily: value10} : undefined}>{(importDefault(3995) /* metro dependency 3995: UserUtils */).getName(user2)}</Text>;
const timestamp = value3.timestamp;
if (hasStatus) {
moduleValue9 = require(4788) /* metro dependency 4788: NotificationCenterUtils */;
getRelativeTimestamp = moduleValue9.getRelativeTimestamp;
defaultImport6 = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
r26 = <Text lineClamp={1} variant="text-sm/normal" color="text-muted">{Reflect.apply(getRelativeTimestamp,
moduleValue9, [defaultImport6.extractTimestamp(id)])}</Text>;
} else {
r26 = hasStatus;
}
const items3 = [r26];
items3[1] = r29 ? ((Component) => <Component />)(importDefault(14875) /* metro dependency 14875: SeparatorDot */) : null;
items3[2] = r29 ? <Text lineClamp={1} variant="text-sm/medium" color="text-brand">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.tWnHcL)}</Text> : null;
object6.title = <View style={title}>{text}<View style={timestamp}>{items3}</View></View>;
object6.subtitle = variant.kind !== 'otherUserStatus' ? null : <Text variant="text-sm/normal" lineClamp={1} color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.fxOLPR)}</Text>;
object6.highlight = value21;
const value32 = ((Component) => <Component cutouts={[]} style={value3.bubbles}><View style={[value3.middleBubble,
styles.background]} /><View style={[value3.bottomBubble,
styles.background]} /></Component>)(importDefault(7599) /* metro dependency 7599: ClipView */);
const cardContainer = value3.cardContainer;
const ClipView = importDefault(7599) /* metro dependency 7599: ClipView */;
if (renderForScreenshot) {
r13 = [];
} else {
object3 = {};
RoundedRect = CutoutShape.RoundedRect;
object3.shape = RoundedRect;
width = property.width;
space = (importDefault(697) /* metro dependency 697: native */).space;
PX_16 = space.PX_16;
object3.x = width - PX_16 - 40 - 3;
height = property.height;
object3.y = height - 14 - 3;
object3.width = 46;
object3.height = 34;
radii = (importDefault(697) /* metro dependency 697: native */).radii;
md = radii.md;
object3.cornerRadius = md + 3;
items8 = [object3];
object4 = {};
RoundedRect = CutoutShape.RoundedRect;
object4.shape = RoundedRect;
width = property.width;
space = (importDefault(697) /* metro dependency 697: native */).space;
PX_16 = space.PX_16;
object4.x = width - PX_16 - 86 - PX_8;
height = property.height;
object4.y = height - 14 - 3;
object4.width = 46;
object4.height = 34;
radii = (importDefault(697) /* metro dependency 697: native */).radii;
md = radii.md;
object4.cornerRadius = md + 3;
items8[1] = object4;
r13 = items8;
}
const PressableHighlight = (require(5278) /* metro dependency 5278: Pressables */).PressableHighlight;
const pressableHighlightProps2 = {onLayout: onLayout_112534, onPress: variant.handlePressPrimary,
underlayColor: value6, style: [value3.card, styles.background, r24 == null ? value3.textOnly : null]};
const items11 = [value3.emojiTextContainer];
const items12 = [r24];
r22 = r22 && <Text style={value3.emojiText} variant="text-md/normal">{customStatusExtra.status}</Text>;
items12[1] = r22;
const value35 = !hasStatus;
items12[2] = hasStatus ? value35 : <Text variant="text-md/normal">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['6ojWO0'])}</Text>;
return (
<ContentInventoryEntryContainer {...object6}>
{value32}
<View style={cardContainer}>
<ClipView cutouts={r13}>
<PressableHighlight {...pressableHighlightProps2}>
<View style={items11}>
{items12}
</View>
{hasStatus ? value35 : <UploadPlaceholder />}
</PressableHighlight>
</ClipView>
{value22}
function UploadPlaceholder() { // fn#112525, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15071:1618, offset: 0x023cf4f8, size: 234 bytes, params: 1, frame: 22
const uploadContainer = env0_13(false).uploadContainer;
const Icon = (NativeModule).Icon;
const iconProps = {source: Module11158};
const IconSizes = (NativeModule).IconSizes;
const SMALL = IconSizes.SMALL;
iconProps.size = SMALL;
const icon = <Icon {...iconProps} />;
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
return (
<View style={uploadContainer}>
{icon}
<Text variant="text-md/normal" color="text-strong">
{intl.string((IndexNativeModule).t['3UB9ad'])}
</Text>
</View>
</ContentInventoryEntryContainer>
);
}
);
}
function _fun112532() { // fn#112532, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15071:3032, offset: 0x023d02a3, size: 44 bytes, params: 1, frame: 10
return ICYMIStore.notificationItem() != null && environment.__proto__.id === id;
}
function _fun112527(a0, a1) { // fn#112527, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15071:323, offset: 0x023cf5fd, size: 664 bytes, params: 3, frame: 20
const object = {};
const PX_40 = a1 ? 56 : (importDefault(697) /* metro dependency 697: native */).space.PX_40;
object.bubbles = {position: 'absolute', top: PX_40};
const object3 = {'marginLeft': 32, 'borderRadius': null, 'height': 12, 'width': 12, 'overflow': 'hidden'};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object.middleBubble = object3;
const object4 = {'marginLeft': 44, 'marginTop': -4, 'borderRadius': null, 'height': 32, 'width': 32,
'overflow': 'hidden'};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object.bottomBubble = object4;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object.title = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', gap: PX_8};
object.timestamp = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', 'gap': 6};
object.cardContainer = {position: 'relative', marginLeft: a0.inset};
const object7 = {'gap': null, 'alignItems': 'center', 'justifyContent': 'center', 'padding': null,
'borderRadius': null, 'width': '100%', 'zIndex': 1};
let margin = a0.margin;
object7.gap = margin;
object7.padding = a0.margin;
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object7.marginBottom = a1 ? 0 : 17;
object7.overflow = 'hidden';
object.card = object7;
margin = a0.margin;
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object.textOnly = {paddingVertical: margin + PX_12};
object.emojiTextContainer = {'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'center',
gap: a0.margin};
object.emojiText = {flexShrink: 1};
object.leftAlign = {justifyContent: 'flex-start'};
const object11 = {'marginHorizontal': null, 'marginBottom': null, 'alignItems': 'center',
'justifyContent': 'center', 'minHeight': null, 'width': '100%', 'borderStyle': 'dashed'};
object11.marginHorizontal = a0.margin;
object11.marginBottom = a0.margin;
const PX_48 = (importDefault(697) /* metro dependency 697: native */).space.PX_48;
object11.minHeight = PX_48;
const BORDER_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_STRONG;
object11.borderColor = BORDER_STRONG;
object11.borderWidth = 1;
object11.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object11.gap = PX_4;
object11.flexDirection = 'row';
object.uploadContainer = object11;
const object12 = {'alignItems': 'center', 'justifyContent': 'center', 'borderRadius': null, 'height': 28,
'width': 40};
object12.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object.buttonIcon = object12;
return object;
}
function _fun112533() { // fn#112533, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15071:3109, offset: 0x023d02cf, size: 861 bytes, params: 1, frame: 33
var r1;
var r0;
var variantBinding;
var value3;
var jsxRuntimeEnv1_10Binding;
const PressableHighlight = (require(5278) /* metro dependency 5278: Pressables */).PressableHighlight;
var object;
var binding;
var buttonIcon;
var items7;
var background;
var space;
var PX_16;
var items2;
var items3;
var value5;
var object3;
var items4;
var items5;
var items6;
var value;
if (renderForScreenshot) {
r0 = null;
} else {
if (variant.kind === 'ownStatus') {
value5 = environment.__proto__;
jsxRuntimeEnv1_10Binding = jsxRuntimeEnv1_10;
object3 = {};
variantBinding = variant;
object3.onPress = variantBinding.handlePressSecondary;
object3.underlayColor = env0_6;
binding = env0_4;
buttonIcon = binding.buttonIcon;
items4 = [buttonIcon];
background = styles.background;
items4[1] = background;
space = (importDefault(697) /* metro dependency 697: native */).space;
PX_16 = space.PX_16;
items4[2] = {'position': 'absolute', 'right': null, 'bottom': 3, right: PX_16};
object3.style = items4;
items5 = [<PressableHighlight {...object3}>{((TrashIcon) => <TrashIcon size="xs" />)((require(4071) /* metro dependency 4071: TrashIcon */).TrashIcon)}</PressableHighlight>];
var pressableHighlightProps = {onPress: variantBinding.handlePressPrimary, underlayColor: env0_6};
buttonIcon = binding.buttonIcon;
items6 = [buttonIcon];
background = styles.background;
items6[1] = background;
space = (importDefault(697) /* metro dependency 697: native */).space;
PX_16 = space.PX_16;
value = PX_16 + 3;
items6[2] = {'position': 'absolute', 'right': null, 'bottom': 3, right: value + PX_8 + 40};
pressableHighlightProps.style = items6;
items5[1] = <PressableHighlight {...pressableHighlightProps}>{((PencilIcon) => <PencilIcon size="xs" />)((require(9646) /* metro dependency 9646: PencilIcon */).PencilIcon)}</PressableHighlight>;
value = <>{items5}</>;
r1 = value;
function GravityCustomStatusEntryRow({id, userId, customStatusExtra, renderForScreenshot, variant}) { // fn#112528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15071:1995, offset: 0x023cf895, size: 2519 bytes, params: 2, frame: 50
var object8;
var r11;
var r24;
var r26;
var r13;
var defaultImport2;
var object;
var isAndroid2;
var value13;
var animated;
var moduleValue9;
var getRelativeTimestamp;
var defaultImport6;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var object5;
const CutoutShape = (ClipViewModule).CutoutShape;
var RoundedRect;
var width;
var space;
var PX_16;
var height;
var radii;
var md;
var items8;
var object7;
const variant2 = variant;
const value3 = env0_13(renderForScreenshot);
const env0_4 = value3;
const styles = useStyles((require(7701) /* metro dependency 7701: ClientThemesOverrides */).useGradientBottom()?.backgroundColor ?? (importDefault(697) /* metro dependency 697: native */).colors.CARD_BACKGROUND_DEFAULT);
const value6 = ColorUtilsModule.hexWithOpacity(styles.background.backgroundColor, 0.6);
const user = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getUser(userId);
});
object8 = {id: customStatusExtra.emoji_id?.toString() === '0' ? null : customStatusExtra.emoji_id,
name: customStatusExtra.emoji_name ?? '', animated: customStatusExtra.emoji_animated};
const value10 = (UseDisplayNameStylesFontModule).useDisplayNameStylesFont({displayNameStyles: (UseDisplayNameStyles)({userId: userId})});
let r22 = customStatusExtra.status != null && customStatusExtra.status.length > 0;
if (object8.id != null) {
defaultImport2 = importDefault(8852) /* metro dependency 8852: ActivityEmoji */;
object = {};
isAndroid2 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
value13 = 40;
r11 = isAndroid2 ? 36 : value13;
object.lineHeight = r11;
object.fontSize = 36;
r11 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid() ? 0 : 4;
object.marginTop = r11;
animated = object8.animated;
r24 = ((Component) => <Component style={object} size={value13} animate={animated != null && animated} emoji={object8} />)(defaultImport2);
} else if (object8.name.length === 0) {
r24 = null;
} else {
value3 = environment.__proto__;
jsxRuntimeEnv1_10Binding = jsxRuntimeEnv1_10;
defaultImport2 = importDefault(8852) /* metro dependency 8852: ActivityEmoji */;
object = {};
variantBinding = variant;
object.onPress = variantBinding.handlePressPrimary;
object.underlayColor = env0_6;
binding = env0_4;
buttonIcon = binding.buttonIcon;
items7 = [buttonIcon];
background = styles.background;
items7[1] = background;
isAndroid2 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
value13 = 40;
r11 = isAndroid2 ? 36 : value13;
object.lineHeight = r11;
object.fontSize = 36;
r11 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid() ? 0 : 4;
object.marginTop = r11;
animated = object8.animated;
r24 = ((Component) => <Component style={object} size={value13} animate={animated != null && animated} emoji={object8} />)(defaultImport2);
}
const user2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getUser(userId);
});
const binding = env0_4;
const [property, env0_7] = variant2(binding.useState({'width': 0, 'height': 0}), 2);
const useMemo = binding.useMemo;
const hasStatus = Reflect.apply(useMemo, binding, [function() {
return variant.kind === 'ownStatus' ? {hasStatus: variant.hasStatus} : {hasStatus: true};
}, [variant]]).hasStatus;
const value21 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ICYMIStore], _fun112532, [id]);
const value22 = binding.useMemo(_fun112533, [styles.background, value6, renderForScreenshot, value3.buttonIcon,
variant.handlePressPrimary, variant.handlePressSecondary, variant.kind]);
if (user == null) {
return null;
}
const r29 = variant.kind === 'otherUserStatus' && (importDefault(21) /* metro dependency 21: SnowflakeUtils */).age(id) < 30 * (importDefault(672) /* metro dependency 672: Durations */).Millis.MINUTE;
object8 = {contentId: id, userId: userId, type: 'hotwheels_custom_status', renderForScreenshot: renderForScreenshot};
const title = value3.title;
const Text = (TextModule).Text;
const text = (
<Text
variant="text-md/semibold"
color="mobile-text-heading-primary"
style={value10 != null ? {fontFamily: value10} : undefined}
>
{(importDefault(3995) /* metro dependency 3995: UserUtils */).getName(user2)}
</Text>
);
const timestamp = value3.timestamp;
if (hasStatus) {
moduleValue9 = require(4788) /* metro dependency 4788: NotificationCenterUtils */;
getRelativeTimestamp = moduleValue9.getRelativeTimestamp;
defaultImport6 = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
r26 = (
<Text
lineClamp={1}
variant="text-sm/normal"
color="text-muted"
>
{Reflect.apply(getRelativeTimestamp, moduleValue9, [defaultImport6.extractTimestamp(id)])}
</Text>
);
} else {
r26 = hasStatus;
}
const items3 = [r26];
items3[1] = (
r29
? ((Component) => <Component />)(importDefault(14875) /* metro dependency 14875: SeparatorDot */)
: null
);
items3[2] = (
r29
? (
<Text
lineClamp={1}
variant="text-sm/medium"
color="text-brand"
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.tWnHcL)}
</Text>
)
: null
);
object8.title = (
<View style={title}>
{text}
<View style={timestamp}>
{items3}
</View>
</View>
);
object8.subtitle = (
variant.kind !== 'otherUserStatus'
? null
: (
<Text
variant="text-sm/normal"
lineClamp={1}
color="text-default"
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.fxOLPR)}
</Text>
)
);
object8.highlight = value21;
const value32 = ((Component) => <Component cutouts={[]} style={value3.bubbles}><View style={[value3.middleBubble,
styles.background]} /><View style={[value3.bottomBubble,
styles.background]} /></Component>)(ClipView);
const cardContainer = value3.cardContainer;
if (renderForScreenshot) {
r13 = [];
} else {
object5 = {};
RoundedRect = CutoutShape.RoundedRect;
object5.shape = RoundedRect;
width = property.width;
space = (importDefault(697) /* metro dependency 697: native */).space;
PX_16 = space.PX_16;
items7[2] = {'position': 'absolute', 'right': null, 'bottom': 3, right: PX_16};
object.style = items7;
items2 = [<PressableHighlight {...object}>{((ArrowAngleLeftUpIcon) => <ArrowAngleLeftUpIcon size="xs" />)((require(11209) /* metro dependency 11209: ArrowAngleLeftUpIcon */).ArrowAngleLeftUpIcon)}</PressableHighlight>];
var pressableHighlightProps = {onPress: variantBinding.handlePressSecondary, underlayColor: env0_6};
buttonIcon = binding.buttonIcon;
items3 = [buttonIcon];
background = styles.background;
items3[1] = background;
object5.x = width - PX_16 - 40 - 3;
height = property.height;
object5.y = height - 14 - 3;
object5.width = 46;
object5.height = 34;
radii = (importDefault(697) /* metro dependency 697: native */).radii;
md = radii.md;
object5.cornerRadius = md + 3;
items8 = [object5];
object7 = {};
RoundedRect = CutoutShape.RoundedRect;
object7.shape = RoundedRect;
width = property.width;
space = (importDefault(697) /* metro dependency 697: native */).space;
PX_16 = space.PX_16;
value = PX_16 + 3;
items3[2] = {'position': 'absolute', 'right': null, 'bottom': 3, right: value + PX_8 + 40};
pressableHighlightProps.style = items3;
items2[1] = <PressableHighlight {...pressableHighlightProps}>{((ReactionIcon) => <ReactionIcon size="xs" />)((require(7950) /* metro dependency 7950: ReactionIcon */).ReactionIcon)}</PressableHighlight>;
value = <>{items2}</>;
r1 = value;
object7.x = width - PX_16 - 86 - PX_8;
height = property.height;
object7.y = height - 14 - 3;
object7.width = 46;
object7.height = 34;
radii = (importDefault(697) /* metro dependency 697: native */).radii;
md = radii.md;
object7.cornerRadius = md + 3;
items8[1] = object7;
r13 = items8;
}
const PressableHighlight = (PressablesModule).PressableHighlight;
const pressableHighlightProps2 = {onLayout: onLayout_112534, onPress: variant.handlePressPrimary,
underlayColor: value6, style: [value3.card, styles.background, r24 == null ? value3.textOnly : null]};
const items11 = [value3.emojiTextContainer];
const items12 = [r24];
r22 = r22 && <Text style={value3.emojiText} variant="text-md/normal">{customStatusExtra.status}</Text>;
items12[1] = r22;
const value35 = !hasStatus;
items12[2] = (
hasStatus
? value35
: (
<Text variant="text-md/normal">
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['6ojWO0'])}
</Text>
)
);
return (
<ContentInventoryEntryContainer {...object8}>
{value32}
<View style={cardContainer}>
<ClipView cutouts={r13}>
<PressableHighlight {...pressableHighlightProps2}>
<View style={items11}>
{items12}
</View>
{
hasStatus
? value35
: (
<UploadPlaceholder />
)
}
</PressableHighlight>
</ClipView>
{value22}
</View>
</ContentInventoryEntryContainer>
);
function _fun112532() { // fn#112532, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15071:3032, offset: 0x023d02a3, size: 44 bytes, params: 1, frame: 10
return ICYMIStore.notificationItem() != null && environment.__proto__.id === id;
}
function _fun112533() { // fn#112533, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15071:3109, offset: 0x023d02cf, size: 861 bytes, params: 1, frame: 33
var r1;
var r0;
var variantBinding;
var value3;
var jsxRuntimeEnv1_10Binding;
const PressableHighlight = (PressablesModule).PressableHighlight;
var object2;
var binding;
var buttonIcon;
var items7;
var background;
var space;
var PX_16;
var items2;
var items3;
var value5;
var object4;
var items4;
var items5;
var items6;
var value;
if (renderForScreenshot) {
r0 = null;
} else {
if (variant.kind === 'ownStatus') {
value5 = environment.__proto__;
jsxRuntimeEnv1_10Binding = jsxRuntimeEnv1_10;
object4 = {};
variantBinding = variant;
object4.onPress = variantBinding.handlePressSecondary;
object4.underlayColor = env0_6;
binding = env0_4;
buttonIcon = binding.buttonIcon;
items4 = [buttonIcon];
background = styles.background;
items4[1] = background;
space = (importDefault(697) /* metro dependency 697: native */).space;
PX_16 = space.PX_16;
items4[2] = {'position': 'absolute', 'right': null, 'bottom': 3, right: PX_16};
object4.style = items4;
items5 = [
<PressableHighlight {...object4}>
{((TrashIcon) => <TrashIcon size="xs" />)((require(4071) /* metro dependency 4071: TrashIcon */).TrashIcon)}
</PressableHighlight>,
];
var pressableHighlightProps = {onPress: variantBinding.handlePressPrimary, underlayColor: env0_6};
buttonIcon = binding.buttonIcon;
items6 = [buttonIcon];
background = styles.background;
items6[1] = background;
space = (importDefault(697) /* metro dependency 697: native */).space;
PX_16 = space.PX_16;
value = PX_16 + 3;
items6[2] = {'position': 'absolute', 'right': null, 'bottom': 3, right: value + PX_8 + 40};
pressableHighlightProps.style = items6;
items5[1] = (
<PressableHighlight {...pressableHighlightProps}>
{((PencilIcon) => <PencilIcon size="xs" />)((require(9646) /* metro dependency 9646: PencilIcon */).PencilIcon)}
</PressableHighlight>
);
value = (
<>
{items5}
</>
);
r1 = value;
} else {
value3 = environment.__proto__;
jsxRuntimeEnv1_10Binding = jsxRuntimeEnv1_10;
object2 = {};
variantBinding = variant;
object2.onPress = variantBinding.handlePressPrimary;
object2.underlayColor = env0_6;
binding = env0_4;
buttonIcon = binding.buttonIcon;
items7 = [buttonIcon];
background = styles.background;
items7[1] = background;
space = (importDefault(697) /* metro dependency 697: native */).space;
PX_16 = space.PX_16;
items7[2] = {'position': 'absolute', 'right': null, 'bottom': 3, right: PX_16};
object2.style = items7;
items2 = [
<PressableHighlight {...object2}>
{((ArrowAngleLeftUpIcon) => <ArrowAngleLeftUpIcon size="xs" />)((require(11209) /* metro dependency 11209: ArrowAngleLeftUpIcon */).ArrowAngleLeftUpIcon)}
</PressableHighlight>,
];
var pressableHighlightProps = {onPress: variantBinding.handlePressSecondary, underlayColor: env0_6};
buttonIcon = binding.buttonIcon;
items3 = [buttonIcon];
background = styles.background;
items3[1] = background;
space = (importDefault(697) /* metro dependency 697: native */).space;
PX_16 = space.PX_16;
value = PX_16 + 3;
items3[2] = {'position': 'absolute', 'right': null, 'bottom': 3, right: value + PX_8 + 40};
pressableHighlightProps.style = items3;
items2[1] = (
<PressableHighlight {...pressableHighlightProps}>
{((ReactionIcon) => <ReactionIcon size="xs" />)((require(7950) /* metro dependency 7950: ReactionIcon */).ReactionIcon)}
</PressableHighlight>
);
value = (
<>
{items2}
</>
);
r1 = value;
}
r0 = r1;
}
return r0;
}
function GravityCustomStatusEntryRowOnLayout(a0) { // fn#112534, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15071:5582, owner: GravityCustomStatusEntryRow.onLayout, offset: 0x023d062c, size: 63 bytes, params: 2, frame: 12
env0_7({width: a0.nativeEvent.layout.width, height: a0.nativeEvent.layout.height});
}
r0 = r1;
}
return r0;
}
function GravityCustomStatusEntryRowOnLayout(a0) { // fn#112534, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15071:5582, owner: GravityCustomStatusEntryRow.onLayout, offset: 0x023d062c, size: 63 bytes, params: 2, frame: 12
env0_7({width: a0.nativeEvent.layout.width, height: a0.nativeEvent.layout.height});
}
global.__d(_fun112524, 14874, [57, 31, 27, 1878, 9569, 33, 697, 4501, 14815, 1305, 11158, 4573, 1244, 7701, 4000,
566, 4635, 8699, 8852, 477, 5278, 4071, 9646, 11209, 7950, 21, 672, 14871, 3995, 4788, 14875, 7599,
2]) /* metro module 14874, dependencies: [57, 31, 27, 1878, 9569, 33, 697, 4501, 14815, 1305, 11158, 4573, 1244, 7701, 4000, 566, 4635, 8699, 8852, 477, 5278, 4071, 9646, 11209, 7950, 21, 672, 14871, 3995, 4788, 14875, 7599, 2] */;
@@ -1,364 +1,440 @@
/* Metro module 14870; source: modules/icymi/native/content_inventory/ReactActionSheet.tsx; dependencies: [5, 57, 31, 27, 6276, 1881, 33, 1244, 4501, 697, 8529, 7152, 5278, 7950, 8370, 9580, 8533, 4003, 7701, 1478, 6805, 4573, 14867, 7704, 3963, 3868, 14863, 5475, 1423, 7981, 3995, 8341, 4058, 13678, 14816, 2] */
import Module00005 from '../../../../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import UseWindowDimensionsNative from '../../../screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */
import UseColorThemeBackground from '../../../client_themes/native/useColorThemeBackground.tsx'; /* Metro dependency 4003 */
import ThemedGradient from '../../../client_themes/native/ThemedGradient.tsx'; /* Metro dependency 7704 */
import ContentInventoryEntryRow from '../ContentInventoryEntryRow.tsx'; /* Metro dependency 14863 */
import Module14867 from '../../../../by-id/module-14867.jsx'; /* Metro dependency 14867 */
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 IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as EmojiConstantsModule from '../../../emojis/EmojiConstants.tsx'; /* Metro dependency 1881 */
import * as NativeModule from '../../../../external/discord_common/js/packages/design/native.tsx'; /* Metro dependency 3868 */
import * as ClientThemesUtilsModule from '../../../client_themes/native/ClientThemesUtils.tsx'; /* Metro dependency 3963 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as PressablesModule from '../../../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */
import * as ActionSheetConstantsModule from '../../../action_sheet/native/ActionSheetConstants.tsx'; /* Metro dependency 6276 */
import * as ActionSheetNativeModule from '../../../../design/components/Sheet/native/ActionSheet.native.tsx'; /* Metro dependency 6805 */
import * as ClientThemesOverridesModule from '../../../client_themes/native/ClientThemesOverrides.tsx'; /* Metro dependency 7701 */
import * as ReactionIconModule from '../../../../design/components/Icon/native/redesign/generated/ReactionIcon.tsx'; /* Metro dependency 7950 */
import * as EmojiPickerUtilsModule from '../../../emoji_picker/EmojiPickerUtils.tsx'; /* Metro dependency 8533 */
import * as ICYMIContextModule from '../ICYMIContext.tsx'; /* Metro dependency 14816 */
function _fun112494(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15067:6, offset: 0x023cd706, size: 700 bytes, params: 8, frame: 24
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = importDefault(57) /* metro dependency 57 */;
const env0_5 = importAll(31) /* metro dependency 31 */;
const env0_6 = (require(27) /* metro dependency 27 */).View;
const env0_7 = (require(6276) /* metro dependency 6276: ActionSheetConstants */).ACTION_SHEET_MAX_WIDTH;
const env0_8 = (require(1881) /* metro dependency 1881: EmojiConstants */).EmojiIntention;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_9 = value.jsx;
const env0_10 = value.jsxs;
const env0_11 = value.Fragment;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {header: {'width': '100%', 'display': 'flex', 'alignItems': 'center', 'padding': 8}};
object2.container = {gap: 12};
const object4 = {'borderRadius': null, 'overflow': 'hidden', 'borderWidth': 1};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
object = {header: {'width': '100%', 'display': 'flex', 'alignItems': 'center', 'padding': 8}};
object.container = {gap: 12};
const object3 = {'borderRadius': null, 'overflow': 'hidden', 'borderWidth': 1};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const BORDER_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_STRONG;
object4.borderColor = BORDER_STRONG;
object2.preview = object4;
object2.loading = {opacity: 0.5};
object2.base = {position: 'relative'};
object3.borderColor = BORDER_STRONG;
object.preview = object3;
object.loading = {opacity: 0.5};
object.base = {position: 'relative'};
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object2.contentContainer = {backgroundColor: BACKGROUND_BASE_LOW};
object2.inputRow = {'flexDirection': 'row', 'alignItems': 'center', 'gap': 8};
const object5 = {flex: 1};
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object2.input = object5;
object2.emojis = {'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'space-between'};
object2.submitting = {opacity: 0.6};
const object6 = {padding: 8};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object.contentContainer = {backgroundColor: BACKGROUND_BASE_LOW};
object.inputRow = {'flexDirection': 'row', 'alignItems': 'center', 'gap': 8};
const object7 = {flex: 1};
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object.input = object7;
object.emojis = {'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'space-between'};
object.submitting = {opacity: 0.6};
const object8 = {padding: 8};
object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
const REDESIGN_BUTTON_TERTIARY_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.REDESIGN_BUTTON_TERTIARY_BACKGROUND;
object6.backgroundColor = REDESIGN_BUTTON_TERTIARY_BACKGROUND;
object2.emoji = object6;
object2.defaultEmoji = {'width': 24, 'height': 24};
object2.emojiImage = {'resizeMode': 'contain', 'width': 24, 'height': 24};
object2.emojiText = {'lineHeight': 24, 'fontSize': 20, 'textAlign': 'center', 'paddingTop': 2};
const env0_12 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/content_inventory/ReactActionSheet.tsx');
object8.backgroundColor = REDESIGN_BUTTON_TERTIARY_BACKGROUND;
object.emoji = object8;
object.defaultEmoji = {'width': 24, 'height': 24};
object.emojiImage = {'resizeMode': 'contain', 'width': 24, 'height': 24};
object.emojiText = {'lineHeight': 24, 'fontSize': 20, 'textAlign': 'center', 'paddingTop': 2};
const env0_12 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/content_inventory/ReactActionSheet.tsx');
exports.default = ReactActionSheet;
exports.getStatusReplyContent = getStatusReplyContent;
}
function AddEmojiButton_112495({channel, onOpenPicker, onPressEmoji, disabled}) { // fn#112495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15067:1066, offset: 0x023cd9c2, size: 255 bytes, params: 2, frame: 20
const styles = useStyles();
const value2 = env0_5.useCallback(function() {
onOpenPicker();
var moduleValue = require(dependencyMap[10]);
var object = {'pickerIntention': null, 'autoFocus': false, 'startExpanded': false};
object.pickerIntention = EmojiIntention.REACTION;
object.onPressEmoji = onPressEmoji;
object.channel = channel;
object.reactionType = require(dependencyMap[11]).ReactionTypes.NORMAL;
moduleValue.openEmojiPickerActionSheet(object);
}, [channel, onPressEmoji, onOpenPicker]);
const PressableHighlight = (require(5278) /* metro dependency 5278: Pressables */).PressableHighlight;
const items2 = [styles.emoji];
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const lfIHs4 = (require(1244) /* metro dependency 1244: indexNative */).t.lfIHs4;
const ReactionIcon = (require(7950) /* metro dependency 7950: ReactionIcon */).ReactionIcon;
return (
<PressableHighlight
onPress={value2}
style={items2}
accessible
accessibilityLabel={Reflect.apply(string, intl, [lfIHs4])}
disabled={disabled}
>
<ReactionIcon size="md" />
</PressableHighlight>
);
}
function ReactActionSheetBase({content, author, channel, onPressEmoji, sendMessage}) { // fn#112497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15067:1549, offset: 0x023cdb3e, size: 1921 bytes, params: 2, frame: 56
var object3;
var r6;
var r11;
var r8;
var value6;
var value7;
var value8;
var value9;
var jsxRuntimeEnv0_11Binding;
var items7;
var TextInput;
var formatToPlainString;
var m3dK5W;
var object2;
var items8;
var value;
const styles = useStyles();
const env0_3 = styles;
const value3 = env0_4(env0_5.useState(false), 2);
const property = value3[0];
var env0_4 = property;
var env0_5 = value3[1];
const value4 = 'unknown';
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const value5 = Reflect.apply(string, intl, [t['5IEsGx']]);
const content_type = content.content_type;
const ContentInventoryEntryType = (require(8370) /* metro dependency 8370: ContentInventoryEntryType */).ContentInventoryEntryType;
const TOP_GAME = ContentInventoryEntryType.TOP_GAME;
if (TOP_GAME === content_type) {
value8 = 'hotwheels_gaming_activity';
value9 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.XC5YE5);
r6 = value8;
r11 = value9;
} else if ((require(8370) /* metro dependency 8370: ContentInventoryEntryType */).ContentInventoryEntryType.PLAYED_GAME === content_type) {
value8 = 'hotwheels_gaming_activity';
value9 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.XC5YE5);
r6 = value8;
r11 = value9;
} else if ((require(8370) /* metro dependency 8370: ContentInventoryEntryType */).ContentInventoryEntryType.CUSTOM_STATUS !== content_type) {
r6 = value4;
r11 = value5;
} else {
value6 = 'hotwheels_custom_status';
value7 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.umDRYM);
r6 = value6;
r11 = value7;
function AddEmojiButton_112495({channel, onOpenPicker, onPressEmoji, disabled}) { // fn#112495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15067:1066, offset: 0x023cd9c2, size: 255 bytes, params: 2, frame: 20
const styles = useStyles();
const value2 = ReactModule.useCallback(function() {
onOpenPicker();
var moduleValue = require(dependencyMap[10]);
var object = {'pickerIntention': null, 'autoFocus': false, 'startExpanded': false};
object.pickerIntention = EmojiIntention.REACTION;
object.onPressEmoji = onPressEmoji;
object.channel = channel;
object.reactionType = require(dependencyMap[11]).ReactionTypes.NORMAL;
moduleValue.openEmojiPickerActionSheet(object);
}, [channel, onPressEmoji, onOpenPicker]);
const PressableHighlight = (PressablesModule).PressableHighlight;
const items2 = [styles.emoji];
const intl = (IndexNativeModule).intl;
const string = intl.string;
const lfIHs4 = (IndexNativeModule).t.lfIHs4;
const ReactionIcon = (ReactionIconModule).ReactionIcon;
return (
<PressableHighlight
onPress={value2}
style={items2}
accessible
accessibilityLabel={Reflect.apply(string, intl, [lfIHs4])}
disabled={disabled}
>
<ReactionIcon size="md" />
</PressableHighlight>
);
}
const [property2, property3] = env0_4(env0_5.useState(''), 2);
const value13 = env0_5.useRef(null);
const [property4, env0_10] = env0_4(env0_5.useState(null), 2);
env0_5.useEffect(function() {
global.setTimeout(_fun112499, 500);
}, []);
const value17 = env0_5.useCallback(env0_3(_fun112502), [content.id, r6, property2, sendMessage]);
const value19 = env0_5.useCallback(_fun112503(), [content.id, r6, onPressEmoji]);
const value20 = (require(8533) /* metro dependency 8533: EmojiPickerUtils */).useFrequentlyUsedReactionEmojis(null);
const value21 = (importDefault(4003) /* metro dependency 4003: useColorThemeBackground */)();
const value22 = (require(7701) /* metro dependency 7701: ClientThemesOverrides */).useClientThemesOverride();
const value23 = env0_5.useMemo(_fun112507,
[(importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)().width]);
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
object3 = {};
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
object3.header = <View style={styles.header}><Text variant="heading-lg/semibold" color="mobile-text-heading-primary">{r11}</Text></View>;
const items2 = [styles.preview];
items2[1] = property4 == null ? styles.loading : null;
const defaultImport = importDefault(14867) /* metro dependency 14867 */;
const ThemedGradient = importDefault(7704) /* metro dependency 7704: ThemedGradient */;
const {LEVEL_7, LEVEL_8} = (require(3963) /* metro dependency 3963: ClientThemesUtils */).OverlayOpacity;
const themedGradient = <ThemedGradient absolute wide tall mix mixAmount={{dark: LEVEL_7, light: LEVEL_8}} />;
const ThemeContextProvider = (require(3868) /* metro dependency 3868: native */).ThemeContextProvider;
const view = <View style={items2}>{((Component) => <Component ref={value13} options={{'fileName': 'icymi_content',
'format': 'png',
'quality': 1}}><View style={styles.base}>{themedGradient}<ThemeContextProvider gradient={value21}><View style={[styles.contentContainer,
value22]}>{((Component) => <Component content={content} renderForScreenshot />)(importDefault(14863) /* metro dependency 14863: ContentInventoryEntryRow */)}</View></ThemeContextProvider></View></Component>)(defaultImport)}</View>;
if (property4 != null) {
jsxRuntimeEnv0_11Binding = jsxRuntimeEnv0_11;
items7 = [<View style={[styles.emojis, property ? styles.submitting : null]}>{value20.slice(0,
value23 - 1).map(_fun112508)}<AddEmojiButton_112495 onOpenPicker={onOpenPicker} channel={channel} onPressEmoji={value19} disabled={property} /></View>];
var viewBinding6Props = {style: styles.inputRow};
TextInput = (require(7981) /* metro dependency 7981: TextInputNative */).TextInput;
var textInputProps = {'containerStyle': null, 'grow': true, 'isRound': true, containerStyle: styles.input};
formatToPlainString = intl.formatToPlainString;
m3dK5W = t.m3dK5W;
object2 = {};
object2.username = (require(3995) /* metro dependency 3995: UserUtils */).getName(author);
textInputProps.placeholder = Reflect.apply(formatToPlainString, intl, [m3dK5W, object2]);
textInputProps.value = property2;
textInputProps.onChange = property3;
textInputProps.isDisabled = property;
items8 = [<TextInput {...textInputProps} />];
items8[1] = ((IconButton) => <IconButton accessibilityLabel={intl.string(t.oeb1vg)} icon={((SendMessageIcon) => <SendMessageIcon size="md" color={(importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.WHITE} />)((require(4058) /* metro dependency 4058: SendMessageIcon */).SendMessageIcon)} size="md" onPress={value17} disabled={property2.length === 0} loading={property} />)((require(8341) /* metro dependency 8341: IconButtonNative */).IconButton);
items7[1] = <View {...viewBinding6Props}>{items8}</View>;
r8 = <>{items7}</>;
} else {
value = importDefault(13678) /* metro dependency 13678: LoadingIndicator */;
value = ((Component) => <Component />)(value);
r8 = value;
}
return (
<ActionSheet {...object3}>
<View style={styles.container}>
{view}
{r8}
function ReactActionSheetBase({content, author, channel, onPressEmoji, sendMessage}) { // fn#112497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15067:1549, offset: 0x023cdb3e, size: 1921 bytes, params: 2, frame: 56
var object4;
var r6;
var r11;
var r8;
var value6;
var value7;
var value8;
var value9;
var jsxRuntimeEnv0_11Binding;
var items7;
var TextInput;
var formatToPlainString;
var m3dK5W;
var object;
var items8;
var value;
const styles = useStyles();
const styles2 = styles;
const value3 = property5(env0_5.useState(false), 2);
const property = value3[0];
var property5 = property;
var env0_5 = value3[1];
const value4 = 'unknown';
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const value5 = Reflect.apply(string, intl, [t['5IEsGx']]);
const content_type = content.content_type;
const ContentInventoryEntryType = (require(8370) /* metro dependency 8370: ContentInventoryEntryType */).ContentInventoryEntryType;
const TOP_GAME = ContentInventoryEntryType.TOP_GAME;
if (TOP_GAME === content_type) {
value8 = 'hotwheels_gaming_activity';
value9 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.XC5YE5);
r6 = value8;
r11 = value9;
} else if ((require(8370) /* metro dependency 8370: ContentInventoryEntryType */).ContentInventoryEntryType.PLAYED_GAME === content_type) {
value8 = 'hotwheels_gaming_activity';
value9 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.XC5YE5);
r6 = value8;
r11 = value9;
} else if ((require(8370) /* metro dependency 8370: ContentInventoryEntryType */).ContentInventoryEntryType.CUSTOM_STATUS !== content_type) {
r6 = value4;
r11 = value5;
} else {
value6 = 'hotwheels_custom_status';
value7 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.umDRYM);
r6 = value6;
r11 = value7;
}
const [property2, property3] = property5(env0_5.useState(''), 2);
const value13 = env0_5.useRef(null);
const [property4, env0_10] = property5(env0_5.useState(null), 2);
env0_5.useEffect(function() {
global.setTimeout(_fun112499, 500);
}, []);
const value17 = env0_5.useCallback(styles2(_fun112502), [content.id, r6, property2, sendMessage]);
const value19 = env0_5.useCallback(_fun112503(), [content.id, r6, onPressEmoji]);
const value20 = (EmojiPickerUtilsModule).useFrequentlyUsedReactionEmojis(null);
const value21 = (UseColorThemeBackground)();
const value22 = (ClientThemesOverridesModule).useClientThemesOverride();
const value23 = env0_5.useMemo(_fun112507,
[(UseWindowDimensionsNative)().width]);
const ActionSheet = (ActionSheetNativeModule).ActionSheet;
object4 = {};
const Text = (TextModule).Text;
object4.header = (
<View style={styles.header}>
<Text variant="heading-lg/semibold" color="mobile-text-heading-primary">
{r11}
</Text>
</View>
</ActionSheet>
);
}
function ReactActionSheet(a0) { // fn#112512, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15067:5319, offset: 0x023ce74a, size: 109 bytes, params: 2, frame: 19
if (a0 == null) {
throwTypeError(a0, "Cannot destructure 'undefined' or 'null'.", undefined);
throw undefined;
}
const value = copyDataProperties({}, a0, undefined, undefined);
const ICYMIContextProvider = (require(14816) /* metro dependency 14816: ICYMIContext */).ICYMIContextProvider;
return (
<ICYMIContextProvider>
<ReactActionSheetBase {...value} />
</ICYMIContextProvider>
);
}
function getStatusReplyContent({reply, username, status, emojiStr, attachments, isForward}) { // fn#112513, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15067:5460, offset: 0x023ce7b7, size: 384 bytes, params: 2, frame: 26
var value;
isForward = !(isForward === undefined) && isForward;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const formatToPlainString = intl.formatToPlainString;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const r8 = isForward ? Reflect.apply(formatToPlainString, intl, [t.S5JNyW,
{username: username}]) : Reflect.apply(formatToPlainString, intl, [t.XPQgL2, {username: username}]);
const items = [];
items.push('> -# *' + r8 + '*');
if (status.length > 0 || emojiStr.length > 0) {
items.push('> ' + emojiStr + ' ' + status);
}
if (attachments != null) {
if (attachments.length > 0) {
value = intl.formatToPlainString(t['JiNPo+'], {attachmentsCount: attachments.length});
value = '> -# *' + value + '*';
items.push(value);
);
const items2 = [styles.preview];
items2[1] = property4 == null ? styles.loading : null;
const defaultImport = Module14867;
const {LEVEL_7, LEVEL_8} = (ClientThemesUtilsModule).OverlayOpacity;
const themedGradient = (
<ThemedGradient
absolute
wide
tall
mix
mixAmount={{dark: LEVEL_7, light: LEVEL_8}}
/>
);
const ThemeContextProvider = (NativeModule).ThemeContextProvider;
const view = (
<View style={items2}>
{((Component) => <Component ref={value13} options={{'fileName': 'icymi_content', 'format': 'png',
'quality': 1}}><View style={styles.base}>{themedGradient}<ThemeContextProvider gradient={value21}><View style={[styles.contentContainer,
value22]}>{((Component) => <Component content={content} renderForScreenshot />)(ContentInventoryEntryRow)}</View></ThemeContextProvider></View></Component>)(defaultImport)}
</View>
);
if (property4 != null) {
jsxRuntimeEnv0_11Binding = jsxRuntimeEnv0_11;
items7 = [
<View style={[styles.emojis, property ? styles.submitting : null]}>
{value20.slice(0, value23 - 1).map(_fun112508)}
<AddEmojiButton_112495
onOpenPicker={onOpenPicker}
channel={channel}
onPressEmoji={value19}
disabled={property}
/>
</View>,
];
var viewBinding6Props = {style: styles.inputRow};
TextInput = (require(7981) /* metro dependency 7981: TextInputNative */).TextInput;
var textInputProps = {'containerStyle': null, 'grow': true, 'isRound': true, containerStyle: styles.input};
formatToPlainString = intl.formatToPlainString;
m3dK5W = t.m3dK5W;
object = {};
object.username = (require(3995) /* metro dependency 3995: UserUtils */).getName(author);
textInputProps.placeholder = Reflect.apply(formatToPlainString, intl, [m3dK5W, object]);
textInputProps.value = property2;
textInputProps.onChange = property3;
textInputProps.isDisabled = property;
items8 = [
<TextInput {...textInputProps} />,
];
items8[1] = ((IconButton) => <IconButton accessibilityLabel={intl.string(t.oeb1vg)} icon={((SendMessageIcon) => <SendMessageIcon size="md" color={(importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.WHITE} />)((require(4058) /* metro dependency 4058: SendMessageIcon */).SendMessageIcon)} size="md" onPress={value17} disabled={property2.length === 0} loading={property} />)((require(8341) /* metro dependency 8341: IconButtonNative */).IconButton);
items7[1] = (
<View {...viewBinding6Props}>
{items8}
</View>
);
r8 = (
<>
{items7}
</>
);
} else {
value = importDefault(13678) /* metro dependency 13678: LoadingIndicator */;
value = ((Component) => <Component />)(value);
r8 = value;
}
}
items.push(reply);
return items.join('\n');
}
return (
<ActionSheet {...object4}>
<View style={styles.container}>
{view}
{r8}
</View>
</ActionSheet>
);
function _fun112498() { // fn#112498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15067:2183, offset: 0x023ce2bf, size: 33 bytes, params: 1, frame: 13
global.setTimeout(_fun112499, 500);
function _fun112499() { // fn#112499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15067:2200, offset: 0x023ce2e0, size: 69 bytes, params: 1, frame: 13
var environment;
var r0;
let value = environment.__proto__;
const current = env1_9.current;
value = undefined;
if (current == null) {
r0 = value;
} else if (current.capture == null) {
r0 = value;
} else {
value = current.capture();
value = value.then(_fun112500);
r0 = value;
}
return r0;
function _fun112500(a0) { // fn#112500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15067:2280, offset: 0x023ce325, size: 19 bytes, params: 2, frame: 11
return env2_10(a0);
}
function _fun112498() { // fn#112498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15067:2183, offset: 0x023ce2bf, size: 33 bytes, params: 1, frame: 13
global.setTimeout(_fun112499, 500);
}
}
function* _fun112502() { // fn#112502, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15067:2326, offset: 0x023ce343, size: 197 bytes, params: 1, frame: 22
if (true) {
value = environment.__proto__;
env1_5(true);
var binding = env2_1;
var binding2 = env2_2;
var value4 = binding(binding2[15]);
value4.itemInteracted(require.id, View, 'press_reply_send');
binding(binding2[15]).feedItemActioned({itemId: require.id, itemType: View,
actionParameters: {'actionGestureType': 'press', 'actionTargetElement': 'reply_button',
'actionIntentType': 'reply', 'actionDestinationType': null}});
yield dependencyMap(ACTION_SHEET_MAX_WIDTH);
if (false) {
return undefined;
}
env1_5(false);
EmojiIntention('');
}
}
function _fun112503() { // fn#112503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15067:2635, offset: 0x023ce408, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun112505);
return _fun112506;
}
function _fun112507() { // fn#112507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15067:3134, offset: 0x023ce4ee, size: 59 bytes, params: 1, frame: 14
let Math = global.Math;
const min = Math.min;
const widthBinding = width;
let value = environment.__proto__;
value = Reflect.apply(min, Math, [widthBinding, ACTION_SHEET_MAX_WIDTH]);
Math = global.Math;
return Math.floor(value / 52);
}
function _fun112508(a0) { // fn#112508, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15067:3950, offset: 0x023ce529, size: 400 bytes, params: 2, frame: 24
var environment;
var r0;
var value;
const PressableHighlight = (require(5278) /* metro dependency 5278: Pressables */).PressableHighlight;
var object2;
var stylesBinding;
var object3;
var defaultImport;
var getEmojiURL;
const env0_0 = a0;
let id = a0.id;
if (id != null) {
value = environment.__proto__;
object2 = {onPress: onPress_112509};
stylesBinding = styles;
object2.style = stylesBinding.emoji;
object2.disabled = env0_4;
value = importDefault(5475) /* metro dependency 5475: FastImage */;
var valueProps = {style: [stylesBinding.defaultEmoji, stylesBinding.emojiImage]};
defaultImport = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
getEmojiURL = defaultImport.getEmojiURL;
id = a0.id;
valueProps.source = {uri: Reflect.apply(getEmojiURL, defaultImport, [{id: id, animated: a0.animated,
size: 48}])};
id = a0.id;
value = <PressableHighlight {...object2}>{((Component) => <Component {...valueProps} key={id} />)(value)}</PressableHighlight>;
r0 = value;
} else {
value = environment.__proto__;
stylesBinding = styles;
value = <PressableHighlight onPress={onPress_112510} style={stylesBinding.emoji} disabled={env0_4}>{((Text) => <Text variant="text-md/medium" color="interactive-text-default" style={[stylesBinding.defaultEmoji,
stylesBinding.emojiText]} allowFontScaling={false}>{a0.surrogates}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}</PressableHighlight>;
r0 = value;
}
return r0;
}
function onOpenPicker() { // fn#112511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15067:4447, owner: ReactActionSheetBase.onOpenPicker, offset: 0x023ce6d0, size: 122 bytes, params: 1, frame: 21
let value = environment.__proto__;
value = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
const itemInteracted = value.itemInteracted;
const contentBinding = content;
Reflect.apply(itemInteracted, value, [contentBinding.id, env0_6, 'press_reply_reaction_picker']);
(importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */).feedItemActioned({itemId: contentBinding.id,
itemType: env0_6, actionParameters: {'actionGestureType': 'press',
'actionTargetElement': 'reaction_picker_button', 'actionIntentType': 'open', 'actionDestinationType': null}});
}
function _fun112499() { // fn#112499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15067:2200, offset: 0x023ce2e0, size: 69 bytes, params: 1, frame: 13
var environment;
var r0;
let value = environment.__proto__;
const current = env1_9.current;
value = undefined;
if (current == null) {
r0 = value;
} else if (current.capture == null) {
r0 = value;
} else {
value = current.capture();
value = value.then(_fun112500);
r0 = value;
}
return r0;
}
function* _fun112505(a0) { // fn#112505, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15067:2655, offset: 0x023ce437, size: 183 bytes, params: 2, frame: 22
if (true) {
value = environment.__proto__.__proto__;
env2_5(true);
var binding = env3_1;
var binding2 = env3_2;
var value4 = binding(binding2[15]);
value4.itemInteracted(require.id, View, 'press_emoji_send');
binding(binding2[15]).feedItemActioned({itemId: require.id, itemType: View,
actionParameters: {'actionGestureType': 'press', 'actionTargetElement': 'reaction_picker_button',
'actionIntentType': 'open', 'actionDestinationType': null}});
yield importDefault(a0);
if (false) {
return undefined;
function* _fun112502() { // fn#112502, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15067:2326, offset: 0x023ce343, size: 197 bytes, params: 1, frame: 22
if (true) {
value = environment.__proto__;
env1_5(true);
var binding = env2_1;
var binding2 = env2_2;
var value4 = binding(binding2[15]);
value4.itemInteracted(require.id, View, 'press_reply_send');
binding(binding2[15]).feedItemActioned({itemId: require.id, itemType: View,
actionParameters: {'actionGestureType': 'press', 'actionTargetElement': 'reply_button',
'actionIntentType': 'reply', 'actionDestinationType': null}});
yield dependencyMap(ACTION_SHEET_MAX_WIDTH);
if (false) {
return undefined;
}
env1_5(false);
EmojiIntention('');
}
}
env2_5(false);
function _fun112503() { // fn#112503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15067:2635, offset: 0x023ce408, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun112505);
return _fun112506;
function* _fun112505(a0) { // fn#112505, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15067:2655, offset: 0x023ce437, size: 183 bytes, params: 2, frame: 22
if (true) {
value = environment.__proto__.__proto__;
env2_5(true);
var binding = env3_1;
var binding2 = env3_2;
var value4 = binding(binding2[15]);
value4.itemInteracted(require.id, View, 'press_emoji_send');
binding(binding2[15]).feedItemActioned({itemId: require.id, itemType: View,
actionParameters: {'actionGestureType': 'press', 'actionTargetElement': 'reaction_picker_button',
'actionIntentType': 'open', 'actionDestinationType': null}});
yield importDefault(a0);
if (false) {
return undefined;
}
env2_5(false);
}
}
function _fun112506() { // fn#112506, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15067:2945, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
}
function _fun112507() { // fn#112507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15067:3134, offset: 0x023ce4ee, size: 59 bytes, params: 1, frame: 14
let Math = global.Math;
const min = Math.min;
const widthBinding = width;
let value = environment.__proto__;
value = Reflect.apply(min, Math, [widthBinding, ACTION_SHEET_MAX_WIDTH]);
Math = global.Math;
return Math.floor(value / 52);
}
function _fun112508(a0) { // fn#112508, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15067:3950, offset: 0x023ce529, size: 400 bytes, params: 2, frame: 24
var environment;
var r0;
var value;
const PressableHighlight = (PressablesModule).PressableHighlight;
var object;
var stylesBinding;
var object4;
var defaultImport;
var getEmojiURL;
const env0_0 = a0;
let id = a0.id;
if (id != null) {
value = environment.__proto__;
object = {onPress: onPress_112509};
stylesBinding = styles;
object.style = stylesBinding.emoji;
object.disabled = Module00057;
value = importDefault(5475) /* metro dependency 5475: FastImage */;
var valueProps = {style: [stylesBinding.defaultEmoji, stylesBinding.emojiImage]};
defaultImport = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
getEmojiURL = defaultImport.getEmojiURL;
id = a0.id;
valueProps.source = {uri: Reflect.apply(getEmojiURL, defaultImport, [{id: id, animated: a0.animated,
size: 48}])};
id = a0.id;
value = (
<PressableHighlight {...object}>
{((Component) => <Component {...valueProps} key={id} />)(value)}
</PressableHighlight>
);
r0 = value;
} else {
value = environment.__proto__;
stylesBinding = styles;
value = (
<PressableHighlight
onPress={onPress_112510}
style={stylesBinding.emoji}
disabled={Module00057}
>
{((Text) => <Text variant="text-md/medium" color="interactive-text-default" style={[stylesBinding.defaultEmoji,
stylesBinding.emojiText]} allowFontScaling={false}>{a0.surrogates}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}
</PressableHighlight>
);
r0 = value;
}
return r0;
function onPress_112509() { // fn#112509, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15067:4003, offset: 0x023ce6b9, size: 23 bytes, params: 1, frame: 11
return env1_11(env0_0);
}
function onPress_112510() { // fn#112510, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15067:4215, offset: 0x023ce6b9, size: 23 bytes, params: 1, frame: 11
return env1_11(env0_0);
}
}
function onOpenPicker() { // fn#112511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15067:4447, owner: ReactActionSheetBase.onOpenPicker, offset: 0x023ce6d0, size: 122 bytes, params: 1, frame: 21
let value = environment.__proto__;
value = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
const itemInteracted = value.itemInteracted;
const contentBinding = content;
Reflect.apply(itemInteracted, value, [contentBinding.id, ReactNativeModule.View, 'press_reply_reaction_picker']);
(importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */).feedItemActioned({itemId: contentBinding.id,
itemType: ReactNativeModule.View, actionParameters: {'actionGestureType': 'press',
'actionTargetElement': 'reaction_picker_button', 'actionIntentType': 'open', 'actionDestinationType': null}});
}
}
function ReactActionSheet(a0) { // fn#112512, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15067:5319, offset: 0x023ce74a, size: 109 bytes, params: 2, frame: 19
if (a0 == null) {
throwTypeError(a0, "Cannot destructure 'undefined' or 'null'.", undefined);
throw undefined;
}
const value = copyDataProperties({}, a0, undefined, undefined);
const ICYMIContextProvider = (ICYMIContextModule).ICYMIContextProvider;
return (
<ICYMIContextProvider>
<ReactActionSheetBase {...value} />
</ICYMIContextProvider>
);
}
function getStatusReplyContent({reply, username, status, emojiStr, attachments, isForward}) { // fn#112513, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15067:5460, offset: 0x023ce7b7, size: 384 bytes, params: 2, frame: 26
var value;
isForward = !(isForward === undefined) && isForward;
const intl = (IndexNativeModule).intl;
const formatToPlainString = intl.formatToPlainString;
const t = (IndexNativeModule).t;
const r8 = isForward ? Reflect.apply(formatToPlainString, intl, [t.S5JNyW,
{username: username}]) : Reflect.apply(formatToPlainString, intl, [t.XPQgL2, {username: username}]);
const items2 = [];
items2.push('> -# *' + r8 + '*');
if (status.length > 0 || emojiStr.length > 0) {
items2.push('> ' + emojiStr + ' ' + status);
}
if (attachments != null) {
if (attachments.length > 0) {
value = intl.formatToPlainString(t['JiNPo+'], {attachmentsCount: attachments.length});
value = '> -# *' + value + '*';
items2.push(value);
}
}
items2.push(reply);
return items2.join('\n');
}
}
function onPress_112509() { // fn#112509, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15067:4003, offset: 0x023ce6b9, size: 23 bytes, params: 1, frame: 11
return env1_11(env0_0);
}
function _fun112500(a0) { // fn#112500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15067:2280, offset: 0x023ce325, size: 19 bytes, params: 2, frame: 11
return env2_10(a0);
}
global.__d(_fun112494, 14870, [5, 57, 31, 27, 6276, 1881, 33, 1244, 4501, 697, 8529, 7152, 5278, 7950, 8370, 9580,
8533, 4003, 7701, 1478, 6805, 4573, 14867, 7704, 3963, 3868, 14863, 5475, 1423, 7981, 3995, 8341, 4058, 13678,
14816,
2]) /* metro module 14870, dependencies: [5, 57, 31, 27, 6276, 1881, 33, 1244, 4501, 697, 8529, 7152, 5278, 7950, 8370, 9580, 8533, 4003, 7701, 1478, 6805, 4573, 14867, 7704, 3963, 3868, 14863, 5475, 1423, 7981, 3995, 8341, 4058, 13678, 14816, 2] */;
@@ -1,242 +1,254 @@
/* Metro module 14869; source: modules/icymi/native/content_inventory/useReplyActions.tsx; dependencies: [5, 31, 1379, 4645, 1878, 1881, 4503, 33, 566, 8370, 7879, 4603, 14870, 3995, 7076, 7067, 14866, 4080, 3857, 1244, 13400, 9580, 8529, 7152, 14870, 1962, 2] */
import Module00005 from '../../../../by-id/module-00005.js'; /* Metro dependency 5 */
import ChannelStore from '../../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import UserStore from '../../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as EmojiConstantsModule from '../../../emojis/EmojiConstants.tsx'; /* Metro dependency 1881 */
import * as MessageConstantsModule from '../../../messages/MessageConstants.tsx'; /* Metro dependency 4503 */
import * as DraftStoreModule from '../../../../stores/DraftStore.tsx'; /* Metro dependency 4645 */
import * as MessageReactionsTypesModule from '../../../messages/MessageReactionsTypes.tsx'; /* Metro dependency 7152 */
import * as ContentInventoryEntryTypeModule from '../../../../external/discord_common/js/shared/shared-constants/ContentInventoryEntryType.tsx'; /* Metro dependency 8370 */
import * as OpenEmojiPickerActionSheetModule from '../../../emoji_picker/native/openEmojiPickerActionSheet.tsx'; /* Metro dependency 8529 */
function _fun112480(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112480, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15066:6, offset: 0x023ccd4c, size: 256 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const env0_6 = (require(4645) /* metro dependency 4645: DraftStore */).DraftType;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_8 = (require(1881) /* metro dependency 1881: EmojiConstants */).EmojiIntention;
const env0_9 = (require(4503) /* metro dependency 4503: MessageConstants */).MessageSendLocation;
const env0_10 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/content_inventory/useReplyActions.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/content_inventory/useReplyActions.tsx');
exports.useReplyActions = useReplyActions;
}
function useReplyActions({content}) { // fn#112481, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15066:336, offset: 0x023cce4c, size: 501 bytes, params: 2, frame: 21
let value = undefined;
const user = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getUser(content.author_id);
});
const value3 = 'unknown';
const content_type = content.content_type;
const ContentInventoryEntryType = (require(8370) /* metro dependency 8370: ContentInventoryEntryType */).ContentInventoryEntryType;
const TOP_GAME = ContentInventoryEntryType.TOP_GAME;
const r1 = TOP_GAME === content_type || ContentInventoryEntryType.PLAYED_GAME === content_type ? 'hotwheels_gaming_activity' : ContentInventoryEntryType.CUSTOM_STATUS !== content_type ? value3 : 'hotwheels_custom_status';
const channel = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], _fun112483);
const value6 = channel != null;
const env0_4 = value6;
let binding = env0_4;
binding.useEffect(_fun112484, [value6, channel == null ? value : channel.id]);
binding = env0_4;
let useCallback = binding.useCallback;
value = _fun112486();
value = Reflect.apply(useCallback, binding, [value, [user, content]]);
const value7 = binding.useCallback(_fun112491, [content.id, r1, value]);
const value8 = binding.useCallback(_fun112492, [channel, value7]);
useCallback = binding.useCallback;
return {openReplyActionSheet: Reflect.apply(useCallback, binding, [_fun112493, [user, content, value7, value]]),
openEmojiPicker: value8};
}
function _fun112483() { // fn#112483, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15066:708, offset: 0x023cd062, size: 54 bytes, params: 1, frame: 12
if (user == null) {
return null;
}
const getDMFromUserId = ChannelStore.getDMFromUserId;
return ChannelStore.getChannel(Reflect.apply(getDMFromUserId, ChannelStore, [user.id]));
}
function _fun112484() { // fn#112484, offset: 0x023cd098, size: 25 bytes, params: 1, frame: 1
if (env0_4) {
return function() {
var value2 = undefined;
var defaultImport = importDefault(dependencyMap[10]);
defaultImport.clearAll(channel == null ? value2 : channel.id, DraftType.ChannelMessage);
return value2;
};
}
}
function _fun112486() { // fn#112486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15066:940, offset: 0x023cd0fd, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun112488);
return _fun112490;
}
function _fun112491(a0) { // fn#112491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15066:1864, offset: 0x023cd463, size: 180 bytes, params: 2, frame: 22
let value = environment.__proto__;
value = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
const itemInteracted = value.itemInteracted;
const contentBinding = content;
Reflect.apply(itemInteracted, value, [contentBinding.id, env0_2, 'press_emoji_send']);
(importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */).feedItemActioned({itemId: contentBinding.id,
itemType: env0_2, actionParameters: {'actionGestureType': 'press',
'actionTargetElement': 'reaction_reply_button', 'actionIntentType': 'react', 'actionDestinationType': null}});
return env0_5(a0.id != null ? ':' + a0.name + ':' : a0.surrogates);
}
function _fun112492() { // fn#112492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15066:2184, offset: 0x023cd517, size: 140 bytes, params: 1, frame: 16
const value2 = undefined;
const openEmojiPickerActionSheetModule = require(8529) /* metro dependency 8529: openEmojiPickerActionSheet */;
const openEmojiPickerActionSheet = openEmojiPickerActionSheetModule.openEmojiPickerActionSheet;
const object2 = {'pickerIntention': null, 'autoFocus': false, 'startExpanded': false};
const REACTION = EmojiIntention.REACTION;
object2.pickerIntention = REACTION;
object2.onPressEmoji = env0_6;
object2.channel = channel ?? value2;
const ReactionTypes = (require(7152) /* metro dependency 7152: MessageReactionsTypes */).ReactionTypes;
const NORMAL = ReactionTypes.NORMAL;
object2.reactionType = NORMAL;
Reflect.apply(openEmojiPickerActionSheet, openEmojiPickerActionSheetModule, [object2]);
return value2;
}
function _fun112493() { // fn#112493, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15066:2420, offset: 0x023cd5a3, size: 355 bytes, params: 1, frame: 22
var r9;
var contentBinding;
var content_type;
var value2;
const ContentInventoryEntryType = require(dependencyMap[9]).ContentInventoryEntryType;
var defaultImport;
var itemInteracted;
var id;
var defaultImport2;
var feedItemActioned;
var defaultImport3;
if (user != null) {
content_type = content.content_type;
value2 = environment.__proto__;
r9 = ContentInventoryEntryType.CUSTOM_STATUS === content_type ? 'hotwheels_custom_status' : ContentInventoryEntryType.TOP_GAME === content_type ? 'hotwheels_gaming_activity' : ContentInventoryEntryType.PLAYED_GAME !== content_type ? 'unknown' : 'hotwheels_gaming_activity';
defaultImport = importDefault(dependencyMap[21]);
itemInteracted = defaultImport.itemInteracted;
contentBinding = content;
id = contentBinding.id;
Reflect.apply(itemInteracted, defaultImport, [id, r9, 'press_reply_react']);
defaultImport2 = importDefault(dependencyMap[21]);
feedItemActioned = defaultImport2.feedItemActioned;
id = contentBinding.id;
Reflect.apply(feedItemActioned, defaultImport2, [{itemId: id, itemType: r9,
actionParameters: {'actionGestureType': 'press', 'actionTargetElement': 'item_container',
'actionIntentType': 'open', 'actionDestinationType': null}}]);
defaultImport3 = importDefault(dependencyMap[17]);
defaultImport3.openLazy(require(dependencyMap[25])(dependencyMap[24], dependencyMap.paths), 'ReactActionSheet',
{content: contentBinding, author: user, sendMessage: env0_5, onPressEmoji: env0_6});
}
}
function* _fun112488(a0) { // fn#112488, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15066:960, offset: 0x023cd12c, size: 778 bytes, params: 2, frame: 27
var environment;
var object2;
var value10;
var getStatusReplyContent;
var extra;
var emoji_name;
var value11;
var binding2;
var value17;
var binding3;
var open;
var intl;
if (true) {
value = environment.__proto__.__proto__;
if (importDefault != null) {
var binding = env3_1;
var value4 = binding(env3_2[11]);
var getOrEnsurePrivateChannel = value4.getOrEnsurePrivateChannel;
yield Reflect.apply(getOrEnsurePrivateChannel, value4, [importDefault.id]);
var value5 = undefined;
if (false) {
return value5;
function useReplyActions({content}) { // fn#112481, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15066:336, offset: 0x023cce4c, size: 501 bytes, params: 2, frame: 21
let value = undefined;
const user = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getUser(content.author_id);
});
const value3 = 'unknown';
const content_type = content.content_type;
const ContentInventoryEntryType = (ContentInventoryEntryTypeModule).ContentInventoryEntryType;
const TOP_GAME = ContentInventoryEntryType.TOP_GAME;
const r1 = TOP_GAME === content_type || ContentInventoryEntryType.PLAYED_GAME === content_type ? 'hotwheels_gaming_activity' : ContentInventoryEntryType.CUSTOM_STATUS !== content_type ? value3 : 'hotwheels_custom_status';
const channel = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], _fun112483);
const value6 = channel != null;
const env0_4 = value6;
let binding = env0_4;
binding.useEffect(_fun112484, [value6, channel == null ? value : channel.id]);
binding = env0_4;
let useCallback = binding.useCallback;
value = _fun112486();
value = Reflect.apply(useCallback, binding, [value, [user, content]]);
const value7 = binding.useCallback(_fun112491, [content.id, r1, value]);
const value8 = binding.useCallback(_fun112492, [channel, value7]);
useCallback = binding.useCallback;
return {openReplyActionSheet: Reflect.apply(useCallback, binding, [_fun112493, [user, content, value7, value]]),
openEmojiPicker: value8};
function _fun112483() { // fn#112483, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15066:708, offset: 0x023cd062, size: 54 bytes, params: 1, frame: 12
if (user == null) {
return null;
}
binding = env3_5;
var channel = binding.getChannel(value5);
if (channel == null) {
binding = env3_1;
binding3 = env3_2;
value = binding(binding3[17]);
value.hideActionSheet();
value = binding(binding3[18]);
open = value.open;
object2 = {key: 'content_inventory_message_sent'};
binding = env3_0;
intl = binding(binding3[19]).intl;
object2.content = intl.string(binding(binding3[19]).t.fjcCk5);
object2.icon = icon_112489;
Reflect.apply(open, value, [object2]);
return undefined;
}
var content_type = require.content_type;
binding = env3_0;
var ContentInventoryEntryType = binding(env3_2[9]).ContentInventoryEntryType;
var CUSTOM_STATUS = ContentInventoryEntryType.CUSTOM_STATUS;
if (content_type === CUSTOM_STATUS) {
binding = env3_0;
value10 = binding(env3_2[12]);
getStatusReplyContent = value10.getStatusReplyContent;
object2 = {};
extra = require.extra;
object2.status = extra.status;
extra = require.extra;
emoji_name = extra.emoji_name;
value11 = '';
object2.emojiStr = emoji_name != null ? require.extra.emoji_id == null ? value11 + require.extra.emoji_name : global.String(require.extra.emoji_id) !== '0' ? '`:' + require.extra.emoji_name + ':`' : value11 + require.extra.emoji_name : value11;
object2.reply = a0;
binding = env3_1;
binding2 = env3_2;
object2.username = binding(binding2[13]).getName(importDefault);
extra = require.extra;
object2.attachments = extra.attachments;
value = Reflect.apply(getStatusReplyContent, value10, [object2]);
value = binding(binding2[14]).parse(channel, value);
value17 = binding(binding2[15]);
yield value17.sendMessage(channel.id, value, false, {location: env3_9.ICYMI});
value = undefined;
if (false) {
return value;
}
binding = env3_1;
binding3 = env3_2;
value = binding(binding3[17]);
value.hideActionSheet();
value = binding(binding3[18]);
open = value.open;
object2 = {key: 'content_inventory_message_sent'};
binding = env3_0;
intl = binding(binding3[19]).intl;
object2.content = intl.string(binding(binding3[19]).t.fjcCk5);
object2.icon = icon_112489;
Reflect.apply(open, value, [object2]);
return undefined;
}
binding = env3_0;
var value8 = binding(env3_2[16]);
yield value8.sendMessageWithEmbed({channel: channel, content: a0, entry: require, whenReady: false,
doNotNotifyOnError: false, location: env3_9.ICYMI});
value = undefined;
if (false) {
return value;
}
binding = env3_1;
binding3 = env3_2;
value = binding(binding3[17]);
value.hideActionSheet();
value = binding(binding3[18]);
open = value.open;
object2 = {key: 'content_inventory_message_sent'};
binding = env3_0;
intl = binding(binding3[19]).intl;
object2.content = intl.string(binding(binding3[19]).t.fjcCk5);
object2.icon = icon_112489;
Reflect.apply(open, value, [object2]);
const channelStoreBinding = ChannelStore;
const getDMFromUserId = channelStoreBinding.getDMFromUserId;
return channelStoreBinding.getChannel(Reflect.apply(getDMFromUserId, channelStoreBinding, [user.id]));
}
function _fun112484() { // fn#112484, offset: 0x023cd098, size: 25 bytes, params: 1, frame: 1
if (env0_4) {
return function() {
var value2 = undefined;
var defaultImport = importDefault(dependencyMap[10]);
defaultImport.clearAll(channel == null ? value2 : channel.id, DraftType.ChannelMessage);
return value2;
};
}
}
function _fun112486() { // fn#112486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15066:940, offset: 0x023cd0fd, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun112488);
return _fun112490;
function* _fun112488(a0) { // fn#112488, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15066:960, offset: 0x023cd12c, size: 778 bytes, params: 2, frame: 27
var environment;
var object;
var value10;
var getStatusReplyContent;
var extra;
var emoji_name;
var value11;
var binding2;
var value17;
var binding3;
var open;
var intl;
if (true) {
value = environment.__proto__.__proto__;
if (importDefault != null) {
var binding = env3_1;
var value4 = binding(env3_2[11]);
var getOrEnsurePrivateChannel = value4.getOrEnsurePrivateChannel;
yield Reflect.apply(getOrEnsurePrivateChannel, value4, [importDefault.id]);
var value5 = undefined;
if (false) {
return value5;
}
binding = env3_5;
var channel = binding.getChannel(value5);
if (channel == null) {
binding = env3_1;
binding3 = env3_2;
value = binding(binding3[17]);
value.hideActionSheet();
value = binding(binding3[18]);
open = value.open;
object = {key: 'content_inventory_message_sent'};
binding = env3_0;
intl = binding(binding3[19]).intl;
object.content = intl.string(binding(binding3[19]).t.fjcCk5);
object.icon = icon_112489;
Reflect.apply(open, value, [object]);
return undefined;
}
var content_type = require.content_type;
binding = env3_0;
var ContentInventoryEntryType = binding(env3_2[9]).ContentInventoryEntryType;
var CUSTOM_STATUS = ContentInventoryEntryType.CUSTOM_STATUS;
if (content_type === CUSTOM_STATUS) {
binding = env3_0;
value10 = binding(env3_2[12]);
getStatusReplyContent = value10.getStatusReplyContent;
object = {};
extra = require.extra;
object.status = extra.status;
extra = require.extra;
emoji_name = extra.emoji_name;
value11 = '';
object.emojiStr = emoji_name != null ? require.extra.emoji_id == null ? value11 + require.extra.emoji_name : global.String(require.extra.emoji_id) !== '0' ? '`:' + require.extra.emoji_name + ':`' : value11 + require.extra.emoji_name : value11;
object.reply = a0;
binding = env3_1;
binding2 = env3_2;
object.username = binding(binding2[13]).getName(importDefault);
extra = require.extra;
object.attachments = extra.attachments;
value = Reflect.apply(getStatusReplyContent, value10, [object]);
value = binding(binding2[14]).parse(channel, value);
value17 = binding(binding2[15]);
yield value17.sendMessage(channel.id, value, false, {location: env3_9.ICYMI});
value = undefined;
if (false) {
return value;
}
binding = env3_1;
binding3 = env3_2;
value = binding(binding3[17]);
value.hideActionSheet();
value = binding(binding3[18]);
open = value.open;
object = {key: 'content_inventory_message_sent'};
binding = env3_0;
intl = binding(binding3[19]).intl;
object.content = intl.string(binding(binding3[19]).t.fjcCk5);
object.icon = icon_112489;
Reflect.apply(open, value, [object]);
return undefined;
}
binding = env3_0;
var value8 = binding(env3_2[16]);
yield value8.sendMessageWithEmbed({channel: channel, content: a0, entry: require, whenReady: false,
doNotNotifyOnError: false, location: env3_9.ICYMI});
value = undefined;
if (false) {
return value;
}
binding = env3_1;
binding3 = env3_2;
value = binding(binding3[17]);
value.hideActionSheet();
value = binding(binding3[18]);
open = value.open;
object = {key: 'content_inventory_message_sent'};
binding = env3_0;
intl = binding(binding3[19]).intl;
object.content = intl.string(binding(binding3[19]).t.fjcCk5);
object.icon = icon_112489;
Reflect.apply(open, value, [object]);
}
}
function icon_112489() { // fn#112489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15066:1748, offset: 0x023cd436, size: 45 bytes, params: 1, frame: 13
const binding = env4_10;
const ChatCheckIcon = env4_0(env4_2[20]).ChatCheckIcon;
return binding(ChatCheckIcon, {});
}
}
function _fun112490() { // fn#112490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15066:1794, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
}
function _fun112491(a0) { // fn#112491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15066:1864, offset: 0x023cd463, size: 180 bytes, params: 2, frame: 22
let value = environment.__proto__;
value = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
const itemInteracted = value.itemInteracted;
const contentBinding = content;
Reflect.apply(itemInteracted, value, [contentBinding.id, env0_2, 'press_emoji_send']);
(importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */).feedItemActioned({itemId: contentBinding.id,
itemType: env0_2, actionParameters: {'actionGestureType': 'press',
'actionTargetElement': 'reaction_reply_button', 'actionIntentType': 'react', 'actionDestinationType': null}});
return env0_5(a0.id != null ? ':' + a0.name + ':' : a0.surrogates);
}
function _fun112492() { // fn#112492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15066:2184, offset: 0x023cd517, size: 140 bytes, params: 1, frame: 16
const value2 = undefined;
const openEmojiPickerActionSheet = OpenEmojiPickerActionSheetModule.openEmojiPickerActionSheet;
const object = {'pickerIntention': null, 'autoFocus': false, 'startExpanded': false};
const REACTION = EmojiIntention.REACTION;
object.pickerIntention = REACTION;
object.onPressEmoji = DraftStoreModule.DraftType;
object.channel = channel ?? value2;
const ReactionTypes = (MessageReactionsTypesModule).ReactionTypes;
const NORMAL = ReactionTypes.NORMAL;
object.reactionType = NORMAL;
Reflect.apply(openEmojiPickerActionSheet, OpenEmojiPickerActionSheetModule, [object]);
return value2;
}
function _fun112493() { // fn#112493, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15066:2420, offset: 0x023cd5a3, size: 355 bytes, params: 1, frame: 22
var r9;
var contentBinding;
var content_type;
var value2;
const ContentInventoryEntryType = require(dependencyMap[9]).ContentInventoryEntryType;
var defaultImport;
var itemInteracted;
var id;
var defaultImport2;
var feedItemActioned;
var defaultImport3;
if (user != null) {
content_type = content.content_type;
value2 = environment.__proto__;
r9 = ContentInventoryEntryType.CUSTOM_STATUS === content_type ? 'hotwheels_custom_status' : ContentInventoryEntryType.TOP_GAME === content_type ? 'hotwheels_gaming_activity' : ContentInventoryEntryType.PLAYED_GAME !== content_type ? 'unknown' : 'hotwheels_gaming_activity';
defaultImport = importDefault(dependencyMap[21]);
itemInteracted = defaultImport.itemInteracted;
contentBinding = content;
id = contentBinding.id;
Reflect.apply(itemInteracted, defaultImport, [id, r9, 'press_reply_react']);
defaultImport2 = importDefault(dependencyMap[21]);
feedItemActioned = defaultImport2.feedItemActioned;
id = contentBinding.id;
Reflect.apply(feedItemActioned, defaultImport2, [{itemId: id, itemType: r9,
actionParameters: {'actionGestureType': 'press', 'actionTargetElement': 'item_container',
'actionIntentType': 'open', 'actionDestinationType': null}}]);
defaultImport3 = importDefault(dependencyMap[17]);
defaultImport3.openLazy(require(dependencyMap[25])(dependencyMap[24], dependencyMap.paths), 'ReactActionSheet',
{content: contentBinding, author: user, sendMessage: env0_5, onPressEmoji: DraftStoreModule.DraftType});
}
}
}
}
function icon_112489() { // fn#112489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15066:1748, offset: 0x023cd436, size: 45 bytes, params: 1, frame: 13
const binding = env4_10;
const ChatCheckIcon = env4_0(env4_2[20]).ChatCheckIcon;
return binding(ChatCheckIcon, {});
}
global.__d(_fun112480, 14869, [5, 31, 1379, 4645, 1878, 1881, 4503, 33, 566, 8370, 7879, 4603, 14870, 3995, 7076,
7067, 14866, 4080, 3857, 1244, 13400, 9580, 8529, 7152, 14870, 1962,
2]) /* metro module 14869, dependencies: [5, 31, 1379, 4645, 1878, 1881, 4503, 33, 566, 8370, 7879, 4603, 14870, 3995, 7076, 7067, 14866, 4080, 3857, 1244, 13400, 9580, 8529, 7152, 14870, 1962, 2] */;
@@ -1,25 +1,30 @@
/* Metro module 14815; source: modules/icymi/native/createICYMIStyles.tsx; dependencies: [31, 4501, 14816, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as ICYMIContextModule from './ICYMIContext.tsx'; /* Metro dependency 14816 */
function _fun111819(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15012:6, offset: 0x023b36ea, size: 114 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/createICYMIStyles.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/createICYMIStyles.tsx');
exports.createICYMIStyles = createICYMIStyles;
function createICYMIStyles(a0) { // fn#111820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15012:202, offset: 0x023b375c, size: 53 bytes, params: 2, frame: 12
const env0_0 = (CreateStylesModule).createStyles(a0);
return _fun111821;
function _fun111821(a0) { // fn#111821, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15012:243, offset: 0x023b3791, size: 91 bytes, params: 2, frame: 16
const value = copyRestArgs(0, undefined);
const binding = env1_2;
const useContext = binding.useContext;
const ICYMIContext = (ICYMIContextModule).ICYMIContext;
const items2 = [Reflect.apply(useContext, binding, [ICYMIContext])];
arraySpread(items2, value, 1, require);
return apply(useStyles, items2, undefined, require);
}
}
}
function createICYMIStyles(a0) { // fn#111820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15012:202, offset: 0x023b375c, size: 53 bytes, params: 2, frame: 12
const env0_0 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(a0);
return _fun111821;
}
function _fun111821(a0) { // fn#111821, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15012:243, offset: 0x023b3791, size: 91 bytes, params: 2, frame: 16
const value = copyRestArgs(0, undefined);
const binding = env1_2;
const useContext = binding.useContext;
const ICYMIContext = (require(14816) /* metro dependency 14816: ICYMIContext */).ICYMIContext;
const items2 = [Reflect.apply(useContext, binding, [ICYMIContext])];
arraySpread(items2, value, 1, require);
return apply(useStyles, items2, undefined, require);
}
global.__d(_fun111819, 14815, [31, 4501, 14816, 2]) /* metro module 14815, dependencies: [31, 4501, 14816, 2] */;
@@ -1,6 +1,25 @@
/* Metro module 14822; source: modules/icymi/native/custom_scores/ICYMIContentSettingControl.tsx; dependencies: [57, 31, 27, 4864, 9569, 33, 4501, 697, 9579, 1244, 1305, 14823, 14824, 14825, 8853, 9221, 566, 14826, 4573, 6808, 4805, 2] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import UseChannelName from '../../../channel/useChannelName.tsx'; /* Metro dependency 4805 */
import UserGuildSettingsStore from '../../../../stores/UserGuildSettingsStore.tsx'; /* Metro dependency 4864 */
import ICYMIStore from '../../ICYMIStore.tsx'; /* Metro dependency 9569 */
import Module14823 from '../../../../by-id/module-14823.js'; /* Metro dependency 14823 */
import Module14824 from '../../../../by-id/module-14824.js'; /* Metro dependency 14824 */
import Module14825 from '../../../../by-id/module-14825.js'; /* Metro dependency 14825 */
import NativeICYMIActionCreators from '../NativeICYMIActionCreators.tsx'; /* Metro dependency 14826 */
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 FluxModule from '../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as NativeModule from '../../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as TableSwitchRowNativeModule from '../../../../design/components/TableRow/native/TableSwitchRow.native.tsx'; /* Metro dependency 6808 */
import * as SegmentedControlStateNativeModule from '../../../../design/components/SegmentedControl/native/SegmentedControlState.native.tsx'; /* Metro dependency 8853 */
import * as SegmentedControlNativeModule from '../../../../design/components/SegmentedControl/native/SegmentedControl.native.tsx'; /* Metro dependency 9221 */
import * as ICYMIUtilsModule from '../../ICYMIUtils.tsx'; /* Metro dependency 9579 */
function _fun111875(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15019:6, offset: 0x023b5fba, size: 477 bytes, params: 8, frame: 22
var object2;
const env0_0 = require;
const customScoreToIndex = function(a0) {
if (require(dependencyMap[8]).ICYMICustomScore.LESS === a0) {
@@ -13,249 +32,313 @@ function _fun111875(global, require, importDefault, importAll, module, exports,
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(27) /* metro dependency 27 */).View;
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
const icymiStore = importDefault(9569) /* metro dependency 9569: ICYMIStore */;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_8 = value.jsx;
const env0_9 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object = {};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.customScoreWrapper = {marginVertical: PX_16};
const object4 = {};
object.customScoreWrapper = {marginVertical: PX_16};
const object3 = {};
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object4.marginTop = PX_8;
object3.marginTop = PX_8;
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object4.marginHorizontal = PX_12;
object2.warningText = object4;
object3.marginHorizontal = PX_12;
object.warningText = object3;
const TEXT_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_MUTED;
object2.icon = {'width': 24, 'height': 24, tintColor: TEXT_MUTED};
object.icon = {'width': 24, 'height': 24, tintColor: TEXT_MUTED};
const INTERACTIVE_TEXT_ACTIVE = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_ACTIVE;
object2.iconSelected = {tintColor: INTERACTIVE_TEXT_ACTIVE};
object.iconSelected = {tintColor: INTERACTIVE_TEXT_ACTIVE};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.muted = {marginTop: PX_16};
const env0_10 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/custom_scores/ICYMIContentSettingControl.tsx');
object.muted = {marginTop: PX_16};
const env0_10 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/custom_scores/ICYMIContentSettingControl.tsx');
exports.GuildScoreSettings = GuildScoreSettings;
exports.ChannelScoreSettings = ChannelScoreSettings;
}
function ContentSettingsControl({initialValue, onValueUpdated, disabled}) { // fn#111877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15019:651, offset: 0x023b61f2, size: 826 bytes, params: 2, frame: 29
const styles = useStyles();
const [property, env0_1] = Module00057(ReactModule.useState(initialValue), 2);
let object = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
object.label = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t.rdt65I]);
object.id = '-1';
const Icon = (NativeModule).Icon;
const iconProps = {source: Module14823};
const items3 = [styles.icon];
const ICYMICustomScore = (ICYMIUtilsModule).ICYMICustomScore;
const LESS = ICYMICustomScore.LESS;
items3[1] = property !== LESS ? null : styles.iconSelected;
iconProps.style = items3;
object.icon = <Icon {...iconProps} />;
object.page = null;
const items2 = [object];
object = {};
string = intl.string;
const SnrG00 = (require(1244) /* metro dependency 1244: indexNative */).t.SnrG00;
object.label = Reflect.apply(string, intl, [SnrG00]);
object.id = '0';
const iconProps2 = {source: Module14824};
const DEFAULT = ICYMICustomScore.DEFAULT;
iconProps2.style = [styles.icon, property !== DEFAULT ? null : styles.iconSelected];
object.icon = <Icon {...iconProps2} />;
object.page = null;
items2[1] = object;
object = {};
string = intl.string;
const Rxe3jF = (require(1244) /* metro dependency 1244: indexNative */).t.Rxe3jF;
object.label = Reflect.apply(string, intl, [Rxe3jF]);
object.id = '1';
const iconProps3 = {source: Module14825};
const MORE = ICYMICustomScore.MORE;
iconProps3.style = [styles.icon, property !== MORE ? null : styles.iconSelected];
object.icon = <Icon {...iconProps3} />;
object.page = null;
items2[2] = object;
const useSegmentedControlState = SegmentedControlStateNativeModule.useSegmentedControlState;
object = {pageWidth: 0, onSetActiveIndex: onSetActiveIndex_111878, items: items2};
object.defaultIndex = customScoreToIndex(property);
const value5 = Reflect.apply(useSegmentedControlState, SegmentedControlStateNativeModule, [object]);
const SegmentedControl = (SegmentedControlNativeModule).SegmentedControl;
return (
<View style={disabled ? {opacity: 0.7} : null} pointerEvents={disabled ? 'none' : 'auto'}>
<SegmentedControl variant="experimental_Large" state={value5} />
</View>
);
function ContentSettingsControlOnSetActiveIndex(a0) { // fn#111878, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15019:1368, owner: ContentSettingsControl.onSetActiveIndex, offset: 0x023b652c, size: 136 bytes, params: 2, frame: 14
const ICYMICustomScore = (ICYMIUtilsModule).ICYMICustomScore;
const DEFAULT = ICYMICustomScore.DEFAULT;
const r2 = a0 === 0 ? ICYMICustomScore.LESS : a0 !== 2 ? DEFAULT : ICYMICustomScore.MORE;
env0_1(r2);
onValueUpdated(r2);
}
function ContentSettingsControl({initialValue, onValueUpdated, disabled}) { // fn#111877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15019:651, offset: 0x023b61f2, size: 826 bytes, params: 2, frame: 29
const styles = useStyles();
const [property, env0_1] = env0_3(env0_4.useState(initialValue), 2);
let object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
object2.label = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t.rdt65I]);
object2.id = '-1';
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
const iconProps = {source: importDefault(14823) /* metro dependency 14823 */};
const items3 = [styles.icon];
const ICYMICustomScore = (require(9579) /* metro dependency 9579: ICYMIUtils */).ICYMICustomScore;
const LESS = ICYMICustomScore.LESS;
items3[1] = property !== LESS ? null : styles.iconSelected;
iconProps.style = items3;
object2.icon = <Icon {...iconProps} />;
object2.page = null;
const items2 = [object2];
object2 = {};
string = intl.string;
const SnrG00 = (require(1244) /* metro dependency 1244: indexNative */).t.SnrG00;
object2.label = Reflect.apply(string, intl, [SnrG00]);
object2.id = '0';
const iconProps2 = {source: importDefault(14824) /* metro dependency 14824 */};
const DEFAULT = ICYMICustomScore.DEFAULT;
iconProps2.style = [styles.icon, property !== DEFAULT ? null : styles.iconSelected];
object2.icon = <Icon {...iconProps2} />;
object2.page = null;
items2[1] = object2;
object2 = {};
string = intl.string;
const Rxe3jF = (require(1244) /* metro dependency 1244: indexNative */).t.Rxe3jF;
object2.label = Reflect.apply(string, intl, [Rxe3jF]);
object2.id = '1';
const iconProps3 = {source: importDefault(14825) /* metro dependency 14825 */};
const MORE = ICYMICustomScore.MORE;
iconProps3.style = [styles.icon, property !== MORE ? null : styles.iconSelected];
object2.icon = <Icon {...iconProps3} />;
object2.page = null;
items2[2] = object2;
const segmentedControlStateNativeModule = require(8853) /* metro dependency 8853: SegmentedControlStateNative */;
const useSegmentedControlState = segmentedControlStateNativeModule.useSegmentedControlState;
object2 = {pageWidth: 0, onSetActiveIndex: onSetActiveIndex_111878, items: items2};
object2.defaultIndex = customScoreToIndex(property);
const value5 = Reflect.apply(useSegmentedControlState, segmentedControlStateNativeModule, [object2]);
const SegmentedControl = (require(9221) /* metro dependency 9221: SegmentedControlNative */).SegmentedControl;
return (
<View style={disabled ? {opacity: 0.7} : null} pointerEvents={disabled ? 'none' : 'auto'}>
<SegmentedControl variant="experimental_Large" state={value5} />
</View>
);
}
function GuildScoreSettings({guild}) { // fn#111879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15019:1814, offset: 0x023b65b4, size: 744 bytes, params: 2, frame: 30
const id = guild.id;
const fluxModule = require(566) /* metro dependency 566: flux */;
const useStateFromStores = fluxModule.useStateFromStores;
const value2 = (require(9579) /* metro dependency 9579: ICYMIUtils */).numberToCustomScore(Reflect.apply(useStateFromStores,
fluxModule, [[ICYMIStore], function() {
return ICYMIStore.getCustomGuildScore(id);
}]));
const ICYMICustomScore = (require(9579) /* metro dependency 9579: ICYMIUtils */).ICYMICustomScore;
const MUTED = ICYMICustomScore.MUTED;
const value3 = value2 === MUTED;
const value4 = env0_4.useCallback(_fun111881, [id]);
const value5 = env0_4.useCallback(_fun111882, [value2, id]);
const styles = useStyles();
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const Clq6km = (require(1244) /* metro dependency 1244: indexNative */).t.Clq6km;
const items2 = [<Text variant="text-sm/semibold" color="text-default">{Reflect.apply(string, intl,
[Clq6km])}</Text>];
items2[1] = <Text variant="text-xs/normal" color="text-default">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['0DhU2P'],
{guildName: guild.name})}</Text>;
items2[2] = value3 ? null : <View style={styles.customScoreWrapper}><ContentSettingsControl initialValue={value2} onValueUpdated={value5} /></View>;
const r8 = value3 && styles.muted;
const TableSwitchRow = (require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow;
items2[3] = <View style={r8}><TableSwitchRow value={!value3} onValueChange={value4} label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.oujX73)} start end /></View>;
items2[4] = <Text variant="text-xs/normal" color="text-muted" style={styles.warningText}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.vRVs07)}</Text>;
return (
<View>
{items2}
</View>
);
}
function ChannelScoreSettings({guild, channel}) { // fn#111883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15019:3010, offset: 0x023b6996, size: 857 bytes, params: 2, frame: 32
const id = guild.id;
const id2 = channel.id;
const fluxModule = require(566) /* metro dependency 566: flux */;
let useStateFromStores = fluxModule.useStateFromStores;
const value2 = Reflect.apply(useStateFromStores, fluxModule, [[ICYMIStore, UserGuildSettingsStore], _fun111884]);
const value3 = (importDefault(4805) /* metro dependency 4805: useChannelName */)(channel, true);
const moduleValue2 = fluxModule;
useStateFromStores = moduleValue2.useStateFromStores;
const value4 = (require(9579) /* metro dependency 9579: ICYMIUtils */).numberToCustomScore(Reflect.apply(useStateFromStores,
moduleValue2, [[ICYMIStore], function() {
return ICYMIStore.getCustomGuildScore(id);
}]));
const ICYMICustomScore = (require(9579) /* metro dependency 9579: ICYMIUtils */).ICYMICustomScore;
let MUTED = ICYMICustomScore.MUTED;
const value5 = value4 === MUTED;
MUTED = ICYMICustomScore.MUTED;
const value6 = value2 === MUTED;
const value7 = env0_4.useCallback(_fun111886, [value2, id, id2]);
const value8 = env0_4.useCallback(_fun111887, [id2, id]);
const styles = useStyles();
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const items2 = [<Text variant="text-sm/semibold" color="text-default">{Reflect.apply(string, intl,
[(require(1244) /* metro dependency 1244: indexNative */).t['0jRosn']])}</Text>];
const format = intl.format;
const KzkF1j = (require(1244) /* metro dependency 1244: indexNative */).t.KzkF1j;
items2[1] = <Text variant="text-xs/normal" color="text-default">{Reflect.apply(format, intl, [KzkF1j,
{channelName: value3}])}</Text>;
items2[2] = value6 ? null : <View style={styles.customScoreWrapper}><ContentSettingsControl disabled={value5} initialValue={value2} onValueUpdated={value7} /></View>;
const r8 = value6 && styles.muted;
const TableSwitchRow = (require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow;
string = intl.string;
const W2aJRS = (require(1244) /* metro dependency 1244: indexNative */).t.W2aJRS;
items2[3] = <View style={r8}><TableSwitchRow value={!value6} onValueChange={value8} label={Reflect.apply(string,
intl, [W2aJRS])} disabled={value5} start end /></View>;
items2[4] = <Text variant="text-xs/normal" color="text-muted" style={styles.warningText}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['5lP6Ax'])}</Text>;
return (
<View>
{items2}
</View>
);
}
function ContentSettingsControlOnSetActiveIndex(a0) { // fn#111878, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15019:1368, owner: ContentSettingsControl.onSetActiveIndex, offset: 0x023b652c, size: 136 bytes, params: 2, frame: 14
const ICYMICustomScore = (require(9579) /* metro dependency 9579: ICYMIUtils */).ICYMICustomScore;
const DEFAULT = ICYMICustomScore.DEFAULT;
const r2 = a0 === 0 ? ICYMICustomScore.LESS : a0 !== 2 ? DEFAULT : ICYMICustomScore.MORE;
env0_1(r2);
onValueUpdated(r2);
}
function _fun111881(a0) { // fn#111881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15019:2017, offset: 0x023b68b7, size: 127 bytes, params: 2, frame: 17
let value = environment.__proto__;
const defaultImport = importDefault(14826) /* metro dependency 14826: NativeICYMIActionCreators */;
const customScoreGuild = defaultImport.customScoreGuild;
const object2 = {};
object2.guildId = id;
value = require(9579) /* metro dependency 9579: ICYMIUtils */;
const customScoreToNumber = value.customScoreToNumber;
const ICYMICustomScore = (require(9579) /* metro dependency 9579: ICYMIUtils */).ICYMICustomScore;
object2.guildScore = a0 ? Reflect.apply(customScoreToNumber, value,
[ICYMICustomScore.DEFAULT]) : Reflect.apply(customScoreToNumber, value, [ICYMICustomScore.MUTED]);
Reflect.apply(customScoreGuild, defaultImport, [object2]);
}
function _fun111882(a0) { // fn#111882, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15019:2219, offset: 0x023b6936, size: 96 bytes, params: 2, frame: 16
var value2;
var defaultImport;
var customScoreGuild;
var object2;
if (env0_1 !== a0) {
value2 = environment.__proto__;
defaultImport = importDefault(14826) /* metro dependency 14826: NativeICYMIActionCreators */;
customScoreGuild = defaultImport.customScoreGuild;
object2 = {};
object2.guildId = id;
object2.guildScore = (require(9579) /* metro dependency 9579: ICYMIUtils */).customScoreToNumber(a0);
Reflect.apply(customScoreGuild, defaultImport, [object2]);
}
}
function _fun111884() { // fn#111884, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15019:3116, offset: 0x023b6cef, size: 137 bytes, params: 1, frame: 17
const customChannelScore = ICYMIStore.getCustomChannelScore(id, id);
const ICYMICustomScore = (require(9579) /* metro dependency 9579: ICYMIUtils */).ICYMICustomScore;
const UNKNOWN = ICYMICustomScore.UNKNOWN;
return customChannelScore !== UNKNOWN ? customChannelScore : UserGuildSettingsStore.isChannelMuted(id,
id) ? ICYMICustomScore.MUTED : ICYMICustomScore.DEFAULT;
}
function GuildScoreSettings({guild}) { // fn#111879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15019:1814, offset: 0x023b65b4, size: 744 bytes, params: 2, frame: 30
const id = guild.id;
const useStateFromStores = FluxModule.useStateFromStores;
const value2 = (require(9579) /* metro dependency 9579: ICYMIUtils */).numberToCustomScore(Reflect.apply(useStateFromStores,
FluxModule, [[ICYMIStore], function() {
return ICYMIStore.getCustomGuildScore(id);
}]));
const ICYMICustomScore = (require(9579) /* metro dependency 9579: ICYMIUtils */).ICYMICustomScore;
const MUTED = ICYMICustomScore.MUTED;
const value3 = value2 === MUTED;
const value4 = ReactModule.useCallback(_fun111881, [id]);
const value5 = ReactModule.useCallback(_fun111882, [value2, id]);
const styles = useStyles();
const Text = (TextModule).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const Clq6km = (require(1244) /* metro dependency 1244: indexNative */).t.Clq6km;
const items2 = [
<Text variant="text-sm/semibold" color="text-default">
{Reflect.apply(string, intl, [Clq6km])}
</Text>,
];
items2[1] = (
<Text variant="text-xs/normal" color="text-default">
{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['0DhU2P'], {guildName: guild.name})}
</Text>
);
items2[2] = (
value3
? null
: (
<View style={styles.customScoreWrapper}>
<ContentSettingsControl initialValue={value2} onValueUpdated={value5} />
</View>
)
);
const r8 = value3 && styles.muted;
const TableSwitchRow = (TableSwitchRowNativeModule).TableSwitchRow;
items2[3] = (
<View style={r8}>
<TableSwitchRow
value={!value3}
onValueChange={value4}
label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.oujX73)}
start
end
/>
</View>
);
items2[4] = (
<Text
variant="text-xs/normal"
color="text-muted"
style={styles.warningText}
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.vRVs07)}
</Text>
);
return (
<View>
{items2}
</View>
);
function _fun111881(a0) { // fn#111881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15019:2017, offset: 0x023b68b7, size: 127 bytes, params: 2, frame: 17
let value = environment.__proto__;
const defaultImport = NativeICYMIActionCreators;
const customScoreGuild = defaultImport.customScoreGuild;
const object = {};
object.guildId = id;
value = require(9579) /* metro dependency 9579: ICYMIUtils */;
const customScoreToNumber = value.customScoreToNumber;
const ICYMICustomScore = (require(9579) /* metro dependency 9579: ICYMIUtils */).ICYMICustomScore;
object.guildScore = a0 ? Reflect.apply(customScoreToNumber, value,
[ICYMICustomScore.DEFAULT]) : Reflect.apply(customScoreToNumber, value, [ICYMICustomScore.MUTED]);
Reflect.apply(customScoreGuild, defaultImport, [object]);
}
function _fun111882(a0) { // fn#111882, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15019:2219, offset: 0x023b6936, size: 96 bytes, params: 2, frame: 16
var value2;
var defaultImport;
var customScoreGuild;
var object;
if (env0_1 !== a0) {
value2 = environment.__proto__;
defaultImport = importDefault(14826) /* metro dependency 14826: NativeICYMIActionCreators */;
customScoreGuild = defaultImport.customScoreGuild;
object = {};
object.guildId = id;
object.guildScore = (require(9579) /* metro dependency 9579: ICYMIUtils */).customScoreToNumber(a0);
Reflect.apply(customScoreGuild, defaultImport, [object]);
}
}
function _fun111886(a0) { // fn#111886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15019:3494, offset: 0x023b6d78, size: 119 bytes, params: 2, frame: 17
var value2;
var defaultImport;
var customScoreGuild;
var object3;
var object4;
if (env0_2 !== a0) {
value2 = environment.__proto__;
defaultImport = importDefault(14826) /* metro dependency 14826: NativeICYMIActionCreators */;
customScoreGuild = defaultImport.customScoreGuild;
object3 = {};
object3.guildId = id;
object4 = {};
object4.channelId = id;
object4.score = (require(9579) /* metro dependency 9579: ICYMIUtils */).customScoreToNumber(a0);
object3.channelScores = [object4];
Reflect.apply(customScoreGuild, defaultImport, [object3]);
}
function ChannelScoreSettings({guild, channel}) { // fn#111883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15019:3010, offset: 0x023b6996, size: 857 bytes, params: 2, frame: 32
const id = guild.id;
const id2 = channel.id;
let useStateFromStores = FluxModule.useStateFromStores;
const icymiStoreBinding = ICYMIStore;
const value2 = Reflect.apply(useStateFromStores, FluxModule, [[icymiStoreBinding, UserGuildSettingsStore],
_fun111884]);
const value3 = (UseChannelName)(channel, true);
useStateFromStores = FluxModule.useStateFromStores;
const value4 = (require(9579) /* metro dependency 9579: ICYMIUtils */).numberToCustomScore(Reflect.apply(useStateFromStores,
FluxModule, [[icymiStoreBinding], function() {
return ICYMIStore.getCustomGuildScore(id);
}]));
const ICYMICustomScore = (require(9579) /* metro dependency 9579: ICYMIUtils */).ICYMICustomScore;
let MUTED = ICYMICustomScore.MUTED;
const value5 = value4 === MUTED;
MUTED = ICYMICustomScore.MUTED;
const value6 = value2 === MUTED;
const value7 = ReactModule.useCallback(_fun111886, [value2, id, id2]);
const value8 = ReactModule.useCallback(_fun111887, [id2, id]);
const styles = useStyles();
const Text = (TextModule).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const items2 = [
<Text variant="text-sm/semibold" color="text-default">
{Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t['0jRosn']])}
</Text>,
];
const format = intl.format;
const KzkF1j = (require(1244) /* metro dependency 1244: indexNative */).t.KzkF1j;
items2[1] = (
<Text variant="text-xs/normal" color="text-default">
{Reflect.apply(format, intl, [KzkF1j, {channelName: value3}])}
</Text>
);
items2[2] = (
value6
? null
: (
<View style={styles.customScoreWrapper}>
<ContentSettingsControl
disabled={value5}
initialValue={value2}
onValueUpdated={value7}
/>
</View>
)
);
const r8 = value6 && styles.muted;
const TableSwitchRow = (TableSwitchRowNativeModule).TableSwitchRow;
string = intl.string;
const W2aJRS = (require(1244) /* metro dependency 1244: indexNative */).t.W2aJRS;
items2[3] = (
<View style={r8}>
<TableSwitchRow
value={!value6}
onValueChange={value8}
label={Reflect.apply(string, intl, [W2aJRS])}
disabled={value5}
start
end
/>
</View>
);
items2[4] = (
<Text
variant="text-xs/normal"
color="text-muted"
style={styles.warningText}
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['5lP6Ax'])}
</Text>
);
return (
<View>
{items2}
</View>
);
function _fun111884() { // fn#111884, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15019:3116, offset: 0x023b6cef, size: 137 bytes, params: 1, frame: 17
const customChannelScore = ICYMIStore.getCustomChannelScore(id, id);
const ICYMICustomScore = (ICYMIUtilsModule).ICYMICustomScore;
const UNKNOWN = ICYMICustomScore.UNKNOWN;
return customChannelScore !== UNKNOWN ? customChannelScore : UserGuildSettingsStore.isChannelMuted(id,
id) ? ICYMICustomScore.MUTED : ICYMICustomScore.DEFAULT;
}
function _fun111886(a0) { // fn#111886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15019:3494, offset: 0x023b6d78, size: 119 bytes, params: 2, frame: 17
var value2;
var defaultImport;
var customScoreGuild;
var object;
var object2;
if (env0_2 !== a0) {
value2 = environment.__proto__;
defaultImport = importDefault(14826) /* metro dependency 14826: NativeICYMIActionCreators */;
customScoreGuild = defaultImport.customScoreGuild;
object = {};
object.guildId = id;
object2 = {};
object2.channelId = id;
object2.score = (require(9579) /* metro dependency 9579: ICYMIUtils */).customScoreToNumber(a0);
object.channelScores = [object2];
Reflect.apply(customScoreGuild, defaultImport, [object]);
}
}
function _fun111887(a0) { // fn#111887, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15019:3639, offset: 0x023b6def, size: 150 bytes, params: 2, frame: 18
let value = environment.__proto__;
const defaultImport = NativeICYMIActionCreators;
const customScoreGuild = defaultImport.customScoreGuild;
const object = {};
object.guildId = id;
const object2 = {};
object2.channelId = id;
value = require(9579) /* metro dependency 9579: ICYMIUtils */;
const customScoreToNumber = value.customScoreToNumber;
const ICYMICustomScore = (require(9579) /* metro dependency 9579: ICYMIUtils */).ICYMICustomScore;
object2.score = a0 ? Reflect.apply(customScoreToNumber, value,
[ICYMICustomScore.DEFAULT]) : Reflect.apply(customScoreToNumber, value, [ICYMICustomScore.MUTED]);
object.channelScores = [object2];
Reflect.apply(customScoreGuild, defaultImport, [object]);
}
}
}
function _fun111887(a0) { // fn#111887, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15019:3639, offset: 0x023b6def, size: 150 bytes, params: 2, frame: 18
let value = environment.__proto__;
const defaultImport = importDefault(14826) /* metro dependency 14826: NativeICYMIActionCreators */;
const customScoreGuild = defaultImport.customScoreGuild;
const object3 = {};
object3.guildId = id;
const object4 = {};
object4.channelId = id;
value = require(9579) /* metro dependency 9579: ICYMIUtils */;
const customScoreToNumber = value.customScoreToNumber;
const ICYMICustomScore = (require(9579) /* metro dependency 9579: ICYMIUtils */).ICYMICustomScore;
object4.score = a0 ? Reflect.apply(customScoreToNumber, value,
[ICYMICustomScore.DEFAULT]) : Reflect.apply(customScoreToNumber, value, [ICYMICustomScore.MUTED]);
object3.channelScores = [object4];
Reflect.apply(customScoreGuild, defaultImport, [object3]);
}
global.__d(_fun111875, 14822, [57, 31, 27, 4864, 9569, 33, 4501, 697, 9579, 1244, 1305, 14823, 14824, 14825, 8853,
9221, 566, 14826, 4573, 6808, 4805,
2]) /* metro module 14822, dependencies: [57, 31, 27, 4864, 9569, 33, 4501, 697, 9579, 1244, 1305, 14823, 14824, 14825, 8853, 9221, 566, 14826, 4573, 6808, 4805, 2] */;
@@ -1,8 +1,11 @@
/* Metro module 14827; source: modules/icymi/native/custom_scores/ICYMICustomScoreTypes.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun111896(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15024:6, offset: 0x023b7224, size: 84 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/custom_scores/ICYMICustomScoreTypes.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/custom_scores/ICYMICustomScoreTypes.tsx');
exports.ICYMI_CUSTOM_SCORES_MODAL_KEY = 'icymi-custom-scores-modal';
}
global.__d(_fun111896, 14827, [2]) /* metro module 14827, dependencies: [2] */;
@@ -1,6 +1,27 @@
/* Metro module 14820; source: modules/icymi/native/custom_scores/ICYMICustomScoresGuildScreen.tsx; dependencies: [57, 31, 27, 5070, 1379, 1867, 4864, 9569, 33, 4501, 697, 566, 4805, 9579, 1244, 4080, 14821, 1962, 6647, 6238, 1305, 10937, 4573, 5092, 7705, 1585, 14822, 8708, 8416, 2] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ChannelStore from '../../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import UseSafeAreaInsetsNative from '../../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import GuildStore from '../../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import UseChannelName from '../../../channel/useChannelName.tsx'; /* Metro dependency 4805 */
import UserGuildSettingsStore from '../../../../stores/UserGuildSettingsStore.tsx'; /* Metro dependency 4864 */
import ChannelListStore from '../../../guild_sidebar/ChannelListStore.tsx'; /* Metro dependency 5070 */
import UseScaledRowHeight from '../../../main_tabs_v2/native/shared_components/user_list/useScaledRowHeight.tsx'; /* Metro dependency 7705 */
import ICYMIStore from '../../ICYMIStore.tsx'; /* Metro dependency 9569 */
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 FluxModule from '../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as TableRowNativeModule from '../../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
import * as ChannelUtilsModule from '../../../../utils/native/ChannelUtils.tsx'; /* Metro dependency 6647 */
import * as FlashListModule from '../../../../external/discord_common/js/packages/flash-list/index.jsx'; /* Metro dependency 8416 */
import * as ICYMIUtilsModule from '../../ICYMIUtils.tsx'; /* Metro dependency 9579 */
function _fun111852(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111852, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15017:6, offset: 0x023b4842, size: 615 bytes, params: 8, frame: 24
var object3;
const env0_0 = require;
const _arrayLikeToArray_111855 = function(a0, a1) {
var r0;
@@ -60,490 +81,518 @@ function _fun111852(global, require, importDefault, importAll, module, exports,
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(27) /* metro dependency 27 */).View;
const channelListStore = importDefault(5070) /* metro dependency 5070: ChannelListStore */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
const icymiStore = importDefault(9569) /* metro dependency 9569: ICYMIStore */;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_11 = value.jsx;
const env0_12 = value.jsxs;
const env0_13 = value.Fragment;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object3 = {};
const object5 = {flex: 1};
object = {};
const object2 = {flex: 1};
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object5.backgroundColor = BACKGROUND_BASE_LOW;
object2.backgroundColor = BACKGROUND_BASE_LOW;
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object5.paddingHorizontal = PX_12;
object3.container = object5;
object2.paddingHorizontal = PX_12;
object.container = object2;
const PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
object3.guildHeader = {marginBottom: PX_32};
const object6 = {'paddingTop': null, 'paddingBottom': null, 'display': 'flex', 'flexDirection': 'row',
object.guildHeader = {marginBottom: PX_32};
const object4 = {'paddingTop': null, 'paddingBottom': null, 'display': 'flex', 'flexDirection': 'row',
'alignItems': 'center'};
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object6.paddingTop = PX_8;
object4.paddingTop = PX_8;
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object6.paddingBottom = PX_8;
object4.paddingBottom = PX_8;
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object6.gap = PX_4;
object3.categoryHeader = object6;
object4.gap = PX_4;
object.categoryHeader = object4;
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object3.channelNameContainer = {flexDirection: 'row', gap: PX_4};
object.channelNameContainer = {flexDirection: 'row', gap: PX_4};
const ICON_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.ICON_MUTED;
object3.channelMutedIcon = {alignSelf: 'center', tintColor: ICON_MUTED};
const env0_14 = Reflect.apply(createStyles, value, [object3]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/custom_scores/ICYMICustomScoresGuildScreen.tsx');
object.channelMutedIcon = {alignSelf: 'center', tintColor: ICON_MUTED};
const env0_14 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/custom_scores/ICYMICustomScoresGuildScreen.tsx');
exports.default = ICYMICustomScoresGuildScreen;
}
function _createForOfIteratorHelperLoose_111853(a0, a1) { // fn#111853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15017:228, offset: 0x023b4aa9, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
const Array = global.Array;
if (Array.isArray(a0)) {
function _createForOfIteratorHelperLoose_111853(a0, a1) { // fn#111853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15017:228, offset: 0x023b4aa9, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
return _fun111854;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_111855(a0, value);
r5 = value;
} else {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun111854;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_111855(a0, value);
r6 = value;
r5 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
value = _arrayLikeToArray_111855(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun111854;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
}
function ICYMICustomScoreChannelRow({channelId, start, end, disabled}) { // fn#111856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15017:1630, offset: 0x023b4c1d, size: 675 bytes, params: 2, frame: 32
var object2;
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
const styles = useStyles();
const channel = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
return ChannelStore.getChannel(channelId);
});
const value2 = (importDefault(4805) /* metro dependency 4805: useChannelName */)(channel);
const DEFAULT = (require(566) /* metro dependency 566: flux */).useStateFromStores([ICYMIStore,
UserGuildSettingsStore], _fun111858);
const ICYMICustomScore = (require(9579) /* metro dependency 9579: ICYMIUtils */).ICYMICustomScore;
const MUTED = ICYMICustomScore.MUTED;
const value3 = DEFAULT === MUTED;
const value4 = env0_4.useMemo(_fun111859, [value3, DEFAULT]);
const value5 = env0_4.useCallback(_fun111860, [channel]);
if (channel == null) {
return null;
}
const channelIcon = (require(6647) /* metro dependency 6647: ChannelUtils */).getChannelIcon(channel);
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
object2 = {arrow: true, disabled: disabled};
const IconSizes = (require(1305) /* metro dependency 1305: native */).IconSizes;
const SMALL = IconSizes.SMALL;
object2.icon = <Icon size={SMALL} source={channelIcon} />;
object2.start = start;
object2.end = end;
object2.labelLineClamp = 1;
object2.label = value3 ? <View style={styles.channelNameContainer}><Icon source={importDefault(10937) /* metro dependency 10937 */} size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.SMALL} style={styles.channelMutedIcon} />{((Text) => <Text variant="text-md/semibold" color="mobile-text-heading-primary" lineClamp={1}>{value2}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}</View> : value2;
const TableRow2 = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const TrailingText = TableRow2.TrailingText;
object2.trailing = <TrailingText text={value4} />;
object2.onPress = value5;
return <TableRow {...object2} />;
}
function ICYMICustomScoresGuildScreen(a0) { // fn#111862, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15017:3362, offset: 0x023b51c3, size: 543 bytes, params: 2, frame: 24
const navigation = a0.navigation;
const env0_1 = a0.route.params.guildId;
const value = undefined;
let env0_4 = value;
const styles = useStyles();
const fluxModule = require(566) /* metro dependency 566: flux */;
let useStateFromStores = fluxModule.useStateFromStores;
const guild = Reflect.apply(useStateFromStores, fluxModule, [[GuildStore], function() {
return GuildStore.getGuild(guildId);
}]);
env0_4.useEffect(_fun111864, [navigation, guild == null ? value : guild.name]);
const moduleValue2 = fluxModule;
useStateFromStores = moduleValue2.useStateFromStores;
const value3 = (require(9579) /* metro dependency 9579: ICYMIUtils */).numberToCustomScore(Reflect.apply(useStateFromStores,
moduleValue2, [[ICYMIStore], function() {
return ICYMIStore.getCustomGuildScore(guildId);
}]));
env0_4 = value3;
const moduleValue4 = fluxModule;
const useStateFromStoresObject = moduleValue4.useStateFromStoresObject;
const value4 = env0_4.useMemo(_fun111867, [value3, Reflect.apply(useStateFromStoresObject, moduleValue4,
[[ChannelListStore], function() {
return ChannelListStore.getGuild(guildId);
}]).guildChannels]);
const value5 = (importDefault(7705) /* metro dependency 7705: useScaledRowHeight */)();
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
const value6 = env0_4.useCallback(_fun111869, [guild, styles.categoryHeader, styles.guildHeader]);
const AnimatedFlashList = (require(8416) /* metro dependency 8416: flashList */).AnimatedFlashList;
const object = {bottom: bottom};
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object.top = PX_12;
return (
<View style={styles.container}>
<AnimatedFlashList
contentInset={object}
estimatedItemSize={value5}
showsVerticalScrollIndicator={false}
renderItem={value6}
data={value4}
keyExtractor={keyExtractor_111861}
/>
</View>
);
}
function _fun111858() { // fn#111858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15017:1826, offset: 0x023b4ec0, size: 201 bytes, params: 1, frame: 17
const ICYMICustomScore = (require(9579) /* metro dependency 9579: ICYMIUtils */).ICYMICustomScore;
var value;
if (channel == null) {
value = environment.__proto__;
return ICYMICustomScore.DEFAULT;
}
const getCustomChannelScore = ICYMIStore.getCustomChannelScore;
channelBinding = channel;
const value3 = Reflect.apply(getCustomChannelScore, ICYMIStore, [channelBinding.guild_id, channelBinding.id]);
const UNKNOWN = ICYMICustomScore.UNKNOWN;
return value3 !== UNKNOWN ? value3 : UserGuildSettingsStore.isChannelMuted(channel.guild_id,
channel.id) ? ICYMICustomScore.MUTED : ICYMICustomScore.DEFAULT;
}
function _fun111859() { // fn#111859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15017:2136, offset: 0x023b4f89, size: 328 bytes, params: 1, frame: 16
const ICYMICustomScore = (require(9579) /* metro dependency 9579: ICYMIUtils */).ICYMICustomScore;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
return result ? intl.string(t.lhPHmz) : DEFAULT === ICYMICustomScore.MORE ? intl.string(t.Rxe3jF) : DEFAULT === ICYMICustomScore.LESS ? intl.string(t.rdt65I) : intl.string(t.SnrG00);
}
function _fun111860() { // fn#111860, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15017:2407, offset: 0x023b50d1, size: 119 bytes, params: 1, frame: 17
var value2;
var defaultImport;
var openLazy;
var value3;
let channelBinding = channel;
if (channelBinding != null) {
value2 = environment.__proto__;
defaultImport = importDefault(dependencyMap[15]);
openLazy = defaultImport.openLazy;
value3 = require(dependencyMap[17])(dependencyMap[16], dependencyMap.paths);
channelBinding = channel;
Reflect.apply(openLazy, defaultImport, [value3, 'ItemDetailsActionSheet', {guildId: channelBinding.guild_id,
channelId: channelBinding.id}]);
}
}
function _fun111864() { // fn#111864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15017:3522, offset: 0x023b53e2, size: 66 bytes, params: 1, frame: 16
const navigationBinding = navigation;
const setOptions = navigationBinding.setOptions;
const guildBinding = guild;
const value2 = undefined;
Reflect.apply(setOptions, navigationBinding, [{title: (guildBinding == null ? value2 : guild.name) ?? ''}]);
return value2;
}
function _fun111867() { // fn#111867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15017:3816, offset: 0x023b545a, size: 1010 bytes, params: 1, frame: 52
var r11;
var r37;
var name;
var r39;
var r36;
var r32;
var value9;
var value10;
var property;
var SECTION_INDEX_GUILD_ACTIONS;
var voiceChannelsSectionNumber;
var getCategoryFromSection;
var value11;
var getChannelRecords;
var value12;
var filter;
var value13;
var length;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var GSfOoo;
var value14;
var SECTION_INDEX_FAVORITES;
var SECTION_INDEX_RECENTS;
var SECTION_INDEX_FIRST_NAMED_CATEGORY;
var getNamedCategoryFromSection;
var value15;
var record;
var gKcrqM;
var value16;
var mlPMCy;
var value17;
var value18;
var value19;
var value20;
var value21;
var property2;
var object;
var id;
var binding;
var ICYMICustomScore;
var MUTED;
var value22;
var value23;
const items2 = [];
items2.push({kind: 'header'});
const _createForOfIteratorHelperLoose_111853Binding = _createForOfIteratorHelperLoose_111853;
const value4 = guildChannels.getSections(false).entries();
const value5 = undefined;
const value6 = _createForOfIteratorHelperLoose_111853Binding(value4);
const value7 = value6();
let done = value7.done;
if (!done) {
r11 = value7;
reducibleLoop1: while (true) {
value9 = r11.value;
value10 = env1_3(value9, 2);
property = value10[0];
reducibleJoin19: while (true) {
if (value10[1] === 0) {
break reducibleJoin19;
}
SECTION_INDEX_GUILD_ACTIONS = (require(5092) /* metro dependency 5092: ChannelListState */).SECTION_INDEX_GUILD_ACTIONS;
if (property === SECTION_INDEX_GUILD_ACTIONS) {
break reducibleJoin19;
}
voiceChannelsSectionNumber = guildChannels.voiceChannelsSectionNumber;
if (property === voiceChannelsSectionNumber) {
break reducibleJoin19;
}
guildChannelsBinding = guildChannels;
getCategoryFromSection = guildChannelsBinding.getCategoryFromSection;
value11 = Reflect.apply(getCategoryFromSection, guildChannelsBinding, [property]);
reducibleJoin6: while (true) {
if (value11 == null) {
r37 = value5;
break reducibleJoin6;
}
getChannelRecords = value11.getChannelRecords;
value12 = Reflect.apply(getChannelRecords, value11, []);
filter = value12.filter;
value13 = Reflect.apply(filter, value12, [_fun111868]);
r37 = value13;
break reducibleJoin6;
}
if (r37 == null) {
break reducibleJoin19;
}
length = r37.length;
if (length === 0) {
break reducibleJoin19;
}
string = intl.string;
GSfOoo = t.GSfOoo;
value14 = Reflect.apply(string, intl, [GSfOoo]);
SECTION_INDEX_FAVORITES = (require(5092) /* metro dependency 5092: ChannelListState */).SECTION_INDEX_FAVORITES;
if (property === SECTION_INDEX_FAVORITES) {
string = intl.string;
mlPMCy = t.mlPMCy;
value17 = Reflect.apply(string, intl, [mlPMCy]);
r36 = value17;
} else {
SECTION_INDEX_RECENTS = (require(5092) /* metro dependency 5092: ChannelListState */).SECTION_INDEX_RECENTS;
if (property === SECTION_INDEX_RECENTS) {
string = intl.string;
gKcrqM = t.gKcrqM;
value16 = Reflect.apply(string, intl, [gKcrqM]);
r36 = value16;
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_111855(a0, value);
r6 = value;
} else {
SECTION_INDEX_FIRST_NAMED_CATEGORY = (require(5092) /* metro dependency 5092: ChannelListState */).SECTION_INDEX_FIRST_NAMED_CATEGORY;
reducibleJoin17: while (true) {
if (property >= SECTION_INDEX_FIRST_NAMED_CATEGORY) {
guildChannelsBinding = guildChannels;
getNamedCategoryFromSection = guildChannelsBinding.getNamedCategoryFromSection;
value15 = Reflect.apply(getNamedCategoryFromSection, guildChannelsBinding, [property]);
reducibleJoin13: while (true) {
if (value15 == null) {
name = value5;
break reducibleJoin13;
}
record = value15.record;
name = record.name;
break reducibleJoin13;
}
r39 = name ?? '';
r36 = r39;
break reducibleJoin17;
}
r36 = value14;
break reducibleJoin17;
}
r6 = value;
}
}
push = items2.push;
Reflect.apply(push, items2, [{kind: 'categoryHeader', index: property, title: r36}]);
value18 = _createForOfIteratorHelperLoose_111853(r37.entries());
value19 = value18();
done = value19.done;
if (done) {
break reducibleJoin19;
}
r32 = value19;
reducibleLoop18: while (true) {
value20 = r32.value;
value21 = env1_3(value20, 2);
property = value21[0];
property2 = value21[1];
push = items2.push;
object = {kind: 'channel'};
id = property2.id;
object.channelId = id;
object.start = property === 0;
length = r37.length;
object.end = property === length - 1;
binding = env0_4;
ICYMICustomScore = (require(9579) /* metro dependency 9579: ICYMIUtils */).ICYMICustomScore;
MUTED = ICYMICustomScore.MUTED;
object.disabled = binding === MUTED;
Reflect.apply(push, items2, [object]);
value22 = value18();
done = value22.done;
if (done) {
break reducibleJoin19;
}
r32 = value22;
continue reducibleLoop18;
}
r5 = r6;
}
value23 = value6();
done = value23.done;
if (done) {
break reducibleLoop1;
}
r11 = value23;
continue reducibleLoop1;
}
}
property = items2[items2.length - 1];
reducibleJoin22: while (true) {
if (property.kind !== 'channel') {
break reducibleJoin22;
}
property.end = true;
break reducibleJoin22;
}
return items2;
}
function _fun111869({item}) { // fn#111869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15017:4980, offset: 0x023b5875, size: 644 bytes, params: 2, frame: 26
var r0;
var value;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var guildBinding;
var value4;
var value5;
var jsxRuntimeEnv1_13Binding;
var items2;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var object;
const kind = item.kind;
if (kind === 'header') {
guildBinding = guild;
value4 = null;
if (value4 != guildBinding) {
value5 = environment.__proto__;
jsxRuntimeEnv1_13Binding = jsxRuntimeEnv1_13;
value = <View style={styles.guildHeader}>{((GuildScoreSettings) => <GuildScoreSettings guild={guild} />)((require(14822) /* metro dependency 14822: ICYMIContentSettingControl */).GuildScoreSettings)}</View>;
items2 = [value];
string = intl.string;
items2[1] = <Text variant="text-sm/semibold" color="text-default">{Reflect.apply(string, intl,
[t['0jRosn']])}</Text>;
object = {};
object.marginBottom = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
string = intl.string;
items2[2] = <Text variant="text-xs/normal" color="text-default" style={object}>{Reflect.apply(string, intl,
[t.l52PX4])}</Text>;
value = <>{items2}</>;
r0 = value;
} else {
r0 = value4;
r5 = value;
}
return r0;
if (r5) {
if (r5) {
}
return _fun111854;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
function _fun111854() { // fn#111854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15017:799, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
}
if (kind === 'categoryHeader') {
value = environment.__proto__;
function ICYMICustomScoreChannelRow({channelId, start, end, disabled}) { // fn#111856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15017:1630, offset: 0x023b4c1d, size: 675 bytes, params: 2, frame: 32
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
const styles = useStyles();
const channel = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
return ChannelStore.getChannel(channelId);
});
const value2 = (UseChannelName)(channel);
const DEFAULT = (require(566) /* metro dependency 566: flux */).useStateFromStores([ICYMIStore,
UserGuildSettingsStore], _fun111858);
const ICYMICustomScore = (ICYMIUtilsModule).ICYMICustomScore;
const MUTED = ICYMICustomScore.MUTED;
const value3 = DEFAULT === MUTED;
const value4 = ReactModule.useMemo(_fun111859, [value3, DEFAULT]);
const value5 = ReactModule.useCallback(_fun111860, [channel]);
if (channel == null) {
return null;
}
const channelIcon = (ChannelUtilsModule).getChannelIcon(channel);
const TableRow = (TableRowNativeModule).TableRow;
object = {arrow: true, disabled: disabled};
const IconSizes = (require(1305) /* metro dependency 1305: native */).IconSizes;
const SMALL = IconSizes.SMALL;
object.icon = <Icon size={SMALL} source={channelIcon} />;
object.start = start;
object.end = end;
object.labelLineClamp = 1;
object.label = (
value3
? (
<View style={styles.channelNameContainer}>
<Icon
source={importDefault(10937) /* metro dependency 10937 */}
size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.SMALL}
style={styles.channelMutedIcon}
/>
{((Text) => <Text variant="text-md/semibold" color="mobile-text-heading-primary" lineClamp={1}>{value2}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}
</View>
)
: value2
);
const TableRow2 = (TableRowNativeModule).TableRow;
const TrailingText = TableRow2.TrailingText;
object.trailing = <TrailingText text={value4} />;
object.onPress = value5;
return <TableRow {...object} />;
function _fun111858() { // fn#111858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15017:1826, offset: 0x023b4ec0, size: 201 bytes, params: 1, frame: 17
const ICYMICustomScore = (ICYMIUtilsModule).ICYMICustomScore;
var value;
if (channel == null) {
value = environment.__proto__;
return ICYMICustomScore.DEFAULT;
}
const icymiStoreBinding = ICYMIStore;
const getCustomChannelScore = icymiStoreBinding.getCustomChannelScore;
channelBinding = channel;
const value3 = Reflect.apply(getCustomChannelScore, icymiStoreBinding, [channelBinding.guild_id, channelBinding.id]);
const UNKNOWN = ICYMICustomScore.UNKNOWN;
return value3 !== UNKNOWN ? value3 : UserGuildSettingsStore.isChannelMuted(channel.guild_id,
channel.id) ? ICYMICustomScore.MUTED : ICYMICustomScore.DEFAULT;
}
function _fun111859() { // fn#111859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15017:2136, offset: 0x023b4f89, size: 328 bytes, params: 1, frame: 16
const ICYMICustomScore = (ICYMIUtilsModule).ICYMICustomScore;
const intl = (IndexNativeModule).intl;
const t = (IndexNativeModule).t;
return result ? intl.string(t.lhPHmz) : DEFAULT === ICYMICustomScore.MORE ? intl.string(t.Rxe3jF) : DEFAULT === ICYMICustomScore.LESS ? intl.string(t.rdt65I) : intl.string(t.SnrG00);
}
function _fun111860() { // fn#111860, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15017:2407, offset: 0x023b50d1, size: 119 bytes, params: 1, frame: 17
var value2;
var defaultImport;
var openLazy;
var value3;
let channelBinding = channel;
if (channelBinding != null) {
value2 = environment.__proto__;
defaultImport = importDefault(dependencyMap[15]);
openLazy = defaultImport.openLazy;
value3 = require(dependencyMap[17])(dependencyMap[16], dependencyMap.paths);
channelBinding = channel;
Reflect.apply(openLazy, defaultImport, [value3, 'ItemDetailsActionSheet', {guildId: channelBinding.guild_id,
channelId: channelBinding.id}]);
}
}
}
function ICYMICustomScoresGuildScreen(a0) { // fn#111862, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15017:3362, offset: 0x023b51c3, size: 543 bytes, params: 2, frame: 24
const navigation = a0.navigation;
const env0_1 = a0.route.params.guildId;
const value = undefined;
let env0_4 = value;
const styles = useStyles();
let useStateFromStores = FluxModule.useStateFromStores;
const guild = Reflect.apply(useStateFromStores, FluxModule, [[GuildStore], function() {
return GuildStore.getGuild(guildId);
}]);
env0_4.useEffect(_fun111864, [navigation, guild == null ? value : guild.name]);
useStateFromStores = FluxModule.useStateFromStores;
const value3 = (require(9579) /* metro dependency 9579: ICYMIUtils */).numberToCustomScore(Reflect.apply(useStateFromStores,
FluxModule, [[ICYMIStore], function() {
return ICYMIStore.getCustomGuildScore(guildId);
}]));
env0_4 = value3;
const useStateFromStoresObject = FluxModule.useStateFromStoresObject;
const value4 = env0_4.useMemo(_fun111867, [value3, Reflect.apply(useStateFromStoresObject, FluxModule,
[[ChannelListStore], function() {
return ChannelListStore.getGuild(guildId);
}]).guildChannels]);
const value5 = (UseScaledRowHeight)();
const bottom = (UseSafeAreaInsetsNative)().bottom;
const value6 = env0_4.useCallback(_fun111869, [guild, styles.categoryHeader, styles.guildHeader]);
const AnimatedFlashList = (FlashListModule).AnimatedFlashList;
const object2 = {bottom: bottom};
const PX_12 = (Native).space.PX_12;
object2.top = PX_12;
return (
<View style={styles.categoryHeader}>
{((ChevronSmallDownIcon) => <ChevronSmallDownIcon size="xs" color={(importDefault(697) /* metro dependency 697: native */).colors.TEXT_SUBTLE} />)((require(8708) /* metro dependency 8708: ChevronSmallDownIcon */).ChevronSmallDownIcon)}
<Text variant="text-sm/semibold" color="text-default">
{item.title}
</Text>
<View style={styles.container}>
<AnimatedFlashList
contentInset={object2}
estimatedItemSize={value5}
showsVerticalScrollIndicator={false}
renderItem={value6}
data={value4}
keyExtractor={keyExtractor_111861}
/>
</View>
);
function _fun111864() { // fn#111864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15017:3522, offset: 0x023b53e2, size: 66 bytes, params: 1, frame: 16
const navigationBinding = navigation;
const setOptions = navigationBinding.setOptions;
const guildBinding = guild;
const value2 = undefined;
Reflect.apply(setOptions, navigationBinding, [{title: (guildBinding == null ? value2 : guild.name) ?? ''}]);
return value2;
}
function _fun111867() { // fn#111867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15017:3816, offset: 0x023b545a, size: 1010 bytes, params: 1, frame: 52
var r11;
var r37;
var name;
var r39;
var r36;
var r32;
var value9;
var value10;
var property;
var SECTION_INDEX_GUILD_ACTIONS;
var voiceChannelsSectionNumber;
var getCategoryFromSection;
var value11;
var getChannelRecords;
var value12;
var filter;
var value13;
var length;
const intl = (IndexNativeModule).intl;
var string;
const t = (IndexNativeModule).t;
var GSfOoo;
var value14;
var SECTION_INDEX_FAVORITES;
var SECTION_INDEX_RECENTS;
var SECTION_INDEX_FIRST_NAMED_CATEGORY;
var getNamedCategoryFromSection;
var value15;
var record;
var gKcrqM;
var value16;
var mlPMCy;
var value17;
var value18;
var value19;
var value20;
var value21;
var property2;
var object2;
var id;
var binding;
var ICYMICustomScore;
var MUTED;
var value22;
var value23;
const items2 = [];
items2.push({kind: 'header'});
const _createForOfIteratorHelperLoose_111853Binding = _createForOfIteratorHelperLoose_111853;
const value4 = guildChannels.getSections(false).entries();
const value5 = undefined;
const value6 = _createForOfIteratorHelperLoose_111853Binding(value4);
const value7 = value6();
let done = value7.done;
if (!done) {
r11 = value7;
reducibleLoop1: while (true) {
value9 = r11.value;
value10 = env1_3(value9, 2);
property = value10[0];
reducibleJoin19: while (true) {
if (value10[1] === 0) {
break reducibleJoin19;
}
SECTION_INDEX_GUILD_ACTIONS = (require(5092) /* metro dependency 5092: ChannelListState */).SECTION_INDEX_GUILD_ACTIONS;
if (property === SECTION_INDEX_GUILD_ACTIONS) {
break reducibleJoin19;
}
voiceChannelsSectionNumber = guildChannels.voiceChannelsSectionNumber;
if (property === voiceChannelsSectionNumber) {
break reducibleJoin19;
}
guildChannelsBinding = guildChannels;
getCategoryFromSection = guildChannelsBinding.getCategoryFromSection;
value11 = Reflect.apply(getCategoryFromSection, guildChannelsBinding, [property]);
reducibleJoin6: while (true) {
if (value11 == null) {
r37 = value5;
break reducibleJoin6;
}
getChannelRecords = value11.getChannelRecords;
value12 = Reflect.apply(getChannelRecords, value11, []);
filter = value12.filter;
value13 = Reflect.apply(filter, value12, [_fun111868]);
r37 = value13;
break reducibleJoin6;
}
if (r37 == null) {
break reducibleJoin19;
}
length = r37.length;
if (length === 0) {
break reducibleJoin19;
}
string = intl.string;
GSfOoo = t.GSfOoo;
value14 = Reflect.apply(string, intl, [GSfOoo]);
SECTION_INDEX_FAVORITES = (require(5092) /* metro dependency 5092: ChannelListState */).SECTION_INDEX_FAVORITES;
if (property === SECTION_INDEX_FAVORITES) {
string = intl.string;
mlPMCy = t.mlPMCy;
value17 = Reflect.apply(string, intl, [mlPMCy]);
r36 = value17;
} else {
SECTION_INDEX_RECENTS = (require(5092) /* metro dependency 5092: ChannelListState */).SECTION_INDEX_RECENTS;
if (property === SECTION_INDEX_RECENTS) {
string = intl.string;
gKcrqM = t.gKcrqM;
value16 = Reflect.apply(string, intl, [gKcrqM]);
r36 = value16;
} else {
SECTION_INDEX_FIRST_NAMED_CATEGORY = (require(5092) /* metro dependency 5092: ChannelListState */).SECTION_INDEX_FIRST_NAMED_CATEGORY;
reducibleJoin17: while (true) {
if (property >= SECTION_INDEX_FIRST_NAMED_CATEGORY) {
guildChannelsBinding = guildChannels;
getNamedCategoryFromSection = guildChannelsBinding.getNamedCategoryFromSection;
value15 = Reflect.apply(getNamedCategoryFromSection, guildChannelsBinding, [property]);
reducibleJoin13: while (true) {
if (value15 == null) {
name = value5;
break reducibleJoin13;
}
record = value15.record;
name = record.name;
break reducibleJoin13;
}
r39 = name ?? '';
r36 = r39;
break reducibleJoin17;
}
r36 = value14;
break reducibleJoin17;
}
}
}
push = items2.push;
Reflect.apply(push, items2, [{kind: 'categoryHeader', index: property, title: r36}]);
value18 = _createForOfIteratorHelperLoose_111853(r37.entries());
value19 = value18();
done = value19.done;
if (done) {
break reducibleJoin19;
}
r32 = value19;
reducibleLoop18: while (true) {
value20 = r32.value;
value21 = env1_3(value20, 2);
property = value21[0];
property2 = value21[1];
push = items2.push;
object2 = {kind: 'channel'};
id = property2.id;
object2.channelId = id;
object2.start = property === 0;
length = r37.length;
object2.end = property === length - 1;
binding = env0_4;
ICYMICustomScore = (require(9579) /* metro dependency 9579: ICYMIUtils */).ICYMICustomScore;
MUTED = ICYMICustomScore.MUTED;
object2.disabled = binding === MUTED;
Reflect.apply(push, items2, [object2]);
value22 = value18();
done = value22.done;
if (done) {
break reducibleJoin19;
}
r32 = value22;
continue reducibleLoop18;
}
}
value23 = value6();
done = value23.done;
if (done) {
break reducibleLoop1;
}
r11 = value23;
continue reducibleLoop1;
}
}
property = items2[items2.length - 1];
reducibleJoin22: while (true) {
if (property.kind !== 'channel') {
break reducibleJoin22;
}
property.end = true;
break reducibleJoin22;
}
return items2;
function _fun111868(a0) { // fn#111868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15017:4146, offset: 0x023b584c, size: 41 bytes, params: 2, frame: 11
const value = environment.__proto__.__proto__;
return (ICYMIUtilsModule).isChannelCustomScoreEligible(a0);
}
}
function _fun111869({item}) { // fn#111869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15017:4980, offset: 0x023b5875, size: 644 bytes, params: 2, frame: 26
var r0;
var value;
const Text = (TextModule).Text;
var guildBinding;
var value4;
var value5;
var jsxRuntimeEnv1_13Binding;
var items2;
const intl = (IndexNativeModule).intl;
var string;
const t = (IndexNativeModule).t;
var object2;
const kind = item.kind;
if (kind === 'header') {
guildBinding = guild;
value4 = null;
if (value4 != guildBinding) {
value5 = environment.__proto__;
jsxRuntimeEnv1_13Binding = jsxRuntimeEnv1_13;
value = (
<View style={styles.guildHeader}>
{((GuildScoreSettings) => <GuildScoreSettings guild={guild} />)((require(14822) /* metro dependency 14822: ICYMIContentSettingControl */).GuildScoreSettings)}
</View>
);
items2 = [value];
string = intl.string;
items2[1] = (
<Text variant="text-sm/semibold" color="text-default">
{Reflect.apply(string, intl, [t['0jRosn']])}
</Text>
);
object2 = {};
object2.marginBottom = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
string = intl.string;
items2[2] = (
<Text
variant="text-xs/normal"
color="text-default"
style={object2}
>
{Reflect.apply(string, intl, [t.l52PX4])}
</Text>
);
value = (
<>
{items2}
</>
);
r0 = value;
} else {
r0 = value4;
}
return r0;
}
if (kind === 'categoryHeader') {
value = environment.__proto__;
return (
<View style={styles.categoryHeader}>
{((ChevronSmallDownIcon) => <ChevronSmallDownIcon size="xs" color={(importDefault(697) /* metro dependency 697: native */).colors.TEXT_SUBTLE} />)((require(8708) /* metro dependency 8708: ChevronSmallDownIcon */).ChevronSmallDownIcon)}
<Text variant="text-sm/semibold" color="text-default">
{item.title}
</Text>
</View>
);
}
if (kind === 'channel') {
value = environment.__proto__;
return (
<ICYMICustomScoreChannelRow
disabled={item.disabled}
channelId={item.channelId}
start={item.start}
end={item.end}
/>
);
}
return null;
}
}
if (kind === 'channel') {
value = environment.__proto__;
return (
<ICYMICustomScoreChannelRow
disabled={item.disabled}
channelId={item.channelId}
start={item.start}
end={item.end}
/>
);
}
return null;
}
function _fun111868(a0) { // fn#111868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15017:4146, offset: 0x023b584c, size: 41 bytes, params: 2, frame: 11
const value = environment.__proto__.__proto__;
return (require(9579) /* metro dependency 9579: ICYMIUtils */).isChannelCustomScoreEligible(a0);
}
global.__d(_fun111852, 14820, [57, 31, 27, 5070, 1379, 1867, 4864, 9569, 33, 4501, 697, 566, 4805, 9579, 1244, 4080,
14821, 1962, 6647, 6238, 1305, 10937, 4573, 5092, 7705, 1585, 14822, 8708, 8416,
2]) /* metro module 14820, dependencies: [57, 31, 27, 5070, 1379, 1867, 4864, 9569, 33, 4501, 697, 566, 4805, 9579, 1244, 4080, 14821, 1962, 6647, 6238, 1305, 10937, 4573, 5092, 7705, 1585, 14822, 8708, 8416, 2] */;
@@ -1,78 +1,95 @@
/* Metro module 14818; source: modules/icymi/native/custom_scores/ICYMICustomScoresModal.tsx; dependencies: [31, 33, 9884, 4501, 697, 5280, 9603, 1244, 9893, 14819, 14820, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import GetNavigationModalPresentation from '../../../main_tabs_v2/native/utils/getNavigationModalPresentation.tsx'; /* Metro dependency 9893 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as NavigatorNativeModule from '../../../../design/components/Navigator/native/Navigator.native.tsx'; /* Metro dependency 5280 */
import * as HeaderSharedModule from '../../../main_tabs_v2/native/shared_components/HeaderShared.tsx'; /* Metro dependency 9603 */
import * as Module09884Module from '../../../../by-id/module-09884.js'; /* Metro dependency 9884 */
function _fun111834(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111834, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15015:6, offset: 0x023b4093, size: 234 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
let value = require(33) /* metro dependency 33 */;
ReactModule;
let value = JsxRuntimeModule;
const env0_3 = value.jsx;
const env0_4 = value.jsxs;
const env0_5 = (require(9884) /* metro dependency 9884 */).createNativeStackNavigator();
const env0_5 = (Module09884Module).createNativeStackNavigator();
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
const BACKGROUND_BASE_LOW = (Native).colors.BACKGROUND_BASE_LOW;
const env0_6 = Reflect.apply(createStyles, value, [{header: {backgroundColor: BACKGROUND_BASE_LOW}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/custom_scores/ICYMICustomScoresModal.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/custom_scores/ICYMICustomScoresModal.tsx');
exports.default = ICYMICustomScoresModal;
}
function ICYMICustomScoresModal() { // fn#111835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15015:362, offset: 0x023b417d, size: 204 bytes, params: 1, frame: 19
const env0_0 = useStyles();
const env0_1 = (require(5280) /* metro dependency 5280: NavigatorNative */).useAccessibilityNativeStackOptions();
const binding = env0_5;
const Navigator = binding.Navigator;
const object2 = {screenOptions: screenOptions_111836, initialRouteName: 'default'};
let Screen = binding.Screen;
const screen = <Screen name="default" options={options_111838} getComponent={function() {
return require(dependencyMap[9]).default;
}} />;
Screen = binding.Screen;
return (
<Navigator {...object2}>
{screen}
function ICYMICustomScoresModal() { // fn#111835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15015:362, offset: 0x023b417d, size: 204 bytes, params: 1, frame: 19
const env0_0 = useStyles();
const env0_1 = (NavigatorNativeModule).useAccessibilityNativeStackOptions();
const binding = env0_5;
const Navigator = binding.Navigator;
const object = {screenOptions: screenOptions_111836, initialRouteName: 'default'};
let Screen = binding.Screen;
const screen = (
<Screen
name="guild"
options={options_111840}
name="default"
options={options_111838}
getComponent={function() {
return require(dependencyMap[10]).default;
}}
return require(dependencyMap[9]).default;
}}
/>
</Navigator>
);
}
);
Screen = binding.Screen;
return (
<Navigator {...object}>
{screen}
<Screen
name="guild"
options={options_111840}
getComponent={function() {
return require(dependencyMap[10]).default;
}}
/>
</Navigator>
);
function ICYMICustomScoresModalScreenOptions() { // fn#111836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15015:489, owner: ICYMICustomScoresModal.screenOptions, offset: 0x023b4249, size: 55 bytes, params: 1, frame: 12
const object = {};
object.headerStyle = styles.header;
object.headerTitle = headerTitle_111837;
object.headerTitleAlign = 'center';
copyDataProperties(object, env0_1, 'center');
return object;
function screenOptionsHeaderTitle_111837(a0) { // fn#111837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15015:528, owner: ICYMICustomScoresModal.screenOptions.headerTitle, offset: 0x023b4280, size: 87 bytes, params: 2, frame: 16
const children = a0.children;
const value = Object.create(null);
value.children = 0;
const value2 = copyDataProperties({}, a0, value, children);
const GenericHeaderTitle = (HeaderSharedModule).GenericHeaderTitle;
return <GenericHeaderTitle title={children} {...value2} />;
}
function ICYMICustomScoresModalScreenOptions() { // fn#111836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15015:489, owner: ICYMICustomScoresModal.screenOptions, offset: 0x023b4249, size: 55 bytes, params: 1, frame: 12
const object2 = {};
object2.headerStyle = styles.header;
object2.headerTitle = headerTitle_111837;
object2.headerTitleAlign = 'center';
copyDataProperties(object2, env0_1, 'center');
return object2;
}
}
function ICYMICustomScoresModalOptions({navigation}) { // fn#111838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15015:699, owner: ICYMICustomScoresModal.options, offset: 0x023b42d7, size: 134 bytes, params: 2, frame: 18
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.jVshKt);
object2.headerLeft = (require(9603) /* metro dependency 9603: HeaderShared */).getRenderModalCloseImage(navigation);
copyDataProperties(object2, (importDefault(9893) /* metro dependency 9893: getNavigationModalPresentation */)(),
intl);
return object2;
}
function ICYMICustomScoresModalOptions({navigation}) { // fn#111838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15015:699, owner: ICYMICustomScoresModal.options, offset: 0x023b42d7, size: 134 bytes, params: 2, frame: 18
const object = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.jVshKt);
object.headerLeft = (require(9603) /* metro dependency 9603: HeaderShared */).getRenderModalCloseImage(navigation);
copyDataProperties(object, (GetNavigationModalPresentation)(),
intl);
return object;
}
function ICYMICustomScoresModalOptions_111840({navigation}) { // fn#111840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15015:893, owner: ICYMICustomScoresModal.options, offset: 0x023b437d, size: 54 bytes, params: 2, frame: 13
const object2 = {};
const value = environment.__proto__;
object2.headerLeft = (require(9603) /* metro dependency 9603: HeaderShared */).getRenderModalBackImage(navigation);
return object2;
}
function ICYMICustomScoresModalOptions_111840({navigation}) { // fn#111840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15015:893, owner: ICYMICustomScoresModal.options, offset: 0x023b437d, size: 54 bytes, params: 2, frame: 13
const object = {};
const value = environment.__proto__;
object.headerLeft = (require(9603) /* metro dependency 9603: HeaderShared */).getRenderModalBackImage(navigation);
return object;
}
}
function screenOptionsHeaderTitle_111837(a0) { // fn#111837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15015:528, owner: ICYMICustomScoresModal.screenOptions.headerTitle, offset: 0x023b4280, size: 87 bytes, params: 2, frame: 16
const children = a0.children;
const value = Object.create(null);
value.children = 0;
const value2 = copyDataProperties({}, a0, value, children);
const GenericHeaderTitle = (require(9603) /* metro dependency 9603: HeaderShared */).GenericHeaderTitle;
return <GenericHeaderTitle title={children} {...value2} />;
}
global.__d(_fun111834, 14818, [31, 33, 9884, 4501, 697, 5280, 9603, 1244, 9893, 14819, 14820,
2]) /* metro module 14818, dependencies: [31, 33, 9884, 4501, 697, 5280, 9603, 1244, 9893, 14819, 14820, 2] */;
@@ -1,95 +1,111 @@
/* Metro module 14819; source: modules/icymi/native/custom_scores/ICYMICustomScoresOverviewScreen.tsx; dependencies: [31, 27, 1867, 4896, 9569, 33, 4501, 697, 566, 1585, 6231, 6238, 6819, 9579, 1244, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UseSafeAreaInsetsNative from '../../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import GuildStore from '../../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import SortedGuildStore from '../../../../stores/SortedGuildStore.tsx'; /* Metro dependency 4896 */
import GuildIcon from '../../../guild/native/GuildIcon.tsx'; /* Metro dependency 6819 */
import ICYMIStore from '../../ICYMIStore.tsx'; /* Metro dependency 9569 */
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 CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TableRowGroupNativeModule from '../../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
function _fun111842(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111842, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15016:6, offset: 0x023b43d3, size: 301 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).ScrollView;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const sortedGuildStore = importDefault(4896) /* metro dependency 4896: SortedGuildStore */;
const icymiStore = importDefault(9569) /* metro dependency 9569: ICYMIStore */;
const env0_8 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const object = {flex: 1};
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object.backgroundColor = BACKGROUND_BASE_LOW;
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object.paddingHorizontal = PX_12;
const env0_9 = Reflect.apply(createStyles, createStylesModule, [{container: object}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/custom_scores/ICYMICustomScoresOverviewScreen.tsx');
const createStyles = CreateStylesModule.createStyles;
const object2 = {flex: 1};
const BACKGROUND_BASE_LOW = (Native).colors.BACKGROUND_BASE_LOW;
object2.backgroundColor = BACKGROUND_BASE_LOW;
const PX_12 = (Native).space.PX_12;
object2.paddingHorizontal = PX_12;
const env0_9 = Reflect.apply(createStyles, CreateStylesModule, [{container: object2}]);
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/custom_scores/ICYMICustomScoresOverviewScreen.tsx');
exports.default = ICYMICustomScoresOverviewScreen;
}
function ICYMICustomScoresOverviewScreen({navigation}) { // fn#111843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15016:420, offset: 0x023b4500, size: 387 bytes, params: 2, frame: 22
const guilds = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
return GuildStore.getGuilds();
});
const flattenedGuildIds = (require(566) /* metro dependency 566: flux */).useStateFromStores([SortedGuildStore],
function() {
return SortedGuildStore.getFlattenedGuildIds();
});
const binding = (require(566) /* metro dependency 566: flux */).useStateFromStores([ICYMIStore], function() {
return ICYMIStore.getCustomGuildScores();
});
const value2 = binding.useMemo(function() {
return flattenedGuildIds.map(_fun111848);
}, [flattenedGuildIds, guilds]);
const styles = useStyles();
const bottom = (UseSafeAreaInsetsNative)().bottom;
const env0_4 = binding.useCallback(function(a0) {
return navigation.navigate('guild', {guildId: a0});
}, [navigation]);
const object2 = {bottom: bottom};
const PX_12 = (Native).space.PX_12;
object2.top = PX_12;
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
return (
<ScrollView
showsVerticalScrollIndicator={false}
style={styles.container}
contentInset={object2}
>
<TableRowGroup hasIcons>
{value2.map(_fun111850)}
</TableRowGroup>
</ScrollView>
);
function _fun111847() { // fn#111847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15016:678, offset: 0x023b46ab, size: 28 bytes, params: 1, frame: 11
return flattenedGuildIds.map(function(a0) {
return guilds[a0];
});
function _fun111848(a0) { // fn#111848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15016:689, offset: 0x00f7d434, size: 16 bytes, params: 2, frame: 2
return guilds[a0];
}
function ICYMICustomScoresOverviewScreen({navigation}) { // fn#111843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15016:420, offset: 0x023b4500, size: 387 bytes, params: 2, frame: 22
const guilds = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
return GuildStore.getGuilds();
});
const flattenedGuildIds = (require(566) /* metro dependency 566: flux */).useStateFromStores([SortedGuildStore],
function() {
return SortedGuildStore.getFlattenedGuildIds();
});
const binding = (require(566) /* metro dependency 566: flux */).useStateFromStores([ICYMIStore], function() {
return ICYMIStore.getCustomGuildScores();
});
const value2 = binding.useMemo(function() {
return flattenedGuildIds.map(_fun111848);
}, [flattenedGuildIds, guilds]);
const styles = useStyles();
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
const env0_4 = binding.useCallback(function(a0) {
return navigation.navigate('guild', {guildId: a0});
}, [navigation]);
const object = {bottom: bottom};
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object.top = PX_12;
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
return (
<ScrollView
showsVerticalScrollIndicator={false}
style={styles.container}
contentInset={object}
>
<TableRowGroup hasIcons>
{value2.map(_fun111850)}
</TableRowGroup>
</ScrollView>
);
}
function _fun111847() { // fn#111847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15016:678, offset: 0x023b46ab, size: 28 bytes, params: 1, frame: 11
return flattenedGuildIds.map(function(a0) {
return guilds[a0];
});
}
function _fun111850(a0) { // fn#111850, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15016:963, offset: 0x023b46e9, size: 317 bytes, params: 2, frame: 25
var environment;
var r5;
var moduleValue;
var TrailingText;
var intl;
const env0_0 = a0;
const value = environment.__proto__;
const value2 = undefined;
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const tableRowProps = {onPress: onPress_111851,
icon: ((Component) => <Component guild={a0} />)(importDefault(6819) /* metro dependency 6819: GuildIcon */),
label: a0.name};
if (customGuildScores[a0.id] != null) {
moduleValue = require(9579) /* metro dependency 9579: ICYMIUtils */;
if (moduleValue.numberToCustomScore(customGuildScores[a0.id]) !== (require(9579) /* metro dependency 9579: ICYMIUtils */).ICYMICustomScore.MUTED) {
r5 = value2;
} else {
TrailingText = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow.TrailingText;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r5 = <TrailingText text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.lhPHmz)} />;
}
} else {
r5 = value2;
function _fun111850(a0) { // fn#111850, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15016:963, offset: 0x023b46e9, size: 317 bytes, params: 2, frame: 25
var environment;
var r5;
var moduleValue;
var TrailingText;
var intl;
const env0_0 = a0;
const value = environment.__proto__;
const value2 = undefined;
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const tableRowProps = {onPress: onPress_111851,
icon: ((Component) => <Component guild={a0} />)(GuildIcon),
label: a0.name};
if (customGuildScores[a0.id] != null) {
moduleValue = require(9579) /* metro dependency 9579: ICYMIUtils */;
if (moduleValue.numberToCustomScore(customGuildScores[a0.id]) !== (require(9579) /* metro dependency 9579: ICYMIUtils */).ICYMICustomScore.MUTED) {
r5 = value2;
} else {
TrailingText = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow.TrailingText;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r5 = <TrailingText text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.lhPHmz)} />;
}
} else {
r5 = value2;
}
tableRowProps.trailing = r5;
tableRowProps.arrow = true;
return <TableRow {...tableRowProps} key={a0.id} />;
function onPress_111851() { // fn#111851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15016:995, offset: 0x023b4826, size: 28 bytes, params: 1, frame: 11
return env1_4(env0_0.id);
}
}
}
tableRowProps.trailing = r5;
tableRowProps.arrow = true;
return <TableRow {...tableRowProps} key={a0.id} />;
}
global.__d(_fun111842, 14819, [31, 27, 1867, 4896, 9569, 33, 4501, 697, 566, 1585, 6231, 6238, 6819, 9579, 1244,
2]) /* metro module 14819, dependencies: [31, 27, 1867, 4896, 9569, 33, 4501, 697, 566, 1585, 6231, 6238, 6819, 9579, 1244, 2] */;
@@ -1,135 +1,165 @@
/* Metro module 14829; source: modules/icymi/native/info_modal/ICYMIInfoModal.tsx; dependencies: [31, 33, 5280, 14830, 5282, 14831, 480, 5080, 5277, 1244, 9589, 14839, 14847, 10121, 12805, 2] */
import ModalActionCreators from '../../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
import ICYMIInfoScreen from './ICYMIInfoScreen.tsx'; /* Metro dependency 14831 */
import ICYMITopicsScreen from './ICYMITopicsScreen.tsx'; /* Metro dependency 14839 */
import ICYMIJoinGuildsScreen from './ICYMIJoinGuildsScreen.tsx'; /* Metro dependency 14847 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as AnalyticsUtilsModule from '../../../../external/discord_common/js/packages/analytics-utils/AnalyticsUtils.tsx'; /* Metro dependency 480 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as HeaderActionButtonNativeModule from '../../../../design/components/Navigator/native/HeaderActionButton.native.tsx'; /* Metro dependency 5277 */
import * as NavigatorNativeModule from '../../../../design/components/Navigator/native/Navigator.native.tsx'; /* Metro dependency 5280 */
import * as ICYMIAnalyticsModule from '../../ICYMIAnalytics.tsx'; /* Metro dependency 9589 */
import * as ICYMIInfoModalTypesModule from './ICYMIInfoModalTypes.tsx'; /* Metro dependency 14830 */
function _fun111899(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111899, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:6, offset: 0x023b736b, size: 142 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/info_modal/ICYMIInfoModal.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/info_modal/ICYMIInfoModal.tsx');
exports.default = ICYMIInfoModal;
}
function ICYMIInfoModal({extendedOnboarding, skipIntro}) { // fn#111900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:215, offset: 0x023b73f9, size: 251 bytes, params: 2, frame: 20
var r0;
var ICYMIInfoScreens;
var StepModal;
let object = {extendedOnboarding: extendedOnboarding, skipIntro: skipIntro};
let value = ICYMIInfoModalUseScreens(object);
if (extendedOnboarding) {
StepModal = (require(12805) /* metro dependency 12805: StepModalNative */).StepModal;
object = {screens: value, steps: ReactModule.useMemo(_fun111911, [extendedOnboarding, skipIntro])};
ICYMIInfoScreens = (require(14830) /* metro dependency 14830: ICYMIInfoModalTypes */).ICYMIInfoScreens;
object.initialRouteName = skipIntro ? ICYMIInfoScreens.TOPICS_CLOUD : ICYMIInfoScreens.DEFAULT;
value = <StepModal {...object} />;
r0 = value;
} else {
const Modal = (require(10121) /* metro dependency 10121: ModalNative */).Modal;
value = (
<Modal
screens={value}
initialRouteName={(require(14830) /* metro dependency 14830: ICYMIInfoModalTypes */).ICYMIInfoScreens.DEFAULT}
/>
);
r0 = value;
}
return r0;
function ICYMIInfoModalUseScreens({extendedOnboarding, skipIntro}) { // fn#111901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:281, owner: ICYMIInfoModal.useScreens, offset: 0x023b74f4, size: 83 bytes, params: 2, frame: 15
var environment;
const value = environment.__proto__;
return (NavigatorNativeModule).useNavigatorScreens(_fun111902,
[extendedOnboarding, skipIntro]);
function _fun111902() { // fn#111902, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:373, offset: 0x023b7547, size: 386 bytes, params: 1, frame: 22
var environment;
const object = {};
const value = environment.__proto__.__proto__;
const ICYMIInfoScreens = (ICYMIInfoModalTypesModule).ICYMIInfoScreens;
const DEFAULT = ICYMIInfoScreens.DEFAULT;
const object2 = {};
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton();
object2.render = render_111903;
const ImpressionNames = (AnalyticsUtilsModule).ImpressionNames;
const ICYMI_ONBOARDING_OVERVIEW = ImpressionNames.ICYMI_ONBOARDING_OVERVIEW;
object2.impressionName = ICYMI_ONBOARDING_OVERVIEW;
object2.impressionProperties = {extended_onboarding: extendedOnboarding};
object[DEFAULT] = object2;
const TOPICS_CLOUD = ICYMIInfoScreens.TOPICS_CLOUD;
const skipIntroBinding = skipIntro;
const navigatorHeaderNativeModule = require(5282) /* metro dependency 5282: NavigatorHeaderNative */;
const r4 = skipIntroBinding ? navigatorHeaderNativeModule.getHeaderCloseButton(function() {
return importDefault(dependencyMap[7]).popWithKey(require(dependencyMap[3]).ICYMI_INFO_MODAL_KEY);
}) : navigatorHeaderNativeModule.getHeaderBackButton();
const ICYMI_ONBOARDING_TOPICS = ImpressionNames.ICYMI_ONBOARDING_TOPICS;
object[TOPICS_CLOUD] = {headerLeft: r4, headerRight: headerRight_111905, render: render_111907,
impressionName: ICYMI_ONBOARDING_TOPICS};
const JOIN_GUILDS = ICYMIInfoScreens.JOIN_GUILDS;
const object5 = {};
object5.headerLeft = navigatorHeaderNativeModule.getHeaderBackButton();
object5.headerRight = headerRight_111908;
object5.render = render_111910;
const ICYMI_ONBOARDING_SELECT_GUILDS = ImpressionNames.ICYMI_ONBOARDING_SELECT_GUILDS;
object5.impressionName = ICYMI_ONBOARDING_SELECT_GUILDS;
object[JOIN_GUILDS] = object5;
return object;
function render_111903() { // fn#111903, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:464, offset: 0x023b76c9, size: 51 bytes, params: 1, frame: 14
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component extendedOnboarding={extendedOnboarding} />)(ICYMIInfoScreen);
}
function headerRight_111905() { // fn#111905, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:794, offset: 0x023b7738, size: 121 bytes, params: 1, frame: 19
var environment;
var r0;
var HeaderActionButton;
var intl;
let value = environment.__proto__;
const skipIntroBinding = skipIntro;
value = null;
if (skipIntroBinding) {
r0 = value;
} else {
value = environment.__proto__.__proto__.__proto__;
HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
value = (
<HeaderActionButton
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['5Wxrcd'])}
onPress={onPress_111906}
/>
);
r0 = value;
}
return r0;
function headerRight_111905OnPress() { // fn#111906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:889, owner: headerRight_111905.onPress, offset: 0x023b77b1, size: 82 bytes, params: 1, frame: 15
const value = environment.__proto__.__proto__.__proto__.__proto__;
const ICYMIAnalytics = (ICYMIAnalyticsModule).ICYMIAnalytics;
ICYMIAnalytics.trackFeedOnboardingScreenSkipped({location: 'topics'});
(ModalActionCreators).pop();
}
}
function render_111907() { // fn#111907, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:996, offset: 0x023b7803, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(ICYMITopicsScreen);
}
function headerRight_111908() { // fn#111908, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:1172, offset: 0x023b782a, size: 109 bytes, params: 1, frame: 18
const HeaderActionButton = (HeaderActionButtonNativeModule).HeaderActionButton;
const intl = (IndexNativeModule).intl;
return (
<HeaderActionButton
text={intl.string((IndexNativeModule).t['5Wxrcd'])}
onPress={onPress_111909}
/>
);
function headerRight_111908OnPress() { // fn#111909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:1260, owner: headerRight_111908.onPress, offset: 0x023b7897, size: 80 bytes, params: 1, frame: 15
const value = environment.__proto__.__proto__.__proto__.__proto__;
const ICYMIAnalytics = (ICYMIAnalyticsModule).ICYMIAnalytics;
ICYMIAnalytics.trackFeedOnboardingScreenSkipped({location: 'guilds'});
(ModalActionCreators).pop();
}
}
function render_111910() { // fn#111910, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:1367, offset: 0x023b78e7, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(ICYMIJoinGuildsScreen);
}
}
}
function _fun111911() { // fn#111911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:1517, offset: 0x023b790e, size: 208 bytes, params: 1, frame: 16
const ICYMIInfoScreens = (ICYMIInfoModalTypesModule).ICYMIInfoScreens;
return extendedOnboarding ? skipIntro ? [ICYMIInfoScreens.TOPICS_CLOUD,
ICYMIInfoScreens.JOIN_GUILDS] : [ICYMIInfoScreens.DEFAULT, ICYMIInfoScreens.TOPICS_CLOUD,
ICYMIInfoScreens.JOIN_GUILDS] : [ICYMIInfoScreens.DEFAULT];
}
function ICYMIInfoModal({extendedOnboarding, skipIntro}) { // fn#111900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:215, offset: 0x023b73f9, size: 251 bytes, params: 2, frame: 20
var r0;
var ICYMIInfoScreens;
var StepModal;
let object2 = {extendedOnboarding: extendedOnboarding, skipIntro: skipIntro};
let value = ICYMIInfoModalUseScreens(object2);
if (extendedOnboarding) {
StepModal = (require(12805) /* metro dependency 12805: StepModalNative */).StepModal;
object2 = {screens: value, steps: env0_3.useMemo(_fun111911, [extendedOnboarding, skipIntro])};
ICYMIInfoScreens = (require(14830) /* metro dependency 14830: ICYMIInfoModalTypes */).ICYMIInfoScreens;
object2.initialRouteName = skipIntro ? ICYMIInfoScreens.TOPICS_CLOUD : ICYMIInfoScreens.DEFAULT;
value = <StepModal {...object2} />;
r0 = value;
} else {
const Modal = (require(10121) /* metro dependency 10121: ModalNative */).Modal;
value = <Modal screens={value} initialRouteName={(require(14830) /* metro dependency 14830: ICYMIInfoModalTypes */).ICYMIInfoScreens.DEFAULT} />;
r0 = value;
}
return r0;
}
function ICYMIInfoModalUseScreens({extendedOnboarding, skipIntro}) { // fn#111901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:281, owner: ICYMIInfoModal.useScreens, offset: 0x023b74f4, size: 83 bytes, params: 2, frame: 15
var environment;
const value = environment.__proto__;
return (require(5280) /* metro dependency 5280: NavigatorNative */).useNavigatorScreens(_fun111902,
[extendedOnboarding, skipIntro]);
}
function _fun111911() { // fn#111911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:1517, offset: 0x023b790e, size: 208 bytes, params: 1, frame: 16
const ICYMIInfoScreens = (require(14830) /* metro dependency 14830: ICYMIInfoModalTypes */).ICYMIInfoScreens;
return extendedOnboarding ? skipIntro ? [ICYMIInfoScreens.TOPICS_CLOUD,
ICYMIInfoScreens.JOIN_GUILDS] : [ICYMIInfoScreens.DEFAULT, ICYMIInfoScreens.TOPICS_CLOUD,
ICYMIInfoScreens.JOIN_GUILDS] : [ICYMIInfoScreens.DEFAULT];
}
function _fun111902() { // fn#111902, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:373, offset: 0x023b7547, size: 386 bytes, params: 1, frame: 22
var environment;
const object3 = {};
const value = environment.__proto__.__proto__;
const ICYMIInfoScreens = (require(14830) /* metro dependency 14830: ICYMIInfoModalTypes */).ICYMIInfoScreens;
const DEFAULT = ICYMIInfoScreens.DEFAULT;
const object4 = {};
object4.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton();
object4.render = render_111903;
const ImpressionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionNames;
const ICYMI_ONBOARDING_OVERVIEW = ImpressionNames.ICYMI_ONBOARDING_OVERVIEW;
object4.impressionName = ICYMI_ONBOARDING_OVERVIEW;
object4.impressionProperties = {extended_onboarding: extendedOnboarding};
object3[DEFAULT] = object4;
const TOPICS_CLOUD = ICYMIInfoScreens.TOPICS_CLOUD;
const skipIntroBinding = skipIntro;
const navigatorHeaderNativeModule = require(5282) /* metro dependency 5282: NavigatorHeaderNative */;
const r4 = skipIntroBinding ? navigatorHeaderNativeModule.getHeaderCloseButton(function() {
return importDefault(dependencyMap[7]).popWithKey(require(dependencyMap[3]).ICYMI_INFO_MODAL_KEY);
}) : navigatorHeaderNativeModule.getHeaderBackButton();
const ICYMI_ONBOARDING_TOPICS = ImpressionNames.ICYMI_ONBOARDING_TOPICS;
object3[TOPICS_CLOUD] = {headerLeft: r4, headerRight: headerRight_111905, render: render_111907,
impressionName: ICYMI_ONBOARDING_TOPICS};
const JOIN_GUILDS = ICYMIInfoScreens.JOIN_GUILDS;
const object6 = {};
object6.headerLeft = navigatorHeaderNativeModule.getHeaderBackButton();
object6.headerRight = headerRight_111908;
object6.render = render_111910;
const ICYMI_ONBOARDING_SELECT_GUILDS = ImpressionNames.ICYMI_ONBOARDING_SELECT_GUILDS;
object6.impressionName = ICYMI_ONBOARDING_SELECT_GUILDS;
object3[JOIN_GUILDS] = object6;
return object3;
}
function render_111903() { // fn#111903, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:464, offset: 0x023b76c9, size: 51 bytes, params: 1, frame: 14
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component extendedOnboarding={extendedOnboarding} />)(importDefault(14831) /* metro dependency 14831: ICYMIInfoScreen */);
}
function headerRight_111905() { // fn#111905, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:794, offset: 0x023b7738, size: 121 bytes, params: 1, frame: 19
var environment;
var r0;
var HeaderActionButton;
var intl;
let value = environment.__proto__;
const skipIntroBinding = skipIntro;
value = null;
if (skipIntroBinding) {
r0 = value;
} else {
value = environment.__proto__.__proto__.__proto__;
HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
value = <HeaderActionButton text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['5Wxrcd'])} onPress={onPress_111906} />;
r0 = value;
}
return r0;
}
function headerRight_111908() { // fn#111908, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:1172, offset: 0x023b782a, size: 109 bytes, params: 1, frame: 18
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<HeaderActionButton
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['5Wxrcd'])}
onPress={onPress_111909}
/>
);
}
function render_111910() { // fn#111910, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:1367, offset: 0x023b78e7, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(importDefault(14847) /* metro dependency 14847: ICYMIJoinGuildsScreen */);
}
function headerRight_111905OnPress() { // fn#111906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:889, owner: headerRight_111905.onPress, offset: 0x023b77b1, size: 82 bytes, params: 1, frame: 15
const value = environment.__proto__.__proto__.__proto__.__proto__;
const ICYMIAnalytics = (require(9589) /* metro dependency 9589: ICYMIAnalytics */).ICYMIAnalytics;
ICYMIAnalytics.trackFeedOnboardingScreenSkipped({location: 'topics'});
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
}
function headerRight_111908OnPress() { // fn#111909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15026:1260, owner: headerRight_111908.onPress, offset: 0x023b7897, size: 80 bytes, params: 1, frame: 15
const value = environment.__proto__.__proto__.__proto__.__proto__;
const ICYMIAnalytics = (require(9589) /* metro dependency 9589: ICYMIAnalytics */).ICYMIAnalytics;
ICYMIAnalytics.trackFeedOnboardingScreenSkipped({location: 'guilds'});
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
}
global.__d(_fun111899, 14829, [31, 33, 5280, 14830, 5282, 14831, 480, 5080, 5277, 1244, 9589, 14839, 14847, 10121,
12805,
2]) /* metro module 14829, dependencies: [31, 33, 5280, 14830, 5282, 14831, 480, 5080, 5277, 1244, 9589, 14839, 14847, 10121, 12805, 2] */;
@@ -1,10 +1,13 @@
/* Metro module 14830; source: modules/icymi/native/info_modal/ICYMIInfoModalTypes.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun111912(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111912, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15027:6, offset: 0x023b79de, size: 135 bytes, params: 8, frame: 16
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/info_modal/ICYMIInfoModalTypes.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/info_modal/ICYMIInfoModalTypes.tsx');
exports.ICYMI_INFO_MODAL_KEY = 'icymi-info-modal';
exports.ICYMI_DISCOVERABLE_GUILDS_PAGE_SIZE = 48;
exports.ICYMIInfoScreens = {DEFAULT: 'default', TOPICS_CLOUD: 'topics_cloud', JOIN_GUILDS: 'join_guilds'};
}
global.__d(_fun111912, 14830, [2]) /* metro module 14830, dependencies: [2] */;
@@ -1,204 +1,318 @@
/* Metro module 14831; source: modules/icymi/native/info_modal/ICYMIInfoScreen.tsx; dependencies: [57, 5, 31, 27, 482, 33, 4501, 697, 5314, 1585, 4048, 1484, 9589, 14832, 5080, 9603, 9611, 1244, 5475, 14834, 14835, 14836, 14837, 4573, 9390, 10229, 4073, 4080, 14838, 1962, 4578, 2] */
import Module00005 from '../../../../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UseSafeAreaInsetsNative from '../../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import UseTheme from '../../../../hooks/useTheme.tsx'; /* Metro dependency 4048 */
import ModalActionCreators from '../../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
import FastImage from '../../../../components_native/common/FastImage.tsx'; /* Metro dependency 5475 */
import Module09611 from '../../../../by-id/module-09611.js'; /* Metro dependency 9611 */
import BgFade3xPng from '../../../../external/discord_assets/assets/icymi/bg-fade-3x.png.js'; /* Metro dependency 14834 */
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 ConstantsModule from '../../../../external/discord_common/js/shared/Constants.tsx'; /* Metro dependency 482 */
import * as UseNavigationNativeModule from '../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as CircleCheckIconModule from '../../../../design/components/Icon/native/redesign/generated/CircleCheckIcon.tsx'; /* Metro dependency 4073 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as NavigatorConstantsNativeModule from '../../../../design/components/Navigator/native/NavigatorConstants.native.tsx'; /* Metro dependency 5314 */
import * as ServerIconModule from '../../../../design/components/Icon/native/redesign/generated/ServerIcon.tsx'; /* Metro dependency 9390 */
import * as HeaderSharedModule from '../../../main_tabs_v2/native/shared_components/HeaderShared.tsx'; /* Metro dependency 9603 */
import * as NewUserIconModule from '../../../../design/components/Icon/native/redesign/generated/NewUserIcon.tsx'; /* Metro dependency 10229 */
function _fun111913(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15028:6, offset: 0x023b7a65, size: 818 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 */;
const env0_4 = importDefault(5) /* metro dependency 5 */;
const env0_5 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_6 = value.View;
const env0_7 = value.ScrollView;
const env0_8 = (require(482) /* metro dependency 482: Constants */).ThemeTypes;
value = require(33) /* metro dependency 33 */;
const env0_9 = value.jsx;
const env0_10 = value.jsxs;
const env0_11 = value.Fragment;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object = {};
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
object2.container = {'backgroundColor': null, 'position': 'relative', 'flex': 1,
object.container = {'backgroundColor': null, 'position': 'relative', 'flex': 1,
backgroundColor: BACKGROUND_BASE_LOWER};
const NAV_BAR_HEIGHT = (require(5314) /* metro dependency 5314: NavigatorConstantsNative */).NAV_BAR_HEIGHT;
object2.closeIcon = {'position': 'absolute', 'justifyContent': 'center', 'left': 12, 'width': 24, 'height': null,
const NAV_BAR_HEIGHT = (NavigatorConstantsNativeModule).NAV_BAR_HEIGHT;
object.closeIcon = {'position': 'absolute', 'justifyContent': 'center', 'left': 12, 'width': 24, 'height': null,
'zIndex': 2, height: NAV_BAR_HEIGHT};
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
object2.closeIconColor = {backgroundColor: MOBILE_TEXT_HEADING_PRIMARY};
object2.bgImage = {'position': 'absolute', 'top': 0, 'left': 0, 'width': '100%', 'aspectRatio': 1.2515923566878981,
object.closeIconColor = {backgroundColor: MOBILE_TEXT_HEADING_PRIMARY};
object.bgImage = {'position': 'absolute', 'top': 0, 'left': 0, 'width': '100%', 'aspectRatio': 1.2515923566878981,
'overflow': 'visible'};
object2.headerImg = {'position': 'absolute', 'top': 16, 'width': 361, 'height': 240};
object2.flashIcon = {'marginBottom': 32, 'marginTop': 132};
object2.subContainer = {'flex': 1, 'paddingHorizontal': 16, 'paddingTop': 16};
object2.header = {'alignItems': 'center', 'paddingHorizontal': 12};
object2.headerText = {'textAlign': 'center', 'marginTop': 8};
const object3 = {'gap': 16, 'padding': 16, 'backgroundColor': null, 'borderRadius': null, 'marginTop': 40};
object.headerImg = {'position': 'absolute', 'top': 16, 'width': 361, 'height': 240};
object.flashIcon = {'marginBottom': 32, 'marginTop': 132};
object.subContainer = {'flex': 1, 'paddingHorizontal': 16, 'paddingTop': 16};
object.header = {'alignItems': 'center', 'paddingHorizontal': 12};
object.headerText = {'textAlign': 'center', 'marginTop': 8};
const object5 = {'gap': 16, 'padding': 16, 'backgroundColor': null, 'borderRadius': null, 'marginTop': 40};
const CARD_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CARD_BACKGROUND_DEFAULT;
object3.backgroundColor = CARD_BACKGROUND_DEFAULT;
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object2.body = object3;
object5.backgroundColor = CARD_BACKGROUND_DEFAULT;
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object.body = object5;
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object2.divider = {'height': 1, 'backgroundColor': null, 'marginLeft': 48, backgroundColor: BORDER_SUBTLE};
object2.infoRow = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', 'overflow': 'hidden',
object.divider = {'height': 1, 'backgroundColor': null, 'marginLeft': 48, backgroundColor: BORDER_SUBTLE};
object.infoRow = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', 'overflow': 'hidden',
'gap': 16};
const object4 = {padding: 8};
const object7 = {padding: 8};
const REDESIGN_BUTTON_TERTIARY_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.REDESIGN_BUTTON_TERTIARY_BACKGROUND;
object4.backgroundColor = REDESIGN_BUTTON_TERTIARY_BACKGROUND;
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object2.infoIcon = object4;
object2.infoText = {flexShrink: 1};
object2.hint = {margin: 12};
const object6 = {'position': 'absolute', 'bottom': 0};
object7.backgroundColor = REDESIGN_BUTTON_TERTIARY_BACKGROUND;
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
object.infoIcon = object7;
object.infoText = {flexShrink: 1};
object.hint = {margin: 12};
const object8 = {'position': 'absolute', 'bottom': 0};
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object6.left = PX_24;
object8.left = PX_24;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object6.right = PX_24;
object8.right = PX_24;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object6.paddingBottom = PX_8;
object2.footer = object6;
const env0_12 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/info_modal/ICYMIInfoScreen.tsx');
object8.paddingBottom = PX_8;
object.footer = object8;
const env0_12 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/info_modal/ICYMIInfoScreen.tsx');
exports.default = ICYMIInfoScreen;
}
function ICYMIInfoScreen({extendedOnboarding}) { // fn#111914, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15028:1557, offset: 0x023b7d97, size: 1924 bytes, params: 2, frame: 44
const styles = useStyles();
const {top, bottom} = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)();
const value3 = (importDefault(4048) /* metro dependency 4048: useTheme */)();
const value4 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const binding = env0_5;
const value6 = binding.useCallback(env0_4(_fun111916), [extendedOnboarding, value4]);
binding.useLayoutEffect(_fun111919, [value4]);
const [property, env0_2] = env0_3(binding.useState(false), 2);
const jsxRuntimeEnv0_11Binding = jsxRuntimeEnv0_11;
const items4 = [{marginTop: top}];
items4[1] = styles.closeIcon;
const HeaderIconButton = (require(9603) /* metro dependency 9603: HeaderShared */).HeaderIconButton;
const object = {source: importDefault(9611) /* metro dependency 9611 */, onPress: onPress_111921};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object.accessibilityLabel = Reflect.apply(string, intl, [t.cpT0Cq]);
object.color = styles.closeIconColor.backgroundColor;
const items2 = [<View style={items4}><HeaderIconButton {...object} /></View>];
const items3 = [styles.container];
items3[1] = {marginBottom: bottom};
const value10 = ((Component) => <Component source={{uri: importDefault(14834) /* metro dependency 14834: bgFade3xPng */}} style={styles.bgImage} />)(importDefault(5475) /* metro dependency 5475: FastImage */);
const items5 = [styles.subContainer];
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
items5[1] = {marginTop: top + PX_12};
const FastImage = importDefault(5475) /* metro dependency 5475: FastImage */;
const object2 = {};
const LIGHT = ThemeTypes.LIGHT;
object2.uri = value3 === LIGHT ? importDefault(14835) /* metro dependency 14835: headerImageLight3xPng */ : importDefault(14836) /* metro dependency 14836: headerImageDark3xPng */;
const items6 = [<FastImage source={object2} style={styles.headerImg} />];
items6[1] = <FastImage source={importDefault(14837) /* metro dependency 14837 */} style={styles.flashIcon} />;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
items6[2] = <Text variant="heading-xl/bold" color="mobile-text-heading-primary">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['jnXV/V'])}</Text>;
items6[3] = <Text variant="text-md/normal" color="text-default" style={styles.headerText}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9SjvoK'])}</Text>;
const view = <View style={styles.header}>{items6}</View>;
let infoRow = styles.infoRow;
let infoIcon = styles.infoIcon;
const ServerIcon = (require(9390) /* metro dependency 9390: ServerIcon */).ServerIcon;
const view2 = <View style={infoIcon}><ServerIcon size="sm" color="interactive-text-active" /></View>;
let infoText = styles.infoText;
const items9 = [<View style={infoRow}>{view2}<Text variant="text-md/medium" color="mobile-text-heading-primary" style={infoText}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.knxfqR)}</Text></View>];
items9[1] = <View style={styles.divider} />;
infoRow = styles.infoRow;
infoIcon = styles.infoIcon;
const NewUserIcon = (require(10229) /* metro dependency 10229: NewUserIcon */).NewUserIcon;
const view3 = <View style={infoIcon}><NewUserIcon size="sm" color="interactive-text-active" /></View>;
infoText = styles.infoText;
string = intl.string;
const BnUXZi = (require(1244) /* metro dependency 1244: indexNative */).t.BnUXZi;
items9[2] = <View style={infoRow}>{view3}<Text variant="text-md/medium" color="mobile-text-heading-primary" style={infoText}>{Reflect.apply(string,
intl, [BnUXZi])}</Text></View>;
items9[3] = <View style={styles.divider} />;
infoRow = styles.infoRow;
infoIcon = styles.infoIcon;
const CircleCheckIcon = (require(4073) /* metro dependency 4073: CircleCheckIcon */).CircleCheckIcon;
items9[4] = <View style={infoRow}><View style={infoIcon}><CircleCheckIcon size="sm" color="interactive-text-active" /></View><Text variant="text-md/medium" color="mobile-text-heading-primary" style={styles.infoText}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.itb1rh)}</Text></View>;
items2[1] = <ScrollView style={items3}>{value10}<View style={items5}>{view}<View><View style={styles.body}>{items9}</View><Text variant="text-xs/medium" color="text-muted" style={styles.hint}>{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['jVS/hc'],
{feedbackHook: feedbackHook})}</Text></View></View></ScrollView>;
const items13 = [{marginBottom: bottom}];
items13[1] = styles.footer;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
string = intl.string;
items2[2] = <View style={items13}><Button size="lg" loading={property} text={extendedOnboarding ? Reflect.apply(string,
intl, [t.LhlgY9]) : Reflect.apply(string, intl, [t['+IrDzN']])} onPress={value6} /></View>;
return (
<>
{items2}
</>
);
}
function* _fun111916() { // fn#111916, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15028:1706, offset: 0x023b8526, size: 186 bytes, params: 1, frame: 18
var environment;
var binding;
var binding2;
if (true) {
value = environment.__proto__;
if (require) {
binding = env2_0;
binding2 = env2_2;
binding(binding2[12]).ICYMIAnalytics.trackFeedOnboardingScreenSkipped({location: 'overview'});
dependencyMap(true);
value = binding(binding2[13]);
yield value.maybeFetchGuildDiscoveryCategories();
value = undefined;
if (false) {
return value;
function ICYMIInfoScreen({extendedOnboarding}) { // fn#111914, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15028:1557, offset: 0x023b7d97, size: 1924 bytes, params: 2, frame: 44
const styles = useStyles();
const {top, bottom} = (UseSafeAreaInsetsNative)();
const value3 = (UseTheme)();
const value4 = (UseNavigationNativeModule).useNavigation();
const value6 = ReactModule.useCallback(Module00005(_fun111916), [extendedOnboarding, value4]);
ReactModule.useLayoutEffect(_fun111919, [value4]);
const [property, env0_2] = Module00057(ReactModule.useState(false), 2);
const jsxRuntimeEnv0_11Binding = jsxRuntimeEnv0_11;
const items4 = [{marginTop: top}];
items4[1] = styles.closeIcon;
const HeaderIconButton = (HeaderSharedModule).HeaderIconButton;
const object3 = {source: Module09611, onPress: onPress_111921};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object3.accessibilityLabel = Reflect.apply(string, intl, [t.cpT0Cq]);
object3.color = styles.closeIconColor.backgroundColor;
const items2 = [
<View style={items4}>
<HeaderIconButton {...object3} />
</View>,
];
const items3 = [styles.container];
items3[1] = {marginBottom: bottom};
const value10 = ((Component) => <Component source={{uri: BgFade3xPng}} style={styles.bgImage} />)(FastImage);
const items5 = [styles.subContainer];
const PX_12 = (Native).space.PX_12;
items5[1] = {marginTop: top + PX_12};
const object4 = {};
const LIGHT = ThemeTypes.LIGHT;
object4.uri = value3 === LIGHT ? importDefault(14835) /* metro dependency 14835: headerImageLight3xPng */ : importDefault(14836) /* metro dependency 14836: headerImageDark3xPng */;
const items6 = [
<FastImage source={object4} style={styles.headerImg} />,
];
items6[1] = <FastImage source={importDefault(14837) /* metro dependency 14837 */} style={styles.flashIcon} />;
const Text = (TextModule).Text;
items6[2] = (
<Text variant="heading-xl/bold" color="mobile-text-heading-primary">
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['jnXV/V'])}
</Text>
);
items6[3] = (
<Text
variant="text-md/normal"
color="text-default"
style={styles.headerText}
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9SjvoK'])}
</Text>
);
const view = (
<View style={styles.header}>
{items6}
</View>
);
let infoRow = styles.infoRow;
let infoIcon = styles.infoIcon;
const ServerIcon = (ServerIconModule).ServerIcon;
const view2 = (
<View style={infoIcon}>
<ServerIcon size="sm" color="interactive-text-active" />
</View>
);
let infoText = styles.infoText;
const items9 = [
<View style={infoRow}>
{view2}
<Text
variant="text-md/medium"
color="mobile-text-heading-primary"
style={infoText}
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.knxfqR)}
</Text>
</View>,
];
items9[1] = <View style={styles.divider} />;
infoRow = styles.infoRow;
infoIcon = styles.infoIcon;
const NewUserIcon = (NewUserIconModule).NewUserIcon;
const view3 = (
<View style={infoIcon}>
<NewUserIcon size="sm" color="interactive-text-active" />
</View>
);
infoText = styles.infoText;
string = intl.string;
const BnUXZi = (require(1244) /* metro dependency 1244: indexNative */).t.BnUXZi;
items9[2] = (
<View style={infoRow}>
{view3}
<Text
variant="text-md/medium"
color="mobile-text-heading-primary"
style={infoText}
>
{Reflect.apply(string, intl, [BnUXZi])}
</Text>
</View>
);
items9[3] = <View style={styles.divider} />;
infoRow = styles.infoRow;
infoIcon = styles.infoIcon;
const CircleCheckIcon = (CircleCheckIconModule).CircleCheckIcon;
items9[4] = (
<View style={infoRow}>
<View style={infoIcon}>
<CircleCheckIcon size="sm" color="interactive-text-active" />
</View>
<Text
variant="text-md/medium"
color="mobile-text-heading-primary"
style={styles.infoText}
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.itb1rh)}
</Text>
</View>
);
items2[1] = (
<ScrollView style={items3}>
{value10}
<View style={items5}>
{view}
<View>
<View style={styles.body}>
{items9}
</View>
<Text
variant="text-xs/medium"
color="text-muted"
style={styles.hint}
>
{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['jVS/hc'],
{feedbackHook: feedbackHook})}
</Text>
</View>
</View>
</ScrollView>
);
const items13 = [{marginBottom: bottom}];
items13[1] = styles.footer;
const Button = (ButtonNativeModule).Button;
string = intl.string;
items2[2] = (
<View style={items13}>
<Button
size="lg"
loading={property}
text={extendedOnboarding ? Reflect.apply(string, intl, [t.LhlgY9]) : Reflect.apply(string, intl,
[t['+IrDzN']])}
onPress={value6}
/>
</View>
);
return (
<>
{items2}
</>
);
function* _fun111916() { // fn#111916, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15028:1706, offset: 0x023b8526, size: 186 bytes, params: 1, frame: 18
var environment;
var binding;
var binding2;
if (true) {
value = environment.__proto__;
if (require) {
binding = env2_0;
binding2 = env2_2;
binding(binding2[12]).ICYMIAnalytics.trackFeedOnboardingScreenSkipped({location: 'overview'});
dependencyMap(true);
value = binding(binding2[13]);
yield value.maybeFetchGuildDiscoveryCategories();
value = undefined;
if (false) {
return value;
}
global.setTimeout(function() {
importDefault.navigate('topics_cloud');
global.setTimeout(_fun111918, 500);
}, 100);
} else {
env2_1(env2_2[14]).pop();
}
}
global.setTimeout(function() {
function _fun111917() { // fn#111917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15028:1871, offset: 0x023b85e0, size: 57 bytes, params: 1, frame: 13
importDefault.navigate('topics_cloud');
global.setTimeout(_fun111918, 500);
}, 100);
} else {
env2_1(env2_2[14]).pop();
global.setTimeout(function() {
return dependencyMap(false);
}, 500);
function _fun111918() { // fn#111918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15028:1915, offset: 0x02080acc, size: 18 bytes, params: 1, frame: 11
return dependencyMap(false);
}
}
}
function _fun111919() { // fn#111919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15028:1983, offset: 0x023b8619, size: 37 bytes, params: 1, frame: 12
env0_1.setOptions({header: function() {
return null;
}});
}
function ICYMIInfoScreenOnPress() { // fn#111921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15028:2194, owner: ICYMIInfoScreen.onPress, offset: 0x023b863e, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (ModalActionCreators).pop();
}
function feedbackHook(a0, a1) { // fn#111922, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15028:3993, owner: ICYMIInfoScreen.feedbackHook, offset: 0x023b8663, size: 80 bytes, params: 3, frame: 15
const Text = (TextModule).Text;
return (
<Text
variant="text-xs/medium"
color="text-link"
onPress={onPress_111923}
key={a1}
>
{a0}
</Text>
);
function feedbackHookOnPress() { // fn#111923, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15028:4068, owner: ICYMIInfoScreen.feedbackHook.onPress, offset: 0x023b86b3, size: 82 bytes, params: 1, frame: 16
let value = environment.__proto__.__proto__;
const defaultImport = importDefault(dependencyMap[27]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[29]);
value = value(dependencyMap[28], dependencyMap.paths);
return Reflect.apply(openLazy, defaultImport, [value, 'ICYMIFeedbackSheet', {}]);
}
}
}
}
function _fun111919() { // fn#111919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15028:1983, offset: 0x023b8619, size: 37 bytes, params: 1, frame: 12
env0_1.setOptions({header: function() {
return null;
}});
}
function ICYMIInfoScreenOnPress() { // fn#111921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15028:2194, owner: ICYMIInfoScreen.onPress, offset: 0x023b863e, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
}
function feedbackHook(a0, a1) { // fn#111922, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15028:3993, owner: ICYMIInfoScreen.feedbackHook, offset: 0x023b8663, size: 80 bytes, params: 3, frame: 15
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<Text
variant="text-xs/medium"
color="text-link"
onPress={onPress_111923}
key={a1}
>
{a0}
</Text>
);
}
function _fun111917() { // fn#111917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15028:1871, offset: 0x023b85e0, size: 57 bytes, params: 1, frame: 13
importDefault.navigate('topics_cloud');
global.setTimeout(function() {
return dependencyMap(false);
}, 500);
}
function feedbackHookOnPress() { // fn#111923, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15028:4068, owner: ICYMIInfoScreen.feedbackHook.onPress, offset: 0x023b86b3, size: 82 bytes, params: 1, frame: 16
let value = environment.__proto__.__proto__;
const defaultImport = importDefault(dependencyMap[27]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[29]);
value = value(dependencyMap[28], dependencyMap.paths);
return Reflect.apply(openLazy, defaultImport, [value, 'ICYMIFeedbackSheet', {}]);
}
global.__d(_fun111913, 14831, [57, 5, 31, 27, 482, 33, 4501, 697, 5314, 1585, 4048, 1484, 9589, 14832, 5080, 9603,
9611, 1244, 5475, 14834, 14835, 14836, 14837, 4573, 9390, 10229, 4073, 4080, 14838, 1962, 4578,
2]) /* metro module 14831, dependencies: [57, 5, 31, 27, 482, 33, 4501, 697, 5314, 1585, 4048, 1484, 9589, 14832, 5080, 9603, 9611, 1244, 5475, 14834, 14835, 14836, 14837, 4573, 9390, 10229, 4073, 4080, 14838, 1962, 4578, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,229 +1,338 @@
/* Metro module 14839; source: modules/icymi/native/info_modal/ICYMITopicsScreen.tsx; dependencies: [5, 57, 31, 27, 14833, 14840, 33, 8658, 8835, 6698, 14841, 8841, 6686, 13167, 13140, 9411, 14842, 8656, 14844, 8659, 11141, 4501, 697, 3874, 4578, 1585, 1484, 14846, 1962, 9580, 3857, 1244, 566, 9589, 4573, 2] */
import Module00005 from '../../../../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import UseSafeAreaInsetsNative from '../../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import GuildDiscoveryCategoryStore from '../../../global_discovery_servers/GuildDiscoveryCategoryStore.tsx'; /* Metro dependency 14833 */
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 UseNavigationNativeModule from '../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as UseA11yRolesNativeModule from '../../../../external/discord_common/js/packages/design/hooks/useA11yRolesNative.tsx'; /* Metro dependency 3874 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ICYMIAnalyticsModule from '../../ICYMIAnalytics.tsx'; /* Metro dependency 9589 */
import * as GuildSettingsDiscoveryConstantsModule from '../../../guild_settings/discovery/GuildSettingsDiscoveryConstants.tsx'; /* Metro dependency 14840 */
function _fun111983(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111983, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15036:6, offset: 0x023b9cee, size: 720 bytes, params: 8, frame: 24
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = importDefault(57) /* metro dependency 57 */;
const env0_5 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_6 = value.View;
const StyleSheet = value.StyleSheet;
const env0_7 = value.ScrollView;
const guildDiscoveryCategoryStore = importDefault(14833) /* metro dependency 14833: GuildDiscoveryCategoryStore */;
const env0_9 = (require(14840) /* metro dependency 14840: GuildSettingsDiscoveryConstants */).GuildPrimaryCategory;
value = require(33) /* metro dependency 33 */;
const env0_10 = value.jsx;
const env0_11 = value.Fragment;
const env0_12 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object = {};
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
object2.container = {backgroundColor: BACKGROUND_BASE_LOWER, flex: 1};
const object8 = {'position': 'absolute', 'bottom': 0};
object.container = {backgroundColor: BACKGROUND_BASE_LOWER, flex: 1};
const object3 = {'position': 'absolute', 'bottom': 0};
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object8.left = PX_24;
object3.left = PX_24;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object8.right = PX_24;
object3.right = PX_24;
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object8.paddingBottom = PX_8;
object2.footer = object8;
const object9 = {};
object3.paddingBottom = PX_8;
object.footer = object3;
const object4 = {};
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object9.marginTop = PX_24;
object4.marginTop = PX_24;
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object9.marginBottom = PX_8;
object4.marginBottom = PX_8;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object9.marginHorizontal = PX_24;
object2.title = object9;
const object10 = {};
object4.marginHorizontal = PX_24;
object.title = object4;
const object5 = {};
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object10.marginBottom = PX_24;
object5.marginBottom = PX_24;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object10.marginHorizontal = PX_24;
object2.subtitle = object10;
const object11 = {};
object11.height = StyleSheet.hairlineWidth;
object11.width = '100%';
object5.marginHorizontal = PX_24;
object.subtitle = object5;
const object6 = {};
object6.height = StyleSheet.hairlineWidth;
object6.width = '100%';
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object11.backgroundColor = BORDER_SUBTLE;
object2.separator = object11;
const object12 = {'flex': 1, 'marginHorizontal': null, 'flexWrap': 'wrap', 'flexDirection': 'row'};
object6.backgroundColor = BORDER_SUBTLE;
object.separator = object6;
const object7 = {'flex': 1, 'marginHorizontal': null, 'flexWrap': 'wrap', 'flexDirection': 'row'};
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object12.marginHorizontal = PX_16;
object7.marginHorizontal = PX_16;
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object12.gap = PX_12;
object2.topicsContainer = object12;
object7.gap = PX_12;
object.topicsContainer = object7;
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object2.scrollContentContainer = {paddingTop: PX_24};
const env0_13 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/info_modal/ICYMITopicsScreen.tsx');
object.scrollContentContainer = {paddingTop: PX_24};
const env0_13 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/info_modal/ICYMITopicsScreen.tsx');
exports.default = ICYMITopicsScreen;
}
function WordTopic({topic, categoryid, selected, handlePress}) { // fn#111984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15036:953, offset: 0x023b9fbe, size: 1199 bytes, params: 2, frame: 21
var r0;
var Button;
var value;
const GAMING = GuildPrimaryCategory.GAMING;
const r5 = GAMING === categoryid ? ((GameControllerIcon) => <GameControllerIcon size="md" color="redesign-button-tertiary-text" />)((require(8658) /* metro dependency 8658: GameControllerIcon */).GameControllerIcon) : GuildPrimaryCategory.ENTERTAINMENT === categoryid ? ((TvIcon) => <TvIcon size="md" color="redesign-button-tertiary-text" />)((require(8835) /* metro dependency 8835: TvIcon */).TvIcon) : GuildPrimaryCategory.GENERAL_CHATTING === categoryid ? ((ForumIcon) => <ForumIcon size="md" color="redesign-button-tertiary-text" />)((require(6698) /* metro dependency 6698: ForumIcon */).ForumIcon) : GuildPrimaryCategory.SCIENCE_AND_TECH === categoryid ? ((ScienceIcon) => <ScienceIcon size="md" color="redesign-button-tertiary-text" />)((require(14841) /* metro dependency 14841: ScienceIcon */).ScienceIcon) : GuildPrimaryCategory.MUSIC === categoryid ? ((MusicIcon) => <MusicIcon size="md" color="redesign-button-tertiary-text" />)((require(8841) /* metro dependency 8841: MusicIcon */).MusicIcon) : GuildPrimaryCategory.EDUCATION === categoryid ? ((BookCheckIcon) => <BookCheckIcon size="md" color="redesign-button-tertiary-text" />)((require(6686) /* metro dependency 6686: BookCheckIcon */).BookCheckIcon) : GuildPrimaryCategory.CREATIVE_ARTS === categoryid ? ((PaintPaletteIcon) => <PaintPaletteIcon size="md" color="redesign-button-tertiary-text" />)((require(13167) /* metro dependency 13167: PaintPaletteIcon */).PaintPaletteIcon) : GuildPrimaryCategory.FINANCE === categoryid ? ((PiggyBankIcon) => <PiggyBankIcon size="md" color="redesign-button-tertiary-text" />)((require(13140) /* metro dependency 13140: PiggyBankIcon */).PiggyBankIcon) : GuildPrimaryCategory.BOTS === categoryid ? ((RobotIcon) => <RobotIcon size="md" color="redesign-button-tertiary-text" />)((require(9411) /* metro dependency 9411: RobotIcon */).RobotIcon) : GuildPrimaryCategory.SPORTS === categoryid ? ((MedalIcon) => <MedalIcon size="md" color="redesign-button-tertiary-text" />)((require(14842) /* metro dependency 14842: MedalIcon */).MedalIcon) : GuildPrimaryCategory.TRAVEL_AND_FOOD === categoryid ? ((FoodIcon) => <FoodIcon size="md" color="redesign-button-tertiary-text" />)((require(8656) /* metro dependency 8656: FoodIcon */).FoodIcon) : GuildPrimaryCategory.FASHION_AND_BEAUTY === categoryid ? ((PaintbrushThinIcon) => <PaintbrushThinIcon size="md" color="redesign-button-tertiary-text" />)((require(14844) /* metro dependency 14844: PaintbrushThinIcon */).PaintbrushThinIcon) : GuildPrimaryCategory.FITNESS_AND_HEALTH === categoryid ? ((BicycleIcon) => <BicycleIcon size="md" color="redesign-button-tertiary-text" />)((require(8659) /* metro dependency 8659: BicycleIcon */).BicycleIcon) : categoryid !== 16 ? undefined : ((PencilSparkleIcon) => <PencilSparkleIcon size="md" color="redesign-button-tertiary-text" />)((require(11141) /* metro dependency 11141: PencilSparkleIcon */).PencilSparkleIcon);
const {accessibilityRole,
accessibilityState} = (require(3874) /* metro dependency 3874: useA11yRolesNative */).useCheckboxA11yNative({checked: selected});
if (r5 == null) {
r0 = null;
} else {
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
value = 'tertiary';
value = <Button accessibilityRole={accessibilityRole} accessibilityState={accessibilityState} variant={selected ? 'primary' : value} text={topic} onPress={function() {
return handlePress(categoryid);
}} icon={r5} />;
r0 = value;
}
return r0;
}
function ICYMITopicsScreen() { // fn#111986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15036:2831, offset: 0x023ba46d, size: 836 bytes, params: 1, frame: 33
var r5;
var object8;
var Button;
var object10;
const styles = useStyles();
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
const binding = env0_5;
let useState = binding.useState;
const Set = global.Set;
const value2 = Object.create(Set.prototype, {constructor: {value: Set}});
const set = new Set();
const value4 = Reflect.apply(useState, binding, [set instanceof Object ? set : value2]);
const binding2 = env0_4;
const value5 = binding2(value4, 2);
const property = value5[0];
const env0_1 = value5[1];
useState = binding.useState;
const value6 = binding2(Reflect.apply(useState, binding, [false]), 2);
const property2 = value6[0];
const env0_2 = value6[1];
const value7 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const value9 = binding.useCallback(value7(_fun111988), [value7, property]);
const value10 = (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([GuildDiscoveryCategoryStore],
function() {
return GuildDiscoveryCategoryStore.getAllCategories();
});
var env0_4 = binding.useCallback(_fun111991, [property]);
const jsxRuntimeEnv0_11Binding = jsxRuntimeEnv0_11;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const Y5d99L = (require(1244) /* metro dependency 1244: indexNative */).t.Y5d99L;
const items2 = [<Text variant="heading-xl/semibold" color="mobile-text-heading-primary" style={styles.title}>{Reflect.apply(string,
intl, [Y5d99L])}</Text>];
string = intl.string;
const MGZsfv = (require(1244) /* metro dependency 1244: indexNative */).t.MGZsfv;
items2[1] = <Text variant="text-sm/normal" color="text-muted" style={styles.subtitle}>{Reflect.apply(string, intl,
[MGZsfv])}</Text>;
items2[2] = <View style={styles.separator} />;
items2[3] = <ScrollView showsVerticalScrollIndicator={false} style={styles.container} contentContainerStyle={styles.scrollContentContainer} contentInset={{bottom: 72 + bottom}}><View style={styles.topicsContainer}>{value10.map(_fun111994)}</View></ScrollView>;
const value12 = property.size > 0;
if (value12) {
var viewProps = {style: [{marginBottom: bottom}, styles.footer]};
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
r5 = <View {...viewProps}><Button loading={property2} size="lg" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.PDTjLN)} onPress={value9} /></View>;
} else {
r5 = value12;
}
items2[4] = r5;
return (
<>
{items2}
</>
);
}
function* _fun111988() { // fn#111988, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15036:3021, offset: 0x023ba7bc, size: 311 bytes, params: 1, frame: 23
var environment;
var binding3;
var open;
var object2;
var intl;
if (true) {
value = environment.__proto__;
dependencyMap(true);
var binding = env2_0;
var binding2 = env2_2;
yield binding(binding2[28])(binding2[27], binding2.paths);
if (false) {
return undefined;
}
var value7 = env2_1(env2_2[29]);
var fetchPopularGuildsFromCategories = value7.fetchPopularGuildsFromCategories;
var Array = global.Array;
yield Reflect.apply(fetchPopularGuildsFromCategories, value7, [Array.from(require), 0]);
var value9 = undefined;
if (false) {
return value9;
}
if (value9) {
env1_3.push('join_guilds');
function WordTopic({topic, categoryid, selected, handlePress}) { // fn#111984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15036:953, offset: 0x023b9fbe, size: 1199 bytes, params: 2, frame: 21
var r0;
var Button;
var value;
const GAMING = GuildPrimaryCategory.GAMING;
const r5 = (
GAMING === categoryid
? ((GameControllerIcon) => <GameControllerIcon size="md" color="redesign-button-tertiary-text" />)((require(8658) /* metro dependency 8658: GameControllerIcon */).GameControllerIcon)
: (
GuildPrimaryCategory.ENTERTAINMENT === categoryid
? ((TvIcon) => <TvIcon size="md" color="redesign-button-tertiary-text" />)((require(8835) /* metro dependency 8835: TvIcon */).TvIcon)
: (
GuildPrimaryCategory.GENERAL_CHATTING === categoryid
? ((ForumIcon) => <ForumIcon size="md" color="redesign-button-tertiary-text" />)((require(6698) /* metro dependency 6698: ForumIcon */).ForumIcon)
: (
GuildPrimaryCategory.SCIENCE_AND_TECH === categoryid
? ((ScienceIcon) => <ScienceIcon size="md" color="redesign-button-tertiary-text" />)((require(14841) /* metro dependency 14841: ScienceIcon */).ScienceIcon)
: (
GuildPrimaryCategory.MUSIC === categoryid
? ((MusicIcon) => <MusicIcon size="md" color="redesign-button-tertiary-text" />)((require(8841) /* metro dependency 8841: MusicIcon */).MusicIcon)
: (
GuildPrimaryCategory.EDUCATION === categoryid
? ((BookCheckIcon) => <BookCheckIcon size="md" color="redesign-button-tertiary-text" />)((require(6686) /* metro dependency 6686: BookCheckIcon */).BookCheckIcon)
: (
GuildPrimaryCategory.CREATIVE_ARTS === categoryid
? ((PaintPaletteIcon) => <PaintPaletteIcon size="md" color="redesign-button-tertiary-text" />)((require(13167) /* metro dependency 13167: PaintPaletteIcon */).PaintPaletteIcon)
: (
GuildPrimaryCategory.FINANCE === categoryid
? ((PiggyBankIcon) => <PiggyBankIcon size="md" color="redesign-button-tertiary-text" />)((require(13140) /* metro dependency 13140: PiggyBankIcon */).PiggyBankIcon)
: (
GuildPrimaryCategory.BOTS === categoryid
? ((RobotIcon) => <RobotIcon size="md" color="redesign-button-tertiary-text" />)((require(9411) /* metro dependency 9411: RobotIcon */).RobotIcon)
: (
GuildPrimaryCategory.SPORTS === categoryid
? ((MedalIcon) => <MedalIcon size="md" color="redesign-button-tertiary-text" />)((require(14842) /* metro dependency 14842: MedalIcon */).MedalIcon)
: (
GuildPrimaryCategory.TRAVEL_AND_FOOD === categoryid
? ((FoodIcon) => <FoodIcon size="md" color="redesign-button-tertiary-text" />)((require(8656) /* metro dependency 8656: FoodIcon */).FoodIcon)
: (
GuildPrimaryCategory.FASHION_AND_BEAUTY === categoryid
? ((PaintbrushThinIcon) => <PaintbrushThinIcon size="md" color="redesign-button-tertiary-text" />)((require(14844) /* metro dependency 14844: PaintbrushThinIcon */).PaintbrushThinIcon)
: (
GuildPrimaryCategory.FITNESS_AND_HEALTH === categoryid
? ((BicycleIcon) => <BicycleIcon size="md" color="redesign-button-tertiary-text" />)((require(8659) /* metro dependency 8659: BicycleIcon */).BicycleIcon)
: (
categoryid !== 16
? undefined
: ((PencilSparkleIcon) => <PencilSparkleIcon size="md" color="redesign-button-tertiary-text" />)((require(11141) /* metro dependency 11141: PencilSparkleIcon */).PencilSparkleIcon)
)
)
)
)
)
)
)
)
)
)
)
)
)
);
const {accessibilityRole,
accessibilityState} = (UseA11yRolesNativeModule).useCheckboxA11yNative({checked: selected});
if (r5 == null) {
r0 = null;
} else {
binding = env2_1;
binding3 = env2_2;
value = binding(binding3[30]);
open = value.open;
object2 = {key: 'ICYMIInfoModal'};
binding = env2_0;
intl = binding(binding3[31]).intl;
object2.content = intl.string(binding(binding3[31]).t.CG4Hks);
Reflect.apply(open, value, [object2]);
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
value = 'tertiary';
value = (
<Button
accessibilityRole={accessibilityRole}
accessibilityState={accessibilityState}
variant={selected ? 'primary' : value}
text={topic}
onPress={function() {
return handlePress(categoryid);
}}
icon={r5}
/>
);
r0 = value;
}
global.setTimeout(function() {
return dependencyMap(false);
}, 500);
return r0;
}
}
function _fun111991(a0) { // fn#111991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15036:3366, offset: 0x023ba91a, size: 128 bytes, params: 2, frame: 17
const env0_0 = a0;
const ICYMIAnalytics = (require(9589) /* metro dependency 9589: ICYMIAnalytics */).ICYMIAnalytics;
const trackFeedOnboardingCategoryToggled = ICYMIAnalytics.trackFeedOnboardingCategoryToggled;
let binding = env0_0;
Reflect.apply(trackFeedOnboardingCategoryToggled, ICYMIAnalytics, [{categoryId: a0, toggled: !binding.has(a0)}]);
const value2 = binding.has(a0);
binding = env0_1;
if (value2) {
binding(_fun111992);
} else {
binding(_fun111993);
function ICYMITopicsScreen() { // fn#111986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15036:2831, offset: 0x023ba46d, size: 836 bytes, params: 1, frame: 33
var r5;
var object;
var Button;
var object2;
const styles = useStyles();
const bottom = (UseSafeAreaInsetsNative)().bottom;
let useState = ReactModule.useState;
const Set = global.Set;
const value2 = Object.create(Set.prototype, {constructor: {value: Set}});
const set = new Set();
const value4 = Reflect.apply(useState, ReactModule, [set instanceof Object ? set : value2]);
const binding2 = env0_4;
const value5 = binding2(value4, 2);
const property = value5[0];
const env0_1 = value5[1];
useState = ReactModule.useState;
const value6 = binding2(Reflect.apply(useState, ReactModule, [false]), 2);
const property2 = value6[0];
const env0_2 = value6[1];
const value7 = (UseNavigationNativeModule).useNavigation();
const value9 = ReactModule.useCallback(value7(_fun111988), [value7, property]);
const value10 = (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([GuildDiscoveryCategoryStore],
function() {
return GuildDiscoveryCategoryStore.getAllCategories();
});
var env0_4 = ReactModule.useCallback(_fun111991, [property]);
const jsxRuntimeEnv0_11Binding = jsxRuntimeEnv0_11;
const Text = (TextModule).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const Y5d99L = (require(1244) /* metro dependency 1244: indexNative */).t.Y5d99L;
const items2 = [
<Text
variant="heading-xl/semibold"
color="mobile-text-heading-primary"
style={styles.title}
>
{Reflect.apply(string, intl, [Y5d99L])}
</Text>,
];
string = intl.string;
const MGZsfv = (require(1244) /* metro dependency 1244: indexNative */).t.MGZsfv;
items2[1] = (
<Text
variant="text-sm/normal"
color="text-muted"
style={styles.subtitle}
>
{Reflect.apply(string, intl, [MGZsfv])}
</Text>
);
items2[2] = <View style={styles.separator} />;
items2[3] = (
<ScrollView
showsVerticalScrollIndicator={false}
style={styles.container}
contentContainerStyle={styles.scrollContentContainer}
contentInset={{bottom: 72 + bottom}}
>
<View style={styles.topicsContainer}>
{value10.map(_fun111994)}
</View>
</ScrollView>
);
const value12 = property.size > 0;
if (value12) {
var viewProps = {style: [{marginBottom: bottom}, styles.footer]};
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
r5 = (
<View {...viewProps}>
<Button
loading={property2}
size="lg"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.PDTjLN)}
onPress={value9}
/>
</View>
);
} else {
r5 = value12;
}
items2[4] = r5;
return (
<>
{items2}
</>
);
function* _fun111988() { // fn#111988, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15036:3021, offset: 0x023ba7bc, size: 311 bytes, params: 1, frame: 23
var environment;
var binding3;
var open;
var object;
var intl;
if (true) {
value = environment.__proto__;
dependencyMap(true);
var binding = env2_0;
var binding2 = env2_2;
yield binding(binding2[28])(binding2[27], binding2.paths);
if (false) {
return undefined;
}
var value7 = env2_1(env2_2[29]);
var fetchPopularGuildsFromCategories = value7.fetchPopularGuildsFromCategories;
var Array = global.Array;
yield Reflect.apply(fetchPopularGuildsFromCategories, value7, [Array.from(require), 0]);
var value9 = undefined;
if (false) {
return value9;
}
if (value9) {
env1_3.push('join_guilds');
} else {
binding = env2_1;
binding3 = env2_2;
value = binding(binding3[30]);
open = value.open;
object = {key: 'ICYMIInfoModal'};
binding = env2_0;
intl = binding(binding3[31]).intl;
object.content = intl.string(binding(binding3[31]).t.CG4Hks);
Reflect.apply(open, value, [object]);
}
global.setTimeout(function() {
return dependencyMap(false);
}, 500);
}
}
function _fun111991(a0) { // fn#111991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15036:3366, offset: 0x023ba91a, size: 128 bytes, params: 2, frame: 17
const env0_0 = a0;
const ICYMIAnalytics = (ICYMIAnalyticsModule).ICYMIAnalytics;
const trackFeedOnboardingCategoryToggled = ICYMIAnalytics.trackFeedOnboardingCategoryToggled;
let binding = env0_0;
Reflect.apply(trackFeedOnboardingCategoryToggled, ICYMIAnalytics, [{categoryId: a0, toggled: !binding.has(a0)}]);
const value2 = binding.has(a0);
binding = env0_1;
if (value2) {
binding(_fun111992);
} else {
binding(_fun111993);
}
function _fun111992(a0) { // fn#111992, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15036:3475, offset: 0x023ba99a, size: 53 bytes, params: 2, frame: 11
a0.delete(env0_0);
const Set = global.Set;
const value = Object.create(Set.prototype, {constructor: {value: Set}});
const set = new Set(a0);
return set instanceof Object ? set : value;
}
function _fun111993(a0) { // fn#111993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15036:3508, offset: 0x023ba9cf, size: 53 bytes, params: 2, frame: 11
a0.add(env0_0);
const Set = global.Set;
const value = Object.create(Set.prototype, {constructor: {value: Set}});
const set = new Set(a0);
return set instanceof Object ? set : value;
}
}
function _fun111994(a0) { // fn#111994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15036:4049, offset: 0x023baa04, size: 91 bytes, params: 2, frame: 18
const binding = env0_0;
return (
<WordTopic
selected={binding.has(a0.categoryId)}
topic={a0.name}
categoryid={a0.categoryId}
handlePress={env0_4}
key={a0.categoryId}
/>
);
}
}
}
function _fun111994(a0) { // fn#111994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15036:4049, offset: 0x023baa04, size: 91 bytes, params: 2, frame: 18
const binding = env0_0;
return (
<WordTopic
selected={binding.has(a0.categoryId)}
topic={a0.name}
categoryid={a0.categoryId}
handlePress={env0_4}
key={a0.categoryId}
/>
);
}
function _fun111992(a0) { // fn#111992, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15036:3475, offset: 0x023ba99a, size: 53 bytes, params: 2, frame: 11
a0.delete(env0_0);
const Set = global.Set;
const value = Object.create(Set.prototype, {constructor: {value: Set}});
const set = new Set(a0);
return set instanceof Object ? set : value;
}
function _fun111993(a0) { // fn#111993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15036:3508, offset: 0x023ba9cf, size: 53 bytes, params: 2, frame: 11
a0.add(env0_0);
const Set = global.Set;
const value = Object.create(Set.prototype, {constructor: {value: Set}});
const set = new Set(a0);
return set instanceof Object ? set : value;
}
global.__d(_fun111983, 14839, [5, 57, 31, 27, 14833, 14840, 33, 8658, 8835, 6698, 14841, 8841, 6686, 13167, 13140,
9411, 14842, 8656, 14844, 8659, 11141, 4501, 697, 3874, 4578, 1585, 1484, 14846, 1962, 9580, 3857, 1244, 566,
9589, 4573,
2]) /* metro module 14839, dependencies: [5, 57, 31, 27, 14833, 14840, 33, 8658, 8835, 6698, 14841, 8841, 6686, 13167, 13140, 9411, 14842, 8656, 14844, 8659, 11141, 4501, 697, 3874, 4578, 1585, 1484, 14846, 1962, 9580, 3857, 1244, 566, 9589, 4573, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,42 +1,48 @@
/* Metro module 14812; source: modules/icymi/native/navigator/ICYMINavigator.tsx; dependencies: [33, 9884, 5280, 14813, 14762, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as NavigatorNativeModule from '../../../../design/components/Navigator/native/Navigator.native.tsx'; /* Metro dependency 5280 */
import * as Module09884Module from '../../../../by-id/module-09884.js'; /* Metro dependency 9884 */
function _fun111775(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15009:6, offset: 0x023b1add, size: 151 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const value = require(33) /* metro dependency 33 */;
const env0_2 = value.jsx;
const env0_3 = value.jsxs;
const env0_4 = (require(9884) /* metro dependency 9884 */).createNativeStackNavigator();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/navigator/ICYMINavigator.tsx');
const env0_4 = (Module09884Module).createNativeStackNavigator();
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/navigator/ICYMINavigator.tsx');
exports.default = ICYMINavigator;
function ICYMINavigator() { // fn#111776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15009:255, offset: 0x023b1b74, size: 174 bytes, params: 1, frame: 19
const env0_0 = (NavigatorNativeModule).useAccessibilityNativeStackOptions();
const binding = env0_4;
const Navigator = binding.Navigator;
const object = {screenOptions: screenOptions_111777, initialRouteName: 'icymi-screen'};
let Screen = binding.Screen;
const screen = (
<Screen name="icymi-screen" getComponent={function() {
return require(dependencyMap[3]).ICYMITab;
}} />
);
Screen = binding.Screen;
return (
<Navigator {...object}>
{screen}
<Screen
name="notifications-screen"
getComponent={function() {
return require(dependencyMap[4]).ThemedNotificationsModal;
}}
/>
</Navigator>
);
function ICYMINavigatorScreenOptions() { // fn#111777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15009:368, owner: ICYMINavigator.screenOptions, offset: 0x023b1c22, size: 30 bytes, params: 1, frame: 11
const object = {'headerShown': false, 'fullScreenGestureEnabled': true};
copyDataProperties(object, env0_0, environment);
return object;
}
}
}
function ICYMINavigator() { // fn#111776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15009:255, offset: 0x023b1b74, size: 174 bytes, params: 1, frame: 19
const env0_0 = (require(5280) /* metro dependency 5280: NavigatorNative */).useAccessibilityNativeStackOptions();
const binding = env0_4;
const Navigator = binding.Navigator;
const object2 = {screenOptions: screenOptions_111777, initialRouteName: 'icymi-screen'};
let Screen = binding.Screen;
const screen = <Screen name="icymi-screen" getComponent={function() {
return require(dependencyMap[3]).ICYMITab;
}} />;
Screen = binding.Screen;
return (
<Navigator {...object2}>
{screen}
<Screen
name="notifications-screen"
getComponent={function() {
return require(dependencyMap[4]).ThemedNotificationsModal;
}}
/>
</Navigator>
);
}
function ICYMINavigatorScreenOptions() { // fn#111777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15009:368, owner: ICYMINavigator.screenOptions, offset: 0x023b1c22, size: 30 bytes, params: 1, frame: 11
const object2 = {'headerShown': false, 'fullScreenGestureEnabled': true};
copyDataProperties(object2, env0_0, environment);
return object2;
}
global.__d(_fun111775, 14812, [33, 9884, 5280, 14813, 14762,
2]) /* metro module 14812, dependencies: [33, 9884, 5280, 14813, 14762, 2] */;
@@ -1,37 +1,42 @@
/* Metro module 14857; source: modules/icymi/native/util/getIconForChannel.tsx; dependencies: [661, 6704, 6711, 6707, 6691, 6698, 6697, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as TextIconModule from '../../../../design/components/Icon/native/redesign/generated/TextIcon.tsx'; /* Metro dependency 6691 */
function _fun112294(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112294, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15054:6, offset: 0x023c40b9, size: 117 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(661) /* metro dependency 661: Constants */).ChannelTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/native/util/getIconForChannel.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/util/getIconForChannel.tsx');
exports.getIconForChannel = getIconForChannel;
function getIconForChannel({type}) { // fn#112295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15054:220, offset: 0x023c412e, size: 314 bytes, params: 2, frame: 12
const GUILD_ANNOUNCEMENT = ChannelTypes.GUILD_ANNOUNCEMENT;
if (GUILD_ANNOUNCEMENT === type) {
return (require(6704) /* metro dependency 6704: AnnouncementsIcon */).AnnouncementsIcon;
}
const GUILD_VOICE = ChannelTypes.GUILD_VOICE;
if (GUILD_VOICE === type) {
return (require(6711) /* metro dependency 6711: VoiceNormalIcon */).VoiceNormalIcon;
}
const GUILD_STAGE_VOICE = ChannelTypes.GUILD_STAGE_VOICE;
if (GUILD_STAGE_VOICE === type) {
return (require(6707) /* metro dependency 6707: StageIcon */).StageIcon;
}
const GUILD_TEXT = ChannelTypes.GUILD_TEXT;
if (GUILD_TEXT !== type) {
var GUILD_FORUM = ChannelTypes.GUILD_FORUM;
if (GUILD_FORUM === type) {
return (require(6698) /* metro dependency 6698: ForumIcon */).ForumIcon;
}
var GUILD_MEDIA = ChannelTypes.GUILD_MEDIA;
if (GUILD_MEDIA === type) {
return (require(6697) /* metro dependency 6697: ImageIcon */).ImageIcon;
}
}
return (TextIconModule).TextIcon;
}
}
function getIconForChannel({type}) { // fn#112295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15054:220, offset: 0x023c412e, size: 314 bytes, params: 2, frame: 12
const GUILD_ANNOUNCEMENT = ChannelTypes.GUILD_ANNOUNCEMENT;
if (GUILD_ANNOUNCEMENT === type) {
return (require(6704) /* metro dependency 6704: AnnouncementsIcon */).AnnouncementsIcon;
}
const GUILD_VOICE = ChannelTypes.GUILD_VOICE;
if (GUILD_VOICE === type) {
return (require(6711) /* metro dependency 6711: VoiceNormalIcon */).VoiceNormalIcon;
}
const GUILD_STAGE_VOICE = ChannelTypes.GUILD_STAGE_VOICE;
if (GUILD_STAGE_VOICE === type) {
return (require(6707) /* metro dependency 6707: StageIcon */).StageIcon;
}
const GUILD_TEXT = ChannelTypes.GUILD_TEXT;
if (GUILD_TEXT !== type) {
var GUILD_FORUM = ChannelTypes.GUILD_FORUM;
if (GUILD_FORUM === type) {
return (require(6698) /* metro dependency 6698: ForumIcon */).ForumIcon;
}
var GUILD_MEDIA = ChannelTypes.GUILD_MEDIA;
if (GUILD_MEDIA === type) {
return (require(6697) /* metro dependency 6697: ImageIcon */).ImageIcon;
}
}
return (require(6691) /* metro dependency 6691: TextIcon */).TextIcon;
}
global.__d(_fun112294, 14857, [661, 6704, 6711, 6707, 6691, 6698, 6697,
2]) /* metro module 14857, dependencies: [661, 6704, 6711, 6707, 6691, 6698, 6697, 2] */;
@@ -1,22 +1,26 @@
/* Metro module 14855; source: modules/icymi/native/util/openDetailsActionSheet.tsx; dependencies: [9580, 4080, 14821, 1962, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun112279(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15052:6, offset: 0x023c2f0e, 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/icymi/native/util/openDetailsActionSheet.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/native/util/openDetailsActionSheet.tsx');
exports.openDetailsActionSheet = openDetailsActionSheet;
function openDetailsActionSheet({guildId, channelId, id, type}) { // fn#112280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15052:203, offset: 0x023c2f75, size: 198 bytes, params: 2, frame: 22
importDefault(dependencyMap[0]).itemInteracted(id, type, 'overflow_menu');
const defaultImport2 = importDefault(dependencyMap[0]);
defaultImport2.feedItemActioned({itemId: id, itemType: type, actionParameters: {'actionGestureType': 'press',
'actionTargetElement': 'overflow_menu_button', 'actionIntentType': 'open', 'actionDestinationType': null}});
const defaultImport3 = importDefault(dependencyMap[1]);
const openLazy = defaultImport3.openLazy;
let value = require(dependencyMap[3]);
value = value(dependencyMap[2], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport3, [value, 'ItemDetailsActionSheet', {guildId: guildId, channelId: channelId,
id: id}]);
}
}
function openDetailsActionSheet({guildId, channelId, id, type}) { // fn#112280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15052:203, offset: 0x023c2f75, size: 198 bytes, params: 2, frame: 22
importDefault(dependencyMap[0]).itemInteracted(id, type, 'overflow_menu');
const defaultImport2 = importDefault(dependencyMap[0]);
defaultImport2.feedItemActioned({itemId: id, itemType: type, actionParameters: {'actionGestureType': 'press',
'actionTargetElement': 'overflow_menu_button', 'actionIntentType': 'open', 'actionDestinationType': null}});
const defaultImport3 = importDefault(dependencyMap[1]);
const openLazy = defaultImport3.openLazy;
let value = require(dependencyMap[3]);
value = value(dependencyMap[2], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport3, [value, 'ItemDetailsActionSheet', {guildId: guildId, channelId: channelId,
id: id}]);
}
global.__d(_fun112279, 14855, [9580, 4080, 14821, 1962,
2]) /* metro module 14855, dependencies: [9580, 4080, 14821, 1962, 2] */;
@@ -1,63 +1,67 @@
/* Metro module 14851; source: modules/icymi/useICYMIEmptyLoadingAnalytics.tsx; dependencies: [31, 9589, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ICYMIAnalyticsModule from './ICYMIAnalytics.tsx'; /* Metro dependency 9589 */
function _fun112232(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112232, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15048:6, offset: 0x023c00ee, size: 114 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/useICYMIEmptyLoadingAnalytics.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/useICYMIEmptyLoadingAnalytics.tsx');
exports.useICYMIEmptyLoadingAnalytics = useICYMIEmptyLoadingAnalytics;
}
function useICYMIEmptyLoadingAnalytics(a0, a1) { // fn#112233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15048:219, offset: 0x023c0160, size: 99 bytes, params: 3, frame: 15
const env0_0 = a0;
const env0_1 = a1;
const binding = env0_2;
var env0_2 = binding.useRef(null);
binding.useEffect(_fun112234, [a0, a1]);
binding.useEffect(_fun112235, [a1]);
}
function _fun112234() { // fn#112234, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15048:297, offset: 0x023c01c3, size: 193 bytes, params: 1, frame: 15
var binding;
var binding2;
var value2;
var value3;
const ICYMIAnalytics = (require(9589) /* metro dependency 9589: ICYMIAnalytics */).ICYMIAnalytics;
var value;
if (require) {
binding = env0_0;
binding2 = env0_2;
if (binding) {
binding2.current = global.Date.now();
value = environment.__proto__;
ICYMIAnalytics.trackFeedEmptyLoadingSeen();
} else if (binding2.current != null) {
value2 = global.Date.now();
binding = env0_2;
value = value2 - binding.current;
value3 = environment.__proto__;
ICYMIAnalytics.trackFeedEmptyLoadingComplete({dwellTimeMs: value});
binding.current = null;
function useICYMIEmptyLoadingAnalytics(a0, a1) { // fn#112233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15048:219, offset: 0x023c0160, size: 99 bytes, params: 3, frame: 15
const env0_0 = a0;
const env0_1 = a1;
const binding = env0_2;
var env0_2 = binding.useRef(null);
binding.useEffect(_fun112234, [a0, a1]);
binding.useEffect(_fun112235, [a1]);
function _fun112234() { // fn#112234, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15048:297, offset: 0x023c01c3, size: 193 bytes, params: 1, frame: 15
var binding;
var binding2;
var value2;
var value3;
const ICYMIAnalytics = (ICYMIAnalyticsModule).ICYMIAnalytics;
var value;
if (require) {
binding = env0_0;
binding2 = env0_2;
if (binding) {
binding2.current = global.Date.now();
value = environment.__proto__;
ICYMIAnalytics.trackFeedEmptyLoadingSeen();
} else if (binding2.current != null) {
value2 = global.Date.now();
binding = env0_2;
value = value2 - binding.current;
value3 = environment.__proto__;
ICYMIAnalytics.trackFeedEmptyLoadingComplete({dwellTimeMs: value});
binding.current = null;
}
}
}
}
}
function _fun112235() { // fn#112235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15048:544, offset: 0x023c0284, size: 114 bytes, params: 1, frame: 14
var value2;
var binding;
var value3;
var ICYMIAnalytics;
var value;
if (!require) {
if (env0_2.current != null) {
value2 = global.Date.now();
binding = env0_2;
value = value2 - binding.current;
value3 = environment.__proto__;
ICYMIAnalytics = (require(9589) /* metro dependency 9589: ICYMIAnalytics */).ICYMIAnalytics;
ICYMIAnalytics.trackFeedEmptyLoadingAbandoned({dwellTimeMs: value});
binding.current = null;
function _fun112235() { // fn#112235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15048:544, offset: 0x023c0284, size: 114 bytes, params: 1, frame: 14
var value2;
var binding;
var value3;
var ICYMIAnalytics;
var value;
if (!require) {
if (env0_2.current != null) {
value2 = global.Date.now();
binding = env0_2;
value = value2 - binding.current;
value3 = environment.__proto__;
ICYMIAnalytics = (require(9589) /* metro dependency 9589: ICYMIAnalytics */).ICYMIAnalytics;
ICYMIAnalytics.trackFeedEmptyLoadingAbandoned({dwellTimeMs: value});
binding.current = null;
}
}
}
}
}
global.__d(_fun112232, 14851, [31, 9589, 2]) /* metro module 14851, dependencies: [31, 9589, 2] */;
+321 -316
View File
@@ -1,334 +1,339 @@
/* Metro module 14849; source: modules/icymi/useICYMIItems.tsx; dependencies: [31, 9569, 7230, 566, 9580, 2] */
import ICYMIStore from './ICYMIStore.tsx'; /* Metro dependency 9569 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as FluxModule from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ICYMITypesModule from './ICYMITypes.tsx'; /* Metro dependency 7230 */
function _fun112218(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112218, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15046:6, offset: 0x023bf748, size: 148 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const icymiStore = importDefault(9569) /* metro dependency 9569: ICYMIStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/useICYMIItems.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/useICYMIItems.tsx');
exports.default = useICYMIItems;
}
function createItem(a0, a1, a2) { // fn#112219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15046:120, offset: 0x023bf7dc, size: 833 bytes, params: 4, frame: 17
var r0;
var object;
var id;
var JSON;
var message;
var data;
var object4;
const type = a1.type;
const ICYMIItemTypes = (ICYMITypesModule).ICYMIItemTypes;
const MESSAGE = ICYMIItemTypes.MESSAGE;
if (MESSAGE === type) {
message = a1.message;
id = message.id;
message = a1.message;
if (id !== message.channel_id) {
object = {};
object.id = a0.id;
object.timestamp = global.Date.now();
data = a0.data;
object.channelType = data.channel_type;
object4 = {kind: 'message'};
object4.message = a1.message;
data = a0.data;
object4.mentioned = data.has_mention;
data = a0.data;
object4.messageContext = data.message_context;
object.data = object4;
object.score = a0.score;
JSON = global.JSON;
object.debugScore = JSON.stringify(a0.score_components);
object.unread = a2;
r0 = object;
} else if (a1.threadChannel != null) {
object = {};
object.id = a0.id;
object.timestamp = global.Date.now();
object.channelType = a0.data.channel_type;
object.data = {kind: 'forumThread', message: a1.message, threadChannel: a1.threadChannel};
object.score = a0.score;
JSON = global.JSON;
object.debugScore = JSON.stringify(a0.score_components);
object.unread = a2;
r0 = object;
} else {
object = {};
object.id = a0.id;
object.timestamp = global.Date.now();
data = a0.data;
object.channelType = data.channel_type;
object4 = {kind: 'message'};
object4.message = a1.message;
data = a0.data;
object4.mentioned = data.has_mention;
data = a0.data;
object4.messageContext = data.message_context;
object.data = object4;
object.score = a0.score;
JSON = global.JSON;
object.debugScore = JSON.stringify(a0.score_components);
object.unread = a2;
r0 = object;
}
return r0;
}
const ACTIVITY = ICYMIItemTypes.ACTIVITY;
if (ACTIVITY === type) {
object = {};
object.id = a0.id;
object.timestamp = global.Date.now();
object.data = {kind: 'contentInventory', content: a1.activity};
object.score = a0.score;
JSON = global.JSON;
object.debugScore = JSON.stringify(a0.score_components);
object.unread = a2;
return object;
}
const CUSTOM_STATUS = ICYMIItemTypes.CUSTOM_STATUS;
if (CUSTOM_STATUS === type) {
object = {};
object.id = a0.id;
object.timestamp = global.Date.now();
object.data = {kind: 'contentInventory', content: a1.activity};
object.score = a0.score;
JSON = global.JSON;
object.debugScore = JSON.stringify(a0.score_components);
object.unread = a2;
return object;
}
const GUILD_EVENT = ICYMIItemTypes.GUILD_EVENT;
if (GUILD_EVENT === type) {
object = {};
object.id = a0.id;
object.timestamp = global.Date.now();
object.data = {kind: 'guildEvent', eventId: a1.event_id};
object.score = a0.score;
JSON = global.JSON;
object.debugScore = JSON.stringify(a0.score_components);
object.unread = a2;
return object;
}
const RECOMMENDED_GUILDS = ICYMIItemTypes.RECOMMENDED_GUILDS;
if (RECOMMENDED_GUILDS === type) {
object = {};
object.id = a0.id;
object.timestamp = global.Date.now();
object.data = {kind: 'recommendedGuilds'};
object.score = a0.score;
JSON = global.JSON;
object.debugScore = JSON.stringify(a0.score_components);
object.unread = a2;
return object;
}
return null;
}
function createItem(a0, a1, a2) { // fn#112219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15046:120, offset: 0x023bf7dc, size: 833 bytes, params: 4, frame: 17
var r0;
var object2;
var id;
var JSON;
var message;
var data;
var object3;
const type = a1.type;
const ICYMIItemTypes = (require(7230) /* metro dependency 7230: ICYMITypes */).ICYMIItemTypes;
const MESSAGE = ICYMIItemTypes.MESSAGE;
if (MESSAGE === type) {
message = a1.message;
id = message.id;
message = a1.message;
if (id !== message.channel_id) {
object2 = {};
object2.id = a0.id;
object2.timestamp = global.Date.now();
data = a0.data;
object2.channelType = data.channel_type;
object3 = {kind: 'message'};
object3.message = a1.message;
data = a0.data;
object3.mentioned = data.has_mention;
data = a0.data;
object3.messageContext = data.message_context;
object2.data = object3;
object2.score = a0.score;
JSON = global.JSON;
object2.debugScore = JSON.stringify(a0.score_components);
object2.unread = a2;
r0 = object2;
} else if (a1.threadChannel != null) {
object2 = {};
object2.id = a0.id;
object2.timestamp = global.Date.now();
object2.channelType = a0.data.channel_type;
object2.data = {kind: 'forumThread', message: a1.message, threadChannel: a1.threadChannel};
object2.score = a0.score;
JSON = global.JSON;
object2.debugScore = JSON.stringify(a0.score_components);
object2.unread = a2;
r0 = object2;
function useICYMIItems() { // fn#112220, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15046:1415, offset: 0x023bfb1d, size: 778 bytes, params: 1, frame: 38
var r8;
var r18;
var r0;
var reference_message_id;
var r23;
var r9;
var r12;
var r20;
var property;
var value5;
var id;
var property2;
var value6;
var type;
const ICYMIItemTypes = (ICYMITypesModule).ICYMIItemTypes;
var MESSAGE;
var value7;
var data;
var message_context;
var value8;
var message_id;
var property3;
var item;
var value9;
var value10;
var property4;
var value11;
var value12;
var value13;
var property5;
var item2;
var value14;
const value2 = undefined;
const useStateFromStores = FluxModule.useStateFromStores;
const icymiStoreBinding = ICYMIStore;
const unreadDisplayItems = Reflect.apply(useStateFromStores, FluxModule, [[icymiStoreBinding], function() {
return ICYMIStore.getUnreadDisplayItems();
}]);
const readDisplayItems = FluxModule.useStateFromStores([icymiStoreBinding], function() {
return ICYMIStore.getReadDisplayItems();
});
const nextIndexToHydrate = FluxModule.useStateFromStores([icymiStoreBinding], function() {
return ICYMIStore.getNextIndexToHydrate();
});
const value3 = FluxModule.useStateFromStoresObject([icymiStoreBinding], function() {
return ICYMIStore.getHydratedItems();
});
const missingItems = FluxModule.useStateFromStores([icymiStoreBinding], function() {
return ICYMIStore.getMissingItems();
});
ReactModule.useEffect(_fun112226, [readDisplayItems]);
items3 = [];
const items2 = [];
let length = unreadDisplayItems.length;
const value4 = 0;
if (value4 < length) {
r8 = value4;
r18 = value4;
while (true) {
if (r18 >= nextIndexToHydrate) {
r9 = r18;
break;
}
property = unreadDisplayItems[r8];
value5 = typeof r18 === 'bigint' ? r18 + 1n : +r18 + 1;
id = property.id;
if (missingItems[id]) {
continue;
}
id = property.id;
property2 = value3[id];
value6 = property2 == null;
if (!value6) {
r0 = value6;
continue;
}
type = property.type;
MESSAGE = ICYMIItemTypes.MESSAGE;
value7 = type === MESSAGE;
r0 = value7;
if (!r0) {
continue;
}
data = property.data;
message_context = data.message_context;
if (message_context == null) {
reference_message_id = value2;
continue;
}
reference_message_id = message_context.reference_message_id;
value8 = reference_message_id != null;
r0 = value8;
if (!r0) {
r23 = property2;
continue;
}
data = property.data;
message_id = data.message_id;
property3 = value3[message_id];
r23 = property3;
if (r23 == null) {
continue;
}
item = createItem(property, r23, true);
if (item == null) {
continue;
}
items3.push(item);
value9 = typeof r8 === 'bigint' ? r8 + 1n : +r8 + 1;
length = unreadDisplayItems.length;
if (value9 < length) {
r8 = value9;
r18 = value5;
continue;
}
r9 = value5;
break;
}
} else {
object2 = {};
object2.id = a0.id;
object2.timestamp = global.Date.now();
data = a0.data;
object2.channelType = data.channel_type;
object3 = {kind: 'message'};
object3.message = a1.message;
data = a0.data;
object3.mentioned = data.has_mention;
data = a0.data;
object3.messageContext = data.message_context;
object2.data = object3;
object2.score = a0.score;
JSON = global.JSON;
object2.debugScore = JSON.stringify(a0.score_components);
object2.unread = a2;
r0 = object2;
r9 = value4;
}
return r0;
}
const ACTIVITY = ICYMIItemTypes.ACTIVITY;
if (ACTIVITY === type) {
object2 = {};
object2.id = a0.id;
object2.timestamp = global.Date.now();
object2.data = {kind: 'contentInventory', content: a1.activity};
object2.score = a0.score;
JSON = global.JSON;
object2.debugScore = JSON.stringify(a0.score_components);
object2.unread = a2;
return object2;
}
const CUSTOM_STATUS = ICYMIItemTypes.CUSTOM_STATUS;
if (CUSTOM_STATUS === type) {
object2 = {};
object2.id = a0.id;
object2.timestamp = global.Date.now();
object2.data = {kind: 'contentInventory', content: a1.activity};
object2.score = a0.score;
JSON = global.JSON;
object2.debugScore = JSON.stringify(a0.score_components);
object2.unread = a2;
return object2;
}
const GUILD_EVENT = ICYMIItemTypes.GUILD_EVENT;
if (GUILD_EVENT === type) {
object2 = {};
object2.id = a0.id;
object2.timestamp = global.Date.now();
object2.data = {kind: 'guildEvent', eventId: a1.event_id};
object2.score = a0.score;
JSON = global.JSON;
object2.debugScore = JSON.stringify(a0.score_components);
object2.unread = a2;
return object2;
}
const RECOMMENDED_GUILDS = ICYMIItemTypes.RECOMMENDED_GUILDS;
if (RECOMMENDED_GUILDS === type) {
object2 = {};
object2.id = a0.id;
object2.timestamp = global.Date.now();
object2.data = {kind: 'recommendedGuilds'};
object2.score = a0.score;
JSON = global.JSON;
object2.debugScore = JSON.stringify(a0.score_components);
object2.unread = a2;
return object2;
}
return null;
}
function useICYMIItems() { // fn#112220, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15046:1415, offset: 0x023bfb1d, size: 778 bytes, params: 1, frame: 38
var r8;
var r18;
var r0;
var reference_message_id;
var r23;
var r9;
var r12;
var r20;
var property;
var value5;
var id;
var property2;
var value6;
var type;
const ICYMIItemTypes = (require(7230) /* metro dependency 7230: ICYMITypes */).ICYMIItemTypes;
var MESSAGE;
var value7;
var data;
var message_context;
var value8;
var message_id;
var property3;
var item;
var value9;
var value10;
var property4;
var value11;
var value12;
var value13;
var property5;
var item2;
var value14;
const value2 = undefined;
const unreadDisplayItems = (require(566) /* metro dependency 566: flux */).useStateFromStores([ICYMIStore],
function() {
return ICYMIStore.getUnreadDisplayItems();
});
const readDisplayItems = (require(566) /* metro dependency 566: flux */).useStateFromStores([ICYMIStore],
function() {
return ICYMIStore.getReadDisplayItems();
});
const nextIndexToHydrate = (require(566) /* metro dependency 566: flux */).useStateFromStores([ICYMIStore],
function() {
return ICYMIStore.getNextIndexToHydrate();
});
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([ICYMIStore], function() {
return ICYMIStore.getHydratedItems();
});
const missingItems = (require(566) /* metro dependency 566: flux */).useStateFromStores([ICYMIStore], function() {
return ICYMIStore.getMissingItems();
});
env0_3.useEffect(_fun112226, [readDisplayItems]);
items3 = [];
const items2 = [];
let length = unreadDisplayItems.length;
const value4 = 0;
if (value4 < length) {
r8 = value4;
r18 = value4;
while (true) {
if (r18 >= nextIndexToHydrate) {
r9 = r18;
length = readDisplayItems.length;
if (value4 < length) {
r12 = value4;
while (true) {
if (r9 >= nextIndexToHydrate) {
break;
}
property = readDisplayItems[r12];
value10 = typeof r9 === 'bigint' ? r9 + 1n : +r9 + 1;
id = property.id;
if (missingItems[id]) {
continue;
}
id = property.id;
property4 = value3[id];
value11 = property4 == null;
if (!value11) {
r0 = value11;
continue;
}
type = property.type;
MESSAGE = ICYMIItemTypes.MESSAGE;
value12 = type === MESSAGE;
r0 = value12;
if (!r0) {
continue;
}
data = property.data;
message_context = data.message_context;
if (message_context == null) {
reference_message_id = value2;
continue;
}
reference_message_id = message_context.reference_message_id;
value13 = reference_message_id != null;
r0 = value13;
if (!r0) {
r20 = property4;
continue;
}
data = property.data;
message_id = data.message_id;
property5 = value3[message_id];
r20 = property5;
if (r20 == null) {
continue;
}
item2 = createItem(property, r20, false);
if (item2 == null) {
continue;
}
items2.push(item2);
value14 = typeof r12 === 'bigint' ? r12 + 1n : +r12 + 1;
length = readDisplayItems.length;
if (value14 < length) {
r9 = value10;
r12 = value14;
continue;
}
break;
}
property = unreadDisplayItems[r8];
value5 = typeof r18 === 'bigint' ? r18 + 1n : +r18 + 1;
id = property.id;
if (missingItems[id]) {
continue;
}
id = property.id;
property2 = value3[id];
value6 = property2 == null;
if (!value6) {
r0 = value6;
continue;
}
type = property.type;
MESSAGE = ICYMIItemTypes.MESSAGE;
value7 = type === MESSAGE;
r0 = value7;
if (!r0) {
continue;
}
data = property.data;
message_context = data.message_context;
if (message_context == null) {
reference_message_id = value2;
continue;
}
reference_message_id = message_context.reference_message_id;
value8 = reference_message_id != null;
r0 = value8;
if (!r0) {
r23 = property2;
continue;
}
data = property.data;
message_id = data.message_id;
property3 = value3[message_id];
r23 = property3;
if (r23 == null) {
continue;
}
item = createItem(property, r23, true);
if (item == null) {
continue;
}
items3.push(item);
value9 = typeof r8 === 'bigint' ? r8 + 1n : +r8 + 1;
length = unreadDisplayItems.length;
if (value9 < length) {
r8 = value9;
r18 = value5;
continue;
}
r9 = value5;
break;
}
} else {
r9 = value4;
}
length = readDisplayItems.length;
if (value4 < length) {
r12 = value4;
while (true) {
if (r9 >= nextIndexToHydrate) {
break;
return {unreadItems: items3, readItems: items2,
allUnreadItemsHydrated: nextIndexToHydrate >= unreadDisplayItems.length};
function _fun112226() { // fn#112226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15046:1780, offset: 0x023bfe88, size: 97 bytes, params: 1, frame: 16
var environment;
const Date = global.Date;
let value = Date.now();
const readDisplayItemsBinding = readDisplayItems;
const env0_0 = value + readDisplayItemsBinding.length;
value = environment.__proto__;
value = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
value.ackGravityItems(readDisplayItemsBinding.map(_fun112227, true));
function _fun112227({id}) { // fn#112227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15046:1844, offset: 0x023bfee9, size: 38 bytes, params: 2, frame: 4
const binding = env0_0;
const value2 = typeof binding === 'bigint' ? binding : +binding;
env0_0 = typeof value2 === 'bigint' ? value2 - 1n : +value2 - 1;
return {id: id, timestamp: value2};
}
property = readDisplayItems[r12];
value10 = typeof r9 === 'bigint' ? r9 + 1n : +r9 + 1;
id = property.id;
if (missingItems[id]) {
continue;
}
id = property.id;
property4 = value3[id];
value11 = property4 == null;
if (!value11) {
r0 = value11;
continue;
}
type = property.type;
MESSAGE = ICYMIItemTypes.MESSAGE;
value12 = type === MESSAGE;
r0 = value12;
if (!r0) {
continue;
}
data = property.data;
message_context = data.message_context;
if (message_context == null) {
reference_message_id = value2;
continue;
}
reference_message_id = message_context.reference_message_id;
value13 = reference_message_id != null;
r0 = value13;
if (!r0) {
r20 = property4;
continue;
}
data = property.data;
message_id = data.message_id;
property5 = value3[message_id];
r20 = property5;
if (r20 == null) {
continue;
}
item2 = createItem(property, r20, false);
if (item2 == null) {
continue;
}
items2.push(item2);
value14 = typeof r12 === 'bigint' ? r12 + 1n : +r12 + 1;
length = readDisplayItems.length;
if (value14 < length) {
r9 = value10;
r12 = value14;
continue;
}
break;
}
}
return {unreadItems: items3, readItems: items2,
allUnreadItemsHydrated: nextIndexToHydrate >= unreadDisplayItems.length};
}
function _fun112226() { // fn#112226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15046:1780, offset: 0x023bfe88, size: 97 bytes, params: 1, frame: 16
var environment;
const Date = global.Date;
let value = Date.now();
const readDisplayItemsBinding = readDisplayItems;
const env0_0 = value + readDisplayItemsBinding.length;
value = environment.__proto__;
value = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
value.ackGravityItems(readDisplayItemsBinding.map(_fun112227, true));
}
function _fun112227({id}) { // fn#112227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15046:1844, offset: 0x023bfee9, size: 38 bytes, params: 2, frame: 4
const binding = env0_0;
const value2 = typeof binding === 'bigint' ? binding : +binding;
env0_0 = typeof value2 === 'bigint' ? value2 - 1n : +value2 - 1;
return {id: id, timestamp: value2};
}
global.__d(_fun112218, 14849, [31, 9569, 7230, 566, 9580,
2]) /* metro module 14849, dependencies: [31, 9569, 7230, 566, 9580, 2] */;
+35 -32
View File
@@ -1,42 +1,45 @@
/* Metro module 14850; source: modules/icymi/useICYMIReloadHandler.tsx; dependencies: [5, 31, 9589, 9580, 2] */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
function _fun112228(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112228, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15047:6, offset: 0x023bff0f, size: 137 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/useICYMIReloadHandler.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/useICYMIReloadHandler.tsx');
exports.useICYMIReloadHandler = useICYMIReloadHandler;
}
function useICYMIReloadHandler(a0) { // fn#112229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15047:213, offset: 0x023bff98, size: 55 bytes, params: 2, frame: 15
const env0_0 = a0;
return ReactModule.useCallback(Module00005(_fun112231), [a0]);
function* _fun112231() { // fn#112231, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15047:271, offset: 0x023bffda, size: 276 bytes, params: 1, frame: 18
if (true) {
value = environment.__proto__.__proto__;
var ICYMIAnalytics = env2_0(env2_2[2]).ICYMIAnalytics;
ICYMIAnalytics.trackFeedShown({variant: require != null && require ? 'DotShown' : 'NoDotShown',
homeSessionId: 'gravity_refresh'});
var value6 = env2_1(env2_2[3]);
yield value6.fetchDehydrated({isReloading: true});
if (false) {
return undefined;
}
var value9 = env2_1(env2_2[3]);
yield value9.reloadICYMITab();
if (false) {
return undefined;
}
var value12 = env2_1(env2_2[3]);
var getGuildChannelScores = value12.getGuildChannelScores;
yield Reflect.apply(getGuildChannelScores, value12, []);
if (false) {
return undefined;
}
env2_1(env2_2[3]).getRecommendedGuilds();
}
}
function useICYMIReloadHandler(a0) { // fn#112229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15047:213, offset: 0x023bff98, size: 55 bytes, params: 2, frame: 15
const env0_0 = a0;
return env0_4.useCallback(env0_3(_fun112231), [a0]);
}
function* _fun112231() { // fn#112231, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15047:271, offset: 0x023bffda, size: 276 bytes, params: 1, frame: 18
if (true) {
value = environment.__proto__.__proto__;
var ICYMIAnalytics = env2_0(env2_2[2]).ICYMIAnalytics;
ICYMIAnalytics.trackFeedShown({variant: require != null && require ? 'DotShown' : 'NoDotShown',
homeSessionId: 'gravity_refresh'});
var value6 = env2_1(env2_2[3]);
yield value6.fetchDehydrated({isReloading: true});
if (false) {
return undefined;
}
var value9 = env2_1(env2_2[3]);
yield value9.reloadICYMITab();
if (false) {
return undefined;
}
var value12 = env2_1(env2_2[3]);
var getGuildChannelScores = value12.getGuildChannelScores;
yield Reflect.apply(getGuildChannelScores, value12, []);
if (false) {
return undefined;
}
env2_1(env2_2[3]).getRecommendedGuilds();
}
}
global.__d(_fun112228, 14850, [5, 31, 9589, 9580, 2]) /* metro module 14850, dependencies: [5, 31, 9589, 9580, 2] */;
+17 -10
View File
@@ -1,10 +1,13 @@
/* Metro module 14744; source: modules/icymi/useICYMITabBadge.tsx; dependencies: [9569, 566, 2] */
import ICYMIStore from './ICYMIStore.tsx'; /* Metro dependency 9569 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as FluxModule from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
function _fun111285(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111285, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14941:6, offset: 0x0239c2e7, size: 127 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const icymiStore = importDefault(9569) /* metro dependency 9569: ICYMIStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/useICYMITabBadge.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/useICYMITabBadge.tsx');
exports.default = function() {
var object = {value: 0};
object.showDot = require(dependencyMap[1]).useStateFromStores([ICYMIStore], _fun111287, []);
@@ -13,13 +16,17 @@ function _fun111285(global, require, importDefault, importAll, module, exports,
exports.icymiTabBadgeShown = function() {
return ICYMIStore.hasNewContent();
};
function useICYMITabBadge() { // fn#111286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14941:184, offset: 0x0239c366, size: 77 bytes, params: 1, frame: 16
const useStateFromStores = FluxModule.useStateFromStores;
return {value: 0, showDot: Reflect.apply(useStateFromStores, FluxModule, [[ICYMIStore], function() {
return ICYMIStore.hasNewContent();
}, []])};
function _fun111287() { // fn#111287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14941:267, offset: 0x0239c3b3, size: 19 bytes, params: 1, frame: 9
return ICYMIStore.hasNewContent();
}
}
}
function useICYMITabBadge() { // fn#111286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14941:184, offset: 0x0239c366, size: 77 bytes, params: 1, frame: 16
const fluxModule = require(566) /* metro dependency 566: flux */;
const useStateFromStores = fluxModule.useStateFromStores;
return {value: 0, showDot: Reflect.apply(useStateFromStores, fluxModule, [[ICYMIStore], function() {
return ICYMIStore.hasNewContent();
}, []])};
}
global.__d(_fun111285, 14744, [9569, 566, 2]) /* metro module 14744, dependencies: [9569, 566, 2] */;
+300 -260
View File
@@ -1,286 +1,326 @@
/* Metro module 14848; source: modules/icymi/useSharedICYMILogic.tsx; dependencies: [57, 31, 9569, 14814, 14849, 566, 9589, 9586, 8819, 9580, 9579, 7230, 14850, 2] */
import Module00057 from '../../by-id/module-00057.js'; /* Metro dependency 57 */
import UsePrevValue from '../../hooks/usePrevValue.tsx'; /* Metro dependency 8819 */
import ICYMIStore from './ICYMIStore.tsx'; /* Metro dependency 9569 */
import ICYMIActionCreators from './ICYMIActionCreators.tsx'; /* Metro dependency 9580 */
import UseICYMIItems from './useICYMIItems.tsx'; /* Metro dependency 14849 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as FluxModule from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ICYMIConstantsModule from './ICYMIConstants.tsx'; /* Metro dependency 14814 */
import * as UseICYMIReloadHandlerModule from './useICYMIReloadHandler.tsx'; /* Metro dependency 14850 */
function _fun112192(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15045:6, offset: 0x023bebb6, size: 175 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const icymiStore = importDefault(9569) /* metro dependency 9569: ICYMIStore */;
const env0_6 = (require(14814) /* metro dependency 14814: ICYMIConstants */).SCROLL_EVENT_THROTTLE_MS;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/icymi/useSharedICYMILogic.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/useSharedICYMILogic.tsx');
exports.useSharedICYMILogic = useSharedICYMILogic;
}
function useSharedICYMILogic({showDot, notificationItem}) { // fn#112193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15045:258, offset: 0x023bec65, size: 807 bytes, params: 2, frame: 37
const binding = env0_4;
let useState = binding.useState;
const value2 = Reflect.apply(useState, binding, [false]);
const binding2 = env0_3;
const value3 = binding2(value2, 2);
const property = value3[0];
const property2 = value3[1];
const {unreadItems, readItems,
allUnreadItemsHydrated} = (importDefault(14849) /* metro dependency 14849: useICYMIItems */)();
const value = (require(566) /* metro dependency 566: flux */).useStateFromStores([ICYMIStore], function() {
return ICYMIStore.getVersion();
}, []);
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ICYMIStore], _fun112195);
binding.useEffect(function() {
if (ICYMIStore.getLoadId() != null) {
require(dependencyMap[6]).ICYMIAnalytics.trackFeedShown({homeSessionId: 'gravity'});
function useSharedICYMILogic({showDot, notificationItem}) { // fn#112193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15045:258, offset: 0x023bec65, size: 807 bytes, params: 2, frame: 37
let useState = ReactModule.useState;
const value2 = Reflect.apply(useState, ReactModule, [false]);
const value3 = Module00057(value2, 2);
const property = value3[0];
const property2 = value3[1];
const {unreadItems, readItems,
allUnreadItemsHydrated} = (UseICYMIItems)();
const useStateFromStores = FluxModule.useStateFromStores;
let icymiStoreBinding = ICYMIStore;
const value = Reflect.apply(useStateFromStores, FluxModule, [[icymiStoreBinding], function() {
return ICYMIStore.getVersion();
}, []]);
const value5 = FluxModule.useStateFromStores([icymiStoreBinding], _fun112195);
ReactModule.useEffect(function() {
if (ICYMIStore.getLoadId() != null) {
require(dependencyMap[6]).ICYMIAnalytics.trackFeedShown({homeSessionId: 'gravity'});
}
}, [value]);
const value6 = FluxModule.useStateFromStores([icymiStoreBinding], function() {
return ICYMIStore.isRefreshing();
}, []);
const value7 = FluxModule.useStateFromStores([icymiStoreBinding], function() {
return ICYMIStore.isHydrating();
}, []);
useState = ReactModule.useState;
const value8 = Module00057(Reflect.apply(useState, ReactModule, [[]]), 2);
const property3 = value8[0];
const env0_9 = value8[1];
const {loadId, lastScrollEventTimestamp} = FluxModule.useStateFromStoresObject([icymiStoreBinding], function() {
var object = {};
var icymiStoreBinding = ICYMIStore;
object.loadId = icymiStoreBinding.getLoadId();
object.lastScrollEventTimestamp = icymiStoreBinding.lastScrollEvent();
return object;
});
const value12 = property3.filter(function({item}) {
var NON_ELIGIBLE_SCROLL_ITEMS = require(dependencyMap[7]).NON_ELIGIBLE_SCROLL_ITEMS;
return !NON_ELIGIBLE_SCROLL_ITEMS.has(item.data.kind);
}).map(function(a0) {
return a0.item.id;
}).pop();
ReactModule.useEffect(_fun112202, [value6, lastScrollEventTimestamp,
(UsePrevValue)(value12), value12, loadId, value5]);
const value17 = ReactModule.useMemo(_fun112213, [ReactModule.useCallback(_fun112203, [value, property2]),
ReactModule.useCallback(_fun112206, [value]), ReactModule.useCallback(_fun112210, [])]);
ReactModule.useEffect(_fun112214, []);
const value18 = (UseICYMIReloadHandlerModule).useICYMIReloadHandler(showDot);
const value19 = ReactModule.useMemo(_fun112215, [value5, notificationItem, unreadItems, allUnreadItemsHydrated,
readItems, value7]);
return {data: value19.data, loading: value5, version: value, visibleItemIds: property3, endVisible: property,
isRefreshing: value6, handleOnRefresh: value18, stickyHeaderIndices: value19.stickyHeaderIndices,
viewabilityConfigCallbackPairs: value17};
function _fun112195() { // fn#112195, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15045:525, offset: 0x023bef9f, size: 40 bytes, params: 1, frame: 10
const value = environment.__proto__;
return !(ICYMIStore.isFirstPageHydrated() && env0_5 > 0);
}
}, [value]);
const value6 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ICYMIStore], function() {
return ICYMIStore.isRefreshing();
}, []);
const value7 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ICYMIStore], function() {
return ICYMIStore.isHydrating();
}, []);
useState = binding.useState;
const value8 = binding2(Reflect.apply(useState, binding, [[]]), 2);
const property3 = value8[0];
const env0_9 = value8[1];
const {loadId,
lastScrollEventTimestamp} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([ICYMIStore],
function() {
var object = {};
object.loadId = ICYMIStore.getLoadId();
object.lastScrollEventTimestamp = ICYMIStore.lastScrollEvent();
return object;
});
const value12 = property3.filter(function({item}) {
var NON_ELIGIBLE_SCROLL_ITEMS = require(dependencyMap[7]).NON_ELIGIBLE_SCROLL_ITEMS;
return !NON_ELIGIBLE_SCROLL_ITEMS.has(item.data.kind);
}).map(function(a0) {
return a0.item.id;
}).pop();
binding.useEffect(_fun112202, [value6, lastScrollEventTimestamp,
(importDefault(8819) /* metro dependency 8819: usePrevValue */)(value12), value12, loadId, value5]);
const value17 = binding.useMemo(_fun112213, [binding.useCallback(_fun112203, [value, property2]),
binding.useCallback(_fun112206, [value]), binding.useCallback(_fun112210, [])]);
binding.useEffect(_fun112214, []);
const value18 = (require(14850) /* metro dependency 14850: useICYMIReloadHandler */).useICYMIReloadHandler(showDot);
const value19 = binding.useMemo(_fun112215, [value5, notificationItem, unreadItems, allUnreadItemsHydrated,
readItems, value7]);
return {data: value19.data, loading: value5, version: value, visibleItemIds: property3, endVisible: property,
isRefreshing: value6, handleOnRefresh: value18, stickyHeaderIndices: value19.stickyHeaderIndices,
viewabilityConfigCallbackPairs: value17};
}
function _fun112195() { // fn#112195, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15045:525, offset: 0x023bef9f, size: 40 bytes, params: 1, frame: 10
const value = environment.__proto__;
return !(ICYMIStore.isFirstPageHydrated() && env0_5 > 0);
}
function _fun112202() { // fn#112202, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15045:1128, offset: 0x023bf0a9, size: 161 bytes, params: 1, frame: 14
var value2;
var value3;
var value;
if (!env0_7) {
if (!env0_6) {
if (env0_12 != null) {
if (env0_11 != null) {
if (env0_11 !== env0_12) {
value2 = global.Date.now();
value = value2 - lastScrollEventTimestamp;
value3 = environment.__proto__;
if (value > SCROLL_EVENT_THROTTLE_MS) {
(importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */).gravityScrollEvent(value2);
(require(9589) /* metro dependency 9589: ICYMIAnalytics */).ICYMIAnalytics.trackFeedFirstScrollStarted();
function _fun112202() { // fn#112202, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15045:1128, offset: 0x023bf0a9, size: 161 bytes, params: 1, frame: 14
var value2;
var value3;
var value;
if (!env0_7) {
if (!ICYMIConstantsModule.SCROLL_EVENT_THROTTLE_MS) {
if (env0_12 != null) {
if (env0_11 != null) {
if (env0_11 !== env0_12) {
value2 = global.Date.now();
value = value2 - lastScrollEventTimestamp;
value3 = environment.__proto__;
if (value > SCROLL_EVENT_THROTTLE_MS) {
(importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */).gravityScrollEvent(value2);
(require(9589) /* metro dependency 9589: ICYMIAnalytics */).ICYMIAnalytics.trackFeedFirstScrollStarted();
}
}
}
}
}
}
}
}
}
function _fun112203({viewableItems}) { // fn#112203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15045:1318, offset: 0x023bf14a, size: 344 bytes, params: 2, frame: 28
var environment;
var r3;
var r11;
var r12;
var items2;
var value2;
var viewableFeedItemsArray;
var value4;
var value5;
var property;
var push;
var object2;
var id;
var moduleValue2;
var value6;
var value7;
var value8;
var ICYMIAnalytics;
if (viewableItems.some(function(a0) {
return a0.item.data.kind === 'end';
})) {
env0_1(true);
}
let length = viewableItems.length;
if (length !== 0) {
env0_9(viewableItems);
items2 = [];
value2 = environment.__proto__;
viewableFeedItemsArray = (require(9579) /* metro dependency 9579: ICYMIUtils */).getViewableFeedItemsArray(viewableItems);
value4 = global.Date.now();
length = viewableFeedItemsArray.length;
value5 = length - 1;
if (value5 >= 0) {
r3 = value4;
r11 = value5;
while (true) {
property = viewableFeedItemsArray[r11];
if (property == null) {
r12 = r3;
} else {
push = items2.push;
object2 = {};
id = property.id;
object2.id = id;
moduleValue2 = require(7230) /* metro dependency 7230: ICYMITypes */;
object2.type = moduleValue2.typeToString(property);
value6 = typeof r3 === 'bigint' ? r3 : +r3;
value7 = typeof value6 === 'bigint' ? value6 + 1n : +value6 + 1;
object2.timestamp = value6;
Reflect.apply(push, items2, [object2]);
r12 = value7;
}
value8 = typeof r11 === 'bigint' ? r11 - 1n : +r11 - 1;
if (value8 >= 0) {
r3 = r12;
r11 = value8;
continue;
}
break;
function _fun112203({viewableItems}) { // fn#112203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15045:1318, offset: 0x023bf14a, size: 344 bytes, params: 2, frame: 28
var environment;
var r3;
var r11;
var r12;
var items2;
var value2;
var viewableFeedItemsArray;
var value4;
var value5;
var property;
var push;
var object;
var id;
var moduleValue2;
var value6;
var value7;
var value8;
var ICYMIAnalytics;
if (viewableItems.some(function(a0) {
return a0.item.data.kind === 'end';
})) {
env0_1(true);
}
let length = viewableItems.length;
if (length !== 0) {
env0_9(viewableItems);
items2 = [];
value2 = environment.__proto__;
viewableFeedItemsArray = (require(9579) /* metro dependency 9579: ICYMIUtils */).getViewableFeedItemsArray(viewableItems);
value4 = global.Date.now();
length = viewableFeedItemsArray.length;
value5 = length - 1;
if (value5 >= 0) {
r3 = value4;
r11 = value5;
while (true) {
property = viewableFeedItemsArray[r11];
if (property == null) {
r12 = r3;
} else {
push = items2.push;
object = {};
id = property.id;
object.id = id;
moduleValue2 = require(7230) /* metro dependency 7230: ICYMITypes */;
object.type = moduleValue2.typeToString(property);
value6 = typeof r3 === 'bigint' ? r3 : +r3;
value7 = typeof value6 === 'bigint' ? value6 + 1n : +value6 + 1;
object.timestamp = value6;
Reflect.apply(push, items2, [object]);
r12 = value7;
}
value8 = typeof r11 === 'bigint' ? r11 - 1n : +r11 - 1;
if (value8 >= 0) {
r3 = r12;
r11 = value8;
continue;
}
break;
}
}
length = items2.length;
if (length > 0) {
(importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */).ackGravityItems(items2, true);
}
ICYMIAnalytics = (require(9589) /* metro dependency 9589: ICYMIAnalytics */).ICYMIAnalytics;
ICYMIAnalytics.trackItemShortImpression(viewableItems, viewableFeedItemsArray.map(_fun112205), env0_5);
}
function _fun112205(a0) { // fn#112205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15045:1678, offset: 0x023bf2be, size: 56 bytes, params: 2, frame: 13
const object = {};
object.id = a0.id;
const value = environment.__proto__.__proto__;
object.type = (require(7230) /* metro dependency 7230: ICYMITypes */).typeToString(a0);
return object;
}
}
length = items2.length;
if (length > 0) {
(importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */).ackGravityItems(items2, true);
function _fun112206({viewableItems}) { // fn#112206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15045:1755, offset: 0x023bf2f6, size: 181 bytes, params: 2, frame: 20
var environment;
var value;
var viewableFeedItemsArray;
var ICYMIAnalytics;
var triggerItemsLongImpression;
var value5;
if (viewableItems.length !== 0) {
value = environment.__proto__;
viewableFeedItemsArray = (require(9579) /* metro dependency 9579: ICYMIUtils */).getViewableFeedItemsArray(viewableItems);
ICYMIAnalytics = (require(9589) /* metro dependency 9589: ICYMIAnalytics */).ICYMIAnalytics;
ICYMIAnalytics.trackItemLongImpression(viewableItems, viewableFeedItemsArray.map(_fun112207), env0_5);
value = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
triggerItemsLongImpression = value.triggerItemsLongImpression;
value5 = viewableItems.filter(function({item}) {
var NON_ELIGIBLE_SCROLL_ITEMS = require(dependencyMap[7]).NON_ELIGIBLE_SCROLL_ITEMS;
return !NON_ELIGIBLE_SCROLL_ITEMS.has(item.data.kind);
});
Reflect.apply(triggerItemsLongImpression, value, [value5.map(_fun112209)]);
}
function _fun112207(a0) { // fn#112207, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15045:1894, offset: 0x023bf2be, size: 56 bytes, params: 2, frame: 13
const object = {};
object.id = a0.id;
const value = environment.__proto__.__proto__;
object.type = (require(7230) /* metro dependency 7230: ICYMITypes */).typeToString(a0);
return object;
}
function _fun112209({item, index}) { // fn#112209, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15045:2061, offset: 0x023bf3eb, size: 137 bytes, params: 2, frame: 14
const object = {};
object.itemId = item.id;
let value = environment.__proto__.__proto__;
object.itemType = (require(9579) /* metro dependency 9579: ICYMIUtils */).itemToType(item);
object.triggerType = 'list';
object.itemFeedIndex = index;
const score = item.score;
value = null;
object.itemScore = value != score ? score : value;
const channelType = item.channelType;
object.itemChannelType = value != channelType ? channelType : value;
object.isInitiallyVisible = false;
return object;
}
}
ICYMIAnalytics = (require(9589) /* metro dependency 9589: ICYMIAnalytics */).ICYMIAnalytics;
ICYMIAnalytics.trackItemShortImpression(viewableItems, viewableFeedItemsArray.map(_fun112205), env0_5);
}
}
function _fun112206({viewableItems}) { // fn#112206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15045:1755, offset: 0x023bf2f6, size: 181 bytes, params: 2, frame: 20
var environment;
var value;
var viewableFeedItemsArray;
var ICYMIAnalytics;
var triggerItemsLongImpression;
var value5;
if (viewableItems.length !== 0) {
value = environment.__proto__;
viewableFeedItemsArray = (require(9579) /* metro dependency 9579: ICYMIUtils */).getViewableFeedItemsArray(viewableItems);
ICYMIAnalytics = (require(9589) /* metro dependency 9589: ICYMIAnalytics */).ICYMIAnalytics;
ICYMIAnalytics.trackItemLongImpression(viewableItems, viewableFeedItemsArray.map(_fun112207), env0_5);
value = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
triggerItemsLongImpression = value.triggerItemsLongImpression;
value5 = viewableItems.filter(function({item}) {
var NON_ELIGIBLE_SCROLL_ITEMS = require(dependencyMap[7]).NON_ELIGIBLE_SCROLL_ITEMS;
return !NON_ELIGIBLE_SCROLL_ITEMS.has(item.data.kind);
});
Reflect.apply(triggerItemsLongImpression, value, [value5.map(_fun112209)]);
}
}
function _fun112210({viewableItems}) { // fn#112210, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15045:2310, offset: 0x023bf474, size: 83 bytes, params: 2, frame: 15
var environment;
let value = environment.__proto__;
value = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
const startItemsDwell = value.startItemsDwell;
const value2 = viewableItems.filter(function({item}) {
var NON_ELIGIBLE_SCROLL_ITEMS = require(dependencyMap[7]).NON_ELIGIBLE_SCROLL_ITEMS;
return !NON_ELIGIBLE_SCROLL_ITEMS.has(item.data.kind);
});
Reflect.apply(startItemsDwell, value, [value2.map(_fun112212)]);
function _fun112212({item, index}) { // fn#112212, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15045:2438, offset: 0x023bf3eb, size: 137 bytes, params: 2, frame: 14
const object = {};
object.itemId = item.id;
let value = environment.__proto__.__proto__;
object.itemType = (require(9579) /* metro dependency 9579: ICYMIUtils */).itemToType(item);
object.triggerType = 'list';
object.itemFeedIndex = index;
const score = item.score;
value = null;
object.itemScore = value != score ? score : value;
const channelType = item.channelType;
object.itemChannelType = value != channelType ? channelType : value;
object.isInitiallyVisible = false;
return object;
}
function _fun112210({viewableItems}) { // fn#112210, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15045:2310, offset: 0x023bf474, size: 83 bytes, params: 2, frame: 15
var environment;
let value = environment.__proto__;
value = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
const startItemsDwell = value.startItemsDwell;
const value2 = viewableItems.filter(function({item}) {
var NON_ELIGIBLE_SCROLL_ITEMS = require(dependencyMap[7]).NON_ELIGIBLE_SCROLL_ITEMS;
return !NON_ELIGIBLE_SCROLL_ITEMS.has(item.data.kind);
});
Reflect.apply(startItemsDwell, value, [value2.map(_fun112212)]);
}
function _fun112213() { // fn#112213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15045:2681, offset: 0x023bf4c7, size: 111 bytes, params: 1, frame: 4
return [{viewabilityConfig: {'waitForInteraction': false, 'viewAreaCoveragePercentThreshold': 100,
'minimumViewTime': 50}, onViewableItemsChanged: env0_13}, {viewabilityConfig: {'waitForInteraction': false,
'viewAreaCoveragePercentThreshold': 50, 'minimumViewTime': 1000}, onViewableItemsChanged: env0_14},
{viewabilityConfig: {'waitForInteraction': false, 'viewAreaCoveragePercentThreshold': 50,
'minimumViewTime': 50}, onViewableItemsChanged: env0_15}];
}
function _fun112214() { // fn#112214, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15045:3084, offset: 0x023bf536, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
(importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */).openICYMITab();
}
function _fun112215() { // fn#112215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15045:3172, offset: 0x023bf55b, size: 432 bytes, params: 1, frame: 18
var environment;
var notificationItemBinding;
var push;
var object2;
var value5;
var moduleValue;
const items2 = [];
if (env0_6 && notificationItem != null && notificationItem.type === (require(7230) /* metro dependency 7230: ICYMITypes */).ICYMIItemTypes.CUSTOM_STATUS) {
push = items2.push;
object2 = {};
notificationItemBinding = notificationItem;
object2.id = notificationItemBinding.id;
object2.timestamp = global.Date.now();
value5 = environment.__proto__;
moduleValue = require(9579) /* metro dependency 9579: ICYMIUtils */;
object2.data = {kind: 'contentInventory',
content: moduleValue.customStatusToContentInventoryEntry(notificationItemBinding).activity};
object2.score = notificationItemBinding.score;
object2.unread = true;
Reflect.apply(push, items2, [object2]);
}
if (env0_6) {
items2.push({'id': 'loading', 'timestamp': 0, 'unread': false, data: {kind: 'loading'}});
} else {
unreadItems.forEach(_fun112216);
if (allUnreadItemsHydrated) {
items2.push({'id': 'end', 'timestamp': 0, 'unread': false, data: {kind: 'end'}});
}
if (readItems.length > 0) {
readItems.forEach(_fun112217);
function _fun112213() { // fn#112213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15045:2681, offset: 0x023bf4c7, size: 111 bytes, params: 1, frame: 4
return [{viewabilityConfig: {'waitForInteraction': false, 'viewAreaCoveragePercentThreshold': 100,
'minimumViewTime': 50}, onViewableItemsChanged: env0_13}, {viewabilityConfig: {'waitForInteraction': false,
'viewAreaCoveragePercentThreshold': 50, 'minimumViewTime': 1000}, onViewableItemsChanged: env0_14},
{viewabilityConfig: {'waitForInteraction': false, 'viewAreaCoveragePercentThreshold': 50,
'minimumViewTime': 50}, onViewableItemsChanged: env0_15}];
}
if (env0_8) {
items2.push({'id': 'bottomLoading', 'timestamp': 0, 'unread': false, data: {kind: 'bottomLoading'}});
function _fun112214() { // fn#112214, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15045:3084, offset: 0x023bf536, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
(ICYMIActionCreators).openICYMITab();
}
function _fun112215() { // fn#112215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15045:3172, offset: 0x023bf55b, size: 432 bytes, params: 1, frame: 18
var environment;
var notificationItemBinding;
var push;
var object;
var value5;
var moduleValue;
const items2 = [];
if (ICYMIConstantsModule.SCROLL_EVENT_THROTTLE_MS && notificationItem != null && notificationItem.type === (require(7230) /* metro dependency 7230: ICYMITypes */).ICYMIItemTypes.CUSTOM_STATUS) {
push = items2.push;
object = {};
notificationItemBinding = notificationItem;
object.id = notificationItemBinding.id;
object.timestamp = global.Date.now();
value5 = environment.__proto__;
moduleValue = require(9579) /* metro dependency 9579: ICYMIUtils */;
object.data = {kind: 'contentInventory',
content: moduleValue.customStatusToContentInventoryEntry(notificationItemBinding).activity};
object.score = notificationItemBinding.score;
object.unread = true;
Reflect.apply(push, items2, [object]);
}
if (ICYMIConstantsModule.SCROLL_EVENT_THROTTLE_MS) {
items2.push({'id': 'loading', 'timestamp': 0, 'unread': false, data: {kind: 'loading'}});
} else {
unreadItems.forEach(_fun112216);
if (allUnreadItemsHydrated) {
items2.push({'id': 'end', 'timestamp': 0, 'unread': false, data: {kind: 'end'}});
}
if (readItems.length > 0) {
readItems.forEach(_fun112217);
}
if (env0_8) {
items2.push({'id': 'bottomLoading', 'timestamp': 0, 'unread': false, data: {kind: 'bottomLoading'}});
}
}
return {data: items2, stickyHeaderIndices: []};
function _fun112216(a0) { // fn#112216, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15045:3493, offset: 0x023bf70b, size: 61 bytes, params: 2, frame: 12
let value = environment.__proto__.__proto__;
value = require(9579) /* metro dependency 9579: ICYMIUtils */;
if (!value.isItemNSFW(a0)) {
env0_0.push(a0);
}
}
function _fun112217(a0) { // fn#112217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15045:3619, offset: 0x023bf70b, size: 61 bytes, params: 2, frame: 12
let value = environment.__proto__.__proto__;
value = require(9579) /* metro dependency 9579: ICYMIUtils */;
if (!value.isItemNSFW(a0)) {
env0_0.push(a0);
}
}
}
}
return {data: items2, stickyHeaderIndices: []};
}
function _fun112205(a0) { // fn#112205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15045:1678, offset: 0x023bf2be, size: 56 bytes, params: 2, frame: 13
const object2 = {};
object2.id = a0.id;
const value = environment.__proto__.__proto__;
object2.type = (require(7230) /* metro dependency 7230: ICYMITypes */).typeToString(a0);
return object2;
}
function _fun112209({item, index}) { // fn#112209, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15045:2061, offset: 0x023bf3eb, size: 137 bytes, params: 2, frame: 14
const object2 = {};
object2.itemId = item.id;
let value = environment.__proto__.__proto__;
object2.itemType = (require(9579) /* metro dependency 9579: ICYMIUtils */).itemToType(item);
object2.triggerType = 'list';
object2.itemFeedIndex = index;
const score = item.score;
value = null;
object2.itemScore = value != score ? score : value;
const channelType = item.channelType;
object2.itemChannelType = value != channelType ? channelType : value;
object2.isInitiallyVisible = false;
return object2;
}
function _fun112216(a0) { // fn#112216, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15045:3493, offset: 0x023bf70b, size: 61 bytes, params: 2, frame: 12
let value = environment.__proto__.__proto__;
value = require(9579) /* metro dependency 9579: ICYMIUtils */;
if (!value.isItemNSFW(a0)) {
env0_0.push(a0);
}
}
global.__d(_fun112192, 14848, [57, 31, 9569, 14814, 14849, 566, 9589, 9586, 8819, 9580, 9579, 7230, 14850,
2]) /* metro module 14848, dependencies: [57, 31, 9569, 14814, 14849, 566, 9589, 9586, 8819, 9580, 9579, 7230, 14850, 2] */;