Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,77 @@
|
||||
/* Metro module 1368; source: modules/dismissible_content/DCFEventStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
|
||||
function _fun15728(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#15728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1495:6, offset: 0x00e3d988, size: 353 bytes, params: 8, frame: 20
|
||||
var object2;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
object2 = {DC_SHOWN: 0};
|
||||
object2[0] = 'DC_SHOWN';
|
||||
object2.DC_SHOW_REQUEST = 1;
|
||||
object2[1] = 'DC_SHOW_REQUEST';
|
||||
object2.DC_DISMISSED = 2;
|
||||
object2[2] = 'DC_DISMISSED';
|
||||
let env0_6 = [];
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
let value = _fun15732(Store);
|
||||
value.displayName = 'DCFEventStore';
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {LOGOUT: function() {
|
||||
env0_6 = [];
|
||||
}, DCF_EVENT_LOGGED: function(a0) {
|
||||
a0.eventType;
|
||||
a0.dismissibleContent;
|
||||
}, DCF_HANDLE_DC_DISMISSED: DCF_HANDLE_DC_DISMISSED, DCF_HANDLE_DC_SHOWN: DCF_HANDLE_DC_SHOWN});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/dismissible_content/DCFEventStore.tsx');
|
||||
exports.default = value;
|
||||
exports.DCFEventTypes = object2;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_15729() { // fn#15729, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1495:148, offset: 0x00e3dae9, size: 94 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_15729_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun15732(a0) { // fn#15732, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1495:483, offset: 0x00e3db47, size: 70 bytes, params: 2, frame: 15
|
||||
const closure = DCFEventStore;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'getDCFEvents', value: value_15734}]);
|
||||
}
|
||||
|
||||
function DCF_HANDLE_DC_DISMISSED(a0) { // fn#15737, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1495:971, offset: 0x00e3dc20, size: 26 bytes, params: 2, frame: 1
|
||||
a0.dismissibleContent;
|
||||
env0_5.DC_DISMISSED;
|
||||
}
|
||||
|
||||
function DCF_HANDLE_DC_SHOWN(a0) { // fn#15738, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1495:1034, offset: 0x00e3dc3a, size: 26 bytes, params: 2, frame: 1
|
||||
a0.dismissibleContent;
|
||||
env0_5.DC_SHOWN;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
/* Metro module 1376; source: modules/dismissible_content/DismissibleContentConstants.tsx; dependencies: [2] */
|
||||
function _fun15847(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#15847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1503:6, offset: 0x00e40a45, size: 408 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/dismissible_content/DismissibleContentConstants.tsx');
|
||||
exports.ContentDismissActionType = {PRIMARY: 'primary', SECONDARY: 'secondary', DISMISS: 'dismiss', AUTO: 'auto',
|
||||
AUTO_DISMISS: 'auto_dismiss', TAKE_ACTION: 'take_action', USER_DISMISS: 'user_dismiss',
|
||||
USER_DISMISS_ALL: 'user_dismiss_all', INDIRECT_ACTION: 'indirect_action', UNKNOWN: 'unknown'};
|
||||
exports.DismissibleContentGroupName = {GUILD_HEADER_TOOLTIPS: 'GUILD_HEADER_TOOLTIPS',
|
||||
CHANNEL_NOTICES: 'CHANNEL_NOTICES', CALL_CHAT_BUTTON: 'CALL_CHAT_BUTTON', GUILD_FEED_TOP: 'GUILD_FEED_TOP',
|
||||
MAIN_VIEW_TOOLTIPS: 'MAIN_VIEW_TOOLTIPS',
|
||||
CHANNEL_HEADER_CALL_BUTTON_TOOLTIPS: 'CHANNEL_HEADER_CALL_BUTTON_TOOLTIPS',
|
||||
YOU_TAB_ONBOARDING: 'YOU_TAB_ONBOARDING', SUPER_REACTIONS_SPARKLES: 'SUPER_REACTIONS_SPARKLES',
|
||||
NOTICE_BAR: 'NOTICE_BAR', PROFILE_DRAWER_HEADER: 'PROFILE_DRAWER_HEADER', SIDEBAR: 'SIDEBAR',
|
||||
MEMBER_LIST_HEADER: 'MEMBER_LIST_HEADER', APP_LAUNCHER_ONBOARDING: 'APP_LAUNCHER_ONBOARDING',
|
||||
VIRTUAL_CURRENCY_ONBOARDING: 'VIRTUAL_CURRENCY_ONBOARDING', ACCOUNT_NAME_ZONE: 'ACCOUNT_NAME_ZONE',
|
||||
VIRTUAL_CURRENCY_MOBILE_ONBOARDING: 'VIRTUAL_CURRENCY_MOBILE_ONBOARDING',
|
||||
PRIVATE_CHANNELS_LIST: 'PRIVATE_CHANNELS_LIST', GUILD_THEME_NUX: 'GUILD_THEME_NUX'};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,108 @@
|
||||
/* Metro module 1370; source: modules/dismissible_content/DismissibleContentFatigueConfig.tsx; dependencies: [1365, 2] */
|
||||
function _fun15761(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#15761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1497:6, offset: 0x00e3e5bf, size: 3564 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const Set = global.Set;
|
||||
const {APPLICATION_COMMAND_TOOLTIP, NOW_PLAYING_CONSENT_CARD, GUILD_INSIGHTS_ACCESS_RATE_NEW,
|
||||
FORUM_CHANNEL_UPSELL_MODAL, COMMANDS_MIGRATION_UPSELL_MODAL, CHANNEL_BROWSER_NUX,
|
||||
BLACK_FRIDAY_2022_BOGO_ANNOUNCEMENT_MODAL, GG_ANNOUNCEMENT, GUILD_ONBOARDING_UPSELL_MODAL,
|
||||
CLIENT_THEMES_SPARKLE_PREVIEW, CLIENT_THEMES_APPEARANCE_SETTINGS_NEW_BADGE, QUEST_1_COMPLETION_TOOLTIP,
|
||||
GUEST_VOICE_INVITES_MENU_ITEM_NEW_BADGE, CUSTOM_CALL_SOUNDS_PICKER_UPSELL,
|
||||
CLIPS_ONBOARDING_CLIP_BUTTON_COACHMARK, CUSTOM_APP_ICONS_NEW_BADGE, RECURRING_CONTACT_SYNC_PROMPT,
|
||||
NUX_GUILD_CHANNEL_EXPLAINER, SUPER_REACTION_TOGGLE_EDUCATION_MOBILE, SUPER_REACTION_TOGGLE_EDUCATION_DESKTOP,
|
||||
FRIEND_FINDER_CONTACTS_IN_NOTIFICATIONS, VOICE_CALL_BG_PICKER_NEW_BADGE, WHATS_NEW_TENURE_BADGE_REWARD,
|
||||
APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER, APP_LAUNCHER_ONBOARDING_APPS_BANNER,
|
||||
APP_LAUNCHER_ONBOARDING_BOTS_BANNER, CHANNEL_LIST_CLAN_ADMIN_UPSELL, GUILD_LIST_CLAN_ADMIN_UPSELL,
|
||||
BRAND_REFRESH_NEW_BADGE, BRAND_REFRESH_CLIENT_THEME_BADGE, APP_LAUNCHER_USER_APP_BETA_NOTICE,
|
||||
QUEST_HOME_FRIENDS_LIST_NEW_BADGE, QUEST_HOME_ENTRYPOINT_TAKEOVER_BADGE, WHATS_NEW_APP_STYLES_JUNE_2024_FLIP,
|
||||
WHATS_NEW_REFERRAL_PROGRAM_FLIP, WHATS_NEW_APP_STYLES_JUNE_2024_NITRO_BADGE,
|
||||
WHATS_NEW_REFERRAL_PROGRAM_NITRO_BADGE, WHATS_NEW_SERVER_PROFILE_FLIP, WHATS_NEW_SERVER_PROFILE_BADGE,
|
||||
ICYMI_ALPHA_UPSELL, PASSWORDLESS_UPSELL, CHANNEL_LINKED_LOBBY_EDUCATION_TOOLTIP, REVERSE_TRIAL_NITRO_TAB_BADGE,
|
||||
REVERSE_TRIAL_STREAM_POPOUT, REVERSE_TRIAL_EMOJI_BUTTON, REVERSE_TRIAL_EMOJI_PICKER,
|
||||
TRIAL_FOR_ALL_INITIAL_UPSELL, TRIAL_FOR_ALL_MOBILE_SETTINGS_NOTICE, USER_PROFILE_PREMIUM_AND_SHOP_ENTRY_POINTS,
|
||||
FRACTIONAL_NITRO_DURATION_LEFT_PILL, RESTRICTED_ACCOUNTS_SETTING_NOTICE, SOUNDMOJI_BADGE,
|
||||
TRIAL_NUX_EMOJI_BUTTON, TRIAL_NUX_EMOJI_PICKER, TRIAL_NUX_STREAM_COACH_MARK,
|
||||
VIRTUAL_CURRENCY_ONBOARDING_ANNOUNCEMENT_MODAL, VIRTUAL_CURRENCY_DISCOVERY_ONBOARDING_COACHMARK,
|
||||
VIRTUAL_CURRENCY_SHOP_ONBOARDING_COACHMARK, GUILD_POWERUPS_OVERVIEW_SIDEBAR_COACHMARK,
|
||||
GUILD_POWERUPS_OVERVIEW_SIDEBAR_VIDEO_CARD, RECENT_AVATARS_SETTINGS_PROFILE_PAGE_NEW_BADGE,
|
||||
REPORT_TO_MOD_NEW_TAG, VIRTUAL_CURRENCY_MOBILE_ONBOARDING_PILL, OVERLAY_OOP_SETTINGS_NUX,
|
||||
OVERLAY_OOP_WELCOME_BACKGROUND_NUX, OVERLAY_OOP_WELCOME_BACKGROUND_SWITCH_FROM_IP_NUX, OVERLAY_OOP_WELCOME_NUX,
|
||||
OVERLAY_OOP_WELCOME_SWITCH_FROM_IP_NUX, REVERSE_TRIAL_NITRO_TAB_BADGE_V2, ML_REVERSE_TRIAL_UPSELL_MODAL,
|
||||
ML_REVERSE_TRIAL_FOLLOWUP_UPSELL_MODAL, RING_USER_TO_VC_NEW_BADGE, DESKTOP_REFRESH_ONBOARDING_MODAL,
|
||||
CUSTOM_THEME_ENTRYPOINT_NEW_BADGE, GUILD_SETTINGS_GUILD_THEME_NEW_BADGE, CUSTOM_THEME_ENTRYPOINT_GRADIENT,
|
||||
MOBILE_BOGO_PROMOTION_ACTION_SHEET, GOOGLE_PLAY_PRICE_CHANGE_ACTION_SHEET,
|
||||
RECENT_AVATARS_SETTINGS_MENU_NEW_BADGE, DISPLAY_NAME_STYLES_MOBILE_NEW_BADGE, BOGO_2025_NITRO_TAB_BADGE,
|
||||
BOGO_2025_ANNOUNCEMENT_MODAL, COLLECTIBLES_SHOP_ENTRY_MARKETING, NAGBAR_NOTICE_OFFER_EXPIRING,
|
||||
CLOUD_PLAY_NEW_BADGE, VANITY_URL_POWERUP_ROLLBACK_NOTIFICATION, CUSTOM_THEMES_NITRO_HOME_TILE,
|
||||
CHURN_DISCOUNT_PREMIUM_TAB_BADGE, CHURN_DISCOUNT_PREMIUM_TAB_COACHMARK, DOUBLE_TAP_TO_REACT_UPSELL,
|
||||
WISHLIST_NUX_TOOLTIP_AND_MODAL, WISHLIST_MOBILE_NUX_ACTION_SHEET, ACCOUNT_LINK_INVITE_FRIENDS,
|
||||
GAME_SERVER_HOSTING_PORTKEY_TOS, GAME_SERVER_HOSTING_NEW_BADGE, GAME_SERVER_GAME_DETECTION_UPSELL_NEW_BADGE,
|
||||
APPLICATION_WIDGET_EDIT_PROFILE_NEW_BADGE, APPLICATION_WIDGET_EMPTY_STATE_CARD_CONNECT,
|
||||
APPLICATION_WIDGET_EMPTY_STATE_CARD_ADD_WIDGET, APPLICATION_WIDGET_WUWA_SUGGESTED_WIDGET,
|
||||
PREMIUM_TAB_MARKETING_MOMENT_OFFER_BADGE, PREMIUM_MARKETING_MOMENT_ANNOUNCEMENT_UPSELL,
|
||||
PREMIUM_MARKETING_MOMENT_USER_SETTINGS_OFFER_BADGE, PREMIUM_MARKETING_MOMENT_REMINDER_UPSELL,
|
||||
PREMIUM_MARKETING_MOMENT_NAGBAR_UPSELL, NITRO_TAB_BADGE_OFFER_REMINDER, CHECKPOINT_2025_BOTTOM_SHEET,
|
||||
DISCOUNT_OFFER_ACTION_SHEET, MOBILE_PREMIUM_TRIAL_OFFER_ACTION_SHEET, COLLECTIBLES_SHOP_WIDE_BANNER,
|
||||
CHECKPOINT_2025_DESKTOP_UPSELL, GAME_SHOP_NEW_BADGE, GAME_SHOP_RTC_GIFTING_NEW_BADGE, ORB_RENTAL_NEW_BADGE,
|
||||
TRIAL_FOR_ALL_2026_SETTINGS_BADGE, GAME_SHOP_ORBS_REWARD_BANNER, SLAYER_STOREFRONT_ORBS_REWARD_WISHLIST_UPSELL,
|
||||
SLAYER_STOREFRONT_VC_GIFTING_STREAM_HEADER_NEW_BADGE, SLAYER_STOREFRONT_VC_GIFTING_PANEL_APP_WIDGET_CTA,
|
||||
FAVORITES_SERVER_ONBOARDING_INTRO, FAVORITES_GUILD_NEW_BADGE, GIFT_INTENT_MESSAGE, EMPTY_GAME_SERVER_TAB,
|
||||
USER_PROFILE_WISHLIST_RECOMMENDATIONS, QUEST_ACTIVITY_HEADER_INTRO, FIRST_BOOSTER_UPSELL_OVERSEER,
|
||||
MOBILE_MULTI_GUILD_CREATE_UPSELL_ANIMATION, APRIL_FOOLS_2026_COACHMARK, PRIVATE_PROFILE_INLINE_NOTICE,
|
||||
QUEST_HOME_NEW_QUEST_BADGE, PIN_CHANNEL_NEW_BADGE, PREMIUM_GROUP_GIFT_SELECTION_UPSELL,
|
||||
COLLECTIBLES_PROFILE_FRAMES_ANNOUNCEMENT, PROFILE_FRAME_USER_PROFILE_NEW_BADGE,
|
||||
PROFILE_FRAMES_NITRO_TAB_NEW_BADGE, GUILD_THEME_NUX, BOUNTIES_SWIPE_UP_NUX,
|
||||
IN_APP_NOTIFICATION_EXPAND_NUX} = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
|
||||
const set = new Set([APPLICATION_COMMAND_TOOLTIP, NOW_PLAYING_CONSENT_CARD, GUILD_INSIGHTS_ACCESS_RATE_NEW,
|
||||
FORUM_CHANNEL_UPSELL_MODAL, COMMANDS_MIGRATION_UPSELL_MODAL, CHANNEL_BROWSER_NUX,
|
||||
BLACK_FRIDAY_2022_BOGO_ANNOUNCEMENT_MODAL, GG_ANNOUNCEMENT, GUILD_ONBOARDING_UPSELL_MODAL,
|
||||
CLIENT_THEMES_SPARKLE_PREVIEW, CLIENT_THEMES_APPEARANCE_SETTINGS_NEW_BADGE, QUEST_1_COMPLETION_TOOLTIP,
|
||||
GUEST_VOICE_INVITES_MENU_ITEM_NEW_BADGE, CUSTOM_CALL_SOUNDS_PICKER_UPSELL,
|
||||
CLIPS_ONBOARDING_CLIP_BUTTON_COACHMARK, CUSTOM_APP_ICONS_NEW_BADGE, RECURRING_CONTACT_SYNC_PROMPT,
|
||||
NUX_GUILD_CHANNEL_EXPLAINER, SUPER_REACTION_TOGGLE_EDUCATION_MOBILE, SUPER_REACTION_TOGGLE_EDUCATION_DESKTOP,
|
||||
FRIEND_FINDER_CONTACTS_IN_NOTIFICATIONS, VOICE_CALL_BG_PICKER_NEW_BADGE, WHATS_NEW_TENURE_BADGE_REWARD,
|
||||
APP_LAUNCHER_ONBOARDING_ACTIVITIES_BANNER, APP_LAUNCHER_ONBOARDING_APPS_BANNER,
|
||||
APP_LAUNCHER_ONBOARDING_BOTS_BANNER, CHANNEL_LIST_CLAN_ADMIN_UPSELL, GUILD_LIST_CLAN_ADMIN_UPSELL,
|
||||
BRAND_REFRESH_NEW_BADGE, BRAND_REFRESH_CLIENT_THEME_BADGE, APP_LAUNCHER_USER_APP_BETA_NOTICE,
|
||||
QUEST_HOME_FRIENDS_LIST_NEW_BADGE, QUEST_HOME_ENTRYPOINT_TAKEOVER_BADGE, WHATS_NEW_APP_STYLES_JUNE_2024_FLIP,
|
||||
WHATS_NEW_REFERRAL_PROGRAM_FLIP, WHATS_NEW_APP_STYLES_JUNE_2024_NITRO_BADGE,
|
||||
WHATS_NEW_REFERRAL_PROGRAM_NITRO_BADGE, WHATS_NEW_SERVER_PROFILE_FLIP, WHATS_NEW_SERVER_PROFILE_BADGE,
|
||||
ICYMI_ALPHA_UPSELL, PASSWORDLESS_UPSELL, CHANNEL_LINKED_LOBBY_EDUCATION_TOOLTIP, REVERSE_TRIAL_NITRO_TAB_BADGE,
|
||||
REVERSE_TRIAL_STREAM_POPOUT, REVERSE_TRIAL_EMOJI_BUTTON, REVERSE_TRIAL_EMOJI_PICKER,
|
||||
TRIAL_FOR_ALL_INITIAL_UPSELL, TRIAL_FOR_ALL_MOBILE_SETTINGS_NOTICE, USER_PROFILE_PREMIUM_AND_SHOP_ENTRY_POINTS,
|
||||
FRACTIONAL_NITRO_DURATION_LEFT_PILL, RESTRICTED_ACCOUNTS_SETTING_NOTICE, SOUNDMOJI_BADGE,
|
||||
TRIAL_NUX_EMOJI_BUTTON, TRIAL_NUX_EMOJI_PICKER, TRIAL_NUX_STREAM_COACH_MARK,
|
||||
VIRTUAL_CURRENCY_ONBOARDING_ANNOUNCEMENT_MODAL, VIRTUAL_CURRENCY_DISCOVERY_ONBOARDING_COACHMARK,
|
||||
VIRTUAL_CURRENCY_SHOP_ONBOARDING_COACHMARK, GUILD_POWERUPS_OVERVIEW_SIDEBAR_COACHMARK,
|
||||
GUILD_POWERUPS_OVERVIEW_SIDEBAR_VIDEO_CARD, RECENT_AVATARS_SETTINGS_PROFILE_PAGE_NEW_BADGE,
|
||||
REPORT_TO_MOD_NEW_TAG, VIRTUAL_CURRENCY_MOBILE_ONBOARDING_PILL, OVERLAY_OOP_SETTINGS_NUX,
|
||||
OVERLAY_OOP_WELCOME_BACKGROUND_NUX, OVERLAY_OOP_WELCOME_BACKGROUND_SWITCH_FROM_IP_NUX, OVERLAY_OOP_WELCOME_NUX,
|
||||
OVERLAY_OOP_WELCOME_SWITCH_FROM_IP_NUX, REVERSE_TRIAL_NITRO_TAB_BADGE_V2, ML_REVERSE_TRIAL_UPSELL_MODAL,
|
||||
ML_REVERSE_TRIAL_FOLLOWUP_UPSELL_MODAL, RING_USER_TO_VC_NEW_BADGE, DESKTOP_REFRESH_ONBOARDING_MODAL,
|
||||
CUSTOM_THEME_ENTRYPOINT_NEW_BADGE, GUILD_SETTINGS_GUILD_THEME_NEW_BADGE, CUSTOM_THEME_ENTRYPOINT_GRADIENT,
|
||||
MOBILE_BOGO_PROMOTION_ACTION_SHEET, GOOGLE_PLAY_PRICE_CHANGE_ACTION_SHEET,
|
||||
RECENT_AVATARS_SETTINGS_MENU_NEW_BADGE, DISPLAY_NAME_STYLES_MOBILE_NEW_BADGE, BOGO_2025_NITRO_TAB_BADGE,
|
||||
BOGO_2025_ANNOUNCEMENT_MODAL, COLLECTIBLES_SHOP_ENTRY_MARKETING, NAGBAR_NOTICE_OFFER_EXPIRING,
|
||||
CLOUD_PLAY_NEW_BADGE, VANITY_URL_POWERUP_ROLLBACK_NOTIFICATION, CUSTOM_THEMES_NITRO_HOME_TILE,
|
||||
CHURN_DISCOUNT_PREMIUM_TAB_BADGE, CHURN_DISCOUNT_PREMIUM_TAB_COACHMARK, DOUBLE_TAP_TO_REACT_UPSELL,
|
||||
WISHLIST_NUX_TOOLTIP_AND_MODAL, WISHLIST_MOBILE_NUX_ACTION_SHEET, ACCOUNT_LINK_INVITE_FRIENDS,
|
||||
GAME_SERVER_HOSTING_PORTKEY_TOS, GAME_SERVER_HOSTING_NEW_BADGE, GAME_SERVER_GAME_DETECTION_UPSELL_NEW_BADGE,
|
||||
APPLICATION_WIDGET_EDIT_PROFILE_NEW_BADGE, APPLICATION_WIDGET_EMPTY_STATE_CARD_CONNECT,
|
||||
APPLICATION_WIDGET_EMPTY_STATE_CARD_ADD_WIDGET, APPLICATION_WIDGET_WUWA_SUGGESTED_WIDGET,
|
||||
PREMIUM_TAB_MARKETING_MOMENT_OFFER_BADGE, PREMIUM_MARKETING_MOMENT_ANNOUNCEMENT_UPSELL,
|
||||
PREMIUM_MARKETING_MOMENT_USER_SETTINGS_OFFER_BADGE, PREMIUM_MARKETING_MOMENT_REMINDER_UPSELL,
|
||||
PREMIUM_MARKETING_MOMENT_NAGBAR_UPSELL, NITRO_TAB_BADGE_OFFER_REMINDER, CHECKPOINT_2025_BOTTOM_SHEET,
|
||||
DISCOUNT_OFFER_ACTION_SHEET, MOBILE_PREMIUM_TRIAL_OFFER_ACTION_SHEET, COLLECTIBLES_SHOP_WIDE_BANNER,
|
||||
CHECKPOINT_2025_DESKTOP_UPSELL, GAME_SHOP_NEW_BADGE, GAME_SHOP_RTC_GIFTING_NEW_BADGE, ORB_RENTAL_NEW_BADGE,
|
||||
TRIAL_FOR_ALL_2026_SETTINGS_BADGE, GAME_SHOP_ORBS_REWARD_BANNER, SLAYER_STOREFRONT_ORBS_REWARD_WISHLIST_UPSELL,
|
||||
SLAYER_STOREFRONT_VC_GIFTING_STREAM_HEADER_NEW_BADGE, SLAYER_STOREFRONT_VC_GIFTING_PANEL_APP_WIDGET_CTA,
|
||||
FAVORITES_SERVER_ONBOARDING_INTRO, FAVORITES_GUILD_NEW_BADGE, GIFT_INTENT_MESSAGE, EMPTY_GAME_SERVER_TAB,
|
||||
USER_PROFILE_WISHLIST_RECOMMENDATIONS, QUEST_ACTIVITY_HEADER_INTRO, FIRST_BOOSTER_UPSELL_OVERSEER,
|
||||
MOBILE_MULTI_GUILD_CREATE_UPSELL_ANIMATION, APRIL_FOOLS_2026_COACHMARK, PRIVATE_PROFILE_INLINE_NOTICE,
|
||||
QUEST_HOME_NEW_QUEST_BADGE, PIN_CHANNEL_NEW_BADGE, PREMIUM_GROUP_GIFT_SELECTION_UPSELL,
|
||||
COLLECTIBLES_PROFILE_FRAMES_ANNOUNCEMENT, PROFILE_FRAME_USER_PROFILE_NEW_BADGE,
|
||||
PROFILE_FRAMES_NITRO_TAB_NEW_BADGE, GUILD_THEME_NUX, BOUNTIES_SWIPE_UP_NUX, IN_APP_NOTIFICATION_EXPAND_NUX]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/dismissible_content/DismissibleContentFatigueConfig.tsx');
|
||||
exports.CONTENT_TYPES_WITH_BYPASS_FATIGUE = set;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
/* Metro module 12715; source: modules/dismissible_content/DismissibleContentFrameworkActionCreators.tsx; dependencies: [694, 2] */
|
||||
function _fun97375(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97375, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12905:6, offset: 0x0217e37b, size: 164 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/dismissible_content/DismissibleContentFrameworkActionCreators.tsx');
|
||||
exports.handleDCShownToUser = handleDCShownToUser;
|
||||
exports.handleDCDismissed = handleDCDismissed;
|
||||
exports.resetDismissibleContentFrameworkStore = resetDismissibleContentFrameworkStore;
|
||||
exports.overrideDismissibleContentFramework = overrideDismissibleContentFramework;
|
||||
exports.overrideNewUserMinAgeRequired = overrideNewUserMinAgeRequired;
|
||||
exports.overrideDCFLastDCDismissed = overrideDCFLastDCDismissed;
|
||||
}
|
||||
|
||||
function handleDCShownToUser(a0, a1) { // fn#97376, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12905:221, offset: 0x0217e41f, size: 61 bytes, params: 3, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'DCF_HANDLE_DC_SHOWN',
|
||||
dismissibleContent: a0, guildId: a1});
|
||||
}
|
||||
|
||||
function handleDCDismissed(a0, a1) { // fn#97377, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12905:328, offset: 0x0217e45c, size: 61 bytes, params: 3, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'DCF_HANDLE_DC_DISMISSED',
|
||||
dismissibleContent: a0, guildId: a1});
|
||||
}
|
||||
|
||||
function resetDismissibleContentFrameworkStore() { // fn#97378, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12905:459, offset: 0x0217e499, size: 48 bytes, params: 1, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'DCF_RESET'});
|
||||
}
|
||||
|
||||
function overrideDismissibleContentFramework(a0) { // fn#97379, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12905:540, offset: 0x0217e4c9, size: 55 bytes, params: 2, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'DCF_DAILY_CAP_OVERRIDE', value: a0});
|
||||
}
|
||||
|
||||
function overrideNewUserMinAgeRequired(a0) { // fn#97380, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12905:635, offset: 0x0217e500, size: 55 bytes, params: 2, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'DCF_NEW_USER_MIN_AGE_REQUIRED_OVERRIDE',
|
||||
value: a0});
|
||||
}
|
||||
|
||||
function overrideDCFLastDCDismissed(a0, a1) { // fn#97381, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12905:743, offset: 0x0217e537, size: 63 bytes, params: 3, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'DCF_OVERRIDE_LAST_DC_DISMISSED',
|
||||
dismissibleContent: a0, guildId: a1});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,539 @@
|
||||
/* Metro module 1369; source: modules/dismissible_content/DismissibleContentFrameworkStore.tsx; dependencies: [6, 7, 15, 17, 18, 661, 1370, 1366, 683, 566, 694, 2] */
|
||||
function _fun15739(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#15739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1496:6, offset: 0x00e3dc54, size: 504 bytes, params: 8, frame: 20
|
||||
var object2;
|
||||
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 */;
|
||||
const env0_8 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
object2 = {'numberOfDCsShownToday': 0, 'dailyCapPeriodStart': null, 'dismissibleContentSeenDuringSession': null,
|
||||
'dailyCapOverridden': false, 'newUserMinAgeRequiredOverridden': false, 'renderedAtTimestamps': null,
|
||||
'lastDismissed': null};
|
||||
const Set = global.Set;
|
||||
object2.dismissibleContentSeenDuringSession = new Set();
|
||||
let Map = global.Map;
|
||||
let map = new Map();
|
||||
object2.renderedAtTimestamps = map;
|
||||
Map = global.Map;
|
||||
object2.seenForGuildId = new Map();
|
||||
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
|
||||
map = _fun15744(PersistedStore);
|
||||
map.displayName = 'DismissibleContentFrameworkStore';
|
||||
map.persistKey = 'DismissibleContentFrameworkStore';
|
||||
map.migrations = [function(a0) {
|
||||
var r1;
|
||||
var object = {};
|
||||
copyDataProperties(object, a0, r1);
|
||||
return object;
|
||||
}];
|
||||
map = new map(importDefault(694) /* metro dependency 694: Dispatcher */, {LOGOUT: LOGOUT_15754,
|
||||
DCF_DAILY_CAP_OVERRIDE: DCF_DAILY_CAP_OVERRIDE,
|
||||
DCF_NEW_USER_MIN_AGE_REQUIRED_OVERRIDE: DCF_NEW_USER_MIN_AGE_REQUIRED_OVERRIDE,
|
||||
DCF_HANDLE_DC_SHOWN: DCF_HANDLE_DC_SHOWN_15757, DCF_HANDLE_DC_DISMISSED: DCF_HANDLE_DC_DISMISSED_15758,
|
||||
DCF_OVERRIDE_LAST_DC_DISMISSED: DCF_OVERRIDE_LAST_DC_DISMISSED, DCF_RESET: DCF_RESET});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/dismissible_content/DismissibleContentFrameworkStore.tsx');
|
||||
exports.default = map;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_15740() { // fn#15740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1496:173, offset: 0x00e3de4c, size: 94 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_15740_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function hasAlreadySeenDCForGuild(a0, a1) { // fn#15743, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1496:595, offset: 0x00e3deaa, size: 50 bytes, params: 3, frame: 12
|
||||
var r0;
|
||||
var value;
|
||||
const value2 = env0_9.seenForGuildId.get(a1) != null;
|
||||
if (value2) {
|
||||
value = value.has(a0);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun15744(a0) { // fn#15744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1496:695, offset: 0x00e3dedc, size: 208 bytes, params: 2, frame: 16
|
||||
const closure = DismissibleContentFrameworkStore;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, [{key: 'initialize', value: value_15746}, {key: 'getState', value: value_15747},
|
||||
{key: 'dailyCapOverridden', get: get_15748}, {key: 'newUserMinAgeRequiredOverridden', get: get_15749},
|
||||
{key: 'lastDismissed', get: get_15750}, {key: 'getRenderedAtTimestamp', value: value_15751},
|
||||
{key: 'hasUserHitDCCap', value: value_15752}]);
|
||||
}
|
||||
|
||||
function LOGOUT_15754() { // fn#15754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1496:2500, offset: 0x00e3e212, size: 131 bytes, params: 1, frame: 14
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, env0_9, undefined);
|
||||
const Set = global.Set;
|
||||
const value2 = Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
const set = new Set();
|
||||
object2['dismissibleContentSeenDuringSession'] = set instanceof Object ? set : value2;
|
||||
let Map = global.Map;
|
||||
const value4 = Object.create(Map.prototype, {constructor: {value: Map}});
|
||||
let map = new Map();
|
||||
object2['renderedAtTimestamps'] = map instanceof Object ? map : value4;
|
||||
Map = global.Map;
|
||||
const value6 = Object.create(Map.prototype, {constructor: {value: Map}});
|
||||
map = new Map();
|
||||
object2['seenForGuildId'] = map instanceof Object ? map : value6;
|
||||
}
|
||||
|
||||
function DCF_DAILY_CAP_OVERRIDE({value}) { // fn#15755, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1496:2653, offset: 0x00e3e295, size: 25 bytes, params: 2, frame: 2
|
||||
env0_9.dailyCapOverridden = value;
|
||||
}
|
||||
|
||||
function DCF_NEW_USER_MIN_AGE_REQUIRED_OVERRIDE({value}) { // fn#15756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1496:2759, offset: 0x00e3e2ae, size: 25 bytes, params: 2, frame: 2
|
||||
env0_9.newUserMinAgeRequiredOverridden = value;
|
||||
}
|
||||
|
||||
function DCF_HANDLE_DC_SHOWN_15757({dismissibleContent, guildId}) { // fn#15757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1496:2872, offset: 0x00e3e2c7, size: 531 bytes, params: 2, frame: 19
|
||||
var r3;
|
||||
var r4;
|
||||
var dismissibleContentSeenDuringSession;
|
||||
var binding;
|
||||
var seenForGuildId;
|
||||
var numberOfDCsShownToday;
|
||||
const Date = global.Date;
|
||||
let date = new Date();
|
||||
const renderedAtTimestamps = env0_9.renderedAtTimestamps;
|
||||
const set = renderedAtTimestamps.set;
|
||||
const getTime = date.getTime;
|
||||
Reflect.apply(set, renderedAtTimestamps, [dismissibleContent, Reflect.apply(getTime, date, [])]);
|
||||
const CONTENT_TYPES_WITH_BYPASS_FATIGUE = (require(1370) /* metro dependency 1370: DismissibleContentFatigueConfig */).CONTENT_TYPES_WITH_BYPASS_FATIGUE;
|
||||
if (!CONTENT_TYPES_WITH_BYPASS_FATIGUE.has(dismissibleContent)) {
|
||||
if (!env0_9.dailyCapOverridden) {
|
||||
date = require(1366) /* metro dependency 1366: DismissibleContentTypes */;
|
||||
date = date.isGuildDismissibleContent(dismissibleContent);
|
||||
r3 = date && guildId != null;
|
||||
if (r3) {
|
||||
if (r3) {
|
||||
if (!hasAlreadySeenDCForGuild(dismissibleContent, guildId)) {
|
||||
binding = env0_9;
|
||||
if (r3) {
|
||||
seenForGuildId = binding.seenForGuildId;
|
||||
r4 = seenForGuildId.get(guildId) ?? new global.Set();
|
||||
r4.add(dismissibleContent);
|
||||
seenForGuildId = env0_9.seenForGuildId;
|
||||
seenForGuildId.set(guildId, r4);
|
||||
} else {
|
||||
binding.dismissibleContentSeenDuringSession.add(dismissibleContent);
|
||||
}
|
||||
if (env0_9.dailyCapPeriodStart == null) {
|
||||
date = new global.Date();
|
||||
date.setHours(0, 0, 0, 0);
|
||||
env0_9.dailyCapPeriodStart = date.getTime();
|
||||
}
|
||||
binding = env0_9;
|
||||
numberOfDCsShownToday = binding.numberOfDCsShownToday;
|
||||
binding.numberOfDCsShownToday = numberOfDCsShownToday + 1;
|
||||
numberOfDCsShownToday = env0_9.numberOfDCsShownToday;
|
||||
if (numberOfDCsShownToday > 3) {
|
||||
date = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
date.track(AnalyticEvents.DCF_CAP_EXCEEDED, {cap_type: 'daily_cap',
|
||||
dismissible_content: dismissibleContent,
|
||||
shown_dcs: env0_9.numberOfDCsShownToday});
|
||||
}
|
||||
}
|
||||
} else {
|
||||
binding = env0_9;
|
||||
if (r3) {
|
||||
seenForGuildId = binding.seenForGuildId;
|
||||
r4 = seenForGuildId.get(guildId) ?? new global.Set();
|
||||
r4.add(dismissibleContent);
|
||||
seenForGuildId = env0_9.seenForGuildId;
|
||||
seenForGuildId.set(guildId, r4);
|
||||
} else {
|
||||
binding.dismissibleContentSeenDuringSession.add(dismissibleContent);
|
||||
}
|
||||
if (env0_9.dailyCapPeriodStart == null) {
|
||||
date = new global.Date();
|
||||
date.setHours(0, 0, 0, 0);
|
||||
env0_9.dailyCapPeriodStart = date.getTime();
|
||||
}
|
||||
binding = env0_9;
|
||||
numberOfDCsShownToday = binding.numberOfDCsShownToday;
|
||||
binding.numberOfDCsShownToday = numberOfDCsShownToday + 1;
|
||||
numberOfDCsShownToday = env0_9.numberOfDCsShownToday;
|
||||
if (numberOfDCsShownToday > 3) {
|
||||
date = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
date.track(AnalyticEvents.DCF_CAP_EXCEEDED, {cap_type: 'daily_cap',
|
||||
dismissible_content: dismissibleContent,
|
||||
shown_dcs: env0_9.numberOfDCsShownToday});
|
||||
}
|
||||
}
|
||||
} else {
|
||||
dismissibleContentSeenDuringSession = env0_9.dismissibleContentSeenDuringSession;
|
||||
if (!dismissibleContentSeenDuringSession.has(dismissibleContent)) {
|
||||
if (r3) {
|
||||
if (!hasAlreadySeenDCForGuild(dismissibleContent, guildId)) {
|
||||
binding = env0_9;
|
||||
if (r3) {
|
||||
seenForGuildId = binding.seenForGuildId;
|
||||
r4 = seenForGuildId.get(guildId) ?? new global.Set();
|
||||
r4.add(dismissibleContent);
|
||||
seenForGuildId = env0_9.seenForGuildId;
|
||||
seenForGuildId.set(guildId, r4);
|
||||
} else {
|
||||
binding.dismissibleContentSeenDuringSession.add(dismissibleContent);
|
||||
}
|
||||
if (env0_9.dailyCapPeriodStart == null) {
|
||||
date = new global.Date();
|
||||
date.setHours(0, 0, 0, 0);
|
||||
env0_9.dailyCapPeriodStart = date.getTime();
|
||||
}
|
||||
binding = env0_9;
|
||||
numberOfDCsShownToday = binding.numberOfDCsShownToday;
|
||||
binding.numberOfDCsShownToday = numberOfDCsShownToday + 1;
|
||||
numberOfDCsShownToday = env0_9.numberOfDCsShownToday;
|
||||
if (numberOfDCsShownToday > 3) {
|
||||
date = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
date.track(AnalyticEvents.DCF_CAP_EXCEEDED, {cap_type: 'daily_cap',
|
||||
dismissible_content: dismissibleContent,
|
||||
shown_dcs: env0_9.numberOfDCsShownToday});
|
||||
}
|
||||
}
|
||||
} else {
|
||||
binding = env0_9;
|
||||
if (r3) {
|
||||
seenForGuildId = binding.seenForGuildId;
|
||||
r4 = seenForGuildId.get(guildId) ?? new global.Set();
|
||||
r4.add(dismissibleContent);
|
||||
seenForGuildId = env0_9.seenForGuildId;
|
||||
seenForGuildId.set(guildId, r4);
|
||||
} else {
|
||||
binding.dismissibleContentSeenDuringSession.add(dismissibleContent);
|
||||
}
|
||||
if (env0_9.dailyCapPeriodStart == null) {
|
||||
date = new global.Date();
|
||||
date.setHours(0, 0, 0, 0);
|
||||
env0_9.dailyCapPeriodStart = date.getTime();
|
||||
}
|
||||
binding = env0_9;
|
||||
numberOfDCsShownToday = binding.numberOfDCsShownToday;
|
||||
binding.numberOfDCsShownToday = numberOfDCsShownToday + 1;
|
||||
numberOfDCsShownToday = env0_9.numberOfDCsShownToday;
|
||||
if (numberOfDCsShownToday > 3) {
|
||||
date = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
date.track(AnalyticEvents.DCF_CAP_EXCEEDED, {cap_type: 'daily_cap',
|
||||
dismissible_content: dismissibleContent,
|
||||
shown_dcs: env0_9.numberOfDCsShownToday});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function DCF_HANDLE_DC_DISMISSED_15758({dismissibleContent, guildId}) { // fn#15758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1496:3652, offset: 0x00e3e4da, size: 61 bytes, params: 2, frame: 14
|
||||
env0_9.lastDismissed = {content: dismissibleContent, guildId: guildId};
|
||||
env0_9.renderedAtTimestamps.delete(dismissibleContent);
|
||||
}
|
||||
|
||||
function DCF_OVERRIDE_LAST_DC_DISMISSED({dismissibleContent, guildId}) { // fn#15759, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1496:3816, offset: 0x00e3e517, size: 53 bytes, params: 2, frame: 5
|
||||
env0_9.lastDismissed = dismissibleContent != null ? {content: dismissibleContent, guildId: guildId} : null;
|
||||
}
|
||||
|
||||
function DCF_RESET() { // fn#15760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1496:3948, offset: 0x00e3e54c, size: 115 bytes, params: 1, frame: 13
|
||||
env0_9.dailyCapPeriodStart = null;
|
||||
env0_9.numberOfDCsShownToday = 0;
|
||||
let binding = env0_9;
|
||||
const Set = global.Set;
|
||||
const value2 = Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
const set = new Set();
|
||||
binding.dismissibleContentSeenDuringSession = set instanceof Object ? set : value2;
|
||||
binding = env0_9;
|
||||
const Map = global.Map;
|
||||
const value4 = Object.create(Map.prototype, {constructor: {value: Map}});
|
||||
const map = new Map();
|
||||
binding.seenForGuildId = map instanceof Object ? map : value4;
|
||||
env0_9.lastDismissed = null;
|
||||
}
|
||||
|
||||
function value_15746(a0) { // fn#15746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1496:1085, offset: 0x00e3dfac, size: 199 bytes, params: 2, frame: 14
|
||||
var r3;
|
||||
var value;
|
||||
var binding;
|
||||
var dailyCapOverridden;
|
||||
var newUserMinAgeRequiredOverridden;
|
||||
if (a0 != null) {
|
||||
value = environment.__proto__;
|
||||
binding = env1_9;
|
||||
r3 = a0.numberOfDCsShownToday ?? 0;
|
||||
binding.numberOfDCsShownToday = r3;
|
||||
binding = env1_9;
|
||||
binding.dailyCapPeriodStart = a0.dailyCapPeriodStart;
|
||||
binding = env1_9;
|
||||
dailyCapOverridden = a0.dailyCapOverridden;
|
||||
r3 = dailyCapOverridden != null && dailyCapOverridden;
|
||||
binding.dailyCapOverridden = r3;
|
||||
binding = env1_9;
|
||||
newUserMinAgeRequiredOverridden = a0.newUserMinAgeRequiredOverridden;
|
||||
value = newUserMinAgeRequiredOverridden != null;
|
||||
binding.newUserMinAgeRequiredOverridden = value && newUserMinAgeRequiredOverridden;
|
||||
}
|
||||
value = environment.__proto__;
|
||||
binding = env1_9;
|
||||
const Set = global.Set;
|
||||
const value4 = Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
const set = new Set();
|
||||
binding.dismissibleContentSeenDuringSession = set instanceof Object ? set : value4;
|
||||
binding = env1_9;
|
||||
const Map = global.Map;
|
||||
const value6 = Object.create(Map.prototype, {constructor: {value: Map}});
|
||||
const map = new Map();
|
||||
binding.seenForGuildId = map instanceof Object ? map : value6;
|
||||
env1_9.lastDismissed = null;
|
||||
}
|
||||
|
||||
function get_15748() { // fn#15748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1496:1528, offset: 0x00e3e073, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_9.dailyCapOverridden;
|
||||
}
|
||||
|
||||
function get_15749() { // fn#15749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1496:1612, offset: 0x00e3e082, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_9.newUserMinAgeRequiredOverridden;
|
||||
}
|
||||
|
||||
function get_15750() { // fn#15750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1496:1691, offset: 0x00e3e091, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_9.lastDismissed;
|
||||
}
|
||||
|
||||
function value_15751(a0) { // fn#15751, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1496:1763, offset: 0x00e3e0a0, size: 28 bytes, params: 2, frame: 11
|
||||
return env1_9.renderedAtTimestamps.get(a0);
|
||||
}
|
||||
|
||||
function value_15752(a0, a1) { // fn#15752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1496:1843, offset: 0x00e3e0bc, size: 328 bytes, params: 3, frame: 18
|
||||
var r0;
|
||||
var value;
|
||||
var dismissibleContentSeenDuringSession;
|
||||
var date;
|
||||
var value2;
|
||||
if (a0 == null) {
|
||||
if (a0 == null) {
|
||||
date = new global.Date();
|
||||
date.setHours(0, 0, 0, 0);
|
||||
value2 = environment.__proto__;
|
||||
if (env1_9.dailyCapPeriodStart != null && env1_9.dailyCapPeriodStart < date.getTime()) {
|
||||
env1_9.numberOfDCsShownToday = 0;
|
||||
env1_9.dailyCapPeriodStart = null;
|
||||
}
|
||||
return env1_9.numberOfDCsShownToday >= 3;
|
||||
}
|
||||
value = a1 != null;
|
||||
if (value) {
|
||||
value = environment.__proto__;
|
||||
value = require(1366) /* metro dependency 1366: DismissibleContentTypes */;
|
||||
value = value.isGuildDismissibleContent(a0);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
if (r0) {
|
||||
if (a1 == null) {
|
||||
if (r0) {
|
||||
date = new global.Date();
|
||||
date.setHours(0, 0, 0, 0);
|
||||
value2 = environment.__proto__;
|
||||
if (env1_9.dailyCapPeriodStart != null && env1_9.dailyCapPeriodStart < date.getTime()) {
|
||||
env1_9.numberOfDCsShownToday = 0;
|
||||
env1_9.dailyCapPeriodStart = null;
|
||||
}
|
||||
return env1_9.numberOfDCsShownToday >= 3;
|
||||
}
|
||||
value = environment.__proto__;
|
||||
dismissibleContentSeenDuringSession = env1_9.dismissibleContentSeenDuringSession;
|
||||
if (dismissibleContentSeenDuringSession.has(a0)) {
|
||||
return false;
|
||||
}
|
||||
date = new global.Date();
|
||||
date.setHours(0, 0, 0, 0);
|
||||
value2 = environment.__proto__;
|
||||
if (env1_9.dailyCapPeriodStart != null && env1_9.dailyCapPeriodStart < date.getTime()) {
|
||||
env1_9.numberOfDCsShownToday = 0;
|
||||
env1_9.dailyCapPeriodStart = null;
|
||||
}
|
||||
return env1_9.numberOfDCsShownToday >= 3;
|
||||
}
|
||||
value = environment.__proto__;
|
||||
if (hasAlreadySeenDCForGuild(a0, a1)) {
|
||||
return false;
|
||||
}
|
||||
if (r0) {
|
||||
date = new global.Date();
|
||||
date.setHours(0, 0, 0, 0);
|
||||
value2 = environment.__proto__;
|
||||
if (env1_9.dailyCapPeriodStart != null && env1_9.dailyCapPeriodStart < date.getTime()) {
|
||||
env1_9.numberOfDCsShownToday = 0;
|
||||
env1_9.dailyCapPeriodStart = null;
|
||||
}
|
||||
return env1_9.numberOfDCsShownToday >= 3;
|
||||
}
|
||||
value = environment.__proto__;
|
||||
dismissibleContentSeenDuringSession = env1_9.dismissibleContentSeenDuringSession;
|
||||
if (dismissibleContentSeenDuringSession.has(a0)) {
|
||||
return false;
|
||||
}
|
||||
date = new global.Date();
|
||||
date.setHours(0, 0, 0, 0);
|
||||
value2 = environment.__proto__;
|
||||
if (env1_9.dailyCapPeriodStart != null && env1_9.dailyCapPeriodStart < date.getTime()) {
|
||||
env1_9.numberOfDCsShownToday = 0;
|
||||
env1_9.dailyCapPeriodStart = null;
|
||||
}
|
||||
return env1_9.numberOfDCsShownToday >= 3;
|
||||
}
|
||||
if (r0) {
|
||||
date = new global.Date();
|
||||
date.setHours(0, 0, 0, 0);
|
||||
value2 = environment.__proto__;
|
||||
if (env1_9.dailyCapPeriodStart != null && env1_9.dailyCapPeriodStart < date.getTime()) {
|
||||
env1_9.numberOfDCsShownToday = 0;
|
||||
env1_9.dailyCapPeriodStart = null;
|
||||
}
|
||||
return env1_9.numberOfDCsShownToday >= 3;
|
||||
}
|
||||
value = environment.__proto__;
|
||||
dismissibleContentSeenDuringSession = env1_9.dismissibleContentSeenDuringSession;
|
||||
if (dismissibleContentSeenDuringSession.has(a0)) {
|
||||
return false;
|
||||
}
|
||||
date = new global.Date();
|
||||
date.setHours(0, 0, 0, 0);
|
||||
value2 = environment.__proto__;
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
var CONTENT_TYPES_WITH_BYPASS_FATIGUE = (require(1370) /* metro dependency 1370: DismissibleContentFatigueConfig */).CONTENT_TYPES_WITH_BYPASS_FATIGUE;
|
||||
if (CONTENT_TYPES_WITH_BYPASS_FATIGUE.has(a0)) {
|
||||
return false;
|
||||
}
|
||||
if (env1_9.dailyCapOverridden) {
|
||||
return false;
|
||||
}
|
||||
if (a0 == null) {
|
||||
date = new global.Date();
|
||||
date.setHours(0, 0, 0, 0);
|
||||
value2 = environment.__proto__;
|
||||
if (env1_9.dailyCapPeriodStart != null && env1_9.dailyCapPeriodStart < date.getTime()) {
|
||||
env1_9.numberOfDCsShownToday = 0;
|
||||
env1_9.dailyCapPeriodStart = null;
|
||||
}
|
||||
return env1_9.numberOfDCsShownToday >= 3;
|
||||
}
|
||||
value = a1 != null;
|
||||
if (value) {
|
||||
value = environment.__proto__;
|
||||
value = require(1366) /* metro dependency 1366: DismissibleContentTypes */;
|
||||
value = value.isGuildDismissibleContent(a0);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
if (r0) {
|
||||
if (a1 == null) {
|
||||
if (r0) {
|
||||
date = new global.Date();
|
||||
date.setHours(0, 0, 0, 0);
|
||||
value2 = environment.__proto__;
|
||||
if (env1_9.dailyCapPeriodStart != null && env1_9.dailyCapPeriodStart < date.getTime()) {
|
||||
env1_9.numberOfDCsShownToday = 0;
|
||||
env1_9.dailyCapPeriodStart = null;
|
||||
}
|
||||
return env1_9.numberOfDCsShownToday >= 3;
|
||||
}
|
||||
value = environment.__proto__;
|
||||
dismissibleContentSeenDuringSession = env1_9.dismissibleContentSeenDuringSession;
|
||||
if (dismissibleContentSeenDuringSession.has(a0)) {
|
||||
return false;
|
||||
}
|
||||
date = new global.Date();
|
||||
date.setHours(0, 0, 0, 0);
|
||||
value2 = environment.__proto__;
|
||||
if (env1_9.dailyCapPeriodStart != null && env1_9.dailyCapPeriodStart < date.getTime()) {
|
||||
env1_9.numberOfDCsShownToday = 0;
|
||||
env1_9.dailyCapPeriodStart = null;
|
||||
}
|
||||
return env1_9.numberOfDCsShownToday >= 3;
|
||||
}
|
||||
value = environment.__proto__;
|
||||
if (hasAlreadySeenDCForGuild(a0, a1)) {
|
||||
return false;
|
||||
}
|
||||
if (r0) {
|
||||
date = new global.Date();
|
||||
date.setHours(0, 0, 0, 0);
|
||||
value2 = environment.__proto__;
|
||||
if (env1_9.dailyCapPeriodStart != null && env1_9.dailyCapPeriodStart < date.getTime()) {
|
||||
env1_9.numberOfDCsShownToday = 0;
|
||||
env1_9.dailyCapPeriodStart = null;
|
||||
}
|
||||
return env1_9.numberOfDCsShownToday >= 3;
|
||||
}
|
||||
value = environment.__proto__;
|
||||
dismissibleContentSeenDuringSession = env1_9.dismissibleContentSeenDuringSession;
|
||||
if (dismissibleContentSeenDuringSession.has(a0)) {
|
||||
return false;
|
||||
}
|
||||
date = new global.Date();
|
||||
date.setHours(0, 0, 0, 0);
|
||||
value2 = environment.__proto__;
|
||||
if (env1_9.dailyCapPeriodStart != null && env1_9.dailyCapPeriodStart < date.getTime()) {
|
||||
env1_9.numberOfDCsShownToday = 0;
|
||||
env1_9.dailyCapPeriodStart = null;
|
||||
}
|
||||
return env1_9.numberOfDCsShownToday >= 3;
|
||||
}
|
||||
if (r0) {
|
||||
date = new global.Date();
|
||||
date.setHours(0, 0, 0, 0);
|
||||
value2 = environment.__proto__;
|
||||
if (env1_9.dailyCapPeriodStart != null && env1_9.dailyCapPeriodStart < date.getTime()) {
|
||||
env1_9.numberOfDCsShownToday = 0;
|
||||
env1_9.dailyCapPeriodStart = null;
|
||||
}
|
||||
return env1_9.numberOfDCsShownToday >= 3;
|
||||
}
|
||||
value = environment.__proto__;
|
||||
dismissibleContentSeenDuringSession = env1_9.dismissibleContentSeenDuringSession;
|
||||
if (dismissibleContentSeenDuringSession.has(a0)) {
|
||||
return false;
|
||||
}
|
||||
date = new global.Date();
|
||||
date.setHours(0, 0, 0, 0);
|
||||
}
|
||||
if (env1_9.dailyCapPeriodStart != null && env1_9.dailyCapPeriodStart < value.getTime()) {
|
||||
env1_9.numberOfDCsShownToday = 0;
|
||||
env1_9.dailyCapPeriodStart = null;
|
||||
}
|
||||
return env1_9.numberOfDCsShownToday >= 3;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,435 @@
|
||||
/* Metro module 1371; source: modules/dismissible_content/DismissibleContentShownStateStore.tsx; dependencies: [6, 7, 15, 17, 18, 1372, 1373, 1374, 685, 1370, 690, 1375, 566, 694, 2] */
|
||||
function _fun15762(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#15762, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:6, offset: 0x00e3f3ab, size: 627 bytes, params: 8, frame: 21
|
||||
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 */;
|
||||
const loginRequiredActionStore = importDefault(1372) /* metro dependency 1372: LoginRequiredActionStore */;
|
||||
const userRequiredActionStore = importDefault(1373) /* metro dependency 1373: UserRequiredActionStore */;
|
||||
const TaskRunner = (require(1374) /* metro dependency 1374: TaskRunner */).TaskRunner;
|
||||
let taskRunner = new TaskRunner();
|
||||
let closure = initState;
|
||||
const env0_12 = (require(685) /* metro dependency 685 */).createWithEqualityFn(closure);
|
||||
const withoutContent = function(a0, a1) {
|
||||
if (a1 != null) {
|
||||
if (a1.content != null) {
|
||||
a0.currentlyShown.delete(a1.content);
|
||||
}
|
||||
if (a1.groupName != null) {
|
||||
a0.currentlyShownGroup.delete(a1.groupName);
|
||||
}
|
||||
if (a0.shownFatigableCandidate?.content === a1.content) {
|
||||
a0.shownFatigableCandidate = null;
|
||||
}
|
||||
}
|
||||
return a0;
|
||||
};
|
||||
const withoutCandidate = function(a0, a1) {
|
||||
a0.candidates.delete(a1.content);
|
||||
return a0;
|
||||
};
|
||||
const swapFatigableContent = function(a0, a1) {
|
||||
var withContentBinding = withContent;
|
||||
withoutContent(a0, a0.shownFatigableCandidate);
|
||||
withContentBinding(a0, a1);
|
||||
return a0;
|
||||
};
|
||||
closure = function(a0) {
|
||||
var Date = global.Date;
|
||||
var value2 = new Date();
|
||||
value2 = value2.getTime();
|
||||
return a0.shownFatigableCandidate == null && value2 - a0.lastWinnerTime < 3600000;
|
||||
};
|
||||
const closure2 = reset_15780;
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
_fun15783(Store).displayName = 'DismissibleContentShownStateStore';
|
||||
taskRunner = new taskRunner(importDefault(694) /* metro dependency 694: Dispatcher */,
|
||||
{CONNECTION_OPEN: function() {
|
||||
reset_15780();
|
||||
}, LOGOUT: function() {
|
||||
reset_15780();
|
||||
}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/dismissible_content/DismissibleContentShownStateStore.tsx');
|
||||
exports.default = useDismissibleContentShownStateStore;
|
||||
exports.isInCooldown = isInCooldown;
|
||||
exports.isStateInCooldown = closure;
|
||||
exports.addCandidateContent = addCandidateContent;
|
||||
exports.removeCandidateContent = removeCandidateContent;
|
||||
exports.getLastShownDismissibleContent = getLastShownDismissibleContent;
|
||||
exports.getCurrentFatigableWinner = getCurrentFatigableWinner;
|
||||
exports.isContentShown = isContentShown;
|
||||
exports.useIsContentShown = useIsContentShown;
|
||||
exports.useIsAnyContentShown = useIsAnyContentShown;
|
||||
exports.isAnyContentShown = isAnyContentShown;
|
||||
exports.getCurrentlyShownCounts = getCurrentlyShownCounts;
|
||||
exports.reset = closure2;
|
||||
exports.isPostConnectionOpen = isPostConnectionOpen;
|
||||
exports.dismissibleContentShownStateStore = taskRunner;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_15763() { // fn#15763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:168, offset: 0x00e3f61e, size: 94 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_15763_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function initState() { // fn#15766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:401, offset: 0x00e3f67c, size: 131 bytes, params: 1, frame: 11
|
||||
const object2 = {'candidates': null, 'shownFatigableCandidate': null, 'prevFatigableCandidate': null};
|
||||
const Map = global.Map;
|
||||
object2.candidates = new Map();
|
||||
object2.recentlyShown = [];
|
||||
let Set = global.Set;
|
||||
object2.currentlyShown = new Set();
|
||||
Set = global.Set;
|
||||
object2.currentlyShownGroup = new Set();
|
||||
object2.lastWinnerTime = 0;
|
||||
object2.postConnectionOpen = false;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function cloneState(a0) { // fn#15767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:650, offset: 0x00e3f6ff, size: 142 bytes, params: 2, frame: 15
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, a0, undefined);
|
||||
const Map = global.Map;
|
||||
object2['candidates'] = new Map(a0.candidates);
|
||||
let Set = global.Set;
|
||||
object2['currentlyShown'] = new Set(a0.currentlyShown);
|
||||
Set = global.Set;
|
||||
object2['currentlyShownGroup'] = new Set(a0.currentlyShownGroup);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function withContent(a0, a1) { // fn#15769, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:1063, offset: 0x00e3f7fc, size: 289 bytes, params: 3, frame: 15
|
||||
var currentlyShownGroup;
|
||||
var prevFatigableCandidate;
|
||||
var date;
|
||||
const env0_0 = a1;
|
||||
if (a1 != null) {
|
||||
var currentlyShown = a0.currentlyShown;
|
||||
var add = currentlyShown.add;
|
||||
var content = a1.content;
|
||||
Reflect.apply(add, currentlyShown, [content]);
|
||||
var value = a0.recentlyShown.filter(function(a0) {
|
||||
return a0 !== require.content;
|
||||
});
|
||||
var unshift = value.unshift;
|
||||
content = a1.content;
|
||||
Reflect.apply(unshift, value, [content]);
|
||||
value.splice(5);
|
||||
a0.recentlyShown = value;
|
||||
if (a1.groupName != null) {
|
||||
currentlyShownGroup = a0.currentlyShownGroup;
|
||||
currentlyShownGroup.add(a1.groupName);
|
||||
}
|
||||
value = undefined;
|
||||
var CONTENT_TYPES_WITH_BYPASS_FATIGUE = (require(1370) /* metro dependency 1370: DismissibleContentFatigueConfig */).CONTENT_TYPES_WITH_BYPASS_FATIGUE;
|
||||
var has = CONTENT_TYPES_WITH_BYPASS_FATIGUE.has;
|
||||
content = a1.content;
|
||||
if (!Reflect.apply(has, CONTENT_TYPES_WITH_BYPASS_FATIGUE, [content])) {
|
||||
a0.shownFatigableCandidate = a1;
|
||||
prevFatigableCandidate = a0.prevFatigableCandidate;
|
||||
if ((prevFatigableCandidate == null ? value : prevFatigableCandidate.content) !== a1.content) {
|
||||
a0.prevFatigableCandidate = a1;
|
||||
date = new global.Date();
|
||||
a0.lastWinnerTime = date.getTime();
|
||||
}
|
||||
}
|
||||
if (a1.onAdded != null) {
|
||||
a1.onAdded();
|
||||
}
|
||||
}
|
||||
return a0;
|
||||
}
|
||||
|
||||
function withUpdateWinner(a0) { // fn#15773, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:1709, offset: 0x00e3f976, size: 292 bytes, params: 2, frame: 18
|
||||
var r2;
|
||||
if (a0.candidates.size !== 0) {
|
||||
var Date = global.Date;
|
||||
var date = new Date();
|
||||
date = date.getTime();
|
||||
date = date - a0.lastWinnerTime > 300000;
|
||||
r2 = a0.prevFatigableCandidate != null && a0.candidates.has(a0.prevFatigableCandidate.content);
|
||||
r2 = r2 && a0.shownFatigableCandidate == null;
|
||||
if (r2) {
|
||||
if (date) {
|
||||
if (a0.shownFatigableCandidate == null) {
|
||||
if (!(env0_10.scheduled() || isStateInCooldown(a0))) {
|
||||
env0_10.schedule(_fun15774, 250);
|
||||
}
|
||||
} else if (date) {
|
||||
if (!(env0_10.scheduled() || isStateInCooldown(a0))) {
|
||||
env0_10.schedule(_fun15774, 250);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
env0_10.unschedule();
|
||||
swapFatigableContent(a0,
|
||||
a0.prevFatigableCandidate != null ? a0.candidates.get(a0.prevFatigableCandidate.content) : undefined);
|
||||
}
|
||||
} else if (a0.shownFatigableCandidate == null) {
|
||||
if (!(env0_10.scheduled() || isStateInCooldown(a0))) {
|
||||
env0_10.schedule(_fun15774, 250);
|
||||
}
|
||||
} else if (date) {
|
||||
if (!(env0_10.scheduled() || isStateInCooldown(a0))) {
|
||||
env0_10.schedule(_fun15774, 250);
|
||||
}
|
||||
}
|
||||
}
|
||||
return a0;
|
||||
}
|
||||
|
||||
function reset_15780() { // fn#15780, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:2693, offset: 0x00e3fc3c, size: 59 bytes, params: 1, frame: 13
|
||||
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun15781);
|
||||
env0_10.unschedule();
|
||||
}
|
||||
|
||||
function _fun15783(a0) { // fn#15783, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:2818, offset: 0x00e3fcab, size: 93 bytes, params: 2, frame: 16
|
||||
const closure = DismissibleContentShownStateStore;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, [{key: 'initialize', value: function() {
|
||||
var env0_0 = this;
|
||||
this.waitFor(LoginRequiredActionStore, UserRequiredActionStore);
|
||||
this.syncWith([LoginRequiredActionStore, UserRequiredActionStore], _fun15786);
|
||||
}}, {key: 'setHasRequiredAction', value: function() {
|
||||
env1_13 = importDefault(dependencyMap[11])(LoginRequiredActionStore, UserRequiredActionStore);
|
||||
}}]);
|
||||
}
|
||||
|
||||
function useDismissibleContentShownStateStore(a0, a1) { // fn#15790, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:3613, offset: 0x00e3fe0b, size: 23 bytes, params: 3, frame: 13
|
||||
return env0_12(a0, a1);
|
||||
}
|
||||
|
||||
function isInCooldown() { // fn#15791, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:3695, offset: 0x00e3fe22, size: 30 bytes, params: 1, frame: 11
|
||||
return isStateInCooldown(env0_12.getState());
|
||||
}
|
||||
|
||||
function addCandidateContent(a0) { // fn#15792, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:3793, offset: 0x00e3fe40, size: 89 bytes, params: 2, frame: 15
|
||||
const env0_0 = a0;
|
||||
const CONTENT_TYPES_WITH_BYPASS_FATIGUE = (require(1370) /* metro dependency 1370: DismissibleContentFatigueConfig */).CONTENT_TYPES_WITH_BYPASS_FATIGUE;
|
||||
const env0_1 = CONTENT_TYPES_WITH_BYPASS_FATIGUE.has(a0.content);
|
||||
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun15793);
|
||||
}
|
||||
|
||||
function removeCandidateContent(a0, a1) { // fn#15795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:4053, offset: 0x00e3ff0d, size: 59 bytes, params: 3, frame: 12
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun15796);
|
||||
}
|
||||
|
||||
function getLastShownDismissibleContent() { // fn#15798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:4273, offset: 0x00e3ffbd, size: 43 bytes, params: 1, frame: 10
|
||||
const binding = env0_12;
|
||||
const getState = binding.getState;
|
||||
const property = Reflect.apply(getState, binding, []).recentlyShown[0];
|
||||
const value = null;
|
||||
return value != property ? property : value;
|
||||
}
|
||||
|
||||
function getCurrentFatigableWinner() { // fn#15799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:4368, offset: 0x00e3ffe8, size: 53 bytes, params: 1, frame: 11
|
||||
const binding = env0_12;
|
||||
const getState = binding.getState;
|
||||
const shownFatigableCandidate = Reflect.apply(getState, binding, []).shownFatigableCandidate;
|
||||
const value = null;
|
||||
const content = value == shownFatigableCandidate ? undefined : shownFatigableCandidate.content;
|
||||
return value != content ? content : value;
|
||||
}
|
||||
|
||||
function isContentShown(a0) { // fn#15800, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:4488, offset: 0x00e4001d, size: 38 bytes, params: 2, frame: 11
|
||||
const binding = env0_12;
|
||||
const getState = binding.getState;
|
||||
return Reflect.apply(getState, binding, []).currentlyShown.has(a0);
|
||||
}
|
||||
|
||||
function useIsContentShown(a0) { // fn#15801, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:4547, offset: 0x00e40043, size: 30 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
return env0_12(_fun15802);
|
||||
}
|
||||
|
||||
function useIsAnyContentShown(a0) { // fn#15803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:4606, offset: 0x00e4007d, size: 30 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
return env0_12(function(a0) {
|
||||
return a0.some(_fun15805);
|
||||
});
|
||||
}
|
||||
|
||||
function isAnyContentShown(a0) { // fn#15806, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:4675, offset: 0x00e400d9, size: 50 bytes, params: 2, frame: 12
|
||||
const binding = env0_12;
|
||||
const getState = binding.getState;
|
||||
const env0_0 = Reflect.apply(getState, binding, []).currentlyShown;
|
||||
return a0.find(function(a0) {
|
||||
return currentlyShown.has(a0);
|
||||
});
|
||||
}
|
||||
|
||||
function getCurrentlyShownCounts() { // fn#15808, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:4770, offset: 0x00e40121, size: 93 bytes, params: 1, frame: 14
|
||||
const binding = env0_12;
|
||||
let getState = binding.getState;
|
||||
const currentlyShown = Reflect.apply(getState, binding, []).currentlyShown;
|
||||
const items2 = [];
|
||||
arraySpread(items2, currentlyShown, 0, items2);
|
||||
const length = items2.filter(function(a0) {
|
||||
var CONTENT_TYPES_WITH_BYPASS_FATIGUE = require(dependencyMap[9]).CONTENT_TYPES_WITH_BYPASS_FATIGUE;
|
||||
return !CONTENT_TYPES_WITH_BYPASS_FATIGUE.has(a0);
|
||||
}).length;
|
||||
getState = binding.getState;
|
||||
return [Reflect.apply(getState, binding, []).currentlyShown.size, length];
|
||||
}
|
||||
|
||||
function isPostConnectionOpen() { // fn#15810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:4967, offset: 0x00e401af, size: 25 bytes, params: 1, frame: 9
|
||||
const binding = env0_12;
|
||||
const getState = binding.getState;
|
||||
return Reflect.apply(getState, binding, []).postConnectionOpen;
|
||||
}
|
||||
|
||||
function _fun15774() { // fn#15774, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:2152, offset: 0x00e3fa9a, size: 45 bytes, params: 1, frame: 12
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun15775);
|
||||
}
|
||||
|
||||
function _fun15781() { // fn#15781, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:2721, offset: 0x00e3fc77, size: 29 bytes, params: 1, frame: 11
|
||||
env1_12.setState(_fun15782);
|
||||
}
|
||||
|
||||
function value_15785() { // fn#15785, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:3213, offset: 0x00e3fd79, size: 65 bytes, params: 1, frame: 15
|
||||
this.waitFor(LoginRequiredActionStore, UserRequiredActionStore);
|
||||
this.syncWith([LoginRequiredActionStore, UserRequiredActionStore], _fun15786);
|
||||
}
|
||||
|
||||
function _fun15793() { // fn#15793, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:3883, offset: 0x00e3fe99, size: 29 bytes, params: 1, frame: 11
|
||||
env1_12.setState(_fun15794);
|
||||
}
|
||||
|
||||
function _fun15796() { // fn#15796, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:4084, offset: 0x00e3ff48, size: 29 bytes, params: 1, frame: 11
|
||||
env1_12.setState(_fun15797);
|
||||
}
|
||||
|
||||
function _fun15802({currentlyShown}) { // fn#15802, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:4553, offset: 0x00e40061, size: 28 bytes, params: 2, frame: 11
|
||||
return currentlyShown.has(env0_0);
|
||||
}
|
||||
|
||||
function _fun15804(a0) { // fn#15804, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:4612, offset: 0x00e4009b, size: 34 bytes, params: 2, frame: 11
|
||||
return a0.some(_fun15805);
|
||||
}
|
||||
|
||||
function _fun15775() { // fn#15775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:2180, offset: 0x00e3fac7, size: 29 bytes, params: 1, frame: 11
|
||||
env2_12.setState(function(a0) {
|
||||
var value2 = cloneState(a0);
|
||||
swapFatigableContent(value2, _fun15777(value2));
|
||||
return value2;
|
||||
});
|
||||
}
|
||||
|
||||
function _fun15782() { // fn#15782, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:2738, offset: 0x00e3fc94, size: 23 bytes, params: 1, frame: 9
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = initState();
|
||||
value.postConnectionOpen = true;
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun15786() { // fn#15786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:3263, offset: 0x00e3fdba, size: 21 bytes, params: 1, frame: 9
|
||||
return env0_0.setHasRequiredAction();
|
||||
}
|
||||
|
||||
function _fun15794(a0) { // fn#15794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:3900, offset: 0x00e3feb6, size: 87 bytes, params: 2, frame: 18
|
||||
var value3;
|
||||
var withUpdateWinnerBinding;
|
||||
var binding;
|
||||
var candidates;
|
||||
const value2 = cloneState(a0);
|
||||
if (!env2_13) {
|
||||
value3 = environment.__proto__;
|
||||
if (env1_1) {
|
||||
withContent(value2, env1_0);
|
||||
} else {
|
||||
withUpdateWinnerBinding = withUpdateWinner;
|
||||
binding = env1_0;
|
||||
candidates = value2.candidates;
|
||||
candidates.set(binding.content, binding);
|
||||
withUpdateWinnerBinding(value2);
|
||||
}
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
|
||||
function _fun15797(a0) { // fn#15797, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:4101, offset: 0x00e3ff65, size: 88 bytes, params: 2, frame: 16
|
||||
var withoutContentBinding;
|
||||
var withoutCandidateBinding;
|
||||
var binding;
|
||||
var withUpdateWinnerBinding;
|
||||
const value2 = cloneState(a0);
|
||||
if (require) {
|
||||
withUpdateWinnerBinding = withUpdateWinner;
|
||||
withoutContentBinding = withoutContent;
|
||||
withoutCandidateBinding = withoutCandidate;
|
||||
binding = env1_0;
|
||||
withoutCandidateBinding(value2, binding);
|
||||
withoutContentBinding(value2, binding);
|
||||
withUpdateWinnerBinding(value2);
|
||||
} else {
|
||||
withoutContentBinding = withoutContent;
|
||||
withoutCandidateBinding = withoutCandidate;
|
||||
binding = env1_0;
|
||||
withoutCandidateBinding(value2, binding);
|
||||
withoutContentBinding(value2, binding);
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
|
||||
function _fun15805(a0) { // fn#15805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:4623, offset: 0x00e400bd, size: 28 bytes, params: 2, frame: 11
|
||||
return env0_0.currentlyShown.has(a0);
|
||||
}
|
||||
|
||||
function _fun15776(a0) { // fn#15776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:2197, offset: 0x00e3fae4, size: 41 bytes, params: 2, frame: 13
|
||||
const value2 = cloneState(a0);
|
||||
swapFatigableContent(value2, _fun15777(value2));
|
||||
return value2;
|
||||
}
|
||||
|
||||
function _fun15777(a0) { // fn#15777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:2252, offset: 0x00e3fb0d, size: 187 bytes, params: 2, frame: 17
|
||||
const env0_0 = a0;
|
||||
let candidates = a0.candidates;
|
||||
const value = candidates.keys();
|
||||
const items2 = [];
|
||||
arraySpread(items2, value, 0, undefined);
|
||||
const r3 = a0.prevFatigableCandidate !== null && a0.candidates.has(a0.prevFatigableCandidate.content) && a0.candidates.size > 1 ? items2.filter(_fun15778) : items2;
|
||||
candidates = a0.candidates;
|
||||
const get = candidates.get;
|
||||
const Math = global.Math;
|
||||
const floor = Math.floor;
|
||||
const Math2 = global.Math;
|
||||
return Reflect.apply(get, candidates, [r3[Reflect.apply(floor, Math, [Math2.random() * r3.length])]]);
|
||||
}
|
||||
|
||||
function _fun15778(a0) { // fn#15778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:2413, offset: 0x00e3fbc8, size: 38 bytes, params: 2, frame: 3
|
||||
return a0 !== env0_0.prevFatigableCandidate?.content;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,202 @@
|
||||
/* Metro module 1366; source: modules/dismissible_content/DismissibleContentTypes.tsx; dependencies: [1365, 2] */
|
||||
function _fun15673(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#15673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1493:6, offset: 0x00e3bc77, size: 2162 bytes, params: 8, frame: 32
|
||||
const closure = isTimeRecurringDismissibleContent;
|
||||
const closure2 = isVersionedDismissibleContent;
|
||||
const closure3 = isSnowflakeBoundDismissibleContent;
|
||||
const closure4 = isRecurringDismissibleContent;
|
||||
const closure5 = function(a0) {
|
||||
return !isRecurringDismissibleContent(a0);
|
||||
};
|
||||
const closure6 = isSingleUseGuildDismissibleContent;
|
||||
const closure7 = isTimeRecurringGuildDismissibleContent;
|
||||
const closure8 = isSnowflakeBoundGuildDismissibleContent;
|
||||
let Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
|
||||
const COLLECTIBLES_SHOP_ENTRY_MARKETING = DismissibleContent.COLLECTIBLES_SHOP_ENTRY_MARKETING;
|
||||
items6 = [COLLECTIBLES_SHOP_ENTRY_MARKETING];
|
||||
const ACTIVITIES_VOICE_LAUNCHER_BADGE = DismissibleContent.ACTIVITIES_VOICE_LAUNCHER_BADGE;
|
||||
items6[1] = ACTIVITIES_VOICE_LAUNCHER_BADGE;
|
||||
const GUILD_POWERUP_NEW_PERK_AVAILABLE_COACHMARK = DismissibleContent.GUILD_POWERUP_NEW_PERK_AVAILABLE_COACHMARK;
|
||||
items6[2] = GUILD_POWERUP_NEW_PERK_AVAILABLE_COACHMARK;
|
||||
const COLLECTIBLES_SHOP_WIDE_BANNER = DismissibleContent.COLLECTIBLES_SHOP_WIDE_BANNER;
|
||||
items6[3] = COLLECTIBLES_SHOP_WIDE_BANNER;
|
||||
const GAME_SHOP_ANNOUNCEMENT_MODAL = DismissibleContent.GAME_SHOP_ANNOUNCEMENT_MODAL;
|
||||
items6[4] = GAME_SHOP_ANNOUNCEMENT_MODAL;
|
||||
const COLLECTIBLES_SHOP_MARVEL_RIVALS_ORBS_REWARD = DismissibleContent.COLLECTIBLES_SHOP_MARVEL_RIVALS_ORBS_REWARD;
|
||||
items6[5] = COLLECTIBLES_SHOP_MARVEL_RIVALS_ORBS_REWARD;
|
||||
const GAME_SHOP_ORBS_REWARD_BANNER = DismissibleContent.GAME_SHOP_ORBS_REWARD_BANNER;
|
||||
items6[6] = GAME_SHOP_ORBS_REWARD_BANNER;
|
||||
const SLAYER_STOREFRONT_ORBS_REWARDS_ANNOUNCEMENT = DismissibleContent.SLAYER_STOREFRONT_ORBS_REWARDS_ANNOUNCEMENT;
|
||||
items6[7] = SLAYER_STOREFRONT_ORBS_REWARDS_ANNOUNCEMENT;
|
||||
const SLAYER_STOREFRONT_ORBS_REWARD_WISHLIST_UPSELL = DismissibleContent.SLAYER_STOREFRONT_ORBS_REWARD_WISHLIST_UPSELL;
|
||||
items6[8] = SLAYER_STOREFRONT_ORBS_REWARD_WISHLIST_UPSELL;
|
||||
const SLAYER_STOREFRONT_VC_GIFTING_STREAM_HEADER_NEW_BADGE = DismissibleContent.SLAYER_STOREFRONT_VC_GIFTING_STREAM_HEADER_NEW_BADGE;
|
||||
items6[9] = SLAYER_STOREFRONT_VC_GIFTING_STREAM_HEADER_NEW_BADGE;
|
||||
const SLAYER_STOREFRONT_VC_GIFTING_PANEL_APP_WIDGET_CTA = DismissibleContent.SLAYER_STOREFRONT_VC_GIFTING_PANEL_APP_WIDGET_CTA;
|
||||
items6[10] = SLAYER_STOREFRONT_VC_GIFTING_PANEL_APP_WIDGET_CTA;
|
||||
const COLLECTIBLES_SHOP_SLAYER_STOREFRONT_PROMOTIONAL_BANNER = DismissibleContent.COLLECTIBLES_SHOP_SLAYER_STOREFRONT_PROMOTIONAL_BANNER;
|
||||
items6[11] = COLLECTIBLES_SHOP_SLAYER_STOREFRONT_PROMOTIONAL_BANNER;
|
||||
const GIFTING_INTENT_FRIENDS_TAB_BADGE = DismissibleContent.GIFTING_INTENT_FRIENDS_TAB_BADGE;
|
||||
const items7 = [GIFTING_INTENT_FRIENDS_TAB_BADGE];
|
||||
const FRACTIONAL_NITRO_DURATION_LEFT_PILL = DismissibleContent.FRACTIONAL_NITRO_DURATION_LEFT_PILL;
|
||||
items7[1] = FRACTIONAL_NITRO_DURATION_LEFT_PILL;
|
||||
const GUILD_TAG_AVAILABLE_COACHMARK = DismissibleContent.GUILD_TAG_AVAILABLE_COACHMARK;
|
||||
items7[2] = GUILD_TAG_AVAILABLE_COACHMARK;
|
||||
const GUILD_POWERUP_NOTIFICATION = DismissibleContent.GUILD_POWERUP_NOTIFICATION;
|
||||
items7[3] = GUILD_POWERUP_NOTIFICATION;
|
||||
let THIRD_PARTY_OUTBOUND_PROMO_NAGBAR = DismissibleContent.THIRD_PARTY_OUTBOUND_PROMO_NAGBAR;
|
||||
items7[4] = THIRD_PARTY_OUTBOUND_PROMO_NAGBAR;
|
||||
const NAGBAR_NOTICE_IGNORE_USER_FEEDBACK = DismissibleContent.NAGBAR_NOTICE_IGNORE_USER_FEEDBACK;
|
||||
items7[5] = NAGBAR_NOTICE_IGNORE_USER_FEEDBACK;
|
||||
const NITRO_TENURE_BADGE_LEVEL_UP = DismissibleContent.NITRO_TENURE_BADGE_LEVEL_UP;
|
||||
items7[6] = NITRO_TENURE_BADGE_LEVEL_UP;
|
||||
const CHANNEL_REORDER_MODAL_DISMISS_SETTING = DismissibleContent.CHANNEL_REORDER_MODAL_DISMISS_SETTING;
|
||||
items7[7] = CHANNEL_REORDER_MODAL_DISMISS_SETTING;
|
||||
let GOOGLE_PLAY_PRICE_CHANGE_ACTION_SHEET = DismissibleContent.GOOGLE_PLAY_PRICE_CHANGE_ACTION_SHEET;
|
||||
items7[8] = GOOGLE_PLAY_PRICE_CHANGE_ACTION_SHEET;
|
||||
const NAGBAR_NOTICE_OFFER_EXPIRING = DismissibleContent.NAGBAR_NOTICE_OFFER_EXPIRING;
|
||||
items7[9] = NAGBAR_NOTICE_OFFER_EXPIRING;
|
||||
const NOTIFICATION_NUDGE_DM_HOME_BANNER = DismissibleContent.NOTIFICATION_NUDGE_DM_HOME_BANNER;
|
||||
items7[10] = NOTIFICATION_NUDGE_DM_HOME_BANNER;
|
||||
const NOTIFICATION_NUDGE_CHAT_BOTTOM_BANNER = DismissibleContent.NOTIFICATION_NUDGE_CHAT_BOTTOM_BANNER;
|
||||
items7[11] = NOTIFICATION_NUDGE_CHAT_BOTTOM_BANNER;
|
||||
const NOTIFICATION_NUDGE_NOTIFICATION_CENTER_BANNER = DismissibleContent.NOTIFICATION_NUDGE_NOTIFICATION_CENTER_BANNER;
|
||||
items7[12] = NOTIFICATION_NUDGE_NOTIFICATION_CENTER_BANNER;
|
||||
const NOTIFICATION_NUDGE_POST_REACTION_BANNER = DismissibleContent.NOTIFICATION_NUDGE_POST_REACTION_BANNER;
|
||||
items7[13] = NOTIFICATION_NUDGE_POST_REACTION_BANNER;
|
||||
const GUILD_TAG_UPDATED_COACHMARK = DismissibleContent.GUILD_TAG_UPDATED_COACHMARK;
|
||||
items7[14] = GUILD_TAG_UPDATED_COACHMARK;
|
||||
const GIFT_INTENT_MESSAGE = DismissibleContent.GIFT_INTENT_MESSAGE;
|
||||
items7[15] = GIFT_INTENT_MESSAGE;
|
||||
const GAME_ACCOUNT_LINK_RECURRING_UPSELL = DismissibleContent.GAME_ACCOUNT_LINK_RECURRING_UPSELL;
|
||||
items7[16] = GAME_ACCOUNT_LINK_RECURRING_UPSELL;
|
||||
const USER_PROFILE_WISHLIST_RECOMMENDATIONS = DismissibleContent.USER_PROFILE_WISHLIST_RECOMMENDATIONS;
|
||||
items7[17] = USER_PROFILE_WISHLIST_RECOMMENDATIONS;
|
||||
const FIRST_BOOSTER_UPSELL_OVERSEER = DismissibleContent.FIRST_BOOSTER_UPSELL_OVERSEER;
|
||||
items7[18] = FIRST_BOOSTER_UPSELL_OVERSEER;
|
||||
const QUEST_HOME_NEW_QUEST_BADGE = DismissibleContent.QUEST_HOME_NEW_QUEST_BADGE;
|
||||
items7[19] = QUEST_HOME_NEW_QUEST_BADGE;
|
||||
const RIOT_CONNECTION_DEPRECATION = DismissibleContent.RIOT_CONNECTION_DEPRECATION;
|
||||
items7[20] = RIOT_CONNECTION_DEPRECATION;
|
||||
const RIOT_CONNECTION_DEPRECATION_ADMIN = DismissibleContent.RIOT_CONNECTION_DEPRECATION_ADMIN;
|
||||
items7[21] = RIOT_CONNECTION_DEPRECATION_ADMIN;
|
||||
const NOTIFICATION_NUDGE_POST_CALL_DISCONNECT = DismissibleContent.NOTIFICATION_NUDGE_POST_CALL_DISCONNECT;
|
||||
items7[22] = NOTIFICATION_NUDGE_POST_CALL_DISCONNECT;
|
||||
const REFERRAL_PROGRAM_ENTRYPOINT_NITRO_BUTTON_NOTIFICATION = DismissibleContent.REFERRAL_PROGRAM_ENTRYPOINT_NITRO_BUTTON_NOTIFICATION;
|
||||
items7[23] = REFERRAL_PROGRAM_ENTRYPOINT_NITRO_BUTTON_NOTIFICATION;
|
||||
const APP_WIDGET_V2_PROFILE_UPSELL_COACHMARK = DismissibleContent.APP_WIDGET_V2_PROFILE_UPSELL_COACHMARK;
|
||||
items7[24] = APP_WIDGET_V2_PROFILE_UPSELL_COACHMARK;
|
||||
const APP_WIDGET_V2_PROFILE_UPSELL_SUGGESTED = DismissibleContent.APP_WIDGET_V2_PROFILE_UPSELL_SUGGESTED;
|
||||
items7[25] = APP_WIDGET_V2_PROFILE_UPSELL_SUGGESTED;
|
||||
const GIFTING_PROMOTION_ICON = DismissibleContent.GIFTING_PROMOTION_ICON;
|
||||
const items2 = [GIFTING_PROMOTION_ICON];
|
||||
THIRD_PARTY_OUTBOUND_PROMO_NAGBAR = DismissibleContent.THIRD_PARTY_OUTBOUND_PROMO_NAGBAR;
|
||||
items2[1] = THIRD_PARTY_OUTBOUND_PROMO_NAGBAR;
|
||||
GOOGLE_PLAY_PRICE_CHANGE_ACTION_SHEET = DismissibleContent.GOOGLE_PLAY_PRICE_CHANGE_ACTION_SHEET;
|
||||
items2[2] = GOOGLE_PLAY_PRICE_CHANGE_ACTION_SHEET;
|
||||
const PREMIUM_MARKETING_MOMENT_ANNOUNCEMENT_UPSELL = DismissibleContent.PREMIUM_MARKETING_MOMENT_ANNOUNCEMENT_UPSELL;
|
||||
items2[3] = PREMIUM_MARKETING_MOMENT_ANNOUNCEMENT_UPSELL;
|
||||
const PREMIUM_MARKETING_MOMENT_REMINDER_UPSELL = DismissibleContent.PREMIUM_MARKETING_MOMENT_REMINDER_UPSELL;
|
||||
items2[4] = PREMIUM_MARKETING_MOMENT_REMINDER_UPSELL;
|
||||
const PREMIUM_TAB_MARKETING_MOMENT_OFFER_BADGE = DismissibleContent.PREMIUM_TAB_MARKETING_MOMENT_OFFER_BADGE;
|
||||
items2[5] = PREMIUM_TAB_MARKETING_MOMENT_OFFER_BADGE;
|
||||
const DISCOUNT_OFFER_ACTION_SHEET = DismissibleContent.DISCOUNT_OFFER_ACTION_SHEET;
|
||||
items2[6] = DISCOUNT_OFFER_ACTION_SHEET;
|
||||
const MOBILE_PREMIUM_TRIAL_OFFER_ACTION_SHEET = DismissibleContent.MOBILE_PREMIUM_TRIAL_OFFER_ACTION_SHEET;
|
||||
items2[7] = MOBILE_PREMIUM_TRIAL_OFFER_ACTION_SHEET;
|
||||
const PREMIUM_ORBS_REWARDS_DROP_POPOVER = DismissibleContent.PREMIUM_ORBS_REWARDS_DROP_POPOVER;
|
||||
items2[8] = PREMIUM_ORBS_REWARDS_DROP_POPOVER;
|
||||
const QUEST_HOME_ENTRYPOINT_TAKEOVER_BADGE = DismissibleContent.QUEST_HOME_ENTRYPOINT_TAKEOVER_BADGE;
|
||||
items2[9] = QUEST_HOME_ENTRYPOINT_TAKEOVER_BADGE;
|
||||
const REFERRAL_PROGRAM_POPOVER_V2 = DismissibleContent.REFERRAL_PROGRAM_POPOVER_V2;
|
||||
items2[10] = REFERRAL_PROGRAM_POPOVER_V2;
|
||||
const ML_REVERSE_TRIAL_UPSELL_MODAL = DismissibleContent.ML_REVERSE_TRIAL_UPSELL_MODAL;
|
||||
items2[11] = ML_REVERSE_TRIAL_UPSELL_MODAL;
|
||||
const ML_REVERSE_TRIAL_FOLLOWUP_UPSELL_MODAL = DismissibleContent.ML_REVERSE_TRIAL_FOLLOWUP_UPSELL_MODAL;
|
||||
items2[12] = ML_REVERSE_TRIAL_FOLLOWUP_UPSELL_MODAL;
|
||||
const PREMIUM_MARKETING_MOMENT_NAGBAR_UPSELL = DismissibleContent.PREMIUM_MARKETING_MOMENT_NAGBAR_UPSELL;
|
||||
items2[13] = PREMIUM_MARKETING_MOMENT_NAGBAR_UPSELL;
|
||||
const PREMIUM_MARKETING_MOMENT_USER_SETTINGS_OFFER_BADGE = DismissibleContent.PREMIUM_MARKETING_MOMENT_USER_SETTINGS_OFFER_BADGE;
|
||||
items2[14] = PREMIUM_MARKETING_MOMENT_USER_SETTINGS_OFFER_BADGE;
|
||||
const GIFTING_PROMOTION_DESKTOP_FIRST_TIME_COACHMARK = DismissibleContent.GIFTING_PROMOTION_DESKTOP_FIRST_TIME_COACHMARK;
|
||||
items2[15] = GIFTING_PROMOTION_DESKTOP_FIRST_TIME_COACHMARK;
|
||||
const GIFTING_PROMOTION_MOBILE_FIRST_TIME_HALFSHEET = DismissibleContent.GIFTING_PROMOTION_MOBILE_FIRST_TIME_HALFSHEET;
|
||||
items2[16] = GIFTING_PROMOTION_MOBILE_FIRST_TIME_HALFSHEET;
|
||||
const GIFTING_PROMOTION_REMINDER = DismissibleContent.GIFTING_PROMOTION_REMINDER;
|
||||
items2[17] = GIFTING_PROMOTION_REMINDER;
|
||||
const PREMIUM_GROUP_PRIMARY_REMINDER_NAGBAR = DismissibleContent.PREMIUM_GROUP_PRIMARY_REMINDER_NAGBAR;
|
||||
items2[18] = PREMIUM_GROUP_PRIMARY_REMINDER_NAGBAR;
|
||||
const GAME_SERVER_NEW_GAMES_COACHMARK = DismissibleContent.GAME_SERVER_NEW_GAMES_COACHMARK;
|
||||
items2[19] = GAME_SERVER_NEW_GAMES_COACHMARK;
|
||||
const PREMIUM_OFFER_TAB_BADGE_POPOVER = DismissibleContent.PREMIUM_OFFER_TAB_BADGE_POPOVER;
|
||||
items2[20] = PREMIUM_OFFER_TAB_BADGE_POPOVER;
|
||||
const GAME_SHOP_NEW_BADGE = DismissibleContent.GAME_SHOP_NEW_BADGE;
|
||||
const items3 = [GAME_SHOP_NEW_BADGE];
|
||||
const GAME_SHOP_NEW_DROP_POPOVER = DismissibleContent.GAME_SHOP_NEW_DROP_POPOVER;
|
||||
items3[1] = GAME_SHOP_NEW_DROP_POPOVER;
|
||||
const VANITY_URL_POWERUP_ROLLBACK_NOTIFICATION = DismissibleContent.VANITY_URL_POWERUP_ROLLBACK_NOTIFICATION;
|
||||
const items4 = [VANITY_URL_POWERUP_ROLLBACK_NOTIFICATION];
|
||||
const GAME_SERVER_HOSTING_NEW_BADGE = DismissibleContent.GAME_SERVER_HOSTING_NEW_BADGE;
|
||||
items4[1] = GAME_SERVER_HOSTING_NEW_BADGE;
|
||||
const GAME_SERVER_HOSTING_NEW_COACHMARK = DismissibleContent.GAME_SERVER_HOSTING_NEW_COACHMARK;
|
||||
items4[2] = GAME_SERVER_HOSTING_NEW_COACHMARK;
|
||||
const GUILD_TAG_AVAILABLE_COACHMARK_V2 = DismissibleContent.GUILD_TAG_AVAILABLE_COACHMARK_V2;
|
||||
items4[3] = GUILD_TAG_AVAILABLE_COACHMARK_V2;
|
||||
const GAME_CLAIM_COACHMARK = DismissibleContent.GAME_CLAIM_COACHMARK;
|
||||
items4[4] = GAME_CLAIM_COACHMARK;
|
||||
const FIRST_BOOSTER_UPSELL = DismissibleContent.FIRST_BOOSTER_UPSELL;
|
||||
items4[5] = FIRST_BOOSTER_UPSELL;
|
||||
const MOBILE_ACCOUNT_LINKING_BANNER = DismissibleContent.MOBILE_ACCOUNT_LINKING_BANNER;
|
||||
items4[6] = MOBILE_ACCOUNT_LINKING_BANNER;
|
||||
const BOOST_TO_UNLOCK_COACHMARK = DismissibleContent.BOOST_TO_UNLOCK_COACHMARK;
|
||||
const items5 = [BOOST_TO_UNLOCK_COACHMARK];
|
||||
const EXPIRING_POWERUP_COACHMARK = DismissibleContent.EXPIRING_POWERUP_COACHMARK;
|
||||
items5[1] = EXPIRING_POWERUP_COACHMARK;
|
||||
const NOTIFICATION_NUDGE_GUILD_OPEN_PER_GUILD = DismissibleContent.NOTIFICATION_NUDGE_GUILD_OPEN_PER_GUILD;
|
||||
items5[2] = NOTIFICATION_NUDGE_GUILD_OPEN_PER_GUILD;
|
||||
Object = global.Object;
|
||||
let value = Object.keys(DismissibleContent);
|
||||
value = value.map(function(a0) {
|
||||
return (0, global.parseInt)(a0);
|
||||
});
|
||||
value = value.filter(function(a0) {
|
||||
return !(0, global.isNaN)(a0);
|
||||
});
|
||||
const value2 = value.filter(closure5);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/dismissible_content/DismissibleContentTypes.tsx');
|
||||
exports.versionedDismissibleContents = items6;
|
||||
exports.timeRecurringDismissibleContents = items7;
|
||||
exports.snowflakeBoundDismissibleContents = items2;
|
||||
exports.snowflakeBoundGuildDismissibleContents = items3;
|
||||
exports.singleUseGuildDismissibleContents = items4;
|
||||
exports.timeRecurringGuildDismissibleContents = items5;
|
||||
exports.isTimeRecurringDismissibleContent = closure;
|
||||
exports.isVersionedDismissibleContent = closure2;
|
||||
exports.isSnowflakeBoundDismissibleContent = closure3;
|
||||
exports.isRecurringDismissibleContent = closure4;
|
||||
exports.isSingleUseDismissibleContent = closure5;
|
||||
exports.isSingleUseGuildDismissibleContent = closure6;
|
||||
exports.isTimeRecurringGuildDismissibleContent = closure7;
|
||||
exports.isSnowflakeBoundGuildDismissibleContent = closure8;
|
||||
exports.isGuildDismissibleContent = isGuildDismissibleContent;
|
||||
exports.ALL_DISMISSIBLE_CONTENT = value;
|
||||
exports.ALL_SINGLE_USE_DISMISSIBLE_CONTENT = value2;
|
||||
}
|
||||
|
||||
function isSnowflakeBoundDismissibleContent(a0) { // fn#15676, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1493:4674, offset: 0x00e3c4ff, size: 22 bytes, params: 2, frame: 11
|
||||
return env0_2.includes(a0);
|
||||
}
|
||||
|
||||
function isRecurringDismissibleContent(a0) { // fn#15677, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1493:4742, offset: 0x00e3c515, size: 43 bytes, params: 2, frame: 13
|
||||
let r0 = isTimeRecurringDismissibleContent(a0) || isVersionedDismissibleContent(a0);
|
||||
r0 = !r0 ? isSnowflakeBoundDismissibleContent(a0) : r0;
|
||||
return r0;
|
||||
}
|
||||
|
||||
function isGuildDismissibleContent(a0) { // fn#15684, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1493:6239, offset: 0x00e3c599, size: 43 bytes, params: 2, frame: 13
|
||||
let r0 = isSingleUseGuildDismissibleContent(a0) || isTimeRecurringGuildDismissibleContent(a0);
|
||||
r0 = !r0 ? isSnowflakeBoundGuildDismissibleContent(a0) : r0;
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,224 @@
|
||||
/* Metro module 3968; source: modules/dismissible_content/DismissibleContentUnsafeUtils.tsx; dependencies: [5, 1348, 3969, 672, 3994, 1366, 1367, 21, 1364, 566, 1362, 2] */
|
||||
function _fun32507(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4117:6, offset: 0x01018410, size: 258 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const closure = UNSAFE_isDismissibleContentDismissed;
|
||||
const closure2 = UNSAFE_isSnowflakeBoundDismissibleContentDismissed;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const userSettingsProtoStore = importDefault(1348) /* metro dependency 1348: UserSettingsProtoStore */;
|
||||
const selectedGuildStore = importDefault(3969) /* metro dependency 3969: SelectedGuildStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/dismissible_content/DismissibleContentUnsafeUtils.tsx');
|
||||
exports.UNSAFE_isDismissibleContentDismissed = closure;
|
||||
exports.UNSAFE_useIsDismissibleContentDismissed = UNSAFE_useIsDismissibleContentDismissed;
|
||||
exports.UNSAFE_markDismissibleContentAsDismissed = function() {
|
||||
return _UNSAFE_markDismissibleContentAsDismissed.apply(this, arguments);
|
||||
};
|
||||
exports.UNSAFE_isSnowflakeBoundDismissibleContentDismissed = closure2;
|
||||
exports.UNSAFE_markSingleUseGuildDismissibleContentAsDismissed = function() {
|
||||
return _UNSAFE_markSingleUseGuildDismissibleContentAsDismissed.apply(this, arguments);
|
||||
};
|
||||
exports.UNSAFE_markTimeRecurringGuildDismissibleContentAsDismissed = function() {
|
||||
return _UNSAFE_markTimeRecurringGuildDismissibleContentAsDismissed.apply(this, arguments);
|
||||
};
|
||||
exports.UNSAFE_markSnowflakeBoundGuildDismissibleContentAsDismissed = function() {
|
||||
return _UNSAFE_markSnowflakeBoundGuildDismissibleContentAsDismissed.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
function UNSAFE_isDismissibleContentDismissed(a0) { // fn#32508, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4117:126, offset: 0x01018512, size: 623 bytes, params: 2, frame: 27
|
||||
var r5;
|
||||
var fromTimestamp;
|
||||
var Date;
|
||||
let value = a1;
|
||||
const value2 = undefined;
|
||||
const r1 = value !== value2 ? value : {};
|
||||
let bypassNewUserCheck = r1.bypassNewUserCheck;
|
||||
bypassNewUserCheck = !(bypassNewUserCheck === value2) && bypassNewUserCheck;
|
||||
const cooldownDurationMs = r1.cooldownDurationMs;
|
||||
const r8 = cooldownDurationMs !== value2 ? cooldownDurationMs : (importDefault(672) /* metro dependency 672: Durations */).Millis.WEEK;
|
||||
const guildId = r1.guildId;
|
||||
if (!bypassNewUserCheck) {
|
||||
value = require(3994) /* metro dependency 3994: NewUserDismissibleContentRegistry */;
|
||||
if (value.disableNewUserDismissibleContent(a0)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if ((require(1366) /* metro dependency 1366: DismissibleContentTypes */).isVersionedDismissibleContent(a0)) {
|
||||
value = require(1367) /* metro dependency 1367: DismissibleContentUtils */;
|
||||
return value.isVersionedDismissibleContentDismissed(a0).isDismissed;
|
||||
}
|
||||
const moduleValue2 = require(1366) /* metro dependency 1366: DismissibleContentTypes */;
|
||||
if (moduleValue2.isSnowflakeBoundDismissibleContent(a0)) {
|
||||
value = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
fromTimestamp = value.fromTimestamp;
|
||||
Date = global.Date;
|
||||
return UNSAFE_isSnowflakeBoundDismissibleContentDismissed(a0, Reflect.apply(fromTimestamp, value,
|
||||
[Date.now()])).isDismissed;
|
||||
}
|
||||
if ((require(1366) /* metro dependency 1366: DismissibleContentTypes */).isTimeRecurringDismissibleContent(a0)) {
|
||||
value = require(1367) /* metro dependency 1367: DismissibleContentUtils */;
|
||||
return value.isTimeRecurringDismissibleContentDismissed(a0, {cooldownDurationMs: r8}).isDismissed;
|
||||
}
|
||||
if ((require(1366) /* metro dependency 1366: DismissibleContentTypes */).isSingleUseGuildDismissibleContent(a0)) {
|
||||
return (require(1367) /* metro dependency 1367: DismissibleContentUtils */).UNSAFE_isSingleUseGuildDismissibleContentDismissed(a0,
|
||||
|
||||
guildId);
|
||||
}
|
||||
if ((require(1366) /* metro dependency 1366: DismissibleContentTypes */).isTimeRecurringGuildDismissibleContent(a0)) {
|
||||
return (require(1367) /* metro dependency 1367: DismissibleContentUtils */).UNSAFE_isTimeRecurringGuildDismissibleContentDismissed(a0,
|
||||
|
||||
guildId);
|
||||
}
|
||||
const moduleValue6 = require(1366) /* metro dependency 1366: DismissibleContentTypes */;
|
||||
if (moduleValue6.isSnowflakeBoundGuildDismissibleContent(a0)) {
|
||||
return (require(1367) /* metro dependency 1367: DismissibleContentUtils */).UNSAFE_isSnowflakeBoundGuildDismissibleContentDismissed(a0,
|
||||
|
||||
guildId);
|
||||
}
|
||||
const userContent = UserSettingsProtoStore.settings.userContent;
|
||||
const dismissedContents = userContent == null ? value2 : userContent.dismissedContents;
|
||||
const value3 = dismissedContents != null;
|
||||
if (value3) {
|
||||
value = require(1364) /* metro dependency 1364: Uint8ArrayUtils */;
|
||||
value = value.hasBit(dismissedContents, a0);
|
||||
r5 = value;
|
||||
} else {
|
||||
r5 = value3;
|
||||
}
|
||||
return r5;
|
||||
}
|
||||
|
||||
function _UNSAFE_markDismissibleContentAsDismissed() { // fn#32509, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4117:1210, offset: 0x01018781, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun32511).apply(this, arguments);
|
||||
}
|
||||
|
||||
function UNSAFE_isSnowflakeBoundDismissibleContentDismissed(a0, a1) { // fn#32512, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4117:1585, offset: 0x0101886d, size: 173 bytes, params: 3, frame: 16
|
||||
var r2;
|
||||
var value;
|
||||
const value2 = undefined;
|
||||
const newUserDismissibleContentRegistryModule = require(3994) /* metro dependency 3994: NewUserDismissibleContentRegistry */;
|
||||
if (newUserDismissibleContentRegistryModule.disableNewUserDismissibleContent(a0)) {
|
||||
return {'isDismissed': true, 'lastDismissedSnowflakeId': null};
|
||||
}
|
||||
const userContent = UserSettingsProtoStore.settings.userContent;
|
||||
const lastDismissedObjectId = userContent == null || userContent.recurringDismissibleContentStates[a0] == null ? value2 : userContent.recurringDismissibleContentStates[a0].lastDismissedObjectId;
|
||||
const value3 = lastDismissedObjectId != null;
|
||||
if (value3) {
|
||||
value = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
value = value.compare(a1, lastDismissedObjectId);
|
||||
value = value !== 1;
|
||||
r2 = value;
|
||||
} else {
|
||||
r2 = value3;
|
||||
}
|
||||
return {isDismissed: r2, lastDismissedSnowflakeId: lastDismissedObjectId};
|
||||
}
|
||||
|
||||
function _UNSAFE_markSingleUseGuildDismissibleContentAsDismissed() { // fn#32513, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4117:1957, offset: 0x0101891a, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun32515).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _UNSAFE_markTimeRecurringGuildDismissibleContentAsDismissed() { // fn#32516, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4117:2310, offset: 0x010189f0, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun32518).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _UNSAFE_markSnowflakeBoundGuildDismissibleContentAsDismissed() { // fn#32519, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4117:2730, offset: 0x01018abc, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun32521).apply(this, arguments);
|
||||
}
|
||||
|
||||
function UNSAFE_useIsDismissibleContentDismissed(a0) { // fn#32522, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4117:3390, offset: 0x01018ba9, size: 85 bytes, params: 2, frame: 15
|
||||
const value = a1;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = value !== undefined ? value : {};
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([UserSettingsProtoStore,
|
||||
SelectedGuildStore], _fun32523);
|
||||
}
|
||||
|
||||
async function _fun32511(a0) { // fn#32511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4117:1315, offset: 0x010187c3, size: 170 bytes, params: 2, frame: 20
|
||||
let value = a1;
|
||||
if (true) {
|
||||
var r6 = value !== undefined ? value : {};
|
||||
await undefined;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
var binding = env2_6;
|
||||
if (!binding(a0, {bypassNewUserCheck: true})) {
|
||||
binding = env2_0;
|
||||
var binding2 = env2_2;
|
||||
binding(binding2[6]).markDismissibleContentAsDismissedPreProcessing(a0, r6);
|
||||
var value6 = binding(binding2[10]);
|
||||
await value6.addDismissedContent(a0);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
binding = env2_0;
|
||||
binding(env2_2[6]).markDismissibleContentAsDismissedPostProcessing(a0, r6);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async function _fun32515(a0, a1) { // fn#32515, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4117:2090, offset: 0x0101895c, size: 148 bytes, params: 3, frame: 21
|
||||
let value = a2;
|
||||
if (true) {
|
||||
var r6 = value !== undefined ? value : {};
|
||||
await undefined;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
var binding = env2_0;
|
||||
var binding2 = env2_2;
|
||||
binding(binding2[6]).markDismissibleContentAsDismissedPreProcessing(a0, r6);
|
||||
var value6 = binding(binding2[6]);
|
||||
var UNSAFE_addGuildDismissedContent = value6.UNSAFE_addGuildDismissedContent;
|
||||
await Reflect.apply(UNSAFE_addGuildDismissedContent, value6, [a0, a1, 1]);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
env2_0(env2_2[6]).markDismissibleContentAsDismissedPostProcessing(a0, r6);
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun32518(a0, a1, a2) { // fn#32518, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4117:2451, offset: 0x01018a29, size: 147 bytes, params: 4, frame: 22
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var binding = env2_0;
|
||||
var binding2 = env2_2;
|
||||
var guildNextNumTimesDismissed = binding(binding2[6]).getGuildNextNumTimesDismissed(a0, a1);
|
||||
binding(binding2[6]).markDismissibleContentAsDismissedPreProcessing(a0, a2);
|
||||
var value6 = binding(binding2[6]);
|
||||
var UNSAFE_addTimeRecurringGuildDismissedContent = value6.UNSAFE_addTimeRecurringGuildDismissedContent;
|
||||
yield Reflect.apply(UNSAFE_addTimeRecurringGuildDismissedContent, value6, [a0, a1, guildNextNumTimesDismissed]);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
env2_0(env2_2[6]).markDismissibleContentAsDismissedPostProcessing(a0, a2);
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun32521(a0, a1, a2, a3) { // fn#32521, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4117:2873, offset: 0x01018af5, size: 180 bytes, params: 5, frame: 26
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var binding = env2_0;
|
||||
var binding2 = env2_2;
|
||||
var guildNextNumTimesDismissed = binding(binding2[6]).getGuildNextNumTimesDismissed(a0, a2);
|
||||
var value5 = binding(binding2[6]);
|
||||
var markDismissibleContentAsDismissedPreProcessing = value5.markDismissibleContentAsDismissedPreProcessing;
|
||||
var object2 = {};
|
||||
copyDataProperties(object2, a3, undefined);
|
||||
object2['snowflakeId'] = a1;
|
||||
Reflect.apply(markDismissibleContentAsDismissedPreProcessing, value5, [a0, object2]);
|
||||
var value6 = binding(binding2[6]);
|
||||
var UNSAFE_addSnowflakeBoundGuildDismissedContent = value6.UNSAFE_addSnowflakeBoundGuildDismissedContent;
|
||||
yield Reflect.apply(UNSAFE_addSnowflakeBoundGuildDismissedContent, value6, [a0, a1, a2,
|
||||
guildNextNumTimesDismissed]);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
env2_0(env2_2[6]).markDismissibleContentAsDismissedPostProcessing(a0, a3);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,486 @@
|
||||
/* Metro module 1367; source: modules/dismissible_content/DismissibleContentUtils.tsx; dependencies: [57, 5, 1348, 1368, 1369, 1371, 1376, 661, 1366, 1377, 21, 1362, 3994, 566, 1365, 694, 12715, 683, 1370, 2] */
|
||||
function _fun15685(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#15685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:6, offset: 0x00e3c5c4, size: 769 bytes, params: 8, frame: 31
|
||||
let env0_0 = require;
|
||||
const closure = addVersionedDismissedContent;
|
||||
const closure2 = addTimeRecurringDismissedContent;
|
||||
const closure3 = addSnowflakeBoundDismissedContent;
|
||||
const closure4 = UNSAFE_isSingleUseGuildDismissibleContentDismissed;
|
||||
const closure5 = markDismissibleContentAsDismissedPreProcessing;
|
||||
const closure6 = markDismissibleContentAsDismissedPostProcessing;
|
||||
const closure7 = getGuildNextNumTimesDismissed;
|
||||
const closure8 = getNextNumTimesDismissed;
|
||||
const closure9 = function() {
|
||||
return _markVersionedDismissibleContentAsDismissed.apply(this, arguments);
|
||||
};
|
||||
const closure10 = trackDismissibleContentShown;
|
||||
const closure11 = trackDismissibleContentDismissed;
|
||||
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 userSettingsProtoStore = importDefault(1348) /* metro dependency 1348: UserSettingsProtoStore */;
|
||||
const env0_6 = (require(1368) /* metro dependency 1368: DCFEventStore */).DCFEventTypes;
|
||||
const dismissibleContentFrameworkStore = importDefault(1369) /* metro dependency 1369: DismissibleContentFrameworkStore */;
|
||||
const dismissibleContentShownStateStoreModule = require(1371) /* metro dependency 1371: DismissibleContentShownStateStore */;
|
||||
const env0_8 = dismissibleContentShownStateStoreModule.addCandidateContent;
|
||||
const env0_9 = dismissibleContentShownStateStoreModule.removeCandidateContent;
|
||||
const env0_10 = dismissibleContentShownStateStoreModule.isContentShown;
|
||||
const env0_11 = dismissibleContentShownStateStoreModule.getCurrentlyShownCounts;
|
||||
const env0_12 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
|
||||
const env0_13 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const Set = global.Set;
|
||||
const {ACCOUNT_LINK_INVITE_FRIENDS,
|
||||
ACCOUNT_LINK_PROMPT} = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
|
||||
const set = new Set([ACCOUNT_LINK_INVITE_FRIENDS, ACCOUNT_LINK_PROMPT]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/dismissible_content/DismissibleContentUtils.tsx');
|
||||
exports.SNOWFLAKE_BOUND_DISMISSIBLE_CONTENT_DURATION_MS = 2592000000;
|
||||
exports.getDismissedRecurringDismissibleContentState = getDismissedRecurringDismissibleContentState;
|
||||
exports.addVersionedDismissedContent = closure;
|
||||
exports.addTimeRecurringDismissedContent = closure2;
|
||||
exports.addSnowflakeBoundDismissedContent = closure3;
|
||||
exports.UNSAFE_addGuildDismissedContent = UNSAFE_addGuildDismissedContent;
|
||||
exports.UNSAFE_removeGuildDismissedContent = UNSAFE_removeGuildDismissedContent;
|
||||
exports.UNSAFE_addTimeRecurringGuildDismissedContent = UNSAFE_addTimeRecurringGuildDismissedContent;
|
||||
exports.UNSAFE_removeTimeRecurringGuildDismissedContent = UNSAFE_removeTimeRecurringGuildDismissedContent;
|
||||
exports.UNSAFE_addSnowflakeBoundGuildDismissedContent = UNSAFE_addSnowflakeBoundGuildDismissedContent;
|
||||
exports.UNSAFE_removeSnowflakeBoundGuildDismissedContent = UNSAFE_removeSnowflakeBoundGuildDismissedContent;
|
||||
exports.isVersionedDismissibleContentDismissed = isVersionedDismissibleContentDismissed;
|
||||
exports.isTimeRecurringDismissibleContentDismissed = isTimeRecurringDismissibleContentDismissed;
|
||||
exports.isTimeRecurringSnowflakeBoundDismissibleContentDismissed = isTimeRecurringSnowflakeBoundDismissibleContentDismissed;
|
||||
exports.UNSAFE_isSingleUseGuildDismissibleContentDismissed = closure4;
|
||||
exports.useIsSingleUseGuildDismissibleContentDismissed = function(a0, a1) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
return require(dependencyMap[13]).useStateFromStores([UserSettingsProtoStore], _fun15720);
|
||||
};
|
||||
exports.UNSAFE_isTimeRecurringGuildDismissibleContentDismissed = UNSAFE_isTimeRecurringGuildDismissibleContentDismissed;
|
||||
exports.UNSAFE_isSnowflakeBoundGuildDismissibleContentDismissed = UNSAFE_isSnowflakeBoundGuildDismissibleContentDismissed;
|
||||
exports.requestMarkDismissibleContentAsShown = requestMarkDismissibleContentAsShown;
|
||||
exports.markDismissibleContentAsDismissedPreProcessing = closure5;
|
||||
exports.markDismissibleContentAsDismissedPostProcessing = closure6;
|
||||
exports.markLatestVersionDismissibleContentAsDismissed = function() {
|
||||
return _markLatestVersionDismissibleContentAsDismissed.apply(this, arguments);
|
||||
};
|
||||
exports.getGuildNextNumTimesDismissed = closure7;
|
||||
exports.getNextNumTimesDismissed = closure8;
|
||||
exports.markVersionedDismissibleContentAsDismissed = closure9;
|
||||
exports.markSnowflakeBoundDismissibleContentAsDismissed = function() {
|
||||
return _markSnowflakeBoundDismissibleContentAsDismissed.apply(this, arguments);
|
||||
};
|
||||
exports.markTimeRecurringDismissibleContentAsDismissed = function() {
|
||||
return _markTimeRecurringDismissibleContentAsDismissed.apply(this, arguments);
|
||||
};
|
||||
exports.trackDismissibleContentShown = closure10;
|
||||
exports.trackDismissibleContentDismissed = closure11;
|
||||
}
|
||||
|
||||
function addVersionedDismissedContent(a0, a1, a2) { // fn#15686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:337, offset: 0x00e3c8c5, size: 102 bytes, params: 4, frame: 14
|
||||
const value = require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */;
|
||||
const updateRecurringDismissibleContentState = value.updateRecurringDismissibleContentState;
|
||||
const object2 = {lastDismissedVersion: a1};
|
||||
const Date = global.Date;
|
||||
object2.lastDismissedAtMs = Date.now().toString();
|
||||
object2.lastDismissedObjectId = '0';
|
||||
object2.numTimesDismissed = a2;
|
||||
return Reflect.apply(updateRecurringDismissibleContentState, value, [a0, object2]);
|
||||
}
|
||||
|
||||
function addTimeRecurringDismissedContent(a0, a1) { // fn#15687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:551, offset: 0x00e3c92b, size: 92 bytes, params: 3, frame: 14
|
||||
const value = require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */;
|
||||
const updateRecurringDismissibleContentState = value.updateRecurringDismissibleContentState;
|
||||
const object2 = {'lastDismissedVersion': 0, 'lastDismissedAtMs': null, 'lastDismissedObjectId': '0'};
|
||||
const Date = global.Date;
|
||||
object2.lastDismissedAtMs = Date.now().toString();
|
||||
object2.numTimesDismissed = a1;
|
||||
return Reflect.apply(updateRecurringDismissibleContentState, value, [a0, object2]);
|
||||
}
|
||||
|
||||
function addSnowflakeBoundDismissedContent(a0, a1, a2) { // fn#15688, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:767, offset: 0x00e3c987, size: 98 bytes, params: 4, frame: 14
|
||||
const value = require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */;
|
||||
const updateRecurringDismissibleContentState = value.updateRecurringDismissibleContentState;
|
||||
const object2 = {lastDismissedVersion: 0};
|
||||
const Date = global.Date;
|
||||
object2.lastDismissedAtMs = Date.now().toString();
|
||||
object2.lastDismissedObjectId = a1;
|
||||
object2.numTimesDismissed = a2;
|
||||
return Reflect.apply(updateRecurringDismissibleContentState, value, [a0, object2]);
|
||||
}
|
||||
|
||||
function UNSAFE_isSingleUseGuildDismissibleContentDismissed(a0, a1) { // fn#15689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:984, offset: 0x00e3c9e9, size: 102 bytes, params: 3, frame: 13
|
||||
const newUserDismissibleContentRegistryModule = require(3994) /* metro dependency 3994: NewUserDismissibleContentRegistry */;
|
||||
if (newUserDismissibleContentRegistryModule.disableNewUserDismissibleContent(a0)) {
|
||||
return true;
|
||||
}
|
||||
const guildDismissedContentState = UserSettingsProtoStore.getGuildDismissedContentState(a1);
|
||||
return guildDismissedContentState != null && guildDismissedContentState[a0] != null && guildDismissedContentState[a0].dismissed === true;
|
||||
}
|
||||
|
||||
function markDismissibleContentAsDismissedPreProcessing(a0, a1) { // fn#15690, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:1316, offset: 0x00e3ca4f, size: 95 bytes, params: 3, frame: 16
|
||||
const isContentShownBinding = isContentShown;
|
||||
const value2 = undefined;
|
||||
if (isContentShownBinding(a0) || a1.forceTrack) {
|
||||
trackDismissibleContentDismissed(a0, a1);
|
||||
}
|
||||
const value = require(12715) /* metro dependency 12715: DismissibleContentFrameworkActionCreators */;
|
||||
value.handleDCDismissed(a0, a1.guildId ?? value2);
|
||||
return value2;
|
||||
}
|
||||
|
||||
function markDismissibleContentAsDismissedPostProcessing(a0, a1) { // fn#15691, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:1502, offset: 0x00e3caae, size: 68 bytes, params: 3, frame: 16
|
||||
const value2 = !DismissibleContentFrameworkStore.hasUserHitDCCap();
|
||||
const removeCandidateContentBinding = removeCandidateContent;
|
||||
const value = undefined;
|
||||
removeCandidateContentBinding({content: a0, groupName: a1 == null ? value : a1.groupName}, value2);
|
||||
return value;
|
||||
}
|
||||
|
||||
function _markLatestVersionDismissibleContentAsDismissed() { // fn#15692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:1645, offset: 0x00e3caf2, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_4(_fun15694).apply(this, arguments);
|
||||
}
|
||||
|
||||
function getGuildNextNumTimesDismissed(a0, a1) { // fn#15695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:1921, offset: 0x00e3cb7a, size: 75 bytes, params: 3, frame: 13
|
||||
const guildDismissedContentState = UserSettingsProtoStore.getGuildDismissedContentState(a1);
|
||||
const value2 = undefined;
|
||||
const r2 = guildDismissedContentState == null ? value2 : guildDismissedContentState[a0];
|
||||
return ((r2 == null ? value2 : r2.numTimesDismissed) ?? 0) + 1;
|
||||
}
|
||||
|
||||
function getNextNumTimesDismissed(a0, a1) { // fn#15696, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:2091, offset: 0x00e3cbc5, size: 100 bytes, params: 3, frame: 6
|
||||
if (a1.numTimesDismissed != null) {
|
||||
return a1.numTimesDismissed;
|
||||
}
|
||||
const userContent = UserSettingsProtoStore.settings.userContent;
|
||||
const value = undefined;
|
||||
const r3 = userContent == null ? value : userContent.recurringDismissibleContentStates[a0];
|
||||
return ((r3 == null ? value : r3.numTimesDismissed) ?? 0) + 1;
|
||||
}
|
||||
|
||||
function _markVersionedDismissibleContentAsDismissed() { // fn#15698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:2465, offset: 0x00e3cc47, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_4(_fun15700).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _markSnowflakeBoundDismissibleContentAsDismissed() { // fn#15701, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:2800, offset: 0x00e3ccd1, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_4(_fun15703).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _markTimeRecurringDismissibleContentAsDismissed() { // fn#15704, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:3169, offset: 0x00e3cd70, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_4(_fun15706).apply(this, arguments);
|
||||
}
|
||||
|
||||
function trackDismissibleContentShown(a0, a1) { // fn#15707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:3512, offset: 0x00e3cdf6, size: 253 bytes, params: 3, frame: 22
|
||||
const getCurrentlyShownCountsBinding = getCurrentlyShownCounts;
|
||||
const value2 = undefined;
|
||||
const value4 = env0_3(getCurrentlyShownCountsBinding(), 2);
|
||||
const property = value4[0];
|
||||
const property2 = value4[1];
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const DISMISSIBLE_CONTENT_SHOWN = AnalyticEvents.DISMISSIBLE_CONTENT_SHOWN;
|
||||
const object2 = {};
|
||||
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
|
||||
object2.type = DismissibleContent[a0];
|
||||
object2.content_count = property;
|
||||
object2.fatigable_content_count = property2;
|
||||
object2.group_name = a1 == null ? value2 : a1.groupName;
|
||||
const CONTENT_TYPES_WITH_BYPASS_FATIGUE = (require(1370) /* metro dependency 1370: DismissibleContentFatigueConfig */).CONTENT_TYPES_WITH_BYPASS_FATIGUE;
|
||||
object2.bypass_fatigue = CONTENT_TYPES_WITH_BYPASS_FATIGUE.has(a0);
|
||||
object2.guild_id = a1 == null ? value2 : a1.guildId;
|
||||
object2.version = a1 == null ? value2 : a1.version;
|
||||
object2.snowflake_id = a1 == null ? value2 : a1.snowflakeId;
|
||||
Reflect.apply(track, defaultImport, [DISMISSIBLE_CONTENT_SHOWN, object2]);
|
||||
return value2;
|
||||
}
|
||||
|
||||
function trackDismissibleContentDismissed(a0, a1) { // fn#15708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:3924, offset: 0x00e3cef3, size: 408 bytes, params: 3, frame: 24
|
||||
const value = a1;
|
||||
const getCurrentlyShownCountsBinding = getCurrentlyShownCounts;
|
||||
const value3 = undefined;
|
||||
const property = env0_3(getCurrentlyShownCountsBinding(), 1)[0];
|
||||
const renderedAtTimestamp = DismissibleContentFrameworkStore.getRenderedAtTimestamp(a0);
|
||||
const Date = global.Date;
|
||||
const date = new Date();
|
||||
const value9 = null;
|
||||
const r8 = value9 == renderedAtTimestamp ? value9 : date.getTime() - renderedAtTimestamp;
|
||||
const r7 = value9 != (value9 == value ? value3 : value.guildId) ? getGuildNextNumTimesDismissed(a0,
|
||||
value.guildId) : getNextNumTimesDismissed(a0, value9 != value ? value : {});
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const DISMISSIBLE_CONTENT_DISMISSED = AnalyticEvents.DISMISSIBLE_CONTENT_DISMISSED;
|
||||
const object2 = {};
|
||||
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
|
||||
object2.type = DismissibleContent[a0];
|
||||
const dismissAction = value9 == value ? value3 : value.dismissAction;
|
||||
object2.action = value9 != dismissAction ? dismissAction : ContentDismissActionType.UNKNOWN;
|
||||
object2.content_count = property;
|
||||
object2.group_name = value9 == value ? value3 : value.groupName;
|
||||
const CONTENT_TYPES_WITH_BYPASS_FATIGUE = (require(1370) /* metro dependency 1370: DismissibleContentFatigueConfig */).CONTENT_TYPES_WITH_BYPASS_FATIGUE;
|
||||
object2.bypass_fatigue = CONTENT_TYPES_WITH_BYPASS_FATIGUE.has(a0);
|
||||
object2.guild_id = value9 == value ? value3 : value.guildId;
|
||||
object2.shown_duration = r8;
|
||||
object2.version = value9 == value ? value3 : value.version;
|
||||
object2.num_times_dismissed = r7;
|
||||
object2.snowflake_id = value9 == value ? value3 : value.snowflakeId;
|
||||
Reflect.apply(track, defaultImport, [DISMISSIBLE_CONTENT_DISMISSED, object2]);
|
||||
return value3;
|
||||
}
|
||||
|
||||
function getDismissedRecurringDismissibleContentState(a0) { // fn#15709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:4786, offset: 0x00e3d08b, size: 307 bytes, params: 2, frame: 20
|
||||
var r5;
|
||||
var value;
|
||||
const userContent = UserSettingsProtoStore.settings.userContent;
|
||||
const value2 = undefined;
|
||||
const r4 = userContent == null ? value2 : userContent.recurringDismissibleContentStates[a0];
|
||||
const object2 = {};
|
||||
const isVersionedDismissibleContent2 = (require(1366) /* metro dependency 1366: DismissibleContentTypes */).isVersionedDismissibleContent(a0);
|
||||
const value3 = 0;
|
||||
object2.lastDismissedVersion = isVersionedDismissibleContent2 ? (require(1377) /* metro dependency 1377: VersionedDismissibleContentUtils */).getVersionedDismissibleContentCurrentVersion(a0) : value3;
|
||||
const Date = global.Date;
|
||||
const value5 = Object.create(Date.prototype, {constructor: {value: Date}});
|
||||
const date = new Date();
|
||||
object2.lastDismissedAtMs = (date instanceof Object ? date : value5).getTime().toString();
|
||||
if ((require(1366) /* metro dependency 1366: DismissibleContentTypes */).isSnowflakeBoundDismissibleContent(a0)) {
|
||||
value = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
value = value.fromTimestamp(global.Date.now() + 2592000000);
|
||||
r5 = value;
|
||||
} else {
|
||||
r5 = '0';
|
||||
}
|
||||
object2.lastDismissedObjectId = r5;
|
||||
object2.numTimesDismissed = (r4 == null ? value2 : r4.numTimesDismissed) ?? value3;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function UNSAFE_addGuildDismissedContent(a0, a1, a2) { // fn#15710, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:5519, offset: 0x00e3d1be, size: 96 bytes, params: 4, frame: 15
|
||||
const value = require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */;
|
||||
const updateGuildDismissedContent = value.updateGuildDismissedContent;
|
||||
const object2 = {'dismissed': true, 'lastDismissedVersion': 0, 'lastDismissedAtMs': null,
|
||||
'lastDismissedObjectId': '0'};
|
||||
const Date = global.Date;
|
||||
object2.lastDismissedAtMs = Date.now().toString();
|
||||
object2.numTimesDismissed = a2;
|
||||
return Reflect.apply(updateGuildDismissedContent, value, [a0, a1, object2]);
|
||||
}
|
||||
|
||||
function UNSAFE_removeGuildDismissedContent(a0, a1, a2) { // fn#15711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:5778, offset: 0x00e3d21e, size: 100 bytes, params: 4, frame: 15
|
||||
const value = require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */;
|
||||
const updateGuildDismissedContent = value.updateGuildDismissedContent;
|
||||
const object2 = {'dismissed': false, 'lastDismissedVersion': 0, 'lastDismissedAtMs': null,
|
||||
'lastDismissedObjectId': '0'};
|
||||
const Date = global.Date;
|
||||
object2.lastDismissedAtMs = Date.now().toString();
|
||||
object2.numTimesDismissed = a2;
|
||||
return Reflect.apply(updateGuildDismissedContent, value, [a0, a1, object2]);
|
||||
}
|
||||
|
||||
function UNSAFE_removeTimeRecurringGuildDismissedContent(a0, a1, a2) { // fn#15713, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:6335, offset: 0x00e3d282, size: 64 bytes, params: 4, frame: 15
|
||||
return (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).updateGuildDismissedContent(a0,
|
||||
a1, {'dismissed': false, 'lastDismissedVersion': 0, 'lastDismissedAtMs': '0', 'lastDismissedObjectId': '0',
|
||||
numTimesDismissed: a2});
|
||||
}
|
||||
|
||||
function UNSAFE_addSnowflakeBoundGuildDismissedContent(a0, a1, a2, a3) { // fn#15714, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:6603, offset: 0x00e3d2c2, size: 103 bytes, params: 5, frame: 15
|
||||
const value = require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */;
|
||||
const updateGuildDismissedContent = value.updateGuildDismissedContent;
|
||||
const object2 = {'dismissed': false, 'lastDismissedVersion': 0};
|
||||
const Date = global.Date;
|
||||
object2.lastDismissedAtMs = Date.now().toString();
|
||||
object2.lastDismissedObjectId = a1;
|
||||
object2.numTimesDismissed = a3;
|
||||
return Reflect.apply(updateGuildDismissedContent, value, [a0, a2, object2]);
|
||||
}
|
||||
|
||||
function isVersionedDismissibleContentDismissed(a0, a1) { // fn#15716, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:7152, offset: 0x00e3d329, size: 169 bytes, params: 3, frame: 16
|
||||
var r3;
|
||||
let value = a1;
|
||||
const value3 = undefined;
|
||||
const newUserDismissibleContentRegistryModule = require(3994) /* metro dependency 3994: NewUserDismissibleContentRegistry */;
|
||||
if (newUserDismissibleContentRegistryModule.disableNewUserDismissibleContent(a0)) {
|
||||
return {'isDismissed': true, 'lastDismissedVersion': null};
|
||||
}
|
||||
const userContent = UserSettingsProtoStore.settings.userContent;
|
||||
const lastDismissedVersion = userContent == null || userContent.recurringDismissibleContentStates[a0] == null ? value3 : userContent.recurringDismissibleContentStates[a0].lastDismissedVersion;
|
||||
if (value != null) {
|
||||
r3 = value;
|
||||
} else {
|
||||
value = require(1377) /* metro dependency 1377: VersionedDismissibleContentUtils */;
|
||||
value = value.getVersionedDismissibleContentCurrentVersion(a0);
|
||||
r3 = value;
|
||||
}
|
||||
return {isDismissed: lastDismissedVersion != null && lastDismissedVersion >= r3,
|
||||
lastDismissedVersion: lastDismissedVersion};
|
||||
}
|
||||
|
||||
function isTimeRecurringDismissibleContentDismissed(a0, a1) { // fn#15717, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:7598, offset: 0x00e3d3d2, size: 304 bytes, params: 3, frame: 17
|
||||
var r4;
|
||||
var r3;
|
||||
var value3;
|
||||
const value2 = undefined;
|
||||
const newUserDismissibleContentRegistryModule = require(3994) /* metro dependency 3994: NewUserDismissibleContentRegistry */;
|
||||
if (newUserDismissibleContentRegistryModule.disableNewUserDismissibleContent(a0)) {
|
||||
return {'isDismissed': true, 'lastDismissedAtMs': null};
|
||||
}
|
||||
const userContent = UserSettingsProtoStore.settings.userContent;
|
||||
const lastDismissedAtMs = userContent == null || userContent.recurringDismissibleContentStates[a0] == null ? value2 : userContent.recurringDismissibleContentStates[a0].lastDismissedAtMs;
|
||||
const r2 = lastDismissedAtMs != null ? lastDismissedAtMs === '0' || global.Number.isNaN(global.Number(lastDismissedAtMs)) ? value2 : global.Number(lastDismissedAtMs) : value2;
|
||||
if (value2 === r2) {
|
||||
return {isDismissed: false, lastDismissedAtMs: value2};
|
||||
}
|
||||
let value = true;
|
||||
if (a1 != null) {
|
||||
value = r2 + a1.cooldownDurationMs;
|
||||
value3 = global.Date.now();
|
||||
r4 = a1.showAfterTimestamp == null || value3 >= a1.showAfterTimestamp && r2 <= a1.showAfterTimestamp;
|
||||
value = value3 < value;
|
||||
r3 = value || !r4;
|
||||
} else {
|
||||
r3 = value;
|
||||
}
|
||||
return {isDismissed: r3, lastDismissedAtMs: r2};
|
||||
}
|
||||
|
||||
function isTimeRecurringSnowflakeBoundDismissibleContentDismissed(a0, a1, a2) { // fn#15718, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:8254, offset: 0x00e3d502, size: 378 bytes, params: 4, frame: 21
|
||||
var r0;
|
||||
var r1;
|
||||
var value5;
|
||||
var value6;
|
||||
var value;
|
||||
const value2 = undefined;
|
||||
const newUserDismissibleContentRegistryModule = require(3994) /* metro dependency 3994: NewUserDismissibleContentRegistry */;
|
||||
if (newUserDismissibleContentRegistryModule.disableNewUserDismissibleContent(a0)) {
|
||||
return true;
|
||||
}
|
||||
let userContent = UserSettingsProtoStore.settings.userContent;
|
||||
const lastDismissedObjectId = userContent == null || userContent.recurringDismissibleContentStates[a0] == null ? value2 : userContent.recurringDismissibleContentStates[a0].lastDismissedObjectId;
|
||||
userContent = UserSettingsProtoStore.settings.userContent;
|
||||
const lastDismissedAtMs = userContent == null || userContent.recurringDismissibleContentStates[a0] == null ? value2 : userContent.recurringDismissibleContentStates[a0].lastDismissedAtMs;
|
||||
const r10 = lastDismissedAtMs != null ? lastDismissedAtMs === '0' || global.Number.isNaN(global.Number(lastDismissedAtMs)) ? value2 : global.Number(lastDismissedAtMs) : value2;
|
||||
const value4 = false;
|
||||
if (a2 != null) {
|
||||
if (r10 != null) {
|
||||
value5 = r10 + a2.cooldownDurationMs;
|
||||
value6 = global.Date.now();
|
||||
r0 = value6 < value5 || !(a2.showAfterTimestamp == null || value6 >= a2.showAfterTimestamp && r10 <= a2.showAfterTimestamp);
|
||||
} else {
|
||||
r0 = value4;
|
||||
}
|
||||
} else {
|
||||
r0 = value4;
|
||||
}
|
||||
const value12 = lastDismissedObjectId != null;
|
||||
if (value12) {
|
||||
value = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
value = value.compare(a1, lastDismissedObjectId);
|
||||
value = value !== 1;
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = value12;
|
||||
}
|
||||
r0 = r0 && r1;
|
||||
return r0;
|
||||
}
|
||||
|
||||
function useIsSingleUseGuildDismissibleContentDismissed(a0, a1) { // fn#15719, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:9055, offset: 0x00e3d67c, size: 71 bytes, params: 3, frame: 14
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([UserSettingsProtoStore], _fun15720);
|
||||
}
|
||||
|
||||
function UNSAFE_isTimeRecurringGuildDismissibleContentDismissed(a0, a1) { // fn#15721, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:9276, offset: 0x00e3d6df, size: 123 bytes, params: 3, frame: 13
|
||||
const newUserDismissibleContentRegistryModule = require(3994) /* metro dependency 3994: NewUserDismissibleContentRegistry */;
|
||||
if (newUserDismissibleContentRegistryModule.disableNewUserDismissibleContent(a0)) {
|
||||
return true;
|
||||
}
|
||||
const guildDismissedContentState = UserSettingsProtoStore.getGuildDismissedContentState(a1);
|
||||
return guildDismissedContentState != null && guildDismissedContentState[a0] != null && guildDismissedContentState[a0].lastDismissedAtMs != null && guildDismissedContentState[a0].lastDismissedAtMs !== '0';
|
||||
}
|
||||
|
||||
function UNSAFE_isSnowflakeBoundGuildDismissibleContentDismissed(a0, a1) { // fn#15722, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:9589, offset: 0x00e3d75a, size: 123 bytes, params: 3, frame: 13
|
||||
const newUserDismissibleContentRegistryModule = require(3994) /* metro dependency 3994: NewUserDismissibleContentRegistry */;
|
||||
if (newUserDismissibleContentRegistryModule.disableNewUserDismissibleContent(a0)) {
|
||||
return true;
|
||||
}
|
||||
const guildDismissedContentState = UserSettingsProtoStore.getGuildDismissedContentState(a1);
|
||||
return guildDismissedContentState != null && guildDismissedContentState[a0] != null && guildDismissedContentState[a0].lastDismissedObjectId != null && guildDismissedContentState[a0].lastDismissedObjectId !== '0';
|
||||
}
|
||||
|
||||
function requestMarkDismissibleContentAsShown(a0, a1, a2, a3) { // fn#15723, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:9892, offset: 0x00e3d7d5, size: 219 bytes, params: 5, frame: 20
|
||||
const value = a2;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const isContentShownBinding = isContentShown;
|
||||
const value3 = undefined;
|
||||
if (!isContentShownBinding(a0)) {
|
||||
if (!DismissibleContentFrameworkStore.hasUserHitDCCap(a0, a1 == null ? value3 : a1.guildId)) {
|
||||
if (!(value && !(a3 == null && env0_14.has(a0)))) {
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'DCF_EVENT_LOGGED',
|
||||
eventType: DCFEventTypes.DC_SHOW_REQUEST, dismissibleContent: a0});
|
||||
addCandidateContent({content: a0, groupName: a1 == null ? value3 : a1.groupName, onAdded: onAdded});
|
||||
}
|
||||
}
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
|
||||
function* _fun15694(a0, a1) { // fn#15694, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:1762, offset: 0x00e3cb2b, size: 79 bytes, params: 3, frame: 16
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
yield env2_24(a0, env2_0(env2_2[9]).getVersionedDismissibleContentCurrentVersion(a0), a1);
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun15700(a0, a1, a2) { // fn#15700, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:2574, offset: 0x00e3cc80, size: 81 bytes, params: 4, frame: 18
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var value3 = env2_23(a0, a2);
|
||||
env2_19(a0, a2);
|
||||
yield env2_15(a0, a1, value3);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
env2_20(a0, a2);
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun15703(a0, a1, a2) { // fn#15703, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:2919, offset: 0x00e3cd0a, size: 102 bytes, params: 4, frame: 20
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var value3 = env2_23(a0, a2);
|
||||
var binding = env2_19;
|
||||
var object2 = {};
|
||||
copyDataProperties(object2, a2, undefined);
|
||||
object2['snowflakeId'] = a1;
|
||||
binding(a0, object2);
|
||||
yield env2_17(a0, a1, value3);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
env2_20(a0, a2);
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun15706(a0, a1) { // fn#15706, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:3286, offset: 0x00e3cda9, size: 77 bytes, params: 3, frame: 16
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var value3 = env2_23(a0, a1);
|
||||
env2_19(a0, a1);
|
||||
yield env2_16(a0, value3);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
env2_20(a0, a1);
|
||||
}
|
||||
}
|
||||
|
||||
function onAdded() { // fn#15724, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:10189, owner: requestMarkDismissibleContentAsShown.onAdded, offset: 0x00e3d8b0, size: 126 bytes, params: 1, frame: 18
|
||||
const value = environment.__proto__;
|
||||
const value2 = undefined;
|
||||
const dismissibleContentFrameworkActionCreatorsModule = require(12715) /* metro dependency 12715: DismissibleContentFrameworkActionCreators */;
|
||||
dismissibleContentFrameworkActionCreatorsModule.handleDCShownToUser(env0_0,
|
||||
require == null ? value2 : require.guildId);
|
||||
trackDismissibleContentShown(env0_0, require);
|
||||
if (!(require == null || require.onShown == null)) {
|
||||
require.onShown();
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,130 @@
|
||||
/* Metro module 3994; source: modules/dismissible_content/NewUserDismissibleContentRegistry.tsx; dependencies: [1226, 1369, 1365, 672, 632, 21, 2] */
|
||||
function _fun32799(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4152:6, offset: 0x0101e67a, size: 925 bytes, params: 8, frame: 21
|
||||
var object2;
|
||||
let env0_0 = require;
|
||||
const closure = isUserAccountOldEnough;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const dismissibleContentFrameworkStore = importDefault(1369) /* metro dependency 1369: DismissibleContentFrameworkStore */;
|
||||
object2 = {};
|
||||
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
|
||||
const MJ_NEW_USER_CHAT_BAR = DismissibleContent.MJ_NEW_USER_CHAT_BAR;
|
||||
object2[MJ_NEW_USER_CHAT_BAR] = 0;
|
||||
const NUX_GUILD_CHANNEL_EXPLAINER = DismissibleContent.NUX_GUILD_CHANNEL_EXPLAINER;
|
||||
object2[NUX_GUILD_CHANNEL_EXPLAINER] = 0;
|
||||
const SEEN_LAUNCH_WELCOME = DismissibleContent.SEEN_LAUNCH_WELCOME;
|
||||
object2[SEEN_LAUNCH_WELCOME] = 0;
|
||||
const SEEN_OLD_DESIGN = DismissibleContent.SEEN_OLD_DESIGN;
|
||||
object2[SEEN_OLD_DESIGN] = 0;
|
||||
const REFERRAL_PROGRAM_PROGRESS_BAR_TOGGLE = DismissibleContent.REFERRAL_PROGRAM_PROGRESS_BAR_TOGGLE;
|
||||
object2[REFERRAL_PROGRAM_PROGRESS_BAR_TOGGLE] = 0;
|
||||
const WHATS_NEW_APP_STYLES_JUNE_2024_FLIP = DismissibleContent.WHATS_NEW_APP_STYLES_JUNE_2024_FLIP;
|
||||
object2[WHATS_NEW_APP_STYLES_JUNE_2024_FLIP] = 0;
|
||||
const WHATS_NEW_REFERRAL_PROGRAM_FLIP = DismissibleContent.WHATS_NEW_REFERRAL_PROGRAM_FLIP;
|
||||
object2[WHATS_NEW_REFERRAL_PROGRAM_FLIP] = 0;
|
||||
const WHATS_NEW_APP_STYLES_JUNE_2024_NITRO_BADGE = DismissibleContent.WHATS_NEW_APP_STYLES_JUNE_2024_NITRO_BADGE;
|
||||
object2[WHATS_NEW_APP_STYLES_JUNE_2024_NITRO_BADGE] = 0;
|
||||
const WHATS_NEW_REFERRAL_PROGRAM_NITRO_BADGE = DismissibleContent.WHATS_NEW_REFERRAL_PROGRAM_NITRO_BADGE;
|
||||
object2[WHATS_NEW_REFERRAL_PROGRAM_NITRO_BADGE] = 0;
|
||||
const WHATS_NEW_SERVER_PROFILE_FLIP = DismissibleContent.WHATS_NEW_SERVER_PROFILE_FLIP;
|
||||
object2[WHATS_NEW_SERVER_PROFILE_FLIP] = 0;
|
||||
const WHATS_NEW_SERVER_PROFILE_BADGE = DismissibleContent.WHATS_NEW_SERVER_PROFILE_BADGE;
|
||||
object2[WHATS_NEW_SERVER_PROFILE_BADGE] = 0;
|
||||
const WHATS_NEW_TENURE_BADGE_REWARD = DismissibleContent.WHATS_NEW_TENURE_BADGE_REWARD;
|
||||
object2[WHATS_NEW_TENURE_BADGE_REWARD] = 0;
|
||||
const FRACTIONAL_NITRO_DURATION_LEFT_PILL = DismissibleContent.FRACTIONAL_NITRO_DURATION_LEFT_PILL;
|
||||
object2[FRACTIONAL_NITRO_DURATION_LEFT_PILL] = 0;
|
||||
const TRIAL_NUX_EMOJI_BUTTON = DismissibleContent.TRIAL_NUX_EMOJI_BUTTON;
|
||||
object2[TRIAL_NUX_EMOJI_BUTTON] = 0;
|
||||
const TRIAL_NUX_EMOJI_PICKER = DismissibleContent.TRIAL_NUX_EMOJI_PICKER;
|
||||
object2[TRIAL_NUX_EMOJI_PICKER] = 0;
|
||||
const TRIAL_NUX_STREAM_COACH_MARK = DismissibleContent.TRIAL_NUX_STREAM_COACH_MARK;
|
||||
object2[TRIAL_NUX_STREAM_COACH_MARK] = 0;
|
||||
const OVERLAY_OOP_SETTINGS_NUX = DismissibleContent.OVERLAY_OOP_SETTINGS_NUX;
|
||||
object2[OVERLAY_OOP_SETTINGS_NUX] = 0;
|
||||
const OVERLAY_OOP_WELCOME_NUX = DismissibleContent.OVERLAY_OOP_WELCOME_NUX;
|
||||
object2[OVERLAY_OOP_WELCOME_NUX] = 0;
|
||||
const OVERLAY_OOP_WELCOME_BACKGROUND_NUX = DismissibleContent.OVERLAY_OOP_WELCOME_BACKGROUND_NUX;
|
||||
object2[OVERLAY_OOP_WELCOME_BACKGROUND_NUX] = 0;
|
||||
const OVERLAY_OOP_WELCOME_SWITCH_FROM_IP_NUX = DismissibleContent.OVERLAY_OOP_WELCOME_SWITCH_FROM_IP_NUX;
|
||||
object2[OVERLAY_OOP_WELCOME_SWITCH_FROM_IP_NUX] = 0;
|
||||
const OVERLAY_OOP_WELCOME_BACKGROUND_SWITCH_FROM_IP_NUX = DismissibleContent.OVERLAY_OOP_WELCOME_BACKGROUND_SWITCH_FROM_IP_NUX;
|
||||
object2[OVERLAY_OOP_WELCOME_BACKGROUND_SWITCH_FROM_IP_NUX] = 0;
|
||||
const REVERSE_TRIAL_NITRO_TAB_BADGE_V2 = DismissibleContent.REVERSE_TRIAL_NITRO_TAB_BADGE_V2;
|
||||
object2[REVERSE_TRIAL_NITRO_TAB_BADGE_V2] = 0;
|
||||
const PERMADECOS_NITRO_TAB_NEW_BADGE = DismissibleContent.PERMADECOS_NITRO_TAB_NEW_BADGE;
|
||||
object2[PERMADECOS_NITRO_TAB_NEW_BADGE] = 0;
|
||||
const PERMADECOS_NITRO_HOME_CARD_NEW_BADGE = DismissibleContent.PERMADECOS_NITRO_HOME_CARD_NEW_BADGE;
|
||||
object2[PERMADECOS_NITRO_HOME_CARD_NEW_BADGE] = 0;
|
||||
const PROFILE_FRAMES_NITRO_TAB_NEW_BADGE = DismissibleContent.PROFILE_FRAMES_NITRO_TAB_NEW_BADGE;
|
||||
object2[PROFILE_FRAMES_NITRO_TAB_NEW_BADGE] = 0;
|
||||
const BOGO_2025_ANNOUNCEMENT_MODAL = DismissibleContent.BOGO_2025_ANNOUNCEMENT_MODAL;
|
||||
object2[BOGO_2025_ANNOUNCEMENT_MODAL] = 0;
|
||||
const NITRO_DROP_REWARD = DismissibleContent.NITRO_DROP_REWARD;
|
||||
object2[NITRO_DROP_REWARD] = 0;
|
||||
const BOUNTIES_SWIPE_UP_NUX = DismissibleContent.BOUNTIES_SWIPE_UP_NUX;
|
||||
object2[BOUNTIES_SWIPE_UP_NUX] = 0;
|
||||
const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
const env0_6 = Millis.DAY;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/dismissible_content/NewUserDismissibleContentRegistry.tsx');
|
||||
exports.useNewUserDismissibleContent = function(a0) {
|
||||
var r0;
|
||||
var value = a0;
|
||||
var value3 = require(dependencyMap[4]).useStateFromStoresObject([AuthenticationStore,
|
||||
DismissibleContentFrameworkStore], _fun32802);
|
||||
var env0_0 = value3.userId;
|
||||
if (value3.newUserMinAgeRequiredOverridden) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.filter(_fun32803);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
};
|
||||
exports.disableNewUserDismissibleContent = disableNewUserDismissibleContent;
|
||||
exports.isUserAccountOldEnough = closure;
|
||||
}
|
||||
|
||||
function isUserAccountOldEnough(a0, a1) { // fn#32800, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4152:1860, offset: 0x0101ea17, size: 73 bytes, params: 3, frame: 15
|
||||
return a0 != null && (importDefault(21) /* metro dependency 21: SnowflakeUtils */).age(a0) >= (env0_5[a1] ?? DAY);
|
||||
}
|
||||
|
||||
function useNewUserDismissibleContent(a0) { // fn#32801, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4152:2086, offset: 0x0101ea60, size: 105 bytes, params: 2, frame: 16
|
||||
var r0;
|
||||
let value = a0;
|
||||
const value3 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStoresObject([AuthenticationStore,
|
||||
DismissibleContentFrameworkStore], function() {
|
||||
var object = {};
|
||||
object.userId = AuthenticationStore.getId();
|
||||
object.newUserMinAgeRequiredOverridden = DismissibleContentFrameworkStore.newUserMinAgeRequiredOverridden;
|
||||
return object;
|
||||
});
|
||||
const env0_0 = value3.userId;
|
||||
if (value3.newUserMinAgeRequiredOverridden) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.filter(function(a0) {
|
||||
return isUserAccountOldEnough(userId, a0);
|
||||
});
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function disableNewUserDismissibleContent(a0) { // fn#32804, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4152:2399, offset: 0x0101eb0c, size: 53 bytes, params: 2, frame: 14
|
||||
var r0;
|
||||
var isUserAccountOldEnoughBinding;
|
||||
var value;
|
||||
const newUserMinAgeRequiredOverridden = DismissibleContentFrameworkStore.newUserMinAgeRequiredOverridden;
|
||||
if (newUserMinAgeRequiredOverridden) {
|
||||
r0 = !newUserMinAgeRequiredOverridden;
|
||||
} else {
|
||||
isUserAccountOldEnoughBinding = isUserAccountOldEnough;
|
||||
value = AuthenticationStore.getId();
|
||||
value = !isUserAccountOldEnoughBinding(value, a0);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
/* Metro module 1374; source: modules/dismissible_content/TaskRunner.tsx; dependencies: [6, 7, 2] */
|
||||
function _fun15838(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#15838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1501:6, offset: 0x00e407d8, size: 124 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const value = _fun15839();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/dismissible_content/TaskRunner.tsx');
|
||||
exports.TaskRunner = value;
|
||||
}
|
||||
|
||||
function _fun15839() { // fn#15839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1501:118, offset: 0x00e40854, size: 101 bytes, params: 1, frame: 15
|
||||
return env0_1(TaskRunner, [{key: 'schedule', value: function(a0, a1) {
|
||||
var env0_0 = this;
|
||||
var env0_1 = a0;
|
||||
this.unschedule();
|
||||
this.timeoutId = global.setTimeout(_fun15842, a1);
|
||||
}}, {key: 'unschedule', value: function() {
|
||||
if (this.scheduled()) {
|
||||
global.clearTimeout(this.timeoutId);
|
||||
this.timeoutId = null;
|
||||
}
|
||||
}}, {key: 'scheduled', value: function() {
|
||||
return this.timeoutId !== null;
|
||||
}}]);
|
||||
}
|
||||
|
||||
function TaskRunner() { // fn#15840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1501:139, offset: 0x00e408b9, size: 35 bytes, params: 1, frame: 13
|
||||
env1_0(this, TaskRunner);
|
||||
this.timeoutId = null;
|
||||
}
|
||||
|
||||
function value_15841(a0, a1) { // fn#15841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1501:225, offset: 0x00e408dc, size: 58 bytes, params: 3, frame: 14
|
||||
const env0_1 = a0;
|
||||
this.unschedule();
|
||||
this.timeoutId = global.setTimeout(_fun15842, a1);
|
||||
}
|
||||
|
||||
function _fun15842() { // fn#15842, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1501:284, offset: 0x00e40916, size: 27 bytes, params: 1, frame: 10
|
||||
env0_0.timeoutId = null;
|
||||
env0_1();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
/* Metro module 1377; source: modules/dismissible_content/VersionedDismissibleContentUtils.tsx; dependencies: [1378, 5174, 6832, 1365, 12712, 12713, 1909, 12714, 1392, 2] */
|
||||
function _fun15848(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#15848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1504:6, offset: 0x00e40bdd, size: 150 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const embeddedActivitiesStore = importDefault(1378) /* metro dependency 1378: EmbeddedActivitiesStore */;
|
||||
const collectiblesMarketingsStore = importDefault(5174) /* metro dependency 5174: CollectiblesMarketingsStore */;
|
||||
const env0_4 = (require(6832) /* metro dependency 6832: SocialLayerStorefrontConstants */).GAME_SHOP_ANNOUNCEMENT_MODAL_VERSION;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/dismissible_content/VersionedDismissibleContentUtils.tsx');
|
||||
exports.getVersionedDismissibleContentCurrentVersion = getVersionedDismissibleContentCurrentVersion;
|
||||
}
|
||||
|
||||
function getVersionedDismissibleContentCurrentVersion(a0) { // fn#15849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1504:308, offset: 0x00e40c73, size: 687 bytes, params: 2, frame: 18
|
||||
var version;
|
||||
var object2;
|
||||
var moduleValue;
|
||||
var getNewestBadgeableVersion;
|
||||
var value;
|
||||
const value2 = undefined;
|
||||
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
|
||||
const COLLECTIBLES_SHOP_ENTRY_MARKETING = DismissibleContent.COLLECTIBLES_SHOP_ENTRY_MARKETING;
|
||||
if (COLLECTIBLES_SHOP_ENTRY_MARKETING === a0) {
|
||||
value = CollectiblesMarketingsStore.getMarketingBySurface((require(12712) /* metro dependency 12712: CollectiblesMarketingSurface */).CollectiblesMarketingSurface.MOBILE_SHOP_BUTTON);
|
||||
version = value == null ? value2 : value.version;
|
||||
value = 0;
|
||||
return version ?? value;
|
||||
}
|
||||
const ACTIVITIES_VOICE_LAUNCHER_BADGE = DismissibleContent.ACTIVITIES_VOICE_LAUNCHER_BADGE;
|
||||
if (ACTIVITIES_VOICE_LAUNCHER_BADGE === a0) {
|
||||
moduleValue = require(12713) /* metro dependency 12713: AppLauncherBadgeUtils */;
|
||||
getNewestBadgeableVersion = moduleValue.getNewestBadgeableVersion;
|
||||
object2 = {};
|
||||
object2.storeState = EmbeddedActivitiesStore.getState();
|
||||
object2.surface = (require(1909) /* metro dependency 1909: Server */).EmbeddedActivitySurfaces.VOICE_LAUNCHER;
|
||||
return Reflect.apply(getNewestBadgeableVersion, moduleValue, [object2]);
|
||||
}
|
||||
const GUILD_POWERUP_NEW_PERK_AVAILABLE_COACHMARK = DismissibleContent.GUILD_POWERUP_NEW_PERK_AVAILABLE_COACHMARK;
|
||||
if (GUILD_POWERUP_NEW_PERK_AVAILABLE_COACHMARK !== a0) {
|
||||
var COLLECTIBLES_SHOP_WIDE_BANNER = DismissibleContent.COLLECTIBLES_SHOP_WIDE_BANNER;
|
||||
if (COLLECTIBLES_SHOP_WIDE_BANNER === a0) {
|
||||
return (require(12714) /* metro dependency 12714: WideBannerDismissibleContentVersion */).getWideBannerDismissibleContentVersion();
|
||||
}
|
||||
var GAME_SHOP_ANNOUNCEMENT_MODAL = DismissibleContent.GAME_SHOP_ANNOUNCEMENT_MODAL;
|
||||
if (GAME_SHOP_ANNOUNCEMENT_MODAL === a0) {
|
||||
return GAME_SHOP_ANNOUNCEMENT_MODAL_VERSION;
|
||||
}
|
||||
var COLLECTIBLES_SHOP_MARVEL_RIVALS_ORBS_REWARD = DismissibleContent.COLLECTIBLES_SHOP_MARVEL_RIVALS_ORBS_REWARD;
|
||||
if (COLLECTIBLES_SHOP_MARVEL_RIVALS_ORBS_REWARD === a0) {
|
||||
return 1;
|
||||
}
|
||||
var GAME_SHOP_ORBS_REWARD_BANNER = DismissibleContent.GAME_SHOP_ORBS_REWARD_BANNER;
|
||||
if (GAME_SHOP_ORBS_REWARD_BANNER === a0) {
|
||||
return 1;
|
||||
}
|
||||
var SLAYER_STOREFRONT_ORBS_REWARDS_ANNOUNCEMENT = DismissibleContent.SLAYER_STOREFRONT_ORBS_REWARDS_ANNOUNCEMENT;
|
||||
if (SLAYER_STOREFRONT_ORBS_REWARDS_ANNOUNCEMENT === a0) {
|
||||
return 1;
|
||||
}
|
||||
var SLAYER_STOREFRONT_ORBS_REWARD_WISHLIST_UPSELL = DismissibleContent.SLAYER_STOREFRONT_ORBS_REWARD_WISHLIST_UPSELL;
|
||||
if (SLAYER_STOREFRONT_ORBS_REWARD_WISHLIST_UPSELL === a0) {
|
||||
return 1;
|
||||
}
|
||||
var SLAYER_STOREFRONT_VC_GIFTING_STREAM_HEADER_NEW_BADGE = DismissibleContent.SLAYER_STOREFRONT_VC_GIFTING_STREAM_HEADER_NEW_BADGE;
|
||||
if (SLAYER_STOREFRONT_VC_GIFTING_STREAM_HEADER_NEW_BADGE === a0) {
|
||||
return 1;
|
||||
}
|
||||
var SLAYER_STOREFRONT_VC_GIFTING_PANEL_APP_WIDGET_CTA = DismissibleContent.SLAYER_STOREFRONT_VC_GIFTING_PANEL_APP_WIDGET_CTA;
|
||||
if (SLAYER_STOREFRONT_VC_GIFTING_PANEL_APP_WIDGET_CTA === a0) {
|
||||
return 1;
|
||||
}
|
||||
var COLLECTIBLES_SHOP_SLAYER_STOREFRONT_PROMOTIONAL_BANNER = DismissibleContent.COLLECTIBLES_SHOP_SLAYER_STOREFRONT_PROMOTIONAL_BANNER;
|
||||
if (COLLECTIBLES_SHOP_SLAYER_STOREFRONT_PROMOTIONAL_BANNER === a0) {
|
||||
return 1;
|
||||
}
|
||||
(require(1392) /* metro dependency 1392: TypeUtils */).assertUnreachable(a0, {andFail: false});
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,111 @@
|
||||
/* Metro module 7013; source: modules/dismissible_content/hooks/useSelectedDismissibleContent.tsx; dependencies: [57, 7014, 7016, 2] */
|
||||
function _fun55539(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55539, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7191:6, offset: 0x013a9a2e, size: 191 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(57) /* metro dependency 57 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/dismissible_content/hooks/useSelectedDismissibleContent.tsx');
|
||||
exports.useSelectedDismissibleContent = useSelectedDismissibleContent;
|
||||
exports.useSelectedSingleUseGuildDismissibleContent = useSelectedSingleUseGuildDismissibleContent;
|
||||
exports.useSelectedVersionedDismissibleContent = useSelectedVersionedDismissibleContent;
|
||||
exports.useSelectedTimeRecurringDismissibleContent = useSelectedTimeRecurringDismissibleContent;
|
||||
exports.useSelectedSnowflakeBoundDismissibleContent = useSelectedSnowflakeBoundDismissibleContent;
|
||||
exports.useSelectedSnowflakeBoundGuildDismissibleContent = useSelectedSnowflakeBoundGuildDismissibleContent;
|
||||
exports.useSelectedTimeRecurringSnowflakeBoundDismissibleContent = useSelectedTimeRecurringSnowflakeBoundDismissibleContent;
|
||||
exports.useSelectedTimeRecurringGuildDismissibleContent = useSelectedTimeRecurringGuildDismissibleContent;
|
||||
}
|
||||
|
||||
function useSelectedDismissibleContent(a0, a1) { // fn#55540, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7191:239, offset: 0x013a9aed, size: 111 bytes, params: 3, frame: 20
|
||||
let value = a2;
|
||||
const r4 = value !== undefined ? value : false;
|
||||
value = env0_2((require(7014) /* metro dependency 7014: useGetDismissibleContent */).useGetDismissibleContent(a0,
|
||||
a1), 2);
|
||||
const property = value[0];
|
||||
const property2 = value[1];
|
||||
(require(7016) /* metro dependency 7016: useSelectedDismissibleContentShared */).useSelectedDismissibleContentShared(property,
|
||||
property2, r4);
|
||||
return [property, property2];
|
||||
}
|
||||
|
||||
function useSelectedSingleUseGuildDismissibleContent(a0, a1, a2) { // fn#55541, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7191:466, offset: 0x013a9b5c, size: 127 bytes, params: 4, frame: 22
|
||||
let value = a3;
|
||||
const r4 = value !== undefined ? value : false;
|
||||
value = env0_2((require(7014) /* metro dependency 7014: useGetDismissibleContent */).UNSAFE_useGetSingleUseGuildDismissibleContent(a0,
|
||||
a1, a2), 2);
|
||||
const property = value[0];
|
||||
const property2 = value[1];
|
||||
(require(7016) /* metro dependency 7016: useSelectedDismissibleContentShared */).useSelectedDismissibleContentShared(property,
|
||||
property2, r4, a1);
|
||||
return [property, property2];
|
||||
}
|
||||
|
||||
function useSelectedVersionedDismissibleContent(a0, a1, a2) { // fn#55542, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7191:729, offset: 0x013a9bdb, size: 115 bytes, params: 4, frame: 21
|
||||
let value = a3;
|
||||
const r4 = value !== undefined ? value : false;
|
||||
value = env0_2((require(7014) /* metro dependency 7014: useGetDismissibleContent */).useGetVersionedDismissibleContent(a0,
|
||||
a1, a2), 2);
|
||||
const property = value[0];
|
||||
const property2 = value[1];
|
||||
(require(7016) /* metro dependency 7016: useSelectedDismissibleContentShared */).useSelectedDismissibleContentShared(property,
|
||||
property2, r4);
|
||||
return [property, property2];
|
||||
}
|
||||
|
||||
function useSelectedTimeRecurringDismissibleContent(a0, a1, a2) { // fn#55543, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7191:977, offset: 0x013a9c4e, size: 115 bytes, params: 4, frame: 21
|
||||
let value = a3;
|
||||
const r4 = value !== undefined ? value : false;
|
||||
value = env0_2((require(7014) /* metro dependency 7014: useGetDismissibleContent */).useGetTimeRecurringDismissibleContent(a0,
|
||||
a1, a2), 2);
|
||||
const property = value[0];
|
||||
const property2 = value[1];
|
||||
(require(7016) /* metro dependency 7016: useSelectedDismissibleContentShared */).useSelectedDismissibleContentShared(property,
|
||||
property2, r4);
|
||||
return [property, property2];
|
||||
}
|
||||
|
||||
function useSelectedSnowflakeBoundDismissibleContent(a0, a1, a2) { // fn#55544, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7191:1234, offset: 0x013a9cc1, size: 115 bytes, params: 4, frame: 21
|
||||
let value = a3;
|
||||
const r4 = value !== undefined ? value : false;
|
||||
value = env0_2((require(7014) /* metro dependency 7014: useGetDismissibleContent */).useGetSnowflakeBoundDismissibleContent(a0,
|
||||
a1, a2), 2);
|
||||
const property = value[0];
|
||||
const property2 = value[1];
|
||||
(require(7016) /* metro dependency 7016: useSelectedDismissibleContentShared */).useSelectedDismissibleContentShared(property,
|
||||
property2, r4);
|
||||
return [property, property2];
|
||||
}
|
||||
|
||||
function useSelectedSnowflakeBoundGuildDismissibleContent(a0, a1, a2, a3) { // fn#55545, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7191:1498, offset: 0x013a9d34, size: 133 bytes, params: 5, frame: 23
|
||||
let value = a4;
|
||||
const r4 = value !== undefined ? value : false;
|
||||
value = env0_2((require(7014) /* metro dependency 7014: useGetDismissibleContent */).UNSAFE_useGetSnowflakeBoundGuildDismissibleContent(a0,
|
||||
a2, a1, a3), 2);
|
||||
const property = value[0];
|
||||
const property2 = value[1];
|
||||
(require(7016) /* metro dependency 7016: useSelectedDismissibleContentShared */).useSelectedDismissibleContentShared(property,
|
||||
property2, r4, a1);
|
||||
return [property, property2];
|
||||
}
|
||||
|
||||
function useSelectedTimeRecurringSnowflakeBoundDismissibleContent(a0, a1, a2, a3) { // fn#55546, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7191:1793, offset: 0x013a9db9, size: 118 bytes, params: 5, frame: 23
|
||||
let value = a4;
|
||||
const r4 = value !== undefined ? value : false;
|
||||
value = env0_2((require(7014) /* metro dependency 7014: useGetDismissibleContent */).useGetTimeRecurringSnowflakeBoundDismissibleContent(a0,
|
||||
a2, a1, a3), 2);
|
||||
const property = value[0];
|
||||
const property2 = value[1];
|
||||
(require(7016) /* metro dependency 7016: useSelectedDismissibleContentShared */).useSelectedDismissibleContentShared(property,
|
||||
property2, r4);
|
||||
return [property, property2];
|
||||
}
|
||||
|
||||
function useSelectedTimeRecurringGuildDismissibleContent(a0, a1, a2, a3) { // fn#55547, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7191:2086, offset: 0x013a9e2f, size: 123 bytes, params: 5, frame: 22
|
||||
const value = env0_2((require(7014) /* metro dependency 7014: useGetDismissibleContent */).UNSAFE_useGetTimeRecurringGuildDismissibleContent(a0,
|
||||
a1, a2, a3), 2);
|
||||
const property = value[0];
|
||||
const property2 = value[1];
|
||||
(require(7016) /* metro dependency 7016: useSelectedDismissibleContentShared */).useSelectedDismissibleContentShared(property,
|
||||
property2, false, a1);
|
||||
return [property, property2];
|
||||
}
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
/* Metro module 11088; source: modules/dismissible_content/native/DismissibleActionSheet.tsx; dependencies: [31, 4594, 4080, 2] */
|
||||
function _fun84899(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#84899, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11274:6, offset: 0x01f5b7ec, size: 117 bytes, params: 8, frame: 17
|
||||
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/dismissible_content/native/DismissibleActionSheet.tsx');
|
||||
exports.DismissibleActionSheet = DismissibleActionSheet;
|
||||
}
|
||||
|
||||
function DismissibleActionSheet(a0) { // fn#84900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11274:226, offset: 0x01f5b861, size: 96 bytes, params: 2, frame: 15
|
||||
const env0_0 = a0;
|
||||
(importDefault(4594) /* metro dependency 4594: useMountEffect */)(_fun84901);
|
||||
env0_2.useEffect(function() {
|
||||
return _fun84904;
|
||||
}, [a0.actionSheetKey, a0.hideSheetOnUnmount]);
|
||||
return null;
|
||||
}
|
||||
|
||||
function _fun84901() { // fn#84901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11274:277, offset: 0x01f5b8c1, size: 93 bytes, params: 1, frame: 18
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
|
||||
const openLazy = value.openLazy;
|
||||
const binding = env0_0;
|
||||
const value3 = binding.importer();
|
||||
const actionSheetKey = binding.actionSheetKey;
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, binding, undefined);
|
||||
object2['markAsDismissed'] = markAsDismissed;
|
||||
Reflect.apply(openLazy, value, [value3, actionSheetKey, object2]);
|
||||
}
|
||||
|
||||
function _fun84903() { // fn#84903, offset: 0x01f5b95f, size: 11 bytes, params: 1, frame: 1
|
||||
return _fun84904;
|
||||
}
|
||||
|
||||
function markAsDismissed(a0) { // fn#84902, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11274:351, offset: 0x01f5b91e, size: 65 bytes, params: 2, frame: 13
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
|
||||
const hideActionSheet = value.hideActionSheet;
|
||||
const binding = env1_0;
|
||||
Reflect.apply(hideActionSheet, value, [binding.actionSheetKey]);
|
||||
binding.markAsDismissed(a0);
|
||||
}
|
||||
|
||||
function _fun84904() { // fn#84904, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11274:441, offset: 0x01f5b96a, size: 85 bytes, params: 1, frame: 12
|
||||
var value3;
|
||||
var defaultImport;
|
||||
if (env1_0.hideSheetOnUnmount != null && env1_0.hideSheetOnUnmount) {
|
||||
value3 = environment.__proto__.__proto__;
|
||||
defaultImport = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
|
||||
defaultImport.hideActionSheet(env1_0.actionSheetKey);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
/* Metro module 13921; source: modules/dismissible_content/native/DismissibleNewBadge.tsx; dependencies: [31, 7047, 33, 4501, 697, 10357, 477, 1305, 4589, 676, 2] */
|
||||
function _fun105683(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14118:6, offset: 0x022bfbfc, size: 262 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(7047) /* metro dependency 7047: ColorConstants */).Gradients;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const object = {};
|
||||
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object.marginLeft = PX_4;
|
||||
const env0_5 = Reflect.apply(createStyles, createStylesModule, [{newTag: {backgroundColor: 'transparent'},
|
||||
newTagContainer: object}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/dismissible_content/native/DismissibleNewBadge.tsx');
|
||||
exports.default = _default_105684;
|
||||
}
|
||||
|
||||
function _default_105684({dismissibleContent, containerStyle, noGradient, newPremiumStyle, colors, variantOverride}) { // fn#105684, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14118:290, offset: 0x022bfd02, size: 143 bytes, params: 2, frame: 16
|
||||
const env0_6 = useStyles();
|
||||
return ((Component) => <Component contentTypes={[dismissibleContent]}>{children_105685}</Component>)(importDefault(10357) /* metro dependency 10357: SelectedDismissibleContent */);
|
||||
}
|
||||
|
||||
function _default_105684Children({visibleContent}) { // fn#105685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14118:446, owner: _default_105684.children, offset: 0x022bfd91, size: 520 bytes, params: 2, frame: 21
|
||||
var r4;
|
||||
var r0;
|
||||
var defaultImport;
|
||||
const HorizontalGradient = (require(676) /* metro dependency 676: ConstantsIOS */).HorizontalGradient;
|
||||
var unsafe_rawColors;
|
||||
var items2;
|
||||
const NewTag = (require(1305) /* metro dependency 1305: native */).NewTag;
|
||||
if (visibleContent !== dismissibleContent) {
|
||||
return null;
|
||||
}
|
||||
const r5 = variantOverride ?? ((require(477) /* metro dependency 477: PlatformUtils */).isAndroid() ? 'text-xxs/bold' : 'text-xs/bold');
|
||||
if (noGradient) {
|
||||
r0 = <NewTag variant={r5} containerStyle={[styles.newTagContainer, containerStyle]} />;
|
||||
} else if (newPremiumStyle) {
|
||||
r0 = <NewTag variant={r5} containerStyle={styles.newTag} gradient colors={Gradients.PREMIUM_TIER_2_TRI_COLOR} />;
|
||||
} else {
|
||||
defaultImport = importDefault(4589) /* metro dependency 4589 */;
|
||||
var defaultImportProps2 = {style: styles.newTagContainer, start: HorizontalGradient.START,
|
||||
end: HorizontalGradient.END};
|
||||
if (colors != null) {
|
||||
r4 = colors;
|
||||
} else {
|
||||
unsafe_rawColors = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors;
|
||||
items2 = [unsafe_rawColors.PREMIUM_TIER_2_PURPLE];
|
||||
unsafe_rawColors = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors;
|
||||
items2[1] = unsafe_rawColors.PREMIUM_TIER_2_PINK;
|
||||
r4 = items2;
|
||||
}
|
||||
defaultImportProps2.colors = r4;
|
||||
r0 = ((Component) => <Component {...defaultImportProps2}><NewTag containerStyle={styles.newTag} variant={r5} /></Component>)(defaultImport);
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
/* Metro module 10357; source: modules/dismissible_content/native/SelectedDismissibleContent.tsx; dependencies: [57, 31, 33, 7013, 2] */
|
||||
function _fun80243(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10543:6, offset: 0x01e72b58, size: 214 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(57) /* metro dependency 57 */;
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_3 = value.Fragment;
|
||||
const env0_4 = value.jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/dismissible_content/native/SelectedDismissibleContent.tsx');
|
||||
exports.default = SelectedDismissibleContent;
|
||||
exports.SelectedVersionedDismissibleContent = SelectedVersionedDismissibleContent;
|
||||
exports.SelectedTimeRecurringDismissibleContent = SelectedTimeRecurringDismissibleContent;
|
||||
exports.SelectedSnowflakeBoundDismissibleContent = SelectedSnowflakeBoundDismissibleContent;
|
||||
exports.SelectedTimeReccuringSnowflakeBoundDismissibleContent = SelectedTimeReccuringSnowflakeBoundDismissibleContent;
|
||||
}
|
||||
|
||||
function SelectedDismissibleContent(a0) { // fn#80244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10543:256, offset: 0x01e72c2e, size: 129 bytes, params: 2, frame: 18
|
||||
const contentTypes = a0.contentTypes;
|
||||
const children = a0.children;
|
||||
const value3 = env0_2((require(7013) /* metro dependency 7013: useSelectedDismissibleContent */).useSelectedDismissibleContent(contentTypes,
|
||||
a0.groupName, a0.bypassAutoDismiss), 2);
|
||||
return (
|
||||
<>
|
||||
{children({visibleContent: value3[0], markAsDismissed: value3[1]})}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function SelectedVersionedDismissibleContent({contentType, latestVersion, groupName, bypassAutoDismiss, children}) { // fn#80245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10543:529, offset: 0x01e72caf, size: 138 bytes, params: 2, frame: 20
|
||||
const value3 = env0_2((require(7013) /* metro dependency 7013: useSelectedDismissibleContent */).useSelectedVersionedDismissibleContent(contentType,
|
||||
latestVersion, groupName, bypassAutoDismiss), 2);
|
||||
return (
|
||||
<>
|
||||
{children({visibleContent: value3[0], markAsDismissed: value3[1]})}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function SelectedTimeRecurringDismissibleContent({contentType, timeRecurringConfig, groupName, bypassAutoDismiss, children}) { // fn#80246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10543:841, offset: 0x01e72d39, size: 138 bytes, params: 2, frame: 20
|
||||
const value3 = env0_2((require(7013) /* metro dependency 7013: useSelectedDismissibleContent */).useSelectedTimeRecurringDismissibleContent(contentType,
|
||||
timeRecurringConfig, groupName, bypassAutoDismiss), 2);
|
||||
return (
|
||||
<>
|
||||
{children({visibleContent: value3[0], markAsDismissed: value3[1]})}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function SelectedSnowflakeBoundDismissibleContent({contentType, newSnowflakeId, groupName, bypassAutoDismiss, children}) { // fn#80247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10543:1168, offset: 0x01e72dc3, size: 138 bytes, params: 2, frame: 20
|
||||
const value3 = env0_2((require(7013) /* metro dependency 7013: useSelectedDismissibleContent */).useSelectedSnowflakeBoundDismissibleContent(contentType,
|
||||
newSnowflakeId, groupName, bypassAutoDismiss), 2);
|
||||
return (
|
||||
<>
|
||||
{children({visibleContent: value3[0], markAsDismissed: value3[1]})}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function SelectedTimeReccuringSnowflakeBoundDismissibleContent({contentType, newSnowflakeId, timeRecurringConfig, groupName, bypassAutoDismiss, children}) { // fn#80248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10543:1505, offset: 0x01e72e4d, size: 144 bytes, params: 2, frame: 22
|
||||
const value3 = env0_2((require(7013) /* metro dependency 7013: useSelectedDismissibleContent */).useSelectedTimeRecurringSnowflakeBoundDismissibleContent(contentType,
|
||||
newSnowflakeId, timeRecurringConfig, groupName, bypassAutoDismiss), 2);
|
||||
return (
|
||||
<>
|
||||
{children({visibleContent: value3[0], markAsDismissed: value3[1]})}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,545 @@
|
||||
/* Metro module 7014; source: modules/dismissible_content/useGetDismissibleContent.tsx; dependencies: [31, 1348, 3969, 1369, 1371, 661, 670, 683, 1365, 7015, 566, 1367, 3994, 1364, 3968, 21, 2] */
|
||||
function _fun55548(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55548, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7192:6, offset: 0x013a9eaa, size: 369 bytes, params: 8, frame: 19
|
||||
let env0_0 = require;
|
||||
const useGetRecurringDismissibleContentState = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return require(dependencyMap[10]).useStateFromStores([UserSettingsProtoStore], _fun55556);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const userSettingsProtoStore = importDefault(1348) /* metro dependency 1348: UserSettingsProtoStore */;
|
||||
const selectedGuildStore = importDefault(3969) /* metro dependency 3969: SelectedGuildStore */;
|
||||
const dismissibleContentFrameworkStore = importDefault(1369) /* metro dependency 1369: DismissibleContentFrameworkStore */;
|
||||
const dismissibleContentShownStateStore = importDefault(1371) /* metro dependency 1371: DismissibleContentShownStateStore */;
|
||||
const env0_8 = (require(1371) /* metro dependency 1371: DismissibleContentShownStateStore */).removeCandidateContent;
|
||||
const env0_9 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const env0_10 = (require(670) /* metro dependency 670: UserSettingsConstants */).UserSettingsTypes;
|
||||
const env0_11 = {};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/dismissible_content/useGetDismissibleContent.tsx');
|
||||
exports.useGetDismissibleContent = useGetDismissibleContent;
|
||||
exports.useGetVersionedDismissibleContent = useGetVersionedDismissibleContent;
|
||||
exports.useGetTimeRecurringDismissibleContent = useGetTimeRecurringDismissibleContent;
|
||||
exports.useGetSnowflakeBoundDismissibleContent = useGetSnowflakeBoundDismissibleContent;
|
||||
exports.UNSAFE_useGetSnowflakeBoundGuildDismissibleContent = UNSAFE_useGetSnowflakeBoundGuildDismissibleContent;
|
||||
exports.useGetTimeRecurringSnowflakeBoundDismissibleContent = useGetTimeRecurringSnowflakeBoundDismissibleContent;
|
||||
exports.UNSAFE_useGetSingleUseGuildDismissibleContent = UNSAFE_useGetSingleUseGuildDismissibleContent;
|
||||
exports.UNSAFE_useGetTimeRecurringGuildDismissibleContent = UNSAFE_useGetTimeRecurringGuildDismissibleContent;
|
||||
exports.useDangerouslyPeekDismissibleContents = function(a0) {
|
||||
var env0_0 = require(dependencyMap[10]).useStateFromStores([UserSettingsProtoStore], _fun55588);
|
||||
return a0.filter(_fun55589);
|
||||
};
|
||||
}
|
||||
|
||||
function useGetVisibleContent(a0, a1, a2, a3, a4) { // fn#55549, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7192:232, offset: 0x013aa01b, size: 260 bytes, params: 6, frame: 26
|
||||
const value = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const env0_3 = a3;
|
||||
const env0_4 = a4;
|
||||
const value3 = DismissibleContentShownStateStore(_fun55550);
|
||||
const value4 = (require(7015) /* metro dependency 7015: OverlayTrackingUtilsNative */).useAnyOverlayRenderingLocked();
|
||||
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStores([], function() {
|
||||
});
|
||||
const value6 = (require(566) /* metro dependency 566: flux */).useStateFromStores([DismissibleContentFrameworkStore],
|
||||
_fun55552);
|
||||
env0_3.useRef(a1).current = a1;
|
||||
env0_3.useEffect(_fun55553, [value, a2, value6, value4, a3, value5, a4]);
|
||||
const value8 = null;
|
||||
return value3 && value8 != value ? value : value8;
|
||||
}
|
||||
|
||||
function useGetRecurringDismissibleContentState(a0) { // fn#55555, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7192:1176, offset: 0x013aa2fb, size: 64 bytes, params: 2, frame: 14
|
||||
const env0_0 = a0;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([UserSettingsProtoStore], _fun55556);
|
||||
}
|
||||
|
||||
function canShowTimeRecurringContent(a0, a1, a2, a3) { // fn#55557, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7192:1408, offset: 0x013aa38d, size: 285 bytes, params: 5, frame: 20
|
||||
const value = a0;
|
||||
const value2 = undefined;
|
||||
const r2 = a1 != null ? global.Number.isNaN(global.Number(a1)) ? value2 : global.Number(a1) : value2;
|
||||
const value4 = 0;
|
||||
const r4 = value2 === r2 ? value4 : r2 + a3.cooldownDurationMs;
|
||||
const Date = global.Date;
|
||||
const value6 = Date.now();
|
||||
const r6 = a3.showAfterTimestamp == null || value6 >= a3.showAfterTimestamp && (r2 ?? value4) <= a3.showAfterTimestamp;
|
||||
let r1 = a3.numTimesToRecur == null || value4 === a3.numTimesToRecur;
|
||||
r1 = !r1 ? a2 == null : r1;
|
||||
r1 = !r1 ? a2 < a3.numTimesToRecur : r1;
|
||||
const hasLoaded = UserSettingsProtoStore.hasLoaded;
|
||||
const PRELOADED_USER_SETTINGS = UserSettingsTypes.PRELOADED_USER_SETTINGS;
|
||||
let r0 = (Reflect.apply(hasLoaded, UserSettingsProtoStore,
|
||||
[PRELOADED_USER_SETTINGS]) || r2 != null && a2 != null) && value;
|
||||
r0 = r0 && r6 && (r2 == null || value6 >= r4) && r1;
|
||||
return r0;
|
||||
}
|
||||
|
||||
function useGetDismissibleContent(a0, a1) { // fn#55558, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7192:1946, offset: 0x013aa4aa, size: 285 bytes, params: 3, frame: 21
|
||||
var r7;
|
||||
var value5;
|
||||
var value6;
|
||||
const env0_0 = a1;
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserSettingsProtoStore],
|
||||
_fun55559);
|
||||
const guildId = (require(566) /* metro dependency 566: flux */).useStateFromStores([SelectedGuildStore],
|
||||
function() {
|
||||
return SelectedGuildStore.getGuildId();
|
||||
});
|
||||
const value3 = (require(3994) /* metro dependency 3994: NewUserDismissibleContentRegistry */).useNewUserDismissibleContent(a0);
|
||||
const value4 = null;
|
||||
let env0_3 = value4;
|
||||
const hasLoaded = UserSettingsProtoStore.hasLoaded;
|
||||
const PRELOADED_USER_SETTINGS = UserSettingsTypes.PRELOADED_USER_SETTINGS;
|
||||
if (Reflect.apply(hasLoaded, UserSettingsProtoStore, [PRELOADED_USER_SETTINGS])) {
|
||||
value6 = value3.find(_fun55561);
|
||||
env0_3 = value6;
|
||||
r7 = value6;
|
||||
} else if (value4 != value2) {
|
||||
value5 = value3.find(_fun55562);
|
||||
env0_3 = value5;
|
||||
r7 = value5;
|
||||
} else {
|
||||
r7 = value4;
|
||||
}
|
||||
items2 = [useGetVisibleContent(r7, guildId, a1)];
|
||||
const binding = env0_3;
|
||||
const useCallback = binding.useCallback;
|
||||
items2[1] = Reflect.apply(useCallback, binding, [_fun55563, [r7, a1, guildId]]);
|
||||
return items2;
|
||||
}
|
||||
|
||||
function useGetVersionedDismissibleContent(a0, a1, a2) { // fn#55564, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7192:2567, offset: 0x013aa6bf, size: 310 bytes, params: 4, frame: 25
|
||||
var r0;
|
||||
var r8;
|
||||
var value4;
|
||||
const value = a0;
|
||||
const env0_0 = a1;
|
||||
const env0_1 = a2;
|
||||
const lastDismissedVersion = useGetRecurringDismissibleContentState(value).lastDismissedVersion;
|
||||
const guildId = (require(566) /* metro dependency 566: flux */).useStateFromStores([SelectedGuildStore],
|
||||
function() {
|
||||
return SelectedGuildStore.getGuildId();
|
||||
});
|
||||
const value3 = null;
|
||||
let env0_3 = value3;
|
||||
if (value3 != value) {
|
||||
value4 = (require(3994) /* metro dependency 3994: NewUserDismissibleContentRegistry */).disableNewUserDismissibleContent(value);
|
||||
if (UserSettingsProtoStore.hasLoaded(UserSettingsTypes.PRELOADED_USER_SETTINGS)) {
|
||||
r0 = value4 ? value3 : value3 == lastDismissedVersion || lastDismissedVersion < a1 ? value : value3;
|
||||
env0_3 = r0;
|
||||
r8 = r0;
|
||||
} else if (value3 != lastDismissedVersion) {
|
||||
r0 = value4 ? value3 : lastDismissedVersion < a1 ? value : value3;
|
||||
env0_3 = r0;
|
||||
r8 = r0;
|
||||
} else {
|
||||
r8 = value3;
|
||||
}
|
||||
} else {
|
||||
r8 = value3;
|
||||
}
|
||||
items2 = [useGetVisibleContent(r8, guildId, a2, a1)];
|
||||
const binding = env0_3;
|
||||
const useCallback = binding.useCallback;
|
||||
items2[1] = Reflect.apply(useCallback, binding, [_fun55566, [r8, a2, guildId, a1]]);
|
||||
return items2;
|
||||
}
|
||||
|
||||
function useGetTimeRecurringDismissibleContent(a0, a1, a2) { // fn#55567, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7192:3150, offset: 0x013aa85c, size: 234 bytes, params: 4, frame: 24
|
||||
var r7;
|
||||
var moduleValue2;
|
||||
const value = a0;
|
||||
const env0_0 = a2;
|
||||
const {lastDismissedAtMs, numTimesDismissed} = useGetRecurringDismissibleContentState(value);
|
||||
const guildId = (require(566) /* metro dependency 566: flux */).useStateFromStores([SelectedGuildStore],
|
||||
function() {
|
||||
return SelectedGuildStore.getGuildId();
|
||||
});
|
||||
const value4 = null;
|
||||
if (value4 != value) {
|
||||
moduleValue2 = require(3994) /* metro dependency 3994: NewUserDismissibleContentRegistry */;
|
||||
r7 = canShowTimeRecurringContent(!moduleValue2.disableNewUserDismissibleContent(value), lastDismissedAtMs,
|
||||
numTimesDismissed, a1) ? value : value4;
|
||||
} else {
|
||||
r7 = value4;
|
||||
}
|
||||
items2 = [useGetVisibleContent(r7, guildId, a2)];
|
||||
const binding = env0_3;
|
||||
const useCallback = binding.useCallback;
|
||||
items2[1] = Reflect.apply(useCallback, binding, [_fun55569, [r7, a2, guildId]]);
|
||||
return items2;
|
||||
}
|
||||
|
||||
function useGetSnowflakeBoundDismissibleContent(a0, a1, a2) { // fn#55570, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7192:3702, offset: 0x013aa9a3, size: 376 bytes, params: 4, frame: 27
|
||||
var r0;
|
||||
var r8;
|
||||
var value4;
|
||||
const value = a0;
|
||||
const env0_0 = a1;
|
||||
const env0_1 = a2;
|
||||
const lastDismissedObjectId = useGetRecurringDismissibleContentState(value).lastDismissedObjectId;
|
||||
const guildId = (require(566) /* metro dependency 566: flux */).useStateFromStores([SelectedGuildStore],
|
||||
function() {
|
||||
return SelectedGuildStore.getGuildId();
|
||||
});
|
||||
const value3 = null;
|
||||
let env0_3 = value3;
|
||||
if (value3 != value) {
|
||||
value4 = (require(3994) /* metro dependency 3994: NewUserDismissibleContentRegistry */).disableNewUserDismissibleContent(value);
|
||||
if (UserSettingsProtoStore.hasLoaded(UserSettingsTypes.PRELOADED_USER_SETTINGS)) {
|
||||
r0 = value4 ? value3 : value3 == lastDismissedObjectId ? value : (importDefault(21) /* metro dependency 21: SnowflakeUtils */).compare(a1,
|
||||
|
||||
|
||||
lastDismissedObjectId) !== 1 ? value3 : value;
|
||||
env0_3 = r0;
|
||||
r8 = r0;
|
||||
} else if (value3 != lastDismissedObjectId) {
|
||||
r0 = value4 || (importDefault(21) /* metro dependency 21: SnowflakeUtils */).compare(a1,
|
||||
lastDismissedObjectId) !== 1 ? value3 : value;
|
||||
env0_3 = r0;
|
||||
r8 = r0;
|
||||
} else {
|
||||
r8 = value3;
|
||||
}
|
||||
} else {
|
||||
r8 = value3;
|
||||
}
|
||||
items2 = [useGetVisibleContent(r8, guildId, a2, undefined, a1)];
|
||||
const binding = env0_3;
|
||||
const useCallback = binding.useCallback;
|
||||
items2[1] = Reflect.apply(useCallback, binding, [_fun55572, [r8, a2, guildId, a1]]);
|
||||
return items2;
|
||||
}
|
||||
|
||||
function UNSAFE_useGetSnowflakeBoundGuildDismissibleContent(a0, a1, a2, a3) { // fn#55573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7192:4349, offset: 0x013aab7d, size: 416 bytes, params: 5, frame: 27
|
||||
var r8;
|
||||
var value5;
|
||||
const value = a0;
|
||||
const env0_0 = a1;
|
||||
const env0_1 = a2;
|
||||
const env0_2 = a3;
|
||||
const value3 = undefined;
|
||||
const guildDismissedContentState = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserSettingsProtoStore],
|
||||
function() {
|
||||
return UserSettingsProtoStore.getGuildDismissedContentState(importDefault);
|
||||
});
|
||||
const value4 = null;
|
||||
let r0 = value4 != value ? value4 == guildDismissedContentState ? value4 : value4 == guildDismissedContentState ? value3 : guildDismissedContentState[value] : value4;
|
||||
const lastDismissedObjectId = value4 == r0 ? value3 : r0.lastDismissedObjectId;
|
||||
let env0_3 = value4;
|
||||
if (value4 != value) {
|
||||
value5 = (require(3994) /* metro dependency 3994: NewUserDismissibleContentRegistry */).disableNewUserDismissibleContent(value);
|
||||
if (UserSettingsProtoStore.hasLoaded(UserSettingsTypes.PRELOADED_USER_SETTINGS)) {
|
||||
r0 = value5 ? value4 : value4 == lastDismissedObjectId ? value : (importDefault(21) /* metro dependency 21: SnowflakeUtils */).compare(a1,
|
||||
|
||||
|
||||
lastDismissedObjectId) !== 1 ? value4 : value;
|
||||
env0_3 = r0;
|
||||
r8 = r0;
|
||||
} else if (value4 != lastDismissedObjectId) {
|
||||
r0 = value5 || (importDefault(21) /* metro dependency 21: SnowflakeUtils */).compare(a1,
|
||||
lastDismissedObjectId) !== 1 ? value4 : value;
|
||||
env0_3 = r0;
|
||||
r8 = r0;
|
||||
} else {
|
||||
r8 = value4;
|
||||
}
|
||||
} else {
|
||||
r8 = value4;
|
||||
}
|
||||
items2 = [useGetVisibleContent(r8, a2, a3, value3, a1)];
|
||||
const binding = env0_3;
|
||||
const useCallback = binding.useCallback;
|
||||
items2[1] = Reflect.apply(useCallback, binding, [_fun55575, [r8, a3, a2, a1]]);
|
||||
return items2;
|
||||
}
|
||||
|
||||
function useGetTimeRecurringSnowflakeBoundDismissibleContent(a0, a1, a2, a3) { // fn#55576, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7192:5068, offset: 0x013aada0, size: 215 bytes, params: 5, frame: 24
|
||||
var r8;
|
||||
const value = a0;
|
||||
const env0_0 = a2;
|
||||
const env0_1 = a3;
|
||||
const guildId = (require(566) /* metro dependency 566: flux */).useStateFromStores([SelectedGuildStore],
|
||||
function() {
|
||||
return SelectedGuildStore.getGuildId();
|
||||
});
|
||||
const value3 = null;
|
||||
let env0_3 = value3;
|
||||
if (value3 == value || (require(1367) /* metro dependency 1367: DismissibleContentUtils */).isTimeRecurringSnowflakeBoundDismissibleContentDismissed(value,
|
||||
a2, a1)) {
|
||||
r8 = value3;
|
||||
} else {
|
||||
env0_3 = value;
|
||||
r8 = value;
|
||||
}
|
||||
items2 = [useGetVisibleContent(r8, guildId, a3, undefined, a2)];
|
||||
const binding = env0_3;
|
||||
const useCallback = binding.useCallback;
|
||||
items2[1] = Reflect.apply(useCallback, binding, [_fun55578, [r8, a3, guildId, a2]]);
|
||||
return items2;
|
||||
}
|
||||
|
||||
function UNSAFE_useGetSingleUseGuildDismissibleContent(a0, a1, a2) { // fn#55579, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7192:5549, offset: 0x013aae77, size: 251 bytes, params: 4, frame: 21
|
||||
var r7;
|
||||
var value4;
|
||||
var value5;
|
||||
const env0_0 = a1;
|
||||
const env0_1 = a2;
|
||||
const guildDismissedContentState = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserSettingsProtoStore],
|
||||
function() {
|
||||
return UserSettingsProtoStore.getGuildDismissedContentState(require);
|
||||
});
|
||||
const value2 = (require(3994) /* metro dependency 3994: NewUserDismissibleContentRegistry */).useNewUserDismissibleContent(a0);
|
||||
const value3 = null;
|
||||
let env0_3 = value3;
|
||||
const hasLoaded = UserSettingsProtoStore.hasLoaded;
|
||||
const PRELOADED_USER_SETTINGS = UserSettingsTypes.PRELOADED_USER_SETTINGS;
|
||||
if (Reflect.apply(hasLoaded, UserSettingsProtoStore, [PRELOADED_USER_SETTINGS])) {
|
||||
value5 = value2.find(_fun55581);
|
||||
env0_3 = value5;
|
||||
r7 = value5;
|
||||
} else if (value3 != guildDismissedContentState) {
|
||||
value4 = value2.find(_fun55582);
|
||||
env0_3 = value4;
|
||||
r7 = value4;
|
||||
} else {
|
||||
r7 = value3;
|
||||
}
|
||||
items2 = [useGetVisibleContent(r7, a1, a2)];
|
||||
const binding = env0_3;
|
||||
const useCallback = binding.useCallback;
|
||||
items2[1] = Reflect.apply(useCallback, binding, [_fun55583, [r7, a2, a1]]);
|
||||
return items2;
|
||||
}
|
||||
|
||||
function UNSAFE_useGetTimeRecurringGuildDismissibleContent(a0, a1, a2, a3) { // fn#55584, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7192:6149, offset: 0x013ab050, size: 286 bytes, params: 5, frame: 24
|
||||
var r7;
|
||||
var moduleValue2;
|
||||
const value = a0;
|
||||
const env0_0 = a1;
|
||||
const env0_1 = a3;
|
||||
const value3 = undefined;
|
||||
const guildDismissedContentState = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserSettingsProtoStore],
|
||||
function() {
|
||||
return UserSettingsProtoStore.getGuildDismissedContentState(require);
|
||||
});
|
||||
const value4 = null;
|
||||
const r8 = value4 != value ? value4 == guildDismissedContentState ? value4 : value4 == guildDismissedContentState ? value3 : guildDismissedContentState[value] : value4;
|
||||
if (value4 != value) {
|
||||
moduleValue2 = require(3994) /* metro dependency 3994: NewUserDismissibleContentRegistry */;
|
||||
r7 = canShowTimeRecurringContent(!moduleValue2.disableNewUserDismissibleContent(value),
|
||||
value4 == r8 ? value3 : r8.lastDismissedAtMs, value4 == r8 ? value3 : r8.numTimesDismissed,
|
||||
a2) ? value : value4;
|
||||
} else {
|
||||
r7 = value4;
|
||||
}
|
||||
items2 = [useGetVisibleContent(r7, a1, a3)];
|
||||
const binding = env0_3;
|
||||
const useCallback = binding.useCallback;
|
||||
items2[1] = Reflect.apply(useCallback, binding, [_fun55586, [r7, a3, a1]]);
|
||||
return items2;
|
||||
}
|
||||
|
||||
function useDangerouslyPeekDismissibleContents(a0) { // fn#55587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7192:6782, offset: 0x013ab1cc, size: 79 bytes, params: 2, frame: 15
|
||||
const env0_0 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserSettingsProtoStore],
|
||||
_fun55588);
|
||||
return a0.filter(_fun55589);
|
||||
}
|
||||
|
||||
function _fun55550(a0) { // fn#55550, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7192:282, offset: 0x013aa11f, size: 41 bytes, params: 2, frame: 12
|
||||
return env0_0 != null && a0.currentlyShown.has(env0_0);
|
||||
}
|
||||
|
||||
function _fun55552() { // fn#55552, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7192:491, offset: 0x013aa148, size: 45 bytes, params: 1, frame: 14
|
||||
return env0_0 != null && DismissibleContentFrameworkStore.hasUserHitDCCap(env0_0, require);
|
||||
}
|
||||
|
||||
function _fun55553() { // fn#55553, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7192:575, offset: 0x013aa175, size: 322 bytes, params: 1, frame: 27
|
||||
var environment;
|
||||
var r8;
|
||||
var value3;
|
||||
var binding;
|
||||
var current;
|
||||
var binding2;
|
||||
var defaultImport;
|
||||
var track;
|
||||
var DISMISSIBLE_CONTENT_SHOWN_BEFORE_CONNECTION_OPEN;
|
||||
var object2;
|
||||
var moduleValue;
|
||||
var requestMarkDismissibleContentAsShown;
|
||||
const value2 = null;
|
||||
if (value2 != env0_0) {
|
||||
value3 = environment.__proto__;
|
||||
if (!UserSettingsProtoStore.hasLoaded(UserSettingsTypes.PRELOADED_USER_SETTINGS)) {
|
||||
binding = env0_0;
|
||||
current = env0_7.current;
|
||||
binding2 = env0_4;
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
track = defaultImport.track;
|
||||
DISMISSIBLE_CONTENT_SHOWN_BEFORE_CONNECTION_OPEN = AnalyticEvents.DISMISSIBLE_CONTENT_SHOWN_BEFORE_CONNECTION_OPEN;
|
||||
object2 = {};
|
||||
object2.content_type = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent[binding];
|
||||
r8 = value2 != importDefault ? importDefault : value2;
|
||||
object2.group_name = r8;
|
||||
r8 = value2 != importAll ? importAll : value2;
|
||||
object2.latest_version = r8;
|
||||
r8 = value2 != current ? current : value2;
|
||||
object2.guild_id = r8;
|
||||
object2.snowflake_id = value2 != binding2 ? binding2 : value2;
|
||||
Reflect.apply(track, defaultImport, [DISMISSIBLE_CONTENT_SHOWN_BEFORE_CONNECTION_OPEN, object2]);
|
||||
}
|
||||
moduleValue = require(1367) /* metro dependency 1367: DismissibleContentUtils */;
|
||||
requestMarkDismissibleContentAsShown = moduleValue.requestMarkDismissibleContentAsShown;
|
||||
binding = env0_0;
|
||||
current = env0_7.current;
|
||||
Reflect.apply(requestMarkDismissibleContentAsShown, moduleValue, [binding, {groupName: importDefault,
|
||||
guildId: current, version: importAll, snowflakeId: env0_4}, env0_5, env0_6]);
|
||||
return _fun55554;
|
||||
}
|
||||
}
|
||||
|
||||
function _fun55556() { // fn#55556, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7192:1267, offset: 0x013aa33b, size: 82 bytes, params: 1, frame: 7
|
||||
const value2 = null;
|
||||
let r0 = value2 === env0_0 ? value2 : value2 == UserSettingsProtoStore.settings.userContent || value2 == UserSettingsProtoStore.settings.userContent.recurringDismissibleContentStates ? undefined : UserSettingsProtoStore.settings.userContent.recurringDismissibleContentStates[env0_0];
|
||||
r0 = value2 == r0 ? env1_11 : r0;
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun55559() { // fn#55559, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7192:2024, offset: 0x013aa5c7, size: 38 bytes, params: 1, frame: 3
|
||||
const value = environment.__proto__;
|
||||
const userContent = UserSettingsProtoStore.settings.userContent;
|
||||
return userContent?.dismissedContents;
|
||||
}
|
||||
|
||||
function _fun55561(a0) { // fn#55561, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7192:2267, offset: 0x013aa5ed, size: 65 bytes, params: 2, frame: 14
|
||||
var r0;
|
||||
var value3;
|
||||
var moduleValue;
|
||||
const value2 = env0_1 == null;
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
} else {
|
||||
value3 = environment.__proto__;
|
||||
moduleValue = require(1364) /* metro dependency 1364: Uint8ArrayUtils */;
|
||||
r0 = !moduleValue.hasBit(env0_1, a0);
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun55562(a0) { // fn#55562, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7192:2323, offset: 0x013aa62e, size: 52 bytes, params: 2, frame: 13
|
||||
let value = environment.__proto__;
|
||||
value = require(1364) /* metro dependency 1364: Uint8ArrayUtils */;
|
||||
return !value.hasBit(env0_1, a0);
|
||||
}
|
||||
|
||||
function _fun55563(a0, a1) { // fn#55563, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7192:2395, offset: 0x013aa662, size: 93 bytes, params: 3, frame: 15
|
||||
var value2;
|
||||
var moduleValue;
|
||||
if (env0_3 != null) {
|
||||
value2 = environment.__proto__;
|
||||
moduleValue = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
|
||||
moduleValue.UNSAFE_markDismissibleContentAsDismissed(env0_3, {dismissAction: a0, groupName: require,
|
||||
guildId: guildId, forceTrack: a1});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun55566(a0, a1) { // fn#55566, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7192:2958, offset: 0x013aa7f5, size: 103 bytes, params: 3, frame: 17
|
||||
var value2;
|
||||
var moduleValue;
|
||||
if (env0_3 != null) {
|
||||
value2 = environment.__proto__;
|
||||
moduleValue = require(1367) /* metro dependency 1367: DismissibleContentUtils */;
|
||||
moduleValue.markVersionedDismissibleContentAsDismissed(env0_3, require, {dismissAction: a0,
|
||||
groupName: importDefault, guildId: guildId, forceTrack: a1, version: require});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun55569(a0, a1) { // fn#55569, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7192:3519, offset: 0x013aa946, size: 93 bytes, params: 3, frame: 15
|
||||
var value2;
|
||||
var moduleValue;
|
||||
if (env0_2 != null) {
|
||||
value2 = environment.__proto__;
|
||||
moduleValue = require(1367) /* metro dependency 1367: DismissibleContentUtils */;
|
||||
moduleValue.markTimeRecurringDismissibleContentAsDismissed(env0_2, {dismissAction: a0, groupName: importDefault,
|
||||
guildId: guildId, forceTrack: a1});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun55572(a0, a1) { // fn#55572, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7192:4149, offset: 0x013aab1b, size: 98 bytes, params: 3, frame: 17
|
||||
var value2;
|
||||
var moduleValue;
|
||||
if (env0_3 != null) {
|
||||
value2 = environment.__proto__;
|
||||
moduleValue = require(1367) /* metro dependency 1367: DismissibleContentUtils */;
|
||||
moduleValue.markSnowflakeBoundDismissibleContentAsDismissed(env0_3, require, {dismissAction: a0,
|
||||
groupName: importDefault, guildId: guildId, forceTrack: a1});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun55575(a0, a1) { // fn#55575, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7192:4853, offset: 0x013aad38, size: 104 bytes, params: 3, frame: 19
|
||||
var value2;
|
||||
var moduleValue;
|
||||
if (env0_3 != null) {
|
||||
value2 = environment.__proto__;
|
||||
moduleValue = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
|
||||
moduleValue.UNSAFE_markSnowflakeBoundGuildDismissibleContentAsDismissed(env0_3, require, importDefault,
|
||||
{dismissAction: a0, groupName: importAll, guildId: importDefault, forceTrack: a1});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun55581(a0) { // fn#55581, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7192:5797, offset: 0x013aaf8d, size: 56 bytes, params: 2, frame: 5
|
||||
let r0 = guildDismissedContentState == null || guildDismissedContentState[a0] == null;
|
||||
r0 = !r0 ? guildDismissedContentState[a0].dismissed === false : r0;
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun55582(a0) { // fn#55582, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7192:5863, offset: 0x013aafc5, size: 45 bytes, params: 2, frame: 4
|
||||
return guildDismissedContentState[a0] == null || guildDismissedContentState[a0].dismissed === false;
|
||||
}
|
||||
|
||||
function _fun55583(a0, a1) { // fn#55583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7192:5945, offset: 0x013aaff2, size: 94 bytes, params: 3, frame: 17
|
||||
var value2;
|
||||
var moduleValue;
|
||||
if (env0_3 != null) {
|
||||
value2 = environment.__proto__;
|
||||
moduleValue = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
|
||||
moduleValue.UNSAFE_markSingleUseGuildDismissibleContentAsDismissed(env0_3, require, {dismissAction: a0,
|
||||
groupName: importDefault, guildId: require, forceTrack: a1});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun55586(a0, a1) { // fn#55586, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7192:6586, offset: 0x013ab16e, size: 94 bytes, params: 3, frame: 17
|
||||
var value2;
|
||||
var moduleValue;
|
||||
if (env0_2 != null) {
|
||||
value2 = environment.__proto__;
|
||||
moduleValue = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
|
||||
moduleValue.UNSAFE_markTimeRecurringGuildDismissibleContentAsDismissed(env0_2, require, {dismissAction: a0,
|
||||
groupName: importAll, guildId: require, forceTrack: a1});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun55589(a0) { // fn#55589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7192:6969, offset: 0x013ab21b, size: 65 bytes, params: 2, frame: 14
|
||||
var r0;
|
||||
var value3;
|
||||
var moduleValue;
|
||||
const value2 = env0_0 != null;
|
||||
if (value2) {
|
||||
value3 = environment.__proto__;
|
||||
moduleValue = require(1364) /* metro dependency 1364: Uint8ArrayUtils */;
|
||||
r0 = !moduleValue.hasBit(env0_0, a0);
|
||||
} else {
|
||||
r0 = value2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun55554() { // fn#55554, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7192:1055, offset: 0x013aa2b7, size: 68 bytes, params: 1, frame: 14
|
||||
var value2;
|
||||
if (env1_0 != null) {
|
||||
value2 = environment.__proto__.__proto__;
|
||||
removeCandidateContent({content: env1_0, groupName: importDefault},
|
||||
!DismissibleContentFrameworkStore.hasUserHitDCCap());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
/* Metro module 7016; source: modules/dismissible_content/useSelectedDismissibleContentShared.tsx; dependencies: [31, 1369, 1376, 1370, 1366, 2] */
|
||||
function _fun55594(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55594, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7194:6, offset: 0x013ab2cb, size: 153 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 */;
|
||||
const dismissibleContentFrameworkStore = importDefault(1369) /* metro dependency 1369: DismissibleContentFrameworkStore */;
|
||||
const env0_4 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/dismissible_content/useSelectedDismissibleContentShared.tsx');
|
||||
exports.useSelectedDismissibleContentShared = useSelectedDismissibleContentShared;
|
||||
}
|
||||
|
||||
function useSelectedDismissibleContentShared(a0, a1) { // fn#55595, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7194:290, offset: 0x013ab364, size: 144 bytes, params: 3, frame: 18
|
||||
var CONTENT_TYPES_WITH_BYPASS_FATIGUE;
|
||||
const value = a2;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const r2 = value !== undefined ? value : false;
|
||||
const env0_2 = a3;
|
||||
let r8 = a0 != null && !r2;
|
||||
if (r8) {
|
||||
CONTENT_TYPES_WITH_BYPASS_FATIGUE = (require(1370) /* metro dependency 1370: DismissibleContentFatigueConfig */).CONTENT_TYPES_WITH_BYPASS_FATIGUE;
|
||||
r8 = !CONTENT_TYPES_WITH_BYPASS_FATIGUE.has(a0);
|
||||
}
|
||||
env0_2.useEffect(function() {
|
||||
return _fun55597;
|
||||
}, [r8, a1, a0, a3]);
|
||||
}
|
||||
|
||||
function _fun55596() { // fn#55596, offset: 0x013ab3f4, size: 9 bytes, params: 1, frame: 1
|
||||
return _fun55597;
|
||||
}
|
||||
|
||||
function _fun55597() { // fn#55597, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7194:433, offset: 0x013ab3fd, size: 162 bytes, params: 1, frame: 18
|
||||
if (env1_3 && (DismissibleContentFrameworkStore.lastDismissed?.content !== env1_0 || (require(1366) /* metro dependency 1366: DismissibleContentTypes */).isGuildDismissibleContent(env1_0) && DismissibleContentFrameworkStore.lastDismissed?.guildId !== importAll)) {
|
||||
value = environment.__proto__.__proto__;
|
||||
require(ContentDismissActionType.AUTO_DISMISS, true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,265 @@
|
||||
/* Metro module 14158; source: modules/dismissible_content/utils/toggleDismissibleContentDismissState.tsx; dependencies: [31, 3969, 12715, 1377, 1367, 1362, 21, 566, 3968, 672, 1366, 2] */
|
||||
function _fun107140(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#107140, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14355:6, offset: 0x022f4f14, size: 150 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const toggleDismissibleContentShared = function(a0, a1, a2) {
|
||||
require(dependencyMap[2]).overrideDCFLastDCDismissed(a1 ? null : a0, a2);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(31) /* metro dependency 31 */).useCallback;
|
||||
const selectedGuildStore = importDefault(3969) /* metro dependency 3969: SelectedGuildStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/dismissible_content/utils/toggleDismissibleContentDismissState.tsx');
|
||||
exports.default = useToggleDismissibleContentDismissState;
|
||||
}
|
||||
|
||||
function useToggleDismissibleContentDismissState(a0) { // fn#107142, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14355:341, offset: 0x022f4fe2, size: 182 bytes, params: 2, frame: 20
|
||||
const env0_0 = a0;
|
||||
const guildId = (require(566) /* metro dependency 566: flux */).useStateFromStores([SelectedGuildStore],
|
||||
function() {
|
||||
return SelectedGuildStore.getGuildId();
|
||||
});
|
||||
const dismissibleContentUnsafeUtilsModule = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
|
||||
const UNSAFE_useIsDismissibleContentDismissed = dismissibleContentUnsafeUtilsModule.UNSAFE_useIsDismissibleContentDismissed;
|
||||
const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
const WEEK = Millis.WEEK;
|
||||
const value2 = Reflect.apply(UNSAFE_useIsDismissibleContentDismissed, dismissibleContentUnsafeUtilsModule, [a0,
|
||||
{cooldownDurationMs: WEEK, guildId: guildId}]);
|
||||
return {isDismissed: value2, handleToggleDismissState: useCallback(_fun107144, [a0, guildId, value2])};
|
||||
}
|
||||
|
||||
function _fun107144() { // fn#107144, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14355:561, offset: 0x022f50ab, size: 1265 bytes, params: 1, frame: 30
|
||||
var r0;
|
||||
var r7;
|
||||
var r3;
|
||||
var r2;
|
||||
var r1;
|
||||
var moduleValue2;
|
||||
var moduleValue3;
|
||||
var moduleValue4;
|
||||
var moduleValue5;
|
||||
var isSnowflakeBoundGuildDismissibleContent2;
|
||||
var binding;
|
||||
var binding2;
|
||||
var guildIdBinding;
|
||||
var binding3;
|
||||
var value3;
|
||||
var value4;
|
||||
var moduleValue8;
|
||||
var UNSAFE_addSnowflakeBoundGuildDismissedContent;
|
||||
const SNOWFLAKE_BOUND_DISMISSIBLE_CONTENT_DURATION_MS = (require(1367) /* metro dependency 1367: DismissibleContentUtils */).SNOWFLAKE_BOUND_DISMISSIBLE_CONTENT_DURATION_MS;
|
||||
var binding4;
|
||||
var value7;
|
||||
var value8;
|
||||
var binding5;
|
||||
var value10;
|
||||
var value11;
|
||||
var binding6;
|
||||
var addTimeRecurringDismissedContent;
|
||||
var moduleValue11;
|
||||
var binding7;
|
||||
var nextNumTimesDismissed;
|
||||
var moduleValue13;
|
||||
var addSnowflakeBoundDismissedContent;
|
||||
var binding8;
|
||||
var versionedDismissibleContentCurrentVersion;
|
||||
var nextNumTimesDismissed2;
|
||||
let value = environment.__proto__;
|
||||
const dismissibleContentTypesModule = require(1366) /* metro dependency 1366: DismissibleContentTypes */;
|
||||
if (dismissibleContentTypesModule.isVersionedDismissibleContent(env0_0)) {
|
||||
binding = env0_0;
|
||||
binding8 = env0_2;
|
||||
versionedDismissibleContentCurrentVersion = (require(1377) /* metro dependency 1377: VersionedDismissibleContentUtils */).getVersionedDismissibleContentCurrentVersion(binding);
|
||||
nextNumTimesDismissed2 = (require(1367) /* metro dependency 1367: DismissibleContentUtils */).getNextNumTimesDismissed(binding,
|
||||
|
||||
{});
|
||||
toggleDismissibleContentShared(binding, binding8);
|
||||
if (binding8) {
|
||||
value = require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */;
|
||||
value.removeDismissedRecurringContent(binding);
|
||||
value = false;
|
||||
r1 = value;
|
||||
} else {
|
||||
value = require(1367) /* metro dependency 1367: DismissibleContentUtils */;
|
||||
value.addVersionedDismissedContent(binding, versionedDismissibleContentCurrentVersion,
|
||||
nextNumTimesDismissed2);
|
||||
value = true;
|
||||
r1 = value;
|
||||
}
|
||||
r0 = r1;
|
||||
} else {
|
||||
moduleValue2 = dismissibleContentTypesModule;
|
||||
if (moduleValue2.isSnowflakeBoundDismissibleContent(env0_0)) {
|
||||
binding = env0_0;
|
||||
binding7 = env0_2;
|
||||
nextNumTimesDismissed = (require(1367) /* metro dependency 1367: DismissibleContentUtils */).getNextNumTimesDismissed(binding,
|
||||
|
||||
|
||||
{});
|
||||
toggleDismissibleContentShared(binding, binding7);
|
||||
if (binding7) {
|
||||
value = require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */;
|
||||
value.removeDismissedRecurringContent(binding);
|
||||
value = false;
|
||||
r2 = value;
|
||||
} else {
|
||||
moduleValue13 = require(1367) /* metro dependency 1367: DismissibleContentUtils */;
|
||||
addSnowflakeBoundDismissedContent = moduleValue13.addSnowflakeBoundDismissedContent;
|
||||
value = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
Reflect.apply(addSnowflakeBoundDismissedContent, moduleValue13, [binding,
|
||||
value.fromTimestamp(global.Date.now() + SNOWFLAKE_BOUND_DISMISSIBLE_CONTENT_DURATION_MS),
|
||||
nextNumTimesDismissed]);
|
||||
value = true;
|
||||
r2 = value;
|
||||
}
|
||||
r0 = r2;
|
||||
} else {
|
||||
moduleValue3 = require(1366) /* metro dependency 1366: DismissibleContentTypes */;
|
||||
if (moduleValue3.isTimeRecurringDismissibleContent(env0_0)) {
|
||||
binding = env0_0;
|
||||
binding6 = env0_2;
|
||||
toggleDismissibleContentShared(binding, binding6);
|
||||
if (binding6) {
|
||||
value = require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */;
|
||||
value.removeDismissedRecurringContent(binding);
|
||||
value = false;
|
||||
r2 = value;
|
||||
} else {
|
||||
value = require(1367) /* metro dependency 1367: DismissibleContentUtils */;
|
||||
addTimeRecurringDismissedContent = value.addTimeRecurringDismissedContent;
|
||||
moduleValue11 = require(1367) /* metro dependency 1367: DismissibleContentUtils */;
|
||||
Reflect.apply(addTimeRecurringDismissedContent, value, [binding,
|
||||
moduleValue11.getNextNumTimesDismissed(binding,
|
||||
{})]);
|
||||
value = true;
|
||||
r2 = value;
|
||||
}
|
||||
r0 = r2;
|
||||
} else {
|
||||
moduleValue4 = require(1366) /* metro dependency 1366: DismissibleContentTypes */;
|
||||
if (moduleValue4.isSingleUseGuildDismissibleContent(env0_0)) {
|
||||
binding = env0_0;
|
||||
guildIdBinding = guildId;
|
||||
binding5 = env0_2;
|
||||
value10 = false;
|
||||
if (guildIdBinding == null) {
|
||||
r2 = value10;
|
||||
} else {
|
||||
value11 = 1;
|
||||
r7 = guildIdBinding != null ? (require(1367) /* metro dependency 1367: DismissibleContentUtils */).getGuildNextNumTimesDismissed(binding,
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
guildIdBinding) : value11;
|
||||
toggleDismissibleContentShared(binding, binding5, guildIdBinding);
|
||||
value = require(1367) /* metro dependency 1367: DismissibleContentUtils */;
|
||||
if (binding5) {
|
||||
value.UNSAFE_removeGuildDismissedContent(binding, guildIdBinding, r7 - value11);
|
||||
r3 = value10;
|
||||
} else {
|
||||
value.UNSAFE_addGuildDismissedContent(binding, guildIdBinding, r7);
|
||||
value = true;
|
||||
r3 = value;
|
||||
}
|
||||
r2 = r3;
|
||||
}
|
||||
r0 = r2;
|
||||
} else {
|
||||
moduleValue5 = require(1366) /* metro dependency 1366: DismissibleContentTypes */;
|
||||
if (moduleValue5.isTimeRecurringGuildDismissibleContent(env0_0)) {
|
||||
binding = env0_0;
|
||||
guildIdBinding = guildId;
|
||||
binding4 = env0_2;
|
||||
value7 = false;
|
||||
if (guildIdBinding == null) {
|
||||
r2 = value7;
|
||||
} else {
|
||||
value8 = 1;
|
||||
r7 = guildIdBinding != null ? (require(1367) /* metro dependency 1367: DismissibleContentUtils */).getGuildNextNumTimesDismissed(binding,
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
guildIdBinding) : value8;
|
||||
toggleDismissibleContentShared(binding, binding4, guildIdBinding);
|
||||
value = require(1367) /* metro dependency 1367: DismissibleContentUtils */;
|
||||
if (binding4) {
|
||||
value.UNSAFE_removeTimeRecurringGuildDismissedContent(binding, guildIdBinding,
|
||||
r7 - value8);
|
||||
r3 = value7;
|
||||
} else {
|
||||
value.UNSAFE_addTimeRecurringGuildDismissedContent(binding, guildIdBinding, r7);
|
||||
value = true;
|
||||
r3 = value;
|
||||
}
|
||||
r2 = r3;
|
||||
}
|
||||
r0 = r2;
|
||||
} else {
|
||||
isSnowflakeBoundGuildDismissibleContent2 = (require(1366) /* metro dependency 1366: DismissibleContentTypes */).isSnowflakeBoundGuildDismissibleContent(env0_0);
|
||||
binding = env0_0;
|
||||
if (isSnowflakeBoundGuildDismissibleContent2) {
|
||||
guildIdBinding = guildId;
|
||||
binding3 = env0_2;
|
||||
value3 = false;
|
||||
if (guildIdBinding == null) {
|
||||
r2 = value3;
|
||||
} else {
|
||||
value4 = 1;
|
||||
r7 = guildIdBinding != null ? (require(1367) /* metro dependency 1367: DismissibleContentUtils */).getGuildNextNumTimesDismissed(binding,
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
guildIdBinding) : value4;
|
||||
toggleDismissibleContentShared(binding, binding3, guildIdBinding);
|
||||
moduleValue8 = require(1367) /* metro dependency 1367: DismissibleContentUtils */;
|
||||
if (binding3) {
|
||||
moduleValue8.UNSAFE_removeSnowflakeBoundGuildDismissedContent(binding,
|
||||
guildIdBinding,
|
||||
r7 - value4);
|
||||
r3 = value3;
|
||||
} else {
|
||||
UNSAFE_addSnowflakeBoundGuildDismissedContent = moduleValue8.UNSAFE_addSnowflakeBoundGuildDismissedContent;
|
||||
value = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
Reflect.apply(UNSAFE_addSnowflakeBoundGuildDismissedContent, moduleValue8, [binding,
|
||||
value.fromTimestamp(global.Date.now() + SNOWFLAKE_BOUND_DISMISSIBLE_CONTENT_DURATION_MS),
|
||||
|
||||
|
||||
|
||||
guildIdBinding,
|
||||
r7]);
|
||||
value = true;
|
||||
r3 = value;
|
||||
}
|
||||
r2 = r3;
|
||||
}
|
||||
r0 = r2;
|
||||
} else {
|
||||
binding2 = env0_2;
|
||||
toggleDismissibleContentShared(binding, binding2);
|
||||
value = require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */;
|
||||
if (binding2) {
|
||||
value.removeDismissedContent(binding);
|
||||
value = false;
|
||||
r0 = value;
|
||||
} else {
|
||||
value.addDismissedContent(binding);
|
||||
value = true;
|
||||
r0 = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user