Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,241 @@
|
||||
/* Metro module 9517; source: modules/ads/analytics/captureAdUserAction.tsx; dependencies: [5, 7093, 661, 7121, 7110, 7091, 7120, 683, 491, 7127, 9518, 2] */
|
||||
function _fun74252(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9703:6, offset: 0x01d8705e, size: 167 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const questStore = importDefault(7093) /* metro dependency 7093: QuestStore */;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/ads/analytics/captureAdUserAction.tsx');
|
||||
exports.captureAdUserAction = captureAdUserAction;
|
||||
}
|
||||
|
||||
function _handleClickInternalAction() { // fn#74253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9703:141, offset: 0x01d87105, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun74255).apply(this, arguments);
|
||||
}
|
||||
|
||||
function captureAdUserAction(a0) { // fn#74256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9703:1906, offset: 0x01d874bd, size: 657 bytes, params: 2, frame: 23
|
||||
var questEnrollmentBlockedUntil;
|
||||
var value2;
|
||||
var value3;
|
||||
var moduleValue;
|
||||
var trackAdContentEvent;
|
||||
var object4;
|
||||
var adCreativeId;
|
||||
var sourceQuestContent;
|
||||
var object5;
|
||||
var surfaceId;
|
||||
var getQuestContentName;
|
||||
var moduleValue2;
|
||||
var trackQuestEvent;
|
||||
var object6;
|
||||
var moduleValue3;
|
||||
var getAdMetadataSealed;
|
||||
var value4;
|
||||
var moduleValue4;
|
||||
var getAdTrafficMetadataSealed;
|
||||
var value5;
|
||||
const type = a0.type;
|
||||
var value;
|
||||
const AdUserActionType = (require(9518) /* metro dependency 9518: captureAdUserActionTypes */).AdUserActionType;
|
||||
const END_CONTENT_LOAD = AdUserActionType.END_CONTENT_LOAD;
|
||||
if (END_CONTENT_LOAD === type) {
|
||||
questEnrollmentBlockedUntil = QuestStore.questEnrollmentBlockedUntil;
|
||||
value2 = null;
|
||||
value3 = value2 != questEnrollmentBlockedUntil;
|
||||
if (a0.adCreativeType === (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType.QUEST) {
|
||||
adCreativeId = a0.adCreativeId;
|
||||
moduleValue2 = require(7110) /* metro dependency 7110: AnalyticsActions */;
|
||||
trackQuestEvent = moduleValue2.trackQuestEvent;
|
||||
object4 = {};
|
||||
object4.event = AnalyticEvents.QUEST_CONTENT_LOADED;
|
||||
object4.questId = adCreativeId;
|
||||
object4.trackGuildAndChannelMetadata = a0.trackGuildAndChannelMetadata;
|
||||
sourceQuestContent = a0.sourceQuestContent;
|
||||
object4.sourceQuestContent = sourceQuestContent;
|
||||
object6 = {};
|
||||
object6.triggered_by_status_change = a0.triggeredByStatusChange;
|
||||
moduleValue3 = require(7091) /* metro dependency 7091: QuestDataUtils */;
|
||||
getAdMetadataSealed = moduleValue3.getAdMetadataSealed;
|
||||
sourceQuestContent = a0.sourceQuestContent;
|
||||
value4 = Reflect.apply(getAdMetadataSealed, moduleValue3, [sourceQuestContent, adCreativeId]);
|
||||
object6.metadata_sealed = value2 != value4 ? value4 : value2;
|
||||
moduleValue4 = require(7091) /* metro dependency 7091: QuestDataUtils */;
|
||||
getAdTrafficMetadataSealed = moduleValue4.getAdTrafficMetadataSealed;
|
||||
sourceQuestContent = a0.sourceQuestContent;
|
||||
value5 = Reflect.apply(getAdTrafficMetadataSealed, moduleValue4, [sourceQuestContent, adCreativeId]);
|
||||
object6.traffic_metadata_sealed = value2 != value5 ? value5 : value2;
|
||||
object6.impression_id = a0.impressionId;
|
||||
object6.is_quest_enrollment_blocked = value3;
|
||||
surfaceId = a0.surfaceId;
|
||||
object6.content_id = surfaceId;
|
||||
value = require(7120) /* metro dependency 7120: AnalyticsTypes */;
|
||||
getQuestContentName = value.getQuestContentName;
|
||||
surfaceId = a0.surfaceId;
|
||||
object6.content_name = Reflect.apply(getQuestContentName, value, [surfaceId]);
|
||||
object6.content_position = a0.questContentPosition;
|
||||
object6.row_index = a0.questContentRowIndex;
|
||||
object4.properties = object6;
|
||||
Reflect.apply(trackQuestEvent, moduleValue2, [object4]);
|
||||
} else {
|
||||
moduleValue = require(7110) /* metro dependency 7110: AnalyticsActions */;
|
||||
trackAdContentEvent = moduleValue.trackAdContentEvent;
|
||||
object4 = {};
|
||||
object4.event = AnalyticEvents.QUEST_CONTENT_LOADED;
|
||||
object4.adContentId = a0.adCreativeId;
|
||||
object4.adCreativeType = a0.adCreativeType;
|
||||
object4.trackGuildAndChannelMetadata = a0.trackGuildAndChannelMetadata;
|
||||
object4.sourceQuestContent = a0.sourceQuestContent;
|
||||
object5 = {};
|
||||
object5.triggered_by_status_change = a0.triggeredByStatusChange;
|
||||
object5.impression_id = a0.impressionId;
|
||||
object5.is_quest_enrollment_blocked = value3;
|
||||
surfaceId = a0.surfaceId;
|
||||
object5.content_id = surfaceId;
|
||||
value = require(7120) /* metro dependency 7120: AnalyticsTypes */;
|
||||
getQuestContentName = value.getQuestContentName;
|
||||
surfaceId = a0.surfaceId;
|
||||
object5.content_name = Reflect.apply(getQuestContentName, value, [surfaceId]);
|
||||
object5.content_position = a0.questContentPosition;
|
||||
object5.row_index = a0.questContentRowIndex;
|
||||
object4.properties = object5;
|
||||
Reflect.apply(trackAdContentEvent, moduleValue, [object4]);
|
||||
}
|
||||
} else if (AdUserActionType.CLICK_INTERNAL === type) {
|
||||
(function() {
|
||||
return _handleClickInternalAction.apply(this, arguments);
|
||||
})(a0);
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun74255(a0) { // fn#74255, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9703:216, offset: 0x01d87142, size: 891 bytes, params: 2, frame: 32
|
||||
var r9;
|
||||
var r17;
|
||||
var uuid;
|
||||
var binding;
|
||||
var QUEST_CONTENT_CLICKED;
|
||||
var object4;
|
||||
var value9;
|
||||
var value10;
|
||||
var value11;
|
||||
var getCommonClickEventProperties;
|
||||
var value12;
|
||||
var adCreativeId;
|
||||
var binding3;
|
||||
var value14;
|
||||
var trackQuestEvent;
|
||||
var object5;
|
||||
var adMetadataSealed;
|
||||
var adTrafficMetadataSealed;
|
||||
var currentQuestHomeSearchSession;
|
||||
var binding4;
|
||||
var value21;
|
||||
var trackAdContentEvent;
|
||||
var object6;
|
||||
var currentQuestHomeSearchSession2;
|
||||
if (true) {
|
||||
var adCreativeType = a0.adCreativeType;
|
||||
var questContentCTA = a0.questContentCTA;
|
||||
var surfaceId = a0.surfaceId;
|
||||
var sourceQuestContent = a0.sourceQuestContent;
|
||||
var impressionId = a0.impressionId;
|
||||
var clickId = a0.clickId;
|
||||
var questContentPosition = a0.questContentPosition;
|
||||
var questContentRowIndex = a0.questContentRowIndex;
|
||||
var trackGuildAndChannelMetadata = a0.trackGuildAndChannelMetadata;
|
||||
value = null;
|
||||
if (value != adCreativeType) {
|
||||
value9 = environment.__proto__.__proto__;
|
||||
binding = env2_0;
|
||||
value10 = undefined;
|
||||
value11 = binding(env2_2[4]);
|
||||
getCommonClickEventProperties = value11.getCommonClickEventProperties;
|
||||
object4 = {questContent: surfaceId, questContentPosition: questContentPosition,
|
||||
questContentRowIndex: questContentRowIndex, questContentCTA: questContentCTA,
|
||||
impressionId: impressionId,
|
||||
clickId: clickId};
|
||||
yield Reflect.apply(getCommonClickEventProperties, value11, [object4]);
|
||||
value12 = undefined;
|
||||
if (false) {
|
||||
return value12;
|
||||
}
|
||||
binding = env2_0;
|
||||
if (adCreativeType !== binding(env2_2[3]).AdCreativeType.QUEST) {
|
||||
binding = env2_0;
|
||||
binding4 = env2_2;
|
||||
value21 = binding(binding4[4]);
|
||||
trackAdContentEvent = value21.trackAdContentEvent;
|
||||
object4 = {};
|
||||
object4.adContentId = a0.adCreativeId;
|
||||
object4.relatedQuestId = a0.relatedQuestId;
|
||||
object4.adCreativeType = adCreativeType;
|
||||
object4.event = env2_5.QUEST_CONTENT_CLICKED;
|
||||
object6 = {};
|
||||
copyDataProperties(object6, value12, undefined);
|
||||
currentQuestHomeSearchSession2 = binding(binding4[9]).getCurrentQuestHomeSearchSession();
|
||||
uuid = value == currentQuestHomeSearchSession2 ? value10 : currentQuestHomeSearchSession2.uuid;
|
||||
object6['search_session_id'] = value != uuid ? uuid : value;
|
||||
object4.properties = object6;
|
||||
object4.trackGuildAndChannelMetadata = trackGuildAndChannelMetadata;
|
||||
binding = env2_0;
|
||||
value = binding(env2_2[5]);
|
||||
object4.shouldExtendSession = value.isBillableQuestContent(surfaceId);
|
||||
object4.sourceQuestContent = sourceQuestContent;
|
||||
Reflect.apply(trackAdContentEvent, value21, [object4]);
|
||||
} else {
|
||||
adCreativeId = a0.adCreativeId;
|
||||
binding = env2_0;
|
||||
binding3 = env2_2;
|
||||
value14 = binding(binding3[4]);
|
||||
trackQuestEvent = value14.trackQuestEvent;
|
||||
object4 = {questId: adCreativeId};
|
||||
object4.event = env2_5.QUEST_CONTENT_CLICKED;
|
||||
object5 = {};
|
||||
copyDataProperties(object5, value12, undefined);
|
||||
adMetadataSealed = binding(binding3[5]).getAdMetadataSealed(sourceQuestContent, adCreativeId);
|
||||
r17 = value != adMetadataSealed ? adMetadataSealed : value;
|
||||
object5['metadata_sealed'] = r17;
|
||||
binding = env2_0;
|
||||
adTrafficMetadataSealed = binding(env2_2[5]).getAdTrafficMetadataSealed(sourceQuestContent,
|
||||
adCreativeId);
|
||||
r17 = value != adTrafficMetadataSealed ? adTrafficMetadataSealed : value;
|
||||
object5['traffic_metadata_sealed'] = r17;
|
||||
binding = env2_0;
|
||||
currentQuestHomeSearchSession = binding(env2_2[9]).getCurrentQuestHomeSearchSession();
|
||||
uuid = value == currentQuestHomeSearchSession ? value10 : currentQuestHomeSearchSession.uuid;
|
||||
r17 = value != uuid ? uuid : value;
|
||||
object5['search_session_id'] = r17;
|
||||
object4.properties = object5;
|
||||
object4.trackGuildAndChannelMetadata = trackGuildAndChannelMetadata;
|
||||
binding = env2_0;
|
||||
value = binding(env2_2[5]);
|
||||
object4.shouldExtendSession = value.isBillableQuestContent(surfaceId);
|
||||
object4.sourceQuestContent = sourceQuestContent;
|
||||
Reflect.apply(trackQuestEvent, value14, [object4]);
|
||||
}
|
||||
} else {
|
||||
binding = env2_0;
|
||||
var binding2 = env2_2;
|
||||
var contentProperties = binding(binding2[6]).getContentProperties(surfaceId, questContentPosition,
|
||||
questContentRowIndex);
|
||||
binding = env2_1;
|
||||
var value6 = binding(binding2[7]);
|
||||
var track = value6.track;
|
||||
QUEST_CONTENT_CLICKED = env2_5.QUEST_CONTENT_CLICKED;
|
||||
object4 = {cta_name: questContentCTA};
|
||||
r9 = value != clickId ? clickId : env2_0(env2_2[8]).v4();
|
||||
object4.click_id = r9;
|
||||
var isTargeted = a0.isTargeted;
|
||||
value = value != isTargeted;
|
||||
r9 = value && isTargeted;
|
||||
object4.is_targeted = r9;
|
||||
object4.content_id = contentProperties.content_id;
|
||||
object4.content_name = contentProperties.content_name;
|
||||
object4.content_position = contentProperties.content_position;
|
||||
object4.row_index = contentProperties.row_index;
|
||||
object4.ad_content_id = a0.adContentId;
|
||||
Reflect.apply(track, value6, [QUEST_CONTENT_CLICKED, object4]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user