511 lines
22 KiB
TypeScript
511 lines
22 KiB
TypeScript
/* Metro module 7091; source: modules/quests/utils/QuestDataUtils.tsx; dependencies: [1949, 7092, 7093, 6528, 661, 6531, 1391, 7108, 1216, 2] */
|
|
import SentryUtilsNative from '../../../utils/SentryUtils.native.tsx'; /* Metro dependency 1216 */
|
|
import LocaleStore from '../../user_settings/LocaleStore.tsx'; /* Metro dependency 1949 */
|
|
import BountyStore from '../BountyStore.tsx'; /* Metro dependency 7092 */
|
|
import QuestStore from '../QuestStore.tsx'; /* Metro dependency 7093 */
|
|
import NewAdRequestBehaviorExperiment from '../experiments/NewAdRequestBehaviorExperiment.tsx'; /* Metro dependency 7108 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as QuestConstantsModule from '../QuestConstants.tsx'; /* Metro dependency 6528 */
|
|
import * as QuestTypesModule from '../QuestTypes.tsx'; /* Metro dependency 6531 */
|
|
|
|
function _fun56551(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56551, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7269:6, offset: 0x013cb5c0, size: 484 bytes, params: 8, frame: 23
|
|
const env0_0 = require;
|
|
const _arrayLikeToArray_56554 = function(a0, a1) {
|
|
var r0;
|
|
var r1;
|
|
var r2;
|
|
var value3;
|
|
var length;
|
|
var value5;
|
|
var value = undefined;
|
|
var value2 = value == null;
|
|
reducibleJoin2: while (true) {
|
|
if (value2) {
|
|
r0 = value2;
|
|
break reducibleJoin2;
|
|
}
|
|
value3 = value > a0.length;
|
|
r0 = value3;
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleJoin4: while (true) {
|
|
if (r0) {
|
|
length = a0.length;
|
|
r1 = length;
|
|
break reducibleJoin4;
|
|
}
|
|
r1 = value;
|
|
break reducibleJoin4;
|
|
}
|
|
value = (0, global.Array)(r1);
|
|
var value4 = 0;
|
|
if (value4 < r1) {
|
|
r2 = value4;
|
|
reducibleLoop5: while (true) {
|
|
value[r2] = a0[r2];
|
|
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value5 < r1) {
|
|
r2 = value5;
|
|
continue reducibleLoop5;
|
|
}
|
|
break reducibleLoop5;
|
|
}
|
|
}
|
|
return value;
|
|
};
|
|
const closure = function(a0) {
|
|
return global.Object.keys(DismissibleQuestContentFlags).includes(require(dependencyMap[5]).QuestContent[a0]);
|
|
};
|
|
const closure2 = function(a0) {
|
|
var Date = global.Date;
|
|
var value2 = new Date(a0.expiresAt);
|
|
value2 = value2.valueOf();
|
|
Date = global.Date;
|
|
return value2 <= Date.now();
|
|
};
|
|
const closure3 = function(a0) {
|
|
return isQuestConfigExpired(a0.config);
|
|
};
|
|
const getQuestPlacementFromQuestContent2 = getQuestPlacementFromQuestContent;
|
|
const mapQuestAdDecision = function(a0) {
|
|
return {questId: a0.questId, adCreativeId: a0.adCreativeId, adDecisionData: a0.adDecisionData,
|
|
adContext: a0.adContext, metadataSealed: a0.metadataSealed,
|
|
trafficMetadataSealed: a0.trafficMetadataSealed};
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/quests/utils/QuestDataUtils.tsx');
|
|
exports.THIRTY_DAYS_MS = 2592000000;
|
|
exports.earnedDecisionIsValid = function(a0) {
|
|
var r0;
|
|
var property;
|
|
var value = a0 != null;
|
|
if (value) {
|
|
property = a0.fetchedAt;
|
|
value = property + a0.ttlMillis;
|
|
property = global.Date;
|
|
value = value >= property.now();
|
|
r0 = value;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
};
|
|
exports.findQuestOrReplacement = findQuestOrReplacement;
|
|
exports.isDismissible = closure;
|
|
exports.isDismissed = function(a0, a1) {
|
|
if (isDismissible(a1)) {
|
|
return require(dependencyMap[6]).hasFlag(a0.dismissedQuestContent,
|
|
DismissibleQuestContentFlags[require(dependencyMap[5]).QuestContent[a1]]);
|
|
}
|
|
return false;
|
|
};
|
|
exports.isQuestConfigExpired = closure2;
|
|
exports.isQuestExpired = closure3;
|
|
exports.getIsQuestExpiredButWithinThirtyDayLookback = getIsQuestExpiredButWithinThirtyDayLookback;
|
|
exports.findNextUpcomingExpirationEpochMs = findNextUpcomingExpirationEpochMs;
|
|
exports.hasUnclaimedReward = function(a0) {
|
|
return a0 != null && a0.completedAt != null && a0.claimedAt == null;
|
|
};
|
|
exports.getQuestFormattedDate = getQuestFormattedDate;
|
|
exports.getQuestForPlacement = function(a0, a1, a2) {
|
|
var value = a1.get(a2);
|
|
if (value != null) {
|
|
value = a0.get(value.quest.id);
|
|
return value == null || isQuestExpired(value) ? undefined : value;
|
|
}
|
|
};
|
|
exports.getQuestPlacementFromQuestContent = getQuestPlacementFromQuestContent2;
|
|
exports.isBillableQuestContent = isBillableQuestContent;
|
|
exports.getAdDecisionData = function(a0, a1) {
|
|
var r2;
|
|
var value2 = getQuestPlacementFromQuestContent(a1);
|
|
if (value2 == null) {
|
|
return EMPTY_AD_DECISION_DATA;
|
|
}
|
|
r2 = getQuestDeliveryDataForPlacement(value2, a0) ?? ({});
|
|
var adDecisionData = r2.adDecisionData;
|
|
return adDecisionData == null ? EMPTY_AD_DECISION_DATA : r2.questId === a0 || r2.adCreativeId === a0 || adDecisionData.ad_id === a0 ? adDecisionData : EMPTY_AD_DECISION_DATA;
|
|
};
|
|
exports.getAdMetadataSealed = getAdMetadataSealed;
|
|
exports.getAdTrafficMetadataSealed = getAdTrafficMetadataSealed;
|
|
exports.getAdContext = getAdContext;
|
|
exports.captureQuestsException = captureQuestsException;
|
|
exports.isOnDiscoverQuestHomeRoute = function() {
|
|
return global.window.location.pathname.startsWith(Routes.QUEST_HOME_DEPRECATED);
|
|
};
|
|
function _createForOfIteratorHelperLoose_56552(a0, a1) { // fn#56552, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7269:243, offset: 0x013cb7a4, size: 370 bytes, params: 3, frame: 20
|
|
var r6;
|
|
var r9;
|
|
var r5;
|
|
var value3;
|
|
var regexp;
|
|
const env0_0 = a0;
|
|
const Symbol = global.Symbol;
|
|
let value = typeof Symbol !== 'undefined';
|
|
let r1 = value && a0[global.Symbol.iterator];
|
|
r1 = !r1 ? a0['@@iterator'] : r1;
|
|
if (r1) {
|
|
value = r1.call(a0);
|
|
return value.next.bind(value);
|
|
}
|
|
const Array = global.Array;
|
|
if (Array.isArray(a0)) {
|
|
if (r1) {
|
|
}
|
|
return _fun56553;
|
|
}
|
|
value = undefined;
|
|
if (a0) {
|
|
if (typeof a0 === 'string') {
|
|
value = _arrayLikeToArray_56554(a0, value);
|
|
r5 = value;
|
|
} else {
|
|
value3 = ({}).toString.call(a0).slice(8, -1);
|
|
r6 = value3 === 'Object' && a0.constructor;
|
|
r9 = r6 ? a0.constructor.name : value3;
|
|
if (r9 === 'Map') {
|
|
r6 = global.Array.from(a0);
|
|
} else if (r9 === 'Set') {
|
|
r6 = global.Array.from(a0);
|
|
} else if (r9 === 'Arguments') {
|
|
value = _arrayLikeToArray_56554(a0, value);
|
|
r6 = value;
|
|
} else {
|
|
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
|
if (regexp.test(r9)) {
|
|
value = _arrayLikeToArray_56554(a0, value);
|
|
r6 = value;
|
|
} else {
|
|
r6 = value;
|
|
}
|
|
}
|
|
r5 = r6;
|
|
}
|
|
} else {
|
|
r5 = value;
|
|
}
|
|
if (r5) {
|
|
if (r5) {
|
|
}
|
|
return _fun56553;
|
|
}
|
|
const TypeError = global.TypeError;
|
|
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
|
function _fun56553() { // fn#56553, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7269:814, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
|
|
return env0_1 >= env0_0.length ? {done: true} : {done: false,
|
|
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
|
|
}
|
|
|
|
}
|
|
|
|
function getQuestPlacementFromQuestContent(a0) { // fn#56558, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7269:1398, offset: 0x013cb9ba, size: 356 bytes, params: 2, frame: 15
|
|
const object = {};
|
|
const QuestContent = (QuestTypesModule).QuestContent;
|
|
const QUEST_BAR = QuestContent.QUEST_BAR;
|
|
const QuestPlacement = (QuestTypesModule).QuestPlacement;
|
|
let DESKTOP_ACCOUNT_PANEL_AREA = QuestPlacement.DESKTOP_ACCOUNT_PANEL_AREA;
|
|
object[QUEST_BAR] = DESKTOP_ACCOUNT_PANEL_AREA;
|
|
const QUEST_BAR_V2 = QuestContent.QUEST_BAR_V2;
|
|
DESKTOP_ACCOUNT_PANEL_AREA = QuestPlacement.DESKTOP_ACCOUNT_PANEL_AREA;
|
|
object[QUEST_BAR_V2] = DESKTOP_ACCOUNT_PANEL_AREA;
|
|
const QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
|
|
const MOBILE_HOME_DOCK_AREA = QuestPlacement.MOBILE_HOME_DOCK_AREA;
|
|
object[QUEST_BAR_MOBILE] = MOBILE_HOME_DOCK_AREA;
|
|
const QUEST_HOME_HERO = QuestContent.QUEST_HOME_HERO;
|
|
let QUEST_HOME_BANNER_DESKTOP = QuestPlacement.QUEST_HOME_BANNER_DESKTOP;
|
|
object[QUEST_HOME_HERO] = QUEST_HOME_BANNER_DESKTOP;
|
|
const QUEST_HOME_HERO_SHELF = QuestContent.QUEST_HOME_HERO_SHELF;
|
|
QUEST_HOME_BANNER_DESKTOP = QuestPlacement.QUEST_HOME_BANNER_DESKTOP;
|
|
object[QUEST_HOME_HERO_SHELF] = QUEST_HOME_BANNER_DESKTOP;
|
|
const QUEST_HOME_MOBILE_CAROUSEL = QuestContent.QUEST_HOME_MOBILE_CAROUSEL;
|
|
const QUEST_HOME_MOBILE_CAROUSEL2 = QuestPlacement.QUEST_HOME_MOBILE_CAROUSEL;
|
|
object[QUEST_HOME_MOBILE_CAROUSEL] = QUEST_HOME_MOBILE_CAROUSEL2;
|
|
const VIDEO_MODAL_MOBILE = QuestContent.VIDEO_MODAL_MOBILE;
|
|
const VIDEO_MODAL_MOBILE2 = QuestPlacement.VIDEO_MODAL_MOBILE;
|
|
object[VIDEO_MODAL_MOBILE] = VIDEO_MODAL_MOBILE2;
|
|
return object[a0];
|
|
}
|
|
|
|
function getQuestDeliveryDataForPlacement(a0, a1) { // fn#56560, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7269:2306, offset: 0x013cbb67, size: 394 bytes, params: 3, frame: 20
|
|
var r0;
|
|
var r5;
|
|
var value3;
|
|
var adDecisionByPlacementAndAdCreativeId;
|
|
var quest;
|
|
var id;
|
|
const QuestPlacement = (QuestTypesModule).QuestPlacement;
|
|
const QUEST_HOME_MOBILE_CAROUSEL = QuestPlacement.QUEST_HOME_MOBILE_CAROUSEL;
|
|
if (a0 === QUEST_HOME_MOBILE_CAROUSEL) {
|
|
value3 = null;
|
|
if (value3 == a1) {
|
|
r0 = value3;
|
|
} else {
|
|
adDecisionByPlacementAndAdCreativeId = BountyStore.getAdDecisionByPlacementAndAdCreativeId(a0, a1);
|
|
r0 = value3 != adDecisionByPlacementAndAdCreativeId ? mapQuestAdDecision(adDecisionByPlacementAndAdCreativeId) : value3;
|
|
}
|
|
} else if (a0 !== QuestPlacement.VIDEO_MODAL_MOBILE) {
|
|
r0 = null;
|
|
} else {
|
|
value3 = null;
|
|
if (value3 == a1) {
|
|
r0 = value3;
|
|
} else {
|
|
adDecisionByPlacementAndAdCreativeId = BountyStore.getAdDecisionByPlacementAndAdCreativeId(a0, a1);
|
|
r0 = value3 != adDecisionByPlacementAndAdCreativeId ? mapQuestAdDecision(adDecisionByPlacementAndAdCreativeId) : value3;
|
|
}
|
|
}
|
|
const value6 = null;
|
|
if (value6 != r0) {
|
|
return r0;
|
|
}
|
|
const defaultImport = NewAdRequestBehaviorExperiment;
|
|
const getConfig = defaultImport.getConfig;
|
|
let object = {location: 'getQuestDeliveryDataForPlacement'};
|
|
const enableNewRequestBehavior = Reflect.apply(getConfig, defaultImport, [object]).enableNewRequestBehavior;
|
|
const value7 = QuestStore.questAdDecisionByPlacement.get(a0);
|
|
const QUEST_HOME_BANNER_DESKTOP = QuestPlacement.QUEST_HOME_BANNER_DESKTOP;
|
|
if (a0 === QUEST_HOME_BANNER_DESKTOP) {
|
|
if (value6 != value7) {
|
|
return mapQuestAdDecision(value7);
|
|
}
|
|
}
|
|
if (enableNewRequestBehavior) {
|
|
return value6 == value7 ? value6 : mapQuestAdDecision(value7);
|
|
}
|
|
const value = QuestStore.questToDeliverForPlacement.get(a0);
|
|
if (value6 == value) {
|
|
r5 = value6;
|
|
} else {
|
|
object = {};
|
|
quest = value.quest;
|
|
id = quest.id;
|
|
object.questId = id;
|
|
quest = value.quest;
|
|
id = quest.id;
|
|
object.adCreativeId = id;
|
|
object.adDecisionData = value.adDecisionData;
|
|
object.adContext = value.adContext;
|
|
object.metadataSealed = value.metadataSealed;
|
|
object.trafficMetadataSealed = value.trafficMetadataSealed;
|
|
r5 = object;
|
|
}
|
|
return r5;
|
|
}
|
|
|
|
function findQuestOrReplacement(a0, a1, a2) { // fn#56562, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7269:3402, offset: 0x013cbd24, size: 203 bytes, params: 4, frame: 17
|
|
var r4;
|
|
var Map;
|
|
let value = a1;
|
|
const value2 = a2;
|
|
let Array = global.Array;
|
|
if (Array.isArray(value)) {
|
|
Map = global.Map;
|
|
value = value.map(function(a0) {
|
|
return [a0.id, a0];
|
|
});
|
|
r4 = new Map(value);
|
|
} else {
|
|
r4 = value;
|
|
}
|
|
Array = global.Array;
|
|
const r3 = Array.isArray(value2) ? new global.Map(value2.map(function(a0) {
|
|
return [a0.id, a0];
|
|
})) : value2;
|
|
value = r4.get(a0);
|
|
if (value != null) {
|
|
return value;
|
|
}
|
|
value = r3.get(a0);
|
|
const value5 = undefined;
|
|
const replacementId = value == null ? value5 : value.replacementId;
|
|
return replacementId != null ? r4.get(replacementId) : value5;
|
|
}
|
|
|
|
function getIsQuestExpiredButWithinThirtyDayLookback(a0) { // fn#56566, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7269:3973, offset: 0x013cbe50, size: 132 bytes, params: 2, frame: 13
|
|
var Date;
|
|
var config;
|
|
var expiresAt;
|
|
var value2;
|
|
var date;
|
|
var value4;
|
|
var value;
|
|
if (isQuestExpired(a0)) {
|
|
Date = global.Date;
|
|
value = Date.now();
|
|
value -= 2592000000;
|
|
Date = global.Date;
|
|
config = a0.config;
|
|
expiresAt = config.expiresAt;
|
|
value2 = Object.create(Date.prototype, {constructor: {value: Date}});
|
|
date = new Date();
|
|
value4 = (date instanceof Object ? date : value2).valueOf();
|
|
config = a0.config;
|
|
expiresAt = config.expiresAt;
|
|
return expiresAt != null && !(value4 <= value);
|
|
}
|
|
return false;
|
|
}
|
|
|
|
function findNextUpcomingExpirationEpochMs(a0) { // fn#56567, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7269:4199, offset: 0x013cbed4, size: 157 bytes, params: 2, frame: 20
|
|
var r2;
|
|
var r3;
|
|
var r10;
|
|
var r9;
|
|
var r0;
|
|
var value6;
|
|
var config;
|
|
var expiresAt;
|
|
var prototype;
|
|
var value7;
|
|
var date;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
let Date = global.Date;
|
|
const value = Date.now();
|
|
const value3 = _createForOfIteratorHelperLoose_56552(a0);
|
|
const value4 = value3();
|
|
let done = value4.done;
|
|
const value5 = null;
|
|
if (done) {
|
|
r0 = value5;
|
|
} else {
|
|
r2 = value5;
|
|
r3 = value4;
|
|
while (true) {
|
|
value6 = r3.value;
|
|
Date = global.Date;
|
|
config = value6.config;
|
|
expiresAt = config.expiresAt;
|
|
prototype = Date.prototype;
|
|
value7 = Object.create(prototype, {constructor: {value: Date}});
|
|
date = new Date();
|
|
value8 = date instanceof Object ? date : value7;
|
|
value9 = value8.valueOf();
|
|
if (value9 <= value) {
|
|
r9 = r2;
|
|
} else {
|
|
value10 = value5 == r2;
|
|
if (value10) {
|
|
r10 = value10;
|
|
continue;
|
|
}
|
|
value11 = value9 < r2;
|
|
r10 = value11;
|
|
if (r10) {
|
|
r2 = value9;
|
|
continue;
|
|
}
|
|
continue;
|
|
r9 = r2;
|
|
}
|
|
value12 = value3();
|
|
done = value12.done;
|
|
if (done) {
|
|
r0 = r9;
|
|
break;
|
|
}
|
|
r2 = r9;
|
|
r3 = value12;
|
|
continue;
|
|
}
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function getQuestFormattedDate(a0) { // fn#56569, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7269:4555, offset: 0x013cbf96, size: 97 bytes, params: 2, frame: 14
|
|
var r0;
|
|
var date;
|
|
const value = a1;
|
|
if (a0 == null) {
|
|
r0 = '';
|
|
} else {
|
|
date = new global.Date(a0);
|
|
date = date.toLocaleDateString(LocaleStore.locale, value !== undefined ? value : {dateStyle: 'short'});
|
|
r0 = date;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function isBillableQuestContent(a0) { // fn#56571, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7269:4927, offset: 0x013cc04a, size: 42 bytes, params: 2, frame: 12
|
|
const questPlacementFromQuestContent = getQuestPlacementFromQuestContent(a0);
|
|
return questPlacementFromQuestContent != null && BILLABLE_PLACEMENTS.has(questPlacementFromQuestContent);
|
|
}
|
|
|
|
function getAdMetadataSealed(a0, a1) { // fn#56573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7269:5327, offset: 0x013cc0e1, size: 55 bytes, params: 3, frame: 14
|
|
var questDeliveryDataForPlacement;
|
|
const getQuestPlacementFromQuestContentBinding = getQuestPlacementFromQuestContent;
|
|
const value2 = undefined;
|
|
const questPlacementFromQuestContentBinding = getQuestPlacementFromQuestContentBinding(a0);
|
|
if (questPlacementFromQuestContentBinding != null) {
|
|
questDeliveryDataForPlacement = getQuestDeliveryDataForPlacement(questPlacementFromQuestContentBinding, a1);
|
|
return questDeliveryDataForPlacement == null ? value2 : questDeliveryDataForPlacement.metadataSealed;
|
|
}
|
|
return value2;
|
|
}
|
|
|
|
function getAdTrafficMetadataSealed(a0, a1, a2) { // fn#56574, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7269:5527, offset: 0x013cc118, size: 109 bytes, params: 4, frame: 17
|
|
var quest;
|
|
const getQuestPlacementFromQuestContentBinding = getQuestPlacementFromQuestContent;
|
|
const value2 = undefined;
|
|
const questPlacementFromQuestContentBinding = getQuestPlacementFromQuestContentBinding(a0);
|
|
if (questPlacementFromQuestContentBinding != null) {
|
|
var {trafficMetadataSealed, questId} = getQuestDeliveryDataForPlacement(questPlacementFromQuestContentBinding,
|
|
a2) ?? ({});
|
|
if (trafficMetadataSealed == null) {
|
|
if (a1 != null) {
|
|
quest = QuestStore.getQuest(a1);
|
|
return quest == null ? value2 : quest.trafficMetadataSealed;
|
|
}
|
|
return value2;
|
|
}
|
|
if (a2 != null) {
|
|
return trafficMetadataSealed;
|
|
}
|
|
if (questId === a1) {
|
|
return trafficMetadataSealed;
|
|
}
|
|
}
|
|
if (a1 != null) {
|
|
quest = QuestStore.getQuest(a1);
|
|
return quest == null ? value2 : quest.trafficMetadataSealed;
|
|
}
|
|
return value2;
|
|
}
|
|
|
|
function getAdContext(a0, a1) { // fn#56575, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7269:5858, offset: 0x013cc185, size: 55 bytes, params: 3, frame: 14
|
|
var questDeliveryDataForPlacement;
|
|
const getQuestPlacementFromQuestContentBinding = getQuestPlacementFromQuestContent;
|
|
const value2 = undefined;
|
|
const questPlacementFromQuestContentBinding = getQuestPlacementFromQuestContentBinding(a0);
|
|
if (questPlacementFromQuestContentBinding != null) {
|
|
questDeliveryDataForPlacement = getQuestDeliveryDataForPlacement(questPlacementFromQuestContentBinding, a1);
|
|
return questDeliveryDataForPlacement == null ? value2 : questDeliveryDataForPlacement.adContext;
|
|
}
|
|
return value2;
|
|
}
|
|
|
|
function captureQuestsException(a0, a1) { // fn#56576, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7269:6042, offset: 0x013cc1bc, size: 108 bytes, params: 3, frame: 17
|
|
const value = undefined;
|
|
const defaultImport = SentryUtilsNative;
|
|
const captureException = defaultImport.captureException;
|
|
const object = {};
|
|
copyDataProperties(object, a1, undefined);
|
|
const object2 = {};
|
|
const value2 = a1 == null;
|
|
copyDataProperties(object2, value2 ? value : a1.tags, value2);
|
|
object2['app_context'] = 'quests';
|
|
object['tags'] = object2;
|
|
Reflect.apply(captureException, defaultImport, [a0, object]);
|
|
return value;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun56551, 7091, [1949, 7092, 7093, 6528, 661, 6531, 1391, 7108, 1216,
|
|
2]) /* metro module 7091, dependencies: [1949, 7092, 7093, 6528, 661, 6531, 1391, 7108, 1216, 2] */;
|