1473 lines
72 KiB
TypeScript
1473 lines
72 KiB
TypeScript
/* Metro module 9532; source: modules/quests/BountyActionCreators.tsx; dependencies: [5, 7092, 661, 694, 7121, 9533, 7109, 4132, 4875, 7113, 507, 6531, 7091, 2] */
|
|
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import BountyStore from './BountyStore.tsx'; /* Metro dependency 7092 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
|
|
|
|
function _fun74338(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74338, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9718:6, offset: 0x01d8ab69, size: 250 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const fetchBountiesAndDispatch = function() {
|
|
return _fetchBountiesAndDispatch.apply(this, arguments);
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/quests/BountyActionCreators.tsx');
|
|
exports.fetchQuestHomeBounties = function() {
|
|
return _fetchQuestHomeBounties.apply(this, arguments);
|
|
};
|
|
exports.fetchBountyPreview = function() {
|
|
return _fetchBountyPreview.apply(this, arguments);
|
|
};
|
|
exports.setBountyVideoProgress = setBountyVideoProgress;
|
|
exports.claimBountyReward = function() {
|
|
return _claimBountyReward.apply(this, arguments);
|
|
};
|
|
function _fetchBountiesAndDispatch() { // fn#74340, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9718:227, offset: 0x01d8ac63, size: 50 bytes, params: 1, frame: 14
|
|
return Module00005(_fun74342).apply(this, arguments);
|
|
function* _fun74342(a0, a1) { // fn#74342, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9718:300, offset: 0x01d8aca0, size: 336 bytes, params: 3, frame: 21
|
|
var environment;
|
|
var Date;
|
|
var now;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var Map;
|
|
var prototype;
|
|
var map;
|
|
var value9;
|
|
var decisions;
|
|
var flatMap;
|
|
var closure;
|
|
var value10;
|
|
var binding2;
|
|
var property;
|
|
var value11;
|
|
var error;
|
|
var binding3;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var value15;
|
|
if (true) {
|
|
var env0_0;
|
|
var env0_1;
|
|
var env0_2;
|
|
value = environment.__proto__.__proto__;
|
|
var binding = env2_1;
|
|
binding(env2_2[3]).dispatch({type: 'BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_BEGIN'});
|
|
try {
|
|
Date = global.Date;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding3 = env2_2;
|
|
value = binding(binding3[3]);
|
|
dispatch = value.dispatch;
|
|
value12 = binding(binding3[7]);
|
|
prototype = value12.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: value12}});
|
|
value14 = new value12();
|
|
value15 = value14 instanceof Object ? value14 : value13;
|
|
Reflect.apply(dispatch, value, [{type: 'BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE', placement: a0,
|
|
error: value15}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
now = Date.now;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding3 = env2_2;
|
|
value = binding(binding3[3]);
|
|
dispatch = value.dispatch;
|
|
value12 = binding(binding3[7]);
|
|
prototype = value12.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: value12}});
|
|
value14 = new value12();
|
|
value15 = value14 instanceof Object ? value14 : value13;
|
|
Reflect.apply(dispatch, value, [{type: 'BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE', placement: a0,
|
|
error: value15}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value4 = Reflect.apply(now, Date, []);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding3 = env2_2;
|
|
value = binding(binding3[3]);
|
|
dispatch = value.dispatch;
|
|
value12 = binding(binding3[7]);
|
|
prototype = value12.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: value12}});
|
|
value14 = new value12();
|
|
value15 = value14 instanceof Object ? value14 : value13;
|
|
Reflect.apply(dispatch, value, [{type: 'BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE', placement: a0,
|
|
error: value15}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
env0_0 = value4;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding3 = env2_2;
|
|
value = binding(binding3[3]);
|
|
dispatch = value.dispatch;
|
|
value12 = binding(binding3[7]);
|
|
prototype = value12.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: value12}});
|
|
value14 = new value12();
|
|
value15 = value14 instanceof Object ? value14 : value13;
|
|
Reflect.apply(dispatch, value, [{type: 'BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE', placement: a0,
|
|
error: value15}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value5 = a1();
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding3 = env2_2;
|
|
value = binding(binding3[3]);
|
|
dispatch = value.dispatch;
|
|
value12 = binding(binding3[7]);
|
|
prototype = value12.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: value12}});
|
|
value14 = new value12();
|
|
value15 = value14 instanceof Object ? value14 : value13;
|
|
Reflect.apply(dispatch, value, [{type: 'BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE', placement: a0,
|
|
error: value15}]);
|
|
return undefined;
|
|
}
|
|
yield value5;
|
|
try {
|
|
value6 = undefined;
|
|
value7 = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding3 = env2_2;
|
|
value = binding(binding3[3]);
|
|
dispatch = value.dispatch;
|
|
value12 = binding(binding3[7]);
|
|
prototype = value12.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: value12}});
|
|
value14 = new value12();
|
|
value15 = value14 instanceof Object ? value14 : value13;
|
|
Reflect.apply(dispatch, value, [{type: 'BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE', placement: a0,
|
|
error: value15}]);
|
|
return undefined;
|
|
}
|
|
if (value7) {
|
|
return value6;
|
|
}
|
|
try {
|
|
env0_1 = value6;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding3 = env2_2;
|
|
value = binding(binding3[3]);
|
|
dispatch = value.dispatch;
|
|
value12 = binding(binding3[7]);
|
|
prototype = value12.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: value12}});
|
|
value14 = new value12();
|
|
value15 = value14 instanceof Object ? value14 : value13;
|
|
Reflect.apply(dispatch, value, [{type: 'BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE', placement: a0,
|
|
error: value15}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
Map = global.Map;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding3 = env2_2;
|
|
value = binding(binding3[3]);
|
|
dispatch = value.dispatch;
|
|
value12 = binding(binding3[7]);
|
|
prototype = value12.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: value12}});
|
|
value14 = new value12();
|
|
value15 = value14 instanceof Object ? value14 : value13;
|
|
Reflect.apply(dispatch, value, [{type: 'BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE', placement: a0,
|
|
error: value15}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
prototype = Map.prototype;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding3 = env2_2;
|
|
value = binding(binding3[3]);
|
|
dispatch = value.dispatch;
|
|
value12 = binding(binding3[7]);
|
|
prototype = value12.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: value12}});
|
|
value14 = new value12();
|
|
value15 = value14 instanceof Object ? value14 : value13;
|
|
Reflect.apply(dispatch, value, [{type: 'BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE', placement: a0,
|
|
error: value15}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding3 = env2_2;
|
|
value = binding(binding3[3]);
|
|
dispatch = value.dispatch;
|
|
value12 = binding(binding3[7]);
|
|
prototype = value12.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: value12}});
|
|
value14 = new value12();
|
|
value15 = value14 instanceof Object ? value14 : value13;
|
|
Reflect.apply(dispatch, value, [{type: 'BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE', placement: a0,
|
|
error: value15}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
map = new Map();
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding3 = env2_2;
|
|
value = binding(binding3[3]);
|
|
dispatch = value.dispatch;
|
|
value12 = binding(binding3[7]);
|
|
prototype = value12.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: value12}});
|
|
value14 = new value12();
|
|
value15 = value14 instanceof Object ? value14 : value13;
|
|
Reflect.apply(dispatch, value, [{type: 'BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE', placement: a0,
|
|
error: value15}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value9 = map instanceof Object ? map : undefined;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding3 = env2_2;
|
|
value = binding(binding3[3]);
|
|
dispatch = value.dispatch;
|
|
value12 = binding(binding3[7]);
|
|
prototype = value12.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: value12}});
|
|
value14 = new value12();
|
|
value15 = value14 instanceof Object ? value14 : value13;
|
|
Reflect.apply(dispatch, value, [{type: 'BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE', placement: a0,
|
|
error: value15}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
env0_2 = value9;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding3 = env2_2;
|
|
value = binding(binding3[3]);
|
|
dispatch = value.dispatch;
|
|
value12 = binding(binding3[7]);
|
|
prototype = value12.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: value12}});
|
|
value14 = new value12();
|
|
value15 = value14 instanceof Object ? value14 : value13;
|
|
Reflect.apply(dispatch, value, [{type: 'BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE', placement: a0,
|
|
error: value15}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
decisions = value6.decisions;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding3 = env2_2;
|
|
value = binding(binding3[3]);
|
|
dispatch = value.dispatch;
|
|
value12 = binding(binding3[7]);
|
|
prototype = value12.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: value12}});
|
|
value14 = new value12();
|
|
value15 = value14 instanceof Object ? value14 : value13;
|
|
Reflect.apply(dispatch, value, [{type: 'BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE', placement: a0,
|
|
error: value15}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
flatMap = decisions.flatMap;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding3 = env2_2;
|
|
value = binding(binding3[3]);
|
|
dispatch = value.dispatch;
|
|
value12 = binding(binding3[7]);
|
|
prototype = value12.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: value12}});
|
|
value14 = new value12();
|
|
value15 = value14 instanceof Object ? value14 : value13;
|
|
Reflect.apply(dispatch, value, [{type: 'BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE', placement: a0,
|
|
error: value15}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
closure = _fun74343;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding3 = env2_2;
|
|
value = binding(binding3[3]);
|
|
dispatch = value.dispatch;
|
|
value12 = binding(binding3[7]);
|
|
prototype = value12.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: value12}});
|
|
value14 = new value12();
|
|
value15 = value14 instanceof Object ? value14 : value13;
|
|
Reflect.apply(dispatch, value, [{type: 'BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE', placement: a0,
|
|
error: value15}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value10 = Reflect.apply(flatMap, decisions, [closure]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding3 = env2_2;
|
|
value = binding(binding3[3]);
|
|
dispatch = value.dispatch;
|
|
value12 = binding(binding3[7]);
|
|
prototype = value12.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: value12}});
|
|
value14 = new value12();
|
|
value15 = value14 instanceof Object ? value14 : value13;
|
|
Reflect.apply(dispatch, value, [{type: 'BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE', placement: a0,
|
|
error: value15}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding3 = env2_2;
|
|
value = binding(binding3[3]);
|
|
dispatch = value.dispatch;
|
|
value12 = binding(binding3[7]);
|
|
prototype = value12.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: value12}});
|
|
value14 = new value12();
|
|
value15 = value14 instanceof Object ? value14 : value13;
|
|
Reflect.apply(dispatch, value, [{type: 'BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE', placement: a0,
|
|
error: value15}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding3 = env2_2;
|
|
value = binding(binding3[3]);
|
|
dispatch = value.dispatch;
|
|
value12 = binding(binding3[7]);
|
|
prototype = value12.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: value12}});
|
|
value14 = new value12();
|
|
value15 = value14 instanceof Object ? value14 : value13;
|
|
Reflect.apply(dispatch, value, [{type: 'BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE', placement: a0,
|
|
error: value15}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
property = binding2[3];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding3 = env2_2;
|
|
value = binding(binding3[3]);
|
|
dispatch = value.dispatch;
|
|
value12 = binding(binding3[7]);
|
|
prototype = value12.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: value12}});
|
|
value14 = new value12();
|
|
value15 = value14 instanceof Object ? value14 : value13;
|
|
Reflect.apply(dispatch, value, [{type: 'BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE', placement: a0,
|
|
error: value15}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value11 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding3 = env2_2;
|
|
value = binding(binding3[3]);
|
|
dispatch = value.dispatch;
|
|
value12 = binding(binding3[7]);
|
|
prototype = value12.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: value12}});
|
|
value14 = new value12();
|
|
value15 = value14 instanceof Object ? value14 : value13;
|
|
Reflect.apply(dispatch, value, [{type: 'BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE', placement: a0,
|
|
error: value15}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
dispatch = value11.dispatch;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding3 = env2_2;
|
|
value = binding(binding3[3]);
|
|
dispatch = value.dispatch;
|
|
value12 = binding(binding3[7]);
|
|
prototype = value12.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: value12}});
|
|
value14 = new value12();
|
|
value15 = value14 instanceof Object ? value14 : value13;
|
|
Reflect.apply(dispatch, value, [{type: 'BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE', placement: a0,
|
|
error: value15}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding3 = env2_2;
|
|
value = binding(binding3[3]);
|
|
dispatch = value.dispatch;
|
|
value12 = binding(binding3[7]);
|
|
prototype = value12.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: value12}});
|
|
value14 = new value12();
|
|
value15 = value14 instanceof Object ? value14 : value13;
|
|
Reflect.apply(dispatch, value, [{type: 'BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE', placement: a0,
|
|
error: value15}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.type = 'BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_SUCCESS';
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding3 = env2_2;
|
|
value = binding(binding3[3]);
|
|
dispatch = value.dispatch;
|
|
value12 = binding(binding3[7]);
|
|
prototype = value12.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: value12}});
|
|
value14 = new value12();
|
|
value15 = value14 instanceof Object ? value14 : value13;
|
|
Reflect.apply(dispatch, value, [{type: 'BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE', placement: a0,
|
|
error: value15}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.bounties = value10;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding3 = env2_2;
|
|
value = binding(binding3[3]);
|
|
dispatch = value.dispatch;
|
|
value12 = binding(binding3[7]);
|
|
prototype = value12.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: value12}});
|
|
value14 = new value12();
|
|
value15 = value14 instanceof Object ? value14 : value13;
|
|
Reflect.apply(dispatch, value, [{type: 'BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE', placement: a0,
|
|
error: value15}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.placement = a0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding3 = env2_2;
|
|
value = binding(binding3[3]);
|
|
dispatch = value.dispatch;
|
|
value12 = binding(binding3[7]);
|
|
prototype = value12.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: value12}});
|
|
value14 = new value12();
|
|
value15 = value14 instanceof Object ? value14 : value13;
|
|
Reflect.apply(dispatch, value, [{type: 'BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE', placement: a0,
|
|
error: value15}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.adDecisionsByAdCreativeId = value9;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding3 = env2_2;
|
|
value = binding(binding3[3]);
|
|
dispatch = value.dispatch;
|
|
value12 = binding(binding3[7]);
|
|
prototype = value12.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: value12}});
|
|
value14 = new value12();
|
|
value15 = value14 instanceof Object ? value14 : value13;
|
|
Reflect.apply(dispatch, value, [{type: 'BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE', placement: a0,
|
|
error: value15}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.fetchedAt = value4;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding3 = env2_2;
|
|
value = binding(binding3[3]);
|
|
dispatch = value.dispatch;
|
|
value12 = binding(binding3[7]);
|
|
prototype = value12.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: value12}});
|
|
value14 = new value12();
|
|
value15 = value14 instanceof Object ? value14 : value13;
|
|
Reflect.apply(dispatch, value, [{type: 'BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE', placement: a0,
|
|
error: value15}]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value11, [object]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding3 = env2_2;
|
|
value = binding(binding3[3]);
|
|
dispatch = value.dispatch;
|
|
value12 = binding(binding3[7]);
|
|
prototype = value12.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: value12}});
|
|
value14 = new value12();
|
|
value15 = value14 instanceof Object ? value14 : value13;
|
|
Reflect.apply(dispatch, value, [{type: 'BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE', placement: a0,
|
|
error: value15}]);
|
|
}
|
|
}
|
|
function _fun74343(a0) { // fn#74343, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9718:449, offset: 0x01d8adf0, size: 216 bytes, params: 2, frame: 16
|
|
if (a0.creative == null) {
|
|
return [];
|
|
}
|
|
const creative_type = a0.creative.creative_type;
|
|
let value = environment.__proto__.__proto__.__proto__;
|
|
let binding = env3_0;
|
|
const AdCreativeType = binding(env3_2[4]).AdCreativeType;
|
|
const BOUNTY = AdCreativeType.BOUNTY;
|
|
if (creative_type !== BOUNTY) {
|
|
return [];
|
|
}
|
|
binding = env3_0;
|
|
const binding2 = env3_2;
|
|
value = Reflect.apply(binding(binding2[5]).bountyFromServer, value, [a0.creative.creative_content]);
|
|
const value4 = binding(binding2[6]).questAdDecisionFromAdDecision(a0, {fetchedAt: env0_0,
|
|
requestId: env0_1.request_id, adCreativeId: value.id});
|
|
binding = env0_2;
|
|
binding.set(value.id, value4);
|
|
return [value];
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fetchQuestHomeBounties() { // fn#74344, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9718:999, offset: 0x01d8aec8, size: 50 bytes, params: 1, frame: 14
|
|
return Module00005(_fun74346).apply(this, arguments);
|
|
function* _fun74346(a0) { // fn#74346, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9718:1068, offset: 0x01d8af05, size: 81 bytes, params: 2, frame: 15
|
|
var environment;
|
|
if (true) {
|
|
var env0_0 = a0;
|
|
value = environment.__proto__.__proto__;
|
|
if (!env2_4.isFetchingQuestHomeBounties) {
|
|
yield env2_6(a0, env2_3(_fun74348));
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
}
|
|
}
|
|
function* _fun74348() { // fn#74348, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9718:1149, offset: 0x01d8af61, size: 224 bytes, params: 1, frame: 17
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__.__proto__.__proto__;
|
|
let binding = env4_0;
|
|
const value3 = undefined;
|
|
const value4 = binding(env4_2[8]);
|
|
const getSession = value4.getSession;
|
|
yield Reflect.apply(getSession, value4, []);
|
|
const value5 = undefined;
|
|
if (false) {
|
|
return value5;
|
|
}
|
|
binding = env4_0;
|
|
const binding2 = env4_2;
|
|
const orRefreshAdSession = binding(binding2[9]).getOrRefreshAdSession();
|
|
const HTTP = binding(binding2[10]).HTTP;
|
|
const get = HTTP.get;
|
|
const QUESTS_GET_DECISIONS = env4_5.QUESTS_GET_DECISIONS;
|
|
value = environment.__proto__;
|
|
yield Reflect.apply(get, HTTP, [{url: QUESTS_GET_DECISIONS, query: {placement: env1_0,
|
|
client_ad_session_id: orRefreshAdSession.uuid,
|
|
client_heartbeat_session_id: value5 == null ? value3 : value5.uuid, num_decisions_requested: 5},
|
|
rejectWithError: false}]);
|
|
value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
return value.body;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fetchBountyPreview() { // fn#74349, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9718:1469, offset: 0x01d8b041, size: 50 bytes, params: 1, frame: 14
|
|
return Module00005(_fun74351).apply(this, arguments);
|
|
function* _fun74351(a0) { // fn#74351, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9718:1530, offset: 0x01d8b07e, size: 113 bytes, params: 2, frame: 16
|
|
var environment;
|
|
if (true) {
|
|
var env0_0 = a0;
|
|
value = environment.__proto__.__proto__;
|
|
if (!env2_4.isFetchingQuestHomeBounties) {
|
|
var binding = env2_6;
|
|
var QuestPlacement = env2_0(env2_2[11]).QuestPlacement;
|
|
var QUEST_HOME_MOBILE_CAROUSEL = QuestPlacement.QUEST_HOME_MOBILE_CAROUSEL;
|
|
yield binding(QUEST_HOME_MOBILE_CAROUSEL, env2_3(_fun74353));
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
}
|
|
}
|
|
function* _fun74353() { // fn#74353, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9718:1660, offset: 0x01d8b0fa, size: 195 bytes, params: 1, frame: 19
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
const URLSearchParams = global.URLSearchParams;
|
|
let uRLSearchParams = new URLSearchParams();
|
|
env1_0.forEach(_fun74354);
|
|
const HTTP = env4_0(env4_2[10]).HTTP;
|
|
const get = HTTP.get;
|
|
const QUESTS_CREATIVE_PREVIEW = env4_5.QUESTS_CREATIVE_PREVIEW;
|
|
uRLSearchParams = uRLSearchParams.toString();
|
|
yield Reflect.apply(get, HTTP, [{url: '' + QUESTS_CREATIVE_PREVIEW + '?' + uRLSearchParams,
|
|
rejectWithError: false}]);
|
|
uRLSearchParams = undefined;
|
|
if (false) {
|
|
return uRLSearchParams;
|
|
}
|
|
return uRLSearchParams.body;
|
|
function _fun74354(a0) { // fn#74354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9718:1716, offset: 0x01d8b1bd, size: 30 bytes, params: 2, frame: 13
|
|
return env0_0.append('ad_creative_ids', a0);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _claimBountyReward() { // fn#74355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9718:1886, offset: 0x01d8b1db, size: 50 bytes, params: 1, frame: 14
|
|
return Module00005(_fun74357).apply(this, arguments);
|
|
function* _fun74357(a0, a1) { // fn#74357, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9718:1945, offset: 0x01d8b218, size: 527 bytes, params: 3, frame: 27
|
|
var object2;
|
|
var uuid;
|
|
var binding2;
|
|
var property;
|
|
var value5;
|
|
var getSession;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var binding3;
|
|
var value9;
|
|
var getOrRefreshAdSession;
|
|
var value10;
|
|
var value11;
|
|
var getAdMetadataSealed;
|
|
var value12;
|
|
var value13;
|
|
var getAdTrafficMetadataSealed;
|
|
var value14;
|
|
var value15;
|
|
var HTTP;
|
|
var post;
|
|
var QUESTS_CREATIVES_CLAIM_REWARD;
|
|
var value16;
|
|
var object;
|
|
var value18;
|
|
var value19;
|
|
var value20;
|
|
var value21;
|
|
var value22;
|
|
var value23;
|
|
var binding4;
|
|
var value24;
|
|
var error;
|
|
var binding5;
|
|
var value25;
|
|
var prototype;
|
|
var value26;
|
|
var value27;
|
|
var value28;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = undefined;
|
|
let binding = env2_4;
|
|
if (!binding.isClaimingBountyReward(a0)) {
|
|
env2_1(env2_2[3]).dispatch({type: 'BOUNTIES_CLAIM_REWARD_BEGIN', bountyId: a0});
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
binding2 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
property = binding2[8];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
value5 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
getSession = value5.getSession;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
value6 = Reflect.apply(getSession, value5, []);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
yield value6;
|
|
try {
|
|
value7 = undefined;
|
|
value8 = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
if (value8) {
|
|
return value7;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
binding3 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
property = binding3[9];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
value9 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
getOrRefreshAdSession = value9.getOrRefreshAdSession;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
value10 = Reflect.apply(getOrRefreshAdSession, value9, []);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
property = binding3[12];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
value11 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
getAdMetadataSealed = value11.getAdMetadataSealed;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
value12 = Reflect.apply(getAdMetadataSealed, value11, [a1, a0]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
property = binding3[12];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
value13 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
getAdTrafficMetadataSealed = value13.getAdTrafficMetadataSealed;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
value14 = Reflect.apply(getAdTrafficMetadataSealed, value13, [a1, value, a0]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
property = binding3[10];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
value15 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
HTTP = value15.HTTP;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
post = HTTP.post;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
binding = env2_5;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
QUESTS_CREATIVES_CLAIM_REWARD = binding.QUESTS_CREATIVES_CLAIM_REWARD;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
value16 = Reflect.apply(QUESTS_CREATIVES_CLAIM_REWARD, binding, [a0]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
object2.url = value16;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
var value17 = null;
|
|
try {
|
|
value18 = value17 != value12;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
object.decision_metadata_sealed = value18 ? value12 : value17;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
value19 = value17 != value14;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
object.traffic_metadata_sealed = value19 ? value14 : value17;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
uuid = value10.uuid;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
object.client_ad_session_id = uuid;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
value20 = value17 == value7;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
if (value20) {
|
|
uuid = value;
|
|
} else {
|
|
try {
|
|
uuid = value7.uuid;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
}
|
|
try {
|
|
object.client_heartbeat_session_id = uuid;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
object2.body = object;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
object2.rejectWithError = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
value21 = Reflect.apply(post, HTTP, [object2]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
yield value21;
|
|
try {
|
|
value22 = undefined;
|
|
value23 = false;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
if (value23) {
|
|
return value22;
|
|
}
|
|
try {
|
|
binding = env2_1;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
binding4 = env2_2;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
property = binding4[3];
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
value24 = binding(property);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
dispatch = value24.dispatch;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
object2.type = 'BOUNTIES_CLAIM_REWARD_SUCCESS';
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
object2.bountyId = a0;
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
try {
|
|
Reflect.apply(dispatch, value24, [object2]);
|
|
} catch (error) {
|
|
binding = env2_1;
|
|
binding5 = env2_2;
|
|
value25 = binding(binding5[7]);
|
|
prototype = value25.prototype;
|
|
value26 = Object.create(prototype, {constructor: {value: value25}});
|
|
value27 = new value25();
|
|
value28 = value27 instanceof Object ? value27 : value26;
|
|
value = binding(binding5[3]);
|
|
value.dispatch({type: 'BOUNTIES_CLAIM_REWARD_FAILURE', bountyId: a0, error: value28});
|
|
throw value28;
|
|
}
|
|
}
|
|
return value;
|
|
}
|
|
|
|
}
|
|
|
|
function setBountyVideoProgress(a0, a1) { // fn#74360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9718:2990, offset: 0x01d8b427, size: 153 bytes, params: 3, frame: 15
|
|
if ((require(7113) /* metro dependency 7113: SessionAdGenerator */).getCurrentAdSession() != null) {
|
|
(require(7113) /* metro dependency 7113: SessionAdGenerator */).getOrRefreshAdSession(true);
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'BOUNTIES_VIDEO_PROGRESS_UPDATE',
|
|
bountyId: a0, timestampSec: a1.timestampSec, maxTimestampSec: a1.maxTimestampSec, duration: a1.duration});
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun74338, 9532, [5, 7092, 661, 694, 7121, 9533, 7109, 4132, 4875, 7113, 507, 6531, 7091,
|
|
2]) /* metro module 9532, dependencies: [5, 7092, 661, 694, 7121, 9533, 7109, 4132, 4875, 7113, 507, 6531, 7091, 2] */;
|