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

No files matched your search

File diff suppressed because it is too large. Load diff
@@ -1,4 +1,10 @@
/* Metro module 9504; source: modules/quests/lib/FractionalPremiumUtils.tsx; dependencies: [3802, 1244, 7098, 3826, 672, 2] */
import Durations from '../../../utils/Durations.tsx'; /* Metro dependency 672 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as DateUtilsModule from '../../../utils/DateUtils.tsx'; /* Metro dependency 3826 */
import * as QuestRewardTypesModule from '../../../external/discord_common/js/shared/shared-constants/QuestRewardTypes.tsx'; /* Metro dependency 7098 */
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;
@@ -6,48 +12,55 @@ function _fun74176(global, require, importDefault, importAll, module, exports, d
const closure = function(a0) {
return a0.rewardsConfig.rewards.filter(_fun74178);
};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/lib/FractionalPremiumUtils.tsx');
(FileImportTrackerModule).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 _fun74178({type}) { // fn#74178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9690:166, offset: 0x01d83504, size: 51 bytes, params: 2, frame: 12
const QuestRewardTypes = (QuestRewardTypesModule).QuestRewardTypes;
const FRACTIONAL_PREMIUM = QuestRewardTypes.FRACTIONAL_PREMIUM;
return type === 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 = (IndexNativeModule).intl;
const t = (IndexNativeModule).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 object = {};
const t = (IndexNativeModule).t;
object.days = t.fYmirx;
object.hours = t['C3RO+g'];
object.minutes = t.r77oHc;
const diffAsUnits = DateUtilsModule.diffAsUnits;
const Millis = (Durations).Millis;
const HOUR = Millis.HOUR;
const value = Reflect.apply(diffAsUnits, DateUtilsModule, [0, fractionalPremiumUnitsHoursFromSkuIds * HOUR]);
const intl = (IndexNativeModule).intl;
const formatToPlainString = intl.formatToPlainString;
const property = t['4SqnVD'];
const object2 = {};
object2.time = DateUtilsModule.unitsAsStrings(value, object);
return Reflect.apply(formatToPlainString, intl, [property, object2]);
}
}
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]);
}
global.__d(_fun74176, 9504, [3802, 1244, 7098, 3826, 672,
2]) /* metro module 9504, dependencies: [3802, 1244, 7098, 3826, 672, 2] */;
@@ -1,9 +1,17 @@
/* Metro module 9479; source: modules/quests/lib/QuestsEligibility.tsx; dependencies: [1581, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as MetaQuestUtilsAndroidModule from '../../device/MetaQuestUtils.android.tsx'; /* Metro dependency 1581 */
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');
(FileImportTrackerModule).fileFinishedImporting('modules/quests/lib/QuestsEligibility.tsx');
exports.getIsEligibleForQuests = getIsEligibleForQuests;
function getIsEligibleForQuests() { // fn#73710, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9665:191, offset: 0x00fc3e69, size: 39 bytes, params: 1, frame: 11
return !MetaQuestUtilsAndroidModule.isMetaQuest();
}
}
global.__d(_fun73709, 9479, [1581, 2]) /* metro module 9479, dependencies: [1581, 2] */;
@@ -1,27 +1,36 @@
/* 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] */
import Module00005 from '../../../../by-id/module-00005.js'; /* Metro dependency 5 */
import AnalyticsUtils from '../../../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import DeveloperOptionsStore from '../../../../stores/DeveloperOptionsStore.tsx'; /* Metro dependency 691 */
import QuestStore from '../../QuestStore.tsx'; /* Metro dependency 7093 */
import DevToolsSettingsStore from '../../../devtools/DevToolsSettingsStore.tsx'; /* Metro dependency 7111 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as QuestTypesModule from '../../QuestTypes.tsx'; /* Metro dependency 6531 */
import * as QuestDataUtilsModule from '../../utils/QuestDataUtils.tsx'; /* Metro dependency 7091 */
import * as SessionAdGeneratorModule from '../../../analytics_sessions/SessionAdGenerator.tsx'; /* Metro dependency 7113 */
import * as AnalyticsTypesModule from './AnalyticsTypes.tsx'; /* Metro dependency 7120 */
import * as AdCreativeTypeModule from '../../../../external/discord_common/js/shared/shared-constants/AdCreativeType.tsx'; /* Metro dependency 7121 */
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 trackQuestEvent2 = trackQuestEvent;
const trackAdContentEvent2 = 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 AnalyticEvents = (ConstantsModule).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;
(FileImportTrackerModule).fileFinishedImporting('modules/quests/lib/analytics/AnalyticsActions.tsx');
exports.trackQuestEvent = trackQuestEvent2;
exports.trackAppStoreOverlayEvent = trackAppStoreOverlayEvent;
exports.trackAdContentAppStoreOverlayEvent = trackAdContentAppStoreOverlayEvent;
exports.trackAdContentEvent = closure2;
exports.trackAdContentEvent = trackAdContentEvent2;
exports.getCommonClickEventProperties = closure3;
exports.trackQuestContentClicked = function() {
return _trackQuestContentClicked.apply(this, arguments);
@@ -50,455 +59,445 @@ function _fun56794(global, require, importDefault, importAll, module, exports, d
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;
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 {
object4 = {};
copyDataProperties(object4, object5, analyticsTypesModule);
object4['time_spent_ms'] = a4;
r4 = object4;
value = undefined;
activeSessionUnsafe = (require(4875) /* metro dependency 4875: SessionHeartbeatScheduler */).getActiveSessionUnsafe();
value3 = null;
uuid = value3 == activeSessionUnsafe ? value : activeSessionUnsafe.uuid;
r0 = value3 != uuid ? uuid : value3;
}
} 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;
return r0;
}
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;
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 getOrRefreshAdSession = SessionAdGeneratorModule.getOrRefreshAdSession;
const uuid = Reflect.apply(getOrRefreshAdSession, SessionAdGeneratorModule, [a3]).uuid;
const adDecisionData = (QuestDataUtilsModule).getAdDecisionData(a0, a1);
const object = {client_ad_session_id: uuid};
const assignBillingSessionIdBinding = assignBillingSessionId;
object.billing_session_id = assignBillingSessionIdBinding(uuid, QuestDataUtilsModule.isBillableQuestContent(a1));
object.ad_content_id = a0;
copyDataProperties(object, adDecisionData, undefined);
object['creative_type'] = adDecisionData.creative_type ?? value;
return object;
}
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;
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 object = {};
let id = a0.id;
object.quest_id = id;
object.quest_type = (require(7114) /* metro dependency 7114: QuestUtils */).getQuestType(a0.config);
object.game_id = a0.config.application.id;
object.game_name = a0.config.application.name;
object.application_ids = (require(7116) /* metro dependency 7116: QuestTaskUtils */).getAllApplicationIds(a0) ?? [];
object.quest_status = (require(7120) /* metro dependency 7120: AnalyticsTypes */).getQuestStatus(a0);
const getCommonPropertiesBinding = getCommonProperties;
id = a0.id;
const AdCreativeType = (AdCreativeTypeModule).AdCreativeType;
const QUEST = AdCreativeType.QUEST;
copyDataProperties(object, getCommonPropertiesBinding(id, a1, QUEST, a2), QUEST);
return object;
}
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;
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 object = {};
copyDataProperties(object, getCommonProperties(adContentId, sourceQuestContent, adCreativeType,
shouldExtendSession), adCreativeType);
const adMetadataSealed = (QuestDataUtilsModule).getAdMetadataSealed(sourceQuestContent,
adContentId);
object['metadata_sealed'] = value != adMetadataSealed ? adMetadataSealed : value;
const adTrafficMetadataSealed = (QuestDataUtilsModule).getAdTrafficMetadataSealed(sourceQuestContent,
undefined, adContentId);
object['traffic_metadata_sealed'] = value != adTrafficMetadataSealed ? adTrafficMetadataSealed : value;
object['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;
}
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);
object['quest_status'] = r2;
return object;
}
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 object;
shouldExtendSession = !(shouldExtendSession === undefined) && shouldExtendSession;
const value2 = QuestStore.quests.get(questId);
if (value2 != null) {
trackEventBinding = trackEvent;
object = {};
copyDataProperties(object, getCommonQuestProperties(value2, sourceQuestContent, shouldExtendSession),
undefined);
copyDataProperties(object, properties, undefined);
trackEventBinding(event, object, 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 object = {};
copyDataProperties(object, getCommonAdContentProperties({adContentId: adContentId, adCreativeType: adCreativeType,
sourceQuestContent: sourceQuestContent, shouldExtendSession: shouldExtendSession,
relatedQuestId: relatedQuestId}), undefined);
copyDataProperties(object, properties, undefined);
trackEventBinding(event, object, 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 Module00005(_fun56805).apply(this, arguments);
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 object = {};
binding = env2_0;
const binding3 = env2_2;
const value8 = binding(binding3[10]);
const getContentProperties = value8.getContentProperties;
copyDataProperties(object, Reflect.apply(getContentProperties, value8, [questContent, questContentPosition,
questContentRowIndex]), undefined);
copyDataProperties(object, env2_1(binding3[15])(), undefined);
object['cta_name'] = questContentCTA;
object['impression_id'] = impressionId;
if (null != undefined) {
value10 = env2_0(env2_2[16]);
advertisingId = value10.isIOS() ? undefined.advertisingId : null;
} else {
advertisingId = null;
}
object['apple_advertising_id'] = advertisingId;
if (null != undefined) {
value11 = env2_0(env2_2[16]);
advertisingId = value11.isAndroid() ? undefined.advertisingId : null;
} else {
advertisingId = null;
}
object['android_advertising_id'] = advertisingId;
if (clickId != null) {
r5 = clickId;
} else {
value = env2_0(env2_2[17]);
value = value.v4();
r5 = value;
}
object['click_id'] = r5;
return object;
}
}
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 Module00005(_fun56808).apply(this, arguments);
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 object = {questId: questId};
const QUEST_CONTENT_CLICKED = env2_7.QUEST_CONTENT_CLICKED;
object.event = QUEST_CONTENT_CLICKED;
const object2 = {};
await env2_16({questContent: questContent, questContentPosition: questContentPosition,
questContentRowIndex: questContentRowIndex, questContentCTA: questContentCTA, impressionId: impressionId,
clickId: clickId});
if (false) {
return undefined;
}
copyDataProperties(object2, undefined, undefined);
object2['metadata_sealed'] = env2_0(env2_2[7]).getAdMetadataSealed(sourceQuestContent) ?? null;
object2['traffic_metadata_sealed'] = adTrafficMetadataSealed ?? null;
const currentQuestHomeSearchSession = env2_0(env2_2[18]).getCurrentQuestHomeSearchSession();
object2['search_session_id'] = (currentQuestHomeSearchSession == null ? value : currentQuestHomeSearchSession.uuid) ?? null;
object.properties = object2;
object.trackGuildAndChannelMetadata = trackGuildAndChannelMetadata;
object.shouldExtendSession = env2_0(env2_2[7]).isBillableQuestContent(questContent);
object.sourceQuestContent = sourceQuestContent;
binding(object);
return value;
}
}
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 Module00005(_fun56811).apply(this, arguments);
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 object = {adContentId: adContentId, relatedQuestId: relatedQuestId, adCreativeType: adCreativeType};
var QUEST_CONTENT_CLICKED = env2_7.QUEST_CONTENT_CLICKED;
object.event = QUEST_CONTENT_CLICKED;
await env2_16({questContent: questContent, questContentPosition: questContentPosition,
questContentRowIndex: questContentRowIndex, questContentCTA: questContentCTA, impressionId: impressionId});
if (false) {
return undefined;
}
object.properties = undefined;
object.trackGuildAndChannelMetadata = trackGuildAndChannelMetadata;
object.shouldExtendSession = env2_0(env2_2[7]).isBillableQuestContent(questContent);
object.sourceQuestContent = sourceQuestContent;
binding(object);
}
}
}
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 object;
const object2 = {};
object2.content_name = AnalyticsTypesModule.getQuestContentName(a1.content);
object2.cta_name = a1.ctaContent;
object2.impression_id = a1.impressionId;
object2.source_content_name = AnalyticsTypesModule.getQuestContentName(a1.sourceQuestContent);
object2.app_id = a2;
object2.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 object3 = {};
object3.questId = id;
object3.event = a3;
if (r5) {
object = {};
copyDataProperties(object, object2, AnalyticsTypesModule);
object['time_spent_ms'] = a4;
r4 = object;
} else {
r4 = object2;
}
object3.properties = r4;
object3.sourceQuestContent = a1.sourceQuestContent;
trackQuestEventBinding(object3);
}
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 object;
const object2 = {};
object2.content_name = AnalyticsTypesModule.getQuestContentName(a1.content);
object2.cta_name = a1.ctaContent;
object2.impression_id = a1.impressionId;
object2.source_content_name = AnalyticsTypesModule.getQuestContentName(a1.sourceQuestContent);
object2.app_id = a2;
object2.content_position = a1.position;
const trackAdContentEventBinding = trackAdContentEvent;
const object3 = {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 = object2;
} else {
object = {};
copyDataProperties(object, object2, AnalyticsTypesModule);
object['time_spent_ms'] = a4;
r4 = object;
}
} else if (a3 !== AnalyticEvents.QUEST_APP_STORE_OVERLAY_RETURNED) {
r4 = object2;
} else if (a4 === undefined) {
r4 = object2;
} else {
object = {};
copyDataProperties(object, object2, AnalyticsTypesModule);
object['time_spent_ms'] = a4;
r4 = object;
}
object3.properties = r4;
object3.sourceQuestContent = a1.sourceQuestContent;
trackAdContentEventBinding(object3);
}
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 getOrRefreshAdSession = SessionAdGeneratorModule.getOrRefreshAdSession;
const uuid = Reflect.apply(getOrRefreshAdSession, SessionAdGeneratorModule, []).uuid;
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const BOUNTY_CAROUSEL_SCROLL = AnalyticEvents.BOUNTY_CAROUSEL_SCROLL;
const object = {client_ad_session_id: uuid};
const assignBillingSessionIdBinding = assignBillingSessionId;
object.billing_session_id = assignBillingSessionIdBinding(uuid,
QuestDataUtilsModule.isBillableQuestContent(questContent));
object.scrolling_type = scrollingType;
object.scrolling_direction = scrollingDirection;
object.carousel_position = carouselPosition;
object.content_name = (require(7120) /* metro dependency 7120: AnalyticsTypes */).getQuestContentName(questContent);
Reflect.apply(track, defaultImport, [BOUNTY_CAROUSEL_SCROLL, object]);
}
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 getOrRefreshAdSession = SessionAdGeneratorModule.getOrRefreshAdSession;
const uuid = Reflect.apply(getOrRefreshAdSession, SessionAdGeneratorModule, []).uuid;
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const BOUNTY_CAROUSEL_EMPTY_STATE_VIEWED = AnalyticEvents.BOUNTY_CAROUSEL_EMPTY_STATE_VIEWED;
const object = {client_ad_session_id: uuid};
const assignBillingSessionIdBinding = assignBillingSessionId;
const isBillableQuestContent = QuestDataUtilsModule.isBillableQuestContent;
const QuestContent = (QuestTypesModule).QuestContent;
const QUEST_HOME_MOBILE_CAROUSEL = QuestContent.QUEST_HOME_MOBILE_CAROUSEL;
object.billing_session_id = assignBillingSessionIdBinding(uuid, Reflect.apply(isBillableQuestContent, QuestDataUtilsModule,
[QUEST_HOME_MOBILE_CAROUSEL]));
object.reason = a0;
Reflect.apply(track, defaultImport, [BOUNTY_CAROUSEL_EMPTY_STATE_VIEWED, object]);
}
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 getOrRefreshAdSession = SessionAdGeneratorModule.getOrRefreshAdSession;
const uuid = Reflect.apply(getOrRefreshAdSession, SessionAdGeneratorModule, []).uuid;
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const BOUNTY_VERTICAL_SCROLL = AnalyticEvents.BOUNTY_VERTICAL_SCROLL;
const object = {client_ad_session_id: uuid};
object.billing_session_id = assignBillingSessionId(uuid, false);
object.scrolling_type = scrollingType;
object.scrolling_direction = scrollingDirection;
object.vertical_scrolling_position = verticalScrollingPosition;
object.scroll_session_id = scrollSessionId;
object.time_watched_pre_scroll_ms = timeWatchedPreScrollMs;
Reflect.apply(track, defaultImport, [BOUNTY_VERTICAL_SCROLL, object]);
}
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 getOrRefreshAdSession = SessionAdGeneratorModule.getOrRefreshAdSession;
const uuid = Reflect.apply(getOrRefreshAdSession, SessionAdGeneratorModule, []).uuid;
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const QUEST_HOME_CAROUSEL_SCROLL = AnalyticEvents.QUEST_HOME_CAROUSEL_SCROLL;
const object = {scrolling_type: scrollingType, client_ad_session_id: uuid};
const assignBillingSessionIdBinding = assignBillingSessionId;
object.billing_session_id = assignBillingSessionIdBinding(uuid,
QuestDataUtilsModule.isBillableQuestContent(questContent));
object.scrolling_direction = scrollingDirection;
object.scroll_window_start_index = scrollWindowStartIndex;
object.scroll_window_end_index = scrollWindowEndIndex;
object.scroll_window_size = scrollWindowSize;
object.content_name = (require(7120) /* metro dependency 7120: AnalyticsTypes */).getQuestContentName(questContent);
object.content_id = questContent;
object.carousel_size = carouselSize;
Reflect.apply(track, defaultImport, [QUEST_HOME_CAROUSEL_SCROLL, object]);
}
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 getOrRefreshAdSession = SessionAdGeneratorModule.getOrRefreshAdSession;
const uuid = Reflect.apply(getOrRefreshAdSession, SessionAdGeneratorModule, []).uuid;
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const QUEST_HOME_SEARCH_CLOSED = AnalyticEvents.QUEST_HOME_SEARCH_CLOSED;
const object = {client_ad_session_id: uuid};
object.billing_session_id = assignBillingSessionId(uuid, false);
object.search_session_id = searchSessionId;
object.search_session_duration_ms = searchSessionDurationMs;
Reflect.apply(track, defaultImport, [QUEST_HOME_SEARCH_CLOSED, object]);
}
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 getOrRefreshAdSession = SessionAdGeneratorModule.getOrRefreshAdSession;
const uuid = Reflect.apply(getOrRefreshAdSession, SessionAdGeneratorModule, []).uuid;
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const QUEST_HOME_SEARCH_QUERY_SUBMITTED = AnalyticEvents.QUEST_HOME_SEARCH_QUERY_SUBMITTED;
const object = {client_ad_session_id: uuid};
object.billing_session_id = assignBillingSessionId(uuid, false);
object.search_session_id = searchSessionId;
object.search_query = searchQuery;
object.search_query_length = searchQueryLength;
object.results_count = resultsCount;
object.has_results = hasResults;
Reflect.apply(track, defaultImport, [QUEST_HOME_SEARCH_QUERY_SUBMITTED, object]);
}
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 = (AnalyticsTypesModule).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});
}
}
global.__d(_fun56794, 7110, [5, 7111, 691, 7093, 661, 4875, 7113, 7091, 7114, 7116, 7120, 7121, 4863, 683, 7122,
7071, 477, 491, 7127, 6531,
2]) /* metro module 7110, dependencies: [5, 7111, 691, 7093, 661, 4875, 7113, 7091, 7114, 7116, 7120, 7121, 4863, 683, 7122, 7071, 477, 491, 7127, 6531, 2] */;
@@ -1,295 +1,298 @@
/* 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] */
import AnalyticsUtils from '../../../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import GetDeviceMetadataNative from '../../../device/getDeviceMetadata.native.tsx'; /* Metro dependency 7071 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as QuestTypesModule from '../../QuestTypes.tsx'; /* Metro dependency 6531 */
import * as QuestDataUtilsModule from '../../utils/QuestDataUtils.tsx'; /* Metro dependency 7091 */
import * as AnalyticsActionsModule from './AnalyticsActions.tsx'; /* Metro dependency 7110 */
import * as AnalyticsTypesModule from './AnalyticsTypes.tsx'; /* Metro dependency 7120 */
import * as AdDataUtilsAndroidModule from '../../../ads/utils/AdDataUtils.android.tsx'; /* Metro dependency 7122 */
import * as QuestHomeSearchSessionModule from './QuestHomeSearchSession.tsx'; /* Metro dependency 7127 */
import * as ContentImpressionTrackerHooksModule from './ContentImpressionTrackerHooks.tsx'; /* Metro dependency 9513 */
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 useTrackQuestEventWithImpression2 = useTrackQuestEventWithImpression;
const useTrackAdContentEventWithImpression2 = 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;
(FileImportTrackerModule).fileFinishedImporting('modules/quests/lib/analytics/AnalyticsHooks.tsx');
exports.useTrackQuestEventWithImpression = useTrackQuestEventWithImpression2;
exports.useTrackQuestContentClickedWithImpression = useTrackQuestContentClickedWithImpression;
exports.useTrackAdContentEventWithImpression = closure2;
exports.useTrackAdContentEventWithImpression = useTrackAdContentEventWithImpression2;
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 ReactModule.useCallback(_fun77881,
[(ContentImpressionTrackerHooksModule).useQuestImpression()]);
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 trackQuestEvent = AnalyticsActionsModule.trackQuestEvent;
const object = {};
copyDataProperties(object, a0, undefined);
const object2 = {};
copyDataProperties(object2, a0.properties, undefined);
object2['impression_id'] = env0_0 == null ? value : env0_0.getId();
object['properties'] = object2;
Reflect.apply(trackQuestEvent, AnalyticsActionsModule, [object]);
return value;
}
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 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 ReactModule.useCallback(_fun77883,
[(ContentImpressionTrackerHooksModule).useQuestImpression()]);
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 trackAdContentEvent = AnalyticsActionsModule.trackAdContentEvent;
const object = {};
copyDataProperties(object, a0, undefined);
const object2 = {};
copyDataProperties(object2, a0.properties, undefined);
object2['impression_id'] = env0_0 == null ? value : env0_0.getId();
object['properties'] = object2;
Reflect.apply(trackAdContentEvent, AnalyticsActionsModule, [object]);
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 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 ReactModule.useCallback(_fun77885, [useTrackQuestEventWithImpression()]);
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 = (QuestDataUtilsModule).getAdMetadataSealed(sourceQuestContent);
const env0_8 = (QuestDataUtilsModule).getAdTrafficMetadataSealed(sourceQuestContent,
questId);
const getAdUser = (AdDataUtilsAndroidModule).getAdUser;
const getQuestContentName = AnalyticsTypesModule.getQuestContentName;
value = Reflect.apply(getAdUser, value, [Reflect.apply(getQuestContentName, AnalyticsTypesModule, [questContent])]);
value.then(_fun77886);
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 object = {};
object.questId = questId;
const QUEST_CONTENT_CLICKED = AnalyticEvents.QUEST_CONTENT_CLICKED;
object.event = QUEST_CONTENT_CLICKED;
const object2 = {};
const value3 = undefined;
const getContentProperties = AnalyticsTypesModule.getContentProperties;
copyDataProperties(object2, Reflect.apply(getContentProperties, AnalyticsTypesModule, [questContent,
questContentPosition, questContentRowIndex]), undefined);
copyDataProperties(object2, (GetDeviceMetadataNative)(), undefined);
object2['cta_name'] = questContentCTA;
object2['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;
}
object2['apple_advertising_id'] = advertisingId;
if (value5 != a0) {
moduleValue4 = require(477) /* metro dependency 477: PlatformUtils */;
advertisingId = moduleValue4.isAndroid() ? a0.advertisingId : value5;
} else {
advertisingId = value5;
}
object2['android_advertising_id'] = advertisingId;
object2['metadata_sealed'] = value5 != env0_7 ? env0_7 : value5;
object2['traffic_metadata_sealed'] = value5 != env0_8 ? env0_8 : value5;
const currentQuestHomeSearchSession = (QuestHomeSearchSessionModule).getCurrentQuestHomeSearchSession();
const uuid = value5 == currentQuestHomeSearchSession ? value3 : currentQuestHomeSearchSession.uuid;
object2['search_session_id'] = value5 != uuid ? uuid : value5;
object.properties = object2;
object.trackGuildAndChannelMetadata = trackGuildAndChannelMetadata;
object.shouldExtendSession = QuestDataUtilsModule.isBillableQuestContent(questContent);
object.sourceQuestContent = sourceQuestContent;
binding(object);
return value3;
}
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 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 ReactModule.useCallback(_fun77888, [useTrackAdContentEventWithImpression()]);
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 = (AdDataUtilsAndroidModule).getAdUser;
const getQuestContentName = AnalyticsTypesModule.getQuestContentName;
value = Reflect.apply(getAdUser, value, [Reflect.apply(getQuestContentName, AnalyticsTypesModule, [questContent])]);
value.then(_fun77889);
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 object = {};
object.adContentId = adContentId;
object.relatedQuestId = relatedQuestId;
object.adCreativeType = adCreativeType;
const QUEST_CONTENT_CLICKED = AnalyticEvents.QUEST_CONTENT_CLICKED;
object.event = QUEST_CONTENT_CLICKED;
const object2 = {};
const value3 = undefined;
const getContentProperties = AnalyticsTypesModule.getContentProperties;
copyDataProperties(object2, Reflect.apply(getContentProperties, AnalyticsTypesModule, [questContent,
questContentPosition, questContentRowIndex]), undefined);
copyDataProperties(object2, (GetDeviceMetadataNative)(), undefined);
object2['cta_name'] = questContentCTA;
object2['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;
}
object2['apple_advertising_id'] = advertisingId;
if (value5 != a0) {
moduleValue4 = require(477) /* metro dependency 477: PlatformUtils */;
advertisingId = moduleValue4.isAndroid() ? a0.advertisingId : value5;
} else {
advertisingId = value5;
}
object2['android_advertising_id'] = advertisingId;
const currentQuestHomeSearchSession = (QuestHomeSearchSessionModule).getCurrentQuestHomeSearchSession();
const uuid = value5 == currentQuestHomeSearchSession ? value3 : currentQuestHomeSearchSession.uuid;
object2['search_session_id'] = value5 != uuid ? uuid : value5;
object.properties = object2;
object.trackGuildAndChannelMetadata = trackGuildAndChannelMetadata;
object.shouldExtendSession = QuestDataUtilsModule.isBillableQuestContent(questContent);
object.sourceQuestContent = sourceQuestContent;
binding(object);
return value3;
}
}
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;
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;
ReactModule.useEffect(_fun77891, [a0, a1]);
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__;
(AnalyticsActionsModule).trackQuestEmbedFallbackViewed(require, env0_0);
}
}
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;
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;
ReactModule.useEffect(_fun77893, [a0]);
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);
}
}
}
object4['apple_advertising_id'] = advertisingId;
if (value5 != a0) {
moduleValue4 = require(477) /* metro dependency 477: PlatformUtils */;
advertisingId = moduleValue4.isAndroid() ? a0.advertisingId : value5;
} else {
advertisingId = value5;
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 = (QuestTypesModule).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 _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 object;
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;
object = {};
object.adContentId = questHomeHero.id;
object.adCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType.QUEST_HOME_HERO;
object.event = a0;
object.properties = env0_3;
object.sourceQuestContent = env0_2;
Reflect.apply(trackAdContentEvent, moduleValue, [object]);
} 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 QUEST_HOVER = AnalyticEvents.QUEST_HOVER;
(0, ConstantsModule.AnalyticEvents)(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 QUEST_HOVER_OFF = AnalyticEvents.QUEST_HOVER_OFF;
(0, ConstantsModule.AnalyticEvents)(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 object;
var r7;
var id;
let value = environment.__proto__;
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const QUEST_CONTENT_CLICKED = AnalyticEvents.QUEST_CONTENT_CLICKED;
const object4 = {is_targeted: false};
value = environment;
copyDataProperties(object4, env0_3, value);
if (questHomeHero != null) {
id = questHomeHero.id;
object = {ad_content_id: id};
r7 = id;
} else {
object = {};
r7 = value;
}
copyDataProperties(object4, object, r7);
Reflect.apply(track, defaultImport, [QUEST_CONTENT_CLICKED, object4]);
}
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};
}
}
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;
}
global.__d(_fun77879, 9949, [31, 661, 9513, 7110, 7091, 7122, 7120, 7071, 491, 477, 7127, 6531, 7121, 683,
2]) /* metro module 9949, dependencies: [31, 661, 9513, 7110, 7091, 7122, 7120, 7071, 491, 477, 7127, 6531, 7121, 683, 2] */;
@@ -1,15 +1,18 @@
/* Metro module 7120; source: modules/quests/lib/analytics/AnalyticsTypes.tsx; dependencies: [6531, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as QuestTypesModule from '../../QuestTypes.tsx'; /* Metro dependency 6531 */
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;
const getQuestContentName2 = 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 QuestContent = (QuestTypesModule).QuestContent;
const env0_2 = Reflect.apply(keys, Object, [QuestContent]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/lib/analytics/AnalyticsTypes.tsx');
exports.getQuestContentName = closure;
(FileImportTrackerModule).fileFinishedImporting('modules/quests/lib/analytics/AnalyticsTypes.tsx');
exports.getQuestContentName = getQuestContentName2;
exports.getQuestStatus = function(a0) {
var r0;
var r1;
@@ -89,15 +92,16 @@ function _fun56939(global, require, importDefault, importAll, module, exports, d
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 = (QuestTypesModule).QuestContent;
return QuestContent[a0] === env0_0;
}
}
}
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;
}
global.__d(_fun56939, 7120, [6531, 2]) /* metro module 7120, dependencies: [6531, 2] */;
@@ -1,134 +1,141 @@
/* Metro module 9516; source: modules/quests/lib/analytics/BrandSafetyContext.tsx; dependencies: [9485, 1379, 1867, 3793, 3969, 1878, 9515, 7091, 1423, 4805, 2] */
import ChannelStore from '../../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import GuildStore from '../../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import UserStore from '../../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import RelationshipStore from '../../../../stores/RelationshipStore.tsx'; /* Metro dependency 3793 */
import SelectedGuildStore from '../../../../stores/SelectedGuildStore.tsx'; /* Metro dependency 3969 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as UseChannelNameModule from '../../../channel/useChannelName.tsx'; /* Metro dependency 4805 */
import * as QuestDataUtilsModule from '../../utils/QuestDataUtils.tsx'; /* Metro dependency 7091 */
import * as SidebarVisibilityMethodStoreModule from '../../../guild_sidebar/SidebarVisibilityMethodStore.tsx'; /* Metro dependency 9485 */
import * as ContentImpressionTrackerConstantsModule from './ContentImpressionTrackerConstants.tsx'; /* Metro dependency 9515 */
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');
(FileImportTrackerModule).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;
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 object;
var value9;
var guildBannerURL;
var length;
var object3;
const value2 = undefined;
const isBillableQuestContent2 = (QuestDataUtilsModule).isBillableQuestContent(a0);
const adContext = (QuestDataUtilsModule).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;
object = {};
value9 = visibleGuildIdsMethod();
var env0_0 = GuildStore.getGuilds();
object.guilds = value9.map(_fun74248).filter(function(a0) {
return a0 !== null;
});
object.channels = value6 == r3 ? [] : visibleChannelIdsMethod().map(_fun74250).filter(_fun74251);
if (value6 != guildId) {
object.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) {
object.selected_guild_banner_url = r2;
}
length = object.guilds.length;
if (length > MAX_BRAND_SAFETY_CONTEXT_ARRAY_LEN) {
object.guilds = object.guilds.slice(0, MAX_BRAND_SAFETY_CONTEXT_ARRAY_LEN);
object.truncated = true;
}
length = object.channels.length;
if (length > MAX_BRAND_SAFETY_CONTEXT_ARRAY_LEN) {
object.channels = object.channels.slice(0, MAX_BRAND_SAFETY_CONTEXT_ARRAY_LEN);
object.truncated = true;
}
object3 = {};
object3.brand_safety_context = global.JSON.stringify(object);
return object3;
}
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;
}
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 object = {};
object.id = property.id;
object.name = property.name;
const description = property.description;
const value = null;
if (value !== description) {
object.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) {
object.icon_url = r1;
}
return object;
}
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 object = {};
object.id = channel.id;
object.name = UseChannelNameModule.computeChannelName(channel, UserStore, RelationshipStore);
if (channel.topic.length > 0) {
object.channel_topic = channel.topic;
}
return object;
}
}
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;
function _fun74251(a0) { // fn#74251, offset: 0x00d81d26, size: 11 bytes, params: 2, frame: 2
return a0 !== null;
}
global.__d(_fun74246, 9516, [9485, 1379, 1867, 3793, 3969, 1878, 9515, 7091, 1423, 4805,
2]) /* metro module 9516, dependencies: [9485, 1379, 1867, 3793, 3969, 1878, 9515, 7091, 1423, 4805, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,11 +1,14 @@
/* Metro module 9515; source: modules/quests/lib/analytics/ContentImpressionTrackerConstants.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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');
(FileImportTrackerModule).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;
}
global.__d(_fun74245, 9515, [2]) /* metro module 9515, dependencies: [2] */;
@@ -1,96 +1,103 @@
/* Metro module 9513; source: modules/quests/lib/analytics/ContentImpressionTrackerHooks.tsx; dependencies: [31, 7093, 7121, 566, 7120, 6266, 9514, 2] */
import UsePrevious from '../../../../hooks/usePrevious.tsx'; /* Metro dependency 6266 */
import QuestStore from '../../QuestStore.tsx'; /* Metro dependency 7093 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as FluxModule from '../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as AdCreativeTypeModule from '../../../../external/discord_common/js/shared/shared-constants/AdCreativeType.tsx'; /* Metro dependency 7121 */
import * as ContentImpressionTrackerModule from './ContentImpressionTracker.tsx'; /* Metro dependency 9514 */
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 useQuestImpression2 = 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');
(FileImportTrackerModule).fileFinishedImporting('modules/quests/lib/analytics/ContentImpressionTrackerHooks.tsx');
exports.useAdContentImpressionTrackerProps = useAdContentImpressionTrackerProps;
exports.useQuestStatusChanged = useQuestStatusChanged;
exports.useQuestImpression = closure;
exports.useQuestImpression = useQuestImpression2;
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 = [];
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 useContext = ReactModule.useContext;
const value = undefined;
const QuestImpressionContext = (ContentImpressionTrackerModule).QuestImpressionContext;
const value2 = Reflect.apply(useContext, ReactModule, [QuestImpressionContext]);
return value2 == null ? value : value2.current;
}
return r0;
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 ReactModule.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 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 _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;
}
}
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 = (AdCreativeTypeModule).AdCreativeType;
AdCreativeType.QUEST;
return {adContentIds: env0_1, adCreativeType: env0_2, key: value4};
}
}
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 = ReactModule.useMemo(_fun74219,
[(FluxModule).useStateFromStores([QuestStore], _fun74218, [adContentIds,
adCreativeType])]);
return value3 !== (UsePrevious)(value3);
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 = (AdCreativeTypeModule).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 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();
}
}
global.__d(_fun74210, 9513, [31, 7093, 7121, 566, 7120, 6266, 9514,
2]) /* metro module 9513, dependencies: [31, 7093, 7121, 566, 7120, 6266, 9514, 2] */;
@@ -1,32 +1,39 @@
/* Metro module 7127; source: modules/quests/lib/analytics/QuestHomeSearchSession.tsx; dependencies: [491, 4882, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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');
(FileImportTrackerModule).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};
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 object2;
var object4;
const Date = global.Date;
const value = Date.now();
if (env0_2 == null) {
object4 = {};
object4.uuid = (require(491) /* metro dependency 491 */).v4();
object4.createdAtTimestamp = value;
object4.lastUsedTimestamp = value;
object4.version = (require(4882) /* metro dependency 4882: SessionUtils */).CLIENT_SESSION_STORAGE_VERSION;
object2 = {searchSession: object4, isNew: true};
} else {
env0_2.lastUsedTimestamp = value;
object2 = {searchSession: env0_2, isNew: false};
}
return object2;
}
return object;
function getCurrentQuestHomeSearchSession() { // fn#56982, offset: 0x00c36b39, size: 9 bytes, params: 1, frame: 1
return env0_2;
}
}
global.__d(_fun56979, 7127, [491, 4882, 2]) /* metro module 7127, dependencies: [491, 4882, 2] */;
+19 -16
View File
@@ -1,23 +1,26 @@
/* Metro module 7099; source: modules/quests/lib/getQuestLogger.tsx; dependencies: [691, 482, 3, 2] */
import DeveloperOptionsStore from '../../../stores/DeveloperOptionsStore.tsx'; /* Metro dependency 691 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../external/discord_common/js/shared/Constants.tsx'; /* Metro dependency 482 */
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');
(FileImportTrackerModule).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};
}
}
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};
}
global.__d(_fun56747, 7099, [691, 482, 3, 2]) /* metro module 7099, dependencies: [691, 482, 3, 2] */;