Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,752 @@
|
||||
/* Metro module 9495; source: modules/quests/lib/AssetUtils.tsx; dependencies: [6528, 661, 9496, 9497, 9498, 9499, 9500, 7098, 9507, 9508, 6535, 1471, 1852, 2] */
|
||||
function _fun74112(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74112, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9681:6, offset: 0x01d80ea4, size: 1021 bytes, params: 8, frame: 34
|
||||
const env0_0 = require;
|
||||
const closure = resolveAsset;
|
||||
const getVideoOrDefaultAsset = function(a0, a1) {
|
||||
return a1;
|
||||
};
|
||||
const closure2 = buildUrl;
|
||||
const closure3 = getMimetype;
|
||||
const safeMediaProxyDimension = function(a0) {
|
||||
var Math = global.Math;
|
||||
var Math2 = global.Math;
|
||||
return Math.min(Math2.ceil(a0), MEDIA_PROXY_MAX_TARGET_RESOLUTION);
|
||||
};
|
||||
const closure4 = getAssetUrlWithMediaProxyQueryParams;
|
||||
const closure5 = convertVideoToFirstFrameImageWithMediaProxy;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const questConstantsModule = require(6528) /* metro dependency 6528: QuestConstants */;
|
||||
const env0_3 = questConstantsModule.CDN_URL_BASE;
|
||||
const env0_4 = questConstantsModule.QUESTS_CDN_URL_BASE;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).MEDIA_PROXY_MAX_TARGET_RESOLUTION;
|
||||
const regexp = RegExp('\\.([a-zA-Z0-9]+)$', '');
|
||||
const object = {HERO: 'hero', HERO_IMAGE: 'hero_image', HERO_VIDEO: 'hero_video', QUEST_BAR_HERO: 'quest_bar_hero',
|
||||
QUEST_BAR_HERO_VIDEO: 'quest_bar_hero_video', QUEST_BAR_HERO_IMAGE: 'quest_bar_hero_image', REWARD: 'reward',
|
||||
REWARD_IMAGE: 'reward_image', GAME_TILE: 'game_tile', LOGO_TYPE: 'logo_type',
|
||||
COSPONSOR_LOGO_TYPE: 'cosponsor_logo_type', VIDEO_PLAYER_VIDEO: 'video_player_video',
|
||||
VIDEO_PLAYER_VIDEO_LOW_RES: 'video_player_video_low_res', VIDEO_PLAYER_VIDEO_HLS: 'video_player_video_hls',
|
||||
VIDEO_PLAYER_THUMBNAIL: 'video_player_thumbnail', VIDEO_PLAYER_CAPTION: 'video_player_caption',
|
||||
VIDEO_PLAYER_TRANSCRIPT: 'video_player_transcript'};
|
||||
const object8 = {VIDEO: 'video', VIDEO_LOW_RES: 'videoLowRes', VIDEO_HLS: 'videoHls'};
|
||||
const object9 = {VIDEO: 'url', THUMBNAIL: 'thumbnail', CAPTION: 'caption', TRANSCRIPT: 'transcript'};
|
||||
const object10 = {TIER_1: 1};
|
||||
object10[1] = 'TIER_1';
|
||||
object10.TIER_2 = 2;
|
||||
object10[2] = 'TIER_2';
|
||||
object10.TIER_3 = 3;
|
||||
object10[3] = 'TIER_3';
|
||||
object10.TIER_4 = 4;
|
||||
object10[4] = 'TIER_4';
|
||||
const object11 = {};
|
||||
const VIDEO_PLAYER_VIDEO = object.VIDEO_PLAYER_VIDEO;
|
||||
const object12 = {};
|
||||
let VIDEO = object8.VIDEO;
|
||||
object12.variant = VIDEO;
|
||||
VIDEO = object9.VIDEO;
|
||||
object12.property = VIDEO;
|
||||
object11[VIDEO_PLAYER_VIDEO] = object12;
|
||||
const VIDEO_PLAYER_VIDEO_LOW_RES = object.VIDEO_PLAYER_VIDEO_LOW_RES;
|
||||
const VIDEO_LOW_RES = object8.VIDEO_LOW_RES;
|
||||
VIDEO = object9.VIDEO;
|
||||
object11[VIDEO_PLAYER_VIDEO_LOW_RES] = {variant: VIDEO_LOW_RES, property: VIDEO};
|
||||
const VIDEO_PLAYER_VIDEO_HLS = object.VIDEO_PLAYER_VIDEO_HLS;
|
||||
const VIDEO_HLS = object8.VIDEO_HLS;
|
||||
VIDEO = object9.VIDEO;
|
||||
object11[VIDEO_PLAYER_VIDEO_HLS] = {variant: VIDEO_HLS, property: VIDEO};
|
||||
const VIDEO_PLAYER_THUMBNAIL = object.VIDEO_PLAYER_THUMBNAIL;
|
||||
VIDEO = object8.VIDEO;
|
||||
const THUMBNAIL = object9.THUMBNAIL;
|
||||
object11[VIDEO_PLAYER_THUMBNAIL] = {variant: VIDEO, property: THUMBNAIL};
|
||||
const VIDEO_PLAYER_CAPTION = object.VIDEO_PLAYER_CAPTION;
|
||||
VIDEO = object8.VIDEO;
|
||||
const CAPTION = object9.CAPTION;
|
||||
object11[VIDEO_PLAYER_CAPTION] = {variant: VIDEO, property: CAPTION};
|
||||
const VIDEO_PLAYER_TRANSCRIPT = object.VIDEO_PLAYER_TRANSCRIPT;
|
||||
VIDEO = object8.VIDEO;
|
||||
const TRANSCRIPT = object9.TRANSCRIPT;
|
||||
object11[VIDEO_PLAYER_TRANSCRIPT] = {variant: VIDEO, property: TRANSCRIPT};
|
||||
const object14 = {};
|
||||
const TIER_1 = object10.TIER_1;
|
||||
object14[TIER_1] = importDefault(9496) /* metro dependency 9496: tier1_rewardTile_animatedWebm */;
|
||||
const TIER_2 = object10.TIER_2;
|
||||
object14[TIER_2] = importDefault(9497) /* metro dependency 9497: tier2_rewardTile_animatedWebm */;
|
||||
const TIER_3 = object10.TIER_3;
|
||||
object14[TIER_3] = importDefault(9498) /* metro dependency 9498: tier3_rewardTile_animatedWebm */;
|
||||
const TIER_4 = object10.TIER_4;
|
||||
object14[TIER_4] = importDefault(9499) /* metro dependency 9499: tier4_rewardTile_animatedWebm */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/lib/AssetUtils.tsx');
|
||||
exports.EXTENSION_RE = regexp;
|
||||
exports.ANIMATED_MIMETYPES = ['video/mp4', 'video/webm'];
|
||||
exports.QuestAssetType = object;
|
||||
exports.resolveAsset = closure;
|
||||
exports.OrbsValueTier = object10;
|
||||
exports.getQuestAsset = getQuestAsset;
|
||||
exports.buildUrl = closure2;
|
||||
exports.resolveAdCreativeCdnUrl = function(a0) {
|
||||
var value = a0;
|
||||
if (value != null) {
|
||||
return value.startsWith('http://') || value.startsWith('https://') || value.startsWith('blob:') ? value : '' + CDN_URL_BASE + value;
|
||||
}
|
||||
};
|
||||
exports.getMimetype = closure3;
|
||||
exports.getDevicePixelScaledDimensions = getDevicePixelScaledDimensions;
|
||||
exports.getAssetUrlWithMediaProxyQueryParams = closure4;
|
||||
exports.getScaledImageUrl = function({assetUrl, width, height}) {
|
||||
var value2 = importDefault(dependencyMap[12])();
|
||||
return getAssetUrlWithMediaProxyQueryParams(assetUrl, {width: width * value2, height: height * value2,
|
||||
format: 'webp'});
|
||||
};
|
||||
exports.convertVideoToFirstFrameImageWithMediaProxy = closure5;
|
||||
exports.getScaledFirstFrameImageUrl = function({assetUrl, width, height}) {
|
||||
var value2 = importDefault(dependencyMap[12])();
|
||||
return convertVideoToFirstFrameImageWithMediaProxy(assetUrl, {width: width * value2, height: height * value2});
|
||||
};
|
||||
}
|
||||
|
||||
function resolveAsset(a0, a1, a2) { // fn#74113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9681:900, offset: 0x01d812a1, size: 75 bytes, params: 4, frame: 16
|
||||
const url = buildUrl(a0, a1, a2);
|
||||
const mimetype = getMimetype(a1);
|
||||
const object2 = {url: url, mimetype: mimetype};
|
||||
object2.isAnimated = mimetype != null && env0_7.includes(mimetype);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function buildUrl(a0, a1, a2) { // fn#74115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9681:1890, offset: 0x01d812ec, size: 218 bytes, params: 4, frame: 20
|
||||
const value = a1;
|
||||
if (value.startsWith('blob:')) {
|
||||
return value.split('?', 1).at(0) ?? value;
|
||||
}
|
||||
return value.includes('/') ? '' + CDN_URL_BASE + value : '' + QUESTS_CDN_URL_BASE + a0 + (a2?.theme != null ? '/' + a2.theme : '') + '/' + value;
|
||||
}
|
||||
|
||||
function getMimetype(a0) { // fn#74116, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9681:2140, offset: 0x01d813c6, size: 444 bytes, params: 2, frame: 18
|
||||
var r5;
|
||||
var r1;
|
||||
var r2;
|
||||
let value = a0.startsWith('blob:');
|
||||
const value3 = undefined;
|
||||
const value4 = (importDefault(1471) /* metro dependency 1471: URLUtils */).toURLSafe(a0);
|
||||
const value5 = null;
|
||||
const value6 = value5 == value4;
|
||||
if (value) {
|
||||
r1 = value6 ? value3 : value4.searchParams.get('mimetype');
|
||||
r2 = value5 != r1 ? r1 : value3;
|
||||
return value5 != r2 ? global.decodeURIComponent(r2) : value5;
|
||||
}
|
||||
if (value6) {
|
||||
r5 = value3;
|
||||
} else {
|
||||
value = value4.searchParams.get('format');
|
||||
if (value5 == value) {
|
||||
r5 = value3;
|
||||
} else {
|
||||
value = value.toLowerCase();
|
||||
r5 = value;
|
||||
}
|
||||
}
|
||||
if (value5 == r5) {
|
||||
value = env0_6.exec(a0);
|
||||
r5 = value5 == value || value5 == value[1] ? value3 : value[1].toLowerCase();
|
||||
}
|
||||
if (r5 === 'webm') {
|
||||
return 'video/webm';
|
||||
}
|
||||
if (r5 === 'mp4') {
|
||||
return 'video/mp4';
|
||||
}
|
||||
if (r5 === 'webp') {
|
||||
return 'image/webp';
|
||||
}
|
||||
if (r5 === 'jpg') {
|
||||
return 'image/jpeg';
|
||||
}
|
||||
if (r5 === 'jpeg') {
|
||||
return 'image/jpeg';
|
||||
}
|
||||
if (r5 === 'png') {
|
||||
return 'image/png';
|
||||
}
|
||||
if (r5 === 'gif') {
|
||||
return 'image/gif';
|
||||
}
|
||||
if (r5 === 'svg') {
|
||||
return 'image/svg+xml';
|
||||
}
|
||||
if (r5 === 'txt') {
|
||||
return 'text/plain';
|
||||
}
|
||||
if (r5 === 'vtt') {
|
||||
return 'text/vtt';
|
||||
}
|
||||
if (r5 === 'ts') {
|
||||
return 'video/mp2t';
|
||||
}
|
||||
if (r5 === 'm3u8') {
|
||||
return 'application/x-mpegURL';
|
||||
}
|
||||
return value5;
|
||||
}
|
||||
|
||||
function getAssetUrlWithMediaProxyQueryParams(a0) { // fn#74118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9681:2947, offset: 0x01d815b2, size: 263 bytes, params: 2, frame: 21
|
||||
var r1;
|
||||
var searchParams;
|
||||
var set;
|
||||
let value = a0;
|
||||
const value2 = a1;
|
||||
const r2 = value2 !== undefined ? value2 : {};
|
||||
if (value.startsWith('blob:')) {
|
||||
return value;
|
||||
}
|
||||
const value4 = (importDefault(1471) /* metro dependency 1471: URLUtils */).toURLSafe(value);
|
||||
if (value4 == null) {
|
||||
r1 = value;
|
||||
} else {
|
||||
if (r2.format != null) {
|
||||
searchParams = value4.searchParams;
|
||||
searchParams.set('format', r2.format);
|
||||
}
|
||||
if (r2.width != null) {
|
||||
searchParams = value4.searchParams;
|
||||
set = searchParams.set;
|
||||
value = safeMediaProxyDimension(r2.width);
|
||||
value = '' + value;
|
||||
Reflect.apply(set, searchParams, ['width', value]);
|
||||
}
|
||||
if (r2.height != null) {
|
||||
searchParams = value4.searchParams;
|
||||
set = searchParams.set;
|
||||
value = safeMediaProxyDimension(r2.height);
|
||||
value = '' + value;
|
||||
Reflect.apply(set, searchParams, ['height', value]);
|
||||
}
|
||||
value = value4.toString();
|
||||
r1 = value;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
|
||||
function convertVideoToFirstFrameImageWithMediaProxy(a0, a1) { // fn#74119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9681:3314, offset: 0x01d816b9, size: 227 bytes, params: 3, frame: 21
|
||||
var r1;
|
||||
var searchParams;
|
||||
var set;
|
||||
var safeMediaProxyDimensionBinding;
|
||||
if (a0.startsWith('blob:')) {
|
||||
return a0;
|
||||
}
|
||||
var value;
|
||||
const value2 = (importDefault(1471) /* metro dependency 1471: URLUtils */).toURLSafe(a0);
|
||||
const value3 = null;
|
||||
if (value3 == value2) {
|
||||
r1 = value3;
|
||||
} else {
|
||||
searchParams = value2.searchParams;
|
||||
searchParams.set('format', 'webp');
|
||||
if (value3 != a1) {
|
||||
searchParams = value2.searchParams;
|
||||
set = searchParams.set;
|
||||
safeMediaProxyDimensionBinding = safeMediaProxyDimension;
|
||||
value = safeMediaProxyDimensionBinding(a1.width);
|
||||
value = '' + value;
|
||||
Reflect.apply(set, searchParams, ['width', value]);
|
||||
searchParams = value2.searchParams;
|
||||
set = searchParams.set;
|
||||
value = safeMediaProxyDimensionBinding(a1.height);
|
||||
value = '' + value;
|
||||
Reflect.apply(set, searchParams, ['height', value]);
|
||||
}
|
||||
value = value2.toString();
|
||||
r1 = value;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
|
||||
function getQuestAsset(a0, a1, a2, a3, a4) { // fn#74120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9681:3839, offset: 0x01d8179c, size: 1529 bytes, params: 6, frame: 24
|
||||
var r12;
|
||||
var r6;
|
||||
var r3;
|
||||
var r0;
|
||||
var r5;
|
||||
var r8;
|
||||
var config;
|
||||
var tasks;
|
||||
var value5;
|
||||
const FirstPartyQuestTaskTypes = (require(6535) /* metro dependency 6535: FirstPartyQuestTaskTypes */).FirstPartyQuestTaskTypes;
|
||||
var property;
|
||||
var property2;
|
||||
var assets;
|
||||
var value6;
|
||||
var value7;
|
||||
var logotypeDark;
|
||||
var logotypeLight;
|
||||
var logotype;
|
||||
var value8;
|
||||
var value10;
|
||||
var value11;
|
||||
var value12;
|
||||
var value14;
|
||||
var value15;
|
||||
var gameTileDark;
|
||||
var gameTileLight;
|
||||
var gameTile;
|
||||
var value16;
|
||||
var value18;
|
||||
var value19;
|
||||
var questPrimaryReward;
|
||||
const QuestRewardTypes = (require(7098) /* metro dependency 7098: QuestRewardTypes */).QuestRewardTypes;
|
||||
var asset;
|
||||
var value21;
|
||||
var value22;
|
||||
var questPrimaryReward2;
|
||||
var getVideoOrDefaultAssetBinding;
|
||||
var value24;
|
||||
var object2;
|
||||
var questBarHero;
|
||||
var value25;
|
||||
var questBarHeroVideo;
|
||||
var value26;
|
||||
var value27;
|
||||
var heroVideo;
|
||||
var value28;
|
||||
var hero;
|
||||
var value29;
|
||||
var value30;
|
||||
var resolveAssetBinding;
|
||||
var id;
|
||||
let value = a2;
|
||||
const HERO = env0_8.HERO;
|
||||
if (HERO === a1) {
|
||||
getVideoOrDefaultAssetBinding = getVideoOrDefaultAsset;
|
||||
config = a0.config;
|
||||
assets = config.assets;
|
||||
assets.heroVideo;
|
||||
config = a0.config;
|
||||
assets = config.assets;
|
||||
hero = assets.hero;
|
||||
getVideoOrDefaultAssetBinding(undefined, hero);
|
||||
value30 = false;
|
||||
r0 = value30;
|
||||
value = resolveAsset(a0.id, hero, {theme: value30 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
const HERO_IMAGE = env0_8.HERO_IMAGE;
|
||||
if (HERO_IMAGE === a1) {
|
||||
hero = a0.config.assets.hero;
|
||||
value29 = false;
|
||||
r0 = value29;
|
||||
value = resolveAsset(a0.id, hero, {theme: value29 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
const HERO_VIDEO = env0_8.HERO_VIDEO;
|
||||
if (HERO_VIDEO === a1) {
|
||||
heroVideo = a0.config.assets.heroVideo;
|
||||
value28 = false;
|
||||
if (heroVideo == null) {
|
||||
return null;
|
||||
}
|
||||
r0 = value28;
|
||||
value = resolveAsset(a0.id, heroVideo, {theme: value28 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
const QUEST_BAR_HERO = env0_8.QUEST_BAR_HERO;
|
||||
if (QUEST_BAR_HERO === a1) {
|
||||
getVideoOrDefaultAssetBinding = getVideoOrDefaultAsset;
|
||||
config = a0.config;
|
||||
assets = config.assets;
|
||||
assets.questBarHeroVideo;
|
||||
config = a0.config;
|
||||
assets = config.assets;
|
||||
questBarHero = assets.questBarHero;
|
||||
getVideoOrDefaultAssetBinding(undefined, questBarHero);
|
||||
value27 = false;
|
||||
r0 = value27;
|
||||
value = resolveAsset(a0.id, questBarHero, {theme: value27 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
const QUEST_BAR_HERO_VIDEO = env0_8.QUEST_BAR_HERO_VIDEO;
|
||||
if (QUEST_BAR_HERO_VIDEO === a1) {
|
||||
questBarHeroVideo = a0.config.assets.questBarHeroVideo;
|
||||
value26 = false;
|
||||
if (questBarHeroVideo == null) {
|
||||
return null;
|
||||
}
|
||||
r0 = value26;
|
||||
value = resolveAsset(a0.id, questBarHeroVideo, {theme: value26 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
const QUEST_BAR_HERO_IMAGE = env0_8.QUEST_BAR_HERO_IMAGE;
|
||||
if (QUEST_BAR_HERO_IMAGE === a1) {
|
||||
questBarHero = a0.config.assets.questBarHero;
|
||||
value25 = false;
|
||||
r0 = value25;
|
||||
value = resolveAsset(a0.id, questBarHero, {theme: value25 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
const REWARD = env0_8.REWARD;
|
||||
if (REWARD === a1) {
|
||||
value22 = undefined;
|
||||
questPrimaryReward2 = (require(9500) /* metro dependency 9500: QuestRewardUtils */).getQuestPrimaryReward(a0);
|
||||
if (questPrimaryReward2.type === QuestRewardTypes.VIRTUAL_CURRENCY) {
|
||||
r6 = a4 != null ? env0_10[a4] : value22;
|
||||
if (r6 != null) {
|
||||
r3 = {'url': null, 'mimetype': 'video/webm', 'isAnimated': true, url: r6};
|
||||
} else if (a3) {
|
||||
object2 = {'url': null, 'mimetype': 'video/mp4', 'isAnimated': true};
|
||||
object2.url = importDefault(9507) /* metro dependency 9507: reward_tile_v3_mobileMp4 */;
|
||||
r3 = object2;
|
||||
} else {
|
||||
object2 = {'url': null, 'mimetype': 'video/webm', 'isAnimated': true};
|
||||
object2.url = importDefault(9508) /* metro dependency 9508: reward_tile_v3Webm */;
|
||||
r3 = object2;
|
||||
}
|
||||
return r3;
|
||||
}
|
||||
getVideoOrDefaultAssetBinding = getVideoOrDefaultAsset;
|
||||
questPrimaryReward2.assetVideo;
|
||||
asset = questPrimaryReward2.asset;
|
||||
getVideoOrDefaultAssetBinding(value22, asset);
|
||||
value24 = false;
|
||||
r0 = value24;
|
||||
r5 = asset;
|
||||
r8 = value24;
|
||||
resolveAssetBinding = resolveAsset;
|
||||
id = a0.id;
|
||||
r6 = r8 ? value : undefined;
|
||||
value = resolveAssetBinding(id, r5, {theme: r6});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
const REWARD_IMAGE = env0_8.REWARD_IMAGE;
|
||||
if (REWARD_IMAGE === a1) {
|
||||
questPrimaryReward = (require(9500) /* metro dependency 9500: QuestRewardUtils */).getQuestPrimaryReward(a0);
|
||||
if (questPrimaryReward.type === QuestRewardTypes.VIRTUAL_CURRENCY) {
|
||||
return null;
|
||||
}
|
||||
asset = questPrimaryReward.asset;
|
||||
value21 = false;
|
||||
r0 = value21;
|
||||
value = resolveAsset(a0.id, asset, {theme: value21 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
const GAME_TILE = env0_8.GAME_TILE;
|
||||
if (GAME_TILE === a1) {
|
||||
if (value !== 'dark') {
|
||||
if (value !== 'light') {
|
||||
gameTile = a0.config.assets.gameTile;
|
||||
value16 = true;
|
||||
r0 = false;
|
||||
r5 = gameTile;
|
||||
r8 = value16;
|
||||
} else {
|
||||
gameTileLight = a0.config.assets.gameTileLight;
|
||||
if (gameTileLight != null) {
|
||||
gameTileLight = a0.config.assets.gameTileLight;
|
||||
value18 = false;
|
||||
r0 = value18;
|
||||
r5 = gameTileLight;
|
||||
r8 = value18;
|
||||
} else {
|
||||
gameTile = a0.config.assets.gameTile;
|
||||
value16 = true;
|
||||
r0 = false;
|
||||
r5 = gameTile;
|
||||
r8 = value16;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
gameTileDark = a0.config.assets.gameTileDark;
|
||||
if (gameTileDark != null) {
|
||||
gameTileDark = a0.config.assets.gameTileDark;
|
||||
value19 = false;
|
||||
r0 = value19;
|
||||
r5 = gameTileDark;
|
||||
r8 = value19;
|
||||
} else if (value !== 'light') {
|
||||
gameTile = a0.config.assets.gameTile;
|
||||
value16 = true;
|
||||
r0 = false;
|
||||
r5 = gameTile;
|
||||
r8 = value16;
|
||||
} else {
|
||||
gameTileLight = a0.config.assets.gameTileLight;
|
||||
if (gameTileLight != null) {
|
||||
gameTileLight = a0.config.assets.gameTileLight;
|
||||
value18 = false;
|
||||
r0 = value18;
|
||||
r5 = gameTileLight;
|
||||
r8 = value18;
|
||||
} else {
|
||||
gameTile = a0.config.assets.gameTile;
|
||||
value16 = true;
|
||||
r0 = false;
|
||||
r5 = gameTile;
|
||||
r8 = value16;
|
||||
}
|
||||
}
|
||||
}
|
||||
value = resolveAsset(a0.id, r5, {theme: r8 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
const LOGO_TYPE = env0_8.LOGO_TYPE;
|
||||
if (LOGO_TYPE === a1) {
|
||||
if (value !== 'dark') {
|
||||
if (value !== 'light') {
|
||||
logotype = a0.config.assets.logotype;
|
||||
value12 = true;
|
||||
r0 = false;
|
||||
r5 = logotype;
|
||||
r8 = value12;
|
||||
} else {
|
||||
logotypeLight = a0.config.assets.logotypeLight;
|
||||
if (logotypeLight != null) {
|
||||
logotypeLight = a0.config.assets.logotypeLight;
|
||||
value14 = false;
|
||||
r0 = value14;
|
||||
r5 = logotypeLight;
|
||||
r8 = value14;
|
||||
} else {
|
||||
logotype = a0.config.assets.logotype;
|
||||
value12 = true;
|
||||
r0 = false;
|
||||
r5 = logotype;
|
||||
r8 = value12;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
logotypeDark = a0.config.assets.logotypeDark;
|
||||
if (logotypeDark != null) {
|
||||
logotypeDark = a0.config.assets.logotypeDark;
|
||||
value15 = false;
|
||||
r0 = value15;
|
||||
r5 = logotypeDark;
|
||||
r8 = value15;
|
||||
} else if (value !== 'light') {
|
||||
logotype = a0.config.assets.logotype;
|
||||
value12 = true;
|
||||
r0 = false;
|
||||
r5 = logotype;
|
||||
r8 = value12;
|
||||
} else {
|
||||
logotypeLight = a0.config.assets.logotypeLight;
|
||||
if (logotypeLight != null) {
|
||||
logotypeLight = a0.config.assets.logotypeLight;
|
||||
value14 = false;
|
||||
r0 = value14;
|
||||
r5 = logotypeLight;
|
||||
r8 = value14;
|
||||
} else {
|
||||
logotype = a0.config.assets.logotype;
|
||||
value12 = true;
|
||||
r0 = false;
|
||||
r5 = logotype;
|
||||
r8 = value12;
|
||||
}
|
||||
}
|
||||
}
|
||||
value = resolveAsset(a0.id, r5, {theme: r8 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
const COSPONSOR_LOGO_TYPE = env0_8.COSPONSOR_LOGO_TYPE;
|
||||
if (COSPONSOR_LOGO_TYPE === a1) {
|
||||
if (a0.config.cosponsorMetadata == null) {
|
||||
return null;
|
||||
}
|
||||
if (value !== 'dark') {
|
||||
if (value !== 'light') {
|
||||
logotype = a0.config.cosponsorMetadata.logotype;
|
||||
value8 = true;
|
||||
r0 = false;
|
||||
r5 = logotype;
|
||||
r8 = value8;
|
||||
} else {
|
||||
logotypeLight = a0.config.cosponsorMetadata.logotypeLight;
|
||||
if (logotypeLight != null) {
|
||||
logotypeLight = a0.config.cosponsorMetadata.logotypeLight;
|
||||
value10 = false;
|
||||
r0 = value10;
|
||||
r5 = logotypeLight;
|
||||
r8 = value10;
|
||||
} else {
|
||||
logotype = a0.config.cosponsorMetadata.logotype;
|
||||
value8 = true;
|
||||
r0 = false;
|
||||
r5 = logotype;
|
||||
r8 = value8;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
logotypeDark = a0.config.cosponsorMetadata.logotypeDark;
|
||||
if (logotypeDark != null) {
|
||||
logotypeDark = a0.config.cosponsorMetadata.logotypeDark;
|
||||
value11 = false;
|
||||
r0 = value11;
|
||||
r5 = logotypeDark;
|
||||
r8 = value11;
|
||||
} else if (value !== 'light') {
|
||||
logotype = a0.config.cosponsorMetadata.logotype;
|
||||
value8 = true;
|
||||
r0 = false;
|
||||
r5 = logotype;
|
||||
r8 = value8;
|
||||
} else {
|
||||
logotypeLight = a0.config.cosponsorMetadata.logotypeLight;
|
||||
if (logotypeLight != null) {
|
||||
logotypeLight = a0.config.cosponsorMetadata.logotypeLight;
|
||||
value10 = false;
|
||||
r0 = value10;
|
||||
r5 = logotypeLight;
|
||||
r8 = value10;
|
||||
} else {
|
||||
logotype = a0.config.cosponsorMetadata.logotype;
|
||||
value8 = true;
|
||||
r0 = false;
|
||||
r5 = logotype;
|
||||
r8 = value8;
|
||||
}
|
||||
}
|
||||
}
|
||||
value = resolveAsset(a0.id, r5, {theme: r8 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
const VIDEO_PLAYER_VIDEO = env0_8.VIDEO_PLAYER_VIDEO;
|
||||
if (VIDEO_PLAYER_VIDEO === a1) {
|
||||
if ('taskConfigV2' in a0.config) {
|
||||
tasks = a0.config.taskConfigV2.tasks;
|
||||
value5 = undefined;
|
||||
property = tasks[a3 ? FirstPartyQuestTaskTypes.WATCH_VIDEO_ON_MOBILE : FirstPartyQuestTaskTypes.WATCH_VIDEO];
|
||||
property2 = env0_9[a1];
|
||||
r12 = property == null || property.assets[property2.variant] == null ? value5 : property.assets[property2.variant][property2.property];
|
||||
value6 = false;
|
||||
value7 = true;
|
||||
if (r12 == null) {
|
||||
return null;
|
||||
}
|
||||
r0 = value7;
|
||||
value = resolveAsset(a0.id, r12, {theme: value6 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
} else {
|
||||
var VIDEO_PLAYER_VIDEO_LOW_RES = env0_8.VIDEO_PLAYER_VIDEO_LOW_RES;
|
||||
if (VIDEO_PLAYER_VIDEO_LOW_RES === a1) {
|
||||
if ('taskConfigV2' in a0.config) {
|
||||
tasks = a0.config.taskConfigV2.tasks;
|
||||
value5 = undefined;
|
||||
property = tasks[a3 ? FirstPartyQuestTaskTypes.WATCH_VIDEO_ON_MOBILE : FirstPartyQuestTaskTypes.WATCH_VIDEO];
|
||||
property2 = env0_9[a1];
|
||||
r12 = property == null || property.assets[property2.variant] == null ? value5 : property.assets[property2.variant][property2.property];
|
||||
value6 = false;
|
||||
value7 = true;
|
||||
if (r12 == null) {
|
||||
return null;
|
||||
}
|
||||
r0 = value7;
|
||||
value = resolveAsset(a0.id, r12, {theme: value6 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
var VIDEO_PLAYER_VIDEO_HLS = env0_8.VIDEO_PLAYER_VIDEO_HLS;
|
||||
if (VIDEO_PLAYER_VIDEO_HLS === a1) {
|
||||
if ('taskConfigV2' in a0.config) {
|
||||
tasks = a0.config.taskConfigV2.tasks;
|
||||
value5 = undefined;
|
||||
property = tasks[a3 ? FirstPartyQuestTaskTypes.WATCH_VIDEO_ON_MOBILE : FirstPartyQuestTaskTypes.WATCH_VIDEO];
|
||||
property2 = env0_9[a1];
|
||||
r12 = property == null || property.assets[property2.variant] == null ? value5 : property.assets[property2.variant][property2.property];
|
||||
value6 = false;
|
||||
value7 = true;
|
||||
if (r12 == null) {
|
||||
return null;
|
||||
}
|
||||
r0 = value7;
|
||||
value = resolveAsset(a0.id, r12, {theme: value6 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
var VIDEO_PLAYER_THUMBNAIL = env0_8.VIDEO_PLAYER_THUMBNAIL;
|
||||
if (VIDEO_PLAYER_THUMBNAIL === a1) {
|
||||
if ('taskConfigV2' in a0.config) {
|
||||
tasks = a0.config.taskConfigV2.tasks;
|
||||
value5 = undefined;
|
||||
property = tasks[a3 ? FirstPartyQuestTaskTypes.WATCH_VIDEO_ON_MOBILE : FirstPartyQuestTaskTypes.WATCH_VIDEO];
|
||||
property2 = env0_9[a1];
|
||||
r12 = property == null || property.assets[property2.variant] == null ? value5 : property.assets[property2.variant][property2.property];
|
||||
value6 = false;
|
||||
value7 = true;
|
||||
if (r12 == null) {
|
||||
return null;
|
||||
}
|
||||
r0 = value7;
|
||||
value = resolveAsset(a0.id, r12, {theme: value6 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
var VIDEO_PLAYER_CAPTION = env0_8.VIDEO_PLAYER_CAPTION;
|
||||
if (VIDEO_PLAYER_CAPTION === a1) {
|
||||
if ('taskConfigV2' in a0.config) {
|
||||
tasks = a0.config.taskConfigV2.tasks;
|
||||
value5 = undefined;
|
||||
property = tasks[a3 ? FirstPartyQuestTaskTypes.WATCH_VIDEO_ON_MOBILE : FirstPartyQuestTaskTypes.WATCH_VIDEO];
|
||||
property2 = env0_9[a1];
|
||||
r12 = property == null || property.assets[property2.variant] == null ? value5 : property.assets[property2.variant][property2.property];
|
||||
value6 = false;
|
||||
value7 = true;
|
||||
if (r12 == null) {
|
||||
return null;
|
||||
}
|
||||
r0 = value7;
|
||||
value = resolveAsset(a0.id, r12, {theme: value6 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
var VIDEO_PLAYER_TRANSCRIPT = env0_8.VIDEO_PLAYER_TRANSCRIPT;
|
||||
var value3 = false;
|
||||
if (VIDEO_PLAYER_TRANSCRIPT !== a1) {
|
||||
r0 = value3;
|
||||
value = resolveAsset(a0.id, undefined, {theme: value3 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
if ('taskConfigV2' in a0.config) {
|
||||
tasks = a0.config.taskConfigV2.tasks;
|
||||
value5 = undefined;
|
||||
property = tasks[a3 ? FirstPartyQuestTaskTypes.WATCH_VIDEO_ON_MOBILE : FirstPartyQuestTaskTypes.WATCH_VIDEO];
|
||||
property2 = env0_9[a1];
|
||||
r12 = property == null || property.assets[property2.variant] == null ? value5 : property.assets[property2.variant][property2.property];
|
||||
value6 = false;
|
||||
value7 = true;
|
||||
if (r12 == null) {
|
||||
return null;
|
||||
}
|
||||
r0 = value7;
|
||||
value = resolveAsset(a0.id, r12, {theme: value6 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function getDevicePixelScaledDimensions(a0, a1) { // fn#74122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9681:6448, offset: 0x01d81e07, size: 77 bytes, params: 3, frame: 13
|
||||
const value = (importDefault(1852) /* metro dependency 1852: getDevicePixelRatioNative */)();
|
||||
return value < 3 ? {width: a0, height: a1} : {width: a0 * value, height: a1 * value};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
/* Metro module 9504; source: modules/quests/lib/FractionalPremiumUtils.tsx; dependencies: [3802, 1244, 7098, 3826, 672, 2] */
|
||||
function _fun74176(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9690:6, offset: 0x01d83457, size: 137 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const closure = function(a0) {
|
||||
return a0.rewardsConfig.rewards.filter(_fun74178);
|
||||
};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/lib/FractionalPremiumUtils.tsx');
|
||||
exports.getDurationStringOfFractionalPremium = getDurationStringOfFractionalPremium;
|
||||
exports.getFractionalPremiumQuestRewards = closure;
|
||||
exports.getFractionalPremiumQuestRewardName = getFractionalPremiumQuestRewardName;
|
||||
}
|
||||
|
||||
function getFractionalPremiumQuestRewards({rewardsConfig}) { // fn#74177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9690:131, offset: 0x01d834e0, size: 36 bytes, params: 2, frame: 11
|
||||
return rewardsConfig.rewards.filter(function({type}) {
|
||||
return type === require(dependencyMap[2]).QuestRewardTypes.FRACTIONAL_PREMIUM;
|
||||
});
|
||||
}
|
||||
|
||||
function getDurationStringOfFractionalPremium(a0) { // fn#74179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9690:343, offset: 0x01d83537, size: 204 bytes, params: 2, frame: 18
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const fractionalPremiumUnitsHoursFromSkuIds = (require(3802) /* metro dependency 3802: PremiumUtils */).getFractionalPremiumUnitsHoursFromSkuIds(a0.map(function(a0) {
|
||||
return a0.skuId;
|
||||
}));
|
||||
return fractionalPremiumUnitsHoursFromSkuIds % 24 === 0 ? intl.formatToPlainString(t.Cz1G97,
|
||||
{days: fractionalPremiumUnitsHoursFromSkuIds / 24}) : intl.formatToPlainString(t.J9Lu4h, {hours: fractionalPremiumUnitsHoursFromSkuIds});
|
||||
}
|
||||
|
||||
function getFractionalPremiumQuestRewardName(a0) { // fn#74181, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9690:671, offset: 0x01d83603, size: 280 bytes, params: 2, frame: 21
|
||||
const fractionalPremiumUnitsHoursFromSkuIds = (require(3802) /* metro dependency 3802: PremiumUtils */).getFractionalPremiumUnitsHoursFromSkuIds(getFractionalPremiumQuestRewards(a0).flatMap(function(a0) {
|
||||
var Array = global.Array;
|
||||
return Array(a0.quantity).fill(a0.skuId);
|
||||
}));
|
||||
const object3 = {};
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
object3.days = t.fYmirx;
|
||||
object3.hours = t['C3RO+g'];
|
||||
object3.minutes = t.r77oHc;
|
||||
const dateUtilsModule = require(3826) /* metro dependency 3826: DateUtils */;
|
||||
const diffAsUnits = dateUtilsModule.diffAsUnits;
|
||||
const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
const HOUR = Millis.HOUR;
|
||||
const value = Reflect.apply(diffAsUnits, dateUtilsModule, [0, fractionalPremiumUnitsHoursFromSkuIds * HOUR]);
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const formatToPlainString = intl.formatToPlainString;
|
||||
const property = t['4SqnVD'];
|
||||
const object4 = {};
|
||||
object4.time = dateUtilsModule.unitsAsStrings(value, object3);
|
||||
return Reflect.apply(formatToPlainString, intl, [property, object4]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/* Metro module 9479; source: modules/quests/lib/QuestsEligibility.tsx; dependencies: [1581, 2] */
|
||||
function _fun73709(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9665:6, offset: 0x01d754e1, size: 96 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/lib/QuestsEligibility.tsx');
|
||||
exports.getIsEligibleForQuests = getIsEligibleForQuests;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,504 @@
|
||||
/* Metro module 7110; source: modules/quests/lib/analytics/AnalyticsActions.tsx; dependencies: [5, 7111, 691, 7093, 661, 4875, 7113, 7091, 7114, 7116, 7120, 7121, 4863, 683, 7122, 7071, 477, 491, 7127, 6531, 2] */
|
||||
function _fun56794(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:6, offset: 0x013d20f7, size: 500 bytes, params: 8, frame: 23
|
||||
const env0_0 = require;
|
||||
const closure = trackQuestEvent;
|
||||
const closure2 = trackAdContentEvent;
|
||||
const closure3 = function() {
|
||||
return _getCommonClickEventProperties.apply(this, arguments);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const devToolsSettingsStore = importDefault(7111) /* metro dependency 7111: DevToolsSettingsStore */;
|
||||
const developerOptionsStore = importDefault(691) /* metro dependency 691: DeveloperOptionsStore */;
|
||||
const questStore = importDefault(7093) /* metro dependency 7093: QuestStore */;
|
||||
const AnalyticEvents = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const Set = global.Set;
|
||||
const QUEST_CONTENT_VIEWED = AnalyticEvents.QUEST_CONTENT_VIEWED;
|
||||
const QUEST_CONTENT_CLICKED = AnalyticEvents.QUEST_CONTENT_CLICKED;
|
||||
const set = new Set([QUEST_CONTENT_VIEWED, QUEST_CONTENT_CLICKED]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/lib/analytics/AnalyticsActions.tsx');
|
||||
exports.trackQuestEvent = closure;
|
||||
exports.trackAppStoreOverlayEvent = trackAppStoreOverlayEvent;
|
||||
exports.trackAdContentAppStoreOverlayEvent = trackAdContentAppStoreOverlayEvent;
|
||||
exports.trackAdContentEvent = closure2;
|
||||
exports.getCommonClickEventProperties = closure3;
|
||||
exports.trackQuestContentClicked = function() {
|
||||
return _trackQuestContentClicked.apply(this, arguments);
|
||||
};
|
||||
exports.trackAdContentClicked = function() {
|
||||
return _trackAdContentClicked.apply(this, arguments);
|
||||
};
|
||||
exports.trackBountyCarouselScroll = trackBountyCarouselScroll;
|
||||
exports.trackBountyCarouselEmptyStateViewed = trackBountyCarouselEmptyStateViewed;
|
||||
exports.trackBountyVerticalScroll = trackBountyVerticalScroll;
|
||||
exports.trackQuestHomeCarouselScroll = trackQuestHomeCarouselScroll;
|
||||
exports.trackQuestHomeSearchEntered = function({searchSessionId}) {
|
||||
var uuid = require(dependencyMap[6]).getOrRefreshAdSession().uuid;
|
||||
var defaultImport = importDefault(dependencyMap[13]);
|
||||
var QUEST_HOME_SEARCH_ENTERED = AnalyticEvents.QUEST_HOME_SEARCH_ENTERED;
|
||||
var object = {client_ad_session_id: uuid};
|
||||
object.billing_session_id = assignBillingSessionId(uuid, false);
|
||||
object.search_session_id = searchSessionId;
|
||||
defaultImport.track(QUEST_HOME_SEARCH_ENTERED, object);
|
||||
};
|
||||
exports.trackQuestHomeSearchClosed = trackQuestHomeSearchClosed;
|
||||
exports.trackQuestHomeSearchQuerySubmitted = trackQuestHomeSearchQuerySubmitted;
|
||||
exports.trackQuestBarOrDockModeChange = trackQuestBarOrDockModeChange;
|
||||
exports.trackQuestEmbedFallbackViewed = function(a0, a1) {
|
||||
var defaultImport = importDefault(dependencyMap[12]);
|
||||
var QUEST_EMBED_FALLBACK_VIEWED = AnalyticEvents.QUEST_EMBED_FALLBACK_VIEWED;
|
||||
defaultImport.trackWithMetadata(QUEST_EMBED_FALLBACK_VIEWED, {quest_id: a0, reason: a1});
|
||||
};
|
||||
}
|
||||
|
||||
function assignBillingSessionId(a0, a1) { // fn#56795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:221, offset: 0x013d22eb, size: 76 bytes, params: 3, frame: 13
|
||||
var uuid;
|
||||
var r0;
|
||||
var activeSessionUnsafe;
|
||||
var value3;
|
||||
let value = a0;
|
||||
if (a1) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value = undefined;
|
||||
activeSessionUnsafe = (require(4875) /* metro dependency 4875: SessionHeartbeatScheduler */).getActiveSessionUnsafe();
|
||||
value3 = null;
|
||||
uuid = value3 == activeSessionUnsafe ? value : activeSessionUnsafe.uuid;
|
||||
r0 = value3 != uuid ? uuid : value3;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function getCommonProperties(a0, a1, a2, a3) { // fn#56796, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:351, offset: 0x013d2337, size: 161 bytes, params: 5, frame: 21
|
||||
const value = a2;
|
||||
const sessionAdGeneratorModule = require(7113) /* metro dependency 7113: SessionAdGenerator */;
|
||||
const getOrRefreshAdSession = sessionAdGeneratorModule.getOrRefreshAdSession;
|
||||
const uuid = Reflect.apply(getOrRefreshAdSession, sessionAdGeneratorModule, [a3]).uuid;
|
||||
const adDecisionData = (require(7091) /* metro dependency 7091: QuestDataUtils */).getAdDecisionData(a0, a1);
|
||||
const object2 = {client_ad_session_id: uuid};
|
||||
const assignBillingSessionIdBinding = assignBillingSessionId;
|
||||
const questDataUtilsModule = require(7091) /* metro dependency 7091: QuestDataUtils */;
|
||||
object2.billing_session_id = assignBillingSessionIdBinding(uuid, questDataUtilsModule.isBillableQuestContent(a1));
|
||||
object2.ad_content_id = a0;
|
||||
copyDataProperties(object2, adDecisionData, undefined);
|
||||
object2['creative_type'] = adDecisionData.creative_type ?? value;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function getCommonQuestProperties(a0, a1, a2) { // fn#56797, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:643, offset: 0x013d23d8, size: 239 bytes, params: 4, frame: 20
|
||||
const object2 = {};
|
||||
let id = a0.id;
|
||||
object2.quest_id = id;
|
||||
object2.quest_type = (require(7114) /* metro dependency 7114: QuestUtils */).getQuestType(a0.config);
|
||||
object2.game_id = a0.config.application.id;
|
||||
object2.game_name = a0.config.application.name;
|
||||
object2.application_ids = (require(7116) /* metro dependency 7116: QuestTaskUtils */).getAllApplicationIds(a0) ?? [];
|
||||
object2.quest_status = (require(7120) /* metro dependency 7120: AnalyticsTypes */).getQuestStatus(a0);
|
||||
const getCommonPropertiesBinding = getCommonProperties;
|
||||
id = a0.id;
|
||||
const AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType;
|
||||
const QUEST = AdCreativeType.QUEST;
|
||||
copyDataProperties(object2, getCommonPropertiesBinding(id, a1, QUEST, a2), QUEST);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function getCommonAdContentProperties({adContentId, adCreativeType, sourceQuestContent, shouldExtendSession, relatedQuestId}) { // fn#56798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:988, offset: 0x013d24c7, size: 276 bytes, params: 2, frame: 23
|
||||
var r2;
|
||||
let value = null;
|
||||
const r4 = value != relatedQuestId ? QuestStore.getQuest(relatedQuestId) : value;
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, getCommonProperties(adContentId, sourceQuestContent, adCreativeType,
|
||||
shouldExtendSession), adCreativeType);
|
||||
const adMetadataSealed = (require(7091) /* metro dependency 7091: QuestDataUtils */).getAdMetadataSealed(sourceQuestContent,
|
||||
adContentId);
|
||||
object2['metadata_sealed'] = value != adMetadataSealed ? adMetadataSealed : value;
|
||||
const adTrafficMetadataSealed = (require(7091) /* metro dependency 7091: QuestDataUtils */).getAdTrafficMetadataSealed(sourceQuestContent,
|
||||
undefined, adContentId);
|
||||
object2['traffic_metadata_sealed'] = value != adTrafficMetadataSealed ? adTrafficMetadataSealed : value;
|
||||
object2['quest_id'] = value != relatedQuestId ? relatedQuestId : value;
|
||||
if (value != r4) {
|
||||
value = require(7120) /* metro dependency 7120: AnalyticsTypes */;
|
||||
value = value.getQuestStatus(r4);
|
||||
r2 = value;
|
||||
} else {
|
||||
r2 = value;
|
||||
}
|
||||
object2['quest_status'] = r2;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function trackEvent(a0, a1) { // fn#56799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:1428, offset: 0x013d25db, size: 156 bytes, params: 3, frame: 20
|
||||
var value2;
|
||||
let value = a2;
|
||||
const r1 = value !== undefined ? value : false;
|
||||
if (DevToolsSettingsStore.displayTools) {
|
||||
if (DevToolsSettingsStore.lastOpenTabId === 'quest_preview') {
|
||||
return undefined;
|
||||
}
|
||||
DeveloperOptionsStore.isLoggingAnalyticsEvents;
|
||||
if (a3) {
|
||||
return undefined;
|
||||
}
|
||||
value2 = env0_8.has(a0);
|
||||
if (r1) {
|
||||
return (importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */).trackWithMetadata(a0, a1,
|
||||
value2);
|
||||
}
|
||||
value = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
value.track(a0, a1, {flush: value2});
|
||||
} else {
|
||||
DeveloperOptionsStore.isLoggingAnalyticsEvents;
|
||||
if (a3) {
|
||||
return undefined;
|
||||
}
|
||||
value2 = env0_8.has(a0);
|
||||
if (r1) {
|
||||
return (importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */).trackWithMetadata(a0, a1,
|
||||
value2);
|
||||
}
|
||||
value = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
value.track(a0, a1, {flush: value2});
|
||||
}
|
||||
}
|
||||
|
||||
function trackQuestEvent({questId, event, properties, trackGuildAndChannelMetadata, shouldExtendSession, sourceQuestContent}) { // fn#56800, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:1641, offset: 0x013d2677, size: 133 bytes, params: 2, frame: 21
|
||||
var trackEventBinding;
|
||||
var object2;
|
||||
shouldExtendSession = !(shouldExtendSession === undefined) && shouldExtendSession;
|
||||
const value2 = QuestStore.quests.get(questId);
|
||||
if (value2 != null) {
|
||||
trackEventBinding = trackEvent;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, getCommonQuestProperties(value2, sourceQuestContent, shouldExtendSession),
|
||||
undefined);
|
||||
copyDataProperties(object2, properties, undefined);
|
||||
trackEventBinding(event, object2, trackGuildAndChannelMetadata, value2.preview);
|
||||
}
|
||||
}
|
||||
|
||||
function trackAdContentEvent({adContentId, relatedQuestId, adCreativeType, event, properties, trackGuildAndChannelMetadata, shouldExtendSession, sourceQuestContent}) { // fn#56801, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:1876, offset: 0x013d26fc, size: 140 bytes, params: 2, frame: 24
|
||||
shouldExtendSession = !(shouldExtendSession === undefined) && shouldExtendSession;
|
||||
const trackEventBinding = trackEvent;
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, getCommonAdContentProperties({adContentId: adContentId, adCreativeType: adCreativeType,
|
||||
sourceQuestContent: sourceQuestContent, shouldExtendSession: shouldExtendSession,
|
||||
relatedQuestId: relatedQuestId}), undefined);
|
||||
copyDataProperties(object2, properties, undefined);
|
||||
trackEventBinding(event, object2, trackGuildAndChannelMetadata, false);
|
||||
}
|
||||
|
||||
function _getCommonClickEventProperties() { // fn#56803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:2307, offset: 0x013d2788, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun56805).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _trackQuestContentClicked() { // fn#56806, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:2861, offset: 0x013d2957, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun56808).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _trackAdContentClicked() { // fn#56809, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:3721, offset: 0x013d2b35, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun56811).apply(this, arguments);
|
||||
}
|
||||
|
||||
function trackAppStoreOverlayEvent({id}, a1, a2, a3, a4) { // fn#56812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:4518, offset: 0x013d2c68, size: 245 bytes, params: 6, frame: 21
|
||||
var r4;
|
||||
var object4;
|
||||
const object5 = {};
|
||||
const analyticsTypesModule = require(7120) /* metro dependency 7120: AnalyticsTypes */;
|
||||
object5.content_name = analyticsTypesModule.getQuestContentName(a1.content);
|
||||
object5.cta_name = a1.ctaContent;
|
||||
object5.impression_id = a1.impressionId;
|
||||
object5.source_content_name = analyticsTypesModule.getQuestContentName(a1.sourceQuestContent);
|
||||
object5.app_id = a2;
|
||||
object5.content_position = a1.position;
|
||||
const QUEST_APP_STORE_OVERLAY_CLOSED = AnalyticEvents.QUEST_APP_STORE_OVERLAY_CLOSED;
|
||||
const r5 = (a3 === QUEST_APP_STORE_OVERLAY_CLOSED || a3 === AnalyticEvents.QUEST_APP_STORE_OVERLAY_RETURNED) && a4 !== undefined;
|
||||
const trackQuestEventBinding = trackQuestEvent;
|
||||
const object6 = {};
|
||||
object6.questId = id;
|
||||
object6.event = a3;
|
||||
if (r5) {
|
||||
object4 = {};
|
||||
copyDataProperties(object4, object5, analyticsTypesModule);
|
||||
object4['time_spent_ms'] = a4;
|
||||
r4 = object4;
|
||||
} else {
|
||||
r4 = object5;
|
||||
}
|
||||
object6.properties = r4;
|
||||
object6.sourceQuestContent = a1.sourceQuestContent;
|
||||
trackQuestEventBinding(object6);
|
||||
}
|
||||
|
||||
function trackAdContentAppStoreOverlayEvent({adContentId, adCreativeType}, a1, a2, a3, a4) { // fn#56813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:5033, offset: 0x013d2d5d, size: 251 bytes, params: 6, frame: 23
|
||||
var r4;
|
||||
var object4;
|
||||
const object5 = {};
|
||||
const analyticsTypesModule = require(7120) /* metro dependency 7120: AnalyticsTypes */;
|
||||
object5.content_name = analyticsTypesModule.getQuestContentName(a1.content);
|
||||
object5.cta_name = a1.ctaContent;
|
||||
object5.impression_id = a1.impressionId;
|
||||
object5.source_content_name = analyticsTypesModule.getQuestContentName(a1.sourceQuestContent);
|
||||
object5.app_id = a2;
|
||||
object5.content_position = a1.position;
|
||||
const trackAdContentEventBinding = trackAdContentEvent;
|
||||
const object6 = {adContentId: adContentId, adCreativeType: adCreativeType, event: a3};
|
||||
const QUEST_APP_STORE_OVERLAY_CLOSED = AnalyticEvents.QUEST_APP_STORE_OVERLAY_CLOSED;
|
||||
if (a3 === QUEST_APP_STORE_OVERLAY_CLOSED) {
|
||||
if (a4 === undefined) {
|
||||
r4 = object5;
|
||||
} else {
|
||||
object4 = {};
|
||||
copyDataProperties(object4, object5, analyticsTypesModule);
|
||||
object4['time_spent_ms'] = a4;
|
||||
r4 = object4;
|
||||
}
|
||||
} else if (a3 !== AnalyticEvents.QUEST_APP_STORE_OVERLAY_RETURNED) {
|
||||
r4 = object5;
|
||||
} else if (a4 === undefined) {
|
||||
r4 = object5;
|
||||
} else {
|
||||
object4 = {};
|
||||
copyDataProperties(object4, object5, analyticsTypesModule);
|
||||
object4['time_spent_ms'] = a4;
|
||||
r4 = object4;
|
||||
}
|
||||
object6.properties = r4;
|
||||
object6.sourceQuestContent = a1.sourceQuestContent;
|
||||
trackAdContentEventBinding(object6);
|
||||
}
|
||||
|
||||
function trackBountyCarouselScroll({scrollingType, scrollingDirection, carouselPosition, questContent}) { // fn#56816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:5930, offset: 0x013d2e58, size: 197 bytes, params: 2, frame: 24
|
||||
const sessionAdGeneratorModule = require(7113) /* metro dependency 7113: SessionAdGenerator */;
|
||||
const getOrRefreshAdSession = sessionAdGeneratorModule.getOrRefreshAdSession;
|
||||
const uuid = Reflect.apply(getOrRefreshAdSession, sessionAdGeneratorModule, []).uuid;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const BOUNTY_CAROUSEL_SCROLL = AnalyticEvents.BOUNTY_CAROUSEL_SCROLL;
|
||||
const object2 = {client_ad_session_id: uuid};
|
||||
const assignBillingSessionIdBinding = assignBillingSessionId;
|
||||
const questDataUtilsModule = require(7091) /* metro dependency 7091: QuestDataUtils */;
|
||||
object2.billing_session_id = assignBillingSessionIdBinding(uuid,
|
||||
questDataUtilsModule.isBillableQuestContent(questContent));
|
||||
object2.scrolling_type = scrollingType;
|
||||
object2.scrolling_direction = scrollingDirection;
|
||||
object2.carousel_position = carouselPosition;
|
||||
object2.content_name = (require(7120) /* metro dependency 7120: AnalyticsTypes */).getQuestContentName(questContent);
|
||||
Reflect.apply(track, defaultImport, [BOUNTY_CAROUSEL_SCROLL, object2]);
|
||||
}
|
||||
|
||||
function trackBountyCarouselEmptyStateViewed(a0) { // fn#56817, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:6370, offset: 0x013d2f1d, size: 157 bytes, params: 2, frame: 21
|
||||
const sessionAdGeneratorModule = require(7113) /* metro dependency 7113: SessionAdGenerator */;
|
||||
const getOrRefreshAdSession = sessionAdGeneratorModule.getOrRefreshAdSession;
|
||||
const uuid = Reflect.apply(getOrRefreshAdSession, sessionAdGeneratorModule, []).uuid;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const BOUNTY_CAROUSEL_EMPTY_STATE_VIEWED = AnalyticEvents.BOUNTY_CAROUSEL_EMPTY_STATE_VIEWED;
|
||||
const object2 = {client_ad_session_id: uuid};
|
||||
const assignBillingSessionIdBinding = assignBillingSessionId;
|
||||
const value = require(7091) /* metro dependency 7091: QuestDataUtils */;
|
||||
const isBillableQuestContent = value.isBillableQuestContent;
|
||||
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
|
||||
const QUEST_HOME_MOBILE_CAROUSEL = QuestContent.QUEST_HOME_MOBILE_CAROUSEL;
|
||||
object2.billing_session_id = assignBillingSessionIdBinding(uuid, Reflect.apply(isBillableQuestContent, value,
|
||||
[QUEST_HOME_MOBILE_CAROUSEL]));
|
||||
object2.reason = a0;
|
||||
Reflect.apply(track, defaultImport, [BOUNTY_CAROUSEL_EMPTY_STATE_VIEWED, object2]);
|
||||
}
|
||||
|
||||
function trackBountyVerticalScroll({scrollingType, scrollingDirection, verticalScrollingPosition, scrollSessionId, timeWatchedPreScrollMs}) { // fn#56818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:6703, offset: 0x013d2fba, size: 168 bytes, params: 2, frame: 22
|
||||
const sessionAdGeneratorModule = require(7113) /* metro dependency 7113: SessionAdGenerator */;
|
||||
const getOrRefreshAdSession = sessionAdGeneratorModule.getOrRefreshAdSession;
|
||||
const uuid = Reflect.apply(getOrRefreshAdSession, sessionAdGeneratorModule, []).uuid;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const BOUNTY_VERTICAL_SCROLL = AnalyticEvents.BOUNTY_VERTICAL_SCROLL;
|
||||
const object2 = {client_ad_session_id: uuid};
|
||||
object2.billing_session_id = assignBillingSessionId(uuid, false);
|
||||
object2.scrolling_type = scrollingType;
|
||||
object2.scrolling_direction = scrollingDirection;
|
||||
object2.vertical_scrolling_position = verticalScrollingPosition;
|
||||
object2.scroll_session_id = scrollSessionId;
|
||||
object2.time_watched_pre_scroll_ms = timeWatchedPreScrollMs;
|
||||
Reflect.apply(track, defaultImport, [BOUNTY_VERTICAL_SCROLL, object2]);
|
||||
}
|
||||
|
||||
function trackQuestHomeCarouselScroll({scrollingType, scrollingDirection, scrollWindowStartIndex, scrollWindowEndIndex, scrollWindowSize, questContent, carouselSize}) { // fn#56819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:7156, offset: 0x013d3062, size: 249 bytes, params: 2, frame: 26
|
||||
const sessionAdGeneratorModule = require(7113) /* metro dependency 7113: SessionAdGenerator */;
|
||||
const getOrRefreshAdSession = sessionAdGeneratorModule.getOrRefreshAdSession;
|
||||
const uuid = Reflect.apply(getOrRefreshAdSession, sessionAdGeneratorModule, []).uuid;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const QUEST_HOME_CAROUSEL_SCROLL = AnalyticEvents.QUEST_HOME_CAROUSEL_SCROLL;
|
||||
const object2 = {scrolling_type: scrollingType, client_ad_session_id: uuid};
|
||||
const assignBillingSessionIdBinding = assignBillingSessionId;
|
||||
const questDataUtilsModule = require(7091) /* metro dependency 7091: QuestDataUtils */;
|
||||
object2.billing_session_id = assignBillingSessionIdBinding(uuid,
|
||||
questDataUtilsModule.isBillableQuestContent(questContent));
|
||||
object2.scrolling_direction = scrollingDirection;
|
||||
object2.scroll_window_start_index = scrollWindowStartIndex;
|
||||
object2.scroll_window_end_index = scrollWindowEndIndex;
|
||||
object2.scroll_window_size = scrollWindowSize;
|
||||
object2.content_name = (require(7120) /* metro dependency 7120: AnalyticsTypes */).getQuestContentName(questContent);
|
||||
object2.content_id = questContent;
|
||||
object2.carousel_size = carouselSize;
|
||||
Reflect.apply(track, defaultImport, [QUEST_HOME_CAROUSEL_SCROLL, object2]);
|
||||
}
|
||||
|
||||
function trackQuestHomeSearchClosed({searchSessionId, searchSessionDurationMs}) { // fn#56821, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:8010, offset: 0x013d31d1, size: 131 bytes, params: 2, frame: 19
|
||||
const sessionAdGeneratorModule = require(7113) /* metro dependency 7113: SessionAdGenerator */;
|
||||
const getOrRefreshAdSession = sessionAdGeneratorModule.getOrRefreshAdSession;
|
||||
const uuid = Reflect.apply(getOrRefreshAdSession, sessionAdGeneratorModule, []).uuid;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const QUEST_HOME_SEARCH_CLOSED = AnalyticEvents.QUEST_HOME_SEARCH_CLOSED;
|
||||
const object2 = {client_ad_session_id: uuid};
|
||||
object2.billing_session_id = assignBillingSessionId(uuid, false);
|
||||
object2.search_session_id = searchSessionId;
|
||||
object2.search_session_duration_ms = searchSessionDurationMs;
|
||||
Reflect.apply(track, defaultImport, [QUEST_HOME_SEARCH_CLOSED, object2]);
|
||||
}
|
||||
|
||||
function trackQuestHomeSearchQuerySubmitted({searchSessionId, searchQuery, searchQueryLength, resultsCount, hasResults}) { // fn#56822, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:8339, offset: 0x013d3254, size: 172 bytes, params: 2, frame: 22
|
||||
const sessionAdGeneratorModule = require(7113) /* metro dependency 7113: SessionAdGenerator */;
|
||||
const getOrRefreshAdSession = sessionAdGeneratorModule.getOrRefreshAdSession;
|
||||
const uuid = Reflect.apply(getOrRefreshAdSession, sessionAdGeneratorModule, []).uuid;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const QUEST_HOME_SEARCH_QUERY_SUBMITTED = AnalyticEvents.QUEST_HOME_SEARCH_QUERY_SUBMITTED;
|
||||
const object2 = {client_ad_session_id: uuid};
|
||||
object2.billing_session_id = assignBillingSessionId(uuid, false);
|
||||
object2.search_session_id = searchSessionId;
|
||||
object2.search_query = searchQuery;
|
||||
object2.search_query_length = searchQueryLength;
|
||||
object2.results_count = resultsCount;
|
||||
object2.has_results = hasResults;
|
||||
Reflect.apply(track, defaultImport, [QUEST_HOME_SEARCH_QUERY_SUBMITTED, object2]);
|
||||
}
|
||||
|
||||
function trackQuestBarOrDockModeChange({questContent, sourceQuestContent, questId, mode, prevMode}) { // fn#56823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:8754, offset: 0x013d3300, size: 146 bytes, params: 2, frame: 17
|
||||
const contentProperties = (require(7120) /* metro dependency 7120: AnalyticsTypes */).getContentProperties(questContent);
|
||||
const trackQuestEventBinding = trackQuestEvent;
|
||||
const QUEST_BAR_MODE_CHANGED = AnalyticEvents.QUEST_BAR_MODE_CHANGED;
|
||||
trackQuestEventBinding({questId: questId, event: QUEST_BAR_MODE_CHANGED,
|
||||
properties: {content_id: contentProperties.content_id, content_name: contentProperties.content_name, mode: mode,
|
||||
previous_mode: prevMode}, sourceQuestContent: sourceQuestContent});
|
||||
}
|
||||
|
||||
async function _fun56805({questContent, questContentPosition, questContentRowIndex, questContentCTA, impressionId, clickId}) { // fn#56805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:2390, offset: 0x013d27ca, size: 397 bytes, params: 2, frame: 25
|
||||
var advertisingId;
|
||||
var r5;
|
||||
var value10;
|
||||
var value11;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
await undefined;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
let binding = env2_0;
|
||||
const binding2 = env2_2;
|
||||
const value4 = binding(binding2[14]);
|
||||
const getAdUser = value4.getAdUser;
|
||||
const value5 = binding(binding2[10]);
|
||||
const getQuestContentName = value5.getQuestContentName;
|
||||
await Reflect.apply(getAdUser, value4, [Reflect.apply(getQuestContentName, value5, [questContent])]);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
const object2 = {};
|
||||
binding = env2_0;
|
||||
const binding3 = env2_2;
|
||||
const value8 = binding(binding3[10]);
|
||||
const getContentProperties = value8.getContentProperties;
|
||||
copyDataProperties(object2, Reflect.apply(getContentProperties, value8, [questContent, questContentPosition,
|
||||
questContentRowIndex]), undefined);
|
||||
copyDataProperties(object2, env2_1(binding3[15])(), undefined);
|
||||
object2['cta_name'] = questContentCTA;
|
||||
object2['impression_id'] = impressionId;
|
||||
if (null != undefined) {
|
||||
value10 = env2_0(env2_2[16]);
|
||||
advertisingId = value10.isIOS() ? undefined.advertisingId : null;
|
||||
} else {
|
||||
advertisingId = null;
|
||||
}
|
||||
object2['apple_advertising_id'] = advertisingId;
|
||||
if (null != undefined) {
|
||||
value11 = env2_0(env2_2[16]);
|
||||
advertisingId = value11.isAndroid() ? undefined.advertisingId : null;
|
||||
} else {
|
||||
advertisingId = null;
|
||||
}
|
||||
object2['android_advertising_id'] = advertisingId;
|
||||
if (clickId != null) {
|
||||
r5 = clickId;
|
||||
} else {
|
||||
value = env2_0(env2_2[17]);
|
||||
value = value.v4();
|
||||
r5 = value;
|
||||
}
|
||||
object2['click_id'] = r5;
|
||||
return object2;
|
||||
}
|
||||
|
||||
async function _fun56808({questId, questContent, questContentCTA, questContentPosition, questContentRowIndex, impressionId, clickId, trackGuildAndChannelMetadata, sourceQuestContent}) { // fn#56808, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:2934, offset: 0x013d2999, size: 412 bytes, params: 2, frame: 29
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = undefined;
|
||||
await value;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
let binding = env2_0;
|
||||
const adTrafficMetadataSealed = binding(env2_2[7]).getAdTrafficMetadataSealed(sourceQuestContent, questId);
|
||||
binding = env2_14;
|
||||
const object3 = {questId: questId};
|
||||
const QUEST_CONTENT_CLICKED = env2_7.QUEST_CONTENT_CLICKED;
|
||||
object3.event = QUEST_CONTENT_CLICKED;
|
||||
const object4 = {};
|
||||
await env2_16({questContent: questContent, questContentPosition: questContentPosition,
|
||||
questContentRowIndex: questContentRowIndex, questContentCTA: questContentCTA, impressionId: impressionId,
|
||||
clickId: clickId});
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
copyDataProperties(object4, undefined, undefined);
|
||||
object4['metadata_sealed'] = env2_0(env2_2[7]).getAdMetadataSealed(sourceQuestContent) ?? null;
|
||||
object4['traffic_metadata_sealed'] = adTrafficMetadataSealed ?? null;
|
||||
const currentQuestHomeSearchSession = env2_0(env2_2[18]).getCurrentQuestHomeSearchSession();
|
||||
object4['search_session_id'] = (currentQuestHomeSearchSession == null ? value : currentQuestHomeSearchSession.uuid) ?? null;
|
||||
object3.properties = object4;
|
||||
object3.trackGuildAndChannelMetadata = trackGuildAndChannelMetadata;
|
||||
object3.shouldExtendSession = env2_0(env2_2[7]).isBillableQuestContent(questContent);
|
||||
object3.sourceQuestContent = sourceQuestContent;
|
||||
binding(object3);
|
||||
return value;
|
||||
}
|
||||
|
||||
async function _fun56811({adContentId, relatedQuestId, adCreativeType, questContent, questContentCTA, questContentPosition, questContentRowIndex, impressionId, trackGuildAndChannelMetadata, sourceQuestContent}) { // fn#56811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:3788, offset: 0x013d2b77, size: 241 bytes, params: 2, frame: 24
|
||||
if (true) {
|
||||
await undefined;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
var binding = env2_15;
|
||||
var object2 = {adContentId: adContentId, relatedQuestId: relatedQuestId, adCreativeType: adCreativeType};
|
||||
var QUEST_CONTENT_CLICKED = env2_7.QUEST_CONTENT_CLICKED;
|
||||
object2.event = QUEST_CONTENT_CLICKED;
|
||||
await env2_16({questContent: questContent, questContentPosition: questContentPosition,
|
||||
questContentRowIndex: questContentRowIndex, questContentCTA: questContentCTA, impressionId: impressionId});
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
object2.properties = undefined;
|
||||
object2.trackGuildAndChannelMetadata = trackGuildAndChannelMetadata;
|
||||
object2.shouldExtendSession = env2_0(env2_2[7]).isBillableQuestContent(questContent);
|
||||
object2.sourceQuestContent = sourceQuestContent;
|
||||
binding(object2);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,295 @@
|
||||
/* Metro module 9949; source: modules/quests/lib/analytics/AnalyticsHooks.tsx; dependencies: [31, 661, 9513, 7110, 7091, 7122, 7120, 7071, 491, 477, 7127, 6531, 7121, 683, 2] */
|
||||
function _fun77879(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#77879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:6, offset: 0x01e0f97d, size: 239 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = useTrackQuestEventWithImpression;
|
||||
const closure2 = useTrackAdContentEventWithImpression;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/lib/analytics/AnalyticsHooks.tsx');
|
||||
exports.useTrackQuestEventWithImpression = closure;
|
||||
exports.useTrackQuestContentClickedWithImpression = useTrackQuestContentClickedWithImpression;
|
||||
exports.useTrackAdContentEventWithImpression = closure2;
|
||||
exports.useTrackAdContentClickedWithImpression = useTrackAdContentClickedWithImpression;
|
||||
exports.useQuestsEmbedFallbackAnalytics = useQuestsEmbedFallbackAnalytics;
|
||||
exports.useBountyCarouselEmptyStateAnalytics = useBountyCarouselEmptyStateAnalytics;
|
||||
exports.useQuestHomeEntrypointAnalyticsEvents = useQuestHomeEntrypointAnalyticsEvents;
|
||||
}
|
||||
|
||||
function useTrackQuestEventWithImpression() { // fn#77880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:131, offset: 0x01e0fa6c, size: 73 bytes, params: 1, frame: 14
|
||||
return env0_3.useCallback(_fun77881,
|
||||
[(require(9513) /* metro dependency 9513: ContentImpressionTrackerHooks */).useQuestImpression()]);
|
||||
}
|
||||
|
||||
function useTrackAdContentEventWithImpression() { // fn#77882, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:343, offset: 0x01e0fb2b, size: 73 bytes, params: 1, frame: 14
|
||||
return env0_3.useCallback(_fun77883,
|
||||
[(require(9513) /* metro dependency 9513: ContentImpressionTrackerHooks */).useQuestImpression()]);
|
||||
}
|
||||
|
||||
function useTrackQuestContentClickedWithImpression() { // fn#77884, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:757, offset: 0x01e0fbea, size: 51 bytes, params: 1, frame: 14
|
||||
return env0_3.useCallback(_fun77885, [useTrackQuestEventWithImpression()]);
|
||||
}
|
||||
|
||||
function useTrackAdContentClickedWithImpression() { // fn#77887, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:1857, offset: 0x01e0fecb, size: 51 bytes, params: 1, frame: 14
|
||||
return env0_3.useCallback(_fun77888, [useTrackAdContentEventWithImpression()]);
|
||||
}
|
||||
|
||||
function useQuestsEmbedFallbackAnalytics(a0, a1) { // fn#77890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:2802, offset: 0x01e1016a, size: 57 bytes, params: 3, frame: 15
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
env0_3.useEffect(_fun77891, [a0, a1]);
|
||||
}
|
||||
|
||||
function useBountyCarouselEmptyStateAnalytics(a0) { // fn#77892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:2958, offset: 0x01e101d5, size: 46 bytes, params: 2, frame: 14
|
||||
const env0_0 = a0;
|
||||
env0_3.useEffect(_fun77893, [a0]);
|
||||
}
|
||||
|
||||
function useQuestHomeEntrypointAnalyticsEvents({questHomeHero, shouldShowQuestHomeHeroContent}) { // fn#77894, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:3129, offset: 0x01e1023c, size: 367 bytes, params: 2, frame: 19
|
||||
let env0_3 = undefined;
|
||||
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
|
||||
const r3 = shouldShowQuestHomeHeroContent ? QuestContent.QUEST_HOME_ENTRYPOINT_THEMED : QuestContent.QUEST_HOME_ENTRYPOINT;
|
||||
const value2 = env0_3.useMemo(_fun77895, [r3]);
|
||||
env0_3 = value2;
|
||||
const value3 = env0_3.useCallback(_fun77896, [questHomeHero, shouldShowQuestHomeHeroContent, r3, value2]);
|
||||
return env0_3.useMemo(_fun77901, [env0_3.useCallback(_fun77897, [value3]), env0_3.useCallback(_fun77898, [value3]),
|
||||
env0_3.useCallback(function() {
|
||||
importDefault(dependencyMap[13]).track(AnalyticEvents.QUEST_HOME_ONBOARDING_POPOVER_RENDERED);
|
||||
}, []), env0_3.useCallback(_fun77900, [value2, questHomeHero])]);
|
||||
}
|
||||
|
||||
function _fun77881(a0) { // fn#77881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:232, offset: 0x01e0fab5, size: 118 bytes, params: 2, frame: 17
|
||||
let value = environment.__proto__;
|
||||
value = undefined;
|
||||
const analyticsActionsModule = require(7110) /* metro dependency 7110: AnalyticsActions */;
|
||||
const trackQuestEvent = analyticsActionsModule.trackQuestEvent;
|
||||
const object3 = {};
|
||||
copyDataProperties(object3, a0, undefined);
|
||||
const object4 = {};
|
||||
copyDataProperties(object4, a0.properties, undefined);
|
||||
object4['impression_id'] = env0_0 == null ? value : env0_0.getId();
|
||||
object3['properties'] = object4;
|
||||
Reflect.apply(trackQuestEvent, analyticsActionsModule, [object3]);
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun77883(a0) { // fn#77883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:448, offset: 0x01e0fb74, size: 118 bytes, params: 2, frame: 17
|
||||
let value = environment.__proto__;
|
||||
value = undefined;
|
||||
const analyticsActionsModule = require(7110) /* metro dependency 7110: AnalyticsActions */;
|
||||
const trackAdContentEvent = analyticsActionsModule.trackAdContentEvent;
|
||||
const object3 = {};
|
||||
copyDataProperties(object3, a0, undefined);
|
||||
const object4 = {};
|
||||
copyDataProperties(object4, a0.properties, undefined);
|
||||
object4['impression_id'] = env0_0 == null ? value : env0_0.getId();
|
||||
object3['properties'] = object4;
|
||||
Reflect.apply(trackAdContentEvent, analyticsActionsModule, [object3]);
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun77885({questId, questContent, questContentCTA, questContentPosition, questContentRowIndex, trackGuildAndChannelMetadata, sourceQuestContent}) { // fn#77885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:873, offset: 0x01e0fc1d, size: 205 bytes, params: 2, frame: 19
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
const env0_7 = (require(7091) /* metro dependency 7091: QuestDataUtils */).getAdMetadataSealed(sourceQuestContent);
|
||||
const env0_8 = (require(7091) /* metro dependency 7091: QuestDataUtils */).getAdTrafficMetadataSealed(sourceQuestContent,
|
||||
questId);
|
||||
const getAdUser = (require(7122) /* metro dependency 7122: AdDataUtilsAndroid */).getAdUser;
|
||||
const analyticsTypesModule = require(7120) /* metro dependency 7120: AnalyticsTypes */;
|
||||
const getQuestContentName = analyticsTypesModule.getQuestContentName;
|
||||
value = Reflect.apply(getAdUser, value, [Reflect.apply(getQuestContentName, analyticsTypesModule, [questContent])]);
|
||||
value.then(_fun77886);
|
||||
}
|
||||
|
||||
function _fun77888({adContentId, relatedQuestId, adCreativeType, questContent, questContentCTA, questContentPosition, questContentRowIndex, trackGuildAndChannelMetadata, sourceQuestContent}) { // fn#77888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:1974, offset: 0x01e0fefe, size: 173 bytes, params: 2, frame: 16
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
const getAdUser = (require(7122) /* metro dependency 7122: AdDataUtilsAndroid */).getAdUser;
|
||||
const analyticsTypesModule = require(7120) /* metro dependency 7120: AnalyticsTypes */;
|
||||
const getQuestContentName = analyticsTypesModule.getQuestContentName;
|
||||
value = Reflect.apply(getAdUser, value, [Reflect.apply(getQuestContentName, analyticsTypesModule, [questContent])]);
|
||||
value.then(_fun77889);
|
||||
}
|
||||
|
||||
function _fun77891() { // fn#77891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:2861, offset: 0x01e101a3, size: 50 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
(require(7110) /* metro dependency 7110: AnalyticsActions */).trackQuestEmbedFallbackViewed(require, env0_0);
|
||||
}
|
||||
|
||||
function _fun77893() { // fn#77893, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:3020, offset: 0x01e10203, size: 57 bytes, params: 1, frame: 12
|
||||
var value2;
|
||||
if (env0_0 != null) {
|
||||
value2 = environment.__proto__;
|
||||
(require(7110) /* metro dependency 7110: AnalyticsActions */).trackBountyCarouselEmptyStateViewed(env0_0);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun77895() { // fn#77895, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:3344, offset: 0x01e103ab, size: 50 bytes, params: 1, frame: 11
|
||||
let value = environment.__proto__;
|
||||
value = require(7120) /* metro dependency 7120: AnalyticsTypes */;
|
||||
value = value.getContentProperties(env0_2);
|
||||
delete value.row_index;
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun77896(a0) { // fn#77896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:3439, offset: 0x01e103dd, size: 173 bytes, params: 2, frame: 18
|
||||
var value2;
|
||||
var value3;
|
||||
var moduleValue;
|
||||
var trackAdContentEvent;
|
||||
var object2;
|
||||
if (questHomeHero == null) {
|
||||
value2 = environment.__proto__;
|
||||
(importDefault(683) /* metro dependency 683: AnalyticsUtils */).track(a0, env0_3);
|
||||
} else if (shouldShowQuestHomeHeroContent) {
|
||||
value3 = environment.__proto__;
|
||||
moduleValue = require(7110) /* metro dependency 7110: AnalyticsActions */;
|
||||
trackAdContentEvent = moduleValue.trackAdContentEvent;
|
||||
object2 = {};
|
||||
object2.adContentId = questHomeHero.id;
|
||||
object2.adCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType.QUEST_HOME_HERO;
|
||||
object2.event = a0;
|
||||
object2.properties = env0_3;
|
||||
object2.sourceQuestContent = env0_2;
|
||||
Reflect.apply(trackAdContentEvent, moduleValue, [object2]);
|
||||
} else {
|
||||
value2 = environment.__proto__;
|
||||
(importDefault(683) /* metro dependency 683: AnalyticsUtils */).track(a0, env0_3);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun77897() { // fn#77897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:3649, offset: 0x01e1048a, size: 29 bytes, params: 1, frame: 11
|
||||
const binding = env0_4;
|
||||
const QUEST_HOVER = AnalyticEvents.QUEST_HOVER;
|
||||
binding(QUEST_HOVER);
|
||||
}
|
||||
|
||||
function _fun77898() { // fn#77898, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:3695, offset: 0x01e104a7, size: 29 bytes, params: 1, frame: 11
|
||||
const binding = env0_4;
|
||||
const QUEST_HOVER_OFF = AnalyticEvents.QUEST_HOVER_OFF;
|
||||
binding(QUEST_HOVER_OFF);
|
||||
}
|
||||
|
||||
function _fun77900() { // fn#77900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:3830, offset: 0x01e104f3, size: 114 bytes, params: 1, frame: 17
|
||||
var object2;
|
||||
var r7;
|
||||
var id;
|
||||
let value = environment.__proto__;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const QUEST_CONTENT_CLICKED = AnalyticEvents.QUEST_CONTENT_CLICKED;
|
||||
const object3 = {is_targeted: false};
|
||||
value = environment;
|
||||
copyDataProperties(object3, env0_3, value);
|
||||
if (questHomeHero != null) {
|
||||
id = questHomeHero.id;
|
||||
object2 = {ad_content_id: id};
|
||||
r7 = id;
|
||||
} else {
|
||||
object2 = {};
|
||||
r7 = value;
|
||||
}
|
||||
copyDataProperties(object3, object2, r7);
|
||||
Reflect.apply(track, defaultImport, [QUEST_CONTENT_CLICKED, object3]);
|
||||
}
|
||||
|
||||
function _fun77901() { // fn#77901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:3959, offset: 0x01e10565, size: 51 bytes, params: 1, frame: 3
|
||||
return {handleMouseEnter: env0_5, handleMouseLeave: env0_6, handleOnboardingPopoutRender: env0_7,
|
||||
handleEntrypointClick: env0_8};
|
||||
}
|
||||
|
||||
function _fun77886(a0) { // fn#77886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:1155, offset: 0x01e0fcea, size: 481 bytes, params: 2, frame: 24
|
||||
var advertisingId;
|
||||
var moduleValue3;
|
||||
var moduleValue4;
|
||||
const binding = env1_0;
|
||||
const object3 = {};
|
||||
object3.questId = questId;
|
||||
const QUEST_CONTENT_CLICKED = AnalyticEvents.QUEST_CONTENT_CLICKED;
|
||||
object3.event = QUEST_CONTENT_CLICKED;
|
||||
const object4 = {};
|
||||
const value3 = undefined;
|
||||
const analyticsTypesModule = require(7120) /* metro dependency 7120: AnalyticsTypes */;
|
||||
const getContentProperties = analyticsTypesModule.getContentProperties;
|
||||
copyDataProperties(object4, Reflect.apply(getContentProperties, analyticsTypesModule, [questContent,
|
||||
questContentPosition, questContentRowIndex]), undefined);
|
||||
copyDataProperties(object4, (importDefault(7071) /* metro dependency 7071: getDeviceMetadataNative */)(), undefined);
|
||||
object4['cta_name'] = questContentCTA;
|
||||
object4['click_id'] = (require(491) /* metro dependency 491 */).v4();
|
||||
const value5 = null;
|
||||
if (value5 != a0) {
|
||||
moduleValue3 = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
advertisingId = moduleValue3.isIOS() ? a0.advertisingId : value5;
|
||||
} else {
|
||||
advertisingId = value5;
|
||||
}
|
||||
object4['apple_advertising_id'] = advertisingId;
|
||||
if (value5 != a0) {
|
||||
moduleValue4 = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
advertisingId = moduleValue4.isAndroid() ? a0.advertisingId : value5;
|
||||
} else {
|
||||
advertisingId = value5;
|
||||
}
|
||||
object4['android_advertising_id'] = advertisingId;
|
||||
object4['metadata_sealed'] = value5 != env0_7 ? env0_7 : value5;
|
||||
object4['traffic_metadata_sealed'] = value5 != env0_8 ? env0_8 : value5;
|
||||
const currentQuestHomeSearchSession = (require(7127) /* metro dependency 7127: QuestHomeSearchSession */).getCurrentQuestHomeSearchSession();
|
||||
const uuid = value5 == currentQuestHomeSearchSession ? value3 : currentQuestHomeSearchSession.uuid;
|
||||
object4['search_session_id'] = value5 != uuid ? uuid : value5;
|
||||
object3.properties = object4;
|
||||
object3.trackGuildAndChannelMetadata = trackGuildAndChannelMetadata;
|
||||
const questDataUtilsModule = require(7091) /* metro dependency 7091: QuestDataUtils */;
|
||||
object3.shouldExtendSession = questDataUtilsModule.isBillableQuestContent(questContent);
|
||||
object3.sourceQuestContent = sourceQuestContent;
|
||||
binding(object3);
|
||||
return value3;
|
||||
}
|
||||
|
||||
function _fun77889(a0) { // fn#77889, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:2215, offset: 0x01e0ffab, size: 447 bytes, params: 2, frame: 24
|
||||
var advertisingId;
|
||||
var moduleValue3;
|
||||
var moduleValue4;
|
||||
const binding = env1_0;
|
||||
const object3 = {};
|
||||
object3.adContentId = adContentId;
|
||||
object3.relatedQuestId = relatedQuestId;
|
||||
object3.adCreativeType = adCreativeType;
|
||||
const QUEST_CONTENT_CLICKED = AnalyticEvents.QUEST_CONTENT_CLICKED;
|
||||
object3.event = QUEST_CONTENT_CLICKED;
|
||||
const object4 = {};
|
||||
const value3 = undefined;
|
||||
const analyticsTypesModule = require(7120) /* metro dependency 7120: AnalyticsTypes */;
|
||||
const getContentProperties = analyticsTypesModule.getContentProperties;
|
||||
copyDataProperties(object4, Reflect.apply(getContentProperties, analyticsTypesModule, [questContent,
|
||||
questContentPosition, questContentRowIndex]), undefined);
|
||||
copyDataProperties(object4, (importDefault(7071) /* metro dependency 7071: getDeviceMetadataNative */)(), undefined);
|
||||
object4['cta_name'] = questContentCTA;
|
||||
object4['click_id'] = (require(491) /* metro dependency 491 */).v4();
|
||||
const value5 = null;
|
||||
if (value5 != a0) {
|
||||
moduleValue3 = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
advertisingId = moduleValue3.isIOS() ? a0.advertisingId : value5;
|
||||
} else {
|
||||
advertisingId = value5;
|
||||
}
|
||||
object4['apple_advertising_id'] = advertisingId;
|
||||
if (value5 != a0) {
|
||||
moduleValue4 = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
advertisingId = moduleValue4.isAndroid() ? a0.advertisingId : value5;
|
||||
} else {
|
||||
advertisingId = value5;
|
||||
}
|
||||
object4['android_advertising_id'] = advertisingId;
|
||||
const currentQuestHomeSearchSession = (require(7127) /* metro dependency 7127: QuestHomeSearchSession */).getCurrentQuestHomeSearchSession();
|
||||
const uuid = value5 == currentQuestHomeSearchSession ? value3 : currentQuestHomeSearchSession.uuid;
|
||||
object4['search_session_id'] = value5 != uuid ? uuid : value5;
|
||||
object3.properties = object4;
|
||||
object3.trackGuildAndChannelMetadata = trackGuildAndChannelMetadata;
|
||||
const questDataUtilsModule = require(7091) /* metro dependency 7091: QuestDataUtils */;
|
||||
object3.shouldExtendSession = questDataUtilsModule.isBillableQuestContent(questContent);
|
||||
object3.sourceQuestContent = sourceQuestContent;
|
||||
binding(object3);
|
||||
return value3;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,103 @@
|
||||
/* Metro module 7120; source: modules/quests/lib/analytics/AnalyticsTypes.tsx; dependencies: [6531, 2] */
|
||||
function _fun56939(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7298:6, offset: 0x013d6a13, size: 1079 bytes, params: 8, frame: 23
|
||||
const env0_0 = require;
|
||||
const closure = getQuestContentName;
|
||||
let Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
Object = global.Object;
|
||||
const keys = Object.keys;
|
||||
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
|
||||
const env0_2 = Reflect.apply(keys, Object, [QuestContent]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/lib/analytics/AnalyticsTypes.tsx');
|
||||
exports.getQuestContentName = closure;
|
||||
exports.getQuestStatus = function(a0) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var property = a0.userStatus;
|
||||
var value = undefined;
|
||||
if (property == null) {
|
||||
r0 = value;
|
||||
} else {
|
||||
property = property.claimedAt;
|
||||
r0 = property;
|
||||
}
|
||||
if (r0 != null) {
|
||||
r0 = 'COMPLETED_CLAIMED';
|
||||
} else {
|
||||
property = a0.userStatus;
|
||||
if (property == null) {
|
||||
r1 = value;
|
||||
} else {
|
||||
property = property.completedAt;
|
||||
r1 = property;
|
||||
}
|
||||
if (r1 != null) {
|
||||
r1 = 'COMPLETED';
|
||||
} else {
|
||||
property = a0.userStatus;
|
||||
r2 = property == null ? value : property.enrolledAt;
|
||||
value = 'NONE';
|
||||
r2 = r2 != null ? 'ENROLLED' : value;
|
||||
r1 = r2;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
};
|
||||
exports.getContentProperties = function(a0, a1, a2) {
|
||||
var object = {content_id: a0};
|
||||
object.content_name = getQuestContentName(a0);
|
||||
object.content_position = a1;
|
||||
object.row_index = a2;
|
||||
return object;
|
||||
};
|
||||
exports.BountyScrollingType = {AUTO: 'AUTO', MANUAL: 'MANUAL'};
|
||||
exports.HorizontalScrollingDirection = {LEFT: 'LEFT', RIGHT: 'RIGHT'};
|
||||
exports.VerticalScrollingDirection = {UP: 'UP', DOWN: 'DOWN'};
|
||||
exports.QuestHomeScrollingType = {ARROW: 'ARROW', AUTO: 'AUTO', MANUAL: 'MANUAL'};
|
||||
exports.QuestContentCTA = {LEARN_MORE: 'LEARN_MORE', SHOW_REWARD: 'SHOW_REWARD', CLAIM_REWARD: 'CLAIM_REWARD',
|
||||
GET_REWARD_CODE: 'GET_REWARD_CODE', COPY_REWARD_CODE: 'COPY_REWARD_CODE', ACCEPT_QUEST: 'ACCEPT_QUEST',
|
||||
COPY_QUEST_URL: 'COPY_QUEST_URL', MOBILE_SHARESHEET: 'MOBILE_SHARESHEET', TRACK_PROGRESS: 'TRACK_PROGRESS',
|
||||
CONNECT_CONSOLE: 'CONNECT_CONSOLE', CONNECT_CONSOLE_LINK: 'CONNECT_CONSOLE_LINK',
|
||||
VIEW_CONSOLE_CONNECTIONS: 'VIEW_CONSOLE_CONNECTION',
|
||||
VIEW_CONSOLE_CONNECTIONS_LINK: 'VIEW_CONSOLE_CONNECTIONS_LINK', VIEW_REQUIREMENTS: 'VIEW_REQUIREMENTS',
|
||||
SELECT_CONSOLE_PLATFORM: 'SELECT_CONSOLE_PLATFORM', SELECT_DESKTOP_PLATFORM: 'SELECT_DESKTOP_PLATFORM',
|
||||
DESELECT_PLATFORM: 'DESELECT_PLATFORM', OPEN_ACCOUNT_LINK_MODAL: 'OPEN_ACCOUNT_LINK_MODAL',
|
||||
OPEN_ACCOUNT_LINK_INSTRUCTIONS: 'OPEN_ACCOUNT_LINK_INSTRUCTIONS',
|
||||
SELECT_IN_GAME_AUTH_METHOD: 'SELECT_IN_GAME_AUTH_METHOD', SELECT_WEB_AUTH_METHOD: 'SELECT_WEB_AUTH_METHOD',
|
||||
START_WEB_AUTHORIZATION: 'START_WEB_AUTHORIZATION', DEFIBRILLATOR: 'DEFIBRILLATOR',
|
||||
DEFIBRILLATOR_RECONNECT_CONSOLE: 'DEFIBRILLATOR_RECONNECT_CONSOLE', OPEN_DISCLOSURE: 'OPEN_DISCLOSURE',
|
||||
WATCH_STREAM: 'WATCH_STREAM', WATCH_STREAM_CONFIRM: 'WATCH_STREAM_CONFIRM',
|
||||
REWARD_LEARN_MORE: 'REWARD_LEARN_MORE', OPEN_GAME_LINK: 'OPEN_GAME_LINK',
|
||||
OPEN_CONTEXT_MENU: 'OPEN_CONTEXT_MENU', OPEN_QUEST_HOME: 'OPEN_QUEST_HOME',
|
||||
OPEN_QUEST_HOME_TO_CLAIM: 'OPEN_QUEST_HOME_TO_CLAIM', QUEST_BAR_COPY_LINK: 'QUEST_BAR.COPY_LINK',
|
||||
CONTEXT_MENU_COPY_LINK: 'CONTEXT_MENU.COPY_LINK', REWARD_MODAL_COPY_LINK: 'REWARD_MODAL.COPY_LINK',
|
||||
CONTEXT_MENU_HIDE_CONTENT: 'CONTEXT_MENU.HIDE_CONTENT',
|
||||
CONTEXT_MENU_OPEN_GAME_LINK: 'CONTEXT_MENU.OPEN_GAME_LINK',
|
||||
CONTEXT_MENU_OPEN_DISCLOSURE: 'CONTEXT_MENU.OPEN_DISCLOSURE',
|
||||
CONTEXT_MENU_LEARN_MORE: 'CONTEXT_MENU.LEARN_MORE', HOW_TO_HELP_ARTICLE_XBOX: 'HOW_TO_HELP_ARTICLE_XBOX',
|
||||
HOW_TO_HELP_ARTICLE_PLAYSTATION: 'HOW_TO_HELP_ARTICLE_PLAYSTATION', VIEW_QUESTS: 'VIEW_QUESTS',
|
||||
EXPAND: 'EXPAND', COLLAPSE: 'COLLAPSE', START_QUEST: 'START_QUEST', TRANSCRIPT_ENABLE: 'TRANSCRIPT_ENABLE',
|
||||
TRANSCRIPT_DISABLE: 'TRANSCRIPT_DISABLE', CLOSED_CAPTIONING_ENABLE: 'CLOSED_CAPTIONING_ENABLE',
|
||||
CLOSED_CAPTIONING_DISABLE: 'CLOSED_CAPTIONING_DISABLE', SEEK_BACKWARD: 'SEEK_BACKWARD',
|
||||
SEEK_FORWARD: 'SEEK_FORWARD', WATCH_VIDEO: 'WATCH_VIDEO',
|
||||
QUEST_BAR_VIDEO_QUEST_PREVIEW: 'QUEST_BAR_VIDEO_QUEST_PREVIEW',
|
||||
QUEST_HOME_TILE_HEADER_WATCH_VIDEO: 'QUEST_HOME_TILE_HEADER_WATCH_VIDEO', REDEEM_REWARD: 'REDEEM_REWARD',
|
||||
VISIT_REDEMPTION_LINK: 'VISIT_REDEMPTION_LINK', SPONSORED_QUEST_SHEET: 'SPONSORED_QUEST_SHEET',
|
||||
GAME_PROFILE_OPEN: 'GAME_PROFILE_OPEN', GAME_STORE_OPEN_GAME_LINK: 'GAME_STORE_OPEN_GAME_LINK',
|
||||
MOBILE_ORBS_ONBOARDING_DC: 'MOBILE_ORBS_ONBOARDING_DC', LAUNCH_MOBILE_ACTIVITY: 'LAUNCH_MOBILE_ACTIVITY',
|
||||
OPEN_NITRO_CHECKOUT: 'OPEN_NITRO_CHECKOUT', OPEN_NITRO_HOME: 'OPEN_NITRO_HOME', START_BOUNTY: 'START_BOUNTY',
|
||||
BACK_TO_BOUNTIES: 'BACK_TO_BOUNTIES'};
|
||||
}
|
||||
|
||||
function getQuestContentName(a0) { // fn#56940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7298:132, offset: 0x013d6e4a, size: 50 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
return env0_2.find(_fun56941) ?? '';
|
||||
}
|
||||
|
||||
function _fun56941(a0) { // fn#56941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7298:194, offset: 0x013d6e7c, size: 50 bytes, params: 2, frame: 11
|
||||
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
|
||||
return QuestContent[a0] === env0_0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,134 @@
|
||||
/* Metro module 9516; source: modules/quests/lib/analytics/BrandSafetyContext.tsx; dependencies: [9485, 1379, 1867, 3793, 3969, 1878, 9515, 7091, 1423, 4805, 2] */
|
||||
function _fun74246(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9702:6, offset: 0x01d86c29, size: 236 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const sidebarVisibilityMethodStoreModule = require(9485) /* metro dependency 9485: SidebarVisibilityMethodStore */;
|
||||
const env0_3 = sidebarVisibilityMethodStoreModule.getVisibleChannelIdsMethod;
|
||||
const env0_4 = sidebarVisibilityMethodStoreModule.getVisibleGuildIdsMethod;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const selectedGuildStore = importDefault(3969) /* metro dependency 3969: SelectedGuildStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const env0_10 = (require(9515) /* metro dependency 9515: ContentImpressionTrackerConstants */).MAX_BRAND_SAFETY_CONTEXT_ARRAY_LEN;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/lib/analytics/BrandSafetyContext.tsx');
|
||||
exports.getBrandSafetyContext = getBrandSafetyContext;
|
||||
}
|
||||
|
||||
function getBrandSafetyContext(a0) { // fn#74247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9702:371, offset: 0x01d86d15, size: 550 bytes, params: 2, frame: 20
|
||||
var r3;
|
||||
var r2;
|
||||
var guildId;
|
||||
var object2;
|
||||
var value9;
|
||||
var guildBannerURL;
|
||||
var length;
|
||||
var object4;
|
||||
const value2 = undefined;
|
||||
const isBillableQuestContent2 = (require(7091) /* metro dependency 7091: QuestDataUtils */).isBillableQuestContent(a0);
|
||||
const adContext = (require(7091) /* metro dependency 7091: QuestDataUtils */).getAdContext(a0);
|
||||
const visibleGuildIdsMethod = getVisibleGuildIdsMethod();
|
||||
const visibleChannelIdsMethod = getVisibleChannelIdsMethod();
|
||||
const value6 = null;
|
||||
if (value6 != adContext) {
|
||||
if (adContext.is_campaign_ias_enabled) {
|
||||
if (isBillableQuestContent2) {
|
||||
if (value2 === visibleGuildIdsMethod) {
|
||||
return value6;
|
||||
}
|
||||
if (value2 === visibleChannelIdsMethod) {
|
||||
return value6;
|
||||
}
|
||||
guildId = SelectedGuildStore.getGuildId();
|
||||
r3 = value6 != guildId ? GuildStore.getGuild(guildId) : value6;
|
||||
object2 = {};
|
||||
value9 = visibleGuildIdsMethod();
|
||||
var env0_0 = GuildStore.getGuilds();
|
||||
object2.guilds = value9.map(_fun74248).filter(function(a0) {
|
||||
return a0 !== null;
|
||||
});
|
||||
object2.channels = value6 == r3 ? [] : visibleChannelIdsMethod().map(_fun74250).filter(_fun74251);
|
||||
if (value6 != guildId) {
|
||||
object2.selected_guild_id = guildId;
|
||||
}
|
||||
if (value6 === (value6 == r3 ? value2 : r3.banner)) {
|
||||
r2 = value6;
|
||||
} else if (value2 === (value6 == r3 ? value2 : r3.banner)) {
|
||||
r2 = value6;
|
||||
} else {
|
||||
guildBannerURL = (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getGuildBannerURL({id: r3.id,
|
||||
|
||||
|
||||
|
||||
banner: r3.banner}, true);
|
||||
r2 = value6 != guildBannerURL ? guildBannerURL : value6;
|
||||
}
|
||||
if (value6 !== r2) {
|
||||
object2.selected_guild_banner_url = r2;
|
||||
}
|
||||
length = object2.guilds.length;
|
||||
if (length > MAX_BRAND_SAFETY_CONTEXT_ARRAY_LEN) {
|
||||
object2.guilds = object2.guilds.slice(0, MAX_BRAND_SAFETY_CONTEXT_ARRAY_LEN);
|
||||
object2.truncated = true;
|
||||
}
|
||||
length = object2.channels.length;
|
||||
if (length > MAX_BRAND_SAFETY_CONTEXT_ARRAY_LEN) {
|
||||
object2.channels = object2.channels.slice(0, MAX_BRAND_SAFETY_CONTEXT_ARRAY_LEN);
|
||||
object2.truncated = true;
|
||||
}
|
||||
object4 = {};
|
||||
object4.brand_safety_context = global.JSON.stringify(object2);
|
||||
return object4;
|
||||
}
|
||||
return value6;
|
||||
}
|
||||
}
|
||||
return value6;
|
||||
}
|
||||
|
||||
function _fun74248(a0) { // fn#74248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9702:658, offset: 0x01d86f3b, size: 172 bytes, params: 2, frame: 16
|
||||
var r1;
|
||||
var value2;
|
||||
var guildIconURL;
|
||||
const property = env0_0[a0];
|
||||
if (property === undefined) {
|
||||
return null;
|
||||
}
|
||||
const object2 = {};
|
||||
object2.id = property.id;
|
||||
object2.name = property.name;
|
||||
const description = property.description;
|
||||
const value = null;
|
||||
if (value !== description) {
|
||||
object2.description = property.description;
|
||||
}
|
||||
if (value === property.icon) {
|
||||
r1 = value;
|
||||
} else {
|
||||
value2 = environment.__proto__;
|
||||
guildIconURL = (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getGuildIconURL({id: property.id,
|
||||
icon: property.icon, size: 44, canAnimate: true});
|
||||
r1 = value != guildIconURL ? guildIconURL : value;
|
||||
}
|
||||
if (value !== r1) {
|
||||
object2.icon_url = r1;
|
||||
}
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun74250(a0) { // fn#74250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9702:977, offset: 0x01d86fe7, size: 119 bytes, params: 2, frame: 17
|
||||
const channel = ChannelStore.getChannel(a0);
|
||||
if (channel === undefined) {
|
||||
return null;
|
||||
}
|
||||
const object2 = {};
|
||||
object2.id = channel.id;
|
||||
object2.name = (require(4805) /* metro dependency 4805: useChannelName */).computeChannelName(channel, UserStore,
|
||||
RelationshipStore);
|
||||
if (channel.topic.length > 0) {
|
||||
object2.channel_topic = channel.topic;
|
||||
}
|
||||
return object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,685 @@
|
||||
/* Metro module 9514; source: modules/quests/lib/analytics/ContentImpressionTracker.tsx; dependencies: [5, 6, 7, 31, 7093, 9515, 661, 33, 7091, 7122, 7120, 477, 7071, 9516, 7121, 9484, 7099, 7110, 7127, 9517, 9518, 4826, 4831, 491, 9519, 9513, 566, 4594, 2] */
|
||||
function _fun74221(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74221, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:6, offset: 0x01d8544e, size: 353 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const getQuestPlacementCombinationKey = function(a0, a1) {
|
||||
return '' + a0 + '_' + a1;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_5 = importDefault(7) /* metro dependency 7 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const questStore = importDefault(7093) /* metro dependency 7093: QuestStore */;
|
||||
const contentImpressionTrackerConstantsModule = require(9515) /* metro dependency 9515: ContentImpressionTrackerConstants */;
|
||||
const env0_8 = contentImpressionTrackerConstantsModule.HEARTBEAT_SECONDS;
|
||||
const env0_9 = contentImpressionTrackerConstantsModule.MIN_QUEST_VIEW_TIME_SECONDS;
|
||||
const env0_10 = contentImpressionTrackerConstantsModule.MIN_QUEST_CONTENT_VISIBILITY_PERCENTAGE;
|
||||
const env0_11 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const env0_12 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const Set = global.Set;
|
||||
const set = new Set();
|
||||
const value5 = _fun74223();
|
||||
value = value.createContext(undefined);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/lib/analytics/ContentImpressionTracker.tsx');
|
||||
exports.QuestContentImpression = value5;
|
||||
exports.QuestImpressionContext = value;
|
||||
exports.QuestContentImpressionTracker = QuestContentImpressionTracker;
|
||||
}
|
||||
|
||||
function _fun74223() { // fn#74223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:373, offset: 0x01d855d3, size: 84 bytes, params: 1, frame: 15
|
||||
return env0_5(QuestContentImpression, [{key: 'getId', value: function() {
|
||||
return this.id;
|
||||
}}, {key: 'getQuestContentPosition', value: function() {
|
||||
return this.questContentPosition;
|
||||
}}]);
|
||||
}
|
||||
|
||||
function QuestContentImpressionTracker(a0) { // fn#74240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:8267, offset: 0x01d8688e, size: 379 bytes, params: 2, frame: 29
|
||||
const env0_0 = a0;
|
||||
const visible = a0.visible;
|
||||
const visibleChanged = a0.visibleChanged;
|
||||
const focused = a0.focused;
|
||||
const reference = a0.reference;
|
||||
const focusedChanged = a0.focusedChanged;
|
||||
const sourceQuestContent = a0.sourceQuestContent;
|
||||
const value2 = (require(9513) /* metro dependency 9513: ContentImpressionTrackerHooks */).useQuestStatusChanged(a0);
|
||||
const binding = value2;
|
||||
const value3 = binding.useRef(null);
|
||||
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([QuestStore], function() {
|
||||
return QuestStore.questEnrollmentBlockedUntil != null;
|
||||
}, []);
|
||||
(importDefault(4594) /* metro dependency 4594: useMountEffect */)(function() {
|
||||
return _fun74243;
|
||||
});
|
||||
binding.useEffect(_fun74244, [focused, visible, focusedChanged, visibleChanged, a0.adContentIds, a0.onImpression,
|
||||
a0.questContent, a0.questContentPosition, a0.questContentRowIndex, a0.trackGuildAndChannelMetadata, value2,
|
||||
a0.minViewTimeSeconds, value4, sourceQuestContent, a0.adCreativeType]);
|
||||
const Provider = env0_15.Provider;
|
||||
return (
|
||||
<Provider value={value3}>
|
||||
{a0.children(reference, value3)}
|
||||
</Provider>
|
||||
);
|
||||
}
|
||||
|
||||
function QuestContentImpression({adContentIds, adCreativeType, questContent, triggeredByStatusChange, trackGuildAndChannelMetadata, questContentPosition, questContentRowIndex, minViewTimeSeconds, isQuestEnrollmentBlocked, onImpression, sourceQuestContent}) { // fn#74224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:394, offset: 0x01d85627, size: 434 bytes, params: 2, frame: 27
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
env1_4(this, QuestContentImpression);
|
||||
this.isRunning = false;
|
||||
this.trackViewedPlacement = trackViewedPlacement;
|
||||
this.shouldExtendSession = shouldExtendSession;
|
||||
this.onMinViewTimeReached = env1_3(_fun74228);
|
||||
this.beat = beat;
|
||||
this.commonProperties = commonProperties;
|
||||
this.clone = clone_74233;
|
||||
this.start = start_74234;
|
||||
this.stop = stop_74237;
|
||||
const r13 = minViewTimeSeconds !== undefined ? minViewTimeSeconds : MIN_QUEST_VIEW_TIME_SECONDS;
|
||||
const moduleValue = require(491) /* metro dependency 491 */;
|
||||
this.id = moduleValue.v4();
|
||||
this.questContent = questContent;
|
||||
this.questContentPosition = questContentPosition;
|
||||
this.minViewTimeSeconds = r13;
|
||||
this.minViewportPercentage = MIN_QUEST_CONTENT_VISIBILITY_PERCENTAGE;
|
||||
this.trackGuildAndChannelMetadata = trackGuildAndChannelMetadata;
|
||||
this.triggeredByStatusChange = triggeredByStatusChange;
|
||||
this.questContentRowIndex = questContentRowIndex;
|
||||
this.isQuestEnrollmentBlocked = isQuestEnrollmentBlocked;
|
||||
this.onImpressionCallback = onImpression;
|
||||
this.sourceQuestContent = sourceQuestContent;
|
||||
value = require(9519) /* metro dependency 9519: AdAnalyticsInterfaceExperiment */;
|
||||
const shouldMigrateToAdAnalyticsInterface = value.shouldMigrateToAdAnalyticsInterface;
|
||||
const AdAnalyticsInterfaceExperimentStep = (require(9519) /* metro dependency 9519: AdAnalyticsInterfaceExperiment */).AdAnalyticsInterfaceExperimentStep;
|
||||
const STEP_1_LOADED = AdAnalyticsInterfaceExperimentStep.STEP_1_LOADED;
|
||||
this.migrateQuestContentLoadedToCaptureAdUserAction = Reflect.apply(shouldMigrateToAdAnalyticsInterface, value,
|
||||
[STEP_1_LOADED, 'quest_content_impression']);
|
||||
const AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType;
|
||||
AdCreativeType.QUEST;
|
||||
this.entity = {adContentIds: adContentIds, adCreativeType: adCreativeType};
|
||||
}
|
||||
|
||||
function _fun74242() { // fn#74242, offset: 0x01d86a1e, size: 11 bytes, params: 1, frame: 1
|
||||
return _fun74243;
|
||||
}
|
||||
|
||||
function _fun74244() { // fn#74244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:8621, offset: 0x01d86a52, size: 356 bytes, params: 1, frame: 16
|
||||
var r3;
|
||||
var r2;
|
||||
var binding;
|
||||
var object3;
|
||||
var value4;
|
||||
var binding2;
|
||||
var binding3;
|
||||
var object4;
|
||||
const r4 = focused && visible;
|
||||
let r1 = visibleChanged || focusedChanged;
|
||||
r1 = (!r1 ? env0_6 : r1) && r4;
|
||||
if (r1) {
|
||||
r2 = r1;
|
||||
} else {
|
||||
r3 = visibleChanged || focusedChanged;
|
||||
r3 = r3 && !r4;
|
||||
r2 = r3;
|
||||
}
|
||||
r2 = (!r2 ? env0_6 : r2) && env0_7.current != null;
|
||||
if (r2) {
|
||||
env0_7.current.stop();
|
||||
}
|
||||
if (r1) {
|
||||
object3 = {isQuestEnrollmentBlocked: env0_8};
|
||||
binding = env0_0;
|
||||
object3.minViewTimeSeconds = binding.minViewTimeSeconds;
|
||||
object3.onImpression = binding.onImpression;
|
||||
object3.questContent = binding.questContent;
|
||||
object3.questContentPosition = binding.questContentPosition;
|
||||
object3.questContentRowIndex = binding.questContentRowIndex;
|
||||
object3.sourceQuestContent = sourceQuestContent;
|
||||
object3.trackGuildAndChannelMetadata = binding.trackGuildAndChannelMetadata;
|
||||
object3.triggeredByStatusChange = env0_6;
|
||||
binding.adCreativeType;
|
||||
value4 = environment.__proto__;
|
||||
(require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType.QUEST;
|
||||
binding2 = env0_7;
|
||||
binding3 = env1_14;
|
||||
object4 = {};
|
||||
copyDataProperties(object4, object3, require);
|
||||
object4['adContentIds'] = binding.adContentIds;
|
||||
object4['adCreativeType'] = binding.adCreativeType;
|
||||
binding2.current = new binding3();
|
||||
binding2.current.start();
|
||||
}
|
||||
}
|
||||
|
||||
function trackViewedPlacement(a0) { // fn#74225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:515, owner: QuestContentImpression.trackViewedPlacement, offset: 0x01d857d9, size: 128 bytes, params: 2, frame: 17
|
||||
var r2;
|
||||
var moduleValue2;
|
||||
var binding;
|
||||
const questPlacementFromQuestContent = (require(7091) /* metro dependency 7091: QuestDataUtils */).getQuestPlacementFromQuestContent(env0_0.questContent);
|
||||
const value4 = questPlacementFromQuestContent != null;
|
||||
if (value4) {
|
||||
moduleValue2 = require(7091) /* metro dependency 7091: QuestDataUtils */;
|
||||
r2 = moduleValue2.isBillableQuestContent(env0_0.questContent);
|
||||
} else {
|
||||
r2 = value4;
|
||||
}
|
||||
if (r2) {
|
||||
binding = env2_13;
|
||||
binding.add(getQuestPlacementCombinationKey(a0, questPlacementFromQuestContent));
|
||||
}
|
||||
}
|
||||
|
||||
function shouldExtendSession(a0) { // fn#74226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:716, owner: QuestContentImpression.shouldExtendSession, offset: 0x01d85859, size: 131 bytes, params: 2, frame: 19
|
||||
let value = environment.__proto__.__proto__;
|
||||
const questPlacementFromQuestContent = (require(7091) /* metro dependency 7091: QuestDataUtils */).getQuestPlacementFromQuestContent(env0_0.questContent);
|
||||
let r0 = questPlacementFromQuestContent != null && !env2_13.has(getQuestPlacementCombinationKey(a0,
|
||||
questPlacementFromQuestContent));
|
||||
if (r0) {
|
||||
value = require(7091) /* metro dependency 7091: QuestDataUtils */;
|
||||
value = value.isBillableQuestContent(env0_0.questContent);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function* _fun74228() { // fn#74228, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:929, offset: 0x01d858e7, size: 431 bytes, params: 1, frame: 21
|
||||
var r11;
|
||||
var environment;
|
||||
var advertisingId;
|
||||
var value9;
|
||||
var binding4;
|
||||
var value10;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
var binding = env3_0;
|
||||
var binding2 = env3_2;
|
||||
var value3 = binding(binding2[9]);
|
||||
var getAdUser = value3.getAdUser;
|
||||
var value4 = binding(binding2[10]);
|
||||
var getQuestContentName = value4.getQuestContentName;
|
||||
yield Reflect.apply(getAdUser, value3, [Reflect.apply(getQuestContentName, value4, [env1_1.questContent])]);
|
||||
var value6 = undefined;
|
||||
if (false) {
|
||||
return value6;
|
||||
}
|
||||
var object2 = {};
|
||||
binding = env1_1;
|
||||
object2.trackGuildAndChannelMetadata = binding.trackGuildAndChannelMetadata;
|
||||
object2.sourceQuestContent = binding.sourceQuestContent;
|
||||
object2 = {};
|
||||
object2.min_view_time_seconds = binding.minViewTimeSeconds;
|
||||
object2.min_viewport_percentage = binding.minViewportPercentage;
|
||||
object2.triggered_by_status_change = binding.triggeredByStatusChange;
|
||||
var value8 = null;
|
||||
if (value8 != value6) {
|
||||
value9 = env3_0(env3_2[11]);
|
||||
advertisingId = value9.isIOS() ? value6.advertisingId : value8;
|
||||
} else {
|
||||
advertisingId = value8;
|
||||
}
|
||||
object2.apple_advertising_id = advertisingId;
|
||||
if (value8 != value6) {
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value10 = binding(binding4[11]);
|
||||
if (value10.isAndroid()) {
|
||||
advertisingId = value6.advertisingId;
|
||||
r11 = binding4;
|
||||
} else {
|
||||
advertisingId = value8;
|
||||
r11 = binding4;
|
||||
}
|
||||
} else {
|
||||
advertisingId = value8;
|
||||
}
|
||||
object2.android_advertising_id = advertisingId;
|
||||
binding = env3_1;
|
||||
var binding5 = env3_2;
|
||||
copyDataProperties(object2, binding(binding5[12])(), r11);
|
||||
value = env3_0(binding5[13]);
|
||||
var getBrandSafetyContext = value.getBrandSafetyContext;
|
||||
binding = env1_1;
|
||||
copyDataProperties(object2, Reflect.apply(getBrandSafetyContext, value, [binding.questContent]), r11);
|
||||
binding.entity.adContentIds.forEach(_fun74229);
|
||||
if (value8 != binding.onImpressionCallback) {
|
||||
env1_1.onImpressionCallback();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function beat() { // fn#74230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:2899, owner: QuestContentImpression.beat, offset: 0x01d85e79, size: 219 bytes, params: 1, frame: 17
|
||||
var Math;
|
||||
var round;
|
||||
var value2;
|
||||
var binding;
|
||||
var value3;
|
||||
var object2;
|
||||
const value = a0;
|
||||
const r6 = value !== undefined ? value : false;
|
||||
const env0_0 = r6;
|
||||
if (env0_0.lastBeatTime != null) {
|
||||
Math = global.Math;
|
||||
round = Math.round;
|
||||
value2 = global.Date.now();
|
||||
binding = env0_0;
|
||||
value3 = Reflect.apply(round, Math, [value2 - binding.lastBeatTime]);
|
||||
object2 = {};
|
||||
object2.trackGuildAndChannelMetadata = binding.trackGuildAndChannelMetadata;
|
||||
object2.sourceQuestContent = binding.sourceQuestContent;
|
||||
object2 = {is_termination_beat: r6, viewed_time_ms: value3};
|
||||
object2.triggered_by_status_change = binding.triggeredByStatusChange;
|
||||
binding.entity.adContentIds.forEach(_fun74231);
|
||||
}
|
||||
binding = env0_0;
|
||||
const Date = global.Date;
|
||||
binding.lastBeatTime = Date.now();
|
||||
}
|
||||
|
||||
function commonProperties() { // fn#74232, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:4068, owner: QuestContentImpression.commonProperties, offset: 0x01d861f0, size: 95 bytes, params: 1, frame: 16
|
||||
const object2 = {};
|
||||
const binding = env0_0;
|
||||
object2.impression_id = binding.id;
|
||||
object2.is_quest_enrollment_blocked = binding.isQuestEnrollmentBlocked;
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(7120) /* metro dependency 7120: AnalyticsTypes */;
|
||||
const getContentProperties = value.getContentProperties;
|
||||
copyDataProperties(object2, Reflect.apply(getContentProperties, value, [binding.questContent,
|
||||
binding.questContentPosition, binding.questContentRowIndex]), undefined);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function QuestContentImpressionClone({triggeredByStatusChange}) { // fn#74233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:4271, owner: QuestContentImpression.clone, offset: 0x01d8624f, size: 155 bytes, params: 2, frame: 14
|
||||
const binding = env0_0;
|
||||
binding.stop();
|
||||
let value = environment.__proto__;
|
||||
const object2 = {};
|
||||
object2.questContent = binding.questContent;
|
||||
object2.questContentRowIndex = binding.questContentRowIndex;
|
||||
object2.questContentPosition = binding.questContentPosition;
|
||||
const trackGuildAndChannelMetadata = binding.trackGuildAndChannelMetadata;
|
||||
object2.trackGuildAndChannelMetadata = trackGuildAndChannelMetadata;
|
||||
object2.triggeredByStatusChange = triggeredByStatusChange;
|
||||
object2.isQuestEnrollmentBlocked = binding.isQuestEnrollmentBlocked;
|
||||
object2.onImpression = binding.onImpressionCallback;
|
||||
object2.sourceQuestContent = binding.sourceQuestContent;
|
||||
copyDataProperties(object2, binding.entity, trackGuildAndChannelMetadata);
|
||||
value = Object.create(QuestContentImpression.prototype, {constructor: {value: QuestContentImpression}});
|
||||
const questContentImpression = new QuestContentImpression(object2);
|
||||
return questContentImpression instanceof Object ? questContentImpression : value;
|
||||
}
|
||||
|
||||
function QuestContentImpressionStart() { // fn#74234, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:4723, owner: QuestContentImpression.start, offset: 0x01d862ea, size: 347 bytes, params: 1, frame: 18
|
||||
var environment;
|
||||
const binding = env0_0;
|
||||
binding.stop(false);
|
||||
const Date = global.Date;
|
||||
binding.lastBeatTime = Date.now();
|
||||
let window = global.window;
|
||||
const setInterval = window.setInterval;
|
||||
let value = environment.__proto__.__proto__;
|
||||
binding.heartbeatTimeoutId = Reflect.apply(setInterval, window, [_fun74235, 1000 * HEARTBEAT_SECONDS]);
|
||||
window = global.window;
|
||||
binding.minViewTimeReachedTimeoutId = window.setTimeout(binding.onMinViewTimeReached,
|
||||
1000 * binding.minViewTimeSeconds);
|
||||
let object2 = {};
|
||||
object2.trackGuildAndChannelMetadata = binding.trackGuildAndChannelMetadata;
|
||||
object2.sourceQuestContent = binding.sourceQuestContent;
|
||||
({}).triggered_by_status_change = binding.triggeredByStatusChange;
|
||||
binding.entity.adContentIds.forEach(_fun74236);
|
||||
const defaultImport = importDefault(4826) /* metro dependency 4826: MonitoringAgent */;
|
||||
const increment = defaultImport.increment;
|
||||
object2 = {};
|
||||
const MetricEvents = (require(4831) /* metro dependency 4831: MetricEvents */).MetricEvents;
|
||||
const QUEST_CONTENT_IMPRESSION = MetricEvents.QUEST_CONTENT_IMPRESSION;
|
||||
object2.name = QUEST_CONTENT_IMPRESSION;
|
||||
const getQuestContentName = (require(7120) /* metro dependency 7120: AnalyticsTypes */).getQuestContentName;
|
||||
value = Reflect.apply(getQuestContentName, value, [binding.questContent]);
|
||||
value = 'quest_content:' + value;
|
||||
object2.tags = [value];
|
||||
Reflect.apply(increment, defaultImport, [object2]);
|
||||
binding.isRunning = true;
|
||||
}
|
||||
|
||||
function QuestContentImpressionStop() { // fn#74237, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:6927, owner: QuestContentImpression.stop, offset: 0x01d86826, size: 93 bytes, params: 1, frame: 13
|
||||
const value = a0;
|
||||
if (!(value !== undefined) || value) {
|
||||
env0_0.beat(true);
|
||||
}
|
||||
const binding = env0_0;
|
||||
binding.lastBeatTime = undefined;
|
||||
global.clearInterval(binding.heartbeatTimeoutId);
|
||||
global.clearTimeout(binding.minViewTimeReachedTimeoutId);
|
||||
binding.isRunning = false;
|
||||
}
|
||||
|
||||
function _fun74243() { // fn#74243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:8566, offset: 0x01d86a29, size: 41 bytes, params: 1, frame: 10
|
||||
if (env1_7.current != null) {
|
||||
env1_7.current.stop();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun74229(a0, a1) { // fn#74229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:1506, offset: 0x01d85a96, size: 995 bytes, params: 3, frame: 33
|
||||
var questName;
|
||||
var r20;
|
||||
var r11;
|
||||
var uuid;
|
||||
var id;
|
||||
var property;
|
||||
var binding4;
|
||||
var binding5;
|
||||
var questLogger;
|
||||
var info;
|
||||
var minViewTimeSeconds;
|
||||
var value8;
|
||||
var object4;
|
||||
var value11;
|
||||
var trackAdContentEvent;
|
||||
var object5;
|
||||
var quest;
|
||||
var value14;
|
||||
var binding6;
|
||||
var value17;
|
||||
var questLogger2;
|
||||
var binding7;
|
||||
var binding8;
|
||||
var value20;
|
||||
var value22;
|
||||
var value23;
|
||||
var trackQuestEvent;
|
||||
var object6;
|
||||
var currentQuestHomeSearchSession;
|
||||
var getAdTrafficMetadataSealed;
|
||||
let value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
let binding = env4_0;
|
||||
const binding2 = env4_2;
|
||||
const value2 = undefined;
|
||||
const value3 = binding(binding2[8]);
|
||||
const getAdMetadataSealed = value3.getAdMetadataSealed;
|
||||
const binding3 = env2_1;
|
||||
let sourceQuestContent = binding3.sourceQuestContent;
|
||||
const value5 = Reflect.apply(getAdMetadataSealed, value3, [sourceQuestContent, a0]);
|
||||
const shouldExtendSession2 = binding3.shouldExtendSession(a0);
|
||||
binding3.trackViewedPlacement(a0);
|
||||
let entity = binding3.entity;
|
||||
const adCreativeType = entity.adCreativeType;
|
||||
const AdCreativeType = binding(binding2[14]).AdCreativeType;
|
||||
const QUEST = AdCreativeType.QUEST;
|
||||
if (adCreativeType === QUEST) {
|
||||
property = env2_1.entity.adContentIds[a1];
|
||||
binding = env4_7;
|
||||
quest = binding.getQuest(property);
|
||||
value14 = null;
|
||||
if (!(value14 == quest || env4_0(env4_2[8]).isQuestExpired(quest))) {
|
||||
binding = env4_0;
|
||||
binding6 = env4_2;
|
||||
value17 = binding(binding6[15]);
|
||||
value17.markAdContentSeen(binding(binding6[14]).AdCreativeType.QUEST, [property]);
|
||||
}
|
||||
binding = env4_0;
|
||||
questLogger2 = binding(env4_2[16]).getQuestLogger();
|
||||
info = questLogger2.info;
|
||||
questName = value14 == quest ? value2 : quest.config.messages.questName;
|
||||
r20 = value14 == questName ? property : questName;
|
||||
binding = env2_1;
|
||||
minViewTimeSeconds = binding.minViewTimeSeconds;
|
||||
binding7 = env4_0;
|
||||
binding8 = env4_2;
|
||||
value20 = binding7(binding8[10]);
|
||||
value22 = '' + r20 + ' Quest viewed for at least ' + minViewTimeSeconds + 's at ' + value20.getQuestContentName(binding.questContent);
|
||||
id = binding.id;
|
||||
Reflect.apply(info, questLogger2, [value22, {impressionId: id}]);
|
||||
value23 = binding7(binding8[17]);
|
||||
trackQuestEvent = value23.trackQuestEvent;
|
||||
object4 = {};
|
||||
copyDataProperties(object4, env0_0, minViewTimeSeconds);
|
||||
object4['shouldExtendSession'] = shouldExtendSession2;
|
||||
object4['questId'] = property;
|
||||
object4['event'] = env4_11.QUEST_CONTENT_VIEWED;
|
||||
object6 = {};
|
||||
copyDataProperties(object6, env0_1, minViewTimeSeconds);
|
||||
copyDataProperties(object6, binding.commonProperties(), minViewTimeSeconds);
|
||||
r11 = value14 != value5 ? value5 : value14;
|
||||
object6['metadata_sealed'] = r11;
|
||||
binding = env4_0;
|
||||
currentQuestHomeSearchSession = binding(env4_2[18]).getCurrentQuestHomeSearchSession();
|
||||
uuid = value14 == currentQuestHomeSearchSession ? value2 : currentQuestHomeSearchSession.uuid;
|
||||
r11 = value14 != uuid ? uuid : value14;
|
||||
object6['search_session_id'] = r11;
|
||||
binding = env4_0;
|
||||
value = binding(env4_2[8]);
|
||||
getAdTrafficMetadataSealed = value.getAdTrafficMetadataSealed;
|
||||
sourceQuestContent = env2_1.sourceQuestContent;
|
||||
id = value14 == quest ? value2 : quest.id;
|
||||
value = Reflect.apply(getAdTrafficMetadataSealed, value, [sourceQuestContent, id]);
|
||||
object6['traffic_metadata_sealed'] = value14 != value ? value : value14;
|
||||
object4['properties'] = object6;
|
||||
Reflect.apply(trackQuestEvent, value23, [object4]);
|
||||
} else {
|
||||
binding = env2_1;
|
||||
entity = binding.entity;
|
||||
property = entity.adContentIds[a1];
|
||||
binding4 = env4_0;
|
||||
binding5 = env4_2;
|
||||
questLogger = binding4(binding5[16]).getQuestLogger();
|
||||
info = questLogger.info;
|
||||
minViewTimeSeconds = binding.minViewTimeSeconds;
|
||||
value8 = binding4(binding5[10]);
|
||||
Reflect.apply(info, questLogger,
|
||||
['' + property + ' ad content viewed for at least ' + minViewTimeSeconds + 's at ' + value8.getQuestContentName(binding.questContent),
|
||||
|
||||
{impressionId: binding.id}]);
|
||||
value11 = binding4(binding5[17]);
|
||||
trackAdContentEvent = value11.trackAdContentEvent;
|
||||
object4 = {};
|
||||
copyDataProperties(object4, env0_0, minViewTimeSeconds);
|
||||
object4['shouldExtendSession'] = shouldExtendSession2;
|
||||
object4['adContentId'] = property;
|
||||
entity = binding.entity;
|
||||
object4['adCreativeType'] = entity.adCreativeType;
|
||||
object4['event'] = env4_11.QUEST_CONTENT_VIEWED;
|
||||
object5 = {};
|
||||
copyDataProperties(object5, env0_1, minViewTimeSeconds);
|
||||
copyDataProperties(object5, binding.commonProperties(), minViewTimeSeconds);
|
||||
object4['properties'] = object5;
|
||||
Reflect.apply(trackAdContentEvent, value11, [object4]);
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
|
||||
function _fun74231(a0, a1) { // fn#74231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:3226, offset: 0x01d85f54, size: 668 bytes, params: 3, frame: 28
|
||||
var r13;
|
||||
var r14;
|
||||
var r12;
|
||||
var property;
|
||||
var questLogger;
|
||||
var info;
|
||||
var value6;
|
||||
var binding;
|
||||
var value8;
|
||||
var object4;
|
||||
var trackAdContentEvent;
|
||||
var object5;
|
||||
var quest;
|
||||
var questLogger2;
|
||||
var value12;
|
||||
var value14;
|
||||
var trackQuestEvent;
|
||||
var object6;
|
||||
let value = environment.__proto__;
|
||||
let entity = env1_0.entity;
|
||||
const adCreativeType = entity.adCreativeType;
|
||||
const value3 = undefined;
|
||||
const AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType;
|
||||
const QUEST = AdCreativeType.QUEST;
|
||||
if (adCreativeType === QUEST) {
|
||||
property = env1_0.entity.adContentIds[a1];
|
||||
quest = QuestStore.getQuest(property);
|
||||
questLogger2 = (require(7099) /* metro dependency 7099: getQuestLogger */).getQuestLogger();
|
||||
info = questLogger2.info;
|
||||
r14 = (quest == null ? value3 : quest.config.messages.questName) ?? property;
|
||||
value12 = '';
|
||||
r12 = env0_0 ? 'terminal ' : value12;
|
||||
binding = env0_1;
|
||||
value14 = value12 + r14 + ' Quest impression ' + r12 + 'heartbeat: ' + binding + 'ms since last heartbeat';
|
||||
binding = env1_0;
|
||||
Reflect.apply(info, questLogger2, [value14, {impressionId: binding.id}]);
|
||||
value = require(7110) /* metro dependency 7110: AnalyticsActions */;
|
||||
trackQuestEvent = value.trackQuestEvent;
|
||||
object4 = {};
|
||||
copyDataProperties(object4, env0_2, r12);
|
||||
object4['questId'] = property;
|
||||
object4['event'] = AnalyticEvents.QUEST_CONTENT_VIEW_TIME;
|
||||
object6 = {};
|
||||
copyDataProperties(object6, env0_3, r12);
|
||||
copyDataProperties(object6, binding.commonProperties(), r12);
|
||||
object4['properties'] = object6;
|
||||
Reflect.apply(trackQuestEvent, value, [object4]);
|
||||
} else {
|
||||
entity = env1_0.entity;
|
||||
property = entity.adContentIds[a1];
|
||||
questLogger = (require(7099) /* metro dependency 7099: getQuestLogger */).getQuestLogger();
|
||||
info = questLogger.info;
|
||||
value6 = '';
|
||||
r13 = env0_0 ? 'terminal ' : value6;
|
||||
binding = env0_1;
|
||||
value8 = value6 + property + ' ad content impression ' + r13 + 'heartbeat: ' + binding + 'ms since last heartbeat';
|
||||
binding = env1_0;
|
||||
Reflect.apply(info, questLogger, [value8, {impressionId: binding.id}]);
|
||||
value = require(7110) /* metro dependency 7110: AnalyticsActions */;
|
||||
trackAdContentEvent = value.trackAdContentEvent;
|
||||
object4 = {};
|
||||
copyDataProperties(object4, env0_2, r13);
|
||||
object4['adContentId'] = property;
|
||||
entity = binding.entity;
|
||||
object4['adCreativeType'] = entity.adCreativeType;
|
||||
object4['event'] = AnalyticEvents.QUEST_CONTENT_VIEW_TIME;
|
||||
object5 = {};
|
||||
copyDataProperties(object5, env0_3, r13);
|
||||
copyDataProperties(object5, binding.commonProperties(), r13);
|
||||
object4['properties'] = object5;
|
||||
Reflect.apply(trackAdContentEvent, value, [object4]);
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
|
||||
function _fun74235() { // fn#74235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:4815, offset: 0x01d86445, size: 19 bytes, params: 1, frame: 9
|
||||
return env1_0.beat();
|
||||
}
|
||||
|
||||
function _fun74236(a0, a1) { // fn#74236, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:5153, offset: 0x01d86458, size: 974 bytes, params: 3, frame: 32
|
||||
var questName;
|
||||
var r21;
|
||||
var id;
|
||||
var property;
|
||||
var questLogger;
|
||||
var info;
|
||||
var moduleValue3;
|
||||
var getQuestContentName;
|
||||
var object5;
|
||||
var moduleValue4;
|
||||
var trackAdContentEvent;
|
||||
var object6;
|
||||
var quest;
|
||||
var questLogger2;
|
||||
var value11;
|
||||
var moduleValue6;
|
||||
var value13;
|
||||
var moduleValue7;
|
||||
var trackQuestEvent;
|
||||
var object7;
|
||||
var getAdTrafficMetadataSealed;
|
||||
var captureAdUserAction;
|
||||
var object8;
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
const value2 = undefined;
|
||||
const questDataUtilsModule = require(7091) /* metro dependency 7091: QuestDataUtils */;
|
||||
const getAdMetadataSealed = questDataUtilsModule.getAdMetadataSealed;
|
||||
let binding = env1_0;
|
||||
let sourceQuestContent = binding.sourceQuestContent;
|
||||
const value4 = Reflect.apply(getAdMetadataSealed, questDataUtilsModule, [sourceQuestContent, a0]);
|
||||
const migrateQuestContentLoadedToCaptureAdUserAction = binding.migrateQuestContentLoadedToCaptureAdUserAction;
|
||||
let entity = env1_0.entity;
|
||||
const adCreativeType = entity.adCreativeType;
|
||||
const AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType;
|
||||
const QUEST = AdCreativeType.QUEST;
|
||||
if (migrateQuestContentLoadedToCaptureAdUserAction) {
|
||||
object5 = {};
|
||||
entity = binding.entity;
|
||||
object5.adCreativeType = entity.adCreativeType;
|
||||
entity = binding.entity;
|
||||
object5.adCreativeId = entity.adContentIds[a1];
|
||||
value = require(9517) /* metro dependency 9517: captureAdUserAction */;
|
||||
captureAdUserAction = value.captureAdUserAction;
|
||||
object8 = {};
|
||||
object8.type = (require(9518) /* metro dependency 9518: captureAdUserActionTypes */).AdUserActionType.END_CONTENT_LOAD;
|
||||
object8.surfaceId = binding.questContent;
|
||||
object8.sourceQuestContent = binding.sourceQuestContent;
|
||||
object8.impressionId = binding.id;
|
||||
object8.triggeredByStatusChange = binding.triggeredByStatusChange;
|
||||
object8.trackGuildAndChannelMetadata = binding.trackGuildAndChannelMetadata;
|
||||
object8.questContentPosition = binding.questContentPosition;
|
||||
object8.questContentRowIndex = binding.questContentRowIndex;
|
||||
copyDataProperties(object8, object5, undefined);
|
||||
Reflect.apply(captureAdUserAction, value, [object8]);
|
||||
} else if (adCreativeType === QUEST) {
|
||||
property = env1_0.entity.adContentIds[a1];
|
||||
quest = QuestStore.getQuest(property);
|
||||
questLogger2 = (require(7099) /* metro dependency 7099: getQuestLogger */).getQuestLogger();
|
||||
info = questLogger2.info;
|
||||
value11 = null;
|
||||
questName = value11 == quest ? value2 : quest.config.messages.questName;
|
||||
r21 = value11 == questName ? property : questName;
|
||||
moduleValue6 = require(7120) /* metro dependency 7120: AnalyticsTypes */;
|
||||
getQuestContentName = moduleValue6.getQuestContentName;
|
||||
binding = env1_0;
|
||||
value13 = '' + r21 + ' Quest became visible at ' + Reflect.apply(getQuestContentName, moduleValue6,
|
||||
[binding.questContent]);
|
||||
id = binding.id;
|
||||
Reflect.apply(info, questLogger2, [value13, {impressionId: id}]);
|
||||
moduleValue7 = require(7110) /* metro dependency 7110: AnalyticsActions */;
|
||||
trackQuestEvent = moduleValue7.trackQuestEvent;
|
||||
object5 = {};
|
||||
copyDataProperties(object5, env0_0, undefined);
|
||||
object5['questId'] = property;
|
||||
object5['event'] = AnalyticEvents.QUEST_CONTENT_LOADED;
|
||||
object7 = {};
|
||||
copyDataProperties(object7, env0_1, undefined);
|
||||
object7['metadata_sealed'] = value11 != value4 ? value4 : value11;
|
||||
binding = env1_0;
|
||||
copyDataProperties(object7, binding.commonProperties(), undefined);
|
||||
value = questDataUtilsModule;
|
||||
getAdTrafficMetadataSealed = value.getAdTrafficMetadataSealed;
|
||||
sourceQuestContent = binding.sourceQuestContent;
|
||||
id = value11 == quest ? value2 : quest.id;
|
||||
value = Reflect.apply(getAdTrafficMetadataSealed, value, [sourceQuestContent, id]);
|
||||
object7['traffic_metadata_sealed'] = value11 != value ? value : value11;
|
||||
object5['properties'] = object7;
|
||||
Reflect.apply(trackQuestEvent, moduleValue7, [object5]);
|
||||
} else {
|
||||
binding = env1_0;
|
||||
entity = binding.entity;
|
||||
property = entity.adContentIds[a1];
|
||||
questLogger = (require(7099) /* metro dependency 7099: getQuestLogger */).getQuestLogger();
|
||||
info = questLogger.info;
|
||||
moduleValue3 = require(7120) /* metro dependency 7120: AnalyticsTypes */;
|
||||
Reflect.apply(info, questLogger,
|
||||
['' + property + ' ad content became visible at ' + moduleValue3.getQuestContentName(binding.questContent),
|
||||
{impressionId: binding.id}]);
|
||||
moduleValue4 = require(7110) /* metro dependency 7110: AnalyticsActions */;
|
||||
trackAdContentEvent = moduleValue4.trackAdContentEvent;
|
||||
object5 = {};
|
||||
copyDataProperties(object5, env0_0, undefined);
|
||||
object5['adContentId'] = property;
|
||||
entity = binding.entity;
|
||||
object5['adCreativeType'] = entity.adCreativeType;
|
||||
object5['event'] = AnalyticEvents.QUEST_CONTENT_LOADED;
|
||||
object6 = {};
|
||||
copyDataProperties(object6, env0_1, undefined);
|
||||
copyDataProperties(object6, binding.commonProperties(), undefined);
|
||||
object5['properties'] = object6;
|
||||
Reflect.apply(trackAdContentEvent, moduleValue4, [object5]);
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* Metro module 9515; source: modules/quests/lib/analytics/ContentImpressionTrackerConstants.tsx; dependencies: [2] */
|
||||
function _fun74245(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9701:6, offset: 0x01d86bb6, size: 115 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/lib/analytics/ContentImpressionTrackerConstants.tsx');
|
||||
exports.MAX_BRAND_SAFETY_CONTEXT_ARRAY_LEN = 100;
|
||||
exports.HEARTBEAT_SECONDS = 60;
|
||||
exports.MIN_QUEST_VIEW_TIME_SECONDS = 1;
|
||||
exports.MIN_QUEST_CONTENT_VISIBILITY_PERCENTAGE = 0.5;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
/* Metro module 9513; source: modules/quests/lib/analytics/ContentImpressionTrackerHooks.tsx; dependencies: [31, 7093, 7121, 566, 7120, 6266, 9514, 2] */
|
||||
function _fun74210(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74210, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9699:6, offset: 0x01d85012, size: 180 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = useQuestImpression;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const questStore = importDefault(7093) /* metro dependency 7093: QuestStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/lib/analytics/ContentImpressionTrackerHooks.tsx');
|
||||
exports.useAdContentImpressionTrackerProps = useAdContentImpressionTrackerProps;
|
||||
exports.useQuestStatusChanged = useQuestStatusChanged;
|
||||
exports.useQuestImpression = closure;
|
||||
exports.useQuestImpressionId = useQuestImpressionId;
|
||||
}
|
||||
|
||||
function useQuestImpression() { // fn#74211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9699:116, offset: 0x01d850c6, size: 62 bytes, params: 1, frame: 13
|
||||
const binding = env0_3;
|
||||
const useContext = binding.useContext;
|
||||
const value = undefined;
|
||||
const QuestImpressionContext = (require(9514) /* metro dependency 9514: ContentImpressionTracker */).QuestImpressionContext;
|
||||
const value2 = Reflect.apply(useContext, binding, [QuestImpressionContext]);
|
||||
return value2 == null ? value : value2.current;
|
||||
}
|
||||
|
||||
function useAdContentImpressionTrackerProps(a0) { // fn#74212, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9699:362, offset: 0x01d85104, size: 169 bytes, params: 2, frame: 17
|
||||
const env0_0 = a0;
|
||||
const value = undefined;
|
||||
return env0_3.useMemo(_fun74216, [useAdContentIds('questOrQuests' in a0 ? a0.questOrQuests : value,
|
||||
'adContentId' in a0 ? a0.adContentId : value), a0.questContent,
|
||||
'questOrQuests' in a0 ? (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType.QUEST : a0.adCreativeType]);
|
||||
}
|
||||
|
||||
function useQuestStatusChanged({adContentIds, adCreativeType}) { // fn#74217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9699:1007, offset: 0x01d852f9, size: 154 bytes, params: 2, frame: 20
|
||||
const value3 = env0_3.useMemo(_fun74219,
|
||||
[(require(566) /* metro dependency 566: flux */).useStateFromStores([QuestStore], _fun74218, [adContentIds,
|
||||
adCreativeType])]);
|
||||
return value3 !== (importDefault(6266) /* metro dependency 6266: usePrevious */)(value3);
|
||||
}
|
||||
|
||||
function useQuestImpressionId() { // fn#74220, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9699:1344, offset: 0x01d8542c, size: 34 bytes, params: 1, frame: 10
|
||||
const value = undefined;
|
||||
const value2 = useQuestImpression();
|
||||
return value2 == null ? value : value2.getId();
|
||||
}
|
||||
|
||||
function useAdContentIds(a0, a1) { // fn#74213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9699:415, owner: useAdContentImpressionTrackerProps.useAdContentIds, offset: 0x01d851ad, size: 55 bytes, params: 3, frame: 15
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
return env1_3.useMemo(_fun74214, [a0, a1]);
|
||||
}
|
||||
|
||||
function _fun74216() { // fn#74216, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9699:709, offset: 0x01d85254, size: 165 bytes, params: 1, frame: 16
|
||||
let object = {};
|
||||
object.adContentIds = env0_1;
|
||||
let questContent = env0_0.questContent;
|
||||
object.questContent = questContent;
|
||||
const adContentIds = object.adContentIds;
|
||||
questContent = object.questContent;
|
||||
object = [];
|
||||
arraySpread(object, adContentIds, 0, questContent);
|
||||
const value4 = '' + object.sort().join('_') + '_' + questContent;
|
||||
const AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType;
|
||||
AdCreativeType.QUEST;
|
||||
return {adContentIds: env0_1, adCreativeType: env0_2, key: value4};
|
||||
}
|
||||
|
||||
function _fun74218() { // fn#74218, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9699:1115, offset: 0x01d85393, size: 95 bytes, params: 1, frame: 14
|
||||
const adCreativeTypeBinding = adCreativeType;
|
||||
const AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType;
|
||||
const QUEST = AdCreativeType.QUEST;
|
||||
return adCreativeTypeBinding !== QUEST || adContentIds.length !== 1 ? null : QuestStore.getQuest(adContentIds[0]);
|
||||
}
|
||||
|
||||
function _fun74219() { // fn#74219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9699:1209, offset: 0x01d853f2, size: 58 bytes, params: 1, frame: 13
|
||||
const value2 = null;
|
||||
return value2 == env0_2 ? value2 : (require(7120) /* metro dependency 7120: AnalyticsTypes */).getQuestStatus(env0_2);
|
||||
}
|
||||
|
||||
function _fun74214() { // fn#74214, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9699:463, offset: 0x01d851e4, size: 112 bytes, params: 1, frame: 14
|
||||
var r0;
|
||||
var isArray2;
|
||||
var binding;
|
||||
if (require != null) {
|
||||
r0 = [require];
|
||||
} else if (env0_0 != null) {
|
||||
isArray2 = global.Array.isArray(env0_0);
|
||||
binding = env0_0;
|
||||
r0 = isArray2 ? binding.map(function(a0) {
|
||||
return a0.id;
|
||||
}) : [binding.id];
|
||||
} else {
|
||||
r0 = [];
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
/* Metro module 7127; source: modules/quests/lib/analytics/QuestHomeSearchSession.tsx; dependencies: [491, 4882, 2] */
|
||||
function _fun56979(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7305:6, offset: 0x013d7b01, size: 126 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/lib/analytics/QuestHomeSearchSession.tsx');
|
||||
exports.getOrCreateQuestHomeSearchSession = getOrCreateQuestHomeSearchSession;
|
||||
exports.clearQuestHomeSearchSession = function() {
|
||||
env0_2 = null;
|
||||
};
|
||||
exports.getCurrentQuestHomeSearchSession = getCurrentQuestHomeSearchSession;
|
||||
}
|
||||
|
||||
function getOrCreateQuestHomeSearchSession() { // fn#56980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7305:228, offset: 0x013d7b7f, size: 154 bytes, params: 1, frame: 18
|
||||
var object;
|
||||
var object3;
|
||||
const Date = global.Date;
|
||||
const value = Date.now();
|
||||
if (env0_2 == null) {
|
||||
object3 = {};
|
||||
object3.uuid = (require(491) /* metro dependency 491 */).v4();
|
||||
object3.createdAtTimestamp = value;
|
||||
object3.lastUsedTimestamp = value;
|
||||
object3.version = (require(4882) /* metro dependency 4882: SessionUtils */).CLIENT_SESSION_STORAGE_VERSION;
|
||||
object = {searchSession: object3, isNew: true};
|
||||
} else {
|
||||
env0_2.lastUsedTimestamp = value;
|
||||
object = {searchSession: env0_2, isNew: false};
|
||||
}
|
||||
return object;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
/* Metro module 7099; source: modules/quests/lib/getQuestLogger.tsx; dependencies: [691, 482, 3, 2] */
|
||||
function _fun56747(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7277:6, offset: 0x013d0218, size: 134 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const developerOptionsStore = importDefault(691) /* metro dependency 691: DeveloperOptionsStore */;
|
||||
const env0_3 = (require(482) /* metro dependency 482: Constants */).NOOP;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/lib/getQuestLogger.tsx');
|
||||
exports.getQuestLogger = getQuestLogger;
|
||||
}
|
||||
|
||||
function getQuestLogger() { // fn#56748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7277:209, offset: 0x013d029e, size: 321 bytes, params: 1, frame: 19
|
||||
const value = a0;
|
||||
const value2 = undefined;
|
||||
const {quest, location} = value !== value2 ? value : {};
|
||||
const isLoggingQuestEvents = DeveloperOptionsStore.isLoggingQuestEvents;
|
||||
const questName = quest == null ? value2 : quest.config.messages.questName;
|
||||
const value3 = '';
|
||||
const value8 = new (importDefault(3) /* metro dependency 3: Logger */)('QuestLogger' + (location != null ? '-' + location : value3) + (questName != null ? '-' + questName + ')' : value3));
|
||||
return {log: isLoggingQuestEvents ? value8.log : NOOP, warn: isLoggingQuestEvents ? value8.warn : NOOP,
|
||||
error: isLoggingQuestEvents ? value8.error : NOOP, info: isLoggingQuestEvents ? value8.info : NOOP,
|
||||
verbose: isLoggingQuestEvents ? value8.verbose : NOOP, trace: isLoggingQuestEvents ? value8.trace : NOOP};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user