Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,61 @@
|
||||
/* Metro module 12535; source: modules/ads/AdPersonalizationStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
|
||||
function _fun95795(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#95795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12725:6, offset: 0x0214f1b8, size: 278 bytes, params: 8, frame: 19
|
||||
const closure = function() {
|
||||
env0_5 = false;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
let value = _fun95800(Store);
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
|
||||
{AD_PERSONALIZATION_TOGGLES_RESTRICTED: AD_PERSONALIZATION_TOGGLES_RESTRICTED, CONNECTION_OPEN: closure,
|
||||
LOGOUT: closure});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/ads/AdPersonalizationStore.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_95796() { // fn#95796, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12725:148, offset: 0x0214f2ce, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_95796_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun95800(a0) { // fn#95800, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12725:378, offset: 0x0214f330, size: 74 bytes, params: 2, frame: 15
|
||||
const closure = AdPersonalizationStore;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'isTogglesDisabled', value: value_95802}]);
|
||||
}
|
||||
|
||||
function AD_PERSONALIZATION_TOGGLES_RESTRICTED({disabled}) { // fn#95803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12725:820, offset: 0x0214f37a, size: 31 bytes, params: 2, frame: 3
|
||||
const r1 = disabled != null && disabled;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/* Metro module 9533; source: modules/ads/BountyTypes.tsx; dependencies: [9495, 2] */
|
||||
function _fun74362(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74362, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9719:6, offset: 0x01d8b4c0, size: 115 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const closure = function(a0) {
|
||||
var value = undefined;
|
||||
return {url: a0.url, buttonLabel: a0.button_label,
|
||||
android: a0.android != null ? {androidAppId: a0.android.android_app_id} : value,
|
||||
ios: a0.ios != null ? {iosAppId: a0.ios.ios_app_id} : value};
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/ads/BountyTypes.tsx');
|
||||
exports.bountyCtaFromServer = closure;
|
||||
exports.bountyFromServer = bountyFromServer;
|
||||
}
|
||||
|
||||
function bountyFromServer({id, advertiser_name, product_name, product_icon, video_preview, image_preview, video_hls, cta, reward_timer_seconds}) { // fn#74364, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9719:413, offset: 0x01d8b533, size: 231 bytes, params: 2, frame: 18
|
||||
const object2 = {};
|
||||
object2.id = id;
|
||||
object2.advertiserName = advertiser_name;
|
||||
object2.productName = product_name;
|
||||
object2.productIcon = (require(9495) /* metro dependency 9495: AssetUtils */).resolveAdCreativeCdnUrl(product_icon);
|
||||
object2.videoPreview = (require(9495) /* metro dependency 9495: AssetUtils */).resolveAdCreativeCdnUrl(video_preview);
|
||||
object2.imagePreview = (require(9495) /* metro dependency 9495: AssetUtils */).resolveAdCreativeCdnUrl(image_preview);
|
||||
object2.videoHls = (require(9495) /* metro dependency 9495: AssetUtils */).resolveAdCreativeCdnUrl(video_hls);
|
||||
object2.cta = bountyCtaFromServer(cta);
|
||||
object2.rewardTimerSeconds = reward_timer_seconds ?? 15;
|
||||
return object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/* Metro module 9510; source: modules/ads/QuestHomeHeroCta.tsx; dependencies: [2] */
|
||||
function _fun74199(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9696:6, offset: 0x01d84478, size: 87 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/ads/QuestHomeHeroCta.tsx');
|
||||
exports.questHomeHeroCtaFromServer = function(a0) {
|
||||
var value = undefined;
|
||||
return {url: a0.url, buttonLabel: a0.button_label,
|
||||
android: a0.android != null ? {androidAppId: a0.android.android_app_id} : value,
|
||||
ios: a0.ios != null ? {iosAppId: a0.ios.ios_app_id} : value};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
/* Metro module 9509; source: modules/ads/QuestHomeHeroTypes.tsx; dependencies: [9495, 9510, 2] */
|
||||
function _fun74197(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74197, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9695:6, offset: 0x01d8422e, 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/ads/QuestHomeHeroTypes.tsx');
|
||||
exports.questHomeHeroFromServer = questHomeHeroFromServer;
|
||||
}
|
||||
|
||||
function questHomeHeroFromServer({creative_content, starts_at, ends_at}) { // fn#74198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9695:186, offset: 0x01d8428e, size: 490 bytes, params: 2, frame: 22
|
||||
var r4;
|
||||
var object3;
|
||||
const object4 = {};
|
||||
object4.id = creative_content.id;
|
||||
object4.labelTitle = creative_content.label_title;
|
||||
object4.labelSubtitle = creative_content.label_subtitle;
|
||||
object4.heroImage = (require(9495) /* metro dependency 9495: AssetUtils */).resolveAdCreativeCdnUrl(creative_content.hero_image);
|
||||
const assetUtilsModule = require(9495) /* metro dependency 9495: AssetUtils */;
|
||||
object4.heroVideo = assetUtilsModule.resolveAdCreativeCdnUrl(creative_content.hero_video);
|
||||
const moduleValue3 = assetUtilsModule;
|
||||
object4.sponsorImage = moduleValue3.resolveAdCreativeCdnUrl(creative_content.sponsor_image);
|
||||
const questHomeHeroCtaModule = require(9510) /* metro dependency 9510: QuestHomeHeroCta */;
|
||||
object4.cta = questHomeHeroCtaModule.questHomeHeroCtaFromServer(creative_content.cta);
|
||||
object4.questIds = creative_content.quest_ids;
|
||||
let quest_home_entrypoint = creative_content.quest_home_entrypoint;
|
||||
if (quest_home_entrypoint != null) {
|
||||
quest_home_entrypoint = creative_content.quest_home_entrypoint;
|
||||
object3 = {};
|
||||
object3.linearGradient = quest_home_entrypoint.linear_gradient;
|
||||
object3.radialGradient = quest_home_entrypoint.radial_gradient;
|
||||
object3.gradientPreset = quest_home_entrypoint.gradient_preset;
|
||||
object3.image = assetUtilsModule.resolveAdCreativeCdnUrl(quest_home_entrypoint.image);
|
||||
object3.tooltipImage = (require(9495) /* metro dependency 9495: AssetUtils */).resolveAdCreativeCdnUrl(quest_home_entrypoint.tooltip_image);
|
||||
object3.tooltipTitle = quest_home_entrypoint.tooltip_title;
|
||||
object3.tooltipSubtitle = quest_home_entrypoint.tooltip_subtitle;
|
||||
r4 = object3;
|
||||
} else {
|
||||
r4 = undefined;
|
||||
}
|
||||
object4.questHomeEntrypoint = r4;
|
||||
let value = assetUtilsModule;
|
||||
object4.shelfImage = value.resolveAdCreativeCdnUrl(creative_content.shelf_image);
|
||||
value = assetUtilsModule;
|
||||
object4.shelfVideo = value.resolveAdCreativeCdnUrl(creative_content.shelf_video);
|
||||
object4.startsAt = starts_at;
|
||||
object4.endsAt = ends_at;
|
||||
return object4;
|
||||
}
|
||||
|
||||
@@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
/* Metro module 9518; source: modules/ads/analytics/captureAdUserActionTypes.tsx; dependencies: [2] */
|
||||
function _fun74258(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9704:6, offset: 0x01d8776c, size: 104 bytes, params: 8, frame: 16
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/ads/analytics/captureAdUserActionTypes.tsx');
|
||||
exports.AdUserActionType = {END_CONTENT_LOAD: 'end_content_load', CLICK_INTERNAL: 'click_internal'};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/* Metro module 14094; source: modules/ads/hooks/useAdPersonalizationTogglesDisabled.tsx; dependencies: [12535, 566, 2] */
|
||||
function _fun106781(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#106781, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14291:6, offset: 0x022e9f93, size: 114 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const adPersonalizationStore = importDefault(12535) /* metro dependency 12535: AdPersonalizationStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/ads/hooks/useAdPersonalizationTogglesDisabled.tsx');
|
||||
exports.useAdPersonalizationTogglesDisabled = function() {
|
||||
return require(dependencyMap[1]).useStateFromStores([AdPersonalizationStore], _fun106783);
|
||||
};
|
||||
}
|
||||
|
||||
function useAdPersonalizationTogglesDisabled() { // fn#106782, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14291:235, offset: 0x022ea005, size: 59 bytes, params: 1, frame: 13
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([AdPersonalizationStore], function() {
|
||||
return AdPersonalizationStore.isTogglesDisabled();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,469 @@
|
||||
/* Metro module 7125; source: modules/ads/native/AdUserActionCreators.android.tsx; dependencies: [5, 7123, 661, 683, 694, 7126, 2] */
|
||||
function _fun56973(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7303:6, offset: 0x013d76a9, size: 169 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(5) /* metro dependency 5 */;
|
||||
const adUserStore = importDefault(7123) /* metro dependency 7123: AdUserStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_4 = constantsModule.AnalyticEvents;
|
||||
const env0_5 = constantsModule.Platforms;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/ads/native/AdUserActionCreators.android.tsx');
|
||||
exports.fetchAdUser = function() {
|
||||
return _fetchAdUser.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
function _fetchAdUser() { // fn#56974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7303:159, offset: 0x013d7752, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_2(_fun56976).apply(this, arguments);
|
||||
}
|
||||
|
||||
function* _fun56976(a0) { // fn#56976, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7303:206, offset: 0x013d778b, size: 773 bytes, params: 2, frame: 30
|
||||
var googleAdvertisingId;
|
||||
var r9;
|
||||
var adUser;
|
||||
var value3;
|
||||
var advertisingId;
|
||||
var binding;
|
||||
var value4;
|
||||
var track;
|
||||
var AD_IDENTIFIER_FETCHED;
|
||||
var object2;
|
||||
var lastFetchedAt;
|
||||
var performance;
|
||||
var now;
|
||||
var value5;
|
||||
var binding2;
|
||||
var property;
|
||||
var value6;
|
||||
var dispatch;
|
||||
var value7;
|
||||
var getGoogleAdvertisingId;
|
||||
var value8;
|
||||
var value9;
|
||||
var value10;
|
||||
var value11;
|
||||
var value12;
|
||||
var binding3;
|
||||
var value13;
|
||||
var binding4;
|
||||
var AD_USER_FETCH_DURATION;
|
||||
var binding5;
|
||||
var ANDROID;
|
||||
var value14;
|
||||
var isLimitAdTrackingEnabled;
|
||||
var value15;
|
||||
var value16;
|
||||
var value17;
|
||||
var binding6;
|
||||
var value18;
|
||||
var error;
|
||||
var value19;
|
||||
var value20;
|
||||
var Error;
|
||||
var String;
|
||||
var value21;
|
||||
var message;
|
||||
var binding7;
|
||||
var value22;
|
||||
let value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
reduciblePort87: while (true) {
|
||||
exceptionLanding83: while (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
adUser = env2_3.adUser;
|
||||
value3 = null;
|
||||
if (value3 == adUser) {
|
||||
break reducibleJoin4;
|
||||
}
|
||||
adUser = env2_3.adUser;
|
||||
advertisingId = adUser.advertisingId;
|
||||
if (value3 == advertisingId) {
|
||||
break reducibleJoin4;
|
||||
}
|
||||
adUser = env2_3.adUser;
|
||||
binding = env2_0;
|
||||
value4 = binding(env2_1[3]);
|
||||
track = value4.track;
|
||||
AD_IDENTIFIER_FETCHED = env2_4.AD_IDENTIFIER_FETCHED;
|
||||
advertisingId = adUser.advertisingId;
|
||||
lastFetchedAt = env2_3.lastFetchedAt;
|
||||
Reflect.apply(track, value4, [AD_IDENTIFIER_FETCHED, {has_advertising_id: true,
|
||||
android_advertising_id: advertisingId, location: a0, success: true,
|
||||
last_fetched_timestamp: lastFetchedAt}]);
|
||||
break reduciblePort87;
|
||||
}
|
||||
performance = global.performance;
|
||||
now = performance.now;
|
||||
value19 = Reflect.apply(now, performance, []) - value5;
|
||||
binding = env2_0;
|
||||
value20 = binding(env2_1[3]);
|
||||
track = value20.track;
|
||||
AD_USER_FETCH_DURATION = env2_4.AD_USER_FETCH_DURATION;
|
||||
object2 = {};
|
||||
ANDROID = env2_5.ANDROID;
|
||||
object2.platform = ANDROID;
|
||||
object2.success = false;
|
||||
object2.duration_ms = value19;
|
||||
Error = global.Error;
|
||||
if (error instanceof Error) {
|
||||
message = error.message;
|
||||
r9 = message;
|
||||
} else {
|
||||
String = global.String;
|
||||
value21 = String(error);
|
||||
r9 = value21;
|
||||
}
|
||||
object2.error_message = r9;
|
||||
Reflect.apply(track, value20, [AD_USER_FETCH_DURATION, object2]);
|
||||
binding = env2_0;
|
||||
binding7 = env2_1;
|
||||
value22 = binding(binding7[3]);
|
||||
track = value22.track;
|
||||
AD_IDENTIFIER_FETCHED = env2_4.AD_IDENTIFIER_FETCHED;
|
||||
Reflect.apply(track, value22, [AD_IDENTIFIER_FETCHED, {'has_advertising_id': false, 'location': null,
|
||||
'success': false, location: a0}]);
|
||||
value = binding(binding7[4]);
|
||||
dispatch = value.dispatch;
|
||||
Reflect.apply(dispatch, value, [{type: 'FETCH_AD_USER_FAILURE'}]);
|
||||
break reduciblePort87;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
value5 = global.performance.now();
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
property = binding2[4];
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
value6 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
dispatch = value6.dispatch;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
object2.type = 'FETCH_AD_USER_START';
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(dispatch, value6, [object2]);
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
property = binding2[5];
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
value7 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
getGoogleAdvertisingId = value7.getGoogleAdvertisingId;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
value8 = Reflect.apply(getGoogleAdvertisingId, value7, []);
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
yield value8;
|
||||
try {
|
||||
value9 = undefined;
|
||||
value10 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
if (value10) {
|
||||
return value9;
|
||||
}
|
||||
try {
|
||||
performance = global.performance;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
now = performance.now;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
value11 = Reflect.apply(now, performance, []);
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
value12 = value11 - value5;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
binding3 = env2_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
property = binding3[3];
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
value13 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
track = value13.track;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
binding4 = env2_4;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
AD_USER_FETCH_DURATION = binding4.AD_USER_FETCH_DURATION;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
binding5 = env2_5;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
ANDROID = binding5.ANDROID;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
object2.platform = ANDROID;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
object2.success = true;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
object2.duration_ms = value12;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
googleAdvertisingId = value9.googleAdvertisingId;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
value14 = value3 != googleAdvertisingId;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
object2.has_advertising_id = value14;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
isLimitAdTrackingEnabled = value9.isLimitAdTrackingEnabled;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
object2.is_limit_ad_tracking_enabled = isLimitAdTrackingEnabled;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(track, value13, [AD_USER_FETCH_DURATION, object2]);
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
property = binding3[3];
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
value15 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
track = value15.track;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
binding = env2_4;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
AD_IDENTIFIER_FETCHED = binding.AD_IDENTIFIER_FETCHED;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
googleAdvertisingId = value9.googleAdvertisingId;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
value16 = value3 != googleAdvertisingId;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
object2.has_advertising_id = value16;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
googleAdvertisingId = value9.googleAdvertisingId;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
value17 = value3 != googleAdvertisingId;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
reducibleJoin64: while (true) {
|
||||
if (value17) {
|
||||
try {
|
||||
googleAdvertisingId = value9.googleAdvertisingId;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
break reducibleJoin64;
|
||||
}
|
||||
googleAdvertisingId = value3;
|
||||
break reducibleJoin64;
|
||||
}
|
||||
try {
|
||||
object2.android_advertising_id = googleAdvertisingId;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
object2.location = a0;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
object2.success = true;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(track, value15, [AD_IDENTIFIER_FETCHED, object2]);
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
binding6 = env2_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
property = binding6[4];
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
value18 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
dispatch = value18.dispatch;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
object2.type = 'FETCH_AD_USER_SUCCESS';
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
googleAdvertisingId = value9.googleAdvertisingId;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
object2.advertisingId = googleAdvertisingId;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
isLimitAdTrackingEnabled = value9.isLimitAdTrackingEnabled;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
object2.isLimitAdTrackingEnabled = isLimitAdTrackingEnabled;
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(dispatch, value18, [object2]);
|
||||
} catch (error) {
|
||||
break exceptionLanding83;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
/* Metro module 7123; source: modules/ads/native/AdUserStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
|
||||
function _fun56955(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7301:6, offset: 0x013d7334, size: 315 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
let value = _fun56959(Store);
|
||||
value.displayName = 'AdUserStore';
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {POST_CONNECTION_OPEN: function() {
|
||||
}, FETCH_AD_USER_START: function() {
|
||||
env0_6 = true;
|
||||
var Date = global.Date;
|
||||
env0_9 = Date.now();
|
||||
}, FETCH_AD_USER_SUCCESS: function({advertisingId, isLimitAdTrackingEnabled}) {
|
||||
env0_6 = false;
|
||||
env0_8 = null;
|
||||
env0_5 = {advertisingId: advertisingId, isLimitAdTrackingEnabled: isLimitAdTrackingEnabled};
|
||||
env0_7 = false;
|
||||
}, FETCH_AD_USER_FAILURE: function() {
|
||||
env0_6 = false;
|
||||
env0_7 = true;
|
||||
env0_8 = null;
|
||||
}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/ads/native/AdUserStore.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_56956() { // fn#56956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7301:148, offset: 0x013d746f, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_56956_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun56959(a0) { // fn#56959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7301:377, offset: 0x013d74cd, size: 212 bytes, params: 2, frame: 16
|
||||
const closure = AdUserStore;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'adUser', get: get_56961}, {key: 'isFetching', get: get_56962},
|
||||
{key: 'hasFetchFailed', get: get_56963}, {key: 'fetchPromise', get: get_56964}, {key: 'lastFetchedAt',
|
||||
get: get_56965}, {key: 'hasFetchedRecently', get: get_56966}, {key: 'setFetchPromise', value: function(a0) {
|
||||
env1_8 = a0;
|
||||
}}]);
|
||||
}
|
||||
|
||||
function get_56966() { // fn#56966, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7301:893, offset: 0x013d75a1, size: 53 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return env1_9 != null && global.Date.now() - env1_9 < 21600000;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,97 @@
|
||||
/* Metro module 7122; source: modules/ads/utils/AdDataUtils.android.tsx; dependencies: [57, 31, 7123, 7124, 7125, 2] */
|
||||
function _fun56945(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7300:6, offset: 0x013d6fe3, size: 180 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const adUserStore = importDefault(7123) /* metro dependency 7123: AdUserStore */;
|
||||
const env0_5 = (require(7124) /* metro dependency 7124: AdDataUtilsConstants */).DEFAULT_TIMEOUT_MS;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/ads/utils/AdDataUtils.android.tsx');
|
||||
exports.getAdUser = getAdUser;
|
||||
exports.useAdUser = useAdUser;
|
||||
}
|
||||
|
||||
function getAdUser(a0) { // fn#56946, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7300:242, offset: 0x013d7097, size: 130 bytes, params: 2, frame: 13
|
||||
var r0;
|
||||
const adUser = AdUserStore.adUser;
|
||||
if (adUser != null) {
|
||||
r0 = global.Promise.resolve(adUser);
|
||||
} else if (AdUserStore.hasFetchFailed) {
|
||||
r0 = global.Promise.resolve(adUser);
|
||||
} else {
|
||||
if (!AdUserStore.isFetching) {
|
||||
(require(7125) /* metro dependency 7125: AdUserActionCreatorsAndroid */).fetchAdUser(a0);
|
||||
}
|
||||
r0 = new global.Promise(function(a0) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = false;
|
||||
var env0_2 = global.setTimeout(_fun56948, DEFAULT_TIMEOUT_MS);
|
||||
var closure = _fun56949;
|
||||
var env0_3 = closure;
|
||||
var env0_4 = _fun56950;
|
||||
AdUserStore.addChangeListener(closure);
|
||||
});
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function useAdUser(a0) { // fn#56951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7300:656, offset: 0x013d7205, size: 94 bytes, params: 2, frame: 16
|
||||
const env0_0 = a0;
|
||||
const binding = env0_3;
|
||||
const useState = binding.useState;
|
||||
const value = env0_2(Reflect.apply(useState, binding, [AdUserStore.adUser]), 2);
|
||||
const property = value[0];
|
||||
const env0_1 = value[1];
|
||||
binding.useEffect(_fun56952, [a0]);
|
||||
return property;
|
||||
}
|
||||
|
||||
function _fun56947(a0) { // fn#56947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7300:390, offset: 0x013d7119, size: 82 bytes, params: 2, frame: 15
|
||||
const env0_0 = a0;
|
||||
const env0_2 = global.setTimeout(function() {
|
||||
return safeResolve(null);
|
||||
}, DEFAULT_TIMEOUT_MS);
|
||||
AdUserStore.addChangeListener(handleUpdate_56949);
|
||||
}
|
||||
|
||||
function _fun56952() { // fn#56952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7300:748, offset: 0x013d7263, size: 119 bytes, params: 1, frame: 15
|
||||
const closure = handleStoreChange;
|
||||
const adUser = AdUserStore.adUser;
|
||||
const isFetching = AdUserStore.isFetching;
|
||||
const hasFetchFailed = AdUserStore.hasFetchFailed;
|
||||
let r2 = adUser != null || isFetching;
|
||||
r2 = !r2 ? hasFetchFailed : r2;
|
||||
if (!r2) {
|
||||
(require(7125) /* metro dependency 7125: AdUserActionCreatorsAndroid */).fetchAdUser(env0_0);
|
||||
}
|
||||
AdUserStore.addChangeListener(closure);
|
||||
return function() {
|
||||
return AdUserStore.removeChangeListener(handleStoreChange);
|
||||
};
|
||||
}
|
||||
|
||||
function handleUpdate_56949() { // fn#56949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7300:456, offset: 0x013d717d, size: 63 bytes, params: 1, frame: 11
|
||||
if (AdUserStore.adUser != null || AdUserStore.hasFetchFailed) {
|
||||
safeResolve(AdUserStore.adUser);
|
||||
}
|
||||
}
|
||||
|
||||
function safeResolve(a0) { // fn#56950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7300:532, offset: 0x013d71bc, size: 73 bytes, params: 2, frame: 13
|
||||
var value2;
|
||||
if (!env0_1) {
|
||||
global.clearTimeout(env0_2);
|
||||
value2 = environment.__proto__.__proto__;
|
||||
AdUserStore.removeChangeListener(handleUpdate_56949);
|
||||
env0_0(a0);
|
||||
}
|
||||
}
|
||||
|
||||
function handleStoreChange() { // fn#56953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7300:802, offset: 0x013d72da, size: 63 bytes, params: 1, frame: 11
|
||||
var value3;
|
||||
if (AdUserStore.adUser != null || AdUserStore.hasFetchFailed) {
|
||||
value3 = environment.__proto__;
|
||||
env1_1(AdUserStore.adUser);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
/* Metro module 7124; source: modules/ads/utils/AdDataUtilsConstants.tsx; dependencies: [2] */
|
||||
function _fun56972(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7302:6, offset: 0x013d7655, size: 84 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/ads/utils/AdDataUtilsConstants.tsx');
|
||||
exports.DEFAULT_TIMEOUT_MS = 5000;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
/* Metro module 7109; source: modules/ads/utils/AdDecisionUtils.tsx; dependencies: [672, 2] */
|
||||
function _fun56791(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56791, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7287:6, offset: 0x013d1f14, size: 146 bytes, params: 8, frame: 18
|
||||
const closure = resolveResponseTtl;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
const HOUR = Millis.HOUR;
|
||||
const value = 6 * HOUR;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/ads/utils/AdDecisionUtils.tsx');
|
||||
exports.MAX_RESPONSE_TTL_MS = value;
|
||||
exports.resolveResponseTtl = closure;
|
||||
exports.questAdDecisionFromAdDecision = questAdDecisionFromAdDecision;
|
||||
}
|
||||
|
||||
function resolveResponseTtl(a0) { // fn#56792, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7287:120, offset: 0x013d1fa6, size: 51 bytes, params: 2, frame: 3
|
||||
if (a0 == null) {
|
||||
return env0_0;
|
||||
}
|
||||
const value = 1000 * a0;
|
||||
return value < env0_0 && value > 0 ? value : env0_0;
|
||||
}
|
||||
|
||||
function questAdDecisionFromAdDecision(a0, {fetchedAt, requestId, adCreativeId}) { // fn#56793, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7287:370, offset: 0x013d1fd9, size: 286 bytes, params: 3, frame: 17
|
||||
const object2 = {questId: null, adCreativeId: adCreativeId, fetchedAt: fetchedAt};
|
||||
object2.ttlMillis = resolveResponseTtl(a0.response_ttl_seconds);
|
||||
object2.adDecisionData = {ad_id: a0.ad_identifiers?.ad_id, adset_id: a0.ad_identifiers?.adset_id,
|
||||
ad_set_id: a0.ad_identifiers?.ad_set_id, campaign_id: a0.ad_identifiers?.campaign_id,
|
||||
creative_id: a0.ad_identifiers?.creative_id, creative_type: a0.ad_identifiers?.creative_type,
|
||||
decision_id: requestId, is_targeted: a0.ad_identifiers != null};
|
||||
object2.adContext = a0.ad_context;
|
||||
object2.metadataSealed = a0.metadata_sealed;
|
||||
object2.trafficMetadataSealed = a0.traffic_metadata_sealed;
|
||||
return object2;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user