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

No files matched your search

@@ -1,21 +1,23 @@
/* Metro module 1368; source: modules/dismissible_content/DCFEventStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _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';
object = {DC_SHOWN: 0};
object[0] = 'DC_SHOWN';
object.DC_SHOW_REQUEST = 1;
object[1] = 'DC_SHOW_REQUEST';
object.DC_DISMISSED = 2;
object[2] = 'DC_DISMISSED';
let env0_6 = [];
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
const Store = (Flux).Store;
let value = _fun15732(Store);
value.displayName = 'DCFEventStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {LOGOUT: function() {
@@ -24,54 +26,68 @@ function _fun15728(global, require, importDefault, importAll, module, exports, d
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');
(FileImportTrackerModule).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) {
exports.DCFEventTypes = object;
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;
})();
}
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 _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 DCFEventStore2 = DCFEventStore;
Inherits(DCFEventStore2, a0);
return CreateClass(DCFEventStore2, [{key: 'getDCFEvents', value: value_15734}]);
function DCFEventStore() { // fn#15733, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1495:495, offset: 0x00e3db8d, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_0(this, DCFEventStore);
const value3 = env1_3(DCFEventStore);
return env1_2(this, _isNativeReflectConstruct_15729() ? global.Reflect.construct(value3, arguments,
env1_3(this).constructor) : value3.apply(this, arguments));
}
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 value_15734() { // fn#15734, offset: 0x00c82288, size: 9 bytes, params: 1, frame: 1
return env1_6;
}
}
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;
}
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;
}
global.__d(_fun15728, 1368, [6, 7, 15, 17, 18, 566, 694,
2]) /* metro module 1368, dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */;
@@ -1,8 +1,10 @@
/* Metro module 1376; source: modules/dismissible_content/DismissibleContentConstants.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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');
(FileImportTrackerModule).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'};
@@ -18,3 +20,4 @@ function _fun15847(global, require, importDefault, importAll, module, exports, d
PRIVATE_CHANNELS_LIST: 'PRIVATE_CHANNELS_LIST', GUILD_THEME_NUX: 'GUILD_THEME_NUX'};
}
global.__d(_fun15847, 1376, [2]) /* metro module 1376, dependencies: [2] */;
@@ -1,4 +1,7 @@
/* Metro module 1370; source: modules/dismissible_content/DismissibleContentFatigueConfig.tsx; dependencies: [1365, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as Dismissible_contentModule from '../../external/discord_common/js/packages/protos/discord_protos/discord_users/v1/dismissible_content.tsx'; /* Metro dependency 1365 */
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});
@@ -52,7 +55,7 @@ function _fun15761(global, require, importDefault, importAll, module, exports, d
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;
IN_APP_NOTIFICATION_EXPAND_NUX} = (Dismissible_contentModule).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,
@@ -102,7 +105,8 @@ function _fun15761(global, require, importDefault, importAll, module, exports, d
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');
(FileImportTrackerModule).fileFinishedImporting('modules/dismissible_content/DismissibleContentFatigueConfig.tsx');
exports.CONTENT_TYPES_WITH_BYPASS_FATIGUE = set;
}
global.__d(_fun15761, 1370, [1365, 2]) /* metro module 1370, dependencies: [1365, 2] */;
@@ -1,41 +1,45 @@
/* Metro module 12715; source: modules/dismissible_content/DismissibleContentFrameworkActionCreators.tsx; dependencies: [694, 2] */
import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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');
(FileImportTrackerModule).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
(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
(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
(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
(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
(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
(Dispatcher).dispatch({type: 'DCF_OVERRIDE_LAST_DC_DISMISSED',
dismissibleContent: a0, guildId: a1});
}
}
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});
}
global.__d(_fun97375, 12715, [694, 2]) /* metro module 12715, dependencies: [694, 2] */;
@@ -1,26 +1,29 @@
/* Metro module 1369; source: modules/dismissible_content/DismissibleContentFrameworkStore.tsx; dependencies: [6, 7, 15, 17, 18, 661, 1370, 1366, 683, 566, 694, 2] */
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as DismissibleContentFatigueConfigModule from './DismissibleContentFatigueConfig.tsx'; /* Metro dependency 1370 */
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,
object = {'numberOfDCsShownToday': 0, 'dailyCapPeriodStart': null, 'dismissibleContentSeenDuringSession': null,
'dailyCapOverridden': false, 'newUserMinAgeRequiredOverridden': false, 'renderedAtTimestamps': null,
'lastDismissed': null};
const Set = global.Set;
object2.dismissibleContentSeenDuringSession = new Set();
object.dismissibleContentSeenDuringSession = new Set();
let Map = global.Map;
let map = new Map();
object2.renderedAtTimestamps = map;
object.renderedAtTimestamps = map;
Map = global.Map;
object2.seenForGuildId = new Map();
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
object.seenForGuildId = new Map();
const PersistedStore = (Flux).PersistedStore;
map = _fun15744(PersistedStore);
map.displayName = 'DismissibleContentFrameworkStore';
map.persistKey = 'DismissibleContentFrameworkStore';
@@ -35,165 +38,374 @@ function _fun15739(global, require, importDefault, importAll, module, exports, d
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');
(FileImportTrackerModule).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) {
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;
})();
}
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;
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;
}
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 _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 DismissibleContentFrameworkStore2 = DismissibleContentFrameworkStore;
Inherits(DismissibleContentFrameworkStore2, a0);
return CreateClass(DismissibleContentFrameworkStore2, [{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 DismissibleContentFrameworkStore() { // fn#15745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1496:707, offset: 0x00e079f0, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_3(this, DismissibleContentFrameworkStore);
const value3 = env1_6(DismissibleContentFrameworkStore);
return env1_5(this, _isNativeReflectConstruct_15740() ? global.Reflect.construct(value3, arguments,
env1_6(this).constructor) : value3.apply(this, arguments));
}
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 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 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 value_15747() { // fn#15747, offset: 0x00e07a77, size: 9 bytes, params: 1, frame: 1
return env1_9;
}
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 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 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) {
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);
env0_9.dailyCapPeriodStart = date.getTime();
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;
}
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});
value = environment.__proto__;
dismissibleContentSeenDuringSession = env1_9.dismissibleContentSeenDuringSession;
if (dismissibleContentSeenDuringSession.has(a0)) {
return false;
}
}
} 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();
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;
}
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});
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 {
dismissibleContentSeenDuringSession = env0_9.dismissibleContentSeenDuringSession;
if (!dismissibleContentSeenDuringSession.has(dismissibleContent)) {
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;
}
}
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 object = {};
copyDataProperties(object, env0_9, undefined);
const Set = global.Set;
const value2 = Object.create(Set.prototype, {constructor: {value: Set}});
const set = new Set();
object['dismissibleContentSeenDuringSession'] = set instanceof Object ? set : value2;
let Map = global.Map;
const value4 = Object.create(Map.prototype, {constructor: {value: Map}});
let map = new Map();
object['renderedAtTimestamps'] = map instanceof Object ? map : value4;
Map = global.Map;
const value6 = Object.create(Map.prototype, {constructor: {value: Map}});
map = new Map();
object['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 = (DismissibleContentFatigueConfigModule).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;
@@ -249,291 +461,96 @@ function DCF_HANDLE_DC_SHOWN_15757({dismissibleContent, guildId}) { // fn#15757,
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;
} 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});
}
}
}
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;
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);
}
return env1_9.numberOfDCsShownToday >= 3;
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;
}
}
global.__d(_fun15739, 1369, [6, 7, 15, 17, 18, 661, 1370, 1366, 683, 566, 694,
2]) /* metro module 1369, dependencies: [6, 7, 15, 17, 18, 661, 1370, 1366, 683, 566, 694, 2] */;
@@ -1,19 +1,26 @@
/* 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] */
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import LoginRequiredActionStore from '../auth/LoginRequiredActionStore.tsx'; /* Metro dependency 1372 */
import UserRequiredActionStore from '../../stores/UserRequiredActionStore.tsx'; /* Metro dependency 1373 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as Module00685Module from '../../by-id/module-00685.js'; /* Metro dependency 685 */
import * as ReactBatchUpdatesNativeModule from '../../external/discord_common/js/shared/utils/ReactBatchUpdates.native.tsx'; /* Metro dependency 690 */
import * as DismissibleContentFatigueConfigModule from './DismissibleContentFatigueConfig.tsx'; /* Metro dependency 1370 */
import * as TaskRunnerModule from './TaskRunner.tsx'; /* Metro dependency 1374 */
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;
const TaskRunner = (TaskRunnerModule).TaskRunner;
let taskRunner = new TaskRunner();
let closure = initState;
const env0_12 = (require(685) /* metro dependency 685 */).createWithEqualityFn(closure);
const env0_12 = (Module00685Module).createWithEqualityFn(closure);
const withoutContent = function(a0, a1) {
if (a1 != null) {
if (a1.content != null) {
@@ -44,8 +51,8 @@ function _fun15762(global, require, importDefault, importAll, module, exports, d
value2 = value2.getTime();
return a0.shownFatigableCandidate == null && value2 - a0.lastWinnerTime < 3600000;
};
const closure2 = reset_15780;
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
const reset_157802 = reset_15780;
const Store = (Flux).Store;
_fun15783(Store).displayName = 'DismissibleContentShownStateStore';
taskRunner = new taskRunner(importDefault(694) /* metro dependency 694: Dispatcher */,
{CONNECTION_OPEN: function() {
@@ -53,7 +60,7 @@ function _fun15762(global, require, importDefault, importAll, module, exports, d
}, LOGOUT: function() {
reset_15780();
}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/dismissible_content/DismissibleContentShownStateStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/dismissible_content/DismissibleContentShownStateStore.tsx');
exports.default = useDismissibleContentShownStateStore;
exports.isInCooldown = isInCooldown;
exports.isStateInCooldown = closure;
@@ -66,370 +73,385 @@ function _fun15762(global, require, importDefault, importAll, module, exports, d
exports.useIsAnyContentShown = useIsAnyContentShown;
exports.isAnyContentShown = isAnyContentShown;
exports.getCurrentlyShownCounts = getCurrentlyShownCounts;
exports.reset = closure2;
exports.reset = reset_157802;
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) {
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;
})();
}
return (_isNativeReflectConstruct_15763_isNativeReflectConstruct = function() {
return !!result;
})();
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 _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__;
(ReactBatchUpdatesNativeModule).batchUpdates(_fun15775);
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 _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;
}
}
}
}
}
}
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
(ReactBatchUpdatesNativeModule).batchUpdates(_fun15781);
env0_10.unschedule();
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 _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 _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 DismissibleContentShownStateStore2 = DismissibleContentShownStateStore;
Inherits(DismissibleContentShownStateStore2, a0);
return CreateClass(DismissibleContentShownStateStore2, [{key: 'initialize', value: function() {
var env0_0 = this;
var loginRequiredActionStoreBinding = LoginRequiredActionStore;
var userRequiredActionStoreBinding = UserRequiredActionStore;
this.waitFor(loginRequiredActionStoreBinding, userRequiredActionStoreBinding);
this.syncWith([loginRequiredActionStoreBinding, userRequiredActionStoreBinding], _fun15786);
}}, {key: 'setHasRequiredAction', value: function() {
env1_13 = importDefault(dependencyMap[11])(LoginRequiredActionStore, UserRequiredActionStore);
}}]);
function DismissibleContentShownStateStore() { // fn#15784, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1498:2830, offset: 0x00e3fd08, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_3(this, DismissibleContentShownStateStore);
const value3 = env1_6(DismissibleContentShownStateStore);
return env1_5(this, _isNativeReflectConstruct_15763() ? global.Reflect.construct(value3, arguments,
env1_6(this).constructor) : value3.apply(this, arguments));
}
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
const waitFor = this.waitFor;
const loginRequiredActionStoreBinding = LoginRequiredActionStore;
const userRequiredActionStoreBinding = UserRequiredActionStore;
Reflect.apply(waitFor, this, [loginRequiredActionStoreBinding, userRequiredActionStoreBinding]);
this.syncWith([loginRequiredActionStoreBinding, userRequiredActionStoreBinding], _fun15786);
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 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 = (DismissibleContentFatigueConfigModule).CONTENT_TYPES_WITH_BYPASS_FATIGUE;
const env0_1 = CONTENT_TYPES_WITH_BYPASS_FATIGUE.has(a0.content);
(ReactBatchUpdatesNativeModule).batchUpdates(_fun15793);
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 _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 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;
(ReactBatchUpdatesNativeModule).batchUpdates(_fun15796);
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 _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 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 _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 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 _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 _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 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 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 object = {'candidates': null, 'shownFatigableCandidate': null, 'prevFatigableCandidate': null};
const Map = global.Map;
object2.candidates = new Map();
object2.recentlyShown = [];
object.candidates = new Map();
object.recentlyShown = [];
let Set = global.Set;
object2.currentlyShown = new Set();
object.currentlyShown = new Set();
Set = global.Set;
object2.currentlyShownGroup = new Set();
object2.lastWinnerTime = 0;
object2.postConnectionOpen = false;
return object2;
object.currentlyShownGroup = new Set();
object.lastWinnerTime = 0;
object.postConnectionOpen = false;
return object;
}
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 object = {};
copyDataProperties(object, a0, undefined);
const Map = global.Map;
object2['candidates'] = new Map(a0.candidates);
object['candidates'] = new Map(a0.candidates);
let Set = global.Set;
object2['currentlyShown'] = new Set(a0.currentlyShown);
object['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;
object['currentlyShownGroup'] = new Set(a0.currentlyShownGroup);
return object;
}
global.__d(_fun15762, 1371, [6, 7, 15, 17, 18, 1372, 1373, 1374, 685, 1370, 690, 1375, 566, 694,
2]) /* metro module 1371, dependencies: [6, 7, 15, 17, 18, 1372, 1373, 1374, 685, 1370, 690, 1375, 566, 694, 2] */;
@@ -1,18 +1,21 @@
/* Metro module 1366; source: modules/dismissible_content/DismissibleContentTypes.tsx; dependencies: [1365, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as Dismissible_contentModule from '../../external/discord_common/js/packages/protos/discord_protos/discord_users/v1/dismissible_content.tsx'; /* Metro dependency 1365 */
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 isTimeRecurringDismissibleContent2 = isTimeRecurringDismissibleContent;
const isVersionedDismissibleContent2 = isVersionedDismissibleContent;
const isSnowflakeBoundDismissibleContent2 = isSnowflakeBoundDismissibleContent;
const isRecurringDismissibleContent2 = isRecurringDismissibleContent;
const closure5 = function(a0) {
return !isRecurringDismissibleContent(a0);
};
const closure6 = isSingleUseGuildDismissibleContent;
const closure7 = isTimeRecurringGuildDismissibleContent;
const closure8 = isSnowflakeBoundGuildDismissibleContent;
const isSingleUseGuildDismissibleContent2 = isSingleUseGuildDismissibleContent;
const isTimeRecurringGuildDismissibleContent2 = isTimeRecurringGuildDismissibleContent;
const isSnowflakeBoundGuildDismissibleContent2 = isSnowflakeBoundGuildDismissibleContent;
let Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
const DismissibleContent = (Dismissible_contentModule).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;
@@ -164,39 +167,60 @@ function _fun15673(global, require, importDefault, importAll, module, exports, d
return !(0, global.isNaN)(a0);
});
const value2 = value.filter(closure5);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/dismissible_content/DismissibleContentTypes.tsx');
(FileImportTrackerModule).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.isTimeRecurringDismissibleContent = isTimeRecurringDismissibleContent2;
exports.isVersionedDismissibleContent = isVersionedDismissibleContent2;
exports.isSnowflakeBoundDismissibleContent = isSnowflakeBoundDismissibleContent2;
exports.isRecurringDismissibleContent = isRecurringDismissibleContent2;
exports.isSingleUseDismissibleContent = closure5;
exports.isSingleUseGuildDismissibleContent = closure6;
exports.isTimeRecurringGuildDismissibleContent = closure7;
exports.isSnowflakeBoundGuildDismissibleContent = closure8;
exports.isSingleUseGuildDismissibleContent = isSingleUseGuildDismissibleContent2;
exports.isTimeRecurringGuildDismissibleContent = isTimeRecurringGuildDismissibleContent2;
exports.isSnowflakeBoundGuildDismissibleContent = isSnowflakeBoundGuildDismissibleContent2;
exports.isGuildDismissibleContent = isGuildDismissibleContent;
exports.ALL_DISMISSIBLE_CONTENT = value;
exports.ALL_SINGLE_USE_DISMISSIBLE_CONTENT = value2;
function isTimeRecurringDismissibleContent(a0) { // fn#15674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1493:4544, offset: 0x00e3c4e9, size: 22 bytes, params: 2, frame: 11
return env0_1.includes(a0);
}
function isVersionedDismissibleContent(a0) { // fn#15675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1493:4611, offset: 0x00d72b3e, size: 22 bytes, params: 2, frame: 11
return env0_0.includes(a0);
}
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 isSingleUseGuildDismissibleContent(a0) { // fn#15679, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1493:4983, offset: 0x00e3c556, size: 22 bytes, params: 2, frame: 11
return env0_4.includes(a0);
}
function isTimeRecurringGuildDismissibleContent(a0) { // fn#15680, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1493:5051, offset: 0x00e3c56c, size: 22 bytes, params: 2, frame: 11
return env0_5.includes(a0);
}
function isSnowflakeBoundGuildDismissibleContent(a0) { // fn#15681, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1493:5123, offset: 0x00d31e24, size: 22 bytes, params: 2, frame: 11
return env0_3.includes(a0);
}
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;
}
}
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;
}
global.__d(_fun15673, 1366, [1365, 2]) /* metro module 1366, dependencies: [1365, 2] */;
@@ -1,20 +1,24 @@
/* Metro module 3968; source: modules/dismissible_content/DismissibleContentUnsafeUtils.tsx; dependencies: [5, 1348, 3969, 672, 3994, 1366, 1367, 21, 1364, 566, 1362, 2] */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
import UserSettingsProtoStore from '../user_settings/UserSettingsProtoStore.tsx'; /* Metro dependency 1348 */
import SelectedGuildStore from '../../stores/SelectedGuildStore.tsx'; /* Metro dependency 3969 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as FluxModule from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as NewUserDismissibleContentRegistryModule from './NewUserDismissibleContentRegistry.tsx'; /* Metro dependency 3994 */
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 UNSAFE_isDismissibleContentDismissed2 = UNSAFE_isDismissibleContentDismissed;
const UNSAFE_isSnowflakeBoundDismissibleContentDismissed2 = 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;
(FileImportTrackerModule).fileFinishedImporting('modules/dismissible_content/DismissibleContentUnsafeUtils.tsx');
exports.UNSAFE_isDismissibleContentDismissed = UNSAFE_isDismissibleContentDismissed2;
exports.UNSAFE_useIsDismissibleContentDismissed = UNSAFE_useIsDismissibleContentDismissed;
exports.UNSAFE_markDismissibleContentAsDismissed = function() {
return _UNSAFE_markDismissibleContentAsDismissed.apply(this, arguments);
};
exports.UNSAFE_isSnowflakeBoundDismissibleContentDismissed = closure2;
exports.UNSAFE_isSnowflakeBoundDismissibleContentDismissed = UNSAFE_isSnowflakeBoundDismissibleContentDismissed2;
exports.UNSAFE_markSingleUseGuildDismissibleContentAsDismissed = function() {
return _UNSAFE_markSingleUseGuildDismissibleContentAsDismissed.apply(this, arguments);
};
@@ -24,201 +28,206 @@ function _fun32507(global, require, importDefault, importAll, module, exports, d
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;
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;
}
binding = env2_0;
binding(env2_2[6]).markDismissibleContentAsDismissedPostProcessing(a0, r6);
}
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 Module00005(_fun32511).apply(this, arguments);
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);
}
}
}
}
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;
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 Module00005(_fun32515).apply(this, arguments);
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 _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 Module00005(_fun32518).apply(this, arguments);
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 _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 Module00005(_fun32521).apply(this, arguments);
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 object = {};
copyDataProperties(object, a3, undefined);
object['snowflakeId'] = a1;
Reflect.apply(markDismissibleContentAsDismissedPreProcessing, value5, [a0, object]);
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);
}
}
}
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 (FluxModule).useStateFromStores([UserSettingsProtoStore,
SelectedGuildStore], _fun32523);
function _fun32523() { // fn#32523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4117:3488, offset: 0x01018bfe, size: 28 bytes, params: 1, frame: 13
return UNSAFE_isDismissibleContentDismissed(env0_0, env0_1);
}
}
}
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);
}
}
global.__d(_fun32507, 3968, [5, 1348, 3969, 672, 3994, 1366, 1367, 21, 1364, 566, 1362,
2]) /* metro module 3968, dependencies: [5, 1348, 3969, 672, 3994, 1366, 1367, 21, 1364, 566, 1362, 2] */;
@@ -1,43 +1,48 @@
/* 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] */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00057 from '../../by-id/module-00057.js'; /* Metro dependency 57 */
import AnalyticsUtils from '../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import UserSettingsProtoStore from '../user_settings/UserSettingsProtoStore.tsx'; /* Metro dependency 1348 */
import DismissibleContentFrameworkStore from './DismissibleContentFrameworkStore.tsx'; /* Metro dependency 1369 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as FluxModule from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as UserSettingsProtoActionCreatorsModule from '../user_settings/UserSettingsProtoActionCreators.tsx'; /* Metro dependency 1362 */
import * as Dismissible_contentModule from '../../external/discord_common/js/packages/protos/discord_protos/discord_users/v1/dismissible_content.tsx'; /* Metro dependency 1365 */
import * as DCFEventStoreModule from './DCFEventStore.tsx'; /* Metro dependency 1368 */
import * as DismissibleContentFatigueConfigModule from './DismissibleContentFatigueConfig.tsx'; /* Metro dependency 1370 */
import * as DismissibleContentShownStateStoreModule from './DismissibleContentShownStateStore.tsx'; /* Metro dependency 1371 */
import * as DismissibleContentConstantsModule from './DismissibleContentConstants.tsx'; /* Metro dependency 1376 */
import * as NewUserDismissibleContentRegistryModule from './NewUserDismissibleContentRegistry.tsx'; /* Metro dependency 3994 */
import * as DismissibleContentFrameworkActionCreatorsModule from './DismissibleContentFrameworkActionCreators.tsx'; /* Metro dependency 12715 */
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 addVersionedDismissedContent2 = addVersionedDismissedContent;
const addTimeRecurringDismissedContent2 = addTimeRecurringDismissedContent;
const addSnowflakeBoundDismissedContent2 = addSnowflakeBoundDismissedContent;
const UNSAFE_isSingleUseGuildDismissibleContentDismissed2 = UNSAFE_isSingleUseGuildDismissibleContentDismissed;
const markDismissibleContentAsDismissedPreProcessing2 = markDismissibleContentAsDismissedPreProcessing;
const markDismissibleContentAsDismissedPostProcessing2 = markDismissibleContentAsDismissedPostProcessing;
const getGuildNextNumTimesDismissed2 = getGuildNextNumTimesDismissed;
const getNextNumTimesDismissed2 = getNextNumTimesDismissed;
const closure9 = function() {
return _markVersionedDismissibleContentAsDismissed.apply(this, arguments);
};
const closure10 = trackDismissibleContentShown;
const closure11 = trackDismissibleContentDismissed;
const trackDismissibleContentShown2 = trackDismissibleContentShown;
const trackDismissibleContentDismissed2 = 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;
ACCOUNT_LINK_PROMPT} = (Dismissible_contentModule).DismissibleContent;
const set = new Set([ACCOUNT_LINK_INVITE_FRIENDS, ACCOUNT_LINK_PROMPT]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/dismissible_content/DismissibleContentUtils.tsx');
(FileImportTrackerModule).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.addVersionedDismissedContent = addVersionedDismissedContent2;
exports.addTimeRecurringDismissedContent = addTimeRecurringDismissedContent2;
exports.addSnowflakeBoundDismissedContent = addSnowflakeBoundDismissedContent2;
exports.UNSAFE_addGuildDismissedContent = UNSAFE_addGuildDismissedContent;
exports.UNSAFE_removeGuildDismissedContent = UNSAFE_removeGuildDismissedContent;
exports.UNSAFE_addTimeRecurringGuildDismissedContent = UNSAFE_addTimeRecurringGuildDismissedContent;
@@ -47,7 +52,7 @@ function _fun15685(global, require, importDefault, importAll, module, exports, d
exports.isVersionedDismissibleContentDismissed = isVersionedDismissibleContentDismissed;
exports.isTimeRecurringDismissibleContentDismissed = isTimeRecurringDismissibleContentDismissed;
exports.isTimeRecurringSnowflakeBoundDismissibleContentDismissed = isTimeRecurringSnowflakeBoundDismissibleContentDismissed;
exports.UNSAFE_isSingleUseGuildDismissibleContentDismissed = closure4;
exports.UNSAFE_isSingleUseGuildDismissibleContentDismissed = UNSAFE_isSingleUseGuildDismissibleContentDismissed2;
exports.useIsSingleUseGuildDismissibleContentDismissed = function(a0, a1) {
var env0_0 = a0;
var env0_1 = a1;
@@ -56,13 +61,13 @@ function _fun15685(global, require, importDefault, importAll, module, exports, d
exports.UNSAFE_isTimeRecurringGuildDismissibleContentDismissed = UNSAFE_isTimeRecurringGuildDismissibleContentDismissed;
exports.UNSAFE_isSnowflakeBoundGuildDismissibleContentDismissed = UNSAFE_isSnowflakeBoundGuildDismissibleContentDismissed;
exports.requestMarkDismissibleContentAsShown = requestMarkDismissibleContentAsShown;
exports.markDismissibleContentAsDismissedPreProcessing = closure5;
exports.markDismissibleContentAsDismissedPostProcessing = closure6;
exports.markDismissibleContentAsDismissedPreProcessing = markDismissibleContentAsDismissedPreProcessing2;
exports.markDismissibleContentAsDismissedPostProcessing = markDismissibleContentAsDismissedPostProcessing2;
exports.markLatestVersionDismissibleContentAsDismissed = function() {
return _markLatestVersionDismissibleContentAsDismissed.apply(this, arguments);
};
exports.getGuildNextNumTimesDismissed = closure7;
exports.getNextNumTimesDismissed = closure8;
exports.getGuildNextNumTimesDismissed = getGuildNextNumTimesDismissed2;
exports.getNextNumTimesDismissed = getNextNumTimesDismissed2;
exports.markVersionedDismissibleContentAsDismissed = closure9;
exports.markSnowflakeBoundDismissibleContentAsDismissed = function() {
return _markSnowflakeBoundDismissibleContentAsDismissed.apply(this, arguments);
@@ -70,417 +75,429 @@ function _fun15685(global, require, importDefault, importAll, module, exports, d
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;
exports.trackDismissibleContentShown = trackDismissibleContentShown2;
exports.trackDismissibleContentDismissed = trackDismissibleContentDismissed2;
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 updateRecurringDismissibleContentState = UserSettingsProtoActionCreatorsModule.updateRecurringDismissibleContentState;
const object = {lastDismissedVersion: a1};
const Date = global.Date;
object.lastDismissedAtMs = Date.now().toString();
object.lastDismissedObjectId = '0';
object.numTimesDismissed = a2;
return Reflect.apply(updateRecurringDismissibleContentState, UserSettingsProtoActionCreatorsModule, [a0, object]);
}
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);
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 updateRecurringDismissibleContentState = UserSettingsProtoActionCreatorsModule.updateRecurringDismissibleContentState;
const object = {'lastDismissedVersion': 0, 'lastDismissedAtMs': null, 'lastDismissedObjectId': '0'};
const Date = global.Date;
object.lastDismissedAtMs = Date.now().toString();
object.numTimesDismissed = a1;
return Reflect.apply(updateRecurringDismissibleContentState, UserSettingsProtoActionCreatorsModule, [a0, object]);
}
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;
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 updateRecurringDismissibleContentState = UserSettingsProtoActionCreatorsModule.updateRecurringDismissibleContentState;
const object = {lastDismissedVersion: 0};
const Date = global.Date;
object.lastDismissedAtMs = Date.now().toString();
object.lastDismissedObjectId = a1;
object.numTimesDismissed = a2;
return Reflect.apply(updateRecurringDismissibleContentState, UserSettingsProtoActionCreatorsModule, [a0, object]);
}
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';
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
if (NewUserDismissibleContentRegistryModule.disableNewUserDismissibleContent(a0)) {
return true;
}
const guildDismissedContentState = UserSettingsProtoStore.getGuildDismissedContentState(a1);
return guildDismissedContentState != null && guildDismissedContentState[a0] != null && guildDismissedContentState[a0].dismissed === true;
}
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};
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);
}
DismissibleContentFrameworkActionCreatorsModule.handleDCDismissed(a0, a1.guildId ?? value2);
return value2;
}
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};
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 dismissibleContentFrameworkStoreBinding = DismissibleContentFrameworkStore;
const value2 = !dismissibleContentFrameworkStoreBinding.hasUserHitDCCap();
const removeCandidateContentBinding = removeCandidateContent;
const value = undefined;
removeCandidateContentBinding({content: a0, groupName: a1 == null ? value : a1.groupName}, value2);
return value;
}
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;
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 Module00005(_fun15694).apply(this, arguments);
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);
}
}
}
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);
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 Module00005(_fun15700).apply(this, arguments);
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 _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 Module00005(_fun15703).apply(this, arguments);
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 object = {};
copyDataProperties(object, a2, undefined);
object['snowflakeId'] = a1;
binding(a0, object);
yield env2_17(a0, a1, value3);
if (false) {
return undefined;
}
env2_20(a0, a2);
}
}
}
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 Module00005(_fun15706).apply(this, arguments);
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 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 = Module00057(getCurrentlyShownCountsBinding(), 2);
const property = value4[0];
const property2 = value4[1];
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const DISMISSIBLE_CONTENT_SHOWN = AnalyticEvents.DISMISSIBLE_CONTENT_SHOWN;
const object = {};
const DismissibleContent = (Dismissible_contentModule).DismissibleContent;
object.type = DismissibleContent[a0];
object.content_count = property;
object.fatigable_content_count = property2;
object.group_name = a1 == null ? value2 : a1.groupName;
const CONTENT_TYPES_WITH_BYPASS_FATIGUE = (DismissibleContentFatigueConfigModule).CONTENT_TYPES_WITH_BYPASS_FATIGUE;
object.bypass_fatigue = CONTENT_TYPES_WITH_BYPASS_FATIGUE.has(a0);
object.guild_id = a1 == null ? value2 : a1.guildId;
object.version = a1 == null ? value2 : a1.version;
object.snowflake_id = a1 == null ? value2 : a1.snowflakeId;
Reflect.apply(track, defaultImport, [DISMISSIBLE_CONTENT_SHOWN, object]);
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 = Module00057(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 = AnalyticsUtils;
const track = defaultImport.track;
const DISMISSIBLE_CONTENT_DISMISSED = AnalyticEvents.DISMISSIBLE_CONTENT_DISMISSED;
const object = {};
const DismissibleContent = (Dismissible_contentModule).DismissibleContent;
object.type = DismissibleContent[a0];
const dismissAction = value9 == value ? value3 : value.dismissAction;
object.action = value9 != dismissAction ? dismissAction : ContentDismissActionType.UNKNOWN;
object.content_count = property;
object.group_name = value9 == value ? value3 : value.groupName;
const CONTENT_TYPES_WITH_BYPASS_FATIGUE = (DismissibleContentFatigueConfigModule).CONTENT_TYPES_WITH_BYPASS_FATIGUE;
object.bypass_fatigue = CONTENT_TYPES_WITH_BYPASS_FATIGUE.has(a0);
object.guild_id = value9 == value ? value3 : value.guildId;
object.shown_duration = r8;
object.version = value9 == value ? value3 : value.version;
object.num_times_dismissed = r7;
object.snowflake_id = value9 == value ? value3 : value.snowflakeId;
Reflect.apply(track, defaultImport, [DISMISSIBLE_CONTENT_DISMISSED, object]);
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 object = {};
const isVersionedDismissibleContent2 = (require(1366) /* metro dependency 1366: DismissibleContentTypes */).isVersionedDismissibleContent(a0);
const value3 = 0;
object.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();
object.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';
}
object.lastDismissedObjectId = r5;
object.numTimesDismissed = (r4 == null ? value2 : r4.numTimesDismissed) ?? value3;
return object;
}
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 updateGuildDismissedContent = UserSettingsProtoActionCreatorsModule.updateGuildDismissedContent;
const object = {'dismissed': true, 'lastDismissedVersion': 0, 'lastDismissedAtMs': null,
'lastDismissedObjectId': '0'};
const Date = global.Date;
object.lastDismissedAtMs = Date.now().toString();
object.numTimesDismissed = a2;
return Reflect.apply(updateGuildDismissedContent, UserSettingsProtoActionCreatorsModule, [a0, a1, object]);
}
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 updateGuildDismissedContent = UserSettingsProtoActionCreatorsModule.updateGuildDismissedContent;
const object = {'dismissed': false, 'lastDismissedVersion': 0, 'lastDismissedAtMs': null,
'lastDismissedObjectId': '0'};
const Date = global.Date;
object.lastDismissedAtMs = Date.now().toString();
object.numTimesDismissed = a2;
return Reflect.apply(updateGuildDismissedContent, UserSettingsProtoActionCreatorsModule, [a0, a1, object]);
}
function UNSAFE_addTimeRecurringGuildDismissedContent(a0, a1, a2) { // fn#15712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:6050, offset: 0x00e3d21e, size: 100 bytes, params: 4, frame: 15
const updateGuildDismissedContent = UserSettingsProtoActionCreatorsModule.updateGuildDismissedContent;
const object = {'dismissed': false, 'lastDismissedVersion': 0, 'lastDismissedAtMs': null,
'lastDismissedObjectId': '0'};
const Date = global.Date;
object.lastDismissedAtMs = Date.now().toString();
object.numTimesDismissed = a2;
return Reflect.apply(updateGuildDismissedContent, UserSettingsProtoActionCreatorsModule, [a0, a1, object]);
}
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 (UserSettingsProtoActionCreatorsModule).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 updateGuildDismissedContent = UserSettingsProtoActionCreatorsModule.updateGuildDismissedContent;
const object = {'dismissed': false, 'lastDismissedVersion': 0};
const Date = global.Date;
object.lastDismissedAtMs = Date.now().toString();
object.lastDismissedObjectId = a1;
object.numTimesDismissed = a3;
return Reflect.apply(updateGuildDismissedContent, UserSettingsProtoActionCreatorsModule, [a0, a2, object]);
}
function UNSAFE_removeSnowflakeBoundGuildDismissedContent(a0, a1, a2) { // fn#15715, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:6890, offset: 0x00e3d282, size: 64 bytes, params: 4, frame: 15
return (UserSettingsProtoActionCreatorsModule).updateGuildDismissedContent(a0,
a1, {'dismissed': false, 'lastDismissedVersion': 0, 'lastDismissedAtMs': '0', 'lastDismissedObjectId': '0',
numTimesDismissed: a2});
}
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;
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;
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;
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;
}
} 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;
}
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;
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 (FluxModule).useStateFromStores([UserSettingsProtoStore], _fun15720);
function _fun15720() { // fn#15720, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1494:9156, offset: 0x00e3d6c3, size: 28 bytes, params: 1, frame: 13
return UNSAFE_isSingleUseGuildDismissibleContentDismissed(env0_0, require);
}
}
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;
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
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';
}
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;
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
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';
}
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});
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
var dismissibleContentFrameworkStoreBinding;
const value = a2;
const env0_0 = a0;
const env0_1 = a1;
const isContentShownBinding = isContentShown;
const value3 = undefined;
if (!isContentShownBinding(a0)) {
dismissibleContentFrameworkStoreBinding = DismissibleContentFrameworkStore;
if (!dismissibleContentFrameworkStoreBinding.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;
return value3;
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;
DismissibleContentFrameworkActionCreatorsModule.handleDCShownToUser(env0_0,
require == null ? value2 : require.guildId);
trackDismissibleContentShown(env0_0, require);
if (!(require == null || require.onShown == null)) {
require.onShown();
}
return value2;
}
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;
}
global.__d(_fun15685, 1367, [57, 5, 1348, 1368, 1369, 1371, 1376, 661, 1366, 1377, 21, 1362, 3994, 566, 1365, 694,
12715, 683, 1370,
2]) /* metro module 1367, dependencies: [57, 5, 1348, 1368, 1369, 1371, 1376, 661, 1366, 1377, 21, 1362, 3994, 566, 1365, 694, 12715, 683, 1370, 2] */;
@@ -1,73 +1,76 @@
/* Metro module 3994; source: modules/dismissible_content/NewUserDismissibleContentRegistry.tsx; dependencies: [1226, 1369, 1365, 672, 632, 21, 2] */
import Durations from '../../utils/Durations.tsx'; /* Metro dependency 672 */
import AuthenticationStore from '../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
import DismissibleContentFrameworkStore from './DismissibleContentFrameworkStore.tsx'; /* Metro dependency 1369 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as Dismissible_contentModule from '../../external/discord_common/js/packages/protos/discord_protos/discord_users/v1/dismissible_content.tsx'; /* Metro dependency 1365 */
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 isUserAccountOldEnough2 = 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;
object = {};
const DismissibleContent = (Dismissible_contentModule).DismissibleContent;
const MJ_NEW_USER_CHAT_BAR = DismissibleContent.MJ_NEW_USER_CHAT_BAR;
object2[MJ_NEW_USER_CHAT_BAR] = 0;
object[MJ_NEW_USER_CHAT_BAR] = 0;
const NUX_GUILD_CHANNEL_EXPLAINER = DismissibleContent.NUX_GUILD_CHANNEL_EXPLAINER;
object2[NUX_GUILD_CHANNEL_EXPLAINER] = 0;
object[NUX_GUILD_CHANNEL_EXPLAINER] = 0;
const SEEN_LAUNCH_WELCOME = DismissibleContent.SEEN_LAUNCH_WELCOME;
object2[SEEN_LAUNCH_WELCOME] = 0;
object[SEEN_LAUNCH_WELCOME] = 0;
const SEEN_OLD_DESIGN = DismissibleContent.SEEN_OLD_DESIGN;
object2[SEEN_OLD_DESIGN] = 0;
object[SEEN_OLD_DESIGN] = 0;
const REFERRAL_PROGRAM_PROGRESS_BAR_TOGGLE = DismissibleContent.REFERRAL_PROGRAM_PROGRESS_BAR_TOGGLE;
object2[REFERRAL_PROGRAM_PROGRESS_BAR_TOGGLE] = 0;
object[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;
object[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;
object[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;
object[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;
object[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;
object[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;
object[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;
object[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;
object[FRACTIONAL_NITRO_DURATION_LEFT_PILL] = 0;
const TRIAL_NUX_EMOJI_BUTTON = DismissibleContent.TRIAL_NUX_EMOJI_BUTTON;
object2[TRIAL_NUX_EMOJI_BUTTON] = 0;
object[TRIAL_NUX_EMOJI_BUTTON] = 0;
const TRIAL_NUX_EMOJI_PICKER = DismissibleContent.TRIAL_NUX_EMOJI_PICKER;
object2[TRIAL_NUX_EMOJI_PICKER] = 0;
object[TRIAL_NUX_EMOJI_PICKER] = 0;
const TRIAL_NUX_STREAM_COACH_MARK = DismissibleContent.TRIAL_NUX_STREAM_COACH_MARK;
object2[TRIAL_NUX_STREAM_COACH_MARK] = 0;
object[TRIAL_NUX_STREAM_COACH_MARK] = 0;
const OVERLAY_OOP_SETTINGS_NUX = DismissibleContent.OVERLAY_OOP_SETTINGS_NUX;
object2[OVERLAY_OOP_SETTINGS_NUX] = 0;
object[OVERLAY_OOP_SETTINGS_NUX] = 0;
const OVERLAY_OOP_WELCOME_NUX = DismissibleContent.OVERLAY_OOP_WELCOME_NUX;
object2[OVERLAY_OOP_WELCOME_NUX] = 0;
object[OVERLAY_OOP_WELCOME_NUX] = 0;
const OVERLAY_OOP_WELCOME_BACKGROUND_NUX = DismissibleContent.OVERLAY_OOP_WELCOME_BACKGROUND_NUX;
object2[OVERLAY_OOP_WELCOME_BACKGROUND_NUX] = 0;
object[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;
object[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;
object[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;
object[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;
object[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;
object[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;
object[PROFILE_FRAMES_NITRO_TAB_NEW_BADGE] = 0;
const BOGO_2025_ANNOUNCEMENT_MODAL = DismissibleContent.BOGO_2025_ANNOUNCEMENT_MODAL;
object2[BOGO_2025_ANNOUNCEMENT_MODAL] = 0;
object[BOGO_2025_ANNOUNCEMENT_MODAL] = 0;
const NITRO_DROP_REWARD = DismissibleContent.NITRO_DROP_REWARD;
object2[NITRO_DROP_REWARD] = 0;
object[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;
object[BOUNTIES_SWIPE_UP_NUX] = 0;
const Millis = (Durations).Millis;
const env0_6 = Millis.DAY;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/dismissible_content/NewUserDismissibleContentRegistry.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/dismissible_content/NewUserDismissibleContentRegistry.tsx');
exports.useNewUserDismissibleContent = function(a0) {
var r0;
var value = a0;
@@ -83,48 +86,61 @@ function _fun32799(global, require, importDefault, importAll, module, exports, d
return r0;
};
exports.disableNewUserDismissibleContent = disableNewUserDismissibleContent;
exports.isUserAccountOldEnough = closure;
}
exports.isUserAccountOldEnough = isUserAccountOldEnough2;
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 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);
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;
});
r0 = value;
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 _fun32802() { // fn#32802, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4152:2173, offset: 0x0101eac9, size: 40 bytes, params: 1, frame: 11
const object = {};
object.userId = AuthenticationStore.getId();
object.newUserMinAgeRequiredOverridden = DismissibleContentFrameworkStore.newUserMinAgeRequiredOverridden;
return object;
}
function _fun32803(a0) { // fn#32803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4152:2330, offset: 0x0101eaf1, size: 27 bytes, params: 2, frame: 13
return isUserAccountOldEnough(userId, a0);
}
}
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;
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;
}
return r0;
}
global.__d(_fun32799, 3994, [1226, 1369, 1365, 672, 632, 21,
2]) /* metro module 3994, dependencies: [1226, 1369, 1365, 672, 632, 21, 2] */;
@@ -1,43 +1,46 @@
/* Metro module 1374; source: modules/dismissible_content/TaskRunner.tsx; dependencies: [6, 7, 2] */
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
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');
(FileImportTrackerModule).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);
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 CreateClass(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;
}
}}, {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
ClassCallCheck.timeoutId = null;
env0_1();
}
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();
}
global.__d(_fun15838, 1374, [6, 7, 2]) /* metro module 1374, dependencies: [6, 7, 2] */;
@@ -1,79 +1,86 @@
/* Metro module 1377; source: modules/dismissible_content/VersionedDismissibleContentUtils.tsx; dependencies: [1378, 5174, 6832, 1365, 12712, 12713, 1909, 12714, 1392, 2] */
import EmbeddedActivitiesStore from '../activities/EmbeddedActivitiesStore.tsx'; /* Metro dependency 1378 */
import CollectiblesMarketingsStore from '../collectibles/CollectiblesMarketingsStore.tsx'; /* Metro dependency 5174 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as Dismissible_contentModule from '../../external/discord_common/js/packages/protos/discord_protos/discord_users/v1/dismissible_content.tsx'; /* Metro dependency 1365 */
import * as SocialLayerStorefrontConstantsModule from '../slayer_storefront/SocialLayerStorefrontConstants.tsx'; /* Metro dependency 6832 */
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');
(FileImportTrackerModule).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 object;
var moduleValue;
var getNewestBadgeableVersion;
var collectiblesMarketingsStoreBinding;
var value;
const value2 = undefined;
const DismissibleContent = (Dismissible_contentModule).DismissibleContent;
const COLLECTIBLES_SHOP_ENTRY_MARKETING = DismissibleContent.COLLECTIBLES_SHOP_ENTRY_MARKETING;
if (COLLECTIBLES_SHOP_ENTRY_MARKETING === a0) {
collectiblesMarketingsStoreBinding = CollectiblesMarketingsStore;
value = collectiblesMarketingsStoreBinding.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;
object = {};
object.storeState = EmbeddedActivitiesStore.getState();
object.surface = (require(1909) /* metro dependency 1909: Server */).EmbeddedActivitySurfaces.VOICE_LAUNCHER;
return Reflect.apply(getNewestBadgeableVersion, moduleValue, [object]);
}
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;
}
}
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;
}
global.__d(_fun15848, 1377, [1378, 5174, 6832, 1365, 12712, 12713, 1909, 12714, 1392,
2]) /* metro module 1377, dependencies: [1378, 5174, 6832, 1365, 12712, 12713, 1909, 12714, 1392, 2] */;
@@ -1,10 +1,14 @@
/* Metro module 7013; source: modules/dismissible_content/hooks/useSelectedDismissibleContent.tsx; dependencies: [57, 7014, 7016, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as UseGetDismissibleContentModule from '../useGetDismissibleContent.tsx'; /* Metro dependency 7014 */
import * as UseSelectedDismissibleContentSharedModule from '../useSelectedDismissibleContentShared.tsx'; /* Metro dependency 7016 */
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');
(FileImportTrackerModule).fileFinishedImporting('modules/dismissible_content/hooks/useSelectedDismissibleContent.tsx');
exports.useSelectedDismissibleContent = useSelectedDismissibleContent;
exports.useSelectedSingleUseGuildDismissibleContent = useSelectedSingleUseGuildDismissibleContent;
exports.useSelectedVersionedDismissibleContent = useSelectedVersionedDismissibleContent;
@@ -13,99 +17,100 @@ function _fun55539(global, require, importDefault, importAll, module, exports, d
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 = Module00057((require(7014) /* metro dependency 7014: useGetDismissibleContent */).useGetDismissibleContent(a0,
a1), 2);
const property = value[0];
const property2 = value[1];
(UseSelectedDismissibleContentSharedModule).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 = Module00057((require(7014) /* metro dependency 7014: useGetDismissibleContent */).UNSAFE_useGetSingleUseGuildDismissibleContent(a0,
a1, a2), 2);
const property = value[0];
const property2 = value[1];
(UseSelectedDismissibleContentSharedModule).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 = Module00057((require(7014) /* metro dependency 7014: useGetDismissibleContent */).useGetVersionedDismissibleContent(a0,
a1, a2), 2);
const property = value[0];
const property2 = value[1];
(UseSelectedDismissibleContentSharedModule).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 = Module00057((require(7014) /* metro dependency 7014: useGetDismissibleContent */).useGetTimeRecurringDismissibleContent(a0,
a1, a2), 2);
const property = value[0];
const property2 = value[1];
(UseSelectedDismissibleContentSharedModule).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 = Module00057((require(7014) /* metro dependency 7014: useGetDismissibleContent */).useGetSnowflakeBoundDismissibleContent(a0,
a1, a2), 2);
const property = value[0];
const property2 = value[1];
(UseSelectedDismissibleContentSharedModule).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 = Module00057((require(7014) /* metro dependency 7014: useGetDismissibleContent */).UNSAFE_useGetSnowflakeBoundGuildDismissibleContent(a0,
a2, a1, a3), 2);
const property = value[0];
const property2 = value[1];
(UseSelectedDismissibleContentSharedModule).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 = Module00057((require(7014) /* metro dependency 7014: useGetDismissibleContent */).useGetTimeRecurringSnowflakeBoundDismissibleContent(a0,
a2, a1, a3), 2);
const property = value[0];
const property2 = value[1];
(UseSelectedDismissibleContentSharedModule).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 = Module00057((UseGetDismissibleContentModule).UNSAFE_useGetTimeRecurringGuildDismissibleContent(a0,
a1, a2, a3), 2);
const property = value[0];
const property2 = value[1];
(UseSelectedDismissibleContentSharedModule).useSelectedDismissibleContentShared(property,
property2, false, a1);
return [property, property2];
}
}
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];
}
global.__d(_fun55539, 7013, [57, 7014, 7016, 2]) /* metro module 7013, dependencies: [57, 7014, 7016, 2] */;
@@ -1,55 +1,59 @@
/* Metro module 11088; source: modules/dismissible_content/native/DismissibleActionSheet.tsx; dependencies: [31, 4594, 4080, 2] */
import UseMountEffect from '../../../hooks/useMountEffect.tsx'; /* Metro dependency 4594 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
function _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');
(FileImportTrackerModule).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;
(UseMountEffect)(_fun84901);
ReactModule.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 object = {};
copyDataProperties(object, binding, undefined);
object['markAsDismissed'] = markAsDismissed_84902;
Reflect.apply(openLazy, value, [value3, actionSheetKey, object]);
function markAsDismissed_84902(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 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 _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);
}
}
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);
}
}
global.__d(_fun84899, 11088, [31, 4594, 4080, 2]) /* metro module 11088, dependencies: [31, 4594, 4080, 2] */;
@@ -1,60 +1,75 @@
/* Metro module 13921; source: modules/dismissible_content/native/DismissibleNewBadge.tsx; dependencies: [31, 7047, 33, 4501, 697, 10357, 477, 1305, 4589, 676, 2] */
import SelectedDismissibleContent from './SelectedDismissibleContent.tsx'; /* Metro dependency 10357 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsIOSModule from '../../../ConstantsIOS.tsx'; /* Metro dependency 676 */
import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as ColorConstantsModule from '../../colors/native/ColorConstants.tsx'; /* Metro dependency 7047 */
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;
ReactModule;
const createStyles = CreateStylesModule.createStyles;
const object2 = {};
object2.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');
object2.marginLeft = PX_4;
const env0_5 = Reflect.apply(createStyles, CreateStylesModule, [{newTag: {backgroundColor: 'transparent'},
newTagContainer: object2}]);
(FileImportTrackerModule).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;
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>)(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 = (ConstantsIOSModule).HorizontalGradient;
var unsafe_rawColors;
var items2;
const NewTag = (NativeModule).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;
}
defaultImportProps2.colors = r4;
r0 = ((Component) => <Component {...defaultImportProps2}><NewTag containerStyle={styles.newTag} variant={r5} /></Component>)(defaultImport);
}
return r0;
}
global.__d(_fun105683, 13921, [31, 7047, 33, 4501, 697, 10357, 477, 1305, 4589, 676,
2]) /* metro module 13921, dependencies: [31, 7047, 33, 4501, 697, 10357, 477, 1305, 4589, 676, 2] */;
@@ -1,70 +1,73 @@
/* Metro module 10357; source: modules/dismissible_content/native/SelectedDismissibleContent.tsx; dependencies: [57, 31, 33, 7013, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as UseSelectedDismissibleContentModule from '../hooks/useSelectedDismissibleContent.tsx'; /* Metro dependency 7013 */
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');
ReactModule;
(FileImportTrackerModule).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 = Module00057((UseSelectedDismissibleContentModule).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 = Module00057((UseSelectedDismissibleContentModule).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 = Module00057((UseSelectedDismissibleContentModule).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 = Module00057((UseSelectedDismissibleContentModule).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 = Module00057((UseSelectedDismissibleContentModule).useSelectedTimeRecurringSnowflakeBoundDismissibleContent(contentType,
newSnowflakeId, timeRecurringConfig, groupName, bypassAutoDismiss), 2);
return (
<>
{children({visibleContent: value3[0], markAsDismissed: value3[1]})}
</>
);
}
}
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]})}
</>
);
}
global.__d(_fun80243, 10357, [57, 31, 33, 7013, 2]) /* metro module 10357, dependencies: [57, 31, 33, 7013, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,40 +1,44 @@
/* Metro module 7016; source: modules/dismissible_content/useSelectedDismissibleContentShared.tsx; dependencies: [31, 1369, 1376, 1370, 1366, 2] */
import DismissibleContentFrameworkStore from './DismissibleContentFrameworkStore.tsx'; /* Metro dependency 1369 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as DismissibleContentConstantsModule from './DismissibleContentConstants.tsx'; /* Metro dependency 1376 */
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');
(FileImportTrackerModule).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);
}
}
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);
}
}
global.__d(_fun55594, 7016, [31, 1369, 1376, 1370, 1366,
2]) /* metro module 7016, dependencies: [31, 1369, 1376, 1370, 1366, 2] */;
@@ -1,4 +1,10 @@
/* Metro module 14158; source: modules/dismissible_content/utils/toggleDismissibleContentDismissState.tsx; dependencies: [31, 3969, 12715, 1377, 1367, 1362, 21, 566, 3968, 672, 1366, 2] */
import Durations from '../../../utils/Durations.tsx'; /* Metro dependency 672 */
import SelectedGuildStore from '../../../stores/SelectedGuildStore.tsx'; /* Metro dependency 3969 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as DismissibleContentUnsafeUtilsModule from '../DismissibleContentUnsafeUtils.tsx'; /* Metro dependency 3968 */
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) {
@@ -6,235 +12,152 @@ function _fun107140(global, require, importDefault, importAll, module, exports,
};
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');
(FileImportTrackerModule).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)) {
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 UNSAFE_useIsDismissibleContentDismissed = DismissibleContentUnsafeUtilsModule.UNSAFE_useIsDismissibleContentDismissed;
const Millis = (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;
binding6 = env0_2;
toggleDismissibleContentShared(binding, binding6);
if (binding6) {
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;
r2 = value;
r1 = 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.addVersionedDismissedContent(binding, versionedDismissibleContentCurrentVersion,
nextNumTimesDismissed2);
value = true;
r2 = value;
r1 = value;
}
r0 = r2;
r0 = r1;
} else {
moduleValue4 = require(1366) /* metro dependency 1366: DismissibleContentTypes */;
if (moduleValue4.isSingleUseGuildDismissibleContent(env0_0)) {
moduleValue2 = dismissibleContentTypesModule;
if (moduleValue2.isSnowflakeBoundDismissibleContent(env0_0)) {
binding = env0_0;
guildIdBinding = guildId;
binding5 = env0_2;
value10 = false;
if (guildIdBinding == null) {
r2 = value10;
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 {
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;
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 {
moduleValue5 = require(1366) /* metro dependency 1366: DismissibleContentTypes */;
if (moduleValue5.isTimeRecurringGuildDismissibleContent(env0_0)) {
moduleValue3 = require(1366) /* metro dependency 1366: DismissibleContentTypes */;
if (moduleValue3.isTimeRecurringDismissibleContent(env0_0)) {
binding = env0_0;
guildIdBinding = guildId;
binding4 = env0_2;
value7 = false;
if (guildIdBinding == null) {
r2 = value7;
binding6 = env0_2;
toggleDismissibleContentShared(binding, binding6);
if (binding6) {
value = require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */;
value.removeDismissedRecurringContent(binding);
value = false;
r2 = value;
} 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;
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 {
isSnowflakeBoundGuildDismissibleContent2 = (require(1366) /* metro dependency 1366: DismissibleContentTypes */).isSnowflakeBoundGuildDismissibleContent(env0_0);
binding = env0_0;
if (isSnowflakeBoundGuildDismissibleContent2) {
moduleValue4 = require(1366) /* metro dependency 1366: DismissibleContentTypes */;
if (moduleValue4.isSingleUseGuildDismissibleContent(env0_0)) {
binding = env0_0;
guildIdBinding = guildId;
binding3 = env0_2;
value3 = false;
binding5 = env0_2;
value10 = false;
if (guildIdBinding == null) {
r2 = value3;
r2 = value10;
} else {
value4 = 1;
value11 = 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;
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 {
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.UNSAFE_addGuildDismissedContent(binding, guildIdBinding, r7);
value = true;
r3 = value;
}
@@ -242,24 +165,106 @@ function _fun107144() { // fn#107144, source: /ci/build/discord/discord/discord_
}
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;
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 {
value.addDismissedContent(binding);
value = true;
r0 = value;
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;
}
}
return r0;
}
global.__d(_fun107140, 14158, [31, 3969, 12715, 1377, 1367, 1362, 21, 566, 3968, 672, 1366,
2]) /* metro module 14158, dependencies: [31, 3969, 12715, 1377, 1367, 1362, 21, 566, 3968, 672, 1366, 2] */;