Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,580 @@
|
||||
/* Metro module 13563; source: modules/quests/AdContentSeenStore.tsx; dependencies: [6, 7, 15, 17, 18, 57, 7093, 7121, 7091, 566, 694, 2] */
|
||||
function _fun103049(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13753:6, offset: 0x022555eb, size: 401 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_103055 = 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 Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
||||
const env0_7 = importDefault(57) /* metro dependency 57 */;
|
||||
const questStore = importDefault(7093) /* metro dependency 7093: QuestStore */;
|
||||
const Map = global.Map;
|
||||
let map = new Map();
|
||||
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
|
||||
map = _fun103058(PersistedStore);
|
||||
map.displayName = 'AdContentSeenStore';
|
||||
map.persistKey = 'AdContentSeenStore';
|
||||
map = new map(importDefault(694) /* metro dependency 694: Dispatcher */,
|
||||
{AD_CONTENT_MARK_SEEN: AD_CONTENT_MARK_SEEN, AD_CONTENT_MARK_UNSEEN: AD_CONTENT_MARK_UNSEEN});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/AdContentSeenStore.tsx');
|
||||
exports.default = map;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_103050() { // fn#103050, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13753:170, offset: 0x0225577c, 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_103050_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_103053(a0, a1) { // fn#103053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13753:363, offset: 0x022557de, size: 372 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 _fun103054;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_103055(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_103055(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_103055(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun103054;
|
||||
}
|
||||
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 getOrCreateSet(a0) { // fn#103056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13753:1287, offset: 0x02255952, size: 74 bytes, params: 2, frame: 14
|
||||
var r0;
|
||||
var set;
|
||||
const value2 = env0_9.get(a0);
|
||||
if (value2 != null) {
|
||||
r0 = value2;
|
||||
} else {
|
||||
set = new global.Set();
|
||||
env0_9.set(a0, set);
|
||||
r0 = set;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function syncWithQuestStore() { // fn#103057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13753:1370, offset: 0x0225599c, size: 588 bytes, params: 1, frame: 31
|
||||
var r2;
|
||||
var r6;
|
||||
var r0;
|
||||
var r20;
|
||||
var r19;
|
||||
var r14;
|
||||
var r4;
|
||||
var r10;
|
||||
var r3;
|
||||
var r1;
|
||||
var value6;
|
||||
var value7;
|
||||
var property;
|
||||
var property2;
|
||||
var value8;
|
||||
var moduleValue;
|
||||
var isQuestExpired2;
|
||||
var userStatus;
|
||||
var value9;
|
||||
var enrolledAt;
|
||||
var value10;
|
||||
var completedAt;
|
||||
var value11;
|
||||
var claimedAt;
|
||||
var value12;
|
||||
var dismissedQuestContent;
|
||||
var value13;
|
||||
var value14;
|
||||
var value15;
|
||||
var value16;
|
||||
var value17;
|
||||
var value18;
|
||||
var value19;
|
||||
var value20;
|
||||
var moduleValue2;
|
||||
var isQuestExpired3;
|
||||
var value21;
|
||||
var value22;
|
||||
var questHomeHero;
|
||||
var value25;
|
||||
var value26;
|
||||
var value27;
|
||||
var id;
|
||||
var value28;
|
||||
var value29;
|
||||
var value30;
|
||||
var value;
|
||||
const quests = QuestStore.quests;
|
||||
let getOrCreateSetBinding = getOrCreateSet;
|
||||
const AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType;
|
||||
const QUEST = AdCreativeType.QUEST;
|
||||
const orCreateSetBinding = getOrCreateSetBinding(QUEST);
|
||||
const value3 = _createForOfIteratorHelperLoose_103053(quests);
|
||||
const value4 = value3();
|
||||
let done = value4.done;
|
||||
const value5 = false;
|
||||
if (done) {
|
||||
r14 = value5;
|
||||
} else {
|
||||
r2 = value5;
|
||||
r6 = value4;
|
||||
while (true) {
|
||||
value6 = r6.value;
|
||||
value7 = env0_7(value6, 2);
|
||||
property = value7[0];
|
||||
property2 = value7[1];
|
||||
value8 = orCreateSetBinding.has(property);
|
||||
if (value8) {
|
||||
r0 = value8;
|
||||
} else {
|
||||
moduleValue = require(7091) /* metro dependency 7091: QuestDataUtils */;
|
||||
isQuestExpired2 = moduleValue.isQuestExpired(property2);
|
||||
r0 = isQuestExpired2;
|
||||
}
|
||||
if (r0) {
|
||||
continue;
|
||||
}
|
||||
userStatus = property2.userStatus;
|
||||
value9 = userStatus == null;
|
||||
if (value9) {
|
||||
r19 = value9;
|
||||
continue;
|
||||
}
|
||||
enrolledAt = userStatus.enrolledAt;
|
||||
value10 = enrolledAt == null;
|
||||
if (!value10) {
|
||||
r20 = value10;
|
||||
continue;
|
||||
}
|
||||
completedAt = userStatus.completedAt;
|
||||
value11 = completedAt == null;
|
||||
r20 = value11;
|
||||
if (!r20) {
|
||||
continue;
|
||||
}
|
||||
claimedAt = userStatus.claimedAt;
|
||||
value12 = claimedAt == null;
|
||||
r20 = value12;
|
||||
if (!r20) {
|
||||
continue;
|
||||
}
|
||||
dismissedQuestContent = userStatus.dismissedQuestContent;
|
||||
value13 = dismissedQuestContent === 0;
|
||||
r20 = value13;
|
||||
r19 = r20;
|
||||
r0 = r19;
|
||||
if (r0) {
|
||||
continue;
|
||||
}
|
||||
orCreateSetBinding.add(property);
|
||||
value14 = true;
|
||||
r2 = value14;
|
||||
value15 = value3();
|
||||
done = value15.done;
|
||||
if (done) {
|
||||
r14 = r2;
|
||||
break;
|
||||
}
|
||||
r6 = value15;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (QuestStore.lastFetchedCurrentQuests === 0) {
|
||||
r10 = r14;
|
||||
} else if (quests.size > 0) {
|
||||
value16 = _createForOfIteratorHelperLoose_103053(orCreateSetBinding);
|
||||
value17 = value16();
|
||||
done = value17.done;
|
||||
if (done) {
|
||||
r10 = r14;
|
||||
} else {
|
||||
r2 = value17;
|
||||
r4 = r14;
|
||||
while (true) {
|
||||
value18 = r2.value;
|
||||
value19 = quests.get(value18);
|
||||
value20 = value19 == null;
|
||||
if (value20) {
|
||||
r0 = value20;
|
||||
} else {
|
||||
moduleValue2 = require(7091) /* metro dependency 7091: QuestDataUtils */;
|
||||
isQuestExpired3 = moduleValue2.isQuestExpired(value19);
|
||||
r0 = isQuestExpired3;
|
||||
}
|
||||
if (!r0) {
|
||||
continue;
|
||||
}
|
||||
orCreateSetBinding.delete(value18);
|
||||
value21 = true;
|
||||
r4 = value21;
|
||||
value22 = value16();
|
||||
done = value22.done;
|
||||
if (done) {
|
||||
r10 = r4;
|
||||
break;
|
||||
}
|
||||
r2 = value22;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
r10 = r14;
|
||||
}
|
||||
getOrCreateSetBinding = getOrCreateSet;
|
||||
const QUEST_HOME_HERO = AdCreativeType.QUEST_HOME_HERO;
|
||||
const orCreateSetBinding2 = getOrCreateSetBinding(QUEST_HOME_HERO);
|
||||
const getLastFetchedQuestHomeHero = QuestStore.getLastFetchedQuestHomeHero;
|
||||
if (Reflect.apply(getLastFetchedQuestHomeHero, QuestStore, []) == null) {
|
||||
r0 = r10;
|
||||
} else if (orCreateSetBinding2.size > 0) {
|
||||
questHomeHero = QuestStore.getQuestHomeHero();
|
||||
value = _createForOfIteratorHelperLoose_103053(orCreateSetBinding2);
|
||||
value25 = value();
|
||||
done = value25.done;
|
||||
if (done) {
|
||||
r0 = r10;
|
||||
} else {
|
||||
r2 = value25;
|
||||
r3 = r10;
|
||||
while (true) {
|
||||
value26 = r2.value;
|
||||
value27 = questHomeHero != null;
|
||||
if (value27) {
|
||||
id = questHomeHero.id;
|
||||
value28 = value26 === id;
|
||||
r1 = value28;
|
||||
} else {
|
||||
r1 = value27;
|
||||
}
|
||||
if (r1) {
|
||||
continue;
|
||||
}
|
||||
orCreateSetBinding2.delete(value26);
|
||||
value29 = true;
|
||||
r3 = value29;
|
||||
value30 = value();
|
||||
done = value30.done;
|
||||
if (done) {
|
||||
r0 = r3;
|
||||
break;
|
||||
}
|
||||
r2 = value30;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
r0 = r10;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun103058(a0) { // fn#103058, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13753:2191, offset: 0x02255be8, size: 122 bytes, params: 2, frame: 16
|
||||
const closure = AdContentSeenStore;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: 'initialize', value: value_103060}, {key: 'getState', value: value_103061},
|
||||
{key: 'hasSeen', value: value_103062}]);
|
||||
}
|
||||
|
||||
function AD_CONTENT_MARK_SEEN({adCreativeType, contentIds}) { // fn#103063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13753:3148, offset: 0x02255df0, size: 107 bytes, params: 2, frame: 18
|
||||
var r2;
|
||||
var r3;
|
||||
var r0;
|
||||
var value5;
|
||||
var has;
|
||||
var value6;
|
||||
var value7;
|
||||
const orCreateSet = getOrCreateSet(adCreativeType);
|
||||
const value = _createForOfIteratorHelperLoose_103053(contentIds);
|
||||
const value3 = value();
|
||||
let done = value3.done;
|
||||
if (done) {
|
||||
r0 = false;
|
||||
} else {
|
||||
r2 = false;
|
||||
r3 = value3;
|
||||
while (true) {
|
||||
value5 = r3.value;
|
||||
has = orCreateSet.has;
|
||||
if (!Reflect.apply(has, orCreateSet, [value5])) {
|
||||
orCreateSet.add(value5);
|
||||
value6 = true;
|
||||
r2 = value6;
|
||||
}
|
||||
value7 = value();
|
||||
done = value7.done;
|
||||
if (done) {
|
||||
r0 = r2;
|
||||
break;
|
||||
}
|
||||
r3 = value7;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function AD_CONTENT_MARK_UNSEEN({adCreativeType, contentIds}) { // fn#103064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13753:3362, offset: 0x02255e5b, size: 122 bytes, params: 2, frame: 18
|
||||
var r2;
|
||||
var r3;
|
||||
var r0;
|
||||
var value5;
|
||||
var has;
|
||||
var value6;
|
||||
var value7;
|
||||
const value2 = env0_9.get(adCreativeType);
|
||||
if (value2 == null) {
|
||||
return false;
|
||||
}
|
||||
const value = _createForOfIteratorHelperLoose_103053(contentIds);
|
||||
const value3 = value();
|
||||
let done = value3.done;
|
||||
if (done) {
|
||||
r0 = false;
|
||||
} else {
|
||||
r2 = false;
|
||||
r3 = value3;
|
||||
while (true) {
|
||||
value5 = r3.value;
|
||||
has = value2.has;
|
||||
if (Reflect.apply(has, value2, [value5])) {
|
||||
value2.delete(value5);
|
||||
value6 = true;
|
||||
r2 = value6;
|
||||
}
|
||||
value7 = value();
|
||||
done = value7.done;
|
||||
if (done) {
|
||||
r0 = r2;
|
||||
break;
|
||||
}
|
||||
r3 = value7;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_103060(a0) { // fn#103060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13753:2511, offset: 0x02255c62, size: 233 bytes, params: 2, frame: 24
|
||||
var r2;
|
||||
var Object;
|
||||
var entries;
|
||||
var seenContentIds;
|
||||
var value4;
|
||||
var length;
|
||||
var value5;
|
||||
var property;
|
||||
var value6;
|
||||
var property2;
|
||||
var binding;
|
||||
var set;
|
||||
var Number;
|
||||
var value7;
|
||||
var Set;
|
||||
var value8;
|
||||
var set2;
|
||||
var value9;
|
||||
var value10;
|
||||
this.waitFor(QuestStore);
|
||||
const Map = global.Map;
|
||||
let prototype = Map.prototype;
|
||||
const value2 = Object.create(prototype, {constructor: {value: Map}});
|
||||
const map = new Map();
|
||||
reducibleJoin3: while (true) {
|
||||
if (a0 == null) {
|
||||
break reducibleJoin3;
|
||||
}
|
||||
Object = global.Object;
|
||||
entries = Object.entries;
|
||||
seenContentIds = a0.seenContentIds;
|
||||
value4 = Reflect.apply(entries, Object, [seenContentIds]);
|
||||
length = value4.length;
|
||||
value5 = 0;
|
||||
if (!(value5 < length)) {
|
||||
break reducibleJoin3;
|
||||
}
|
||||
r2 = value5;
|
||||
reducibleLoop2: while (true) {
|
||||
property = value4[r2];
|
||||
value6 = env1_7(property, 2);
|
||||
property = value6[value5];
|
||||
property2 = value6[1];
|
||||
binding = map instanceof Object ? map : value2;
|
||||
set = binding.set;
|
||||
Number = global.Number;
|
||||
value7 = Number(property);
|
||||
Set = global.Set;
|
||||
prototype = Set.prototype;
|
||||
value8 = Object.create(prototype, {constructor: {value: Set}});
|
||||
set2 = new Set();
|
||||
value9 = set2 instanceof Object ? set2 : value8;
|
||||
Reflect.apply(set, binding, [value7, value9]);
|
||||
value10 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
length = value4.length;
|
||||
if (value10 < length) {
|
||||
r2 = value10;
|
||||
continue reducibleLoop2;
|
||||
}
|
||||
break reducibleJoin3;
|
||||
}
|
||||
}
|
||||
this.syncWith([QuestStore], syncWithQuestStore);
|
||||
}
|
||||
|
||||
function value_103061() { // fn#103061, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13753:2747, offset: 0x02255d4b, size: 109 bytes, params: 1, frame: 22
|
||||
var r2;
|
||||
var value4;
|
||||
var value5;
|
||||
var property;
|
||||
var property2;
|
||||
var Array;
|
||||
var from;
|
||||
var value6;
|
||||
const object2 = {};
|
||||
const value2 = _createForOfIteratorHelperLoose_103053(env1_9);
|
||||
const value3 = value2();
|
||||
let done = value3.done;
|
||||
if (!done) {
|
||||
for (r2 = value3; true; r2 = value6) {
|
||||
value4 = r2.value;
|
||||
value5 = env1_7(value4, 2);
|
||||
property = value5[0];
|
||||
property2 = value5[1];
|
||||
Array = global.Array;
|
||||
from = Array.from;
|
||||
object2[property] = Reflect.apply(from, Array, [property2]);
|
||||
value6 = value2();
|
||||
done = value6.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return {seenContentIds: object2};
|
||||
}
|
||||
|
||||
function value_103062(a0, a1) { // fn#103062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13753:2930, offset: 0x02255db8, size: 56 bytes, params: 3, frame: 13
|
||||
var r1;
|
||||
let value = environment.__proto__;
|
||||
value = env1_9.get(a0);
|
||||
if (value == null) {
|
||||
r1 = undefined;
|
||||
} else {
|
||||
value = value.has(a1);
|
||||
r1 = value;
|
||||
}
|
||||
return r1 != null && r1;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,334 @@
|
||||
/* Metro module 7092; source: modules/quests/BountyStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
|
||||
function _fun56578(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56578, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7270:6, offset: 0x013cc255, size: 386 bytes, params: 8, frame: 19
|
||||
const _arrayLikeToArray_56581 = 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 = initializeState;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_6 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_7 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_8 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_9 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_10 = importDefault(18) /* metro dependency 18 */;
|
||||
closure();
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
let value = _fun56586(Store);
|
||||
value.displayName = 'BountyStore';
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {LOGOUT: function() {
|
||||
initializeState();
|
||||
}, BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_BEGIN: function() {
|
||||
env0_0 = true;
|
||||
}, BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_SUCCESS: BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_SUCCESS,
|
||||
BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE: BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE,
|
||||
BOUNTIES_CLAIM_REWARD_BEGIN: BOUNTIES_CLAIM_REWARD_BEGIN,
|
||||
BOUNTIES_CLAIM_REWARD_SUCCESS: BOUNTIES_CLAIM_REWARD_SUCCESS,
|
||||
BOUNTIES_CLAIM_REWARD_FAILURE: BOUNTIES_CLAIM_REWARD_FAILURE,
|
||||
BOUNTIES_VIDEO_PROGRESS_UPDATE: BOUNTIES_VIDEO_PROGRESS_UPDATE, AD_SESSION_RESET: function() {
|
||||
var Map = global.Map;
|
||||
env0_5 = new Map();
|
||||
}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/BountyStore.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_56579(a0, a1) { // fn#56579, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7270:162, offset: 0x013cc3d7, 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 _fun56580;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_56581(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_56581(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_56581(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun56580;
|
||||
}
|
||||
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 _isNativeReflectConstruct_56582() { // fn#56582, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7270:1072, offset: 0x013cc549, 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_56582_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function initializeState() { // fn#56585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7270:1265, offset: 0x013cc5a7, size: 143 bytes, params: 1, frame: 11
|
||||
env0_1 = [];
|
||||
let Set = global.Set;
|
||||
let set = new Set();
|
||||
Set = global.Set;
|
||||
set = new Set();
|
||||
let Map = global.Map;
|
||||
let map = new Map();
|
||||
Map = global.Map;
|
||||
map = new Map();
|
||||
}
|
||||
|
||||
function _fun56586(a0) { // fn#56586, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7270:1366, offset: 0x013cc636, size: 237 bytes, params: 2, frame: 16
|
||||
const closure = BountyStore;
|
||||
env0_10(closure, a0);
|
||||
return env0_7(closure, [{key: 'isFetchingQuestHomeBounties', get: get_56588}, {key: 'questHomeBounties',
|
||||
get: get_56589}, {key: 'isBountyCompleted', value: value_56590}, {key: 'getCompletedBountyCount',
|
||||
value: value_56591}, {key: 'isClaimingBountyReward', value: value_56592}, {key: 'areAllBountiesCompleted',
|
||||
value: value_56593}, {key: 'getAdDecisionByPlacementAndAdCreativeId', value: value_56595},
|
||||
{key: 'getBountyVideoProgress', value: value_56596}]);
|
||||
}
|
||||
|
||||
function BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_SUCCESS({bounties, placement, adDecisionsByAdCreativeId}) { // fn#56599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7270:2584, offset: 0x013cc8b7, size: 145 bytes, params: 2, frame: 15
|
||||
const Set = global.Set;
|
||||
const set = new Set();
|
||||
let Map = global.Map;
|
||||
let map = new Map();
|
||||
Map = global.Map;
|
||||
const binding = env0_4;
|
||||
const value6 = Object.create(Map.prototype, {constructor: {value: Map}});
|
||||
map = new Map(binding);
|
||||
(map instanceof Object ? map : value6).set(placement, adDecisionsByAdCreativeId);
|
||||
}
|
||||
|
||||
function BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE({placement}) { // fn#56600, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7270:2780, offset: 0x013cc948, size: 106 bytes, params: 2, frame: 13
|
||||
env0_1 = [];
|
||||
const Set = global.Set;
|
||||
const set = new Set();
|
||||
const Map = global.Map;
|
||||
const binding = env0_4;
|
||||
const value4 = Object.create(Map.prototype, {constructor: {value: Map}});
|
||||
const map = new Map(binding);
|
||||
(map instanceof Object ? map : value4).delete(placement);
|
||||
}
|
||||
|
||||
function BOUNTIES_CLAIM_REWARD_BEGIN({bountyId}) { // fn#56601, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7270:2914, offset: 0x013cc9b2, size: 62 bytes, params: 2, frame: 13
|
||||
const Set = global.Set;
|
||||
const binding = env0_3;
|
||||
const value2 = Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
const set = new Set(binding);
|
||||
(set instanceof Object ? set : value2).add(bountyId);
|
||||
}
|
||||
|
||||
function BOUNTIES_CLAIM_REWARD_SUCCESS({bountyId}) { // fn#56602, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7270:3027, offset: 0x013cc9f0, size: 106 bytes, params: 2, frame: 14
|
||||
let Set = global.Set;
|
||||
let binding = env0_3;
|
||||
const value2 = Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
let set = new Set(binding);
|
||||
(set instanceof Object ? set : value2).delete(bountyId);
|
||||
Set = global.Set;
|
||||
binding = env0_2;
|
||||
const value4 = Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
set = new Set(binding);
|
||||
(set instanceof Object ? set : value4).add(bountyId);
|
||||
}
|
||||
|
||||
function BOUNTIES_CLAIM_REWARD_FAILURE({bountyId}) { // fn#56603, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7270:3175, offset: 0x013cca5a, size: 62 bytes, params: 2, frame: 13
|
||||
const Set = global.Set;
|
||||
const binding = env0_3;
|
||||
const value2 = Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
const set = new Set(binding);
|
||||
(set instanceof Object ? set : value2).delete(bountyId);
|
||||
}
|
||||
|
||||
function BOUNTIES_VIDEO_PROGRESS_UPDATE({bountyId, timestampSec, maxTimestampSec, duration}) { // fn#56604, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7270:3294, offset: 0x013cca98, size: 96 bytes, params: 2, frame: 17
|
||||
const Map = global.Map;
|
||||
const map = new Map(env0_5);
|
||||
map.set(bountyId, {timestampSec: timestampSec, maxTimestampSec: maxTimestampSec, duration: duration});
|
||||
}
|
||||
|
||||
function BountyStore() { // fn#56587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7270:1378, offset: 0x013cc723, size: 113 bytes, params: 1, frame: 20
|
||||
const value = environment.__proto__;
|
||||
env1_6(this, BountyStore);
|
||||
const value3 = env1_9(BountyStore);
|
||||
return env1_8(this, _isNativeReflectConstruct_56582() ? global.Reflect.construct(value3, arguments,
|
||||
env1_9(this).constructor) : value3.apply(this, arguments));
|
||||
}
|
||||
|
||||
function get_56589() { // fn#56589, offset: 0x013cc794, size: 9 bytes, params: 1, frame: 1
|
||||
return env1_1;
|
||||
}
|
||||
|
||||
function value_56591(a0) { // fn#56591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7270:1837, offset: 0x013cc7b3, size: 92 bytes, params: 2, frame: 17
|
||||
var r2;
|
||||
var r3;
|
||||
var r7;
|
||||
var r0;
|
||||
var value5;
|
||||
var binding;
|
||||
var has;
|
||||
var id;
|
||||
var value6;
|
||||
var value7;
|
||||
const value2 = _createForOfIteratorHelperLoose_56579(a0);
|
||||
const value3 = value2();
|
||||
let done = value3.done;
|
||||
const value4 = 0;
|
||||
if (done) {
|
||||
r0 = value4;
|
||||
} else {
|
||||
r2 = value4;
|
||||
r3 = value3;
|
||||
while (true) {
|
||||
value5 = r3.value;
|
||||
binding = env1_2;
|
||||
has = binding.has;
|
||||
id = value5.id;
|
||||
if (Reflect.apply(has, binding, [id])) {
|
||||
value6 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
r7 = value6;
|
||||
} else {
|
||||
r7 = r2;
|
||||
}
|
||||
value7 = value2();
|
||||
done = value7.done;
|
||||
if (done) {
|
||||
r0 = r7;
|
||||
break;
|
||||
}
|
||||
r2 = r7;
|
||||
r3 = value7;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_56592(a0) { // fn#56592, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7270:1994, offset: 0x013cc80f, size: 22 bytes, params: 2, frame: 11
|
||||
return env1_3.has(a0);
|
||||
}
|
||||
|
||||
function value_56593() { // fn#56593, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7270:2061, offset: 0x013cc825, size: 27 bytes, params: 1, frame: 11
|
||||
return env1_1.every(_fun56594);
|
||||
}
|
||||
|
||||
function value_56595(a0, a1) { // fn#56595, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7270:2160, offset: 0x013cc85b, size: 58 bytes, params: 3, frame: 13
|
||||
var r1;
|
||||
let value = environment.__proto__;
|
||||
value = env1_4.get(a0);
|
||||
const value2 = null;
|
||||
if (value2 == value) {
|
||||
r1 = undefined;
|
||||
} else {
|
||||
value = value.get(a1);
|
||||
r1 = value;
|
||||
}
|
||||
return value2 != r1 ? r1 : value2;
|
||||
}
|
||||
|
||||
function value_56596(a0) { // fn#56596, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7270:2279, offset: 0x013cc895, size: 34 bytes, params: 2, frame: 11
|
||||
let value = environment.__proto__;
|
||||
value = env1_5.get(a0);
|
||||
const value2 = null;
|
||||
return value2 != value ? value : value2;
|
||||
}
|
||||
|
||||
function _fun56594({id}) { // fn#56594, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7270:2088, offset: 0x013cc840, size: 27 bytes, params: 2, frame: 11
|
||||
return env2_2.has(id);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,126 @@
|
||||
/* Metro module 7094; source: modules/quests/ConsoleQuestUIStore.tsx; dependencies: [629, 2] */
|
||||
function _fun56707(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7272:6, offset: 0x013cf492, size: 121 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let env0_0 = [];
|
||||
let value = require(629) /* metro dependency 629 */;
|
||||
value = value.create(function(a0, a1) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
var Map = global.Map;
|
||||
return {errorHintsByQuestId: new Map(), setErrorHints: _fun56709, getErrorHints: _fun56711,
|
||||
clearErrorHints: _fun56712, clearErrorHintsByType: _fun56714, reset: _fun56717};
|
||||
});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/ConsoleQuestUIStore.tsx');
|
||||
exports.default = value;
|
||||
exports.useConsoleQuestUIStore = value;
|
||||
}
|
||||
|
||||
function _fun56708(a0, a1) { // fn#56708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7272:119, offset: 0x013cf50b, size: 109 bytes, params: 3, frame: 11
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const Map = global.Map;
|
||||
return {errorHintsByQuestId: new Map(), setErrorHints: setErrorHints, getErrorHints: getErrorHints,
|
||||
clearErrorHints: function(a0) {
|
||||
a0(_fun56713);
|
||||
}, clearErrorHintsByType: clearErrorHintsByType, reset: reset_56717};
|
||||
}
|
||||
|
||||
function setErrorHints(a0, a1) { // fn#56709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7272:170, offset: 0x013cf578, size: 37 bytes, params: 3, frame: 11
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
env0_0(_fun56710);
|
||||
}
|
||||
|
||||
function getErrorHints(a0) { // fn#56711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7272:368, offset: 0x013cf633, size: 47 bytes, params: 2, frame: 11
|
||||
return require().errorHintsByQuestId.get(a0) ?? env1_0;
|
||||
}
|
||||
|
||||
function clearErrorHints(a0) { // fn#56712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7272:447, offset: 0x013cf662, size: 30 bytes, params: 2, frame: 11
|
||||
a0(_fun56713);
|
||||
}
|
||||
|
||||
function clearErrorHintsByType(a0, a1) { // fn#56714, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7272:606, offset: 0x013cf6d8, size: 37 bytes, params: 3, frame: 11
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
env0_0(_fun56715);
|
||||
}
|
||||
|
||||
function reset_56717() { // fn#56717, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7272:854, offset: 0x013cf7aa, size: 51 bytes, params: 1, frame: 12
|
||||
const binding = env0_0;
|
||||
const Map = global.Map;
|
||||
binding({errorHintsByQuestId: new Map()});
|
||||
}
|
||||
|
||||
function _fun56710(a0) { // fn#56710, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7272:181, offset: 0x013cf59d, size: 150 bytes, params: 2, frame: 17
|
||||
var errorHintsByQuestId;
|
||||
var Map;
|
||||
var map;
|
||||
var set;
|
||||
var binding;
|
||||
var items;
|
||||
if (require.length !== 0) {
|
||||
Map = global.Map;
|
||||
errorHintsByQuestId = a0.errorHintsByQuestId;
|
||||
map = new Map();
|
||||
if (require.length === 0) {
|
||||
map.delete(env0_0);
|
||||
} else {
|
||||
set = map.set;
|
||||
binding = env0_0;
|
||||
items = [];
|
||||
arraySpread(items, require, 0, 0);
|
||||
Reflect.apply(set, map, [binding, items]);
|
||||
}
|
||||
return {errorHintsByQuestId: map};
|
||||
}
|
||||
if (Reflect.apply(a0.errorHintsByQuestId.has, errorHintsByQuestId, [env0_0])) {
|
||||
Map = global.Map;
|
||||
errorHintsByQuestId = a0.errorHintsByQuestId;
|
||||
map = new Map();
|
||||
if (require.length === 0) {
|
||||
map.delete(env0_0);
|
||||
} else {
|
||||
set = map.set;
|
||||
binding = env0_0;
|
||||
items = [];
|
||||
arraySpread(items, require, 0, 0);
|
||||
Reflect.apply(set, map, [binding, items]);
|
||||
}
|
||||
return {errorHintsByQuestId: map};
|
||||
}
|
||||
return a0;
|
||||
}
|
||||
|
||||
function _fun56713(a0) { // fn#56713, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7272:454, offset: 0x013cf680, size: 88 bytes, params: 2, frame: 13
|
||||
var map;
|
||||
const errorHintsByQuestId = a0.errorHintsByQuestId;
|
||||
if (errorHintsByQuestId.has(env0_0)) {
|
||||
map = new global.Map(a0.errorHintsByQuestId);
|
||||
map.delete(env0_0);
|
||||
return {errorHintsByQuestId: map};
|
||||
}
|
||||
return a0;
|
||||
}
|
||||
|
||||
function _fun56715(a0) { // fn#56715, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7272:617, offset: 0x013cf6fd, size: 152 bytes, params: 2, frame: 15
|
||||
const value2 = a0.errorHintsByQuestId.get(env0_0);
|
||||
if (value2 == null) {
|
||||
return a0;
|
||||
}
|
||||
const value3 = value2.filter(function({type}) {
|
||||
return type !== require;
|
||||
});
|
||||
if (value3.length === value2.length) {
|
||||
return a0;
|
||||
}
|
||||
const Map = global.Map;
|
||||
const map = new Map(a0.errorHintsByQuestId);
|
||||
if (value3.length === 0) {
|
||||
map.delete(env0_0);
|
||||
} else {
|
||||
map.set(env0_0, value3);
|
||||
}
|
||||
return {errorHintsByQuestId: map};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,107 @@
|
||||
/* Metro module 9494; source: modules/quests/EarnedDecisionRoundtripTracker.tsx; dependencies: [6, 7, 4401, 661, 4873, 683, 7071, 4876, 2] */
|
||||
function _fun74105(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74105, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9680:6, offset: 0x01d80ac7, size: 207 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const networkStore = importDefault(4401) /* metro dependency 4401: NetworkStore */;
|
||||
const env0_6 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
let value = _fun74107();
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/EarnedDecisionRoundtripTracker.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function trackRoundtrip_74106(a0) { // fn#74106, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9680:151, offset: 0x01d80b96, size: 355 bytes, params: 2, frame: 22
|
||||
var r10;
|
||||
var apiResponseTimestamp;
|
||||
var signalStrength;
|
||||
var defaultImport;
|
||||
var track;
|
||||
var EARNED_DECISION_ROUNDTRIP;
|
||||
var object2;
|
||||
const Math = global.Math;
|
||||
let value = Math.random();
|
||||
if (!(value > 0.1)) {
|
||||
apiResponseTimestamp = a0.apiResponseTimestamp;
|
||||
value = null;
|
||||
r10 = value == apiResponseTimestamp ? value : a0.apiResponseTimestamp - a0.initialSendTimestamp;
|
||||
signalStrength = require(dependencyMap[4]).getSignalStrength();
|
||||
defaultImport = importDefault(dependencyMap[5]);
|
||||
track = defaultImport.track;
|
||||
EARNED_DECISION_ROUNDTRIP = AnalyticEvents.EARNED_DECISION_ROUNDTRIP;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, importDefault(dependencyMap[6])(), dependencyMap);
|
||||
object2['endpoint'] = a0.endpoint;
|
||||
object2['was_successful'] = a0.wasSuccessful;
|
||||
object2['api_latency_ms'] = r10;
|
||||
object2['mobile_network_type'] = NetworkStore.getType();
|
||||
value = value != signalStrength;
|
||||
copyDataProperties(object2, value && ({mobile_signal_strength_level: signalStrength}), dependencyMap);
|
||||
object2['caller_source'] = a0.callerSource;
|
||||
object2['request_id'] = a0.requestId;
|
||||
object2['fetched_at'] = a0.fetchedAt;
|
||||
value = require(dependencyMap[7]);
|
||||
value = value.isForegrounded();
|
||||
object2['is_foregrounded'] = value;
|
||||
Reflect.apply(track, defaultImport, [EARNED_DECISION_ROUNDTRIP, object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun74107() { // fn#74107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9680:648, offset: 0x01d80cf9, size: 86 bytes, params: 1, frame: 15
|
||||
return env0_4(EarnedDecisionRoundtripTracker, [{key: 'recordEarnedRequestAttempt', value: function(a0, a1) {
|
||||
var env0_0 = this;
|
||||
var env0_1 = a0;
|
||||
var object = {'initialSendTimestamp': null, 'endpoint': '/quests/earned-decision', 'apiResponseTimestamp': null,
|
||||
'wasSuccessful': false, 'callerSource': null, 'requestId': null, 'fetchedAt': null};
|
||||
object.initialSendTimestamp = global.Date.now();
|
||||
object.callerSource = a1;
|
||||
this.pendingRequests.set(a0, object);
|
||||
global.setTimeout(_fun74110, 30000);
|
||||
}}, {key: 'recordEarnedRequestApiResponse', value: value_74111}]);
|
||||
}
|
||||
|
||||
function value_74109(a0, a1) { // fn#74109, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9680:822, offset: 0x01d80d4f, size: 108 bytes, params: 3, frame: 16
|
||||
const env0_1 = a0;
|
||||
const object2 = {'initialSendTimestamp': null, 'endpoint': '/quests/earned-decision', 'apiResponseTimestamp': null,
|
||||
'wasSuccessful': false, 'callerSource': null, 'requestId': null, 'fetchedAt': null};
|
||||
const Date = global.Date;
|
||||
object2.initialSendTimestamp = Date.now();
|
||||
object2.callerSource = a1;
|
||||
this.pendingRequests.set(a0, object2);
|
||||
global.setTimeout(_fun74110, 30000);
|
||||
}
|
||||
|
||||
function value_74111(a0, {wasSuccessful, requestId, fetchedAt}) { // fn#74111, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9680:1193, offset: 0x01d80e06, size: 158 bytes, params: 3, frame: 19
|
||||
var value2;
|
||||
var trackRoundtrip_74106Binding;
|
||||
var object2;
|
||||
requestId = requestId === undefined ? null : requestId;
|
||||
fetchedAt = fetchedAt === undefined ? null : fetchedAt;
|
||||
let value = this.pendingRequests.get(a0);
|
||||
if (value != null) {
|
||||
value2 = environment.__proto__;
|
||||
trackRoundtrip_74106Binding = trackRoundtrip_74106;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value, undefined);
|
||||
value = global.Date.now();
|
||||
object2['apiResponseTimestamp'] = value;
|
||||
object2['wasSuccessful'] = wasSuccessful;
|
||||
object2['requestId'] = requestId;
|
||||
object2['fetchedAt'] = fetchedAt;
|
||||
trackRoundtrip_74106Binding(object2);
|
||||
this.pendingRequests.delete(a0);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun74110() { // fn#74110, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9680:1041, offset: 0x01d80dbb, size: 75 bytes, params: 1, frame: 12
|
||||
var value3;
|
||||
const value2 = env0_0.pendingRequests.get(env0_1);
|
||||
if (value2 != null) {
|
||||
value3 = environment.__proto__.__proto__;
|
||||
trackRoundtrip_74106(value2);
|
||||
env0_0.pendingRequests.delete(env0_1);
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,95 @@
|
||||
/* Metro module 9492; source: modules/quests/QuestBarRenderDelayTracker.tsx; dependencies: [6, 7, 661, 4826, 4831, 683, 9493, 2] */
|
||||
function _fun74090(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74090, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9678:6, offset: 0x01d805b7, size: 180 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
let value = _fun74091();
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/QuestBarRenderDelayTracker.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _fun74091() { // fn#74091, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9678:153, offset: 0x01d8066b, size: 163 bytes, params: 1, frame: 15
|
||||
return env0_4(QuestBarRenderDelayTracker, [{key: 'clearTimeoutTimer', value: function() {
|
||||
if (this.timeoutTimer != null) {
|
||||
global.clearTimeout(this.timeoutTimer);
|
||||
this.timeoutTimer = null;
|
||||
}
|
||||
}}, {key: 'sendMetric', value: value_74094}, {key: 'startTracking', value: function(a0) {
|
||||
var env0_0 = this;
|
||||
var env0_1 = a0;
|
||||
this.clearTracking();
|
||||
this.startTime = global.performance.now();
|
||||
this.questId = a0;
|
||||
this.timeoutTimer = global.setTimeout(_fun74096, 30000);
|
||||
}}, {key: 'stopTracking', value: value_74097}, {key: 'clearTracking', value: function() {
|
||||
this.clearTimeoutTimer();
|
||||
this.startTime = null;
|
||||
this.questId = null;
|
||||
}}]);
|
||||
}
|
||||
|
||||
function QuestBarRenderDelayTracker() { // fn#74092, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9678:174, offset: 0x01d8070e, size: 47 bytes, params: 1, frame: 13
|
||||
env1_3(this, QuestBarRenderDelayTracker);
|
||||
this.startTime = null;
|
||||
this.questId = null;
|
||||
this.timeoutTimer = null;
|
||||
}
|
||||
|
||||
function value_74094(a0, a1, a2) { // fn#74094, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9678:461, offset: 0x01d8076b, size: 229 bytes, params: 4, frame: 22
|
||||
var defaultImport;
|
||||
var distribution;
|
||||
var QUEST_BAR_RENDER_DELAY;
|
||||
var defaultImport2;
|
||||
var track;
|
||||
const Math = global.Math;
|
||||
let value = Math.random();
|
||||
if (!(value > 0.1)) {
|
||||
value = environment.__proto__;
|
||||
defaultImport = importDefault(4826) /* metro dependency 4826: MonitoringAgent */;
|
||||
distribution = defaultImport.distribution;
|
||||
QUEST_BAR_RENDER_DELAY = (require(4831) /* metro dependency 4831: MetricEvents */).MetricEvents.QUEST_BAR_RENDER_DELAY;
|
||||
Reflect.apply(distribution, defaultImport, [{name: QUEST_BAR_RENDER_DELAY, tags: ['quest_id:' + a0,
|
||||
'timeout:' + a1]}, a2]);
|
||||
defaultImport2 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
track = defaultImport2.track;
|
||||
QUEST_BAR_RENDER_DELAY = AnalyticEvents.QUEST_BAR_RENDER_DELAY;
|
||||
Reflect.apply(track, defaultImport2, [QUEST_BAR_RENDER_DELAY, {quest_id: a0, timeout: a1, duration: a2}]);
|
||||
}
|
||||
}
|
||||
|
||||
function value_74095(a0) { // fn#74095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9678:713, offset: 0x01d80850, size: 90 bytes, params: 2, frame: 15
|
||||
const env0_1 = a0;
|
||||
this.clearTracking();
|
||||
const performance = global.performance;
|
||||
this.startTime = performance.now();
|
||||
this.questId = a0;
|
||||
this.timeoutTimer = global.setTimeout(_fun74096, 30000);
|
||||
}
|
||||
|
||||
function value_74097(a0) { // fn#74097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9678:886, offset: 0x01d808c7, size: 187 bytes, params: 2, frame: 20
|
||||
let value = a1;
|
||||
const r4 = value !== undefined ? value : false;
|
||||
if (this.startTime !== null) {
|
||||
if (this.questId === a0) {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(9493) /* metro dependency 9493: DiscordAppStateNative */;
|
||||
value = value.getState();
|
||||
if (value === 'active') {
|
||||
value = 30000;
|
||||
value = global.Math.min(r4 ? value : global.Math.round(global.performance.now() - this.startTime),
|
||||
value);
|
||||
this.sendMetric(a0, r4, value);
|
||||
}
|
||||
this.clearTracking();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun74096() { // fn#74096, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9678:824, offset: 0x01d808aa, size: 29 bytes, params: 1, frame: 13
|
||||
env0_0.stopTracking(env0_1, true);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,162 @@
|
||||
/* Metro module 6528; source: modules/quests/QuestConstants.tsx; dependencies: [6529, 672, 6530, 507, 6531, 6535, 22, 2, 6536] */
|
||||
function _fun51399(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#51399, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6706:6, offset: 0x01234080, size: 2641 bytes, params: 8, frame: 42
|
||||
let Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let Set = global.Set;
|
||||
const QuestVariants = (require(6529) /* metro dependency 6529: QuestVariants */).QuestVariants;
|
||||
const NITRO_2_POINT_0_CTA = QuestVariants.NITRO_2_POINT_0_CTA;
|
||||
const ORBS_MULTIPLIER_QUEST = QuestVariants.ORBS_MULTIPLIER_QUEST;
|
||||
const XBOX_GAME_PASS_QUEST = QuestVariants.XBOX_GAME_PASS_QUEST;
|
||||
let set = new Set([NITRO_2_POINT_0_CTA, ORBS_MULTIPLIER_QUEST, XBOX_GAME_PASS_QUEST]);
|
||||
const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
const MINUTE = Millis.MINUTE;
|
||||
const Quests = (require(6530) /* metro dependency 6530: Quests */).Quests;
|
||||
const ConsecutiveHeartbeatPeriodMinutes = Quests.ConsecutiveHeartbeatPeriodMinutes;
|
||||
const value2 = MINUTE * ConsecutiveHeartbeatPeriodMinutes;
|
||||
const aPIBaseURL = (require(507) /* metro dependency 507: HTTPUtils */).getAPIBaseURL();
|
||||
const r16 = aPIBaseURL.indexOf('localhost') !== -1 ? '' + aPIBaseURL + '/_cdn_storage/' : aPIBaseURL.indexOf('127.0.0.1') === -1 ? 'https://cdn.discordapp.com/' : '' + aPIBaseURL + '/_cdn_storage/';
|
||||
const value9 = r16 + 'quests/';
|
||||
Set = global.Set;
|
||||
const {DESKTOP_ACCOUNT_PANEL_AREA, MOBILE_HOME_DOCK_AREA, QUEST_HOME_BANNER_DESKTOP, QUEST_HOME_MOBILE_CAROUSEL,
|
||||
VIDEO_MODAL_MOBILE} = (require(6531) /* metro dependency 6531: QuestTypes */).QuestPlacement;
|
||||
set = new Set([DESKTOP_ACCOUNT_PANEL_AREA, MOBILE_HOME_DOCK_AREA, QUEST_HOME_BANNER_DESKTOP,
|
||||
QUEST_HOME_MOBILE_CAROUSEL, VIDEO_MODAL_MOBILE]);
|
||||
Set = global.Set;
|
||||
const FirstPartyQuestTaskTypes = (require(6535) /* metro dependency 6535: FirstPartyQuestTaskTypes */).FirstPartyQuestTaskTypes;
|
||||
let STREAM_ON_DESKTOP = FirstPartyQuestTaskTypes.STREAM_ON_DESKTOP;
|
||||
let PLAY_ON_DESKTOP = FirstPartyQuestTaskTypes.PLAY_ON_DESKTOP;
|
||||
let PLAY_ON_XBOX = FirstPartyQuestTaskTypes.PLAY_ON_XBOX;
|
||||
let PLAY_ON_PLAYSTATION = FirstPartyQuestTaskTypes.PLAY_ON_PLAYSTATION;
|
||||
let PLAY_ACTIVITY = FirstPartyQuestTaskTypes.PLAY_ACTIVITY;
|
||||
set = new Set([STREAM_ON_DESKTOP, PLAY_ON_DESKTOP, PLAY_ON_XBOX, PLAY_ON_PLAYSTATION, PLAY_ACTIVITY]);
|
||||
Set = global.Set;
|
||||
STREAM_ON_DESKTOP = FirstPartyQuestTaskTypes.STREAM_ON_DESKTOP;
|
||||
PLAY_ON_DESKTOP = FirstPartyQuestTaskTypes.PLAY_ON_DESKTOP;
|
||||
PLAY_ON_XBOX = FirstPartyQuestTaskTypes.PLAY_ON_XBOX;
|
||||
PLAY_ON_PLAYSTATION = FirstPartyQuestTaskTypes.PLAY_ON_PLAYSTATION;
|
||||
PLAY_ACTIVITY = FirstPartyQuestTaskTypes.PLAY_ACTIVITY;
|
||||
set = new Set([STREAM_ON_DESKTOP, PLAY_ON_DESKTOP, PLAY_ON_XBOX, PLAY_ON_PLAYSTATION, PLAY_ACTIVITY]);
|
||||
Set = global.Set;
|
||||
STREAM_ON_DESKTOP = FirstPartyQuestTaskTypes.STREAM_ON_DESKTOP;
|
||||
PLAY_ON_DESKTOP = FirstPartyQuestTaskTypes.PLAY_ON_DESKTOP;
|
||||
PLAY_ON_XBOX = FirstPartyQuestTaskTypes.PLAY_ON_XBOX;
|
||||
PLAY_ON_PLAYSTATION = FirstPartyQuestTaskTypes.PLAY_ON_PLAYSTATION;
|
||||
PLAY_ACTIVITY = FirstPartyQuestTaskTypes.PLAY_ACTIVITY;
|
||||
set = new Set([STREAM_ON_DESKTOP, PLAY_ON_DESKTOP, PLAY_ON_XBOX, PLAY_ON_PLAYSTATION, PLAY_ACTIVITY]);
|
||||
const object = {VIDEO: 'task_video', PLAY: 'task_play'};
|
||||
const object2 = {VIRTUAL_CURRENCY: 'reward_virtual_currency', COLLECTIBLE: 'reward_collectible',
|
||||
IN_GAME: 'reward_in_game'};
|
||||
const PLAY = object.PLAY;
|
||||
const items6 = [{group: 'task', filter: PLAY}];
|
||||
const VIDEO = object.VIDEO;
|
||||
items6[1] = {group: 'task', filter: VIDEO};
|
||||
const VIRTUAL_CURRENCY = object2.VIRTUAL_CURRENCY;
|
||||
items6[2] = {group: 'reward', filter: VIRTUAL_CURRENCY};
|
||||
const COLLECTIBLE = object2.COLLECTIBLE;
|
||||
items6[3] = {group: 'reward', filter: COLLECTIBLE};
|
||||
const IN_GAME = object2.IN_GAME;
|
||||
items6[4] = {group: 'reward', filter: IN_GAME};
|
||||
const env0_2 = ['reward', 'task'];
|
||||
Object = global.Object;
|
||||
const entries = Object.entries;
|
||||
const value18 = require(22) /* metro dependency 22 */;
|
||||
const value20 = Reflect.apply(entries, Object, [value18.groupBy(items6, 'group')]).sort(_fun51400);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/QuestConstants.tsx');
|
||||
exports.QuestsExperimentLocations = {ACTIVITY_PANEL: 'quests_bar_activity_panel', QUESTS_MANAGER: 'quests_manager',
|
||||
QUESTS_CONSOLE_OPTIMISTIC_UPDATES_MANAGER: 'quests_console_optimistic_updates_manager',
|
||||
USER_SETTINGS_GIFT_INVENTORY: 'user_settings_gift_inventory',
|
||||
USER_SETTINGS_SEARCH_GIFT_INVENTORY: 'user_settings_search_gift_inventory', USE_QUESTS: 'use_quests',
|
||||
STREAM_SOURCE_SELECT: 'stream_source_select', MEMBERS_LIST: 'members_list', QUESTS_BAR: 'quests_bar',
|
||||
QUESTS_BAR_MOBILE: 'quests_bar_mobile', REWARD_CODE_MODAL: 'reward_code_modal',
|
||||
INGAME_REWARD_MODAL: 'ingame_reward_modal', INGAME_CONNECTION_MODAL: 'ingame_connection_modal',
|
||||
COLLECTIBLE_REWARD_MODAL: 'collectible_reward_modal', ORBS_REWARD_MODAL: 'orbs_reward_modal',
|
||||
QUESTS_MINOR_REWARD_CAPPING_CONFIG: 'QUESTS_MINOR_REWARD_CAPPING_CONFIG', QUESTS_CARD: 'quests_card',
|
||||
QUESTS_STORE: 'quests_store', QUEST_CHANNEL_CALL_HEADER: 'quests_channel_call_header',
|
||||
QUEST_HOME_DESKTOP: 'quest_home_desktop', QUEST_HOME_MOBILE: 'quest_home_mobile',
|
||||
QUEST_PROGRESS_BAR: 'quest_progress_bar', EMBED_MOBILE: 'embed_mobile', EMBED_DESKTOP: 'embed_desktop',
|
||||
QUEST_CONTEXT_MENU: 'context_menu', CODED_LINK: 'coded_link', QUEST_DISCLOSURE_MODAL: 'quest_disclosure_modal',
|
||||
DISCOVERY_SIDEBAR: 'discovery_sidebar', DISCOVERY_COMPASS: 'discovery_compass', BADGE: 'badge',
|
||||
COLLECTIBLES_SHOP_HEADER_BAR: 'collectibles_shop_header_bar',
|
||||
ORBS_ANNOUNCEMENT_MODAL: 'orbs_announcement_modal', CONFLICT_CHECKS: 'conflict_checks',
|
||||
VIDEO_MODAL: 'video_modal', VIDEO_MODAL_MOBILE: 'video_modal_mobile',
|
||||
GAME_WIDGETS_POPOVER: 'game_widgets_popover', PRIVATE_CHANNELS_LIST: 'private_channels_list',
|
||||
INTERNAL_TOOLING: 'internal_tooling', QUEST_HOME_MOVED_CALLOUT: 'quest_home_moved_callout',
|
||||
IN_APP_NAVIGATION: 'in_app_navigation', QUEST_DEEP_LINK_UTIL: 'quest_deep_link_util',
|
||||
YOU_TAB_PROFILE_HEADER: 'you_tab_profile_header', QUEST_INSTRUCTIONS: 'quest_instructions',
|
||||
QUEST_ACTIVITY_BOTTOM_SHEET: 'quest_activity_bottom_sheet', QUEST_PRIMARY_CTA: 'quest_primary_cta',
|
||||
QUEST_ACTIVITY_HEADER: 'quest_activity_header',
|
||||
QUEST_ACTIVITY_UNENROLLED_MODAL: 'quest_activity_unenrolled_modal',
|
||||
NITRO_HOME_MARKETING: 'nitro_home_marketing', NITRO_HOME_TAB: 'nitro_home_tab',
|
||||
QUEST_ORB_MULTIPLIER_TAB_TOOLTIP: 'quest_orb_multiplier_tab_tooltip',
|
||||
PLAY_QUEST_CONNECTION_MODAL: 'play_quest_connection_modal'};
|
||||
const DismissibleQuestContentFlags = (require(6536) /* metro dependency 6536: DismissibleQuestContentFlags */).DismissibleQuestContentFlags;
|
||||
exports.DismissibleQuestContentFlags = DismissibleQuestContentFlags;
|
||||
exports.QuestVariants = QuestVariants;
|
||||
exports.NitroQuestVariants = set;
|
||||
exports.QUESTS_SETTINGS_SECTION = 'inventory';
|
||||
exports.CONSECUTIVE_HEARTBEAT_PERIOD_MS = value2;
|
||||
exports.QUEST_BAR_SPRING_CONFIG_QUEST_ACCEPTED = {'tension': 900, 'friction': 45, 'clamp': true};
|
||||
exports.QUEST_BAR_SPRING_CONFIG_QUEST_UNACCEPTED = {'tension': 360, 'friction': 30, 'clamp': true};
|
||||
exports.MIN_SEC_UNTIL_NEXT_PROGRESS_UPDATE = 6;
|
||||
exports.MIN_SEC_NOISE_PROGRESS_UPDATE = 2;
|
||||
exports.QuestTaskPlatform = {CONSOLE: 'CONSOLE', DESKTOP: 'DESKTOP'};
|
||||
exports.QuestAuthMethod = {IN_GAME: 'in_game', WEB: 'web'};
|
||||
exports.QUEST_SPLIT_MODAL_PANEL_WIDTH = 454;
|
||||
exports.QUEST_SPLIT_MODAL_HERO_DISPLAY_MAX_HEIGHT = 190;
|
||||
exports.QUEST_SPLIT_MODAL_HERO_IMAGE_DENSITY = 2;
|
||||
exports.CDN_URL_BASE = r16;
|
||||
exports.QUESTS_CDN_URL_BASE = value9;
|
||||
exports.QuestDockMode = {COLLAPSED: 'collapsed', EXPANDED: 'expanded', CLOSED: 'closed',
|
||||
SOFT_DISMISSED: 'soft-dismissed', RESET_TO_PREVIOUS: 'reset-to-previous'};
|
||||
exports.DISCORD_APPLICATION_ID = '545364944258990091';
|
||||
exports.VideoKeyBindings = {PLAYBACK: 'k', SPACE: ' ', SEEK_BACK: 'j', SEEK_FORWARD: 'l', CAPTION: 'c',
|
||||
FULLSCREEN: 'f', MUTE: 'm'};
|
||||
exports.QUEST_REWARD_CODE_CLAIM_BOTTOM_SHEET_KEY = 'QuestRewardCodeClaimBottomSheet';
|
||||
exports.QUEST_REWARD_DETAILS_BOTTOM_SHEET_KEY = 'QuestRewardDetailsBottomSheet';
|
||||
exports.REWARD_CODE_PLACEHOLDER = '{reward_code}';
|
||||
exports.QuestEmbedFallbackReason = {EXCLUDED_QUEST: 'excluded_quest', UNKNOWN_QUEST: 'unknown_quest',
|
||||
NOT_SHAREABLE_QUEST: 'not_shareable_quest'};
|
||||
exports.BountyCarouselEmptyStateReason = {EMPTY: 'empty', COMPLETED: 'completed'};
|
||||
exports.ORBS_INTRO_QUEST_ID = '1333839522189938740';
|
||||
exports.MOBILE_ORBS_INTRO_QUEST_ID = '1410358070831480904';
|
||||
exports.PLAY_ACTIVITY_CLOUD_GAMING_QUEST_ID = '1420556874629251124';
|
||||
exports.PLAY_ACTIVITY_SOCIAL_ENTRY_APPLICATION_ID = '1402418703554842694';
|
||||
exports.DEFAULT_VIRTUAL_CURRENCY_QUEST_HOME_HERO_ID = '1496993616537587813';
|
||||
exports.DEFAULT_GENERIC_QUEST_HOME_HERO_ID = '1496993616537587812';
|
||||
exports.DEFAULT_PLACEHOLDER_ENTRYPOINT_BOUNTY_ID = '1514687533122982012';
|
||||
exports.BILLABLE_PLACEMENTS = set;
|
||||
exports.ACTIVE_NOW_SOCIAL_ENTRY_POINT_ALLOWED_TASK_TYPES = set;
|
||||
exports.CHANNEL_HEADER_SOCIAL_ENTRY_POINT_ALLOWED_TASK_TYPES = set;
|
||||
exports.MEMBER_LIST_SOCIAL_ENTRY_POINT_ALLOWED_TASK_TYPES = set;
|
||||
exports.EMPTY_AD_DECISION_DATA = {is_targeted: false};
|
||||
exports.QuestHomeSortMethods = {SUGGESTED: 'suggested', MOST_RECENT: 'most_recent', EXPIRING_SOON: 'expiring_soon',
|
||||
RECENTLY_ENROLLED: 'recently_enrolled'};
|
||||
exports.TaskFilterTypes = object;
|
||||
exports.RewardFilterTypes = object2;
|
||||
exports.getQuestHomeFilterOptionItem = getQuestHomeFilterOptionItem;
|
||||
exports.SORTED_QUEST_HOME_FILTER_GROUPS = value20;
|
||||
}
|
||||
|
||||
function _fun51400(a0, a1) { // fn#51400, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6706:5051, offset: 0x01234ad1, size: 79 bytes, params: 3, frame: 13
|
||||
const binding = env0_2;
|
||||
const value2 = 0;
|
||||
const value3 = binding.indexOf(a0[value2]);
|
||||
const value = env0_2.indexOf(a1[value2]);
|
||||
return value3 < value ? -1 : value < value3 ? 1 : value2;
|
||||
}
|
||||
|
||||
function getQuestHomeFilterOptionItem(a0) { // fn#51401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6706:6940, offset: 0x01234b20, size: 116 bytes, params: 2, frame: 14
|
||||
var r0;
|
||||
const Object = global.Object;
|
||||
var value;
|
||||
const value2 = Object.values(env0_0);
|
||||
if (value2.includes(a0)) {
|
||||
r0 = {group: 'task', filter: a0};
|
||||
} else {
|
||||
value = global.Object.values(env0_1);
|
||||
value = value.includes(a0);
|
||||
r0 = value ? {group: 'reward', filter: a0} : null;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,171 @@
|
||||
/* Metro module 9490; source: modules/quests/QuestDecisionRoundtripTracker.tsx; dependencies: [6, 7, 4401, 7093, 661, 4873, 683, 7071, 4876, 7108, 2] */
|
||||
function _fun74080(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9676:6, offset: 0x01d7fec2, size: 223 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const networkStore = importDefault(4401) /* metro dependency 4401: NetworkStore */;
|
||||
const questStore = importDefault(7093) /* metro dependency 7093: QuestStore */;
|
||||
const env0_7 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
let value = _fun74082();
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/QuestDecisionRoundtripTracker.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function trackRoundtrip_74081(a0, a1, a2) { // fn#74081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9676:161, offset: 0x01d7ffa1, size: 469 bytes, params: 4, frame: 22
|
||||
var r9;
|
||||
var decision_id;
|
||||
var fetchedAt;
|
||||
var apiResponseTimestamp;
|
||||
var value4;
|
||||
var signalStrength;
|
||||
var defaultImport;
|
||||
var track;
|
||||
var QUEST_DECISION_ROUNDTRIP;
|
||||
var object2;
|
||||
var previousAdDecision;
|
||||
const Math = global.Math;
|
||||
let value = Math.random();
|
||||
if (!(value > 0.1)) {
|
||||
apiResponseTimestamp = a0.apiResponseTimestamp;
|
||||
value = null;
|
||||
r9 = value == apiResponseTimestamp ? value : a0.apiResponseTimestamp - a0.initialSendTimestamp;
|
||||
value4 = undefined;
|
||||
signalStrength = require(dependencyMap[5]).getSignalStrength();
|
||||
defaultImport = importDefault(dependencyMap[6]);
|
||||
track = defaultImport.track;
|
||||
QUEST_DECISION_ROUNDTRIP = AnalyticEvents.QUEST_DECISION_ROUNDTRIP;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, importDefault(dependencyMap[7])(), dependencyMap);
|
||||
object2['endpoint'] = a0.endpoint;
|
||||
object2['was_successful'] = a0.wasSuccessful;
|
||||
object2['api_latency_ms'] = r9;
|
||||
object2['mobile_network_type'] = NetworkStore.getType();
|
||||
copyDataProperties(object2, value != signalStrength && ({mobile_signal_strength_level: signalStrength}),
|
||||
dependencyMap);
|
||||
object2['caller_source'] = a0.callerSource;
|
||||
object2['ad_request_id'] = a0.adRequestId;
|
||||
object2['fetched_at'] = a2;
|
||||
previousAdDecision = a0.previousAdDecision;
|
||||
decision_id = value == previousAdDecision || value == previousAdDecision.adDecisionData ? value4 : previousAdDecision.adDecisionData.decision_id;
|
||||
r9 = value != decision_id ? decision_id : value;
|
||||
object2['previous_ad_request_id'] = r9;
|
||||
previousAdDecision = a0.previousAdDecision;
|
||||
fetchedAt = value == previousAdDecision ? value4 : previousAdDecision.fetchedAt;
|
||||
object2['previous_fetched_at'] = value != fetchedAt ? fetchedAt : value;
|
||||
object2['transition_case'] = a1;
|
||||
value = require(dependencyMap[8]);
|
||||
value = value.isForegrounded();
|
||||
object2['is_foregrounded'] = value;
|
||||
Reflect.apply(track, defaultImport, [QUEST_DECISION_ROUNDTRIP, object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun74082() { // fn#74082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9676:893, offset: 0x01d80176, size: 86 bytes, params: 1, frame: 15
|
||||
return env0_4(QuestDecisionRoundtripTracker, [{key: 'recordQuestRequestAttempt', value: value_74084},
|
||||
{key: 'recordQuestRequestApiResponse', value: value_74086}]);
|
||||
}
|
||||
|
||||
function value_74084(a0, a1) { // fn#74084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9676:1064, offset: 0x01d80209, size: 233 bytes, params: 3, frame: 19
|
||||
var object2;
|
||||
var environment;
|
||||
var r7;
|
||||
let value = a2;
|
||||
const env0_1 = a0;
|
||||
const r4 = value !== undefined ? value : null;
|
||||
value = environment.__proto__;
|
||||
const defaultImport = importDefault(7108) /* metro dependency 7108: NewAdRequestBehaviorExperiment */;
|
||||
const getConfig = defaultImport.getConfig;
|
||||
const enableNewRequestBehavior = Reflect.apply(getConfig, defaultImport,
|
||||
[{location: 'recordQuestRequestAttempt'}]).enableNewRequestBehavior;
|
||||
const value2 = null;
|
||||
if (enableNewRequestBehavior) {
|
||||
if (value2 != r4) {
|
||||
value = QuestStore.questAdDecisionByPlacement.get(r4);
|
||||
r7 = value2 != value ? value : value2;
|
||||
} else {
|
||||
r7 = value2;
|
||||
}
|
||||
} else {
|
||||
r7 = value2;
|
||||
}
|
||||
object2 = {'initialSendTimestamp': null, 'endpoint': null, 'apiResponseTimestamp': null, 'wasSuccessful': false,
|
||||
'callerSource': null, 'adRequestId': null};
|
||||
const Date = global.Date;
|
||||
object2.initialSendTimestamp = Date.now();
|
||||
object2.endpoint = a0;
|
||||
object2.callerSource = a1;
|
||||
object2.previousAdDecision = r7;
|
||||
object2.placement = r4;
|
||||
this.pendingRequests.set(a0, object2);
|
||||
global.setTimeout(_fun74085, 30000);
|
||||
}
|
||||
|
||||
function value_74086(a0, {wasSuccessful, adRequestId, currentQuestId, currentFetchedAt}) { // fn#74086, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9676:1602, offset: 0x01d80343, size: 305 bytes, params: 3, frame: 25
|
||||
var environment;
|
||||
var r5;
|
||||
var r6;
|
||||
var value7;
|
||||
var defaultImport;
|
||||
var getConfig;
|
||||
var object2;
|
||||
var value9;
|
||||
var trackRoundtrip_74081Binding;
|
||||
adRequestId = adRequestId === undefined ? null : adRequestId;
|
||||
currentQuestId = currentQuestId === undefined ? null : currentQuestId;
|
||||
currentFetchedAt = currentFetchedAt === undefined ? null : currentFetchedAt;
|
||||
const value5 = this.pendingRequests.get(a0);
|
||||
if (value5 != null) {
|
||||
value7 = environment.__proto__;
|
||||
defaultImport = importDefault(7108) /* metro dependency 7108: NewAdRequestBehaviorExperiment */;
|
||||
getConfig = defaultImport.getConfig;
|
||||
object2 = {location: 'recordQuestRequestApiResponse'};
|
||||
if (Reflect.apply(getConfig, defaultImport, [object2]).enableNewRequestBehavior) {
|
||||
value9 = ((a0, a1) => {
|
||||
var closure = _fun74088;
|
||||
var value = undefined;
|
||||
var value2 = closure(a0);
|
||||
var value3 = closure(a1);
|
||||
return value2 !== 'quest' ? '' + value2 + '_to_' + value3 : value3 === 'quest' ? (a0 == null ? value : a0.questId) !== (a1 == null ? value : a1.questId) ? 'different_quest' : 'same_quest' : '' + value2 + '_to_' + value3;
|
||||
})(value5.previousAdDecision, currentFetchedAt === null ? null : {questId: currentQuestId,
|
||||
adCreativeId: currentQuestId, fetchedAt: currentFetchedAt, ttlMillis: 0,
|
||||
adDecisionData: adRequestId != null ? {decision_id: adRequestId} : undefined});
|
||||
r5 = currentFetchedAt;
|
||||
r6 = value9;
|
||||
} else {
|
||||
r5 = null;
|
||||
r6 = 'legacy';
|
||||
}
|
||||
trackRoundtrip_74081Binding = trackRoundtrip_74081;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value5, undefined);
|
||||
object2['apiResponseTimestamp'] = global.Date.now();
|
||||
object2['wasSuccessful'] = wasSuccessful;
|
||||
object2['adRequestId'] = adRequestId;
|
||||
trackRoundtrip_74081Binding(object2, r6, r5);
|
||||
this.pendingRequests.delete(a0);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun74085() { // fn#74085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9676:1436, offset: 0x01d802f2, size: 81 bytes, params: 1, frame: 16
|
||||
var value3;
|
||||
const value2 = env0_0.pendingRequests.get(env0_1);
|
||||
if (value2 != null) {
|
||||
value3 = environment.__proto__.__proto__;
|
||||
trackRoundtrip_74081(value2, 'timeout', null);
|
||||
env0_0.pendingRequests.delete(env0_1);
|
||||
}
|
||||
}
|
||||
|
||||
function computeTransitionCase(a0, a1) { // fn#74087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9676:1961, owner: value_74086.computeTransitionCase, offset: 0x01d80474, size: 124 bytes, params: 3, frame: 18
|
||||
const closure = function(a0) {
|
||||
return a0 == null ? 'null' : a0.questId == null ? 'no_serve' : 'quest';
|
||||
};
|
||||
const value = undefined;
|
||||
const value2 = closure(a0);
|
||||
const value3 = closure(a1);
|
||||
return value2 !== 'quest' ? '' + value2 + '_to_' + value3 : value3 === 'quest' ? (a0 == null ? value : a0.questId) !== (a1 == null ? value : a1.questId) ? 'different_quest' : 'same_quest' : '' + value2 + '_to_' + value3;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* Metro module 9481; source: modules/quests/QuestHomeNavigationStore.tsx; dependencies: [4024, 2] */
|
||||
function _fun73737(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73737, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9667:6, offset: 0x01d764cc, size: 110 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const zustandStore = (require(4024) /* metro dependency 4024: ZustandStore */).createZustandStore(function() {
|
||||
return {'sort': null, 'filter': null, 'scrollToQuestId': null};
|
||||
});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/QuestHomeNavigationStore.tsx');
|
||||
exports.default = zustandStore;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,28 @@
|
||||
/* Metro module 6531; source: modules/quests/QuestTypes.tsx; dependencies: [6532, 2, 6533, 6534] */
|
||||
function _fun51404(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#51404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6709:6, offset: 0x01234f66, size: 400 bytes, params: 8, frame: 23
|
||||
let Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const Set = global.Set;
|
||||
Object = global.Object;
|
||||
const values = Object.values;
|
||||
const QuestRewardCodePlatforms = (require(6532) /* metro dependency 6532: QuestRewardCodePlatforms */).QuestRewardCodePlatforms;
|
||||
let value = Reflect.apply(values, Object, [QuestRewardCodePlatforms]);
|
||||
value = value.filter(function(a0) {
|
||||
return typeof a0 === 'number';
|
||||
});
|
||||
const set = new Set(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/QuestTypes.tsx');
|
||||
exports.QuestsVisibleMessagesChangedSource = {FIRST_LAYOUT: 'FIRST_LAYOUT', SCROLL: 'SCROLL',
|
||||
VISIBILITY_CHANGED: 'VISIBILITY_CHANGED'};
|
||||
exports.QUEST_REWARD_CODE_PLATFORMS_SET = set;
|
||||
exports.QuestRewardCodePlatforms = QuestRewardCodePlatforms;
|
||||
const QuestContent = (require(6533) /* metro dependency 6533: QuestContent */).QuestContent;
|
||||
exports.QuestContent = QuestContent;
|
||||
const QuestPlacement = (require(6534) /* metro dependency 6534: QuestPlacement */).QuestPlacement;
|
||||
exports.QuestPlacement = QuestPlacement;
|
||||
exports.QuestConsoleStartErrorLocal = {GENERIC: 'generic', RATE_LIMITED: 'rate_limited'};
|
||||
exports.TaskPlatformScreen = {DESKTOP: 'desktop', CONSOLE: 'console', SELECT: 'select'};
|
||||
exports.VideoPauseReason = {PAUSE_BUTTON: 'PAUSE_BUTTON', LOST_FOCUS: 'LOST_FOCUS', MODAL_CLOSED: 'MODAL_CLOSED',
|
||||
ANOTHER_MODAL_OPENED: 'ANOTHER_MODAL_OPENED', PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE'};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
/* Metro module 7115; source: modules/quests/QuestUtmStore.tsx; dependencies: [629, 2] */
|
||||
function _fun56875(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7293:6, offset: 0x013d44e9, size: 111 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(629) /* metro dependency 629 */;
|
||||
value = value.create(function(a0) {
|
||||
var env0_0 = a0;
|
||||
return {utmSourceCurrent: undefined, utmMediumCurrent: undefined, utmCampaignCurrent: undefined,
|
||||
utmContentCurrent: undefined, setUtmCurrentContext: _fun56877, getUtmCurrentContext: _fun56878};
|
||||
});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/QuestUtmStore.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _fun56876(a0) { // fn#56876, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7293:114, offset: 0x013d4558, size: 55 bytes, params: 2, frame: 4
|
||||
const env0_0 = a0;
|
||||
return {utmSourceCurrent: undefined, utmMediumCurrent: undefined, utmCampaignCurrent: undefined,
|
||||
utmContentCurrent: undefined, setUtmCurrentContext: setUtmCurrentContext,
|
||||
getUtmCurrentContext: getUtmCurrentContext};
|
||||
}
|
||||
|
||||
function setUtmCurrentContext({utmSourceCurrent, utmMediumCurrent, utmCampaignCurrent, utmContentCurrent}) { // fn#56877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7293:239, offset: 0x013d458f, size: 65 bytes, params: 2, frame: 14
|
||||
return env0_0({utmSourceCurrent: utmSourceCurrent, utmMediumCurrent: utmMediumCurrent,
|
||||
utmCampaignCurrent: utmCampaignCurrent, utmContentCurrent: utmContentCurrent});
|
||||
}
|
||||
|
||||
function getUtmCurrentContext() { // fn#56878, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7293:428, offset: 0x013d45d0, size: 19 bytes, params: 1, frame: 9
|
||||
return env1_0.getState();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
/* Metro module 9951; source: modules/quests/SponsoredQuestUtils.native.tsx; dependencies: [2] */
|
||||
function _fun77937(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#77937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10137:6, offset: 0x01e133ae, size: 87 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/SponsoredQuestUtils.native.tsx');
|
||||
exports.createGameSheetHook = function(a0) {
|
||||
a0.quest;
|
||||
a0.sourceQuestContent;
|
||||
a0.applications;
|
||||
a0.popoutTargetElementRef;
|
||||
a0.onGameSheetOpened;
|
||||
a0.onGameSheetClosed;
|
||||
return _fun77939;
|
||||
};
|
||||
}
|
||||
|
||||
function createGameSheetHook(a0) { // fn#77938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10137:193, offset: 0x01e13405, size: 50 bytes, params: 2, frame: 2
|
||||
a0.quest;
|
||||
a0.sourceQuestContent;
|
||||
a0.applications;
|
||||
a0.popoutTargetElementRef;
|
||||
a0.onGameSheetOpened;
|
||||
a0.onGameSheetClosed;
|
||||
return function(a0) {
|
||||
return a0;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,108 @@
|
||||
/* Metro module 15385; source: modules/quests/UnenrolledActivityQuestStore.tsx; dependencies: [6, 7, 15, 17, 18, 21, 566, 694, 2] */
|
||||
function _fun117616(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117616, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15582:6, offset: 0x024bae13, size: 350 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
||||
let Set = global.Set;
|
||||
Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
new Set();
|
||||
Set = global.Set;
|
||||
let set = new Set();
|
||||
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
|
||||
set = _fun117620(PersistedStore);
|
||||
set.displayName = 'UnenrolledActivityQuestStore';
|
||||
set.persistKey = 'UnenrolledActivityQuestStore';
|
||||
set = new set(importDefault(694) /* metro dependency 694: Dispatcher */,
|
||||
{UNENROLLED_ACTIVITY_QUEST_DISMISS: UNENROLLED_ACTIVITY_QUEST_DISMISS,
|
||||
UNENROLLED_ACTIVITY_QUEST_AUTO_ENROLL: function(a0) {
|
||||
env0_8 = a0.autoEnroll;
|
||||
return true;
|
||||
}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/UnenrolledActivityQuestStore.tsx');
|
||||
exports.default = set;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_117617() { // fn#117617, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15582:148, offset: 0x024baf71, 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_117617_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun117620(a0) { // fn#117620, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15582:412, offset: 0x024bafd3, size: 149 bytes, params: 2, frame: 16
|
||||
const closure = UnenrolledActivityQuestStore;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: 'initialize', value: function(a0) {
|
||||
var r2;
|
||||
var r3;
|
||||
var property = global.Set;
|
||||
var value = undefined;
|
||||
r2 = a0 == null ? value : a0.dismissedQuestIds;
|
||||
r2 = r2 ?? [];
|
||||
var value3 = new property();
|
||||
r3 = a0 == null ? value : a0.autoEnroll;
|
||||
env1_8 = r3 != null && r3;
|
||||
return value;
|
||||
}}, {key: 'getState', value: value_117623}, {key: 'isDismissed', value: value_117624}, {key: 'getDismissedQuestIds',
|
||||
value: value_117625}]);
|
||||
}
|
||||
|
||||
function UNENROLLED_ACTIVITY_QUEST_DISMISS({questId}) { // fn#117626, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15582:1280, offset: 0x024bb0f1, size: 189 bytes, params: 2, frame: 15
|
||||
var value2;
|
||||
var value3;
|
||||
var slice;
|
||||
var Math;
|
||||
var value4;
|
||||
var Set;
|
||||
var value5;
|
||||
var set;
|
||||
if (env0_7.size >= 20) {
|
||||
value2 = global.Array.from(env0_7);
|
||||
value3 = value2.sort((importDefault(21) /* metro dependency 21: SnowflakeUtils */).compare);
|
||||
slice = value3.slice;
|
||||
Math = global.Math;
|
||||
value4 = Reflect.apply(slice, value3, [Math.floor(10)]);
|
||||
Set = global.Set;
|
||||
value5 = value4.map(function(a0) {
|
||||
return a0.toString();
|
||||
});
|
||||
set = new Set();
|
||||
}
|
||||
env0_7.add(questId);
|
||||
return true;
|
||||
}
|
||||
|
||||
function value_117623() { // fn#117623, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15582:930, offset: 0x024bb0cb, size: 38 bytes, params: 1, frame: 15
|
||||
const binding = env1_7;
|
||||
const items2 = [];
|
||||
arraySpread(items2, binding, 0, undefined);
|
||||
return {dismissedQuestIds: items2, autoEnroll: env1_8};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,148 @@
|
||||
/* Metro module 7095; source: modules/quests/VideoQuestUIStore.tsx; dependencies: [29, 685, 4025, 7096, 690, 7097, 2] */
|
||||
function _fun56718(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56718, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7273:6, offset: 0x013cf7dd, size: 363 bytes, params: 8, frame: 25
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(29) /* metro dependency 29 */;
|
||||
let value = require(685) /* metro dependency 685 */;
|
||||
value = value.createWithEqualityFn();
|
||||
const value2 = require(4025) /* metro dependency 4025 */;
|
||||
const persist = value2.persist;
|
||||
const object = {name: 'videoQuestUIState'};
|
||||
object.storage = value2.createJSONStorage(function() {
|
||||
return importDefault(dependencyMap[5]);
|
||||
});
|
||||
object.partialize = function(a0) {
|
||||
return {volume: a0.volume, muted: a0.muted, videoProgress: a0.videoProgress};
|
||||
};
|
||||
object.version = 0;
|
||||
value = value(Reflect.apply(persist, value2, [_fun56720, object]));
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/VideoQuestUIStore.tsx');
|
||||
exports.default = value;
|
||||
exports.DEFAULT_VIDEO_PROGRESS = {'timestampSec': 0, 'duration': 10, 'maxTimestampSec': 0};
|
||||
exports.VideoProgressState = {UNKNOWN: 'UNKNOWN', NOT_STARTED: 'NOT_STARTED', IN_PROGRESS: 'IN_PROGRESS',
|
||||
COMPLETED: 'COMPLETED'};
|
||||
exports.FetchStatus = {NONE: 'NONE', FETCHING: 'FETCHING', SUCCESS: 'SUCCESS', FAILURE: 'FAILURE'};
|
||||
exports.useVideoQuestUIStore = value;
|
||||
}
|
||||
|
||||
function _fun56720(a0, a1) { // fn#56720, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7273:748, offset: 0x013cf948, size: 181 bytes, params: 3, frame: 13
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const DEFAULT_VIDEO_VOLUME = (require(7096) /* metro dependency 7096: DiscordVideoPlayerTypes */).DEFAULT_VIDEO_VOLUME;
|
||||
return {'volume': null, 'muted': false, 'transcriptEnabled': false, 'captionEnabled': false, 'videoProgress': null,
|
||||
'transcript': null, volume: DEFAULT_VIDEO_VOLUME, videoProgress: {}, setVolume: setVolume_56721,
|
||||
setMuted: setMuted_56723, setVideoProgress: setVideoProgress, setTranscriptEnabled: setTranscriptEnabled,
|
||||
setCaptionEnabled: setCaptionEnabled, getVideoProgress: function(a0) {
|
||||
return require().videoProgress[a0];
|
||||
}, getVideoProgressState: getVideoProgressState, resetQuest: resetQuest, clearState: clearState,
|
||||
setTranscriptAsset: setTranscriptAsset};
|
||||
}
|
||||
|
||||
function setVolume_56721(a0) { // fn#56721, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7273:885, offset: 0x013cf9fd, size: 52 bytes, params: 2, frame: 12
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const value = environment.__proto__;
|
||||
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun56722);
|
||||
}
|
||||
|
||||
function setMuted_56723(a0) { // fn#56723, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7273:942, offset: 0x013cfa4f, size: 52 bytes, params: 2, frame: 12
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const value = environment.__proto__;
|
||||
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun56724);
|
||||
}
|
||||
|
||||
function setVideoProgress(a0, a1, a2) { // fn#56725, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7273:1006, offset: 0x013cfaa1, size: 139 bytes, params: 4, frame: 16
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const value = undefined;
|
||||
const property = require().videoProgress[a0];
|
||||
const r4 = (property == null ? value : property.maxTimestampSec) ?? 0;
|
||||
const Math = global.Math;
|
||||
const env0_3 = Math.max(r4, a1);
|
||||
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun56726);
|
||||
return value;
|
||||
}
|
||||
|
||||
function setTranscriptEnabled(a0) { // fn#56727, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7273:1255, offset: 0x013cfb82, size: 52 bytes, params: 2, frame: 12
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const value = environment.__proto__;
|
||||
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun56728);
|
||||
}
|
||||
|
||||
function setCaptionEnabled(a0) { // fn#56729, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7273:1332, offset: 0x013cfbd4, size: 52 bytes, params: 2, frame: 12
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const value = environment.__proto__;
|
||||
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun56730);
|
||||
}
|
||||
|
||||
function getVideoProgressState(a0) { // fn#56732, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7273:1451, offset: 0x013cfc42, size: 119 bytes, params: 2, frame: 10
|
||||
const property = require().videoProgress[a0];
|
||||
return property == null ? env1_4.UNKNOWN : property.timestampSec === 0 ? env1_4.NOT_STARTED : property.timestampSec >= property.duration ? env1_4.COMPLETED : env1_4.IN_PROGRESS;
|
||||
}
|
||||
|
||||
function resetQuest(a0) { // fn#56733, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7273:1605, offset: 0x013cfcb9, size: 52 bytes, params: 2, frame: 12
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const value = environment.__proto__;
|
||||
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun56734);
|
||||
}
|
||||
|
||||
function clearState() { // fn#56735, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7273:1735, offset: 0x013cfd40, size: 45 bytes, params: 1, frame: 12
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun56736);
|
||||
}
|
||||
|
||||
function setTranscriptAsset(a0) { // fn#56737, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7273:1813, offset: 0x013cfd86, size: 52 bytes, params: 2, frame: 12
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const value = environment.__proto__;
|
||||
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun56738);
|
||||
}
|
||||
|
||||
function _fun56722() { // fn#56722, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7273:912, offset: 0x013cfa31, size: 30 bytes, params: 1, frame: 11
|
||||
return env1_0({volume: env0_0});
|
||||
}
|
||||
|
||||
function _fun56724() { // fn#56724, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7273:969, offset: 0x013cfa83, size: 30 bytes, params: 1, frame: 11
|
||||
return env1_0({muted: env0_0});
|
||||
}
|
||||
|
||||
function _fun56726() { // fn#56726, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7273:1135, offset: 0x013cfb2c, size: 86 bytes, params: 1, frame: 17
|
||||
const binding = env1_0;
|
||||
const object = {};
|
||||
copyDataProperties(object, require().videoProgress, undefined);
|
||||
object[env0_0] = {timestampSec: require, duration: importDefault, maxTimestampSec: env0_3};
|
||||
return binding({videoProgress: object});
|
||||
}
|
||||
|
||||
function _fun56728() { // fn#56728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7273:1282, offset: 0x013cfbb6, size: 30 bytes, params: 1, frame: 11
|
||||
return env1_0({transcriptEnabled: env0_0});
|
||||
}
|
||||
|
||||
function _fun56730() { // fn#56730, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7273:1359, offset: 0x013cfc08, size: 30 bytes, params: 1, frame: 11
|
||||
return env1_0({captionEnabled: env0_0});
|
||||
}
|
||||
|
||||
function _fun56734() { // fn#56734, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7273:1632, offset: 0x013cfced, size: 83 bytes, params: 1, frame: 16
|
||||
const videoProgress = require().videoProgress;
|
||||
const binding = env0_0;
|
||||
videoProgress[binding];
|
||||
const binding2 = env2_3;
|
||||
const items = [binding];
|
||||
env1_0({videoProgress: binding2(videoProgress, items.map(_toPropertyKey_56719))});
|
||||
}
|
||||
|
||||
function _fun56736() { // fn#56736, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7273:1763, offset: 0x013cfd6d, size: 25 bytes, params: 1, frame: 11
|
||||
env1_0({videoProgress: {}});
|
||||
}
|
||||
|
||||
function _fun56738() { // fn#56738, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7273:1840, offset: 0x013cfdba, size: 30 bytes, params: 1, frame: 11
|
||||
env1_0({transcript: env0_0});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
/* Metro module 9519; source: modules/quests/experiments/AdAnalyticsInterfaceExperiment.tsx; dependencies: [1854, 2] */
|
||||
function _fun74259(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9705:6, offset: 0x01d877d4, size: 372 bytes, params: 8, frame: 24
|
||||
var object2;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object2 = {STEP_1_LOADED: 0};
|
||||
object2[0] = 'STEP_1_LOADED';
|
||||
object2.STEP_2_CLICKED_INTERNAL = 1;
|
||||
object2[1] = 'STEP_2_CLICKED_INTERNAL';
|
||||
object2.STEP_3_CLICKED_EXTERNAL = 2;
|
||||
object2[2] = 'STEP_3_CLICKED_EXTERNAL';
|
||||
object2.STEP_4_VIEWED_NON_IMPRESSION = 3;
|
||||
object2[3] = 'STEP_4_VIEWED_NON_IMPRESSION';
|
||||
object2.STEP_5_VIEWED_IMPRESSION = 4;
|
||||
object2[4] = 'STEP_5_VIEWED_IMPRESSION';
|
||||
let value = require(1854) /* metro dependency 1854: apex */;
|
||||
const createApexExperiment = value.createApexExperiment;
|
||||
const STEP_1_LOADED = object2.STEP_1_LOADED;
|
||||
const STEP_2_CLICKED_INTERNAL = object2.STEP_2_CLICKED_INTERNAL;
|
||||
const STEP_3_CLICKED_EXTERNAL = object2.STEP_3_CLICKED_EXTERNAL;
|
||||
const STEP_4_VIEWED_NON_IMPRESSION = object2.STEP_4_VIEWED_NON_IMPRESSION;
|
||||
const STEP_5_VIEWED_IMPRESSION = object2.STEP_5_VIEWED_IMPRESSION;
|
||||
value = Reflect.apply(createApexExperiment, value, [{'name': '2026-05-use-ad-analytics-interface', 'kind': 'user',
|
||||
defaultConfig: {'enabled': false, 'maxStep': -1}, variations: {[0]: {'enabled': false, 'maxStep': -1},
|
||||
[1]: {enabled: true, maxStep: STEP_1_LOADED}, [2]: {enabled: true, maxStep: STEP_2_CLICKED_INTERNAL},
|
||||
[3]: {enabled: true, maxStep: STEP_3_CLICKED_EXTERNAL}, [4]: {enabled: true,
|
||||
maxStep: STEP_4_VIEWED_NON_IMPRESSION}, [5]: {enabled: true, maxStep: STEP_5_VIEWED_IMPRESSION}}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/experiments/AdAnalyticsInterfaceExperiment.tsx');
|
||||
exports.AdAnalyticsInterfaceExperimentStep = object2;
|
||||
exports.AdAnalyticsInterfaceExperiment = value;
|
||||
exports.shouldMigrateToAdAnalyticsInterface = shouldMigrateToAdAnalyticsInterface;
|
||||
}
|
||||
|
||||
function shouldMigrateToAdAnalyticsInterface(a0, a1) { // fn#74260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9705:1014, offset: 0x01d87948, size: 50 bytes, params: 3, frame: 12
|
||||
const config = env0_0.getConfig({location: a1});
|
||||
return config.enabled && a0 <= config.maxStep;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
/* Metro module 9530; source: modules/quests/experiments/BountiesStage1Experiment.tsx; dependencies: [1854, 2] */
|
||||
function _fun74336(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74336, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9716:6, offset: 0x01d8a98d, size: 321 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(1854) /* metro dependency 1854: apex */;
|
||||
value = value.createApexExperiment({'name': '2026-05-bounties-stage-1', 'kind': 'user',
|
||||
defaultConfig: {'enabled': false, 'verticalScrollEnabled': false, 'loopingEnabled': false,
|
||||
'ctaTimerMilliSeconds': 3000, 'rewardTimerSeconds': 15, 'orbAmount': 50}, variations: {[1]: {'enabled': true,
|
||||
'verticalScrollEnabled': false, 'loopingEnabled': false, 'ctaTimerMilliSeconds': 3000, 'rewardTimerSeconds': 15,
|
||||
'orbAmount': 50}, [2]: {'enabled': true, 'verticalScrollEnabled': false, 'loopingEnabled': true,
|
||||
'ctaTimerMilliSeconds': 3000, 'rewardTimerSeconds': 15, 'orbAmount': 50}, [3]: {'enabled': true,
|
||||
'verticalScrollEnabled': false, 'loopingEnabled': false, 'ctaTimerMilliSeconds': 3000, 'rewardTimerSeconds': 15,
|
||||
'orbAmount': 30}, [4]: {'enabled': true, 'verticalScrollEnabled': false, 'loopingEnabled': false,
|
||||
'ctaTimerMilliSeconds': 0, 'rewardTimerSeconds': 15, 'orbAmount': 50}, [5]: {'enabled': true,
|
||||
'verticalScrollEnabled': false, 'loopingEnabled': false, 'ctaTimerMilliSeconds': 3000, 'rewardTimerSeconds': 25,
|
||||
'orbAmount': 50}, [6]: {'enabled': true, 'verticalScrollEnabled': true, 'loopingEnabled': false,
|
||||
'ctaTimerMilliSeconds': 3000, 'rewardTimerSeconds': 15, 'orbAmount': 50}, [7]: {'enabled': true,
|
||||
'verticalScrollEnabled': true, 'loopingEnabled': true, 'ctaTimerMilliSeconds': 3000, 'rewardTimerSeconds': 15,
|
||||
'orbAmount': 50}, [8]: {'enabled': true, 'verticalScrollEnabled': true, 'loopingEnabled': false,
|
||||
'ctaTimerMilliSeconds': 3000, 'rewardTimerSeconds': 15, 'orbAmount': 30}, [9]: {'enabled': true,
|
||||
'verticalScrollEnabled': true, 'loopingEnabled': false, 'ctaTimerMilliSeconds': 0, 'rewardTimerSeconds': 15,
|
||||
'orbAmount': 50}, [10]: {'enabled': true, 'verticalScrollEnabled': true, 'loopingEnabled': false,
|
||||
'ctaTimerMilliSeconds': 3000, 'rewardTimerSeconds': 25, 'orbAmount': 50}}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/experiments/BountiesStage1Experiment.tsx');
|
||||
exports.BountiesStage1Experiment = value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* Metro module 9531; source: modules/quests/experiments/BountyUseVideoModalMobilePlacementExperiment.tsx; dependencies: [1854, 2] */
|
||||
function _fun74337(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74337, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9717:6, offset: 0x01d8aace, size: 155 bytes, params: 8, frame: 21
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(1854) /* metro dependency 1854: apex */;
|
||||
value = value.createApexExperiment({'name': '2026-06-bounty-use-video-modal-mobile-placement-experiment',
|
||||
'kind': 'user', defaultConfig: {enabled: false}, variations: {[1]: {enabled: false}, [2]: {enabled: true}}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/experiments/BountyUseVideoModalMobilePlacementExperiment.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* Metro module 9491; source: modules/quests/experiments/LessPersonalizedAdsExperiment.tsx; dependencies: [1854, 2] */
|
||||
function _fun74089(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9677:6, offset: 0x01d8051c, size: 155 bytes, params: 8, frame: 21
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(1854) /* metro dependency 1854: apex */;
|
||||
value = value.createApexExperiment({'name': '2026-01-less-personalized-ads', 'kind': 'user',
|
||||
defaultConfig: {enabled: false}, variations: {[0]: {enabled: false}, [1]: {enabled: true}}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/experiments/LessPersonalizedAdsExperiment.tsx');
|
||||
exports.LessPersonalizedAdsExperiment = value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
/* Metro module 7108; source: modules/quests/experiments/NewAdRequestBehaviorExperiment.tsx; dependencies: [1854, 2] */
|
||||
function _fun56790(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56790, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7286:6, offset: 0x013d1e4a, size: 202 bytes, params: 8, frame: 22
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(1854) /* metro dependency 1854: apex */;
|
||||
value = value.createApexExperiment({'name': '2025-10-ad-request-behavior-experiment', 'kind': 'user',
|
||||
defaultConfig: {enableNewRequestBehavior: false}, variations: {[1]: {enableNewRequestBehavior: false},
|
||||
[2]: {enableNewRequestBehavior: true}, [3]: {enableNewRequestBehavior: false},
|
||||
[4]: {enableNewRequestBehavior: true}, [5]: {enableNewRequestBehavior: true},
|
||||
[6]: {enableNewRequestBehavior: true}}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/experiments/NewAdRequestBehaviorExperiment.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* Metro module 9528; source: modules/quests/experiments/QuestHomeBountiesExperiment.tsx; dependencies: [1854, 2] */
|
||||
function _fun74333(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74333, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9714:6, offset: 0x01d8a80f, size: 145 bytes, params: 8, frame: 20
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(1854) /* metro dependency 1854: apex */;
|
||||
value = value.createApexExperiment({'name': '2026-03-quest-home-bounties', 'kind': 'user',
|
||||
defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/experiments/QuestHomeBountiesExperiment.tsx');
|
||||
exports.QuestHomeBountiesExperiment = value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,201 @@
|
||||
/* Metro module 9511; source: modules/quests/experiments/index.tsx; dependencies: [57, 31, 6528, 1854, 9502, 9503, 9512, 672, 2] */
|
||||
function _fun74201(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74201, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9697:6, offset: 0x01d84540, size: 2175 bytes, params: 8, frame: 47
|
||||
var object2;
|
||||
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 env0_4 = (require(6528) /* metro dependency 6528: QuestConstants */).QuestsExperimentLocations;
|
||||
let value = require(1854) /* metro dependency 1854: apex */;
|
||||
let createApexExperiment = value.createApexExperiment;
|
||||
value = Reflect.apply(createApexExperiment, value, [{'name': '2025-11-video-end-card-v2', 'kind': 'user',
|
||||
defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}}]);
|
||||
const apexExperiment = (require(1854) /* metro dependency 1854: apex */).createApexExperiment({'name': '2026-02-new-video-quest-progress-bar-styling',
|
||||
'kind': 'user', defaultConfig: {enabled: false}, variations: {[0]: {enabled: false}, [1]: {enabled: true}}});
|
||||
const apexExperiment2 = (require(1854) /* metro dependency 1854: apex */).createApexExperiment({'name': '2026-03-desktop-activity-quest-header',
|
||||
'kind': 'user', defaultConfig: {'enabled': false, 'showSkipButton': false}, variations: {[1]: {'enabled': true,
|
||||
'showSkipButton': true}, [2]: {'enabled': true, 'showSkipButton': false}}});
|
||||
const apexExperiment3 = (require(1854) /* metro dependency 1854: apex */).createApexExperiment({'name': '2026-05-app-store-overlay-feature-gate',
|
||||
'kind': 'user', defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}});
|
||||
const apexExperiment4 = (require(1854) /* metro dependency 1854: apex */).createApexExperiment({'name': '2026-03-quest-reload-video-on-obscured',
|
||||
'kind': 'user', defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}});
|
||||
object2 = {DEFAULT: 0};
|
||||
object2[0] = 'DEFAULT';
|
||||
object2.AUTO_ENABLE_CAPTIONS = 1;
|
||||
object2[1] = 'AUTO_ENABLE_CAPTIONS';
|
||||
object2.AUTO_UNMUTE = 2;
|
||||
object2[2] = 'AUTO_UNMUTE';
|
||||
const apexModule = require(1854) /* metro dependency 1854: apex */;
|
||||
createApexExperiment = apexModule.createApexExperiment;
|
||||
const object3 = {'name': '2026-03-muted-video-quest-new-defaults', 'kind': 'user'};
|
||||
let DEFAULT = object2.DEFAULT;
|
||||
object3.defaultConfig = {enabled: false, variant: DEFAULT};
|
||||
DEFAULT = object2.DEFAULT;
|
||||
const AUTO_ENABLE_CAPTIONS = object2.AUTO_ENABLE_CAPTIONS;
|
||||
const AUTO_UNMUTE = object2.AUTO_UNMUTE;
|
||||
object3.variations = {[0]: {enabled: false, variant: DEFAULT}, [1]: {enabled: true, variant: AUTO_ENABLE_CAPTIONS},
|
||||
[2]: {enabled: true, variant: AUTO_UNMUTE}};
|
||||
const apexExperiment5 = Reflect.apply(createApexExperiment, apexModule, [object3]);
|
||||
const env0_5 = apexModule.createApexExperiment({'name': '2026-04-quests-premium-orb-multiplier-marketing',
|
||||
'kind': 'user', defaultConfig: {enabled: false}, variations: {[0]: {enabled: false}, [1]: {enabled: true}}});
|
||||
const apexExperiment6 = apexModule.createApexExperiment({'name': '2026-03-video-quest-player-refactor',
|
||||
'kind': 'user', defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}});
|
||||
const apexExperiment7 = apexModule.createApexExperiment({'name': '2026-04-composed-quest-player', 'kind': 'user',
|
||||
defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}});
|
||||
const object4 = {CONTROL: 0};
|
||||
object4[0] = 'CONTROL';
|
||||
object4.EARN_ORBS_PRIMARY = 1;
|
||||
object4[1] = 'EARN_ORBS_PRIMARY';
|
||||
object4.EARN_ORBS_ONLY = 2;
|
||||
object4[2] = 'EARN_ORBS_ONLY';
|
||||
const value10 = apexModule;
|
||||
createApexExperiment = value10.createApexExperiment;
|
||||
const object5 = {'name': '2026-04-mobile-quest-orb-reward-modal-cta-priority', 'kind': 'user'};
|
||||
let CONTROL = object4.CONTROL;
|
||||
object5.defaultConfig = {enabled: false, variant: CONTROL};
|
||||
CONTROL = object4.CONTROL;
|
||||
const EARN_ORBS_PRIMARY = object4.EARN_ORBS_PRIMARY;
|
||||
const EARN_ORBS_ONLY = object4.EARN_ORBS_ONLY;
|
||||
object5.variations = {[0]: {enabled: false, variant: CONTROL}, [1]: {enabled: true, variant: EARN_ORBS_PRIMARY},
|
||||
[2]: {enabled: true, variant: EARN_ORBS_ONLY}};
|
||||
const env0_6 = Reflect.apply(createApexExperiment, value10, [object5]);
|
||||
const apexExperiment8 = apexModule.createApexExperiment({'name': '2026-03-mobile-quest-home-red-dot-notification',
|
||||
'kind': 'user', defaultConfig: {enabled: false}, variations: {[0]: {enabled: false}, [1]: {enabled: true}}});
|
||||
const apexExperiment9 = apexModule.createApexExperiment({'name': '2026-04-quest-heartbeat-executable-fingerprint',
|
||||
'kind': 'user', defaultConfig: {enabled: false}, variations: {[0]: {enabled: false}, [1]: {enabled: true}}});
|
||||
const object6 = {CONTROL: 0};
|
||||
object6[0] = 'CONTROL';
|
||||
object6.NEW_LAYOUT_NO_SEARCH = 1;
|
||||
object6[1] = 'NEW_LAYOUT_NO_SEARCH';
|
||||
object6.NEW_LAYOUT_WITH_SEARCH = 2;
|
||||
object6[2] = 'NEW_LAYOUT_WITH_SEARCH';
|
||||
const value13 = apexModule;
|
||||
createApexExperiment = value13.createApexExperiment;
|
||||
const object7 = {'name': '2026-05-quest-home-new-layout', 'kind': 'user'};
|
||||
CONTROL = object6.CONTROL;
|
||||
object7.defaultConfig = {enabled: false, variant: CONTROL};
|
||||
CONTROL = object6.CONTROL;
|
||||
const NEW_LAYOUT_NO_SEARCH = object6.NEW_LAYOUT_NO_SEARCH;
|
||||
const NEW_LAYOUT_WITH_SEARCH = object6.NEW_LAYOUT_WITH_SEARCH;
|
||||
object7.variations = {[0]: {enabled: false, variant: CONTROL}, [1]: {enabled: true, variant: NEW_LAYOUT_NO_SEARCH},
|
||||
[2]: {enabled: true, variant: NEW_LAYOUT_WITH_SEARCH}};
|
||||
const apexExperiment10 = Reflect.apply(createApexExperiment, value13, [object7]);
|
||||
const apexExperiment11 = apexModule.createApexExperiment({'name': '2026-05-quest-home-tile-redesign',
|
||||
'kind': 'user', defaultConfig: {'useNewLayoutWithSearch': false, 'useNewTile': false,
|
||||
'useLargeFeaturedTiles': false, 'ctaOnHover': false}, variations: {[0]: {'useNewLayoutWithSearch': false,
|
||||
'useNewTile': false, 'useLargeFeaturedTiles': false, 'ctaOnHover': false}, [1]: {'useNewLayoutWithSearch': true,
|
||||
'useNewTile': false, 'useLargeFeaturedTiles': false, 'ctaOnHover': false}, [2]: {'useNewLayoutWithSearch': true,
|
||||
'useNewTile': true, 'useLargeFeaturedTiles': true, 'ctaOnHover': true}, [3]: {'useNewLayoutWithSearch': true,
|
||||
'useNewTile': true, 'useLargeFeaturedTiles': false, 'ctaOnHover': true}, [4]: {'useNewLayoutWithSearch': true,
|
||||
'useNewTile': true, 'useLargeFeaturedTiles': true, 'ctaOnHover': false}}});
|
||||
const apexExperiment12 = apexModule.createApexExperiment({'name': '2026-05-quest-home-remove-expired-quests',
|
||||
'kind': 'user', defaultConfig: {enabled: false}, variations: {[0]: {enabled: false}, [1]: {enabled: true}}});
|
||||
const apexExperiment13 = apexModule.createApexExperiment({'name': '2026-05-bounty-stale-refresh-quest-home',
|
||||
'kind': 'user', defaultConfig: {enabled: false}, variations: {[0]: {enabled: false}, [1]: {enabled: true}}});
|
||||
const env0_7 = apexModule.createApexExperiment({'name': '2026-06-remove-quest-home-hero', 'kind': 'user',
|
||||
defaultConfig: {enabled: false}, variations: {[0]: {enabled: false}, [1]: {enabled: true}}});
|
||||
let Date = global.Date;
|
||||
let date = new Date('2026-06-20T10:00:00-07:00');
|
||||
Date = global.Date;
|
||||
date = new Date('2026-06-23T10:00:00-07:00');
|
||||
const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
const MINUTE = Millis.MINUTE;
|
||||
const env0_10 = 5 * MINUTE;
|
||||
const object8 = {CONTROL: 0};
|
||||
object8[0] = 'CONTROL';
|
||||
object8.LARGE_MASK_MARGIN = 1;
|
||||
object8[1] = 'LARGE_MASK_MARGIN';
|
||||
object8.REMOVE_QUEST_TITLE_SUFFIX = 2;
|
||||
object8[2] = 'REMOVE_QUEST_TITLE_SUFFIX';
|
||||
object8.REPLACE_QUEST_NAME_WITH_GAME_PUBLISHER = 3;
|
||||
object8[3] = 'REPLACE_QUEST_NAME_WITH_GAME_PUBLISHER';
|
||||
const value22 = apexModule;
|
||||
createApexExperiment = value22.createApexExperiment;
|
||||
const object9 = {'name': '2026-06-quest-home-layout-visual-tweaks', 'kind': 'user'};
|
||||
CONTROL = object8.CONTROL;
|
||||
object9.defaultConfig = {enabled: false, variant: CONTROL};
|
||||
CONTROL = object8.CONTROL;
|
||||
const LARGE_MASK_MARGIN = object8.LARGE_MASK_MARGIN;
|
||||
const REMOVE_QUEST_TITLE_SUFFIX = object8.REMOVE_QUEST_TITLE_SUFFIX;
|
||||
const REPLACE_QUEST_NAME_WITH_GAME_PUBLISHER = object8.REPLACE_QUEST_NAME_WITH_GAME_PUBLISHER;
|
||||
object9.variations = {[0]: {enabled: false, variant: CONTROL}, [1]: {enabled: true, variant: LARGE_MASK_MARGIN},
|
||||
[2]: {enabled: true, variant: REMOVE_QUEST_TITLE_SUFFIX}, [3]: {enabled: true,
|
||||
variant: REPLACE_QUEST_NAME_WITH_GAME_PUBLISHER}};
|
||||
const apexExperiment14 = Reflect.apply(createApexExperiment, value22, [object9]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/experiments/index.tsx');
|
||||
exports.VideoEndCardV2Experiment = value;
|
||||
exports.NewVideoQuestProgressBarStylingExperiment = apexExperiment;
|
||||
exports.DesktopActivityQuestHeaderExperiment = apexExperiment2;
|
||||
exports.AppStoreBottomSheetOverlayFeatureGate = apexExperiment3;
|
||||
exports.QuestReloadVideoOnObscuredExperiment = apexExperiment4;
|
||||
exports.MutedVideoQuestNewDefaultsVariant = object2;
|
||||
exports.MutedVideoQuestNewDefaultsExperiment = apexExperiment5;
|
||||
exports.useQuestOrbsMultiplierMarketing = useQuestOrbsMultiplierMarketing;
|
||||
exports.VideoQuestPlayerRefactorExperiment = apexExperiment6;
|
||||
exports.ComposedQuestPlayerExperiment = apexExperiment7;
|
||||
exports.MobileQuestOrbRewardModalCtaPriorityVariant = object4;
|
||||
exports.useMobileQuestOrbRewardModalCtaPriorityExperiment = useMobileQuestOrbRewardModalCtaPriorityExperiment;
|
||||
exports.MobileQuestHomeRedDotNotificationExperiment = apexExperiment8;
|
||||
exports.QuestHeartbeatExecutableFingerprintExperiment = apexExperiment9;
|
||||
exports.QuestHomeNewLayoutVariant = object6;
|
||||
exports.QuestHomeNewLayout = apexExperiment10;
|
||||
exports.QuestHomeTileRedesignExperiment = apexExperiment11;
|
||||
exports.QuestHomeRemoveExpiredQuestsExperiment = apexExperiment12;
|
||||
exports.BountyStaleRefreshQuestHomeExperiment = apexExperiment13;
|
||||
exports.useShouldRemoveQuestHomeHero = useShouldRemoveQuestHomeHero;
|
||||
exports.QuestHomeLayoutVisualTweakVariant = object8;
|
||||
exports.QuestHomeLayoutVisualTweaksExperiment = apexExperiment14;
|
||||
}
|
||||
|
||||
function useQuestOrbsMultiplierMarketing(a0) { // fn#74202, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9697:5179, offset: 0x01d84dbf, size: 189 bytes, params: 2, frame: 17
|
||||
var object2;
|
||||
const binding = env0_5;
|
||||
const useConfig = binding.useConfig;
|
||||
const enabled = Reflect.apply(useConfig, binding, [{location: a0}]).enabled;
|
||||
const value2 = (require(9502) /* metro dependency 9502: QuestOrbMultiplierHooks */).useQuestOrbMultiplierEligibility();
|
||||
object2 = {};
|
||||
const QuestOrbMultiplierEligibilityType = (require(9503) /* metro dependency 9503: QuestOrbMultiplierUtils */).QuestOrbMultiplierEligibilityType;
|
||||
const INELIGIBLE = QuestOrbMultiplierEligibilityType.INELIGIBLE;
|
||||
object2.shouldShowBonusOrbsUX = value2 !== INELIGIBLE && value2 !== QuestOrbMultiplierEligibilityType.CREPE && enabled;
|
||||
const QuestOrbsMultiplier = (require(9512) /* metro dependency 9512: QuestOrbsMultiplier */).QuestOrbsMultiplier;
|
||||
const PREMIUM_TIER_2_MULTIPLIER_PERCENTAGE_POINTS = QuestOrbsMultiplier.PREMIUM_TIER_2_MULTIPLIER_PERCENTAGE_POINTS;
|
||||
object2.multiplier = PREMIUM_TIER_2_MULTIPLIER_PERCENTAGE_POINTS / 100;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function useMobileQuestOrbRewardModalCtaPriorityExperiment() { // fn#74203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9697:5712, offset: 0x01d84e7c, size: 36 bytes, params: 1, frame: 12
|
||||
const binding = env0_6;
|
||||
const useConfig = binding.useConfig;
|
||||
const ORBS_REWARD_MODAL = QuestsExperimentLocations.ORBS_REWARD_MODAL;
|
||||
return Reflect.apply(useConfig, binding, [{location: ORBS_REWARD_MODAL}]);
|
||||
}
|
||||
|
||||
function useShouldRemoveQuestHomeHero() { // fn#74204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9697:6128, offset: 0x01d84ea0, size: 154 bytes, params: 1, frame: 16
|
||||
let binding = env0_3;
|
||||
const [property, env0_0] = env0_2(binding.useState(function() {
|
||||
var Date = global.Date;
|
||||
var value = Object.create(Date.prototype, {constructor: {value: Date}});
|
||||
var value2 = new Date();
|
||||
return value2 instanceof Object ? value2 : value;
|
||||
}), 2);
|
||||
binding.useEffect(_fun74206, []);
|
||||
const r2 = property >= env0_8 && property < env0_9;
|
||||
binding = env0_7;
|
||||
const useConfig = binding.useConfig;
|
||||
return r2 ? Reflect.apply(useConfig, binding,
|
||||
[{location: r2 ? 'remove-quest-home-hero-eligible' : 'remove-quest-home-hero-ineligible'}]).enabled : !!r2;
|
||||
}
|
||||
|
||||
function _fun74206() { // fn#74206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9697:6237, offset: 0x01d84f58, size: 45 bytes, params: 1, frame: 14
|
||||
const env0_0 = global.setInterval(_fun74207, env1_10);
|
||||
return _fun74208;
|
||||
}
|
||||
|
||||
function _fun74207() { // fn#74207, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9697:6261, offset: 0x01d84f85, size: 44 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
const binding = env1_0;
|
||||
const Date = global.Date;
|
||||
return binding(new Date());
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,36 @@
|
||||
/* Metro module 9502; source: modules/quests/hooks/QuestOrbMultiplierHooks.tsx; dependencies: [1878, 566, 9503, 3802, 2] */
|
||||
function _fun74169(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9688:6, offset: 0x01d8301d, size: 135 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = getQuestOrbMultiplierEligibilityForUser;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/hooks/QuestOrbMultiplierHooks.tsx');
|
||||
exports.useQuestOrbMultiplierEligibility = function() {
|
||||
return require(dependencyMap[1]).useStateFromStores([UserStore], _fun74172);
|
||||
};
|
||||
exports.getQuestOrbMultiplierEligibilityForUser = closure;
|
||||
}
|
||||
|
||||
function getQuestOrbMultiplierEligibilityForUser(a0) { // fn#74170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9688:106, offset: 0x01d830a4, size: 296 bytes, params: 2, frame: 17
|
||||
var r0;
|
||||
var defaultImport;
|
||||
const QuestOrbMultiplierEligibilityType = (require(9503) /* metro dependency 9503: QuestOrbMultiplierUtils */).QuestOrbMultiplierEligibilityType;
|
||||
if (a0 == null) {
|
||||
r0 = QuestOrbMultiplierEligibilityType.INELIGIBLE;
|
||||
} else {
|
||||
defaultImport = importDefault(3802) /* metro dependency 3802: PremiumUtils */;
|
||||
r0 = defaultImport.canUseMoreQuestOrbs(a0) ? (require(9503) /* metro dependency 9503: QuestOrbMultiplierUtils */).getQuestOrbMultiplierSource(a0) === (require(9503) /* metro dependency 9503: QuestOrbMultiplierUtils */).QuestOrbMultiplierSource.CREPE ? QuestOrbMultiplierEligibilityType.CREPE : QuestOrbMultiplierEligibilityType.NITRO : a0 == null ? QuestOrbMultiplierEligibilityType.UPSELL : a0.isFractionalPremiumWithNoStandardSub() ? QuestOrbMultiplierEligibilityType.INELIGIBLE : QuestOrbMultiplierEligibilityType.UPSELL;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function useQuestOrbMultiplierEligibility() { // fn#74171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9688:702, offset: 0x01d831cc, size: 59 bytes, params: 1, frame: 13
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], _fun74172);
|
||||
}
|
||||
|
||||
function _fun74172() { // fn#74172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9688:785, offset: 0x01d83207, size: 29 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return getQuestOrbMultiplierEligibilityForUser(UserStore.getCurrentUser());
|
||||
}
|
||||
|
||||
@@ -0,0 +1,343 @@
|
||||
/* Metro module 9948; source: modules/quests/hooks/RewardCodeClaimHooks.tsx; dependencies: [5, 57, 31, 9484, 6531, 9949, 9513, 9519, 9517, 9518, 7121, 7120, 3847, 2] */
|
||||
function _fun77867(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#77867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10134:6, offset: 0x01e0efca, size: 185 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = useHandleRedemptionLinkClick;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_5 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/hooks/RewardCodeClaimHooks.tsx');
|
||||
exports.useClaimOrFetchRewardCode = useClaimOrFetchRewardCode;
|
||||
exports.useHandleRedemptionLinkClick = closure;
|
||||
exports.useClaimRewardCodePrimaryCtaClickHandler = useClaimRewardCodePrimaryCtaClickHandler;
|
||||
}
|
||||
|
||||
function useHandleRedemptionLinkClick({quest, redemptionLink, questContent, questContentPosition, sourceQuestContent}) { // fn#77868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10134:126, offset: 0x01e0f083, size: 181 bytes, params: 2, frame: 21
|
||||
const value2 = (require(9949) /* metro dependency 9949: AnalyticsHooks */).useTrackQuestContentClickedWithImpression();
|
||||
return value2.useCallback(_fun77869, [quest.id, questContent, questContentPosition, sourceQuestContent, value2,
|
||||
(require(9513) /* metro dependency 9513: ContentImpressionTrackerHooks */).useQuestImpressionId(),
|
||||
redemptionLink]);
|
||||
}
|
||||
|
||||
function useClaimOrFetchRewardCode({isClaimingReward, isFetchingRewardCode, questContent, quest, rewardCode, preview}) { // fn#77870, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10134:1484, offset: 0x01e0f371, size: 312 bytes, params: 2, frame: 27
|
||||
const env0_4 = rewardCode;
|
||||
const env0_5 = preview;
|
||||
let binding = env0_5;
|
||||
let useState = binding.useState;
|
||||
const value2 = Reflect.apply(useState, binding, [false]);
|
||||
binding = env0_4;
|
||||
const value3 = binding(value2, 2);
|
||||
const property = value3[0];
|
||||
const property2 = value3[1];
|
||||
const binding2 = env0_5;
|
||||
useState = binding2.useState;
|
||||
const value4 = binding(Reflect.apply(useState, binding2, [false]), 2);
|
||||
const property3 = value4[0];
|
||||
const env0_9 = value4[1];
|
||||
const value6 = env0_5.useCallback(_fun77871(), []);
|
||||
const value7 = env0_5.useCallback(_fun77875, []);
|
||||
env0_5.useEffect(_fun77876, [value6, value7, property, isClaimingReward, property3, isFetchingRewardCode,
|
||||
questContent, quest, rewardCode, preview]);
|
||||
return {claimCode: value6, fetchCode: value7, hasError: property, setHasError: property2};
|
||||
}
|
||||
|
||||
function useClaimRewardCodePrimaryCtaClickHandler(a0) { // fn#77877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10134:2397, offset: 0x01e0f67e, size: 334 bytes, params: 2, frame: 27
|
||||
const claimCode = a0.claimCode;
|
||||
const fetchCode = a0.fetchCode;
|
||||
const hasError = a0.hasError;
|
||||
const onDismiss = a0.onDismiss;
|
||||
const quest = a0.quest;
|
||||
const questContent = a0.questContent;
|
||||
const env0_5 = questContent;
|
||||
const questContentCTA = a0.questContentCTA;
|
||||
const value = undefined;
|
||||
const r10 = value !== questContentCTA ? questContentCTA : (require(7120) /* metro dependency 7120: AnalyticsTypes */).QuestContentCTA.GET_REWARD_CODE;
|
||||
const questContentPosition = a0.questContentPosition;
|
||||
const redemptionLink = a0.redemptionLink;
|
||||
const sourceQuestContent = a0.sourceQuestContent;
|
||||
const value4 = (require(9949) /* metro dependency 9949: AnalyticsHooks */).useTrackQuestContentClickedWithImpression();
|
||||
const value5 = (require(9513) /* metro dependency 9513: ContentImpressionTrackerHooks */).useQuestImpressionId();
|
||||
const value6 = useHandleRedemptionLinkClick(a0);
|
||||
const binding = env0_5;
|
||||
const useCallback = binding.useCallback;
|
||||
const userStatus = quest.userStatus;
|
||||
return Reflect.apply(useCallback, binding, [_fun77878, [claimCode, fetchCode, hasError, onDismiss, quest.id,
|
||||
userStatus == null ? value : userStatus.claimedAt, questContent, r10, questContentPosition, value4, value5,
|
||||
redemptionLink, sourceQuestContent, value6]]);
|
||||
}
|
||||
|
||||
function _fun77869() { // fn#77869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10134:364, offset: 0x01e0f138, size: 569 bytes, params: 1, frame: 27
|
||||
var value2;
|
||||
var moduleValue;
|
||||
var binding;
|
||||
var questBinding;
|
||||
var id;
|
||||
var questContentBinding;
|
||||
const QuestContentCTA = (require(7120) /* metro dependency 7120: AnalyticsTypes */).QuestContentCTA;
|
||||
var questContentPositionBinding;
|
||||
var sourceQuestContentBinding;
|
||||
var moduleValue2;
|
||||
var captureAdUserAction;
|
||||
const AdUserActionType = (require(9518) /* metro dependency 9518: captureAdUserActionTypes */).AdUserActionType;
|
||||
var CLICK_INTERNAL;
|
||||
const AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType;
|
||||
var QUEST;
|
||||
var moduleValue3;
|
||||
if (redemptionLink != null) {
|
||||
value2 = environment.__proto__;
|
||||
moduleValue = require(9519) /* metro dependency 9519: AdAnalyticsInterfaceExperiment */;
|
||||
if (moduleValue.shouldMigrateToAdAnalyticsInterface((require(9519) /* metro dependency 9519: AdAnalyticsInterfaceExperiment */).AdAnalyticsInterfaceExperimentStep.STEP_2_CLICKED_INTERNAL,
|
||||
|
||||
'quest_reward_code_redemption_link')) {
|
||||
moduleValue2 = require(9517) /* metro dependency 9517: captureAdUserAction */;
|
||||
captureAdUserAction = moduleValue2.captureAdUserAction;
|
||||
CLICK_INTERNAL = AdUserActionType.CLICK_INTERNAL;
|
||||
QUEST = AdCreativeType.QUEST;
|
||||
questBinding = quest;
|
||||
id = questBinding.id;
|
||||
questContentBinding = questContent;
|
||||
sourceQuestContentBinding = sourceQuestContent;
|
||||
binding = env0_6;
|
||||
questContentPositionBinding = questContentPosition;
|
||||
Reflect.apply(captureAdUserAction, moduleValue2, [{type: CLICK_INTERNAL, adCreativeType: QUEST,
|
||||
adCreativeId: id,
|
||||
questContentCTA: QuestContentCTA.REDEEM_REWARD, surfaceId: questContentBinding,
|
||||
sourceQuestContent: sourceQuestContentBinding, impressionId: binding,
|
||||
questContentPosition: questContentPositionBinding}]);
|
||||
moduleValue3 = require(9517) /* metro dependency 9517: captureAdUserAction */;
|
||||
captureAdUserAction = moduleValue3.captureAdUserAction;
|
||||
CLICK_INTERNAL = AdUserActionType.CLICK_INTERNAL;
|
||||
QUEST = AdCreativeType.QUEST;
|
||||
id = questBinding.id;
|
||||
Reflect.apply(captureAdUserAction, moduleValue3, [{type: CLICK_INTERNAL, adCreativeType: QUEST,
|
||||
adCreativeId: id,
|
||||
questContentCTA: QuestContentCTA.VISIT_REDEMPTION_LINK, surfaceId: questContentBinding,
|
||||
sourceQuestContent: sourceQuestContentBinding, impressionId: binding,
|
||||
questContentPosition: questContentPositionBinding}]);
|
||||
} else {
|
||||
binding = env0_5;
|
||||
questBinding = quest;
|
||||
id = questBinding.id;
|
||||
questContentBinding = questContent;
|
||||
questContentPositionBinding = questContentPosition;
|
||||
sourceQuestContentBinding = sourceQuestContent;
|
||||
binding({questId: id, questContent: questContentBinding, questContentCTA: QuestContentCTA.REDEEM_REWARD,
|
||||
questContentPosition: questContentPositionBinding, sourceQuestContent: sourceQuestContentBinding});
|
||||
id = questBinding.id;
|
||||
binding({questId: id, questContent: questContentBinding,
|
||||
questContentCTA: QuestContentCTA.VISIT_REDEMPTION_LINK,
|
||||
questContentPosition: questContentPositionBinding, sourceQuestContent: sourceQuestContentBinding});
|
||||
}
|
||||
(importDefault(3847) /* metro dependency 3847: openURL */)(redemptionLink);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun77871() { // fn#77871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10134:1722, offset: 0x01e0f4a9, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env1_3(_fun77873);
|
||||
return _fun77874;
|
||||
}
|
||||
|
||||
function _fun77875(a0) { // fn#77875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10134:1918, offset: 0x01e0f567, size: 63 bytes, params: 2, frame: 12
|
||||
var value;
|
||||
var property;
|
||||
var error;
|
||||
try {
|
||||
value = environment.__proto__;
|
||||
property = dependencyMap[3];
|
||||
value = require(property);
|
||||
value.fetchQuestRewardCode(a0);
|
||||
} catch (error) {
|
||||
value = environment;
|
||||
env0_7(true);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun77876() { // fn#77876, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10134:2000, offset: 0x01e0f5a6, size: 216 bytes, params: 1, frame: 17
|
||||
var binding;
|
||||
var value4;
|
||||
var userStatus;
|
||||
var id;
|
||||
var value5;
|
||||
let r1 = preview === true || rewardCode != null;
|
||||
r1 = !r1 ? env0_6 : r1;
|
||||
r1 = !r1 ? isClaimingReward : r1;
|
||||
r1 = !r1 ? env0_8 : r1;
|
||||
r1 = !r1 ? isFetchingRewardCode : r1;
|
||||
if (!r1) {
|
||||
value4 = undefined;
|
||||
env0_7(false);
|
||||
userStatus = quest.userStatus;
|
||||
if ((userStatus == null ? value4 : userStatus.claimedAt) == null) {
|
||||
binding = env0_10;
|
||||
id = quest.id;
|
||||
value5 = environment.__proto__;
|
||||
binding(id, (require(6531) /* metro dependency 6531: QuestTypes */).QuestRewardCodePlatforms.CROSS_PLATFORM,
|
||||
questContent);
|
||||
} else {
|
||||
userStatus = quest.userStatus;
|
||||
if ((userStatus == null ? value4 : userStatus.claimedAt) != null) {
|
||||
env0_11(quest.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun77878() { // fn#77878, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10134:2824, offset: 0x01e0f7cc, size: 433 bytes, params: 1, frame: 19
|
||||
var claimCodeBinding;
|
||||
var id;
|
||||
var value3;
|
||||
var moduleValue;
|
||||
var object2;
|
||||
var moduleValue2;
|
||||
var captureAdUserAction;
|
||||
if (hasError) {
|
||||
if (quest.userStatus?.claimedAt != null) {
|
||||
fetchCode(quest.id);
|
||||
} else {
|
||||
claimCodeBinding = claimCode;
|
||||
id = quest.id;
|
||||
value3 = environment.__proto__;
|
||||
claimCodeBinding(id,
|
||||
(require(6531) /* metro dependency 6531: QuestTypes */).QuestRewardCodePlatforms.CROSS_PLATFORM,
|
||||
questContent);
|
||||
moduleValue = require(9519) /* metro dependency 9519: AdAnalyticsInterfaceExperiment */;
|
||||
if (moduleValue.shouldMigrateToAdAnalyticsInterface((require(9519) /* metro dependency 9519: AdAnalyticsInterfaceExperiment */).AdAnalyticsInterfaceExperimentStep.STEP_2_CLICKED_INTERNAL,
|
||||
|
||||
|
||||
'quest_reward_code_primary_cta')) {
|
||||
moduleValue2 = require(9517) /* metro dependency 9517: captureAdUserAction */;
|
||||
captureAdUserAction = moduleValue2.captureAdUserAction;
|
||||
object2 = {};
|
||||
object2.type = (require(9518) /* metro dependency 9518: captureAdUserActionTypes */).AdUserActionType.CLICK_INTERNAL;
|
||||
object2.adCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType.QUEST;
|
||||
object2.adCreativeId = quest.id;
|
||||
object2.questContentCTA = env0_6;
|
||||
object2.surfaceId = questContent;
|
||||
object2.sourceQuestContent = sourceQuestContent;
|
||||
object2.impressionId = env0_11;
|
||||
object2.questContentPosition = questContentPosition;
|
||||
Reflect.apply(captureAdUserAction, moduleValue2, [object2]);
|
||||
} else {
|
||||
env0_10({questId: quest.id, questContent: questContent, questContentCTA: env0_6,
|
||||
questContentPosition: questContentPosition, sourceQuestContent: sourceQuestContent});
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (redemptionLink != null) {
|
||||
env0_12();
|
||||
}
|
||||
onDismiss();
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun77873(a0, a1, a2) { // fn#77873, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10134:1742, offset: 0x01e0f4d8, size: 143 bytes, params: 4, frame: 19
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value4;
|
||||
var claimQuestReward;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var error;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
try {
|
||||
binding = env2_9;
|
||||
} catch (error) {
|
||||
env2_7(true);
|
||||
env2_9(false);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding(true);
|
||||
} catch (error) {
|
||||
env2_7(true);
|
||||
env2_9(false);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding = env3_0;
|
||||
} catch (error) {
|
||||
env2_7(true);
|
||||
env2_9(false);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding2 = env3_2;
|
||||
} catch (error) {
|
||||
env2_7(true);
|
||||
env2_9(false);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
property = binding2[3];
|
||||
} catch (error) {
|
||||
env2_7(true);
|
||||
env2_9(false);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value4 = binding(property);
|
||||
} catch (error) {
|
||||
env2_7(true);
|
||||
env2_9(false);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
claimQuestReward = value4.claimQuestReward;
|
||||
} catch (error) {
|
||||
env2_7(true);
|
||||
env2_9(false);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value5 = Reflect.apply(claimQuestReward, value4, [a0, a1, a2]);
|
||||
} catch (error) {
|
||||
env2_7(true);
|
||||
env2_9(false);
|
||||
return undefined;
|
||||
}
|
||||
yield value5;
|
||||
try {
|
||||
value6 = undefined;
|
||||
value7 = false;
|
||||
} catch (error) {
|
||||
env2_7(true);
|
||||
env2_9(false);
|
||||
return undefined;
|
||||
}
|
||||
if (value7) {
|
||||
return value6;
|
||||
}
|
||||
try {
|
||||
binding = env2_7;
|
||||
} catch (error) {
|
||||
env2_7(true);
|
||||
env2_9(false);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding(false);
|
||||
} catch (error) {
|
||||
env2_7(true);
|
||||
env2_9(false);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding = env2_9;
|
||||
} catch (error) {
|
||||
env2_7(true);
|
||||
env2_9(false);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding(false);
|
||||
} catch (error) {
|
||||
env2_7(true);
|
||||
env2_9(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,197 @@
|
||||
/* Metro module 14910; source: modules/quests/hooks/useHasNewAdContent.tsx; dependencies: [57, 13563, 7093, 6528, 672, 9511, 566, 7091, 7121, 7013, 1365, 2] */
|
||||
function _fun112802(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112802, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15107:6, offset: 0x023dcbee, size: 218 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_112805 = 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 Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(57) /* metro dependency 57 */;
|
||||
const adContentSeenStore = importDefault(13563) /* metro dependency 13563: AdContentSeenStore */;
|
||||
const questStore = importDefault(7093) /* metro dependency 7093: QuestStore */;
|
||||
const env0_5 = (require(6528) /* metro dependency 6528: QuestConstants */).QuestsExperimentLocations;
|
||||
const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
const env0_6 = Millis.DAY;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/hooks/useHasNewAdContent.tsx');
|
||||
exports.default = useHasNewAdContent;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_112803(a0, a1) { // fn#112803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15107:167, offset: 0x023dccc8, size: 372 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 _fun112804;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_112805(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_112805(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_112805(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun112804;
|
||||
}
|
||||
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 useHasNewAdContent() { // fn#112806, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15107:1192, offset: 0x023dce3c, size: 307 bytes, params: 1, frame: 23
|
||||
const MobileQuestHomeRedDotNotificationExperiment = (require(9511) /* metro dependency 9511: experiments */).MobileQuestHomeRedDotNotificationExperiment;
|
||||
const useConfig = MobileQuestHomeRedDotNotificationExperiment.useConfig;
|
||||
const YOU_TAB_PROFILE_HEADER = QuestsExperimentLocations.YOU_TAB_PROFILE_HEADER;
|
||||
const enabled = Reflect.apply(useConfig, MobileQuestHomeRedDotNotificationExperiment,
|
||||
[{location: YOU_TAB_PROFILE_HEADER}]).enabled;
|
||||
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([AdContentSeenStore], _fun112810,
|
||||
[(require(566) /* metro dependency 566: flux */).useStateFromStoresArray([QuestStore], _fun112807, [enabled])]);
|
||||
const useSelectedDismissibleContentModule = require(7013) /* metro dependency 7013: useSelectedDismissibleContent */;
|
||||
const useSelectedTimeRecurringDismissibleContent = useSelectedDismissibleContentModule.useSelectedTimeRecurringDismissibleContent;
|
||||
const value4 = null;
|
||||
const QUEST_HOME_NEW_QUEST_BADGE = value3 && enabled ? (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent.QUEST_HOME_NEW_QUEST_BADGE : value4;
|
||||
const value = env0_2(Reflect.apply(useSelectedTimeRecurringDismissibleContent, useSelectedDismissibleContentModule,
|
||||
[QUEST_HOME_NEW_QUEST_BADGE, {cooldownDurationMs: DAY}, undefined, true]), 2);
|
||||
return {showBadge: value4 != value[0], dismissBadge: value[1]};
|
||||
}
|
||||
|
||||
function _fun112807() { // fn#112807, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15107:1376, offset: 0x023dcf6f, size: 94 bytes, params: 1, frame: 14
|
||||
var environment;
|
||||
var r0;
|
||||
var Array;
|
||||
var from;
|
||||
var quests;
|
||||
var value;
|
||||
if (enabled) {
|
||||
Array = global.Array;
|
||||
from = Array.from;
|
||||
value = environment.__proto__;
|
||||
quests = QuestStore.quests;
|
||||
value = Reflect.apply(from, Array, [quests.values()]);
|
||||
value = value.filter(_fun112808);
|
||||
value = value.map(function(a0) {
|
||||
return a0.id;
|
||||
});
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = [];
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun112810() { // fn#112810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15107:1512, offset: 0x023dcff9, size: 112 bytes, params: 1, frame: 19
|
||||
var value5;
|
||||
var hasSeen;
|
||||
var AdCreativeType;
|
||||
var QUEST;
|
||||
var value6;
|
||||
const value3 = _createForOfIteratorHelperLoose_112803(env0_1);
|
||||
const value4 = value3();
|
||||
let done = value4.done;
|
||||
if (done) {
|
||||
return false;
|
||||
}
|
||||
let r1 = value4;
|
||||
loopExit1: while (true) {
|
||||
value5 = r1.value;
|
||||
hasSeen = AdContentSeenStore.hasSeen;
|
||||
AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType;
|
||||
QUEST = AdCreativeType.QUEST;
|
||||
if (Reflect.apply(hasSeen, AdContentSeenStore, [QUEST, value5])) {
|
||||
value6 = value3();
|
||||
done = value6.done;
|
||||
if (done) {
|
||||
return false;
|
||||
}
|
||||
r1 = value6;
|
||||
continue;
|
||||
}
|
||||
break loopExit1;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function _fun112808(a0) { // fn#112808, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15107:1420, offset: 0x023dcfcd, size: 44 bytes, params: 2, frame: 11
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(7091) /* metro dependency 7091: QuestDataUtils */;
|
||||
return !value.isQuestExpired(a0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Metro module 9529; source: modules/quests/hooks/useVideoModalPlacementEnabled.tsx; dependencies: [6528, 9530, 9531, 2] */
|
||||
function _fun74334(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74334, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9715:6, offset: 0x01d8a8a0, size: 124 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(6528) /* metro dependency 6528: QuestConstants */).QuestsExperimentLocations;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/hooks/useVideoModalPlacementEnabled.tsx');
|
||||
exports.useVideoModalPlacementEnabled = useVideoModalPlacementEnabled;
|
||||
}
|
||||
|
||||
function useVideoModalPlacementEnabled(a0) { // fn#74335, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9715:252, offset: 0x01d8a91c, size: 113 bytes, params: 2, frame: 15
|
||||
const BountiesStage1Experiment = (require(9530) /* metro dependency 9530: BountiesStage1Experiment */).BountiesStage1Experiment;
|
||||
let useConfig = BountiesStage1Experiment.useConfig;
|
||||
const QUEST_HOME_MOBILE = QuestsExperimentLocations.QUEST_HOME_MOBILE;
|
||||
const verticalScrollEnabled = Reflect.apply(useConfig, BountiesStage1Experiment,
|
||||
[{location: QUEST_HOME_MOBILE}]).verticalScrollEnabled;
|
||||
const value = importDefault(9531) /* metro dependency 9531: BountyUseVideoModalMobilePlacementExperiment */;
|
||||
useConfig = value.useConfig;
|
||||
return verticalScrollEnabled && Reflect.apply(useConfig, value, [{location: a0}]).enabled;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,752 @@
|
||||
/* Metro module 9495; source: modules/quests/lib/AssetUtils.tsx; dependencies: [6528, 661, 9496, 9497, 9498, 9499, 9500, 7098, 9507, 9508, 6535, 1471, 1852, 2] */
|
||||
function _fun74112(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74112, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9681:6, offset: 0x01d80ea4, size: 1021 bytes, params: 8, frame: 34
|
||||
const env0_0 = require;
|
||||
const closure = resolveAsset;
|
||||
const getVideoOrDefaultAsset = function(a0, a1) {
|
||||
return a1;
|
||||
};
|
||||
const closure2 = buildUrl;
|
||||
const closure3 = getMimetype;
|
||||
const safeMediaProxyDimension = function(a0) {
|
||||
var Math = global.Math;
|
||||
var Math2 = global.Math;
|
||||
return Math.min(Math2.ceil(a0), MEDIA_PROXY_MAX_TARGET_RESOLUTION);
|
||||
};
|
||||
const closure4 = getAssetUrlWithMediaProxyQueryParams;
|
||||
const closure5 = convertVideoToFirstFrameImageWithMediaProxy;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const questConstantsModule = require(6528) /* metro dependency 6528: QuestConstants */;
|
||||
const env0_3 = questConstantsModule.CDN_URL_BASE;
|
||||
const env0_4 = questConstantsModule.QUESTS_CDN_URL_BASE;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).MEDIA_PROXY_MAX_TARGET_RESOLUTION;
|
||||
const regexp = RegExp('\\.([a-zA-Z0-9]+)$', '');
|
||||
const object = {HERO: 'hero', HERO_IMAGE: 'hero_image', HERO_VIDEO: 'hero_video', QUEST_BAR_HERO: 'quest_bar_hero',
|
||||
QUEST_BAR_HERO_VIDEO: 'quest_bar_hero_video', QUEST_BAR_HERO_IMAGE: 'quest_bar_hero_image', REWARD: 'reward',
|
||||
REWARD_IMAGE: 'reward_image', GAME_TILE: 'game_tile', LOGO_TYPE: 'logo_type',
|
||||
COSPONSOR_LOGO_TYPE: 'cosponsor_logo_type', VIDEO_PLAYER_VIDEO: 'video_player_video',
|
||||
VIDEO_PLAYER_VIDEO_LOW_RES: 'video_player_video_low_res', VIDEO_PLAYER_VIDEO_HLS: 'video_player_video_hls',
|
||||
VIDEO_PLAYER_THUMBNAIL: 'video_player_thumbnail', VIDEO_PLAYER_CAPTION: 'video_player_caption',
|
||||
VIDEO_PLAYER_TRANSCRIPT: 'video_player_transcript'};
|
||||
const object8 = {VIDEO: 'video', VIDEO_LOW_RES: 'videoLowRes', VIDEO_HLS: 'videoHls'};
|
||||
const object9 = {VIDEO: 'url', THUMBNAIL: 'thumbnail', CAPTION: 'caption', TRANSCRIPT: 'transcript'};
|
||||
const object10 = {TIER_1: 1};
|
||||
object10[1] = 'TIER_1';
|
||||
object10.TIER_2 = 2;
|
||||
object10[2] = 'TIER_2';
|
||||
object10.TIER_3 = 3;
|
||||
object10[3] = 'TIER_3';
|
||||
object10.TIER_4 = 4;
|
||||
object10[4] = 'TIER_4';
|
||||
const object11 = {};
|
||||
const VIDEO_PLAYER_VIDEO = object.VIDEO_PLAYER_VIDEO;
|
||||
const object12 = {};
|
||||
let VIDEO = object8.VIDEO;
|
||||
object12.variant = VIDEO;
|
||||
VIDEO = object9.VIDEO;
|
||||
object12.property = VIDEO;
|
||||
object11[VIDEO_PLAYER_VIDEO] = object12;
|
||||
const VIDEO_PLAYER_VIDEO_LOW_RES = object.VIDEO_PLAYER_VIDEO_LOW_RES;
|
||||
const VIDEO_LOW_RES = object8.VIDEO_LOW_RES;
|
||||
VIDEO = object9.VIDEO;
|
||||
object11[VIDEO_PLAYER_VIDEO_LOW_RES] = {variant: VIDEO_LOW_RES, property: VIDEO};
|
||||
const VIDEO_PLAYER_VIDEO_HLS = object.VIDEO_PLAYER_VIDEO_HLS;
|
||||
const VIDEO_HLS = object8.VIDEO_HLS;
|
||||
VIDEO = object9.VIDEO;
|
||||
object11[VIDEO_PLAYER_VIDEO_HLS] = {variant: VIDEO_HLS, property: VIDEO};
|
||||
const VIDEO_PLAYER_THUMBNAIL = object.VIDEO_PLAYER_THUMBNAIL;
|
||||
VIDEO = object8.VIDEO;
|
||||
const THUMBNAIL = object9.THUMBNAIL;
|
||||
object11[VIDEO_PLAYER_THUMBNAIL] = {variant: VIDEO, property: THUMBNAIL};
|
||||
const VIDEO_PLAYER_CAPTION = object.VIDEO_PLAYER_CAPTION;
|
||||
VIDEO = object8.VIDEO;
|
||||
const CAPTION = object9.CAPTION;
|
||||
object11[VIDEO_PLAYER_CAPTION] = {variant: VIDEO, property: CAPTION};
|
||||
const VIDEO_PLAYER_TRANSCRIPT = object.VIDEO_PLAYER_TRANSCRIPT;
|
||||
VIDEO = object8.VIDEO;
|
||||
const TRANSCRIPT = object9.TRANSCRIPT;
|
||||
object11[VIDEO_PLAYER_TRANSCRIPT] = {variant: VIDEO, property: TRANSCRIPT};
|
||||
const object14 = {};
|
||||
const TIER_1 = object10.TIER_1;
|
||||
object14[TIER_1] = importDefault(9496) /* metro dependency 9496: tier1_rewardTile_animatedWebm */;
|
||||
const TIER_2 = object10.TIER_2;
|
||||
object14[TIER_2] = importDefault(9497) /* metro dependency 9497: tier2_rewardTile_animatedWebm */;
|
||||
const TIER_3 = object10.TIER_3;
|
||||
object14[TIER_3] = importDefault(9498) /* metro dependency 9498: tier3_rewardTile_animatedWebm */;
|
||||
const TIER_4 = object10.TIER_4;
|
||||
object14[TIER_4] = importDefault(9499) /* metro dependency 9499: tier4_rewardTile_animatedWebm */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/lib/AssetUtils.tsx');
|
||||
exports.EXTENSION_RE = regexp;
|
||||
exports.ANIMATED_MIMETYPES = ['video/mp4', 'video/webm'];
|
||||
exports.QuestAssetType = object;
|
||||
exports.resolveAsset = closure;
|
||||
exports.OrbsValueTier = object10;
|
||||
exports.getQuestAsset = getQuestAsset;
|
||||
exports.buildUrl = closure2;
|
||||
exports.resolveAdCreativeCdnUrl = function(a0) {
|
||||
var value = a0;
|
||||
if (value != null) {
|
||||
return value.startsWith('http://') || value.startsWith('https://') || value.startsWith('blob:') ? value : '' + CDN_URL_BASE + value;
|
||||
}
|
||||
};
|
||||
exports.getMimetype = closure3;
|
||||
exports.getDevicePixelScaledDimensions = getDevicePixelScaledDimensions;
|
||||
exports.getAssetUrlWithMediaProxyQueryParams = closure4;
|
||||
exports.getScaledImageUrl = function({assetUrl, width, height}) {
|
||||
var value2 = importDefault(dependencyMap[12])();
|
||||
return getAssetUrlWithMediaProxyQueryParams(assetUrl, {width: width * value2, height: height * value2,
|
||||
format: 'webp'});
|
||||
};
|
||||
exports.convertVideoToFirstFrameImageWithMediaProxy = closure5;
|
||||
exports.getScaledFirstFrameImageUrl = function({assetUrl, width, height}) {
|
||||
var value2 = importDefault(dependencyMap[12])();
|
||||
return convertVideoToFirstFrameImageWithMediaProxy(assetUrl, {width: width * value2, height: height * value2});
|
||||
};
|
||||
}
|
||||
|
||||
function resolveAsset(a0, a1, a2) { // fn#74113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9681:900, offset: 0x01d812a1, size: 75 bytes, params: 4, frame: 16
|
||||
const url = buildUrl(a0, a1, a2);
|
||||
const mimetype = getMimetype(a1);
|
||||
const object2 = {url: url, mimetype: mimetype};
|
||||
object2.isAnimated = mimetype != null && env0_7.includes(mimetype);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function buildUrl(a0, a1, a2) { // fn#74115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9681:1890, offset: 0x01d812ec, size: 218 bytes, params: 4, frame: 20
|
||||
const value = a1;
|
||||
if (value.startsWith('blob:')) {
|
||||
return value.split('?', 1).at(0) ?? value;
|
||||
}
|
||||
return value.includes('/') ? '' + CDN_URL_BASE + value : '' + QUESTS_CDN_URL_BASE + a0 + (a2?.theme != null ? '/' + a2.theme : '') + '/' + value;
|
||||
}
|
||||
|
||||
function getMimetype(a0) { // fn#74116, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9681:2140, offset: 0x01d813c6, size: 444 bytes, params: 2, frame: 18
|
||||
var r5;
|
||||
var r1;
|
||||
var r2;
|
||||
let value = a0.startsWith('blob:');
|
||||
const value3 = undefined;
|
||||
const value4 = (importDefault(1471) /* metro dependency 1471: URLUtils */).toURLSafe(a0);
|
||||
const value5 = null;
|
||||
const value6 = value5 == value4;
|
||||
if (value) {
|
||||
r1 = value6 ? value3 : value4.searchParams.get('mimetype');
|
||||
r2 = value5 != r1 ? r1 : value3;
|
||||
return value5 != r2 ? global.decodeURIComponent(r2) : value5;
|
||||
}
|
||||
if (value6) {
|
||||
r5 = value3;
|
||||
} else {
|
||||
value = value4.searchParams.get('format');
|
||||
if (value5 == value) {
|
||||
r5 = value3;
|
||||
} else {
|
||||
value = value.toLowerCase();
|
||||
r5 = value;
|
||||
}
|
||||
}
|
||||
if (value5 == r5) {
|
||||
value = env0_6.exec(a0);
|
||||
r5 = value5 == value || value5 == value[1] ? value3 : value[1].toLowerCase();
|
||||
}
|
||||
if (r5 === 'webm') {
|
||||
return 'video/webm';
|
||||
}
|
||||
if (r5 === 'mp4') {
|
||||
return 'video/mp4';
|
||||
}
|
||||
if (r5 === 'webp') {
|
||||
return 'image/webp';
|
||||
}
|
||||
if (r5 === 'jpg') {
|
||||
return 'image/jpeg';
|
||||
}
|
||||
if (r5 === 'jpeg') {
|
||||
return 'image/jpeg';
|
||||
}
|
||||
if (r5 === 'png') {
|
||||
return 'image/png';
|
||||
}
|
||||
if (r5 === 'gif') {
|
||||
return 'image/gif';
|
||||
}
|
||||
if (r5 === 'svg') {
|
||||
return 'image/svg+xml';
|
||||
}
|
||||
if (r5 === 'txt') {
|
||||
return 'text/plain';
|
||||
}
|
||||
if (r5 === 'vtt') {
|
||||
return 'text/vtt';
|
||||
}
|
||||
if (r5 === 'ts') {
|
||||
return 'video/mp2t';
|
||||
}
|
||||
if (r5 === 'm3u8') {
|
||||
return 'application/x-mpegURL';
|
||||
}
|
||||
return value5;
|
||||
}
|
||||
|
||||
function getAssetUrlWithMediaProxyQueryParams(a0) { // fn#74118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9681:2947, offset: 0x01d815b2, size: 263 bytes, params: 2, frame: 21
|
||||
var r1;
|
||||
var searchParams;
|
||||
var set;
|
||||
let value = a0;
|
||||
const value2 = a1;
|
||||
const r2 = value2 !== undefined ? value2 : {};
|
||||
if (value.startsWith('blob:')) {
|
||||
return value;
|
||||
}
|
||||
const value4 = (importDefault(1471) /* metro dependency 1471: URLUtils */).toURLSafe(value);
|
||||
if (value4 == null) {
|
||||
r1 = value;
|
||||
} else {
|
||||
if (r2.format != null) {
|
||||
searchParams = value4.searchParams;
|
||||
searchParams.set('format', r2.format);
|
||||
}
|
||||
if (r2.width != null) {
|
||||
searchParams = value4.searchParams;
|
||||
set = searchParams.set;
|
||||
value = safeMediaProxyDimension(r2.width);
|
||||
value = '' + value;
|
||||
Reflect.apply(set, searchParams, ['width', value]);
|
||||
}
|
||||
if (r2.height != null) {
|
||||
searchParams = value4.searchParams;
|
||||
set = searchParams.set;
|
||||
value = safeMediaProxyDimension(r2.height);
|
||||
value = '' + value;
|
||||
Reflect.apply(set, searchParams, ['height', value]);
|
||||
}
|
||||
value = value4.toString();
|
||||
r1 = value;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
|
||||
function convertVideoToFirstFrameImageWithMediaProxy(a0, a1) { // fn#74119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9681:3314, offset: 0x01d816b9, size: 227 bytes, params: 3, frame: 21
|
||||
var r1;
|
||||
var searchParams;
|
||||
var set;
|
||||
var safeMediaProxyDimensionBinding;
|
||||
if (a0.startsWith('blob:')) {
|
||||
return a0;
|
||||
}
|
||||
var value;
|
||||
const value2 = (importDefault(1471) /* metro dependency 1471: URLUtils */).toURLSafe(a0);
|
||||
const value3 = null;
|
||||
if (value3 == value2) {
|
||||
r1 = value3;
|
||||
} else {
|
||||
searchParams = value2.searchParams;
|
||||
searchParams.set('format', 'webp');
|
||||
if (value3 != a1) {
|
||||
searchParams = value2.searchParams;
|
||||
set = searchParams.set;
|
||||
safeMediaProxyDimensionBinding = safeMediaProxyDimension;
|
||||
value = safeMediaProxyDimensionBinding(a1.width);
|
||||
value = '' + value;
|
||||
Reflect.apply(set, searchParams, ['width', value]);
|
||||
searchParams = value2.searchParams;
|
||||
set = searchParams.set;
|
||||
value = safeMediaProxyDimensionBinding(a1.height);
|
||||
value = '' + value;
|
||||
Reflect.apply(set, searchParams, ['height', value]);
|
||||
}
|
||||
value = value2.toString();
|
||||
r1 = value;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
|
||||
function getQuestAsset(a0, a1, a2, a3, a4) { // fn#74120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9681:3839, offset: 0x01d8179c, size: 1529 bytes, params: 6, frame: 24
|
||||
var r12;
|
||||
var r6;
|
||||
var r3;
|
||||
var r0;
|
||||
var r5;
|
||||
var r8;
|
||||
var config;
|
||||
var tasks;
|
||||
var value5;
|
||||
const FirstPartyQuestTaskTypes = (require(6535) /* metro dependency 6535: FirstPartyQuestTaskTypes */).FirstPartyQuestTaskTypes;
|
||||
var property;
|
||||
var property2;
|
||||
var assets;
|
||||
var value6;
|
||||
var value7;
|
||||
var logotypeDark;
|
||||
var logotypeLight;
|
||||
var logotype;
|
||||
var value8;
|
||||
var value10;
|
||||
var value11;
|
||||
var value12;
|
||||
var value14;
|
||||
var value15;
|
||||
var gameTileDark;
|
||||
var gameTileLight;
|
||||
var gameTile;
|
||||
var value16;
|
||||
var value18;
|
||||
var value19;
|
||||
var questPrimaryReward;
|
||||
const QuestRewardTypes = (require(7098) /* metro dependency 7098: QuestRewardTypes */).QuestRewardTypes;
|
||||
var asset;
|
||||
var value21;
|
||||
var value22;
|
||||
var questPrimaryReward2;
|
||||
var getVideoOrDefaultAssetBinding;
|
||||
var value24;
|
||||
var object2;
|
||||
var questBarHero;
|
||||
var value25;
|
||||
var questBarHeroVideo;
|
||||
var value26;
|
||||
var value27;
|
||||
var heroVideo;
|
||||
var value28;
|
||||
var hero;
|
||||
var value29;
|
||||
var value30;
|
||||
var resolveAssetBinding;
|
||||
var id;
|
||||
let value = a2;
|
||||
const HERO = env0_8.HERO;
|
||||
if (HERO === a1) {
|
||||
getVideoOrDefaultAssetBinding = getVideoOrDefaultAsset;
|
||||
config = a0.config;
|
||||
assets = config.assets;
|
||||
assets.heroVideo;
|
||||
config = a0.config;
|
||||
assets = config.assets;
|
||||
hero = assets.hero;
|
||||
getVideoOrDefaultAssetBinding(undefined, hero);
|
||||
value30 = false;
|
||||
r0 = value30;
|
||||
value = resolveAsset(a0.id, hero, {theme: value30 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
const HERO_IMAGE = env0_8.HERO_IMAGE;
|
||||
if (HERO_IMAGE === a1) {
|
||||
hero = a0.config.assets.hero;
|
||||
value29 = false;
|
||||
r0 = value29;
|
||||
value = resolveAsset(a0.id, hero, {theme: value29 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
const HERO_VIDEO = env0_8.HERO_VIDEO;
|
||||
if (HERO_VIDEO === a1) {
|
||||
heroVideo = a0.config.assets.heroVideo;
|
||||
value28 = false;
|
||||
if (heroVideo == null) {
|
||||
return null;
|
||||
}
|
||||
r0 = value28;
|
||||
value = resolveAsset(a0.id, heroVideo, {theme: value28 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
const QUEST_BAR_HERO = env0_8.QUEST_BAR_HERO;
|
||||
if (QUEST_BAR_HERO === a1) {
|
||||
getVideoOrDefaultAssetBinding = getVideoOrDefaultAsset;
|
||||
config = a0.config;
|
||||
assets = config.assets;
|
||||
assets.questBarHeroVideo;
|
||||
config = a0.config;
|
||||
assets = config.assets;
|
||||
questBarHero = assets.questBarHero;
|
||||
getVideoOrDefaultAssetBinding(undefined, questBarHero);
|
||||
value27 = false;
|
||||
r0 = value27;
|
||||
value = resolveAsset(a0.id, questBarHero, {theme: value27 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
const QUEST_BAR_HERO_VIDEO = env0_8.QUEST_BAR_HERO_VIDEO;
|
||||
if (QUEST_BAR_HERO_VIDEO === a1) {
|
||||
questBarHeroVideo = a0.config.assets.questBarHeroVideo;
|
||||
value26 = false;
|
||||
if (questBarHeroVideo == null) {
|
||||
return null;
|
||||
}
|
||||
r0 = value26;
|
||||
value = resolveAsset(a0.id, questBarHeroVideo, {theme: value26 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
const QUEST_BAR_HERO_IMAGE = env0_8.QUEST_BAR_HERO_IMAGE;
|
||||
if (QUEST_BAR_HERO_IMAGE === a1) {
|
||||
questBarHero = a0.config.assets.questBarHero;
|
||||
value25 = false;
|
||||
r0 = value25;
|
||||
value = resolveAsset(a0.id, questBarHero, {theme: value25 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
const REWARD = env0_8.REWARD;
|
||||
if (REWARD === a1) {
|
||||
value22 = undefined;
|
||||
questPrimaryReward2 = (require(9500) /* metro dependency 9500: QuestRewardUtils */).getQuestPrimaryReward(a0);
|
||||
if (questPrimaryReward2.type === QuestRewardTypes.VIRTUAL_CURRENCY) {
|
||||
r6 = a4 != null ? env0_10[a4] : value22;
|
||||
if (r6 != null) {
|
||||
r3 = {'url': null, 'mimetype': 'video/webm', 'isAnimated': true, url: r6};
|
||||
} else if (a3) {
|
||||
object2 = {'url': null, 'mimetype': 'video/mp4', 'isAnimated': true};
|
||||
object2.url = importDefault(9507) /* metro dependency 9507: reward_tile_v3_mobileMp4 */;
|
||||
r3 = object2;
|
||||
} else {
|
||||
object2 = {'url': null, 'mimetype': 'video/webm', 'isAnimated': true};
|
||||
object2.url = importDefault(9508) /* metro dependency 9508: reward_tile_v3Webm */;
|
||||
r3 = object2;
|
||||
}
|
||||
return r3;
|
||||
}
|
||||
getVideoOrDefaultAssetBinding = getVideoOrDefaultAsset;
|
||||
questPrimaryReward2.assetVideo;
|
||||
asset = questPrimaryReward2.asset;
|
||||
getVideoOrDefaultAssetBinding(value22, asset);
|
||||
value24 = false;
|
||||
r0 = value24;
|
||||
r5 = asset;
|
||||
r8 = value24;
|
||||
resolveAssetBinding = resolveAsset;
|
||||
id = a0.id;
|
||||
r6 = r8 ? value : undefined;
|
||||
value = resolveAssetBinding(id, r5, {theme: r6});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
const REWARD_IMAGE = env0_8.REWARD_IMAGE;
|
||||
if (REWARD_IMAGE === a1) {
|
||||
questPrimaryReward = (require(9500) /* metro dependency 9500: QuestRewardUtils */).getQuestPrimaryReward(a0);
|
||||
if (questPrimaryReward.type === QuestRewardTypes.VIRTUAL_CURRENCY) {
|
||||
return null;
|
||||
}
|
||||
asset = questPrimaryReward.asset;
|
||||
value21 = false;
|
||||
r0 = value21;
|
||||
value = resolveAsset(a0.id, asset, {theme: value21 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
const GAME_TILE = env0_8.GAME_TILE;
|
||||
if (GAME_TILE === a1) {
|
||||
if (value !== 'dark') {
|
||||
if (value !== 'light') {
|
||||
gameTile = a0.config.assets.gameTile;
|
||||
value16 = true;
|
||||
r0 = false;
|
||||
r5 = gameTile;
|
||||
r8 = value16;
|
||||
} else {
|
||||
gameTileLight = a0.config.assets.gameTileLight;
|
||||
if (gameTileLight != null) {
|
||||
gameTileLight = a0.config.assets.gameTileLight;
|
||||
value18 = false;
|
||||
r0 = value18;
|
||||
r5 = gameTileLight;
|
||||
r8 = value18;
|
||||
} else {
|
||||
gameTile = a0.config.assets.gameTile;
|
||||
value16 = true;
|
||||
r0 = false;
|
||||
r5 = gameTile;
|
||||
r8 = value16;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
gameTileDark = a0.config.assets.gameTileDark;
|
||||
if (gameTileDark != null) {
|
||||
gameTileDark = a0.config.assets.gameTileDark;
|
||||
value19 = false;
|
||||
r0 = value19;
|
||||
r5 = gameTileDark;
|
||||
r8 = value19;
|
||||
} else if (value !== 'light') {
|
||||
gameTile = a0.config.assets.gameTile;
|
||||
value16 = true;
|
||||
r0 = false;
|
||||
r5 = gameTile;
|
||||
r8 = value16;
|
||||
} else {
|
||||
gameTileLight = a0.config.assets.gameTileLight;
|
||||
if (gameTileLight != null) {
|
||||
gameTileLight = a0.config.assets.gameTileLight;
|
||||
value18 = false;
|
||||
r0 = value18;
|
||||
r5 = gameTileLight;
|
||||
r8 = value18;
|
||||
} else {
|
||||
gameTile = a0.config.assets.gameTile;
|
||||
value16 = true;
|
||||
r0 = false;
|
||||
r5 = gameTile;
|
||||
r8 = value16;
|
||||
}
|
||||
}
|
||||
}
|
||||
value = resolveAsset(a0.id, r5, {theme: r8 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
const LOGO_TYPE = env0_8.LOGO_TYPE;
|
||||
if (LOGO_TYPE === a1) {
|
||||
if (value !== 'dark') {
|
||||
if (value !== 'light') {
|
||||
logotype = a0.config.assets.logotype;
|
||||
value12 = true;
|
||||
r0 = false;
|
||||
r5 = logotype;
|
||||
r8 = value12;
|
||||
} else {
|
||||
logotypeLight = a0.config.assets.logotypeLight;
|
||||
if (logotypeLight != null) {
|
||||
logotypeLight = a0.config.assets.logotypeLight;
|
||||
value14 = false;
|
||||
r0 = value14;
|
||||
r5 = logotypeLight;
|
||||
r8 = value14;
|
||||
} else {
|
||||
logotype = a0.config.assets.logotype;
|
||||
value12 = true;
|
||||
r0 = false;
|
||||
r5 = logotype;
|
||||
r8 = value12;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
logotypeDark = a0.config.assets.logotypeDark;
|
||||
if (logotypeDark != null) {
|
||||
logotypeDark = a0.config.assets.logotypeDark;
|
||||
value15 = false;
|
||||
r0 = value15;
|
||||
r5 = logotypeDark;
|
||||
r8 = value15;
|
||||
} else if (value !== 'light') {
|
||||
logotype = a0.config.assets.logotype;
|
||||
value12 = true;
|
||||
r0 = false;
|
||||
r5 = logotype;
|
||||
r8 = value12;
|
||||
} else {
|
||||
logotypeLight = a0.config.assets.logotypeLight;
|
||||
if (logotypeLight != null) {
|
||||
logotypeLight = a0.config.assets.logotypeLight;
|
||||
value14 = false;
|
||||
r0 = value14;
|
||||
r5 = logotypeLight;
|
||||
r8 = value14;
|
||||
} else {
|
||||
logotype = a0.config.assets.logotype;
|
||||
value12 = true;
|
||||
r0 = false;
|
||||
r5 = logotype;
|
||||
r8 = value12;
|
||||
}
|
||||
}
|
||||
}
|
||||
value = resolveAsset(a0.id, r5, {theme: r8 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
const COSPONSOR_LOGO_TYPE = env0_8.COSPONSOR_LOGO_TYPE;
|
||||
if (COSPONSOR_LOGO_TYPE === a1) {
|
||||
if (a0.config.cosponsorMetadata == null) {
|
||||
return null;
|
||||
}
|
||||
if (value !== 'dark') {
|
||||
if (value !== 'light') {
|
||||
logotype = a0.config.cosponsorMetadata.logotype;
|
||||
value8 = true;
|
||||
r0 = false;
|
||||
r5 = logotype;
|
||||
r8 = value8;
|
||||
} else {
|
||||
logotypeLight = a0.config.cosponsorMetadata.logotypeLight;
|
||||
if (logotypeLight != null) {
|
||||
logotypeLight = a0.config.cosponsorMetadata.logotypeLight;
|
||||
value10 = false;
|
||||
r0 = value10;
|
||||
r5 = logotypeLight;
|
||||
r8 = value10;
|
||||
} else {
|
||||
logotype = a0.config.cosponsorMetadata.logotype;
|
||||
value8 = true;
|
||||
r0 = false;
|
||||
r5 = logotype;
|
||||
r8 = value8;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
logotypeDark = a0.config.cosponsorMetadata.logotypeDark;
|
||||
if (logotypeDark != null) {
|
||||
logotypeDark = a0.config.cosponsorMetadata.logotypeDark;
|
||||
value11 = false;
|
||||
r0 = value11;
|
||||
r5 = logotypeDark;
|
||||
r8 = value11;
|
||||
} else if (value !== 'light') {
|
||||
logotype = a0.config.cosponsorMetadata.logotype;
|
||||
value8 = true;
|
||||
r0 = false;
|
||||
r5 = logotype;
|
||||
r8 = value8;
|
||||
} else {
|
||||
logotypeLight = a0.config.cosponsorMetadata.logotypeLight;
|
||||
if (logotypeLight != null) {
|
||||
logotypeLight = a0.config.cosponsorMetadata.logotypeLight;
|
||||
value10 = false;
|
||||
r0 = value10;
|
||||
r5 = logotypeLight;
|
||||
r8 = value10;
|
||||
} else {
|
||||
logotype = a0.config.cosponsorMetadata.logotype;
|
||||
value8 = true;
|
||||
r0 = false;
|
||||
r5 = logotype;
|
||||
r8 = value8;
|
||||
}
|
||||
}
|
||||
}
|
||||
value = resolveAsset(a0.id, r5, {theme: r8 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
const VIDEO_PLAYER_VIDEO = env0_8.VIDEO_PLAYER_VIDEO;
|
||||
if (VIDEO_PLAYER_VIDEO === a1) {
|
||||
if ('taskConfigV2' in a0.config) {
|
||||
tasks = a0.config.taskConfigV2.tasks;
|
||||
value5 = undefined;
|
||||
property = tasks[a3 ? FirstPartyQuestTaskTypes.WATCH_VIDEO_ON_MOBILE : FirstPartyQuestTaskTypes.WATCH_VIDEO];
|
||||
property2 = env0_9[a1];
|
||||
r12 = property == null || property.assets[property2.variant] == null ? value5 : property.assets[property2.variant][property2.property];
|
||||
value6 = false;
|
||||
value7 = true;
|
||||
if (r12 == null) {
|
||||
return null;
|
||||
}
|
||||
r0 = value7;
|
||||
value = resolveAsset(a0.id, r12, {theme: value6 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
} else {
|
||||
var VIDEO_PLAYER_VIDEO_LOW_RES = env0_8.VIDEO_PLAYER_VIDEO_LOW_RES;
|
||||
if (VIDEO_PLAYER_VIDEO_LOW_RES === a1) {
|
||||
if ('taskConfigV2' in a0.config) {
|
||||
tasks = a0.config.taskConfigV2.tasks;
|
||||
value5 = undefined;
|
||||
property = tasks[a3 ? FirstPartyQuestTaskTypes.WATCH_VIDEO_ON_MOBILE : FirstPartyQuestTaskTypes.WATCH_VIDEO];
|
||||
property2 = env0_9[a1];
|
||||
r12 = property == null || property.assets[property2.variant] == null ? value5 : property.assets[property2.variant][property2.property];
|
||||
value6 = false;
|
||||
value7 = true;
|
||||
if (r12 == null) {
|
||||
return null;
|
||||
}
|
||||
r0 = value7;
|
||||
value = resolveAsset(a0.id, r12, {theme: value6 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
var VIDEO_PLAYER_VIDEO_HLS = env0_8.VIDEO_PLAYER_VIDEO_HLS;
|
||||
if (VIDEO_PLAYER_VIDEO_HLS === a1) {
|
||||
if ('taskConfigV2' in a0.config) {
|
||||
tasks = a0.config.taskConfigV2.tasks;
|
||||
value5 = undefined;
|
||||
property = tasks[a3 ? FirstPartyQuestTaskTypes.WATCH_VIDEO_ON_MOBILE : FirstPartyQuestTaskTypes.WATCH_VIDEO];
|
||||
property2 = env0_9[a1];
|
||||
r12 = property == null || property.assets[property2.variant] == null ? value5 : property.assets[property2.variant][property2.property];
|
||||
value6 = false;
|
||||
value7 = true;
|
||||
if (r12 == null) {
|
||||
return null;
|
||||
}
|
||||
r0 = value7;
|
||||
value = resolveAsset(a0.id, r12, {theme: value6 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
var VIDEO_PLAYER_THUMBNAIL = env0_8.VIDEO_PLAYER_THUMBNAIL;
|
||||
if (VIDEO_PLAYER_THUMBNAIL === a1) {
|
||||
if ('taskConfigV2' in a0.config) {
|
||||
tasks = a0.config.taskConfigV2.tasks;
|
||||
value5 = undefined;
|
||||
property = tasks[a3 ? FirstPartyQuestTaskTypes.WATCH_VIDEO_ON_MOBILE : FirstPartyQuestTaskTypes.WATCH_VIDEO];
|
||||
property2 = env0_9[a1];
|
||||
r12 = property == null || property.assets[property2.variant] == null ? value5 : property.assets[property2.variant][property2.property];
|
||||
value6 = false;
|
||||
value7 = true;
|
||||
if (r12 == null) {
|
||||
return null;
|
||||
}
|
||||
r0 = value7;
|
||||
value = resolveAsset(a0.id, r12, {theme: value6 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
var VIDEO_PLAYER_CAPTION = env0_8.VIDEO_PLAYER_CAPTION;
|
||||
if (VIDEO_PLAYER_CAPTION === a1) {
|
||||
if ('taskConfigV2' in a0.config) {
|
||||
tasks = a0.config.taskConfigV2.tasks;
|
||||
value5 = undefined;
|
||||
property = tasks[a3 ? FirstPartyQuestTaskTypes.WATCH_VIDEO_ON_MOBILE : FirstPartyQuestTaskTypes.WATCH_VIDEO];
|
||||
property2 = env0_9[a1];
|
||||
r12 = property == null || property.assets[property2.variant] == null ? value5 : property.assets[property2.variant][property2.property];
|
||||
value6 = false;
|
||||
value7 = true;
|
||||
if (r12 == null) {
|
||||
return null;
|
||||
}
|
||||
r0 = value7;
|
||||
value = resolveAsset(a0.id, r12, {theme: value6 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
var VIDEO_PLAYER_TRANSCRIPT = env0_8.VIDEO_PLAYER_TRANSCRIPT;
|
||||
var value3 = false;
|
||||
if (VIDEO_PLAYER_TRANSCRIPT !== a1) {
|
||||
r0 = value3;
|
||||
value = resolveAsset(a0.id, undefined, {theme: value3 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
if ('taskConfigV2' in a0.config) {
|
||||
tasks = a0.config.taskConfigV2.tasks;
|
||||
value5 = undefined;
|
||||
property = tasks[a3 ? FirstPartyQuestTaskTypes.WATCH_VIDEO_ON_MOBILE : FirstPartyQuestTaskTypes.WATCH_VIDEO];
|
||||
property2 = env0_9[a1];
|
||||
r12 = property == null || property.assets[property2.variant] == null ? value5 : property.assets[property2.variant][property2.property];
|
||||
value6 = false;
|
||||
value7 = true;
|
||||
if (r12 == null) {
|
||||
return null;
|
||||
}
|
||||
r0 = value7;
|
||||
value = resolveAsset(a0.id, r12, {theme: value6 ? value : undefined});
|
||||
r0 = r0 && value.mimetype == null ? null : value;
|
||||
return r0;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function getDevicePixelScaledDimensions(a0, a1) { // fn#74122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9681:6448, offset: 0x01d81e07, size: 77 bytes, params: 3, frame: 13
|
||||
const value = (importDefault(1852) /* metro dependency 1852: getDevicePixelRatioNative */)();
|
||||
return value < 3 ? {width: a0, height: a1} : {width: a0 * value, height: a1 * value};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
/* Metro module 9504; source: modules/quests/lib/FractionalPremiumUtils.tsx; dependencies: [3802, 1244, 7098, 3826, 672, 2] */
|
||||
function _fun74176(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9690:6, offset: 0x01d83457, size: 137 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const closure = function(a0) {
|
||||
return a0.rewardsConfig.rewards.filter(_fun74178);
|
||||
};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/lib/FractionalPremiumUtils.tsx');
|
||||
exports.getDurationStringOfFractionalPremium = getDurationStringOfFractionalPremium;
|
||||
exports.getFractionalPremiumQuestRewards = closure;
|
||||
exports.getFractionalPremiumQuestRewardName = getFractionalPremiumQuestRewardName;
|
||||
}
|
||||
|
||||
function getFractionalPremiumQuestRewards({rewardsConfig}) { // fn#74177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9690:131, offset: 0x01d834e0, size: 36 bytes, params: 2, frame: 11
|
||||
return rewardsConfig.rewards.filter(function({type}) {
|
||||
return type === require(dependencyMap[2]).QuestRewardTypes.FRACTIONAL_PREMIUM;
|
||||
});
|
||||
}
|
||||
|
||||
function getDurationStringOfFractionalPremium(a0) { // fn#74179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9690:343, offset: 0x01d83537, size: 204 bytes, params: 2, frame: 18
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const fractionalPremiumUnitsHoursFromSkuIds = (require(3802) /* metro dependency 3802: PremiumUtils */).getFractionalPremiumUnitsHoursFromSkuIds(a0.map(function(a0) {
|
||||
return a0.skuId;
|
||||
}));
|
||||
return fractionalPremiumUnitsHoursFromSkuIds % 24 === 0 ? intl.formatToPlainString(t.Cz1G97,
|
||||
{days: fractionalPremiumUnitsHoursFromSkuIds / 24}) : intl.formatToPlainString(t.J9Lu4h, {hours: fractionalPremiumUnitsHoursFromSkuIds});
|
||||
}
|
||||
|
||||
function getFractionalPremiumQuestRewardName(a0) { // fn#74181, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9690:671, offset: 0x01d83603, size: 280 bytes, params: 2, frame: 21
|
||||
const fractionalPremiumUnitsHoursFromSkuIds = (require(3802) /* metro dependency 3802: PremiumUtils */).getFractionalPremiumUnitsHoursFromSkuIds(getFractionalPremiumQuestRewards(a0).flatMap(function(a0) {
|
||||
var Array = global.Array;
|
||||
return Array(a0.quantity).fill(a0.skuId);
|
||||
}));
|
||||
const object3 = {};
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
object3.days = t.fYmirx;
|
||||
object3.hours = t['C3RO+g'];
|
||||
object3.minutes = t.r77oHc;
|
||||
const dateUtilsModule = require(3826) /* metro dependency 3826: DateUtils */;
|
||||
const diffAsUnits = dateUtilsModule.diffAsUnits;
|
||||
const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
const HOUR = Millis.HOUR;
|
||||
const value = Reflect.apply(diffAsUnits, dateUtilsModule, [0, fractionalPremiumUnitsHoursFromSkuIds * HOUR]);
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const formatToPlainString = intl.formatToPlainString;
|
||||
const property = t['4SqnVD'];
|
||||
const object4 = {};
|
||||
object4.time = dateUtilsModule.unitsAsStrings(value, object3);
|
||||
return Reflect.apply(formatToPlainString, intl, [property, object4]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/* Metro module 9479; source: modules/quests/lib/QuestsEligibility.tsx; dependencies: [1581, 2] */
|
||||
function _fun73709(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9665:6, offset: 0x01d754e1, size: 96 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/lib/QuestsEligibility.tsx');
|
||||
exports.getIsEligibleForQuests = getIsEligibleForQuests;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,504 @@
|
||||
/* Metro module 7110; source: modules/quests/lib/analytics/AnalyticsActions.tsx; dependencies: [5, 7111, 691, 7093, 661, 4875, 7113, 7091, 7114, 7116, 7120, 7121, 4863, 683, 7122, 7071, 477, 491, 7127, 6531, 2] */
|
||||
function _fun56794(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:6, offset: 0x013d20f7, size: 500 bytes, params: 8, frame: 23
|
||||
const env0_0 = require;
|
||||
const closure = trackQuestEvent;
|
||||
const closure2 = trackAdContentEvent;
|
||||
const closure3 = function() {
|
||||
return _getCommonClickEventProperties.apply(this, arguments);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const devToolsSettingsStore = importDefault(7111) /* metro dependency 7111: DevToolsSettingsStore */;
|
||||
const developerOptionsStore = importDefault(691) /* metro dependency 691: DeveloperOptionsStore */;
|
||||
const questStore = importDefault(7093) /* metro dependency 7093: QuestStore */;
|
||||
const AnalyticEvents = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const Set = global.Set;
|
||||
const QUEST_CONTENT_VIEWED = AnalyticEvents.QUEST_CONTENT_VIEWED;
|
||||
const QUEST_CONTENT_CLICKED = AnalyticEvents.QUEST_CONTENT_CLICKED;
|
||||
const set = new Set([QUEST_CONTENT_VIEWED, QUEST_CONTENT_CLICKED]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/lib/analytics/AnalyticsActions.tsx');
|
||||
exports.trackQuestEvent = closure;
|
||||
exports.trackAppStoreOverlayEvent = trackAppStoreOverlayEvent;
|
||||
exports.trackAdContentAppStoreOverlayEvent = trackAdContentAppStoreOverlayEvent;
|
||||
exports.trackAdContentEvent = closure2;
|
||||
exports.getCommonClickEventProperties = closure3;
|
||||
exports.trackQuestContentClicked = function() {
|
||||
return _trackQuestContentClicked.apply(this, arguments);
|
||||
};
|
||||
exports.trackAdContentClicked = function() {
|
||||
return _trackAdContentClicked.apply(this, arguments);
|
||||
};
|
||||
exports.trackBountyCarouselScroll = trackBountyCarouselScroll;
|
||||
exports.trackBountyCarouselEmptyStateViewed = trackBountyCarouselEmptyStateViewed;
|
||||
exports.trackBountyVerticalScroll = trackBountyVerticalScroll;
|
||||
exports.trackQuestHomeCarouselScroll = trackQuestHomeCarouselScroll;
|
||||
exports.trackQuestHomeSearchEntered = function({searchSessionId}) {
|
||||
var uuid = require(dependencyMap[6]).getOrRefreshAdSession().uuid;
|
||||
var defaultImport = importDefault(dependencyMap[13]);
|
||||
var QUEST_HOME_SEARCH_ENTERED = AnalyticEvents.QUEST_HOME_SEARCH_ENTERED;
|
||||
var object = {client_ad_session_id: uuid};
|
||||
object.billing_session_id = assignBillingSessionId(uuid, false);
|
||||
object.search_session_id = searchSessionId;
|
||||
defaultImport.track(QUEST_HOME_SEARCH_ENTERED, object);
|
||||
};
|
||||
exports.trackQuestHomeSearchClosed = trackQuestHomeSearchClosed;
|
||||
exports.trackQuestHomeSearchQuerySubmitted = trackQuestHomeSearchQuerySubmitted;
|
||||
exports.trackQuestBarOrDockModeChange = trackQuestBarOrDockModeChange;
|
||||
exports.trackQuestEmbedFallbackViewed = function(a0, a1) {
|
||||
var defaultImport = importDefault(dependencyMap[12]);
|
||||
var QUEST_EMBED_FALLBACK_VIEWED = AnalyticEvents.QUEST_EMBED_FALLBACK_VIEWED;
|
||||
defaultImport.trackWithMetadata(QUEST_EMBED_FALLBACK_VIEWED, {quest_id: a0, reason: a1});
|
||||
};
|
||||
}
|
||||
|
||||
function assignBillingSessionId(a0, a1) { // fn#56795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:221, offset: 0x013d22eb, size: 76 bytes, params: 3, frame: 13
|
||||
var uuid;
|
||||
var r0;
|
||||
var activeSessionUnsafe;
|
||||
var value3;
|
||||
let value = a0;
|
||||
if (a1) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value = undefined;
|
||||
activeSessionUnsafe = (require(4875) /* metro dependency 4875: SessionHeartbeatScheduler */).getActiveSessionUnsafe();
|
||||
value3 = null;
|
||||
uuid = value3 == activeSessionUnsafe ? value : activeSessionUnsafe.uuid;
|
||||
r0 = value3 != uuid ? uuid : value3;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function getCommonProperties(a0, a1, a2, a3) { // fn#56796, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:351, offset: 0x013d2337, size: 161 bytes, params: 5, frame: 21
|
||||
const value = a2;
|
||||
const sessionAdGeneratorModule = require(7113) /* metro dependency 7113: SessionAdGenerator */;
|
||||
const getOrRefreshAdSession = sessionAdGeneratorModule.getOrRefreshAdSession;
|
||||
const uuid = Reflect.apply(getOrRefreshAdSession, sessionAdGeneratorModule, [a3]).uuid;
|
||||
const adDecisionData = (require(7091) /* metro dependency 7091: QuestDataUtils */).getAdDecisionData(a0, a1);
|
||||
const object2 = {client_ad_session_id: uuid};
|
||||
const assignBillingSessionIdBinding = assignBillingSessionId;
|
||||
const questDataUtilsModule = require(7091) /* metro dependency 7091: QuestDataUtils */;
|
||||
object2.billing_session_id = assignBillingSessionIdBinding(uuid, questDataUtilsModule.isBillableQuestContent(a1));
|
||||
object2.ad_content_id = a0;
|
||||
copyDataProperties(object2, adDecisionData, undefined);
|
||||
object2['creative_type'] = adDecisionData.creative_type ?? value;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function getCommonQuestProperties(a0, a1, a2) { // fn#56797, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:643, offset: 0x013d23d8, size: 239 bytes, params: 4, frame: 20
|
||||
const object2 = {};
|
||||
let id = a0.id;
|
||||
object2.quest_id = id;
|
||||
object2.quest_type = (require(7114) /* metro dependency 7114: QuestUtils */).getQuestType(a0.config);
|
||||
object2.game_id = a0.config.application.id;
|
||||
object2.game_name = a0.config.application.name;
|
||||
object2.application_ids = (require(7116) /* metro dependency 7116: QuestTaskUtils */).getAllApplicationIds(a0) ?? [];
|
||||
object2.quest_status = (require(7120) /* metro dependency 7120: AnalyticsTypes */).getQuestStatus(a0);
|
||||
const getCommonPropertiesBinding = getCommonProperties;
|
||||
id = a0.id;
|
||||
const AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType;
|
||||
const QUEST = AdCreativeType.QUEST;
|
||||
copyDataProperties(object2, getCommonPropertiesBinding(id, a1, QUEST, a2), QUEST);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function getCommonAdContentProperties({adContentId, adCreativeType, sourceQuestContent, shouldExtendSession, relatedQuestId}) { // fn#56798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:988, offset: 0x013d24c7, size: 276 bytes, params: 2, frame: 23
|
||||
var r2;
|
||||
let value = null;
|
||||
const r4 = value != relatedQuestId ? QuestStore.getQuest(relatedQuestId) : value;
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, getCommonProperties(adContentId, sourceQuestContent, adCreativeType,
|
||||
shouldExtendSession), adCreativeType);
|
||||
const adMetadataSealed = (require(7091) /* metro dependency 7091: QuestDataUtils */).getAdMetadataSealed(sourceQuestContent,
|
||||
adContentId);
|
||||
object2['metadata_sealed'] = value != adMetadataSealed ? adMetadataSealed : value;
|
||||
const adTrafficMetadataSealed = (require(7091) /* metro dependency 7091: QuestDataUtils */).getAdTrafficMetadataSealed(sourceQuestContent,
|
||||
undefined, adContentId);
|
||||
object2['traffic_metadata_sealed'] = value != adTrafficMetadataSealed ? adTrafficMetadataSealed : value;
|
||||
object2['quest_id'] = value != relatedQuestId ? relatedQuestId : value;
|
||||
if (value != r4) {
|
||||
value = require(7120) /* metro dependency 7120: AnalyticsTypes */;
|
||||
value = value.getQuestStatus(r4);
|
||||
r2 = value;
|
||||
} else {
|
||||
r2 = value;
|
||||
}
|
||||
object2['quest_status'] = r2;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function trackEvent(a0, a1) { // fn#56799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:1428, offset: 0x013d25db, size: 156 bytes, params: 3, frame: 20
|
||||
var value2;
|
||||
let value = a2;
|
||||
const r1 = value !== undefined ? value : false;
|
||||
if (DevToolsSettingsStore.displayTools) {
|
||||
if (DevToolsSettingsStore.lastOpenTabId === 'quest_preview') {
|
||||
return undefined;
|
||||
}
|
||||
DeveloperOptionsStore.isLoggingAnalyticsEvents;
|
||||
if (a3) {
|
||||
return undefined;
|
||||
}
|
||||
value2 = env0_8.has(a0);
|
||||
if (r1) {
|
||||
return (importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */).trackWithMetadata(a0, a1,
|
||||
value2);
|
||||
}
|
||||
value = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
value.track(a0, a1, {flush: value2});
|
||||
} else {
|
||||
DeveloperOptionsStore.isLoggingAnalyticsEvents;
|
||||
if (a3) {
|
||||
return undefined;
|
||||
}
|
||||
value2 = env0_8.has(a0);
|
||||
if (r1) {
|
||||
return (importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */).trackWithMetadata(a0, a1,
|
||||
value2);
|
||||
}
|
||||
value = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
value.track(a0, a1, {flush: value2});
|
||||
}
|
||||
}
|
||||
|
||||
function trackQuestEvent({questId, event, properties, trackGuildAndChannelMetadata, shouldExtendSession, sourceQuestContent}) { // fn#56800, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:1641, offset: 0x013d2677, size: 133 bytes, params: 2, frame: 21
|
||||
var trackEventBinding;
|
||||
var object2;
|
||||
shouldExtendSession = !(shouldExtendSession === undefined) && shouldExtendSession;
|
||||
const value2 = QuestStore.quests.get(questId);
|
||||
if (value2 != null) {
|
||||
trackEventBinding = trackEvent;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, getCommonQuestProperties(value2, sourceQuestContent, shouldExtendSession),
|
||||
undefined);
|
||||
copyDataProperties(object2, properties, undefined);
|
||||
trackEventBinding(event, object2, trackGuildAndChannelMetadata, value2.preview);
|
||||
}
|
||||
}
|
||||
|
||||
function trackAdContentEvent({adContentId, relatedQuestId, adCreativeType, event, properties, trackGuildAndChannelMetadata, shouldExtendSession, sourceQuestContent}) { // fn#56801, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:1876, offset: 0x013d26fc, size: 140 bytes, params: 2, frame: 24
|
||||
shouldExtendSession = !(shouldExtendSession === undefined) && shouldExtendSession;
|
||||
const trackEventBinding = trackEvent;
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, getCommonAdContentProperties({adContentId: adContentId, adCreativeType: adCreativeType,
|
||||
sourceQuestContent: sourceQuestContent, shouldExtendSession: shouldExtendSession,
|
||||
relatedQuestId: relatedQuestId}), undefined);
|
||||
copyDataProperties(object2, properties, undefined);
|
||||
trackEventBinding(event, object2, trackGuildAndChannelMetadata, false);
|
||||
}
|
||||
|
||||
function _getCommonClickEventProperties() { // fn#56803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:2307, offset: 0x013d2788, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun56805).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _trackQuestContentClicked() { // fn#56806, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:2861, offset: 0x013d2957, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun56808).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _trackAdContentClicked() { // fn#56809, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:3721, offset: 0x013d2b35, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun56811).apply(this, arguments);
|
||||
}
|
||||
|
||||
function trackAppStoreOverlayEvent({id}, a1, a2, a3, a4) { // fn#56812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:4518, offset: 0x013d2c68, size: 245 bytes, params: 6, frame: 21
|
||||
var r4;
|
||||
var object4;
|
||||
const object5 = {};
|
||||
const analyticsTypesModule = require(7120) /* metro dependency 7120: AnalyticsTypes */;
|
||||
object5.content_name = analyticsTypesModule.getQuestContentName(a1.content);
|
||||
object5.cta_name = a1.ctaContent;
|
||||
object5.impression_id = a1.impressionId;
|
||||
object5.source_content_name = analyticsTypesModule.getQuestContentName(a1.sourceQuestContent);
|
||||
object5.app_id = a2;
|
||||
object5.content_position = a1.position;
|
||||
const QUEST_APP_STORE_OVERLAY_CLOSED = AnalyticEvents.QUEST_APP_STORE_OVERLAY_CLOSED;
|
||||
const r5 = (a3 === QUEST_APP_STORE_OVERLAY_CLOSED || a3 === AnalyticEvents.QUEST_APP_STORE_OVERLAY_RETURNED) && a4 !== undefined;
|
||||
const trackQuestEventBinding = trackQuestEvent;
|
||||
const object6 = {};
|
||||
object6.questId = id;
|
||||
object6.event = a3;
|
||||
if (r5) {
|
||||
object4 = {};
|
||||
copyDataProperties(object4, object5, analyticsTypesModule);
|
||||
object4['time_spent_ms'] = a4;
|
||||
r4 = object4;
|
||||
} else {
|
||||
r4 = object5;
|
||||
}
|
||||
object6.properties = r4;
|
||||
object6.sourceQuestContent = a1.sourceQuestContent;
|
||||
trackQuestEventBinding(object6);
|
||||
}
|
||||
|
||||
function trackAdContentAppStoreOverlayEvent({adContentId, adCreativeType}, a1, a2, a3, a4) { // fn#56813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:5033, offset: 0x013d2d5d, size: 251 bytes, params: 6, frame: 23
|
||||
var r4;
|
||||
var object4;
|
||||
const object5 = {};
|
||||
const analyticsTypesModule = require(7120) /* metro dependency 7120: AnalyticsTypes */;
|
||||
object5.content_name = analyticsTypesModule.getQuestContentName(a1.content);
|
||||
object5.cta_name = a1.ctaContent;
|
||||
object5.impression_id = a1.impressionId;
|
||||
object5.source_content_name = analyticsTypesModule.getQuestContentName(a1.sourceQuestContent);
|
||||
object5.app_id = a2;
|
||||
object5.content_position = a1.position;
|
||||
const trackAdContentEventBinding = trackAdContentEvent;
|
||||
const object6 = {adContentId: adContentId, adCreativeType: adCreativeType, event: a3};
|
||||
const QUEST_APP_STORE_OVERLAY_CLOSED = AnalyticEvents.QUEST_APP_STORE_OVERLAY_CLOSED;
|
||||
if (a3 === QUEST_APP_STORE_OVERLAY_CLOSED) {
|
||||
if (a4 === undefined) {
|
||||
r4 = object5;
|
||||
} else {
|
||||
object4 = {};
|
||||
copyDataProperties(object4, object5, analyticsTypesModule);
|
||||
object4['time_spent_ms'] = a4;
|
||||
r4 = object4;
|
||||
}
|
||||
} else if (a3 !== AnalyticEvents.QUEST_APP_STORE_OVERLAY_RETURNED) {
|
||||
r4 = object5;
|
||||
} else if (a4 === undefined) {
|
||||
r4 = object5;
|
||||
} else {
|
||||
object4 = {};
|
||||
copyDataProperties(object4, object5, analyticsTypesModule);
|
||||
object4['time_spent_ms'] = a4;
|
||||
r4 = object4;
|
||||
}
|
||||
object6.properties = r4;
|
||||
object6.sourceQuestContent = a1.sourceQuestContent;
|
||||
trackAdContentEventBinding(object6);
|
||||
}
|
||||
|
||||
function trackBountyCarouselScroll({scrollingType, scrollingDirection, carouselPosition, questContent}) { // fn#56816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:5930, offset: 0x013d2e58, size: 197 bytes, params: 2, frame: 24
|
||||
const sessionAdGeneratorModule = require(7113) /* metro dependency 7113: SessionAdGenerator */;
|
||||
const getOrRefreshAdSession = sessionAdGeneratorModule.getOrRefreshAdSession;
|
||||
const uuid = Reflect.apply(getOrRefreshAdSession, sessionAdGeneratorModule, []).uuid;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const BOUNTY_CAROUSEL_SCROLL = AnalyticEvents.BOUNTY_CAROUSEL_SCROLL;
|
||||
const object2 = {client_ad_session_id: uuid};
|
||||
const assignBillingSessionIdBinding = assignBillingSessionId;
|
||||
const questDataUtilsModule = require(7091) /* metro dependency 7091: QuestDataUtils */;
|
||||
object2.billing_session_id = assignBillingSessionIdBinding(uuid,
|
||||
questDataUtilsModule.isBillableQuestContent(questContent));
|
||||
object2.scrolling_type = scrollingType;
|
||||
object2.scrolling_direction = scrollingDirection;
|
||||
object2.carousel_position = carouselPosition;
|
||||
object2.content_name = (require(7120) /* metro dependency 7120: AnalyticsTypes */).getQuestContentName(questContent);
|
||||
Reflect.apply(track, defaultImport, [BOUNTY_CAROUSEL_SCROLL, object2]);
|
||||
}
|
||||
|
||||
function trackBountyCarouselEmptyStateViewed(a0) { // fn#56817, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:6370, offset: 0x013d2f1d, size: 157 bytes, params: 2, frame: 21
|
||||
const sessionAdGeneratorModule = require(7113) /* metro dependency 7113: SessionAdGenerator */;
|
||||
const getOrRefreshAdSession = sessionAdGeneratorModule.getOrRefreshAdSession;
|
||||
const uuid = Reflect.apply(getOrRefreshAdSession, sessionAdGeneratorModule, []).uuid;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const BOUNTY_CAROUSEL_EMPTY_STATE_VIEWED = AnalyticEvents.BOUNTY_CAROUSEL_EMPTY_STATE_VIEWED;
|
||||
const object2 = {client_ad_session_id: uuid};
|
||||
const assignBillingSessionIdBinding = assignBillingSessionId;
|
||||
const value = require(7091) /* metro dependency 7091: QuestDataUtils */;
|
||||
const isBillableQuestContent = value.isBillableQuestContent;
|
||||
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
|
||||
const QUEST_HOME_MOBILE_CAROUSEL = QuestContent.QUEST_HOME_MOBILE_CAROUSEL;
|
||||
object2.billing_session_id = assignBillingSessionIdBinding(uuid, Reflect.apply(isBillableQuestContent, value,
|
||||
[QUEST_HOME_MOBILE_CAROUSEL]));
|
||||
object2.reason = a0;
|
||||
Reflect.apply(track, defaultImport, [BOUNTY_CAROUSEL_EMPTY_STATE_VIEWED, object2]);
|
||||
}
|
||||
|
||||
function trackBountyVerticalScroll({scrollingType, scrollingDirection, verticalScrollingPosition, scrollSessionId, timeWatchedPreScrollMs}) { // fn#56818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:6703, offset: 0x013d2fba, size: 168 bytes, params: 2, frame: 22
|
||||
const sessionAdGeneratorModule = require(7113) /* metro dependency 7113: SessionAdGenerator */;
|
||||
const getOrRefreshAdSession = sessionAdGeneratorModule.getOrRefreshAdSession;
|
||||
const uuid = Reflect.apply(getOrRefreshAdSession, sessionAdGeneratorModule, []).uuid;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const BOUNTY_VERTICAL_SCROLL = AnalyticEvents.BOUNTY_VERTICAL_SCROLL;
|
||||
const object2 = {client_ad_session_id: uuid};
|
||||
object2.billing_session_id = assignBillingSessionId(uuid, false);
|
||||
object2.scrolling_type = scrollingType;
|
||||
object2.scrolling_direction = scrollingDirection;
|
||||
object2.vertical_scrolling_position = verticalScrollingPosition;
|
||||
object2.scroll_session_id = scrollSessionId;
|
||||
object2.time_watched_pre_scroll_ms = timeWatchedPreScrollMs;
|
||||
Reflect.apply(track, defaultImport, [BOUNTY_VERTICAL_SCROLL, object2]);
|
||||
}
|
||||
|
||||
function trackQuestHomeCarouselScroll({scrollingType, scrollingDirection, scrollWindowStartIndex, scrollWindowEndIndex, scrollWindowSize, questContent, carouselSize}) { // fn#56819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:7156, offset: 0x013d3062, size: 249 bytes, params: 2, frame: 26
|
||||
const sessionAdGeneratorModule = require(7113) /* metro dependency 7113: SessionAdGenerator */;
|
||||
const getOrRefreshAdSession = sessionAdGeneratorModule.getOrRefreshAdSession;
|
||||
const uuid = Reflect.apply(getOrRefreshAdSession, sessionAdGeneratorModule, []).uuid;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const QUEST_HOME_CAROUSEL_SCROLL = AnalyticEvents.QUEST_HOME_CAROUSEL_SCROLL;
|
||||
const object2 = {scrolling_type: scrollingType, client_ad_session_id: uuid};
|
||||
const assignBillingSessionIdBinding = assignBillingSessionId;
|
||||
const questDataUtilsModule = require(7091) /* metro dependency 7091: QuestDataUtils */;
|
||||
object2.billing_session_id = assignBillingSessionIdBinding(uuid,
|
||||
questDataUtilsModule.isBillableQuestContent(questContent));
|
||||
object2.scrolling_direction = scrollingDirection;
|
||||
object2.scroll_window_start_index = scrollWindowStartIndex;
|
||||
object2.scroll_window_end_index = scrollWindowEndIndex;
|
||||
object2.scroll_window_size = scrollWindowSize;
|
||||
object2.content_name = (require(7120) /* metro dependency 7120: AnalyticsTypes */).getQuestContentName(questContent);
|
||||
object2.content_id = questContent;
|
||||
object2.carousel_size = carouselSize;
|
||||
Reflect.apply(track, defaultImport, [QUEST_HOME_CAROUSEL_SCROLL, object2]);
|
||||
}
|
||||
|
||||
function trackQuestHomeSearchClosed({searchSessionId, searchSessionDurationMs}) { // fn#56821, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:8010, offset: 0x013d31d1, size: 131 bytes, params: 2, frame: 19
|
||||
const sessionAdGeneratorModule = require(7113) /* metro dependency 7113: SessionAdGenerator */;
|
||||
const getOrRefreshAdSession = sessionAdGeneratorModule.getOrRefreshAdSession;
|
||||
const uuid = Reflect.apply(getOrRefreshAdSession, sessionAdGeneratorModule, []).uuid;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const QUEST_HOME_SEARCH_CLOSED = AnalyticEvents.QUEST_HOME_SEARCH_CLOSED;
|
||||
const object2 = {client_ad_session_id: uuid};
|
||||
object2.billing_session_id = assignBillingSessionId(uuid, false);
|
||||
object2.search_session_id = searchSessionId;
|
||||
object2.search_session_duration_ms = searchSessionDurationMs;
|
||||
Reflect.apply(track, defaultImport, [QUEST_HOME_SEARCH_CLOSED, object2]);
|
||||
}
|
||||
|
||||
function trackQuestHomeSearchQuerySubmitted({searchSessionId, searchQuery, searchQueryLength, resultsCount, hasResults}) { // fn#56822, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:8339, offset: 0x013d3254, size: 172 bytes, params: 2, frame: 22
|
||||
const sessionAdGeneratorModule = require(7113) /* metro dependency 7113: SessionAdGenerator */;
|
||||
const getOrRefreshAdSession = sessionAdGeneratorModule.getOrRefreshAdSession;
|
||||
const uuid = Reflect.apply(getOrRefreshAdSession, sessionAdGeneratorModule, []).uuid;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const QUEST_HOME_SEARCH_QUERY_SUBMITTED = AnalyticEvents.QUEST_HOME_SEARCH_QUERY_SUBMITTED;
|
||||
const object2 = {client_ad_session_id: uuid};
|
||||
object2.billing_session_id = assignBillingSessionId(uuid, false);
|
||||
object2.search_session_id = searchSessionId;
|
||||
object2.search_query = searchQuery;
|
||||
object2.search_query_length = searchQueryLength;
|
||||
object2.results_count = resultsCount;
|
||||
object2.has_results = hasResults;
|
||||
Reflect.apply(track, defaultImport, [QUEST_HOME_SEARCH_QUERY_SUBMITTED, object2]);
|
||||
}
|
||||
|
||||
function trackQuestBarOrDockModeChange({questContent, sourceQuestContent, questId, mode, prevMode}) { // fn#56823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:8754, offset: 0x013d3300, size: 146 bytes, params: 2, frame: 17
|
||||
const contentProperties = (require(7120) /* metro dependency 7120: AnalyticsTypes */).getContentProperties(questContent);
|
||||
const trackQuestEventBinding = trackQuestEvent;
|
||||
const QUEST_BAR_MODE_CHANGED = AnalyticEvents.QUEST_BAR_MODE_CHANGED;
|
||||
trackQuestEventBinding({questId: questId, event: QUEST_BAR_MODE_CHANGED,
|
||||
properties: {content_id: contentProperties.content_id, content_name: contentProperties.content_name, mode: mode,
|
||||
previous_mode: prevMode}, sourceQuestContent: sourceQuestContent});
|
||||
}
|
||||
|
||||
async function _fun56805({questContent, questContentPosition, questContentRowIndex, questContentCTA, impressionId, clickId}) { // fn#56805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:2390, offset: 0x013d27ca, size: 397 bytes, params: 2, frame: 25
|
||||
var advertisingId;
|
||||
var r5;
|
||||
var value10;
|
||||
var value11;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
await undefined;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
let binding = env2_0;
|
||||
const binding2 = env2_2;
|
||||
const value4 = binding(binding2[14]);
|
||||
const getAdUser = value4.getAdUser;
|
||||
const value5 = binding(binding2[10]);
|
||||
const getQuestContentName = value5.getQuestContentName;
|
||||
await Reflect.apply(getAdUser, value4, [Reflect.apply(getQuestContentName, value5, [questContent])]);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
const object2 = {};
|
||||
binding = env2_0;
|
||||
const binding3 = env2_2;
|
||||
const value8 = binding(binding3[10]);
|
||||
const getContentProperties = value8.getContentProperties;
|
||||
copyDataProperties(object2, Reflect.apply(getContentProperties, value8, [questContent, questContentPosition,
|
||||
questContentRowIndex]), undefined);
|
||||
copyDataProperties(object2, env2_1(binding3[15])(), undefined);
|
||||
object2['cta_name'] = questContentCTA;
|
||||
object2['impression_id'] = impressionId;
|
||||
if (null != undefined) {
|
||||
value10 = env2_0(env2_2[16]);
|
||||
advertisingId = value10.isIOS() ? undefined.advertisingId : null;
|
||||
} else {
|
||||
advertisingId = null;
|
||||
}
|
||||
object2['apple_advertising_id'] = advertisingId;
|
||||
if (null != undefined) {
|
||||
value11 = env2_0(env2_2[16]);
|
||||
advertisingId = value11.isAndroid() ? undefined.advertisingId : null;
|
||||
} else {
|
||||
advertisingId = null;
|
||||
}
|
||||
object2['android_advertising_id'] = advertisingId;
|
||||
if (clickId != null) {
|
||||
r5 = clickId;
|
||||
} else {
|
||||
value = env2_0(env2_2[17]);
|
||||
value = value.v4();
|
||||
r5 = value;
|
||||
}
|
||||
object2['click_id'] = r5;
|
||||
return object2;
|
||||
}
|
||||
|
||||
async function _fun56808({questId, questContent, questContentCTA, questContentPosition, questContentRowIndex, impressionId, clickId, trackGuildAndChannelMetadata, sourceQuestContent}) { // fn#56808, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:2934, offset: 0x013d2999, size: 412 bytes, params: 2, frame: 29
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = undefined;
|
||||
await value;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
let binding = env2_0;
|
||||
const adTrafficMetadataSealed = binding(env2_2[7]).getAdTrafficMetadataSealed(sourceQuestContent, questId);
|
||||
binding = env2_14;
|
||||
const object3 = {questId: questId};
|
||||
const QUEST_CONTENT_CLICKED = env2_7.QUEST_CONTENT_CLICKED;
|
||||
object3.event = QUEST_CONTENT_CLICKED;
|
||||
const object4 = {};
|
||||
await env2_16({questContent: questContent, questContentPosition: questContentPosition,
|
||||
questContentRowIndex: questContentRowIndex, questContentCTA: questContentCTA, impressionId: impressionId,
|
||||
clickId: clickId});
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
copyDataProperties(object4, undefined, undefined);
|
||||
object4['metadata_sealed'] = env2_0(env2_2[7]).getAdMetadataSealed(sourceQuestContent) ?? null;
|
||||
object4['traffic_metadata_sealed'] = adTrafficMetadataSealed ?? null;
|
||||
const currentQuestHomeSearchSession = env2_0(env2_2[18]).getCurrentQuestHomeSearchSession();
|
||||
object4['search_session_id'] = (currentQuestHomeSearchSession == null ? value : currentQuestHomeSearchSession.uuid) ?? null;
|
||||
object3.properties = object4;
|
||||
object3.trackGuildAndChannelMetadata = trackGuildAndChannelMetadata;
|
||||
object3.shouldExtendSession = env2_0(env2_2[7]).isBillableQuestContent(questContent);
|
||||
object3.sourceQuestContent = sourceQuestContent;
|
||||
binding(object3);
|
||||
return value;
|
||||
}
|
||||
|
||||
async function _fun56811({adContentId, relatedQuestId, adCreativeType, questContent, questContentCTA, questContentPosition, questContentRowIndex, impressionId, trackGuildAndChannelMetadata, sourceQuestContent}) { // fn#56811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7288:3788, offset: 0x013d2b77, size: 241 bytes, params: 2, frame: 24
|
||||
if (true) {
|
||||
await undefined;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
var binding = env2_15;
|
||||
var object2 = {adContentId: adContentId, relatedQuestId: relatedQuestId, adCreativeType: adCreativeType};
|
||||
var QUEST_CONTENT_CLICKED = env2_7.QUEST_CONTENT_CLICKED;
|
||||
object2.event = QUEST_CONTENT_CLICKED;
|
||||
await env2_16({questContent: questContent, questContentPosition: questContentPosition,
|
||||
questContentRowIndex: questContentRowIndex, questContentCTA: questContentCTA, impressionId: impressionId});
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
object2.properties = undefined;
|
||||
object2.trackGuildAndChannelMetadata = trackGuildAndChannelMetadata;
|
||||
object2.shouldExtendSession = env2_0(env2_2[7]).isBillableQuestContent(questContent);
|
||||
object2.sourceQuestContent = sourceQuestContent;
|
||||
binding(object2);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,295 @@
|
||||
/* Metro module 9949; source: modules/quests/lib/analytics/AnalyticsHooks.tsx; dependencies: [31, 661, 9513, 7110, 7091, 7122, 7120, 7071, 491, 477, 7127, 6531, 7121, 683, 2] */
|
||||
function _fun77879(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#77879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:6, offset: 0x01e0f97d, size: 239 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = useTrackQuestEventWithImpression;
|
||||
const closure2 = useTrackAdContentEventWithImpression;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/lib/analytics/AnalyticsHooks.tsx');
|
||||
exports.useTrackQuestEventWithImpression = closure;
|
||||
exports.useTrackQuestContentClickedWithImpression = useTrackQuestContentClickedWithImpression;
|
||||
exports.useTrackAdContentEventWithImpression = closure2;
|
||||
exports.useTrackAdContentClickedWithImpression = useTrackAdContentClickedWithImpression;
|
||||
exports.useQuestsEmbedFallbackAnalytics = useQuestsEmbedFallbackAnalytics;
|
||||
exports.useBountyCarouselEmptyStateAnalytics = useBountyCarouselEmptyStateAnalytics;
|
||||
exports.useQuestHomeEntrypointAnalyticsEvents = useQuestHomeEntrypointAnalyticsEvents;
|
||||
}
|
||||
|
||||
function useTrackQuestEventWithImpression() { // fn#77880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:131, offset: 0x01e0fa6c, size: 73 bytes, params: 1, frame: 14
|
||||
return env0_3.useCallback(_fun77881,
|
||||
[(require(9513) /* metro dependency 9513: ContentImpressionTrackerHooks */).useQuestImpression()]);
|
||||
}
|
||||
|
||||
function useTrackAdContentEventWithImpression() { // fn#77882, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:343, offset: 0x01e0fb2b, size: 73 bytes, params: 1, frame: 14
|
||||
return env0_3.useCallback(_fun77883,
|
||||
[(require(9513) /* metro dependency 9513: ContentImpressionTrackerHooks */).useQuestImpression()]);
|
||||
}
|
||||
|
||||
function useTrackQuestContentClickedWithImpression() { // fn#77884, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:757, offset: 0x01e0fbea, size: 51 bytes, params: 1, frame: 14
|
||||
return env0_3.useCallback(_fun77885, [useTrackQuestEventWithImpression()]);
|
||||
}
|
||||
|
||||
function useTrackAdContentClickedWithImpression() { // fn#77887, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:1857, offset: 0x01e0fecb, size: 51 bytes, params: 1, frame: 14
|
||||
return env0_3.useCallback(_fun77888, [useTrackAdContentEventWithImpression()]);
|
||||
}
|
||||
|
||||
function useQuestsEmbedFallbackAnalytics(a0, a1) { // fn#77890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:2802, offset: 0x01e1016a, size: 57 bytes, params: 3, frame: 15
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
env0_3.useEffect(_fun77891, [a0, a1]);
|
||||
}
|
||||
|
||||
function useBountyCarouselEmptyStateAnalytics(a0) { // fn#77892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:2958, offset: 0x01e101d5, size: 46 bytes, params: 2, frame: 14
|
||||
const env0_0 = a0;
|
||||
env0_3.useEffect(_fun77893, [a0]);
|
||||
}
|
||||
|
||||
function useQuestHomeEntrypointAnalyticsEvents({questHomeHero, shouldShowQuestHomeHeroContent}) { // fn#77894, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:3129, offset: 0x01e1023c, size: 367 bytes, params: 2, frame: 19
|
||||
let env0_3 = undefined;
|
||||
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
|
||||
const r3 = shouldShowQuestHomeHeroContent ? QuestContent.QUEST_HOME_ENTRYPOINT_THEMED : QuestContent.QUEST_HOME_ENTRYPOINT;
|
||||
const value2 = env0_3.useMemo(_fun77895, [r3]);
|
||||
env0_3 = value2;
|
||||
const value3 = env0_3.useCallback(_fun77896, [questHomeHero, shouldShowQuestHomeHeroContent, r3, value2]);
|
||||
return env0_3.useMemo(_fun77901, [env0_3.useCallback(_fun77897, [value3]), env0_3.useCallback(_fun77898, [value3]),
|
||||
env0_3.useCallback(function() {
|
||||
importDefault(dependencyMap[13]).track(AnalyticEvents.QUEST_HOME_ONBOARDING_POPOVER_RENDERED);
|
||||
}, []), env0_3.useCallback(_fun77900, [value2, questHomeHero])]);
|
||||
}
|
||||
|
||||
function _fun77881(a0) { // fn#77881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:232, offset: 0x01e0fab5, size: 118 bytes, params: 2, frame: 17
|
||||
let value = environment.__proto__;
|
||||
value = undefined;
|
||||
const analyticsActionsModule = require(7110) /* metro dependency 7110: AnalyticsActions */;
|
||||
const trackQuestEvent = analyticsActionsModule.trackQuestEvent;
|
||||
const object3 = {};
|
||||
copyDataProperties(object3, a0, undefined);
|
||||
const object4 = {};
|
||||
copyDataProperties(object4, a0.properties, undefined);
|
||||
object4['impression_id'] = env0_0 == null ? value : env0_0.getId();
|
||||
object3['properties'] = object4;
|
||||
Reflect.apply(trackQuestEvent, analyticsActionsModule, [object3]);
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun77883(a0) { // fn#77883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:448, offset: 0x01e0fb74, size: 118 bytes, params: 2, frame: 17
|
||||
let value = environment.__proto__;
|
||||
value = undefined;
|
||||
const analyticsActionsModule = require(7110) /* metro dependency 7110: AnalyticsActions */;
|
||||
const trackAdContentEvent = analyticsActionsModule.trackAdContentEvent;
|
||||
const object3 = {};
|
||||
copyDataProperties(object3, a0, undefined);
|
||||
const object4 = {};
|
||||
copyDataProperties(object4, a0.properties, undefined);
|
||||
object4['impression_id'] = env0_0 == null ? value : env0_0.getId();
|
||||
object3['properties'] = object4;
|
||||
Reflect.apply(trackAdContentEvent, analyticsActionsModule, [object3]);
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun77885({questId, questContent, questContentCTA, questContentPosition, questContentRowIndex, trackGuildAndChannelMetadata, sourceQuestContent}) { // fn#77885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:873, offset: 0x01e0fc1d, size: 205 bytes, params: 2, frame: 19
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
const env0_7 = (require(7091) /* metro dependency 7091: QuestDataUtils */).getAdMetadataSealed(sourceQuestContent);
|
||||
const env0_8 = (require(7091) /* metro dependency 7091: QuestDataUtils */).getAdTrafficMetadataSealed(sourceQuestContent,
|
||||
questId);
|
||||
const getAdUser = (require(7122) /* metro dependency 7122: AdDataUtilsAndroid */).getAdUser;
|
||||
const analyticsTypesModule = require(7120) /* metro dependency 7120: AnalyticsTypes */;
|
||||
const getQuestContentName = analyticsTypesModule.getQuestContentName;
|
||||
value = Reflect.apply(getAdUser, value, [Reflect.apply(getQuestContentName, analyticsTypesModule, [questContent])]);
|
||||
value.then(_fun77886);
|
||||
}
|
||||
|
||||
function _fun77888({adContentId, relatedQuestId, adCreativeType, questContent, questContentCTA, questContentPosition, questContentRowIndex, trackGuildAndChannelMetadata, sourceQuestContent}) { // fn#77888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:1974, offset: 0x01e0fefe, size: 173 bytes, params: 2, frame: 16
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
const getAdUser = (require(7122) /* metro dependency 7122: AdDataUtilsAndroid */).getAdUser;
|
||||
const analyticsTypesModule = require(7120) /* metro dependency 7120: AnalyticsTypes */;
|
||||
const getQuestContentName = analyticsTypesModule.getQuestContentName;
|
||||
value = Reflect.apply(getAdUser, value, [Reflect.apply(getQuestContentName, analyticsTypesModule, [questContent])]);
|
||||
value.then(_fun77889);
|
||||
}
|
||||
|
||||
function _fun77891() { // fn#77891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:2861, offset: 0x01e101a3, size: 50 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
(require(7110) /* metro dependency 7110: AnalyticsActions */).trackQuestEmbedFallbackViewed(require, env0_0);
|
||||
}
|
||||
|
||||
function _fun77893() { // fn#77893, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:3020, offset: 0x01e10203, size: 57 bytes, params: 1, frame: 12
|
||||
var value2;
|
||||
if (env0_0 != null) {
|
||||
value2 = environment.__proto__;
|
||||
(require(7110) /* metro dependency 7110: AnalyticsActions */).trackBountyCarouselEmptyStateViewed(env0_0);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun77895() { // fn#77895, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:3344, offset: 0x01e103ab, size: 50 bytes, params: 1, frame: 11
|
||||
let value = environment.__proto__;
|
||||
value = require(7120) /* metro dependency 7120: AnalyticsTypes */;
|
||||
value = value.getContentProperties(env0_2);
|
||||
delete value.row_index;
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun77896(a0) { // fn#77896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:3439, offset: 0x01e103dd, size: 173 bytes, params: 2, frame: 18
|
||||
var value2;
|
||||
var value3;
|
||||
var moduleValue;
|
||||
var trackAdContentEvent;
|
||||
var object2;
|
||||
if (questHomeHero == null) {
|
||||
value2 = environment.__proto__;
|
||||
(importDefault(683) /* metro dependency 683: AnalyticsUtils */).track(a0, env0_3);
|
||||
} else if (shouldShowQuestHomeHeroContent) {
|
||||
value3 = environment.__proto__;
|
||||
moduleValue = require(7110) /* metro dependency 7110: AnalyticsActions */;
|
||||
trackAdContentEvent = moduleValue.trackAdContentEvent;
|
||||
object2 = {};
|
||||
object2.adContentId = questHomeHero.id;
|
||||
object2.adCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType.QUEST_HOME_HERO;
|
||||
object2.event = a0;
|
||||
object2.properties = env0_3;
|
||||
object2.sourceQuestContent = env0_2;
|
||||
Reflect.apply(trackAdContentEvent, moduleValue, [object2]);
|
||||
} else {
|
||||
value2 = environment.__proto__;
|
||||
(importDefault(683) /* metro dependency 683: AnalyticsUtils */).track(a0, env0_3);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun77897() { // fn#77897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:3649, offset: 0x01e1048a, size: 29 bytes, params: 1, frame: 11
|
||||
const binding = env0_4;
|
||||
const QUEST_HOVER = AnalyticEvents.QUEST_HOVER;
|
||||
binding(QUEST_HOVER);
|
||||
}
|
||||
|
||||
function _fun77898() { // fn#77898, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:3695, offset: 0x01e104a7, size: 29 bytes, params: 1, frame: 11
|
||||
const binding = env0_4;
|
||||
const QUEST_HOVER_OFF = AnalyticEvents.QUEST_HOVER_OFF;
|
||||
binding(QUEST_HOVER_OFF);
|
||||
}
|
||||
|
||||
function _fun77900() { // fn#77900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:3830, offset: 0x01e104f3, size: 114 bytes, params: 1, frame: 17
|
||||
var object2;
|
||||
var r7;
|
||||
var id;
|
||||
let value = environment.__proto__;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const QUEST_CONTENT_CLICKED = AnalyticEvents.QUEST_CONTENT_CLICKED;
|
||||
const object3 = {is_targeted: false};
|
||||
value = environment;
|
||||
copyDataProperties(object3, env0_3, value);
|
||||
if (questHomeHero != null) {
|
||||
id = questHomeHero.id;
|
||||
object2 = {ad_content_id: id};
|
||||
r7 = id;
|
||||
} else {
|
||||
object2 = {};
|
||||
r7 = value;
|
||||
}
|
||||
copyDataProperties(object3, object2, r7);
|
||||
Reflect.apply(track, defaultImport, [QUEST_CONTENT_CLICKED, object3]);
|
||||
}
|
||||
|
||||
function _fun77901() { // fn#77901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:3959, offset: 0x01e10565, size: 51 bytes, params: 1, frame: 3
|
||||
return {handleMouseEnter: env0_5, handleMouseLeave: env0_6, handleOnboardingPopoutRender: env0_7,
|
||||
handleEntrypointClick: env0_8};
|
||||
}
|
||||
|
||||
function _fun77886(a0) { // fn#77886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:1155, offset: 0x01e0fcea, size: 481 bytes, params: 2, frame: 24
|
||||
var advertisingId;
|
||||
var moduleValue3;
|
||||
var moduleValue4;
|
||||
const binding = env1_0;
|
||||
const object3 = {};
|
||||
object3.questId = questId;
|
||||
const QUEST_CONTENT_CLICKED = AnalyticEvents.QUEST_CONTENT_CLICKED;
|
||||
object3.event = QUEST_CONTENT_CLICKED;
|
||||
const object4 = {};
|
||||
const value3 = undefined;
|
||||
const analyticsTypesModule = require(7120) /* metro dependency 7120: AnalyticsTypes */;
|
||||
const getContentProperties = analyticsTypesModule.getContentProperties;
|
||||
copyDataProperties(object4, Reflect.apply(getContentProperties, analyticsTypesModule, [questContent,
|
||||
questContentPosition, questContentRowIndex]), undefined);
|
||||
copyDataProperties(object4, (importDefault(7071) /* metro dependency 7071: getDeviceMetadataNative */)(), undefined);
|
||||
object4['cta_name'] = questContentCTA;
|
||||
object4['click_id'] = (require(491) /* metro dependency 491 */).v4();
|
||||
const value5 = null;
|
||||
if (value5 != a0) {
|
||||
moduleValue3 = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
advertisingId = moduleValue3.isIOS() ? a0.advertisingId : value5;
|
||||
} else {
|
||||
advertisingId = value5;
|
||||
}
|
||||
object4['apple_advertising_id'] = advertisingId;
|
||||
if (value5 != a0) {
|
||||
moduleValue4 = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
advertisingId = moduleValue4.isAndroid() ? a0.advertisingId : value5;
|
||||
} else {
|
||||
advertisingId = value5;
|
||||
}
|
||||
object4['android_advertising_id'] = advertisingId;
|
||||
object4['metadata_sealed'] = value5 != env0_7 ? env0_7 : value5;
|
||||
object4['traffic_metadata_sealed'] = value5 != env0_8 ? env0_8 : value5;
|
||||
const currentQuestHomeSearchSession = (require(7127) /* metro dependency 7127: QuestHomeSearchSession */).getCurrentQuestHomeSearchSession();
|
||||
const uuid = value5 == currentQuestHomeSearchSession ? value3 : currentQuestHomeSearchSession.uuid;
|
||||
object4['search_session_id'] = value5 != uuid ? uuid : value5;
|
||||
object3.properties = object4;
|
||||
object3.trackGuildAndChannelMetadata = trackGuildAndChannelMetadata;
|
||||
const questDataUtilsModule = require(7091) /* metro dependency 7091: QuestDataUtils */;
|
||||
object3.shouldExtendSession = questDataUtilsModule.isBillableQuestContent(questContent);
|
||||
object3.sourceQuestContent = sourceQuestContent;
|
||||
binding(object3);
|
||||
return value3;
|
||||
}
|
||||
|
||||
function _fun77889(a0) { // fn#77889, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10135:2215, offset: 0x01e0ffab, size: 447 bytes, params: 2, frame: 24
|
||||
var advertisingId;
|
||||
var moduleValue3;
|
||||
var moduleValue4;
|
||||
const binding = env1_0;
|
||||
const object3 = {};
|
||||
object3.adContentId = adContentId;
|
||||
object3.relatedQuestId = relatedQuestId;
|
||||
object3.adCreativeType = adCreativeType;
|
||||
const QUEST_CONTENT_CLICKED = AnalyticEvents.QUEST_CONTENT_CLICKED;
|
||||
object3.event = QUEST_CONTENT_CLICKED;
|
||||
const object4 = {};
|
||||
const value3 = undefined;
|
||||
const analyticsTypesModule = require(7120) /* metro dependency 7120: AnalyticsTypes */;
|
||||
const getContentProperties = analyticsTypesModule.getContentProperties;
|
||||
copyDataProperties(object4, Reflect.apply(getContentProperties, analyticsTypesModule, [questContent,
|
||||
questContentPosition, questContentRowIndex]), undefined);
|
||||
copyDataProperties(object4, (importDefault(7071) /* metro dependency 7071: getDeviceMetadataNative */)(), undefined);
|
||||
object4['cta_name'] = questContentCTA;
|
||||
object4['click_id'] = (require(491) /* metro dependency 491 */).v4();
|
||||
const value5 = null;
|
||||
if (value5 != a0) {
|
||||
moduleValue3 = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
advertisingId = moduleValue3.isIOS() ? a0.advertisingId : value5;
|
||||
} else {
|
||||
advertisingId = value5;
|
||||
}
|
||||
object4['apple_advertising_id'] = advertisingId;
|
||||
if (value5 != a0) {
|
||||
moduleValue4 = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
advertisingId = moduleValue4.isAndroid() ? a0.advertisingId : value5;
|
||||
} else {
|
||||
advertisingId = value5;
|
||||
}
|
||||
object4['android_advertising_id'] = advertisingId;
|
||||
const currentQuestHomeSearchSession = (require(7127) /* metro dependency 7127: QuestHomeSearchSession */).getCurrentQuestHomeSearchSession();
|
||||
const uuid = value5 == currentQuestHomeSearchSession ? value3 : currentQuestHomeSearchSession.uuid;
|
||||
object4['search_session_id'] = value5 != uuid ? uuid : value5;
|
||||
object3.properties = object4;
|
||||
object3.trackGuildAndChannelMetadata = trackGuildAndChannelMetadata;
|
||||
const questDataUtilsModule = require(7091) /* metro dependency 7091: QuestDataUtils */;
|
||||
object3.shouldExtendSession = questDataUtilsModule.isBillableQuestContent(questContent);
|
||||
object3.sourceQuestContent = sourceQuestContent;
|
||||
binding(object3);
|
||||
return value3;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,103 @@
|
||||
/* Metro module 7120; source: modules/quests/lib/analytics/AnalyticsTypes.tsx; dependencies: [6531, 2] */
|
||||
function _fun56939(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7298:6, offset: 0x013d6a13, size: 1079 bytes, params: 8, frame: 23
|
||||
const env0_0 = require;
|
||||
const closure = getQuestContentName;
|
||||
let Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
Object = global.Object;
|
||||
const keys = Object.keys;
|
||||
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
|
||||
const env0_2 = Reflect.apply(keys, Object, [QuestContent]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/lib/analytics/AnalyticsTypes.tsx');
|
||||
exports.getQuestContentName = closure;
|
||||
exports.getQuestStatus = function(a0) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var property = a0.userStatus;
|
||||
var value = undefined;
|
||||
if (property == null) {
|
||||
r0 = value;
|
||||
} else {
|
||||
property = property.claimedAt;
|
||||
r0 = property;
|
||||
}
|
||||
if (r0 != null) {
|
||||
r0 = 'COMPLETED_CLAIMED';
|
||||
} else {
|
||||
property = a0.userStatus;
|
||||
if (property == null) {
|
||||
r1 = value;
|
||||
} else {
|
||||
property = property.completedAt;
|
||||
r1 = property;
|
||||
}
|
||||
if (r1 != null) {
|
||||
r1 = 'COMPLETED';
|
||||
} else {
|
||||
property = a0.userStatus;
|
||||
r2 = property == null ? value : property.enrolledAt;
|
||||
value = 'NONE';
|
||||
r2 = r2 != null ? 'ENROLLED' : value;
|
||||
r1 = r2;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
};
|
||||
exports.getContentProperties = function(a0, a1, a2) {
|
||||
var object = {content_id: a0};
|
||||
object.content_name = getQuestContentName(a0);
|
||||
object.content_position = a1;
|
||||
object.row_index = a2;
|
||||
return object;
|
||||
};
|
||||
exports.BountyScrollingType = {AUTO: 'AUTO', MANUAL: 'MANUAL'};
|
||||
exports.HorizontalScrollingDirection = {LEFT: 'LEFT', RIGHT: 'RIGHT'};
|
||||
exports.VerticalScrollingDirection = {UP: 'UP', DOWN: 'DOWN'};
|
||||
exports.QuestHomeScrollingType = {ARROW: 'ARROW', AUTO: 'AUTO', MANUAL: 'MANUAL'};
|
||||
exports.QuestContentCTA = {LEARN_MORE: 'LEARN_MORE', SHOW_REWARD: 'SHOW_REWARD', CLAIM_REWARD: 'CLAIM_REWARD',
|
||||
GET_REWARD_CODE: 'GET_REWARD_CODE', COPY_REWARD_CODE: 'COPY_REWARD_CODE', ACCEPT_QUEST: 'ACCEPT_QUEST',
|
||||
COPY_QUEST_URL: 'COPY_QUEST_URL', MOBILE_SHARESHEET: 'MOBILE_SHARESHEET', TRACK_PROGRESS: 'TRACK_PROGRESS',
|
||||
CONNECT_CONSOLE: 'CONNECT_CONSOLE', CONNECT_CONSOLE_LINK: 'CONNECT_CONSOLE_LINK',
|
||||
VIEW_CONSOLE_CONNECTIONS: 'VIEW_CONSOLE_CONNECTION',
|
||||
VIEW_CONSOLE_CONNECTIONS_LINK: 'VIEW_CONSOLE_CONNECTIONS_LINK', VIEW_REQUIREMENTS: 'VIEW_REQUIREMENTS',
|
||||
SELECT_CONSOLE_PLATFORM: 'SELECT_CONSOLE_PLATFORM', SELECT_DESKTOP_PLATFORM: 'SELECT_DESKTOP_PLATFORM',
|
||||
DESELECT_PLATFORM: 'DESELECT_PLATFORM', OPEN_ACCOUNT_LINK_MODAL: 'OPEN_ACCOUNT_LINK_MODAL',
|
||||
OPEN_ACCOUNT_LINK_INSTRUCTIONS: 'OPEN_ACCOUNT_LINK_INSTRUCTIONS',
|
||||
SELECT_IN_GAME_AUTH_METHOD: 'SELECT_IN_GAME_AUTH_METHOD', SELECT_WEB_AUTH_METHOD: 'SELECT_WEB_AUTH_METHOD',
|
||||
START_WEB_AUTHORIZATION: 'START_WEB_AUTHORIZATION', DEFIBRILLATOR: 'DEFIBRILLATOR',
|
||||
DEFIBRILLATOR_RECONNECT_CONSOLE: 'DEFIBRILLATOR_RECONNECT_CONSOLE', OPEN_DISCLOSURE: 'OPEN_DISCLOSURE',
|
||||
WATCH_STREAM: 'WATCH_STREAM', WATCH_STREAM_CONFIRM: 'WATCH_STREAM_CONFIRM',
|
||||
REWARD_LEARN_MORE: 'REWARD_LEARN_MORE', OPEN_GAME_LINK: 'OPEN_GAME_LINK',
|
||||
OPEN_CONTEXT_MENU: 'OPEN_CONTEXT_MENU', OPEN_QUEST_HOME: 'OPEN_QUEST_HOME',
|
||||
OPEN_QUEST_HOME_TO_CLAIM: 'OPEN_QUEST_HOME_TO_CLAIM', QUEST_BAR_COPY_LINK: 'QUEST_BAR.COPY_LINK',
|
||||
CONTEXT_MENU_COPY_LINK: 'CONTEXT_MENU.COPY_LINK', REWARD_MODAL_COPY_LINK: 'REWARD_MODAL.COPY_LINK',
|
||||
CONTEXT_MENU_HIDE_CONTENT: 'CONTEXT_MENU.HIDE_CONTENT',
|
||||
CONTEXT_MENU_OPEN_GAME_LINK: 'CONTEXT_MENU.OPEN_GAME_LINK',
|
||||
CONTEXT_MENU_OPEN_DISCLOSURE: 'CONTEXT_MENU.OPEN_DISCLOSURE',
|
||||
CONTEXT_MENU_LEARN_MORE: 'CONTEXT_MENU.LEARN_MORE', HOW_TO_HELP_ARTICLE_XBOX: 'HOW_TO_HELP_ARTICLE_XBOX',
|
||||
HOW_TO_HELP_ARTICLE_PLAYSTATION: 'HOW_TO_HELP_ARTICLE_PLAYSTATION', VIEW_QUESTS: 'VIEW_QUESTS',
|
||||
EXPAND: 'EXPAND', COLLAPSE: 'COLLAPSE', START_QUEST: 'START_QUEST', TRANSCRIPT_ENABLE: 'TRANSCRIPT_ENABLE',
|
||||
TRANSCRIPT_DISABLE: 'TRANSCRIPT_DISABLE', CLOSED_CAPTIONING_ENABLE: 'CLOSED_CAPTIONING_ENABLE',
|
||||
CLOSED_CAPTIONING_DISABLE: 'CLOSED_CAPTIONING_DISABLE', SEEK_BACKWARD: 'SEEK_BACKWARD',
|
||||
SEEK_FORWARD: 'SEEK_FORWARD', WATCH_VIDEO: 'WATCH_VIDEO',
|
||||
QUEST_BAR_VIDEO_QUEST_PREVIEW: 'QUEST_BAR_VIDEO_QUEST_PREVIEW',
|
||||
QUEST_HOME_TILE_HEADER_WATCH_VIDEO: 'QUEST_HOME_TILE_HEADER_WATCH_VIDEO', REDEEM_REWARD: 'REDEEM_REWARD',
|
||||
VISIT_REDEMPTION_LINK: 'VISIT_REDEMPTION_LINK', SPONSORED_QUEST_SHEET: 'SPONSORED_QUEST_SHEET',
|
||||
GAME_PROFILE_OPEN: 'GAME_PROFILE_OPEN', GAME_STORE_OPEN_GAME_LINK: 'GAME_STORE_OPEN_GAME_LINK',
|
||||
MOBILE_ORBS_ONBOARDING_DC: 'MOBILE_ORBS_ONBOARDING_DC', LAUNCH_MOBILE_ACTIVITY: 'LAUNCH_MOBILE_ACTIVITY',
|
||||
OPEN_NITRO_CHECKOUT: 'OPEN_NITRO_CHECKOUT', OPEN_NITRO_HOME: 'OPEN_NITRO_HOME', START_BOUNTY: 'START_BOUNTY',
|
||||
BACK_TO_BOUNTIES: 'BACK_TO_BOUNTIES'};
|
||||
}
|
||||
|
||||
function getQuestContentName(a0) { // fn#56940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7298:132, offset: 0x013d6e4a, size: 50 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
return env0_2.find(_fun56941) ?? '';
|
||||
}
|
||||
|
||||
function _fun56941(a0) { // fn#56941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7298:194, offset: 0x013d6e7c, size: 50 bytes, params: 2, frame: 11
|
||||
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
|
||||
return QuestContent[a0] === env0_0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,134 @@
|
||||
/* Metro module 9516; source: modules/quests/lib/analytics/BrandSafetyContext.tsx; dependencies: [9485, 1379, 1867, 3793, 3969, 1878, 9515, 7091, 1423, 4805, 2] */
|
||||
function _fun74246(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9702:6, offset: 0x01d86c29, size: 236 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const sidebarVisibilityMethodStoreModule = require(9485) /* metro dependency 9485: SidebarVisibilityMethodStore */;
|
||||
const env0_3 = sidebarVisibilityMethodStoreModule.getVisibleChannelIdsMethod;
|
||||
const env0_4 = sidebarVisibilityMethodStoreModule.getVisibleGuildIdsMethod;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const selectedGuildStore = importDefault(3969) /* metro dependency 3969: SelectedGuildStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const env0_10 = (require(9515) /* metro dependency 9515: ContentImpressionTrackerConstants */).MAX_BRAND_SAFETY_CONTEXT_ARRAY_LEN;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/lib/analytics/BrandSafetyContext.tsx');
|
||||
exports.getBrandSafetyContext = getBrandSafetyContext;
|
||||
}
|
||||
|
||||
function getBrandSafetyContext(a0) { // fn#74247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9702:371, offset: 0x01d86d15, size: 550 bytes, params: 2, frame: 20
|
||||
var r3;
|
||||
var r2;
|
||||
var guildId;
|
||||
var object2;
|
||||
var value9;
|
||||
var guildBannerURL;
|
||||
var length;
|
||||
var object4;
|
||||
const value2 = undefined;
|
||||
const isBillableQuestContent2 = (require(7091) /* metro dependency 7091: QuestDataUtils */).isBillableQuestContent(a0);
|
||||
const adContext = (require(7091) /* metro dependency 7091: QuestDataUtils */).getAdContext(a0);
|
||||
const visibleGuildIdsMethod = getVisibleGuildIdsMethod();
|
||||
const visibleChannelIdsMethod = getVisibleChannelIdsMethod();
|
||||
const value6 = null;
|
||||
if (value6 != adContext) {
|
||||
if (adContext.is_campaign_ias_enabled) {
|
||||
if (isBillableQuestContent2) {
|
||||
if (value2 === visibleGuildIdsMethod) {
|
||||
return value6;
|
||||
}
|
||||
if (value2 === visibleChannelIdsMethod) {
|
||||
return value6;
|
||||
}
|
||||
guildId = SelectedGuildStore.getGuildId();
|
||||
r3 = value6 != guildId ? GuildStore.getGuild(guildId) : value6;
|
||||
object2 = {};
|
||||
value9 = visibleGuildIdsMethod();
|
||||
var env0_0 = GuildStore.getGuilds();
|
||||
object2.guilds = value9.map(_fun74248).filter(function(a0) {
|
||||
return a0 !== null;
|
||||
});
|
||||
object2.channels = value6 == r3 ? [] : visibleChannelIdsMethod().map(_fun74250).filter(_fun74251);
|
||||
if (value6 != guildId) {
|
||||
object2.selected_guild_id = guildId;
|
||||
}
|
||||
if (value6 === (value6 == r3 ? value2 : r3.banner)) {
|
||||
r2 = value6;
|
||||
} else if (value2 === (value6 == r3 ? value2 : r3.banner)) {
|
||||
r2 = value6;
|
||||
} else {
|
||||
guildBannerURL = (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getGuildBannerURL({id: r3.id,
|
||||
|
||||
|
||||
|
||||
banner: r3.banner}, true);
|
||||
r2 = value6 != guildBannerURL ? guildBannerURL : value6;
|
||||
}
|
||||
if (value6 !== r2) {
|
||||
object2.selected_guild_banner_url = r2;
|
||||
}
|
||||
length = object2.guilds.length;
|
||||
if (length > MAX_BRAND_SAFETY_CONTEXT_ARRAY_LEN) {
|
||||
object2.guilds = object2.guilds.slice(0, MAX_BRAND_SAFETY_CONTEXT_ARRAY_LEN);
|
||||
object2.truncated = true;
|
||||
}
|
||||
length = object2.channels.length;
|
||||
if (length > MAX_BRAND_SAFETY_CONTEXT_ARRAY_LEN) {
|
||||
object2.channels = object2.channels.slice(0, MAX_BRAND_SAFETY_CONTEXT_ARRAY_LEN);
|
||||
object2.truncated = true;
|
||||
}
|
||||
object4 = {};
|
||||
object4.brand_safety_context = global.JSON.stringify(object2);
|
||||
return object4;
|
||||
}
|
||||
return value6;
|
||||
}
|
||||
}
|
||||
return value6;
|
||||
}
|
||||
|
||||
function _fun74248(a0) { // fn#74248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9702:658, offset: 0x01d86f3b, size: 172 bytes, params: 2, frame: 16
|
||||
var r1;
|
||||
var value2;
|
||||
var guildIconURL;
|
||||
const property = env0_0[a0];
|
||||
if (property === undefined) {
|
||||
return null;
|
||||
}
|
||||
const object2 = {};
|
||||
object2.id = property.id;
|
||||
object2.name = property.name;
|
||||
const description = property.description;
|
||||
const value = null;
|
||||
if (value !== description) {
|
||||
object2.description = property.description;
|
||||
}
|
||||
if (value === property.icon) {
|
||||
r1 = value;
|
||||
} else {
|
||||
value2 = environment.__proto__;
|
||||
guildIconURL = (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getGuildIconURL({id: property.id,
|
||||
icon: property.icon, size: 44, canAnimate: true});
|
||||
r1 = value != guildIconURL ? guildIconURL : value;
|
||||
}
|
||||
if (value !== r1) {
|
||||
object2.icon_url = r1;
|
||||
}
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun74250(a0) { // fn#74250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9702:977, offset: 0x01d86fe7, size: 119 bytes, params: 2, frame: 17
|
||||
const channel = ChannelStore.getChannel(a0);
|
||||
if (channel === undefined) {
|
||||
return null;
|
||||
}
|
||||
const object2 = {};
|
||||
object2.id = channel.id;
|
||||
object2.name = (require(4805) /* metro dependency 4805: useChannelName */).computeChannelName(channel, UserStore,
|
||||
RelationshipStore);
|
||||
if (channel.topic.length > 0) {
|
||||
object2.channel_topic = channel.topic;
|
||||
}
|
||||
return object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,685 @@
|
||||
/* Metro module 9514; source: modules/quests/lib/analytics/ContentImpressionTracker.tsx; dependencies: [5, 6, 7, 31, 7093, 9515, 661, 33, 7091, 7122, 7120, 477, 7071, 9516, 7121, 9484, 7099, 7110, 7127, 9517, 9518, 4826, 4831, 491, 9519, 9513, 566, 4594, 2] */
|
||||
function _fun74221(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74221, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:6, offset: 0x01d8544e, size: 353 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const getQuestPlacementCombinationKey = function(a0, a1) {
|
||||
return '' + a0 + '_' + a1;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_5 = importDefault(7) /* metro dependency 7 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const questStore = importDefault(7093) /* metro dependency 7093: QuestStore */;
|
||||
const contentImpressionTrackerConstantsModule = require(9515) /* metro dependency 9515: ContentImpressionTrackerConstants */;
|
||||
const env0_8 = contentImpressionTrackerConstantsModule.HEARTBEAT_SECONDS;
|
||||
const env0_9 = contentImpressionTrackerConstantsModule.MIN_QUEST_VIEW_TIME_SECONDS;
|
||||
const env0_10 = contentImpressionTrackerConstantsModule.MIN_QUEST_CONTENT_VISIBILITY_PERCENTAGE;
|
||||
const env0_11 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const env0_12 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const Set = global.Set;
|
||||
const set = new Set();
|
||||
const value5 = _fun74223();
|
||||
value = value.createContext(undefined);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/lib/analytics/ContentImpressionTracker.tsx');
|
||||
exports.QuestContentImpression = value5;
|
||||
exports.QuestImpressionContext = value;
|
||||
exports.QuestContentImpressionTracker = QuestContentImpressionTracker;
|
||||
}
|
||||
|
||||
function _fun74223() { // fn#74223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:373, offset: 0x01d855d3, size: 84 bytes, params: 1, frame: 15
|
||||
return env0_5(QuestContentImpression, [{key: 'getId', value: function() {
|
||||
return this.id;
|
||||
}}, {key: 'getQuestContentPosition', value: function() {
|
||||
return this.questContentPosition;
|
||||
}}]);
|
||||
}
|
||||
|
||||
function QuestContentImpressionTracker(a0) { // fn#74240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:8267, offset: 0x01d8688e, size: 379 bytes, params: 2, frame: 29
|
||||
const env0_0 = a0;
|
||||
const visible = a0.visible;
|
||||
const visibleChanged = a0.visibleChanged;
|
||||
const focused = a0.focused;
|
||||
const reference = a0.reference;
|
||||
const focusedChanged = a0.focusedChanged;
|
||||
const sourceQuestContent = a0.sourceQuestContent;
|
||||
const value2 = (require(9513) /* metro dependency 9513: ContentImpressionTrackerHooks */).useQuestStatusChanged(a0);
|
||||
const binding = value2;
|
||||
const value3 = binding.useRef(null);
|
||||
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([QuestStore], function() {
|
||||
return QuestStore.questEnrollmentBlockedUntil != null;
|
||||
}, []);
|
||||
(importDefault(4594) /* metro dependency 4594: useMountEffect */)(function() {
|
||||
return _fun74243;
|
||||
});
|
||||
binding.useEffect(_fun74244, [focused, visible, focusedChanged, visibleChanged, a0.adContentIds, a0.onImpression,
|
||||
a0.questContent, a0.questContentPosition, a0.questContentRowIndex, a0.trackGuildAndChannelMetadata, value2,
|
||||
a0.minViewTimeSeconds, value4, sourceQuestContent, a0.adCreativeType]);
|
||||
const Provider = env0_15.Provider;
|
||||
return (
|
||||
<Provider value={value3}>
|
||||
{a0.children(reference, value3)}
|
||||
</Provider>
|
||||
);
|
||||
}
|
||||
|
||||
function QuestContentImpression({adContentIds, adCreativeType, questContent, triggeredByStatusChange, trackGuildAndChannelMetadata, questContentPosition, questContentRowIndex, minViewTimeSeconds, isQuestEnrollmentBlocked, onImpression, sourceQuestContent}) { // fn#74224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:394, offset: 0x01d85627, size: 434 bytes, params: 2, frame: 27
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
env1_4(this, QuestContentImpression);
|
||||
this.isRunning = false;
|
||||
this.trackViewedPlacement = trackViewedPlacement;
|
||||
this.shouldExtendSession = shouldExtendSession;
|
||||
this.onMinViewTimeReached = env1_3(_fun74228);
|
||||
this.beat = beat;
|
||||
this.commonProperties = commonProperties;
|
||||
this.clone = clone_74233;
|
||||
this.start = start_74234;
|
||||
this.stop = stop_74237;
|
||||
const r13 = minViewTimeSeconds !== undefined ? minViewTimeSeconds : MIN_QUEST_VIEW_TIME_SECONDS;
|
||||
const moduleValue = require(491) /* metro dependency 491 */;
|
||||
this.id = moduleValue.v4();
|
||||
this.questContent = questContent;
|
||||
this.questContentPosition = questContentPosition;
|
||||
this.minViewTimeSeconds = r13;
|
||||
this.minViewportPercentage = MIN_QUEST_CONTENT_VISIBILITY_PERCENTAGE;
|
||||
this.trackGuildAndChannelMetadata = trackGuildAndChannelMetadata;
|
||||
this.triggeredByStatusChange = triggeredByStatusChange;
|
||||
this.questContentRowIndex = questContentRowIndex;
|
||||
this.isQuestEnrollmentBlocked = isQuestEnrollmentBlocked;
|
||||
this.onImpressionCallback = onImpression;
|
||||
this.sourceQuestContent = sourceQuestContent;
|
||||
value = require(9519) /* metro dependency 9519: AdAnalyticsInterfaceExperiment */;
|
||||
const shouldMigrateToAdAnalyticsInterface = value.shouldMigrateToAdAnalyticsInterface;
|
||||
const AdAnalyticsInterfaceExperimentStep = (require(9519) /* metro dependency 9519: AdAnalyticsInterfaceExperiment */).AdAnalyticsInterfaceExperimentStep;
|
||||
const STEP_1_LOADED = AdAnalyticsInterfaceExperimentStep.STEP_1_LOADED;
|
||||
this.migrateQuestContentLoadedToCaptureAdUserAction = Reflect.apply(shouldMigrateToAdAnalyticsInterface, value,
|
||||
[STEP_1_LOADED, 'quest_content_impression']);
|
||||
const AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType;
|
||||
AdCreativeType.QUEST;
|
||||
this.entity = {adContentIds: adContentIds, adCreativeType: adCreativeType};
|
||||
}
|
||||
|
||||
function _fun74242() { // fn#74242, offset: 0x01d86a1e, size: 11 bytes, params: 1, frame: 1
|
||||
return _fun74243;
|
||||
}
|
||||
|
||||
function _fun74244() { // fn#74244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:8621, offset: 0x01d86a52, size: 356 bytes, params: 1, frame: 16
|
||||
var r3;
|
||||
var r2;
|
||||
var binding;
|
||||
var object3;
|
||||
var value4;
|
||||
var binding2;
|
||||
var binding3;
|
||||
var object4;
|
||||
const r4 = focused && visible;
|
||||
let r1 = visibleChanged || focusedChanged;
|
||||
r1 = (!r1 ? env0_6 : r1) && r4;
|
||||
if (r1) {
|
||||
r2 = r1;
|
||||
} else {
|
||||
r3 = visibleChanged || focusedChanged;
|
||||
r3 = r3 && !r4;
|
||||
r2 = r3;
|
||||
}
|
||||
r2 = (!r2 ? env0_6 : r2) && env0_7.current != null;
|
||||
if (r2) {
|
||||
env0_7.current.stop();
|
||||
}
|
||||
if (r1) {
|
||||
object3 = {isQuestEnrollmentBlocked: env0_8};
|
||||
binding = env0_0;
|
||||
object3.minViewTimeSeconds = binding.minViewTimeSeconds;
|
||||
object3.onImpression = binding.onImpression;
|
||||
object3.questContent = binding.questContent;
|
||||
object3.questContentPosition = binding.questContentPosition;
|
||||
object3.questContentRowIndex = binding.questContentRowIndex;
|
||||
object3.sourceQuestContent = sourceQuestContent;
|
||||
object3.trackGuildAndChannelMetadata = binding.trackGuildAndChannelMetadata;
|
||||
object3.triggeredByStatusChange = env0_6;
|
||||
binding.adCreativeType;
|
||||
value4 = environment.__proto__;
|
||||
(require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType.QUEST;
|
||||
binding2 = env0_7;
|
||||
binding3 = env1_14;
|
||||
object4 = {};
|
||||
copyDataProperties(object4, object3, require);
|
||||
object4['adContentIds'] = binding.adContentIds;
|
||||
object4['adCreativeType'] = binding.adCreativeType;
|
||||
binding2.current = new binding3();
|
||||
binding2.current.start();
|
||||
}
|
||||
}
|
||||
|
||||
function trackViewedPlacement(a0) { // fn#74225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:515, owner: QuestContentImpression.trackViewedPlacement, offset: 0x01d857d9, size: 128 bytes, params: 2, frame: 17
|
||||
var r2;
|
||||
var moduleValue2;
|
||||
var binding;
|
||||
const questPlacementFromQuestContent = (require(7091) /* metro dependency 7091: QuestDataUtils */).getQuestPlacementFromQuestContent(env0_0.questContent);
|
||||
const value4 = questPlacementFromQuestContent != null;
|
||||
if (value4) {
|
||||
moduleValue2 = require(7091) /* metro dependency 7091: QuestDataUtils */;
|
||||
r2 = moduleValue2.isBillableQuestContent(env0_0.questContent);
|
||||
} else {
|
||||
r2 = value4;
|
||||
}
|
||||
if (r2) {
|
||||
binding = env2_13;
|
||||
binding.add(getQuestPlacementCombinationKey(a0, questPlacementFromQuestContent));
|
||||
}
|
||||
}
|
||||
|
||||
function shouldExtendSession(a0) { // fn#74226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:716, owner: QuestContentImpression.shouldExtendSession, offset: 0x01d85859, size: 131 bytes, params: 2, frame: 19
|
||||
let value = environment.__proto__.__proto__;
|
||||
const questPlacementFromQuestContent = (require(7091) /* metro dependency 7091: QuestDataUtils */).getQuestPlacementFromQuestContent(env0_0.questContent);
|
||||
let r0 = questPlacementFromQuestContent != null && !env2_13.has(getQuestPlacementCombinationKey(a0,
|
||||
questPlacementFromQuestContent));
|
||||
if (r0) {
|
||||
value = require(7091) /* metro dependency 7091: QuestDataUtils */;
|
||||
value = value.isBillableQuestContent(env0_0.questContent);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function* _fun74228() { // fn#74228, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:929, offset: 0x01d858e7, size: 431 bytes, params: 1, frame: 21
|
||||
var r11;
|
||||
var environment;
|
||||
var advertisingId;
|
||||
var value9;
|
||||
var binding4;
|
||||
var value10;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
var binding = env3_0;
|
||||
var binding2 = env3_2;
|
||||
var value3 = binding(binding2[9]);
|
||||
var getAdUser = value3.getAdUser;
|
||||
var value4 = binding(binding2[10]);
|
||||
var getQuestContentName = value4.getQuestContentName;
|
||||
yield Reflect.apply(getAdUser, value3, [Reflect.apply(getQuestContentName, value4, [env1_1.questContent])]);
|
||||
var value6 = undefined;
|
||||
if (false) {
|
||||
return value6;
|
||||
}
|
||||
var object2 = {};
|
||||
binding = env1_1;
|
||||
object2.trackGuildAndChannelMetadata = binding.trackGuildAndChannelMetadata;
|
||||
object2.sourceQuestContent = binding.sourceQuestContent;
|
||||
object2 = {};
|
||||
object2.min_view_time_seconds = binding.minViewTimeSeconds;
|
||||
object2.min_viewport_percentage = binding.minViewportPercentage;
|
||||
object2.triggered_by_status_change = binding.triggeredByStatusChange;
|
||||
var value8 = null;
|
||||
if (value8 != value6) {
|
||||
value9 = env3_0(env3_2[11]);
|
||||
advertisingId = value9.isIOS() ? value6.advertisingId : value8;
|
||||
} else {
|
||||
advertisingId = value8;
|
||||
}
|
||||
object2.apple_advertising_id = advertisingId;
|
||||
if (value8 != value6) {
|
||||
binding = env3_0;
|
||||
binding4 = env3_2;
|
||||
value10 = binding(binding4[11]);
|
||||
if (value10.isAndroid()) {
|
||||
advertisingId = value6.advertisingId;
|
||||
r11 = binding4;
|
||||
} else {
|
||||
advertisingId = value8;
|
||||
r11 = binding4;
|
||||
}
|
||||
} else {
|
||||
advertisingId = value8;
|
||||
}
|
||||
object2.android_advertising_id = advertisingId;
|
||||
binding = env3_1;
|
||||
var binding5 = env3_2;
|
||||
copyDataProperties(object2, binding(binding5[12])(), r11);
|
||||
value = env3_0(binding5[13]);
|
||||
var getBrandSafetyContext = value.getBrandSafetyContext;
|
||||
binding = env1_1;
|
||||
copyDataProperties(object2, Reflect.apply(getBrandSafetyContext, value, [binding.questContent]), r11);
|
||||
binding.entity.adContentIds.forEach(_fun74229);
|
||||
if (value8 != binding.onImpressionCallback) {
|
||||
env1_1.onImpressionCallback();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function beat() { // fn#74230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:2899, owner: QuestContentImpression.beat, offset: 0x01d85e79, size: 219 bytes, params: 1, frame: 17
|
||||
var Math;
|
||||
var round;
|
||||
var value2;
|
||||
var binding;
|
||||
var value3;
|
||||
var object2;
|
||||
const value = a0;
|
||||
const r6 = value !== undefined ? value : false;
|
||||
const env0_0 = r6;
|
||||
if (env0_0.lastBeatTime != null) {
|
||||
Math = global.Math;
|
||||
round = Math.round;
|
||||
value2 = global.Date.now();
|
||||
binding = env0_0;
|
||||
value3 = Reflect.apply(round, Math, [value2 - binding.lastBeatTime]);
|
||||
object2 = {};
|
||||
object2.trackGuildAndChannelMetadata = binding.trackGuildAndChannelMetadata;
|
||||
object2.sourceQuestContent = binding.sourceQuestContent;
|
||||
object2 = {is_termination_beat: r6, viewed_time_ms: value3};
|
||||
object2.triggered_by_status_change = binding.triggeredByStatusChange;
|
||||
binding.entity.adContentIds.forEach(_fun74231);
|
||||
}
|
||||
binding = env0_0;
|
||||
const Date = global.Date;
|
||||
binding.lastBeatTime = Date.now();
|
||||
}
|
||||
|
||||
function commonProperties() { // fn#74232, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:4068, owner: QuestContentImpression.commonProperties, offset: 0x01d861f0, size: 95 bytes, params: 1, frame: 16
|
||||
const object2 = {};
|
||||
const binding = env0_0;
|
||||
object2.impression_id = binding.id;
|
||||
object2.is_quest_enrollment_blocked = binding.isQuestEnrollmentBlocked;
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(7120) /* metro dependency 7120: AnalyticsTypes */;
|
||||
const getContentProperties = value.getContentProperties;
|
||||
copyDataProperties(object2, Reflect.apply(getContentProperties, value, [binding.questContent,
|
||||
binding.questContentPosition, binding.questContentRowIndex]), undefined);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function QuestContentImpressionClone({triggeredByStatusChange}) { // fn#74233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:4271, owner: QuestContentImpression.clone, offset: 0x01d8624f, size: 155 bytes, params: 2, frame: 14
|
||||
const binding = env0_0;
|
||||
binding.stop();
|
||||
let value = environment.__proto__;
|
||||
const object2 = {};
|
||||
object2.questContent = binding.questContent;
|
||||
object2.questContentRowIndex = binding.questContentRowIndex;
|
||||
object2.questContentPosition = binding.questContentPosition;
|
||||
const trackGuildAndChannelMetadata = binding.trackGuildAndChannelMetadata;
|
||||
object2.trackGuildAndChannelMetadata = trackGuildAndChannelMetadata;
|
||||
object2.triggeredByStatusChange = triggeredByStatusChange;
|
||||
object2.isQuestEnrollmentBlocked = binding.isQuestEnrollmentBlocked;
|
||||
object2.onImpression = binding.onImpressionCallback;
|
||||
object2.sourceQuestContent = binding.sourceQuestContent;
|
||||
copyDataProperties(object2, binding.entity, trackGuildAndChannelMetadata);
|
||||
value = Object.create(QuestContentImpression.prototype, {constructor: {value: QuestContentImpression}});
|
||||
const questContentImpression = new QuestContentImpression(object2);
|
||||
return questContentImpression instanceof Object ? questContentImpression : value;
|
||||
}
|
||||
|
||||
function QuestContentImpressionStart() { // fn#74234, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:4723, owner: QuestContentImpression.start, offset: 0x01d862ea, size: 347 bytes, params: 1, frame: 18
|
||||
var environment;
|
||||
const binding = env0_0;
|
||||
binding.stop(false);
|
||||
const Date = global.Date;
|
||||
binding.lastBeatTime = Date.now();
|
||||
let window = global.window;
|
||||
const setInterval = window.setInterval;
|
||||
let value = environment.__proto__.__proto__;
|
||||
binding.heartbeatTimeoutId = Reflect.apply(setInterval, window, [_fun74235, 1000 * HEARTBEAT_SECONDS]);
|
||||
window = global.window;
|
||||
binding.minViewTimeReachedTimeoutId = window.setTimeout(binding.onMinViewTimeReached,
|
||||
1000 * binding.minViewTimeSeconds);
|
||||
let object2 = {};
|
||||
object2.trackGuildAndChannelMetadata = binding.trackGuildAndChannelMetadata;
|
||||
object2.sourceQuestContent = binding.sourceQuestContent;
|
||||
({}).triggered_by_status_change = binding.triggeredByStatusChange;
|
||||
binding.entity.adContentIds.forEach(_fun74236);
|
||||
const defaultImport = importDefault(4826) /* metro dependency 4826: MonitoringAgent */;
|
||||
const increment = defaultImport.increment;
|
||||
object2 = {};
|
||||
const MetricEvents = (require(4831) /* metro dependency 4831: MetricEvents */).MetricEvents;
|
||||
const QUEST_CONTENT_IMPRESSION = MetricEvents.QUEST_CONTENT_IMPRESSION;
|
||||
object2.name = QUEST_CONTENT_IMPRESSION;
|
||||
const getQuestContentName = (require(7120) /* metro dependency 7120: AnalyticsTypes */).getQuestContentName;
|
||||
value = Reflect.apply(getQuestContentName, value, [binding.questContent]);
|
||||
value = 'quest_content:' + value;
|
||||
object2.tags = [value];
|
||||
Reflect.apply(increment, defaultImport, [object2]);
|
||||
binding.isRunning = true;
|
||||
}
|
||||
|
||||
function QuestContentImpressionStop() { // fn#74237, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:6927, owner: QuestContentImpression.stop, offset: 0x01d86826, size: 93 bytes, params: 1, frame: 13
|
||||
const value = a0;
|
||||
if (!(value !== undefined) || value) {
|
||||
env0_0.beat(true);
|
||||
}
|
||||
const binding = env0_0;
|
||||
binding.lastBeatTime = undefined;
|
||||
global.clearInterval(binding.heartbeatTimeoutId);
|
||||
global.clearTimeout(binding.minViewTimeReachedTimeoutId);
|
||||
binding.isRunning = false;
|
||||
}
|
||||
|
||||
function _fun74243() { // fn#74243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:8566, offset: 0x01d86a29, size: 41 bytes, params: 1, frame: 10
|
||||
if (env1_7.current != null) {
|
||||
env1_7.current.stop();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun74229(a0, a1) { // fn#74229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:1506, offset: 0x01d85a96, size: 995 bytes, params: 3, frame: 33
|
||||
var questName;
|
||||
var r20;
|
||||
var r11;
|
||||
var uuid;
|
||||
var id;
|
||||
var property;
|
||||
var binding4;
|
||||
var binding5;
|
||||
var questLogger;
|
||||
var info;
|
||||
var minViewTimeSeconds;
|
||||
var value8;
|
||||
var object4;
|
||||
var value11;
|
||||
var trackAdContentEvent;
|
||||
var object5;
|
||||
var quest;
|
||||
var value14;
|
||||
var binding6;
|
||||
var value17;
|
||||
var questLogger2;
|
||||
var binding7;
|
||||
var binding8;
|
||||
var value20;
|
||||
var value22;
|
||||
var value23;
|
||||
var trackQuestEvent;
|
||||
var object6;
|
||||
var currentQuestHomeSearchSession;
|
||||
var getAdTrafficMetadataSealed;
|
||||
let value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
let binding = env4_0;
|
||||
const binding2 = env4_2;
|
||||
const value2 = undefined;
|
||||
const value3 = binding(binding2[8]);
|
||||
const getAdMetadataSealed = value3.getAdMetadataSealed;
|
||||
const binding3 = env2_1;
|
||||
let sourceQuestContent = binding3.sourceQuestContent;
|
||||
const value5 = Reflect.apply(getAdMetadataSealed, value3, [sourceQuestContent, a0]);
|
||||
const shouldExtendSession2 = binding3.shouldExtendSession(a0);
|
||||
binding3.trackViewedPlacement(a0);
|
||||
let entity = binding3.entity;
|
||||
const adCreativeType = entity.adCreativeType;
|
||||
const AdCreativeType = binding(binding2[14]).AdCreativeType;
|
||||
const QUEST = AdCreativeType.QUEST;
|
||||
if (adCreativeType === QUEST) {
|
||||
property = env2_1.entity.adContentIds[a1];
|
||||
binding = env4_7;
|
||||
quest = binding.getQuest(property);
|
||||
value14 = null;
|
||||
if (!(value14 == quest || env4_0(env4_2[8]).isQuestExpired(quest))) {
|
||||
binding = env4_0;
|
||||
binding6 = env4_2;
|
||||
value17 = binding(binding6[15]);
|
||||
value17.markAdContentSeen(binding(binding6[14]).AdCreativeType.QUEST, [property]);
|
||||
}
|
||||
binding = env4_0;
|
||||
questLogger2 = binding(env4_2[16]).getQuestLogger();
|
||||
info = questLogger2.info;
|
||||
questName = value14 == quest ? value2 : quest.config.messages.questName;
|
||||
r20 = value14 == questName ? property : questName;
|
||||
binding = env2_1;
|
||||
minViewTimeSeconds = binding.minViewTimeSeconds;
|
||||
binding7 = env4_0;
|
||||
binding8 = env4_2;
|
||||
value20 = binding7(binding8[10]);
|
||||
value22 = '' + r20 + ' Quest viewed for at least ' + minViewTimeSeconds + 's at ' + value20.getQuestContentName(binding.questContent);
|
||||
id = binding.id;
|
||||
Reflect.apply(info, questLogger2, [value22, {impressionId: id}]);
|
||||
value23 = binding7(binding8[17]);
|
||||
trackQuestEvent = value23.trackQuestEvent;
|
||||
object4 = {};
|
||||
copyDataProperties(object4, env0_0, minViewTimeSeconds);
|
||||
object4['shouldExtendSession'] = shouldExtendSession2;
|
||||
object4['questId'] = property;
|
||||
object4['event'] = env4_11.QUEST_CONTENT_VIEWED;
|
||||
object6 = {};
|
||||
copyDataProperties(object6, env0_1, minViewTimeSeconds);
|
||||
copyDataProperties(object6, binding.commonProperties(), minViewTimeSeconds);
|
||||
r11 = value14 != value5 ? value5 : value14;
|
||||
object6['metadata_sealed'] = r11;
|
||||
binding = env4_0;
|
||||
currentQuestHomeSearchSession = binding(env4_2[18]).getCurrentQuestHomeSearchSession();
|
||||
uuid = value14 == currentQuestHomeSearchSession ? value2 : currentQuestHomeSearchSession.uuid;
|
||||
r11 = value14 != uuid ? uuid : value14;
|
||||
object6['search_session_id'] = r11;
|
||||
binding = env4_0;
|
||||
value = binding(env4_2[8]);
|
||||
getAdTrafficMetadataSealed = value.getAdTrafficMetadataSealed;
|
||||
sourceQuestContent = env2_1.sourceQuestContent;
|
||||
id = value14 == quest ? value2 : quest.id;
|
||||
value = Reflect.apply(getAdTrafficMetadataSealed, value, [sourceQuestContent, id]);
|
||||
object6['traffic_metadata_sealed'] = value14 != value ? value : value14;
|
||||
object4['properties'] = object6;
|
||||
Reflect.apply(trackQuestEvent, value23, [object4]);
|
||||
} else {
|
||||
binding = env2_1;
|
||||
entity = binding.entity;
|
||||
property = entity.adContentIds[a1];
|
||||
binding4 = env4_0;
|
||||
binding5 = env4_2;
|
||||
questLogger = binding4(binding5[16]).getQuestLogger();
|
||||
info = questLogger.info;
|
||||
minViewTimeSeconds = binding.minViewTimeSeconds;
|
||||
value8 = binding4(binding5[10]);
|
||||
Reflect.apply(info, questLogger,
|
||||
['' + property + ' ad content viewed for at least ' + minViewTimeSeconds + 's at ' + value8.getQuestContentName(binding.questContent),
|
||||
|
||||
{impressionId: binding.id}]);
|
||||
value11 = binding4(binding5[17]);
|
||||
trackAdContentEvent = value11.trackAdContentEvent;
|
||||
object4 = {};
|
||||
copyDataProperties(object4, env0_0, minViewTimeSeconds);
|
||||
object4['shouldExtendSession'] = shouldExtendSession2;
|
||||
object4['adContentId'] = property;
|
||||
entity = binding.entity;
|
||||
object4['adCreativeType'] = entity.adCreativeType;
|
||||
object4['event'] = env4_11.QUEST_CONTENT_VIEWED;
|
||||
object5 = {};
|
||||
copyDataProperties(object5, env0_1, minViewTimeSeconds);
|
||||
copyDataProperties(object5, binding.commonProperties(), minViewTimeSeconds);
|
||||
object4['properties'] = object5;
|
||||
Reflect.apply(trackAdContentEvent, value11, [object4]);
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
|
||||
function _fun74231(a0, a1) { // fn#74231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:3226, offset: 0x01d85f54, size: 668 bytes, params: 3, frame: 28
|
||||
var r13;
|
||||
var r14;
|
||||
var r12;
|
||||
var property;
|
||||
var questLogger;
|
||||
var info;
|
||||
var value6;
|
||||
var binding;
|
||||
var value8;
|
||||
var object4;
|
||||
var trackAdContentEvent;
|
||||
var object5;
|
||||
var quest;
|
||||
var questLogger2;
|
||||
var value12;
|
||||
var value14;
|
||||
var trackQuestEvent;
|
||||
var object6;
|
||||
let value = environment.__proto__;
|
||||
let entity = env1_0.entity;
|
||||
const adCreativeType = entity.adCreativeType;
|
||||
const value3 = undefined;
|
||||
const AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType;
|
||||
const QUEST = AdCreativeType.QUEST;
|
||||
if (adCreativeType === QUEST) {
|
||||
property = env1_0.entity.adContentIds[a1];
|
||||
quest = QuestStore.getQuest(property);
|
||||
questLogger2 = (require(7099) /* metro dependency 7099: getQuestLogger */).getQuestLogger();
|
||||
info = questLogger2.info;
|
||||
r14 = (quest == null ? value3 : quest.config.messages.questName) ?? property;
|
||||
value12 = '';
|
||||
r12 = env0_0 ? 'terminal ' : value12;
|
||||
binding = env0_1;
|
||||
value14 = value12 + r14 + ' Quest impression ' + r12 + 'heartbeat: ' + binding + 'ms since last heartbeat';
|
||||
binding = env1_0;
|
||||
Reflect.apply(info, questLogger2, [value14, {impressionId: binding.id}]);
|
||||
value = require(7110) /* metro dependency 7110: AnalyticsActions */;
|
||||
trackQuestEvent = value.trackQuestEvent;
|
||||
object4 = {};
|
||||
copyDataProperties(object4, env0_2, r12);
|
||||
object4['questId'] = property;
|
||||
object4['event'] = AnalyticEvents.QUEST_CONTENT_VIEW_TIME;
|
||||
object6 = {};
|
||||
copyDataProperties(object6, env0_3, r12);
|
||||
copyDataProperties(object6, binding.commonProperties(), r12);
|
||||
object4['properties'] = object6;
|
||||
Reflect.apply(trackQuestEvent, value, [object4]);
|
||||
} else {
|
||||
entity = env1_0.entity;
|
||||
property = entity.adContentIds[a1];
|
||||
questLogger = (require(7099) /* metro dependency 7099: getQuestLogger */).getQuestLogger();
|
||||
info = questLogger.info;
|
||||
value6 = '';
|
||||
r13 = env0_0 ? 'terminal ' : value6;
|
||||
binding = env0_1;
|
||||
value8 = value6 + property + ' ad content impression ' + r13 + 'heartbeat: ' + binding + 'ms since last heartbeat';
|
||||
binding = env1_0;
|
||||
Reflect.apply(info, questLogger, [value8, {impressionId: binding.id}]);
|
||||
value = require(7110) /* metro dependency 7110: AnalyticsActions */;
|
||||
trackAdContentEvent = value.trackAdContentEvent;
|
||||
object4 = {};
|
||||
copyDataProperties(object4, env0_2, r13);
|
||||
object4['adContentId'] = property;
|
||||
entity = binding.entity;
|
||||
object4['adCreativeType'] = entity.adCreativeType;
|
||||
object4['event'] = AnalyticEvents.QUEST_CONTENT_VIEW_TIME;
|
||||
object5 = {};
|
||||
copyDataProperties(object5, env0_3, r13);
|
||||
copyDataProperties(object5, binding.commonProperties(), r13);
|
||||
object4['properties'] = object5;
|
||||
Reflect.apply(trackAdContentEvent, value, [object4]);
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
|
||||
function _fun74235() { // fn#74235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:4815, offset: 0x01d86445, size: 19 bytes, params: 1, frame: 9
|
||||
return env1_0.beat();
|
||||
}
|
||||
|
||||
function _fun74236(a0, a1) { // fn#74236, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9700:5153, offset: 0x01d86458, size: 974 bytes, params: 3, frame: 32
|
||||
var questName;
|
||||
var r21;
|
||||
var id;
|
||||
var property;
|
||||
var questLogger;
|
||||
var info;
|
||||
var moduleValue3;
|
||||
var getQuestContentName;
|
||||
var object5;
|
||||
var moduleValue4;
|
||||
var trackAdContentEvent;
|
||||
var object6;
|
||||
var quest;
|
||||
var questLogger2;
|
||||
var value11;
|
||||
var moduleValue6;
|
||||
var value13;
|
||||
var moduleValue7;
|
||||
var trackQuestEvent;
|
||||
var object7;
|
||||
var getAdTrafficMetadataSealed;
|
||||
var captureAdUserAction;
|
||||
var object8;
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
const value2 = undefined;
|
||||
const questDataUtilsModule = require(7091) /* metro dependency 7091: QuestDataUtils */;
|
||||
const getAdMetadataSealed = questDataUtilsModule.getAdMetadataSealed;
|
||||
let binding = env1_0;
|
||||
let sourceQuestContent = binding.sourceQuestContent;
|
||||
const value4 = Reflect.apply(getAdMetadataSealed, questDataUtilsModule, [sourceQuestContent, a0]);
|
||||
const migrateQuestContentLoadedToCaptureAdUserAction = binding.migrateQuestContentLoadedToCaptureAdUserAction;
|
||||
let entity = env1_0.entity;
|
||||
const adCreativeType = entity.adCreativeType;
|
||||
const AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType;
|
||||
const QUEST = AdCreativeType.QUEST;
|
||||
if (migrateQuestContentLoadedToCaptureAdUserAction) {
|
||||
object5 = {};
|
||||
entity = binding.entity;
|
||||
object5.adCreativeType = entity.adCreativeType;
|
||||
entity = binding.entity;
|
||||
object5.adCreativeId = entity.adContentIds[a1];
|
||||
value = require(9517) /* metro dependency 9517: captureAdUserAction */;
|
||||
captureAdUserAction = value.captureAdUserAction;
|
||||
object8 = {};
|
||||
object8.type = (require(9518) /* metro dependency 9518: captureAdUserActionTypes */).AdUserActionType.END_CONTENT_LOAD;
|
||||
object8.surfaceId = binding.questContent;
|
||||
object8.sourceQuestContent = binding.sourceQuestContent;
|
||||
object8.impressionId = binding.id;
|
||||
object8.triggeredByStatusChange = binding.triggeredByStatusChange;
|
||||
object8.trackGuildAndChannelMetadata = binding.trackGuildAndChannelMetadata;
|
||||
object8.questContentPosition = binding.questContentPosition;
|
||||
object8.questContentRowIndex = binding.questContentRowIndex;
|
||||
copyDataProperties(object8, object5, undefined);
|
||||
Reflect.apply(captureAdUserAction, value, [object8]);
|
||||
} else if (adCreativeType === QUEST) {
|
||||
property = env1_0.entity.adContentIds[a1];
|
||||
quest = QuestStore.getQuest(property);
|
||||
questLogger2 = (require(7099) /* metro dependency 7099: getQuestLogger */).getQuestLogger();
|
||||
info = questLogger2.info;
|
||||
value11 = null;
|
||||
questName = value11 == quest ? value2 : quest.config.messages.questName;
|
||||
r21 = value11 == questName ? property : questName;
|
||||
moduleValue6 = require(7120) /* metro dependency 7120: AnalyticsTypes */;
|
||||
getQuestContentName = moduleValue6.getQuestContentName;
|
||||
binding = env1_0;
|
||||
value13 = '' + r21 + ' Quest became visible at ' + Reflect.apply(getQuestContentName, moduleValue6,
|
||||
[binding.questContent]);
|
||||
id = binding.id;
|
||||
Reflect.apply(info, questLogger2, [value13, {impressionId: id}]);
|
||||
moduleValue7 = require(7110) /* metro dependency 7110: AnalyticsActions */;
|
||||
trackQuestEvent = moduleValue7.trackQuestEvent;
|
||||
object5 = {};
|
||||
copyDataProperties(object5, env0_0, undefined);
|
||||
object5['questId'] = property;
|
||||
object5['event'] = AnalyticEvents.QUEST_CONTENT_LOADED;
|
||||
object7 = {};
|
||||
copyDataProperties(object7, env0_1, undefined);
|
||||
object7['metadata_sealed'] = value11 != value4 ? value4 : value11;
|
||||
binding = env1_0;
|
||||
copyDataProperties(object7, binding.commonProperties(), undefined);
|
||||
value = questDataUtilsModule;
|
||||
getAdTrafficMetadataSealed = value.getAdTrafficMetadataSealed;
|
||||
sourceQuestContent = binding.sourceQuestContent;
|
||||
id = value11 == quest ? value2 : quest.id;
|
||||
value = Reflect.apply(getAdTrafficMetadataSealed, value, [sourceQuestContent, id]);
|
||||
object7['traffic_metadata_sealed'] = value11 != value ? value : value11;
|
||||
object5['properties'] = object7;
|
||||
Reflect.apply(trackQuestEvent, moduleValue7, [object5]);
|
||||
} else {
|
||||
binding = env1_0;
|
||||
entity = binding.entity;
|
||||
property = entity.adContentIds[a1];
|
||||
questLogger = (require(7099) /* metro dependency 7099: getQuestLogger */).getQuestLogger();
|
||||
info = questLogger.info;
|
||||
moduleValue3 = require(7120) /* metro dependency 7120: AnalyticsTypes */;
|
||||
Reflect.apply(info, questLogger,
|
||||
['' + property + ' ad content became visible at ' + moduleValue3.getQuestContentName(binding.questContent),
|
||||
{impressionId: binding.id}]);
|
||||
moduleValue4 = require(7110) /* metro dependency 7110: AnalyticsActions */;
|
||||
trackAdContentEvent = moduleValue4.trackAdContentEvent;
|
||||
object5 = {};
|
||||
copyDataProperties(object5, env0_0, undefined);
|
||||
object5['adContentId'] = property;
|
||||
entity = binding.entity;
|
||||
object5['adCreativeType'] = entity.adCreativeType;
|
||||
object5['event'] = AnalyticEvents.QUEST_CONTENT_LOADED;
|
||||
object6 = {};
|
||||
copyDataProperties(object6, env0_1, undefined);
|
||||
copyDataProperties(object6, binding.commonProperties(), undefined);
|
||||
object5['properties'] = object6;
|
||||
Reflect.apply(trackAdContentEvent, moduleValue4, [object5]);
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* Metro module 9515; source: modules/quests/lib/analytics/ContentImpressionTrackerConstants.tsx; dependencies: [2] */
|
||||
function _fun74245(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9701:6, offset: 0x01d86bb6, size: 115 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/lib/analytics/ContentImpressionTrackerConstants.tsx');
|
||||
exports.MAX_BRAND_SAFETY_CONTEXT_ARRAY_LEN = 100;
|
||||
exports.HEARTBEAT_SECONDS = 60;
|
||||
exports.MIN_QUEST_VIEW_TIME_SECONDS = 1;
|
||||
exports.MIN_QUEST_CONTENT_VISIBILITY_PERCENTAGE = 0.5;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
/* Metro module 9513; source: modules/quests/lib/analytics/ContentImpressionTrackerHooks.tsx; dependencies: [31, 7093, 7121, 566, 7120, 6266, 9514, 2] */
|
||||
function _fun74210(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74210, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9699:6, offset: 0x01d85012, size: 180 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = useQuestImpression;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const questStore = importDefault(7093) /* metro dependency 7093: QuestStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/lib/analytics/ContentImpressionTrackerHooks.tsx');
|
||||
exports.useAdContentImpressionTrackerProps = useAdContentImpressionTrackerProps;
|
||||
exports.useQuestStatusChanged = useQuestStatusChanged;
|
||||
exports.useQuestImpression = closure;
|
||||
exports.useQuestImpressionId = useQuestImpressionId;
|
||||
}
|
||||
|
||||
function useQuestImpression() { // fn#74211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9699:116, offset: 0x01d850c6, size: 62 bytes, params: 1, frame: 13
|
||||
const binding = env0_3;
|
||||
const useContext = binding.useContext;
|
||||
const value = undefined;
|
||||
const QuestImpressionContext = (require(9514) /* metro dependency 9514: ContentImpressionTracker */).QuestImpressionContext;
|
||||
const value2 = Reflect.apply(useContext, binding, [QuestImpressionContext]);
|
||||
return value2 == null ? value : value2.current;
|
||||
}
|
||||
|
||||
function useAdContentImpressionTrackerProps(a0) { // fn#74212, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9699:362, offset: 0x01d85104, size: 169 bytes, params: 2, frame: 17
|
||||
const env0_0 = a0;
|
||||
const value = undefined;
|
||||
return env0_3.useMemo(_fun74216, [useAdContentIds('questOrQuests' in a0 ? a0.questOrQuests : value,
|
||||
'adContentId' in a0 ? a0.adContentId : value), a0.questContent,
|
||||
'questOrQuests' in a0 ? (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType.QUEST : a0.adCreativeType]);
|
||||
}
|
||||
|
||||
function useQuestStatusChanged({adContentIds, adCreativeType}) { // fn#74217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9699:1007, offset: 0x01d852f9, size: 154 bytes, params: 2, frame: 20
|
||||
const value3 = env0_3.useMemo(_fun74219,
|
||||
[(require(566) /* metro dependency 566: flux */).useStateFromStores([QuestStore], _fun74218, [adContentIds,
|
||||
adCreativeType])]);
|
||||
return value3 !== (importDefault(6266) /* metro dependency 6266: usePrevious */)(value3);
|
||||
}
|
||||
|
||||
function useQuestImpressionId() { // fn#74220, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9699:1344, offset: 0x01d8542c, size: 34 bytes, params: 1, frame: 10
|
||||
const value = undefined;
|
||||
const value2 = useQuestImpression();
|
||||
return value2 == null ? value : value2.getId();
|
||||
}
|
||||
|
||||
function useAdContentIds(a0, a1) { // fn#74213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9699:415, owner: useAdContentImpressionTrackerProps.useAdContentIds, offset: 0x01d851ad, size: 55 bytes, params: 3, frame: 15
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
return env1_3.useMemo(_fun74214, [a0, a1]);
|
||||
}
|
||||
|
||||
function _fun74216() { // fn#74216, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9699:709, offset: 0x01d85254, size: 165 bytes, params: 1, frame: 16
|
||||
let object = {};
|
||||
object.adContentIds = env0_1;
|
||||
let questContent = env0_0.questContent;
|
||||
object.questContent = questContent;
|
||||
const adContentIds = object.adContentIds;
|
||||
questContent = object.questContent;
|
||||
object = [];
|
||||
arraySpread(object, adContentIds, 0, questContent);
|
||||
const value4 = '' + object.sort().join('_') + '_' + questContent;
|
||||
const AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType;
|
||||
AdCreativeType.QUEST;
|
||||
return {adContentIds: env0_1, adCreativeType: env0_2, key: value4};
|
||||
}
|
||||
|
||||
function _fun74218() { // fn#74218, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9699:1115, offset: 0x01d85393, size: 95 bytes, params: 1, frame: 14
|
||||
const adCreativeTypeBinding = adCreativeType;
|
||||
const AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType;
|
||||
const QUEST = AdCreativeType.QUEST;
|
||||
return adCreativeTypeBinding !== QUEST || adContentIds.length !== 1 ? null : QuestStore.getQuest(adContentIds[0]);
|
||||
}
|
||||
|
||||
function _fun74219() { // fn#74219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9699:1209, offset: 0x01d853f2, size: 58 bytes, params: 1, frame: 13
|
||||
const value2 = null;
|
||||
return value2 == env0_2 ? value2 : (require(7120) /* metro dependency 7120: AnalyticsTypes */).getQuestStatus(env0_2);
|
||||
}
|
||||
|
||||
function _fun74214() { // fn#74214, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9699:463, offset: 0x01d851e4, size: 112 bytes, params: 1, frame: 14
|
||||
var r0;
|
||||
var isArray2;
|
||||
var binding;
|
||||
if (require != null) {
|
||||
r0 = [require];
|
||||
} else if (env0_0 != null) {
|
||||
isArray2 = global.Array.isArray(env0_0);
|
||||
binding = env0_0;
|
||||
r0 = isArray2 ? binding.map(function(a0) {
|
||||
return a0.id;
|
||||
}) : [binding.id];
|
||||
} else {
|
||||
r0 = [];
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
/* Metro module 7127; source: modules/quests/lib/analytics/QuestHomeSearchSession.tsx; dependencies: [491, 4882, 2] */
|
||||
function _fun56979(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7305:6, offset: 0x013d7b01, size: 126 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/lib/analytics/QuestHomeSearchSession.tsx');
|
||||
exports.getOrCreateQuestHomeSearchSession = getOrCreateQuestHomeSearchSession;
|
||||
exports.clearQuestHomeSearchSession = function() {
|
||||
env0_2 = null;
|
||||
};
|
||||
exports.getCurrentQuestHomeSearchSession = getCurrentQuestHomeSearchSession;
|
||||
}
|
||||
|
||||
function getOrCreateQuestHomeSearchSession() { // fn#56980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7305:228, offset: 0x013d7b7f, size: 154 bytes, params: 1, frame: 18
|
||||
var object;
|
||||
var object3;
|
||||
const Date = global.Date;
|
||||
const value = Date.now();
|
||||
if (env0_2 == null) {
|
||||
object3 = {};
|
||||
object3.uuid = (require(491) /* metro dependency 491 */).v4();
|
||||
object3.createdAtTimestamp = value;
|
||||
object3.lastUsedTimestamp = value;
|
||||
object3.version = (require(4882) /* metro dependency 4882: SessionUtils */).CLIENT_SESSION_STORAGE_VERSION;
|
||||
object = {searchSession: object3, isNew: true};
|
||||
} else {
|
||||
env0_2.lastUsedTimestamp = value;
|
||||
object = {searchSession: env0_2, isNew: false};
|
||||
}
|
||||
return object;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
/* Metro module 7099; source: modules/quests/lib/getQuestLogger.tsx; dependencies: [691, 482, 3, 2] */
|
||||
function _fun56747(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7277:6, offset: 0x013d0218, size: 134 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const developerOptionsStore = importDefault(691) /* metro dependency 691: DeveloperOptionsStore */;
|
||||
const env0_3 = (require(482) /* metro dependency 482: Constants */).NOOP;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/lib/getQuestLogger.tsx');
|
||||
exports.getQuestLogger = getQuestLogger;
|
||||
}
|
||||
|
||||
function getQuestLogger() { // fn#56748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7277:209, offset: 0x013d029e, size: 321 bytes, params: 1, frame: 19
|
||||
const value = a0;
|
||||
const value2 = undefined;
|
||||
const {quest, location} = value !== value2 ? value : {};
|
||||
const isLoggingQuestEvents = DeveloperOptionsStore.isLoggingQuestEvents;
|
||||
const questName = quest == null ? value2 : quest.config.messages.questName;
|
||||
const value3 = '';
|
||||
const value8 = new (importDefault(3) /* metro dependency 3: Logger */)('QuestLogger' + (location != null ? '-' + location : value3) + (questName != null ? '-' + questName + ')' : value3));
|
||||
return {log: isLoggingQuestEvents ? value8.log : NOOP, warn: isLoggingQuestEvents ? value8.warn : NOOP,
|
||||
error: isLoggingQuestEvents ? value8.error : NOOP, info: isLoggingQuestEvents ? value8.info : NOOP,
|
||||
verbose: isLoggingQuestEvents ? value8.verbose : NOOP, trace: isLoggingQuestEvents ? value8.trace : NOOP};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,245 @@
|
||||
/* Metro module 16152; source: modules/quests/managers/QuestFetchManager.tsx; dependencies: [6, 7, 15, 17, 18, 7093, 672, 9479, 9484, 1216, 477, 9493, 7108, 6531, 4860, 2] */
|
||||
function _fun124815(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#124815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16360:6, offset: 0x025c3cad, size: 414 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
const questStore = importDefault(7093) /* metro dependency 7093: QuestStore */;
|
||||
let Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
const env0_9 = Millis.DAY;
|
||||
Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
let MINUTE = Millis.MINUTE;
|
||||
const env0_10 = 30 * MINUTE;
|
||||
Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
const SECOND = Millis.SECOND;
|
||||
const env0_11 = 5 * SECOND;
|
||||
Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
MINUTE = Millis.MINUTE;
|
||||
const env0_12 = 5 * MINUTE;
|
||||
Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
Millis.HOUR;
|
||||
Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
MINUTE = Millis.MINUTE;
|
||||
const env0_13 = 5 * MINUTE;
|
||||
let value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
|
||||
value = _fun124819(value);
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/managers/QuestFetchManager.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_124816() { // fn#124816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16360:158, offset: 0x025c3e4b, 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_124816_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun124819(a0) { // fn#124819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16360:509, offset: 0x025c3ead, size: 72 bytes, params: 2, frame: 15
|
||||
const closure = QuestFetchManager;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, [{key: '_fetch', value: value_124829}]);
|
||||
}
|
||||
|
||||
function QuestFetchManager(a0) { // fn#124820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16360:521, offset: 0x025c3ef5, size: 330 bytes, params: 2, frame: 21
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env1_3;
|
||||
binding(this, QuestFetchManager);
|
||||
const items = [];
|
||||
arraySpread(items, value, 0, items);
|
||||
value = env1_6(QuestFetchManager);
|
||||
binding = env1_5;
|
||||
if (_isNativeReflectConstruct_124816()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, items, env1_6(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, items);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
const Date = global.Date;
|
||||
value.instantiatedAt = Date.now();
|
||||
value.initialFetchTimerId = null;
|
||||
value.initialQuestHomeHeroFetchTimerId = null;
|
||||
value.recurringFetchTimerId = null;
|
||||
value.lastFetchAttemptedAt = 0;
|
||||
value.lastFetchedQuestForLocaleChangeAt = 0;
|
||||
value.handleQuestsFetchCurrentQuestsBegin = handleQuestsFetchCurrentQuestsBegin;
|
||||
value.handlePostConnectionOpen = handlePostConnectionOpen_124822;
|
||||
value.handleRunningGamesChange = function() {
|
||||
};
|
||||
value.handleUserSettingsProtoUpdate = handleUserSettingsProtoUpdate;
|
||||
value.handleLogout = handleLogout_124828;
|
||||
var handleQuestsFetchCurrentQuestsBegin = value.handleQuestsFetchCurrentQuestsBegin;
|
||||
var handleUserSettingsProtoUpdate = value.handleUserSettingsProtoUpdate;
|
||||
value.actions = {QUESTS_FETCH_CURRENT_QUESTS_BEGIN: handleQuestsFetchCurrentQuestsBegin,
|
||||
POST_CONNECTION_OPEN: value.handlePostConnectionOpen, RUNNING_GAMES_CHANGE: value.handleRunningGamesChange,
|
||||
RUNNING_NON_GAMES_CHANGE: value.handleRunningGamesChange,
|
||||
USER_SETTINGS_PROTO_UPDATE: handleUserSettingsProtoUpdate, LOGOUT: value.handleLogout};
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_124829(a0) { // fn#124829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16360:2549, offset: 0x025c4341, size: 391 bytes, params: 2, frame: 20
|
||||
var r3;
|
||||
var defaultImport;
|
||||
var addBreadcrumb;
|
||||
var object;
|
||||
var lastFetchedCurrentQuests;
|
||||
var value4;
|
||||
var defaultImport3;
|
||||
let value = environment.__proto__;
|
||||
if ((require(9479) /* metro dependency 9479: QuestsEligibility */).getIsEligibleForQuests() && !QuestStore.isFetchingCurrentQuests) {
|
||||
defaultImport = importDefault(1216) /* metro dependency 1216: SentryUtilsNative */;
|
||||
addBreadcrumb = defaultImport.addBreadcrumb;
|
||||
object = {callerSource: a0};
|
||||
object.storeSize = QuestStore.quests.size;
|
||||
lastFetchedCurrentQuests = QuestStore.lastFetchedCurrentQuests;
|
||||
object.lastFetchedCurrentQuests = lastFetchedCurrentQuests;
|
||||
value4 = global.Date.now();
|
||||
lastFetchedCurrentQuests = QuestStore.lastFetchedCurrentQuests;
|
||||
object.msSinceLastFetch = value4 - lastFetchedCurrentQuests;
|
||||
object.isFetchingCurrentQuests = QuestStore.isFetchingCurrentQuests;
|
||||
Reflect.apply(addBreadcrumb, defaultImport, [{'category': 'quests.fetch',
|
||||
'message': 'QuestFetchManager._fetch triggered', data: object}]);
|
||||
(require(9484) /* metro dependency 9484: QuestActionCreators */).fetchCurrentQuests();
|
||||
r3 = (require(477) /* metro dependency 477: PlatformUtils */).isMac() && (importDefault(9493) /* metro dependency 9493: DiscordAppStateNative */).getState() !== 'focused';
|
||||
if (!r3) {
|
||||
defaultImport3 = importDefault(7108) /* metro dependency 7108: NewAdRequestBehaviorExperiment */;
|
||||
r3 = defaultImport3.getConfig({location: 'QuestFetchManager'}).enableNewRequestBehavior;
|
||||
}
|
||||
if (!r3) {
|
||||
value = require(9484) /* metro dependency 9484: QuestActionCreators */;
|
||||
value.fetchQuestToDeliver((require(6531) /* metro dependency 6531: QuestTypes */).QuestPlacement.MOBILE_HOME_DOCK_AREA,
|
||||
|
||||
|
||||
a0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function handleQuestsFetchCurrentQuestsBegin() { // fn#124821, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16360:983, owner: QuestFetchManager.handleQuestsFetchCurrentQuestsBegin, offset: 0x025c403f, size: 34 bytes, params: 1, frame: 10
|
||||
const binding = env0_0;
|
||||
const Date = global.Date;
|
||||
binding.lastFetchAttemptedAt = Date.now();
|
||||
}
|
||||
|
||||
function QuestFetchManagerHandlePostConnectionOpen() { // fn#124822, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16360:1050, owner: QuestFetchManager.handlePostConnectionOpen, offset: 0x025c4061, size: 305 bytes, params: 1, frame: 19
|
||||
let window = global.window;
|
||||
const clearTimeout = window.clearTimeout;
|
||||
const binding = env0_0;
|
||||
Reflect.apply(clearTimeout, window, [binding.initialFetchTimerId]);
|
||||
window = global.window;
|
||||
window.clearTimeout(binding.initialQuestHomeHeroFetchTimerId);
|
||||
window = global.window;
|
||||
window.clearTimeout(binding.recurringFetchTimerId);
|
||||
window = global.window;
|
||||
binding.recurringFetchTimerId = window.setInterval(_fun124823, env2_10);
|
||||
let Math = global.Math;
|
||||
const floor = Math.floor;
|
||||
const Math2 = global.Math;
|
||||
const value4 = Reflect.apply(floor, Math, [Math2.random() * env2_11]);
|
||||
binding.initialFetchTimerId = global.window.setTimeout(_fun124824, value4);
|
||||
const questsEligibilityModule = require(9479) /* metro dependency 9479: QuestsEligibility */;
|
||||
const getIsEligibleForQuests = questsEligibilityModule.getIsEligibleForQuests;
|
||||
if (Reflect.apply(getIsEligibleForQuests, questsEligibilityModule, [])) {
|
||||
Math = global.Math;
|
||||
env0_0.initialQuestHomeHeroFetchTimerId = global.window.setTimeout(_fun124825,
|
||||
value4 + Math.floor(global.Math.random() * env2_11));
|
||||
}
|
||||
}
|
||||
|
||||
function QuestFetchManagerHandleUserSettingsProtoUpdate({partial, settings, wasSaved}) { // fn#124827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16360:1734, owner: QuestFetchManager.handleUserSettingsProtoUpdate, offset: 0x025c4249, size: 152 bytes, params: 2, frame: 12
|
||||
var value4;
|
||||
var binding;
|
||||
let value = 'localization' in settings.proto;
|
||||
let r0 = value ? !partial : !value;
|
||||
r0 = !r0 ? wasSaved : r0;
|
||||
if (!r0) {
|
||||
value = global.Date.now();
|
||||
value -= env0_0.lastFetchedQuestForLocaleChangeAt;
|
||||
value4 = environment.__proto__.__proto__;
|
||||
value = value <= env2_12;
|
||||
r0 = value;
|
||||
}
|
||||
if (!r0) {
|
||||
binding = env0_0;
|
||||
binding.lastFetchedQuestForLocaleChangeAt = global.Date.now();
|
||||
binding._fetch('user_settings');
|
||||
}
|
||||
}
|
||||
|
||||
function QuestFetchManagerHandleLogout() { // fn#124828, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16360:1950, owner: QuestFetchManager.handleLogout, offset: 0x025c42e1, size: 96 bytes, params: 1, frame: 13
|
||||
let window = global.window;
|
||||
const clearTimeout = window.clearTimeout;
|
||||
const binding = env0_0;
|
||||
Reflect.apply(clearTimeout, window, [binding.initialFetchTimerId]);
|
||||
window = global.window;
|
||||
window.clearTimeout(binding.initialQuestHomeHeroFetchTimerId);
|
||||
window = global.window;
|
||||
window.clearTimeout(binding.recurringFetchTimerId);
|
||||
binding.lastFetchAttemptedAt = 0;
|
||||
binding.lastFetchedQuestForLocaleChangeAt = 0;
|
||||
}
|
||||
|
||||
function _fun124823() { // fn#124823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16360:1243, offset: 0x025c4192, size: 70 bytes, params: 1, frame: 11
|
||||
const Date = global.Date;
|
||||
let value = Date.now();
|
||||
value -= env1_0.lastFetchAttemptedAt;
|
||||
if (value > DAY) {
|
||||
env1_0._fetch('post_connect_recurring');
|
||||
}
|
||||
}
|
||||
|
||||
function _fun124824() { // fn#124824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16360:1403, offset: 0x025c41d8, size: 70 bytes, params: 1, frame: 11
|
||||
const Date = global.Date;
|
||||
let value = Date.now();
|
||||
value -= QuestStore.lastFetchedCurrentQuests;
|
||||
if (!(value <= env3_13)) {
|
||||
value = environment.__proto__;
|
||||
env1_0._fetch('post_connect_initial');
|
||||
}
|
||||
}
|
||||
|
||||
function _fun124825() { // fn#124825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16360:1612, offset: 0x025c421e, size: 43 bytes, params: 1, frame: 11
|
||||
var value;
|
||||
var property;
|
||||
var error;
|
||||
try {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
property = dependencyMap[8];
|
||||
value = require(property);
|
||||
value.fetchQuestHomeHero();
|
||||
} catch (error) {
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,98 @@
|
||||
/* Metro module 15664; source: modules/quests/native/ATTModal/ATTManager.android.tsx; dependencies: [6, 7, 15, 17, 18, 7125, 1216, 4860, 2] */
|
||||
function _fun120097(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15872:6, offset: 0x02520c5b, size: 230 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
|
||||
value = _fun120101(value);
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/ATTModal/ATTManager.android.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_120098() { // fn#120098, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15872:148, offset: 0x02520d41, 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_120098_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun120101(a0) { // fn#120101, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15872:351, offset: 0x02520da3, size: 97 bytes, params: 2, frame: 16
|
||||
const closure = ATTManager;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, [{key: 'onPostConnectionOpen', value: value_120103}, {key: '_terminate', value: function() {
|
||||
if (this._openATTPrePromptOrFlowTimeoutId != null) {
|
||||
global.clearTimeout(this._openATTPrePromptOrFlowTimeoutId);
|
||||
this._openATTPrePromptOrFlowTimeoutId = null;
|
||||
}
|
||||
}}]);
|
||||
}
|
||||
|
||||
function ATTManager(a0) { // fn#120102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15872:363, offset: 0x02520e04, size: 153 bytes, params: 2, frame: 19
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env1_3;
|
||||
binding(this, ATTManager);
|
||||
const items = [];
|
||||
arraySpread(items, value, 0, items);
|
||||
value = env1_6(ATTManager);
|
||||
binding = env1_5;
|
||||
if (_isNativeReflectConstruct_120098()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, items, env1_6(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, items);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
value._openATTPrePromptOrFlowTimeoutId = null;
|
||||
value.actions = {POST_CONNECTION_OPEN: value.onPostConnectionOpen};
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_120103() { // fn#120103, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15872:748, offset: 0x02520e9d, size: 86 bytes, params: 1, frame: 12
|
||||
var value;
|
||||
var property;
|
||||
var moduleValue;
|
||||
var error;
|
||||
try {
|
||||
value = environment.__proto__;
|
||||
property = dependencyMap[5];
|
||||
moduleValue = require(property);
|
||||
moduleValue.fetchAdUser('post_connection_open');
|
||||
} catch (error) {
|
||||
value = importDefault(dependencyMap[6]);
|
||||
value.captureException(error);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,796 @@
|
||||
/* Metro module 13523; source: modules/quests/native/AdVideoPlayer.tsx; dependencies: [57, 31, 27, 7030, 661, 33, 697, 8011, 4501, 674, 4017, 4577, 4581, 4504, 4507, 1239, 566, 477, 1216, 1585, 1244, 5278, 13524, 13526, 13528, 13529, 10234, 9376, 9554, 13530, 13531, 2] */
|
||||
function _fun102796(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102796, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:6, offset: 0x02248c8c, size: 1300 bytes, params: 8, frame: 30
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const value2 = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value2.View;
|
||||
const StyleSheet = value2.StyleSheet;
|
||||
const env0_6 = value2.Pressable;
|
||||
const env0_7 = value2.ActivityIndicator;
|
||||
const appStateStore = importDefault(7030) /* metro dependency 7030: AppStateStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_9 = constantsModule.AppStates;
|
||||
const env0_10 = constantsModule.ComponentActions;
|
||||
const value4 = require(33) /* metro dependency 33 */;
|
||||
const env0_11 = value4.jsx;
|
||||
const env0_12 = value4.jsxs;
|
||||
object2 = {};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.left = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.right = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.top = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.bottom = PX_16;
|
||||
const env0_14 = value.memo(importDefault(8011) /* metro dependency 8011 */);
|
||||
object2 = {code: 'function hasVideoEnded_AdVideoPlayerTsx1(currentTime,videoDuration){return currentTime>=videoDuration-1;}'};
|
||||
const value5 = _fun102798();
|
||||
const closure = y_102800;
|
||||
closure.__closure = {hasVideoEnded: value5};
|
||||
closure.__workletHash = 16693292055973;
|
||||
closure.__initData = {code: 'function AdVideoPlayerTsx2(currentTime,maxTimestamp,videoDuration,allowUnrestrictedSeeking){const{hasVideoEnded}=this.__closure;return!hasVideoEnded(currentTime,videoDuration)&&(allowUnrestrictedSeeking||currentTime<=maxTimestamp-1);}'};
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object2 = {};
|
||||
const object5 = {};
|
||||
copyDataProperties(object5, StyleSheet.absoluteFillObject, undefined);
|
||||
object2.container = object5;
|
||||
const object8 = {};
|
||||
copyDataProperties(object8, StyleSheet.absoluteFillObject, undefined);
|
||||
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
|
||||
object8['backgroundColor'] = BACKGROUND_BASE_LOWEST;
|
||||
object8['justifyContent'] = 'center';
|
||||
object8['alignItems'] = 'center';
|
||||
object2.loadingContainer = object8;
|
||||
object2.bufferingSpinner = {position: 'absolute'};
|
||||
const object9 = {};
|
||||
copyDataProperties(object9, StyleSheet.absoluteFillObject, undefined);
|
||||
object9['justifyContent'] = 'center';
|
||||
object9['alignItems'] = 'center';
|
||||
object2.bufferingSpinnerCentered = object9;
|
||||
object2.video = {'height': '100%', 'width': '100%'};
|
||||
object2.videoContainer = {'position': 'relative', 'height': '100%', 'width': '100%'};
|
||||
const object10 = {};
|
||||
copyDataProperties(object10, StyleSheet.absoluteFillObject, undefined);
|
||||
const value7 = importDefault(674) /* metro dependency 674 */;
|
||||
const BLACK = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BLACK;
|
||||
const value9 = value7(BLACK).alpha(0.5);
|
||||
object10['backgroundColor'] = value9.hex();
|
||||
object10['justifyContent'] = 'center';
|
||||
object10['alignItems'] = 'center';
|
||||
object10['flexDirection'] = 'column';
|
||||
object2.controls = object10;
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.controlsTopBottom = {'flexDirection': 'row', 'justifyContent': 'flex-end', 'padding': null,
|
||||
'position': 'absolute', 'left': 0, 'right': 0, padding: PX_8};
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object2.controlsMiddle = {'justifyContent': 'center', 'alignItems': 'center', 'flexGrow': 1, 'flexDirection': 'row',
|
||||
'gap': null, 'pointerEvents': 'box-none', gap: PX_24};
|
||||
object2.controlsTop = {top: 0};
|
||||
object2.controlsBottom = {bottom: 0};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.progressContainer = {'position': 'absolute', 'bottom': 0, 'right': 0, 'left': 0,
|
||||
'justifyContent': 'flex-end', 'height': null, 'overflow': 'hidden', height: PX_16};
|
||||
const object11 = {'height': 1, 'backgroundColor': null, 'shadowOffset': null, 'shadowRadius': 6, 'shadowOpacity': 1,
|
||||
'elevation': 5};
|
||||
let WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
|
||||
object11.backgroundColor = WHITE;
|
||||
object11.shadowOffset = {'width': 0, 'height': 0};
|
||||
WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
|
||||
object11.shadowColor = WHITE;
|
||||
object2.progress = object11;
|
||||
const TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT;
|
||||
object2.icon = {color: TEXT_DEFAULT};
|
||||
const TEXT_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_SUBTLE;
|
||||
object2.iconDisabled = {color: TEXT_SUBTLE};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.controlButton = {padding: PX_8};
|
||||
const env0_18 = Reflect.apply(createStyles, createStylesModule, [object2]);
|
||||
const env0_21 = {code: 'function AdVideoPlayerTsx3(){const{hasLoaded,hideControls,showControls,playerState,PlayerState,isVideoEnded}=this.__closure;return hasLoaded&&!hideControls&&(showControls.get()||playerState===PlayerState.PAUSED||playerState===PlayerState.ENDED||playerState===PlayerState.ERRORED||isVideoEnded);}'};
|
||||
const env0_22 = {code: "function AdVideoPlayerTsx4(){const{shouldShowControls,withSpring,SUBTLE_SPRING}=this.__closure;const show=shouldShowControls();return{opacity:withSpring(show?1:0,SUBTLE_SPRING),pointerEvents:show?'auto':'none'};}"};
|
||||
const env0_23 = {code: 'function AdVideoPlayerTsx5(){const{withTiming,progressSharedValue,timingFast}=this.__closure;return{width:withTiming(progressSharedValue.get()*100+"%",timingFast,\'animate-always\')};}'};
|
||||
value = value.memo(_fun102801);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/AdVideoPlayer.tsx');
|
||||
exports.PlayerState = {PAUSED: 'paused', PLAYING: 'playing', ENDED: 'ended', LOADING: 'loading', ERRORED: 'errored'};
|
||||
exports.PlaybackTriggerSource = {USER_INTERACTION: 'USER_INTERACTION', SYSTEM_INITIATED: 'SYSTEM_INITIATED',
|
||||
IMPERATIVE_API: 'IMPERATIVE_API'};
|
||||
exports.AdVideoPlayer = value;
|
||||
}
|
||||
|
||||
function getSafeAreaInsetOrPadding(a0, a1) { // fn#102797, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:374, offset: 0x022491a0, size: 42 bytes, params: 3, frame: 14
|
||||
const Math = global.Math;
|
||||
return Math.max(a0[a1], env0_13[a1]);
|
||||
}
|
||||
|
||||
function _fun102798() { // fn#102798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:584, offset: 0x022491ca, size: 48 bytes, params: 1, frame: 2
|
||||
const closure = function(a0, a1) {
|
||||
return a0 >= a1 - 1;
|
||||
};
|
||||
closure.__closure = {};
|
||||
closure.__workletHash = 8992945176371;
|
||||
closure.__initData = env0_15;
|
||||
return closure;
|
||||
}
|
||||
|
||||
function y_102800(a0, a1, a2, a3) { // fn#102800, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:1014, offset: 0x0224920d, size: 52 bytes, params: 5, frame: 14
|
||||
return !env0_16(a0, a2) && (a3 || a0 <= a1 - 1);
|
||||
}
|
||||
|
||||
function _fun102801({source, initialProgress, contentDuration, allowUnrestrictedSeeking, disableResumeOnLoad, style, isFullscreen, externallyPaused, contentInsets, captionsEnabled, onToggleCaptions, onOpenTranscript, onToggleFullscreen, renderCaptions, onLoadStart, onLoad, onReadyForDisplay, onProgress, onSeek, onBuffer, onError, onEnd, onPlayerStateChange, onPausePlayback, onResumePlayback, onVideoTracks, onVideoLayout, videoRef, bufferingSpinnerPlacement, showCaptionsButton, showTranscriptButton, showFullscreenButton, showProgress, showSkipButtons, hideControls, httpEngine, automaticallyWaitsToMinimizeStalling, repeat, ref}) { // fn#102801, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:3495, offset: 0x02249241, size: 4363 bytes, params: 2, frame: 74
|
||||
var r25;
|
||||
var r24;
|
||||
var getSafeAreaInsetOrPaddingBinding;
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
var items7;
|
||||
const VideoQuestPlayerControlButton = (require(13528) /* metro dependency 13528: VideoQuestPlayerControlButton */).VideoQuestPlayerControlButton;
|
||||
contentDuration = contentDuration === undefined ? 0 : contentDuration;
|
||||
allowUnrestrictedSeeking = !(allowUnrestrictedSeeking === undefined) && allowUnrestrictedSeeking;
|
||||
disableResumeOnLoad = !(disableResumeOnLoad === undefined) && disableResumeOnLoad;
|
||||
captionsEnabled = !(captionsEnabled === undefined) && captionsEnabled;
|
||||
const env0_3 = onLoadStart;
|
||||
const env0_4 = onLoad;
|
||||
bufferingSpinnerPlacement = bufferingSpinnerPlacement === undefined ? 'top-left' : bufferingSpinnerPlacement;
|
||||
showCaptionsButton = !(showCaptionsButton === undefined) && showCaptionsButton;
|
||||
showTranscriptButton = !(showTranscriptButton === undefined) && showTranscriptButton;
|
||||
showFullscreenButton = !(showFullscreenButton === undefined) && showFullscreenButton;
|
||||
showProgress = !(showProgress === undefined) && showProgress;
|
||||
showSkipButtons = showSkipButtons === undefined || showSkipButtons;
|
||||
hideControls = !(hideControls === undefined) && hideControls;
|
||||
repeat = !(repeat === undefined) && repeat;
|
||||
const env0_14 = repeat;
|
||||
const styles = useStyles();
|
||||
let binding = env0_4;
|
||||
const r58 = videoRef ?? binding.useRef(null);
|
||||
binding = env0_4;
|
||||
let useState = binding.useState;
|
||||
const value16 = Reflect.apply(useState, binding, [contentDuration]);
|
||||
const binding2 = env0_3;
|
||||
const value17 = binding2(value16, 2);
|
||||
const property = value17[0];
|
||||
const env0_16 = property;
|
||||
const env0_17 = value17[1];
|
||||
useState = binding.useState;
|
||||
let object = {};
|
||||
copyDataProperties(object, initialProgress, undefined);
|
||||
const value19 = binding2(Reflect.apply(useState, binding, [object]), 2);
|
||||
const property2 = value19[0];
|
||||
const env0_19 = value19[1];
|
||||
useState = binding.useState;
|
||||
const LOADING = env0_19.LOADING;
|
||||
const value20 = binding2(Reflect.apply(useState, binding, [LOADING]), 2);
|
||||
const property3 = value20[0];
|
||||
const env0_21 = value20[1];
|
||||
useState = binding.useState;
|
||||
const value21 = binding2(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property4 = value21[0];
|
||||
const env0_22 = property4;
|
||||
const env0_23 = value21[1];
|
||||
const env0_24 = binding.useRef(null);
|
||||
const env0_25 = binding.useRef(0);
|
||||
let useCallback = binding.useCallback;
|
||||
const value22 = Reflect.apply(useCallback, binding, [_fun102802, [onPlayerStateChange]]);
|
||||
const r34 = property4 && property3 === env0_19.ENDED && env0_16(property2.timestampSec, property2.duration);
|
||||
const value25 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(false);
|
||||
let closure = shouldShowControls;
|
||||
binding = env0_19;
|
||||
closure.__closure = {hasLoaded: property4, hideControls: hideControls, showControls: value25,
|
||||
playerState: property3, PlayerState: binding, isVideoEnded: r34};
|
||||
closure.__workletHash = 6484184524579;
|
||||
closure.__initData = env0_21;
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
let useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
const closure2 = he_102804;
|
||||
object = {shouldShowControls: closure};
|
||||
object.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
|
||||
const SUBTLE_SPRING = (require(4581) /* metro dependency 4581: springPresets */).SUBTLE_SPRING;
|
||||
object.SUBTLE_SPRING = SUBTLE_SPRING;
|
||||
closure2.__closure = object;
|
||||
closure2.__workletHash = 311315682972;
|
||||
closure2.__initData = env0_22;
|
||||
const value26 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure2]);
|
||||
const value27 = closure();
|
||||
const value28 = reanimatedRexportModule.useSharedValue(0);
|
||||
const moduleValue4 = reanimatedRexportModule;
|
||||
useAnimatedStyle = moduleValue4.useAnimatedStyle;
|
||||
closure = pe;
|
||||
closure.__closure = {withTiming: (require(4504) /* metro dependency 4504: timing */).withTiming,
|
||||
progressSharedValue: value28, timingFast: (require(4507) /* metro dependency 4507: timingPresets */).timingFast};
|
||||
closure.__workletHash = 11793601648786;
|
||||
closure.__initData = env0_23;
|
||||
const value29 = Reflect.apply(useAnimatedStyle, moduleValue4, [closure]);
|
||||
const binding3 = env0_4;
|
||||
const env0_31 = binding3.useRef(-1);
|
||||
const value30 = binding3.useCallback(function(a0) {
|
||||
var env0_0 = a0;
|
||||
return _fun102807;
|
||||
}, [value25]);
|
||||
const value31 = binding3.useCallback(_fun102809, []);
|
||||
const [property5, env0_33] = env0_3(binding3.useState(false), 2);
|
||||
const value34 = binding3.useCallback(_fun102811, [onReadyForDisplay]);
|
||||
const value35 = binding3.useCallback(_fun102812, [allowUnrestrictedSeeking, property2.duration,
|
||||
property2.maxTimestampSec, r58]);
|
||||
binding3.useImperativeHandle(ref, function() {
|
||||
return {seekToStart: _fun102814, play: _fun102815, pause: _fun102816};
|
||||
}, [value35, property3, value22, onResumePlayback, onPausePlayback]);
|
||||
useCallback = binding3.useCallback;
|
||||
object = [r58];
|
||||
object[1] = initialProgress.timestampSec;
|
||||
object[2] = disableResumeOnLoad;
|
||||
object[3] = value22;
|
||||
object[4] = onLoad;
|
||||
object[5] = value35;
|
||||
const value36 = Reflect.apply(useCallback, binding3, [_fun102817, object]);
|
||||
const value37 = binding3.useCallback(_fun102818, [property3, onPausePlayback, onResumePlayback, r34, value22,
|
||||
value35]);
|
||||
const value38 = binding3.useCallback(_fun102819, [value37]);
|
||||
const env0_36 = binding3.useRef(false);
|
||||
binding3.useEffect(_fun102822, [binding3.useCallback(_fun102820, [property3, value22, onPausePlayback]),
|
||||
binding3.useCallback(_fun102821, [property3, value22, onResumePlayback])]);
|
||||
const value41 = binding3.useCallback(_fun102824, [value25, value37]);
|
||||
const value42 = binding3.useCallback(_fun102825, [property, value28, onSeek, value31, r58]);
|
||||
let ERRORED = binding.ERRORED;
|
||||
const r33 = property3 === ERRORED || !y_102800(property2.timestampSec, property2.maxTimestampSec,
|
||||
property2.duration, allowUnrestrictedSeeking);
|
||||
binding = env0_4;
|
||||
const value45 = binding.useCallback(_fun102826, [value35, property, value28, r33]);
|
||||
useCallback = binding.useCallback;
|
||||
const value46 = value30(Reflect.apply(useCallback, binding, [_fun102827, [value35, property, value28, property3,
|
||||
value22]]));
|
||||
const value47 = value30(value45);
|
||||
const value48 = binding.useCallback(_fun102828, [value28, value31, onProgress]);
|
||||
const value49 = binding.useCallback(_fun102829, [value22, onEnd, repeat]);
|
||||
const value50 = binding.useCallback(_fun102830, [value22, onLoadStart]);
|
||||
const value51 = binding.useCallback(_fun102831, [value22, onError]);
|
||||
const state = (require(566) /* metro dependency 566: flux */).useStateFromStores([AppStateStore], function() {
|
||||
return AppStateStore.getState();
|
||||
});
|
||||
const ACTIVE = AppStates.ACTIVE;
|
||||
const value52 = state === ACTIVE;
|
||||
binding.useLayoutEffect(_fun102833, [r58]);
|
||||
let r32 = value52 ? property3 === env0_19.PAUSED : !value52;
|
||||
r32 = !r32 ? property3 === env0_19.LOADING : r32;
|
||||
r32 = !r32 ? externallyPaused : r32;
|
||||
const {isBuffering, toggleBuffering} = useBufferingState({onBuffer: onBuffer});
|
||||
binding = env0_4;
|
||||
const value57 = binding.useCallback(_fun102837, [toggleBuffering, property3]);
|
||||
const value58 = binding.useCallback(_fun102838, [toggleBuffering]);
|
||||
const value59 = binding.useCallback(_fun102839, [toggleBuffering]);
|
||||
const value60 = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)();
|
||||
let r22 = isFullscreen && value60 != null;
|
||||
if (r22) {
|
||||
object = {};
|
||||
getSafeAreaInsetOrPaddingBinding = getSafeAreaInsetOrPadding;
|
||||
object.paddingRight = getSafeAreaInsetOrPaddingBinding(value60, 'right');
|
||||
object.paddingLeft = getSafeAreaInsetOrPaddingBinding(value60, 'left');
|
||||
r22 = object;
|
||||
}
|
||||
const items2 = [styles.container, style];
|
||||
const pressableBindingProps = {style: [styles.videoContainer], onPress: value41, accessible: !value27};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
pressableBindingProps.accessibilityLabel = Reflect.apply(string, intl, [r32 ? t.R3aFPe : t.fTMEUi]);
|
||||
ERRORED = env0_19.ERRORED;
|
||||
const items3 = [property3 !== ERRORED && ((Component) => <Component mixWithOthers="inherit" httpEngine={httpEngine} automaticallyWaitsToMinimizeStalling={automaticallyWaitsToMinimizeStalling} ref={r58} accessible={false} importantForAccessibility="no-hide-descendants" accessibilityRole="none" style={styles.video} paused={r32} repeat={repeat} source={source} onBuffer={value57} onPlaybackStalled={value58} onPlaybackResume={value59} onLoad={value36} onSeek={value42} onProgress={value48} onLoadStart={value50} onEnd={value49} onError={value51} onReadyForDisplay={value34} onVideoTracks={onVideoTracks} onLayout={onVideoLayout} resizeMode="contain" />)(env0_14)];
|
||||
items3[1] = renderCaptions?.(property2.timestampSec);
|
||||
items3[2] = isBuffering && <ActivityIndicator animating style={[styles.bufferingSpinner,
|
||||
isFullscreen || bufferingSpinnerPlacement === 'center' ? styles.bufferingSpinnerCentered : {top: contentInsets?.top ?? 0,
|
||||
left: contentInsets?.left ?? 0}]} color={(importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.WHITE} />;
|
||||
items3[3] = !property5 && <View style={styles.loadingContainer}><ActivityIndicator animating /></View>;
|
||||
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
const items5 = [styles.controls, value26];
|
||||
let r18 = showCaptionsButton || showTranscriptButton;
|
||||
if (r18) {
|
||||
var viewProps = {style: [styles.controlsTopBottom, styles.controlsTop, r22]};
|
||||
items7 = [showCaptionsButton && <PressableOpacity accessibilityRole="button" accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bDSZO1)} onPress={onToggleCaptions} style={styles.controlButton}>{((ClosedCaptionsOutlineIcon) => <ClosedCaptionsOutlineIcon color={captionsEnabled ? styles.icon.color : styles.iconDisabled.color} />)((require(13524) /* metro dependency 13524: ClosedCaptionsOutlineIcon */).ClosedCaptionsOutlineIcon)}</PressableOpacity>];
|
||||
items7[1] = showTranscriptButton && <PressableOpacity accessibilityRole="button" accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.KCzjTi)} onPress={onOpenTranscript} style={styles.controlButton}>{((TranscriptOutlineIcon) => <TranscriptOutlineIcon color={styles.iconDisabled.color} />)((require(13526) /* metro dependency 13526: TranscriptOutlineIcon */).TranscriptOutlineIcon)}</PressableOpacity>;
|
||||
r18 = <View {...viewProps}>{items7}</View>;
|
||||
}
|
||||
const items8 = [r18];
|
||||
if (showSkipButtons) {
|
||||
r25 = <VideoQuestPlayerControlButton disabled={property3 === env0_19.ERRORED} accessibilityRole="button" accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.r9s3Uv)} onPress={value46}>{((SkipBackwardIcon) => <SkipBackwardIcon color={styles.icon.color} width={16} height={16} />)((require(13529) /* metro dependency 13529: SkipBackwardIcon */).SkipBackwardIcon)}</VideoQuestPlayerControlButton>;
|
||||
} else {
|
||||
r25 = showSkipButtons;
|
||||
}
|
||||
const items9 = [r25];
|
||||
string = intl.string;
|
||||
const r37 = r34 || property3 === env0_19.ERRORED ? (require(1244) /* metro dependency 1244: indexNative */).t.K0e7M9 : r32 ? t.R3aFPe : t.fTMEUi;
|
||||
if (r34 || property3 === env0_19.ERRORED) {
|
||||
const RetryIcon = (require(10234) /* metro dependency 10234: RetryIcon */).RetryIcon;
|
||||
r32 = <RetryIcon size="lg" />;
|
||||
} else {
|
||||
r32 = ((Component) => <Component size="lg" />)(r32 ? (require(9376) /* metro dependency 9376: PlayIcon */).PlayIcon : (require(9554) /* metro dependency 9554: PauseIcon */).PauseIcon);
|
||||
}
|
||||
items9[1] = <VideoQuestPlayerControlButton accessibilityRole="button" accessibilityLabel={Reflect.apply(string,
|
||||
intl, [r37])} onPress={value38}>{r32}</VideoQuestPlayerControlButton>;
|
||||
if (showSkipButtons) {
|
||||
r24 = <VideoQuestPlayerControlButton disabled={r33} accessibilityRole="button" accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.zWDcNP)} onPress={value47}>{((SkipForwardIcon) => <SkipForwardIcon color={styles.icon.color} width={16} height={16} />)((require(13530) /* metro dependency 13530: SkipForwardIcon */).SkipForwardIcon)}</VideoQuestPlayerControlButton>;
|
||||
} else {
|
||||
r24 = showSkipButtons;
|
||||
}
|
||||
items9[2] = r24;
|
||||
items8[1] = <View style={styles.controlsMiddle}>{items9}</View>;
|
||||
items8[2] = showFullscreenButton && <View style={[styles.controlsTopBottom, styles.controlsBottom,
|
||||
r22]}><PressableOpacity accessibilityRole="button" accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.vKZT5t)} onPress={onToggleFullscreen} style={styles.controlButton}>{((FullscreenEnterIcon) => <FullscreenEnterIcon />)((require(13531) /* metro dependency 13531: FullscreenEnterIcon */).FullscreenEnterIcon)}</PressableOpacity></View>;
|
||||
items3[4] = <View2 style={items5} accessible={false}>{items8}</View2>;
|
||||
items3[5] = showProgress && <View style={styles.progressContainer}>{((View) => <View style={[styles.progress,
|
||||
value29]} />)((importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View)}</View>;
|
||||
return (
|
||||
<View style={items2} accessible={false}>
|
||||
<Pressable {...pressableBindingProps}>
|
||||
{items3}
|
||||
</Pressable>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun102802(a0) { // fn#102802, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:4522, offset: 0x0224a34c, size: 38 bytes, params: 2, frame: 13
|
||||
env0_21(a0);
|
||||
if (onPlayerStateChange != null) {
|
||||
onPlayerStateChange(a0);
|
||||
}
|
||||
}
|
||||
|
||||
function shouldShowControls() { // fn#102803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:4644, offset: 0x0224a372, size: 117 bytes, params: 1, frame: 12
|
||||
var r1;
|
||||
let r0 = env0_22 && !hideControls;
|
||||
if (r0) {
|
||||
r1 = env0_28.get() || env0_20 === env1_19.PAUSED;
|
||||
r1 = !r1 ? env0_20 === env1_19.ENDED : r1;
|
||||
r1 = !r1 ? env0_20 === env1_19.ERRORED : r1;
|
||||
r1 = !r1 ? env0_27 : r1;
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function he_102804() { // fn#102804, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:4920, offset: 0x0224a3e7, size: 105 bytes, params: 1, frame: 18
|
||||
const shouldShowControls2 = shouldShowControls();
|
||||
const springModule = require(4577) /* metro dependency 4577: spring */;
|
||||
const withSpring = springModule.withSpring;
|
||||
const r3 = shouldShowControls2 ? 1 : 0;
|
||||
const SUBTLE_SPRING = (require(4581) /* metro dependency 4581: springPresets */).SUBTLE_SPRING;
|
||||
return {opacity: Reflect.apply(withSpring, springModule, [r3, SUBTLE_SPRING]),
|
||||
pointerEvents: shouldShowControls2 ? 'auto' : 'none'};
|
||||
}
|
||||
|
||||
function pe() { // fn#102805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:5265, offset: 0x0224a450, size: 100 bytes, params: 1, frame: 18
|
||||
const object2 = {};
|
||||
let value = environment.__proto__;
|
||||
value = require(4504) /* metro dependency 4504: timing */;
|
||||
object2.width = value.withTiming(100 * env0_30.get() + '%',
|
||||
(require(4507) /* metro dependency 4507: timingPresets */).timingFast, 'animate-always');
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun102806(a0) { // fn#102806, offset: 0x0224a4b4, size: 18 bytes, params: 2, frame: 2
|
||||
const env0_0 = a0;
|
||||
return _fun102807;
|
||||
}
|
||||
|
||||
function _fun102809(a0, a1) { // fn#102809, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:5684, offset: 0x0224a564, size: 39 bytes, params: 3, frame: 11
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
env0_19(_fun102810);
|
||||
}
|
||||
|
||||
function _fun102811() { // fn#102811, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:5874, offset: 0x0224a5d5, size: 38 bytes, params: 1, frame: 11
|
||||
if (onReadyForDisplay != null) {
|
||||
onReadyForDisplay();
|
||||
}
|
||||
env0_33(true);
|
||||
}
|
||||
|
||||
function _fun102812(a0) { // fn#102812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:5924, offset: 0x0224a5fb, size: 176 bytes, params: 2, frame: 16
|
||||
var r6;
|
||||
var allowUnrestrictedSeekingBinding;
|
||||
var binding;
|
||||
var Math;
|
||||
var value3;
|
||||
let current = env0_15.current;
|
||||
if (current != null) {
|
||||
allowUnrestrictedSeekingBinding = allowUnrestrictedSeeking;
|
||||
binding = env0_18;
|
||||
r6 = allowUnrestrictedSeekingBinding ? binding.duration : binding.maxTimestampSec;
|
||||
Math = global.Math;
|
||||
value3 = Math.max(0, global.Math.min(a0, r6));
|
||||
binding = env0_25;
|
||||
current = binding.current;
|
||||
binding.current = (current + 1) % 100;
|
||||
current = env0_15.current;
|
||||
current.seek(value3 + 0.0001 * env0_25.current);
|
||||
env0_24.current = value3;
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102813() { // fn#102813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:6162, offset: 0x0224a6ab, size: 42 bytes, params: 1, frame: 3
|
||||
return {seekToStart: seekToStart, play: play_102815, pause: pause_102816};
|
||||
}
|
||||
|
||||
function _fun102817(a0) { // fn#102817, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:6453, offset: 0x0224a7dc, size: 149 bytes, params: 2, frame: 16
|
||||
var r3;
|
||||
var timestampSec;
|
||||
var binding;
|
||||
var value5;
|
||||
const duration = a0.duration;
|
||||
env0_17(duration);
|
||||
env0_23(true);
|
||||
if (env0_15.current != null) {
|
||||
timestampSec = initialProgress.timestampSec;
|
||||
r3 = !disableResumeOnLoad && timestampSec > 5;
|
||||
r3 = r3 && timestampSec < duration - 3;
|
||||
if (r3) {
|
||||
env0_34(timestampSec - 1);
|
||||
}
|
||||
binding = env0_26;
|
||||
value5 = environment.__proto__;
|
||||
binding(env1_19.PLAYING);
|
||||
if (onLoad != null) {
|
||||
onLoad(a0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102818() { // fn#102818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:6633, offset: 0x0224a871, size: 284 bytes, params: 1, frame: 14
|
||||
const value = a0;
|
||||
let shouldRestartVideo = (value !== undefined ? value : {}).shouldRestartVideo;
|
||||
shouldRestartVideo = shouldRestartVideo === undefined || shouldRestartVideo;
|
||||
const binding = env0_20;
|
||||
const ERRORED = env1_19.ERRORED;
|
||||
if (binding === ERRORED) {
|
||||
env0_34(0);
|
||||
env0_26(env1_19.PLAYING);
|
||||
if (onResumePlayback != null) {
|
||||
onResumePlayback(env1_20.USER_INTERACTION);
|
||||
}
|
||||
} else if (env0_27) {
|
||||
if (shouldRestartVideo) {
|
||||
env0_34(0);
|
||||
env0_26(env1_19.PLAYING);
|
||||
if (onResumePlayback != null) {
|
||||
onResumePlayback(env1_20.USER_INTERACTION);
|
||||
}
|
||||
} else if (env0_20 === env1_19.PAUSED) {
|
||||
env0_26(env1_19.PLAYING);
|
||||
if (onResumePlayback != null) {
|
||||
onResumePlayback(env1_20.USER_INTERACTION);
|
||||
}
|
||||
} else if (env0_20 === env1_19.LOADING) {
|
||||
env0_26(env1_19.PLAYING);
|
||||
if (onResumePlayback != null) {
|
||||
onResumePlayback(env1_20.USER_INTERACTION);
|
||||
}
|
||||
} else if (env0_20 === env1_19.PLAYING) {
|
||||
env0_26(env1_19.PAUSED);
|
||||
if (onPausePlayback != null) {
|
||||
onPausePlayback(env1_20.USER_INTERACTION);
|
||||
}
|
||||
}
|
||||
} else if (env0_20 === env1_19.PAUSED) {
|
||||
env0_26(env1_19.PLAYING);
|
||||
if (onResumePlayback != null) {
|
||||
onResumePlayback(env1_20.USER_INTERACTION);
|
||||
}
|
||||
} else if (env0_20 === env1_19.LOADING) {
|
||||
env0_26(env1_19.PLAYING);
|
||||
if (onResumePlayback != null) {
|
||||
onResumePlayback(env1_20.USER_INTERACTION);
|
||||
}
|
||||
} else if (env0_20 === env1_19.PLAYING) {
|
||||
env0_26(env1_19.PAUSED);
|
||||
if (onPausePlayback != null) {
|
||||
onPausePlayback(env1_20.USER_INTERACTION);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102820() { // fn#102820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:6969, offset: 0x0224a98d, size: 102 bytes, params: 1, frame: 13
|
||||
env0_36.current = false;
|
||||
const binding = env0_20;
|
||||
const PLAYING = env1_19.PLAYING;
|
||||
if (binding === PLAYING) {
|
||||
env0_36.current = true;
|
||||
env0_26(env1_19.PAUSED);
|
||||
if (onPausePlayback != null) {
|
||||
onPausePlayback(env1_20.SYSTEM_INITIATED);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102821() { // fn#102821, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:7095, offset: 0x0224a9f3, size: 102 bytes, params: 1, frame: 13
|
||||
var binding;
|
||||
var value2;
|
||||
if (env0_36.current) {
|
||||
env0_36.current = false;
|
||||
binding = env0_20;
|
||||
value2 = environment.__proto__;
|
||||
if (binding !== env1_19.ERRORED) {
|
||||
env0_26(env1_19.PLAYING);
|
||||
if (onResumePlayback != null) {
|
||||
onResumePlayback(env1_20.SYSTEM_INITIATED);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102822() { // fn#102822, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:7217, offset: 0x0224aa59, size: 108 bytes, params: 1, frame: 19
|
||||
const ComponentDispatch = (require(1239) /* metro dependency 1239: ComponentDispatchUtils */).ComponentDispatch;
|
||||
let subscribe = ComponentDispatch.subscribe;
|
||||
const QUEST_GAME_LINK_OPENED = ComponentActions.QUEST_GAME_LINK_OPENED;
|
||||
Reflect.apply(subscribe, ComponentDispatch, [QUEST_GAME_LINK_OPENED, env0_37]);
|
||||
subscribe = ComponentDispatch.subscribe;
|
||||
const QUEST_APP_STORE_OVERLAY_FINISHED = ComponentActions.QUEST_APP_STORE_OVERLAY_FINISHED;
|
||||
Reflect.apply(subscribe, ComponentDispatch, [QUEST_APP_STORE_OVERLAY_FINISHED, env0_38]);
|
||||
return _fun102823;
|
||||
}
|
||||
|
||||
function _fun102824() { // fn#102824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:7549, offset: 0x0224ab28, size: 57 bytes, params: 1, frame: 12
|
||||
const binding = env0_28;
|
||||
const get = binding.get;
|
||||
if (Reflect.apply(get, binding, [])) {
|
||||
env0_28.set(false);
|
||||
}
|
||||
env0_35({shouldRestartVideo: false});
|
||||
}
|
||||
|
||||
function _fun102825(a0) { // fn#102825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:7632, offset: 0x0224ab61, size: 114 bytes, params: 2, frame: 16
|
||||
var binding;
|
||||
var set;
|
||||
var currentTime;
|
||||
if (env0_15.current != null) {
|
||||
env0_24.current = null;
|
||||
if (env0_16 > 0) {
|
||||
binding = env0_30;
|
||||
set = binding.set;
|
||||
currentTime = a0.currentTime;
|
||||
Reflect.apply(set, binding, [currentTime / env0_16]);
|
||||
binding = env0_32;
|
||||
currentTime = a0.currentTime;
|
||||
binding(currentTime, env0_16);
|
||||
}
|
||||
if (onSeek != null) {
|
||||
onSeek(a0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102826() { // fn#102826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:7849, offset: 0x0224abd3, size: 68 bytes, params: 1, frame: 12
|
||||
if (!env0_39) {
|
||||
env0_34((env0_24.current ?? env0_30.get() * env0_16) + 10);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102827() { // fn#102827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:7957, offset: 0x0224ac17, size: 99 bytes, params: 1, frame: 13
|
||||
env0_34((env0_24.current ?? env0_30.get() * env0_16) - 10);
|
||||
const binding = env0_20;
|
||||
const ENDED = env1_19.ENDED;
|
||||
if (binding === ENDED) {
|
||||
env0_26(env1_19.PLAYING);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102828(a0) { // fn#102828, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:8091, offset: 0x0224ac7a, size: 122 bytes, params: 2, frame: 16
|
||||
const seekableDuration = a0.seekableDuration;
|
||||
const value = 0;
|
||||
const r3 = value === seekableDuration ? value : a0.currentTime / a0.seekableDuration;
|
||||
env0_32(a0.currentTime, a0.seekableDuration);
|
||||
env0_30.set(r3);
|
||||
if (onProgress != null) {
|
||||
onProgress({currentTime: a0.currentTime, seekableDuration: a0.seekableDuration, progress: r3});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102829() { // fn#102829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:8324, offset: 0x0224acf4, size: 58 bytes, params: 1, frame: 12
|
||||
var binding;
|
||||
var value2;
|
||||
if (!repeat) {
|
||||
binding = env0_26;
|
||||
value2 = environment.__proto__;
|
||||
binding(env1_19.ENDED);
|
||||
}
|
||||
if (onEnd != null) {
|
||||
onEnd();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102830() { // fn#102830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:8389, offset: 0x0224ad2e, size: 47 bytes, params: 1, frame: 12
|
||||
const binding = env0_26;
|
||||
const LOADING = env1_19.LOADING;
|
||||
binding(LOADING);
|
||||
if (onLoadStart != null) {
|
||||
onLoadStart();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102831(a0) { // fn#102831, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:8449, offset: 0x0224ad5d, size: 51 bytes, params: 2, frame: 12
|
||||
const binding = env0_26;
|
||||
const ERRORED = env1_19.ERRORED;
|
||||
binding(ERRORED);
|
||||
if (onError != null) {
|
||||
onError(a0);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102833() { // fn#102833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:8576, offset: 0x0224ad90, size: 67 bytes, params: 1, frame: 12
|
||||
var environment;
|
||||
var current;
|
||||
let value = environment.__proto__;
|
||||
value = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (value.isAndroid()) {
|
||||
current = env0_15.current;
|
||||
return _fun102834;
|
||||
}
|
||||
}
|
||||
|
||||
function useBufferingState({onBuffer}) { // fn#102835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:8823, offset: 0x0224ae4b, size: 120 bytes, params: 2, frame: 16
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
const binding = env1_4;
|
||||
const env0_1 = binding.useRef(false);
|
||||
value = env1_3(binding.useState(false), 2);
|
||||
const property = value[0];
|
||||
const env0_2 = value[1];
|
||||
const useCallback = binding.useCallback;
|
||||
let object = [onBuffer];
|
||||
object = {isBuffering: property, toggleBuffering: Reflect.apply(useCallback, binding, [_fun102836, object])};
|
||||
return object;
|
||||
}
|
||||
|
||||
function _fun102837({isBuffering}) { // fn#102837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:9112, offset: 0x0224af00, size: 109 bytes, params: 2, frame: 13
|
||||
var binding;
|
||||
var value2;
|
||||
var moduleValue;
|
||||
if (isBuffering) {
|
||||
binding = env0_20;
|
||||
value2 = environment.__proto__;
|
||||
if (binding === env1_19.LOADING) {
|
||||
toggleBuffering(true);
|
||||
} else {
|
||||
moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (moduleValue.isIOS()) {
|
||||
if (!isBuffering) {
|
||||
toggleBuffering(false);
|
||||
}
|
||||
} else {
|
||||
toggleBuffering(true);
|
||||
}
|
||||
}
|
||||
} else if (!isBuffering) {
|
||||
toggleBuffering(false);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102838() { // fn#102838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:9215, offset: 0x0224af6d, size: 54 bytes, params: 1, frame: 11
|
||||
let value = environment.__proto__;
|
||||
value = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (value.isIOS()) {
|
||||
toggleBuffering(true);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102839() { // fn#102839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:9271, offset: 0x0224afa3, size: 54 bytes, params: 1, frame: 11
|
||||
let value = environment.__proto__;
|
||||
value = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (value.isIOS()) {
|
||||
toggleBuffering(false);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102807(a0) { // fn#102807, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:5541, offset: 0x0224a4c6, size: 135 bytes, params: 2, frame: 18
|
||||
var binding3;
|
||||
var items2;
|
||||
const value = copyRestArgs(0, undefined);
|
||||
global.clearTimeout(env1_31.current);
|
||||
const binding = env1_28;
|
||||
binding.set(true);
|
||||
env1_31.current = global.setTimeout(_fun102808, 2000);
|
||||
if (env0_0 != null) {
|
||||
binding3 = env0_0;
|
||||
items2 = [];
|
||||
arraySpread(items2, value, 0, binding);
|
||||
return apply(binding3, items2, undefined, binding);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102810({maxTimestampSec}) { // fn#102810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:5696, offset: 0x0224a58b, size: 74 bytes, params: 2, frame: 16
|
||||
const Math = global.Math;
|
||||
const max = Math.max;
|
||||
const Math2 = global.Math;
|
||||
const floor = Math2.floor;
|
||||
const binding = env0_0;
|
||||
return {timestampSec: binding, maxTimestampSec: Reflect.apply(max, Math, [maxTimestampSec, Reflect.apply(floor,
|
||||
Math2, [binding])]), duration: require};
|
||||
}
|
||||
|
||||
function seekToStart() { // fn#102814, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:6180, offset: 0x0224a6d5, size: 107 bytes, params: 1, frame: 13
|
||||
const binding = env1_20;
|
||||
const ERRORED = env2_19.ERRORED;
|
||||
if (binding !== ERRORED) {
|
||||
env1_34(0);
|
||||
if (env1_20 === env2_19.ENDED) {
|
||||
env1_26(env2_19.PLAYING);
|
||||
if (onResumePlayback != null) {
|
||||
onResumePlayback(env2_20.IMPERATIVE_API);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function play_102815() { // fn#102815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:6274, offset: 0x0224a740, size: 78 bytes, params: 1, frame: 13
|
||||
const binding = env1_20;
|
||||
const PAUSED = env2_19.PAUSED;
|
||||
if (binding === PAUSED) {
|
||||
env1_26(env2_19.PLAYING);
|
||||
if (onResumePlayback != null) {
|
||||
onResumePlayback(env2_20.IMPERATIVE_API);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function pause_102816() { // fn#102816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:6346, offset: 0x0224a78e, size: 78 bytes, params: 1, frame: 13
|
||||
const binding = env1_20;
|
||||
const PLAYING = env2_19.PLAYING;
|
||||
if (binding === PLAYING) {
|
||||
env1_26(env2_19.PAUSED);
|
||||
if (onPausePlayback != null) {
|
||||
onPausePlayback(env2_20.IMPERATIVE_API);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102823() { // fn#102823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:7364, offset: 0x0224aac5, size: 99 bytes, params: 1, frame: 19
|
||||
const ComponentDispatch = (require(1239) /* metro dependency 1239: ComponentDispatchUtils */).ComponentDispatch;
|
||||
let unsubscribe = ComponentDispatch.unsubscribe;
|
||||
const QUEST_GAME_LINK_OPENED = ComponentActions.QUEST_GAME_LINK_OPENED;
|
||||
Reflect.apply(unsubscribe, ComponentDispatch, [QUEST_GAME_LINK_OPENED, env1_37]);
|
||||
unsubscribe = ComponentDispatch.unsubscribe;
|
||||
const QUEST_APP_STORE_OVERLAY_FINISHED = ComponentActions.QUEST_APP_STORE_OVERLAY_FINISHED;
|
||||
Reflect.apply(unsubscribe, ComponentDispatch, [QUEST_APP_STORE_OVERLAY_FINISHED, env1_38]);
|
||||
}
|
||||
|
||||
function _fun102834() { // fn#102834, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:8629, offset: 0x0224add3, size: 120 bytes, params: 1, frame: 13
|
||||
var r1;
|
||||
var value;
|
||||
var value2;
|
||||
var setNativeProps;
|
||||
var value3;
|
||||
var error;
|
||||
try {
|
||||
value = environment;
|
||||
value2 = current == null;
|
||||
if (value2) {
|
||||
r1 = value2;
|
||||
} else {
|
||||
setNativeProps = current.setNativeProps;
|
||||
value3 = setNativeProps == null;
|
||||
r1 = value3;
|
||||
}
|
||||
if (!r1) {
|
||||
current.setNativeProps({'paused': true, 'repeat': false, src: {uri: null}});
|
||||
}
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
value = importDefault(1216) /* metro dependency 1216: SentryUtilsNative */;
|
||||
value.captureException(error);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102836(a0) { // fn#102836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:8940, offset: 0x0224aec3, size: 61 bytes, params: 2, frame: 13
|
||||
env0_2(a0);
|
||||
if (a0 !== env0_1.current) {
|
||||
env0_1.current = a0;
|
||||
if (onBuffer != null) {
|
||||
onBuffer(a0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102808() { // fn#102808, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13713:5612, offset: 0x0224a54d, size: 23 bytes, params: 1, frame: 11
|
||||
env2_28.set(false);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,134 @@
|
||||
/* Metro module 9521; source: modules/quests/native/AppStoreOverlayTelemetryManager.tsx; dependencies: [6, 7, 15, 17, 18, 661, 477, 676, 4860, 2] */
|
||||
function _fun74283(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74283, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9707:6, offset: 0x01d88cc3, size: 284 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
||||
const env0_7 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
let value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
|
||||
value = _fun74287(value);
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/AppStoreOverlayTelemetryManager.tsx');
|
||||
exports.default = value;
|
||||
exports.setAppStoreOverlayOpen = function(a0) {
|
||||
env0_8 = a0;
|
||||
};
|
||||
exports.clearAppStoreOverlayOpen = function() {
|
||||
env0_8 = null;
|
||||
env0_9 = null;
|
||||
};
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_74284() { // fn#74284, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9707:173, offset: 0x01d88ddf, 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_74284_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun74287(a0) { // fn#74287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9707:394, offset: 0x01d88e41, size: 72 bytes, params: 2, frame: 15
|
||||
const closure = AppStoreOverlayTelemetryManager;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: 'handleAppStateUpdate', value: value_74290}]);
|
||||
}
|
||||
|
||||
function AppStoreOverlayTelemetryManager(a0) { // fn#74288, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9707:406, offset: 0x01d88e89, size: 152 bytes, params: 2, frame: 20
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env1_2;
|
||||
binding(this, AppStoreOverlayTelemetryManager);
|
||||
const items = [];
|
||||
arraySpread(items, value, 0, items);
|
||||
value = env1_5(AppStoreOverlayTelemetryManager);
|
||||
binding = env1_4;
|
||||
if (_isNativeReflectConstruct_74284()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, items, env1_5(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, items);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
value.actions = {APP_STATE_UPDATE: APP_STATE_UPDATE_74289};
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_74290({state}) { // fn#74290, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9707:858, offset: 0x01d88f21, size: 259 bytes, params: 2, frame: 18
|
||||
var r1;
|
||||
var r0;
|
||||
var value3;
|
||||
const AppStates = (require(676) /* metro dependency 676: ConstantsIOS */).AppStates;
|
||||
var BACKGROUND;
|
||||
var value4;
|
||||
var binding;
|
||||
const value = environment.__proto__;
|
||||
const isAndroid2 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
|
||||
if (isAndroid2) {
|
||||
r0 = !isAndroid2;
|
||||
} else {
|
||||
value3 = env1_8 != null;
|
||||
if (value3) {
|
||||
if (state !== AppStates.ACTIVE) {
|
||||
BACKGROUND = AppStates.BACKGROUND;
|
||||
value4 = false;
|
||||
if (state !== BACKGROUND) {
|
||||
r1 = value4;
|
||||
} else {
|
||||
binding = env1_8;
|
||||
binding.trackOverlayEvent(AnalyticEvents.QUEST_APP_STORE_OVERLAY_BACKGROUNDED);
|
||||
env1_9 = global.Date.now();
|
||||
r1 = value4;
|
||||
}
|
||||
} else if (env1_9 != null) {
|
||||
binding = env1_8;
|
||||
binding.trackOverlayEvent(AnalyticEvents.QUEST_APP_STORE_OVERLAY_RETURNED, global.Date.now() - env1_9);
|
||||
r1 = false;
|
||||
} else {
|
||||
BACKGROUND = AppStates.BACKGROUND;
|
||||
value4 = false;
|
||||
if (state !== BACKGROUND) {
|
||||
r1 = value4;
|
||||
} else {
|
||||
binding = env1_8;
|
||||
binding.trackOverlayEvent(AnalyticEvents.QUEST_APP_STORE_OVERLAY_BACKGROUNDED);
|
||||
env1_9 = global.Date.now();
|
||||
r1 = value4;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
r1 = value3;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
/* Metro module 13564; source: modules/quests/native/BountiesBannerBackground.tsx; dependencies: [31, 27, 4502, 33, 566, 9543, 4589, 2] */
|
||||
function _fun103065(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13754:6, offset: 0x02255ed5, size: 232 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const value2 = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value2.StyleSheet;
|
||||
const env0_4 = value2.View;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
const value3 = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value3.jsx;
|
||||
const env0_7 = value3.jsxs;
|
||||
const env0_8 = [0, 0.6];
|
||||
const env0_9 = ['rgba(0, 0, 0, 0)', 'rgba(0, 0, 0, 0.9)'];
|
||||
value = value.memo(BountiesBannerBackground);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountiesBannerBackground.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function BountiesBannerBackground({children, style, uri}) { // fn#103066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13754:244, offset: 0x02255fbd, size: 244 bytes, params: 2, frame: 22
|
||||
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
|
||||
function() {
|
||||
return AccessibilityStore.useReducedMotion;
|
||||
});
|
||||
const VideoComponent = (require(9543) /* metro dependency 9543: Video */).VideoComponent;
|
||||
return (
|
||||
<View style={style}>
|
||||
<VideoComponent
|
||||
source={{uri: uri}}
|
||||
style={StyleSheet.absoluteFillObject}
|
||||
resizeMode="cover"
|
||||
muted
|
||||
disableFocus
|
||||
paused={useReducedMotion}
|
||||
importantForAccessibility="no-hide-descendants"
|
||||
/>
|
||||
{((Component) => <Component colors={env0_9} locations={env0_8} style={StyleSheet.absoluteFillObject} />)(importDefault(4589) /* metro dependency 4589 */)}
|
||||
{children}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,211 @@
|
||||
/* Metro module 13562; source: modules/quests/native/BountiesCtaHeader.tsx; dependencies: [31, 27, 4502, 13563, 6528, 33, 4501, 697, 1244, 4573, 13557, 6766, 566, 7121, 9529, 6531, 7110, 7120, 13515, 13564, 13565, 1305, 4578, 13561, 9949, 3868, 13551, 10183, 2] */
|
||||
function _fun103039(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13752:6, offset: 0x02254a75, size: 307 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const value2 = require(27) /* metro dependency 27 */;
|
||||
value2.StyleSheet;
|
||||
const env0_4 = value2.View;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
const adContentSeenStore = importDefault(13563) /* metro dependency 13563: AdContentSeenStore */;
|
||||
const questConstantsModule = require(6528) /* metro dependency 6528: QuestConstants */;
|
||||
const env0_7 = questConstantsModule.BountyCarouselEmptyStateReason;
|
||||
const env0_8 = questConstantsModule.DEFAULT_PLACEHOLDER_ENTRYPOINT_BOUNTY_ID;
|
||||
const value4 = require(33) /* metro dependency 33 */;
|
||||
const env0_9 = value4.jsx;
|
||||
const env0_10 = value4.jsxs;
|
||||
const env0_11 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun103046);
|
||||
value = value.memo(BountiesCtaHeader);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountiesCtaHeader.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function BountiesCtaDescription({isEmptyOrCompleted}) { // fn#103040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13752:1628, offset: 0x02254ba8, size: 379 bytes, params: 2, frame: 23
|
||||
const styles = useStyles();
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const r13 = isEmptyOrCompleted ? t.q4wlOE : t.AZGGo1;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const text = <Text variant="text-sm/medium" color="text-subtle">{intl.string(r13)}</Text>;
|
||||
const value3 = intl.format((require(1244) /* metro dependency 1244: indexNative */).t.fjSvsC,
|
||||
{onClick: importDefault(13557) /* metro dependency 13557: openBountiesNuxPromoSheet */});
|
||||
if (isEmptyOrCompleted) {
|
||||
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
|
||||
return (
|
||||
<TextWithIOSLinkWorkaround variant="text-sm/medium">
|
||||
{text}
|
||||
{' '}
|
||||
{value3}
|
||||
</TextWithIOSLinkWorkaround>
|
||||
);
|
||||
} else {
|
||||
return (
|
||||
<View style={styles.description}>
|
||||
{text}
|
||||
{((TextWithIOSLinkWorkaround) => <TextWithIOSLinkWorkaround variant="text-sm/medium">{value3}</TextWithIOSLinkWorkaround>)((require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround)}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function BountiesCtaHeaderInner({bounties, isEmptyOrCompleted, containerRef}) { // fn#103041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13752:2097, offset: 0x02254d23, size: 750 bytes, params: 2, frame: 32
|
||||
isEmptyOrCompleted = !(isEmptyOrCompleted === undefined) && isEmptyOrCompleted;
|
||||
const styles = useStyles();
|
||||
(require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore], function() {
|
||||
return AccessibilityStore.useReducedMotion;
|
||||
});
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([AdContentSeenStore], function() {
|
||||
return bounties.some(_fun103044);
|
||||
}, [bounties]);
|
||||
const value3 = (require(9529) /* metro dependency 9529: useVideoModalPlacementEnabled */).useVideoModalPlacementEnabled('BountiesCtaHeader');
|
||||
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
|
||||
const value4 = env0_3.useCallback(_fun103045, [bounties,
|
||||
value3 ? QuestContent.VIDEO_MODAL_MOBILE : QuestContent.QUEST_HOME_MOBILE_CAROUSEL]);
|
||||
const BountiesBannerBackground = importDefault(13564) /* metro dependency 13564: BountiesBannerBackground */;
|
||||
const bountiesBannerBackgroundProps = {uri: importDefault(13565) /* metro dependency 13565: bounty_bannerMp4 */,
|
||||
style: [styles.header, styles.headerRoundedBottom]};
|
||||
const r8 = value2 && ((NewTag) => <NewTag variant="text-xs/bold" containerStyle={styles.newPill} textStyle={styles.newPillText} />)((require(1305) /* metro dependency 1305: native */).NewTag);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const items4 = [<Text variant="text-lg/semibold" color="white">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.qetVDw)}</Text>];
|
||||
items4[1] = <BountiesCtaDescription isEmptyOrCompleted={isEmptyOrCompleted} />;
|
||||
items4[2] = !isEmptyOrCompleted && ((Button) => <Button grow size="md" variant="primary-overlay" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['1kkbKw'])} onPress={value4} />)((require(4578) /* metro dependency 4578: ButtonNative */).Button);
|
||||
return (
|
||||
<View ref={containerRef} style={styles.container}>
|
||||
<BountiesBannerBackground {...bountiesBannerBackgroundProps}>
|
||||
{r8}
|
||||
<View style={styles.headerTextBox}>
|
||||
{items4}
|
||||
</View>
|
||||
</BountiesBannerBackground>
|
||||
{false}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun103046() { // fn#103046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13752:301, offset: 0x02255154, size: 719 bytes, params: 1, frame: 16
|
||||
const object3 = {};
|
||||
const object6 = {'width': '100%', 'backgroundColor': null, 'borderWidth': 1};
|
||||
let BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object6.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
const BORDER_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_MUTED;
|
||||
object6.borderColor = BORDER_MUTED;
|
||||
object6.borderBottomLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.xxl;
|
||||
object6.borderBottomRightRadius = (importDefault(697) /* metro dependency 697: native */).radii.xxl;
|
||||
object6.overflow = 'hidden';
|
||||
object3.container = object6;
|
||||
BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object3.header = {'width': '100%', 'minHeight': 296, 'justifyContent': 'flex-end', 'overflow': 'hidden',
|
||||
backgroundColor: BACKGROUND_SURFACE_HIGH};
|
||||
const object8 = {};
|
||||
object8.borderBottomLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.xxl;
|
||||
object8.borderBottomRightRadius = (importDefault(697) /* metro dependency 697: native */).radii.xxl;
|
||||
object3.headerRoundedBottom = object8;
|
||||
const object10 = {position: 'absolute'};
|
||||
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object10.top = PX_12;
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object10.left = PX_12;
|
||||
object10.zIndex = 1;
|
||||
const CONTROL_OVERLAY_PRIMARY_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CONTROL_OVERLAY_PRIMARY_BACKGROUND_DEFAULT;
|
||||
object10.backgroundColor = CONTROL_OVERLAY_PRIMARY_BACKGROUND_DEFAULT;
|
||||
object10.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object10.paddingHorizontal = PX_8;
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object10.paddingVertical = PX_4;
|
||||
object3.newPill = object10;
|
||||
const CONTROL_OVERLAY_PRIMARY_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CONTROL_OVERLAY_PRIMARY_TEXT_DEFAULT;
|
||||
object3.newPillText = {color: CONTROL_OVERLAY_PRIMARY_TEXT_DEFAULT};
|
||||
const object12 = {};
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object12.paddingBottom = PX_24;
|
||||
const PX_20 = (importDefault(697) /* metro dependency 697: native */).space.PX_20;
|
||||
object12.paddingHorizontal = PX_20;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object12.gap = PX_8;
|
||||
object3.headerTextBox = object12;
|
||||
object3.description = {marginBottom: 16};
|
||||
const object13 = {'width': '100%', 'overflow': 'hidden'};
|
||||
object13.borderBottomLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.xl;
|
||||
object13.borderBottomRightRadius = (importDefault(697) /* metro dependency 697: native */).radii.xl;
|
||||
object3.bottomSection = object13;
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object3.bottomContent = {'paddingBottom': 24, 'paddingHorizontal': 20, gap: PX_12};
|
||||
const object14 = {'alignSelf': 'stretch', 'height': 160};
|
||||
object14.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
const CONTROL_OVERLAY_SECONDARY_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CONTROL_OVERLAY_SECONDARY_BACKGROUND_DEFAULT;
|
||||
object14.backgroundColor = CONTROL_OVERLAY_SECONDARY_BACKGROUND_DEFAULT;
|
||||
object3.placeholderCards = object14;
|
||||
return object3;
|
||||
}
|
||||
|
||||
function BountiesCtaHeader(a0) { // fn#103047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13752:3476, offset: 0x02255423, size: 406 bytes, params: 2, frame: 25
|
||||
var QuestContentImpressionTrackerNative;
|
||||
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
|
||||
var QUEST_HOME_ENTRYPOINT_MOBILE;
|
||||
const env0_0 = a0;
|
||||
const {containerRef, isInView} = (importDefault(13561) /* metro dependency 13561: useIsCarouselInView */)();
|
||||
const bounties = a0.bounties;
|
||||
const isEmptyOrCompleted = a0.isEmptyOrCompleted;
|
||||
let r4 = isEmptyOrCompleted !== undefined && isEmptyOrCompleted;
|
||||
(require(9949) /* metro dependency 9949: AnalyticsHooks */).useBountyCarouselEmptyStateAnalytics(r4 ? bounties.length === 0 ? BountyCarouselEmptyStateReason.EMPTY : BountyCarouselEmptyStateReason.COMPLETED : null);
|
||||
const ThemeContextProvider = (require(3868) /* metro dependency 3868: native */).ThemeContextProvider;
|
||||
const ThemeTypes = (require(13551) /* metro dependency 13551: ThemeTypes */).ThemeTypes;
|
||||
const DARKER = ThemeTypes.DARKER;
|
||||
if (r4) {
|
||||
r4 = <BountiesCtaHeaderInner {...a0} {...{['containerRef']: containerRef}} />;
|
||||
} else {
|
||||
QuestContentImpressionTrackerNative = (require(10183) /* metro dependency 10183: QuestContentImpressionTrackerNative */).QuestContentImpressionTrackerNative;
|
||||
var questContentImpressionTrackerNativeProps = {adContentId: DEFAULT_PLACEHOLDER_ENTRYPOINT_BOUNTY_ID,
|
||||
adCreativeType: (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType.BOUNTY};
|
||||
QUEST_HOME_ENTRYPOINT_MOBILE = QuestContent.QUEST_HOME_ENTRYPOINT_MOBILE;
|
||||
questContentImpressionTrackerNativeProps.questContent = QUEST_HOME_ENTRYPOINT_MOBILE;
|
||||
questContentImpressionTrackerNativeProps.questContentPosition = 0;
|
||||
questContentImpressionTrackerNativeProps.overrideVisibility = isInView;
|
||||
QUEST_HOME_ENTRYPOINT_MOBILE = QuestContent.QUEST_HOME_ENTRYPOINT_MOBILE;
|
||||
questContentImpressionTrackerNativeProps.sourceQuestContent = QUEST_HOME_ENTRYPOINT_MOBILE;
|
||||
r4 = <QuestContentImpressionTrackerNative {...questContentImpressionTrackerNativeProps}>{children_103048}</QuestContentImpressionTrackerNative>;
|
||||
}
|
||||
return (
|
||||
<ThemeContextProvider theme={DARKER}>
|
||||
{r4}
|
||||
</ThemeContextProvider>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun103043() { // fn#103043, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13752:2286, offset: 0x02255011, size: 29 bytes, params: 1, frame: 11
|
||||
return bounties.some(function(a0) {
|
||||
var BOUNTY = require(dependencyMap[13]).AdCreativeType.BOUNTY;
|
||||
return !AdContentSeenStore.hasSeen(BOUNTY, a0.id);
|
||||
});
|
||||
}
|
||||
|
||||
function _fun103045() { // fn#103045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13752:2527, offset: 0x02255070, size: 228 bytes, params: 1, frame: 20
|
||||
const property = bounties[0];
|
||||
const analyticsActionsModule = require(7110) /* metro dependency 7110: AnalyticsActions */;
|
||||
const trackAdContentClicked = analyticsActionsModule.trackAdContentClicked;
|
||||
const object2 = {};
|
||||
object2.adContentId = DEFAULT_PLACEHOLDER_ENTRYPOINT_BOUNTY_ID;
|
||||
const AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType;
|
||||
const BOUNTY = AdCreativeType.BOUNTY;
|
||||
object2.adCreativeType = BOUNTY;
|
||||
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
|
||||
let QUEST_HOME_ENTRYPOINT_MOBILE = QuestContent.QUEST_HOME_ENTRYPOINT_MOBILE;
|
||||
object2.questContent = QUEST_HOME_ENTRYPOINT_MOBILE;
|
||||
const QuestContentCTA = (require(7120) /* metro dependency 7120: AnalyticsTypes */).QuestContentCTA;
|
||||
const START_BOUNTY = QuestContentCTA.START_BOUNTY;
|
||||
object2.questContentCTA = START_BOUNTY;
|
||||
QUEST_HOME_ENTRYPOINT_MOBILE = QuestContent.QUEST_HOME_ENTRYPOINT_MOBILE;
|
||||
object2.sourceQuestContent = QUEST_HOME_ENTRYPOINT_MOBILE;
|
||||
object2.questContentPosition = 0;
|
||||
Reflect.apply(trackAdContentClicked, analyticsActionsModule, [object2]);
|
||||
(importDefault(13515) /* metro dependency 13515: BountiesModalActionCreators */).showModal({bountyId: property.id,
|
||||
sourceQuestContent: env0_1});
|
||||
}
|
||||
|
||||
function BountiesCtaHeaderChildren() { // fn#103048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13752:4123, owner: BountiesCtaHeader.children, offset: 0x022555b9, size: 50 bytes, params: 1, frame: 14
|
||||
return <BountiesCtaHeaderInner {...env0_0} {...{['containerRef']: containerRef}} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
/* Metro module 13516; source: modules/quests/native/BountiesModal/BountiesModal.tsx; dependencies: [31, 6528, 33, 9530, 13517, 13552, 7717, 10121, 2] */
|
||||
function _fun102687(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13706:6, offset: 0x02244d47, size: 174 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(6528) /* metro dependency 6528: QuestConstants */).QuestsExperimentLocations;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
value = value.memo(BountiesModal);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountiesModal/BountiesModal.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function BountiesModal({bountyId, sourceQuestContent}) { // fn#102688, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13706:186, offset: 0x02244df5, size: 218 bytes, params: 2, frame: 20
|
||||
const BountiesStage1Experiment = (require(9530) /* metro dependency 9530: BountiesStage1Experiment */).BountiesStage1Experiment;
|
||||
const useConfig = BountiesStage1Experiment.useConfig;
|
||||
const VIDEO_MODAL_MOBILE = QuestsExperimentLocations.VIDEO_MODAL_MOBILE;
|
||||
const verticalScrollEnabled = Reflect.apply(useConfig, BountiesStage1Experiment,
|
||||
[{location: VIDEO_MODAL_MOBILE}]).verticalScrollEnabled;
|
||||
const binding = env0_3;
|
||||
const value2 = binding.useMemo(function() {
|
||||
return {['bounty_main']: {fullscreen: true, headerLeft: _fun102690, render: _fun102691}};
|
||||
}, [bountyId, sourceQuestContent, verticalScrollEnabled]);
|
||||
binding.useLayoutEffect(_fun102692, []);
|
||||
const Modal = (require(10121) /* metro dependency 10121: ModalNative */).Modal;
|
||||
return (
|
||||
<Modal
|
||||
hideTitle
|
||||
initialRouteName="bounty_main"
|
||||
screens={value2}
|
||||
viewStyle={{backgroundColor: '#000000'}}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun102689() { // fn#102689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13706:361, offset: 0x02244ecf, size: 50 bytes, params: 1, frame: 4
|
||||
return {['bounty_main']: {fullscreen: true, headerLeft: function() {
|
||||
return null;
|
||||
}, render: render_102691}};
|
||||
}
|
||||
|
||||
function _fun102692() { // fn#102692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13706:508, offset: 0x02244f4d, size: 60 bytes, params: 1, frame: 17
|
||||
const value = environment.__proto__;
|
||||
(require(7717) /* metro dependency 7717: DeviceOrientation */).lockOrientation('PORTRAIT', true);
|
||||
return (require(7717) /* metro dependency 7717: DeviceOrientation */).restoreDefaultOrientation;
|
||||
}
|
||||
|
||||
function render_102691() { // fn#102691, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13706:413, offset: 0x02244f01, size: 76 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__.__proto__;
|
||||
return ((Component) => <Component bountyId={bountyId} sourceQuestContent={sourceQuestContent} />)(importDefault(verticalScrollEnabled ? dependencyMap[4] : dependencyMap[5]));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
/* Metro module 13515; source: modules/quests/native/BountiesModal/BountiesModalActionCreators.tsx; dependencies: [5080, 13516, 1962, 2] */
|
||||
function _fun102684(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102684, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13705:6, offset: 0x02244c2c, size: 134 bytes, params: 8, frame: 18
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object2 = {showModal: showModal_102685, hideModal: hideModal_102686};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountiesModal/BountiesModalActionCreators.tsx');
|
||||
exports.default = object2;
|
||||
exports.BOUNTIES_MODAL_KEY = 'BOUNTIES_MODAL';
|
||||
}
|
||||
|
||||
function showModal_102685({bountyId, sourceQuestContent}) { // fn#102685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13705:118, offset: 0x02244cb2, size: 106 bytes, params: 2, frame: 18
|
||||
const defaultImport = importDefault(dependencyMap[0]);
|
||||
const pushLazy = defaultImport.pushLazy;
|
||||
let value = require(dependencyMap[2]);
|
||||
value = value(dependencyMap[1], dependencyMap.paths);
|
||||
Reflect.apply(pushLazy, defaultImport, [value, {bountyId: bountyId, sourceQuestContent: sourceQuestContent},
|
||||
'BOUNTIES_MODAL']);
|
||||
}
|
||||
|
||||
function hideModal_102686() { // fn#102686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13705:240, offset: 0x02244d1c, size: 43 bytes, params: 1, frame: 12
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey('BOUNTIES_MODAL');
|
||||
}
|
||||
|
||||
@@ -0,0 +1,176 @@
|
||||
/* Metro module 13541; source: modules/quests/native/BountiesModal/BountiesModalAdvertiserCta.tsx; dependencies: [29, 31, 27, 33, 4017, 4501, 697, 13542, 9495, 13519, 4507, 4504, 4583, 9520, 7121, 7120, 6533, 7976, 5475, 4573, 4578, 2] */
|
||||
function _fun102904(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102904, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13731:6, offset: 0x0224e35b, size: 294 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const env0_3 = ['style'];
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(29) /* metro dependency 29 */;
|
||||
const env0_5 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const Pressable = value.Pressable;
|
||||
const env0_6 = value.StyleSheet;
|
||||
const env0_7 = value.View;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_8 = value.jsx;
|
||||
const env0_9 = value.jsxs;
|
||||
const env0_10 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).createAnimatedComponent(Pressable);
|
||||
const env0_11 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun102905);
|
||||
object = {code: 'function BountiesModalAdvertiserCtaTsx1(){const{withTiming,interpolate,visibility,visible,timingStandard,timingFast}=this.__closure;return{transform:[{translateY:withTiming(interpolate(visibility,[0,1],[8,0]),visible?timingStandard:timingFast)}]};}'};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountiesModal/BountiesModalAdvertiserCta.tsx');
|
||||
exports.default = BountiesModalAdvertiserCta;
|
||||
}
|
||||
|
||||
function _fun102905() { // fn#102905, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13731:268, offset: 0x0224e481, size: 435 bytes, params: 1, frame: 18
|
||||
const object7 = {};
|
||||
const object8 = {'position': 'absolute', 'bottom': 0, 'left': 0, 'right': 0, 'paddingHorizontal': null,
|
||||
'paddingBottom': null, 'alignItems': 'center'};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object8.paddingHorizontal = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object8.paddingBottom = PX_16;
|
||||
object7.outerContainer = object8;
|
||||
const object9 = {};
|
||||
const SHADOW_TOP_HIGH = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_TOP_HIGH;
|
||||
copyDataProperties(object9, SHADOW_TOP_HIGH, undefined);
|
||||
object9['alignSelf'] = 'stretch';
|
||||
object9['borderWidth'] = 1;
|
||||
object9['borderColor'] = 'transparent';
|
||||
object9['borderRadius'] = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object9['overflow'] = 'hidden';
|
||||
object7.ctaPressable = object9;
|
||||
const object10 = {'flexDirection': 'row', 'alignItems': 'center'};
|
||||
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object10.paddingLeft = PX_12;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object10.paddingRight = PX_16;
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object10.paddingVertical = PX_12;
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object10.gap = PX_12;
|
||||
object7.cta = object10;
|
||||
const object11 = {'width': 40, 'height': 40, 'backgroundColor': null, 'borderRadius': null, 'overflow': 'hidden'};
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object11.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object11.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
object7.ctaLogoContainer = object11;
|
||||
const object12 = {};
|
||||
copyDataProperties(object12, StyleSheet.absoluteFillObject, 'hidden');
|
||||
object7.ctaLogo = object12;
|
||||
object7.ctaInfo = {'flex': 1, 'justifyContent': 'center', 'gap': 2};
|
||||
return object7;
|
||||
}
|
||||
|
||||
function BountiesModalAdvertiserCta({bounty, visible, sourceQuestContent}) { // fn#102906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13731:1248, offset: 0x0224e634, size: 1117 bytes, params: 2, frame: 31
|
||||
var r0;
|
||||
var View2;
|
||||
var label;
|
||||
var BackgroundBlurView;
|
||||
var items3;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var items4;
|
||||
const env0_4 = undefined;
|
||||
const styles = useStyles();
|
||||
const bountyCtaInfo = (require(13542) /* metro dependency 13542: BountyCtaHelpers */).getBountyCtaInfo(bounty);
|
||||
const r20 = bountyCtaInfo.iconImageUri != null ? (require(9495) /* metro dependency 9495: AssetUtils */).getScaledImageUrl({'assetUrl': null,
|
||||
'width': 40, 'height': 40, assetUrl: bountyCtaInfo.iconImageUri}) : undefined;
|
||||
const useVisibilityTransitionModule = require(13519) /* metro dependency 13519: useVisibilityTransition */;
|
||||
const useVisibilityTransition = useVisibilityTransitionModule.useVisibilityTransition;
|
||||
const object2 = {visible: visible};
|
||||
object2.entranceTiming = (require(4507) /* metro dependency 4507: timingPresets */).timingStandard;
|
||||
object2.exitTiming = (require(4507) /* metro dependency 4507: timingPresets */).timingFast;
|
||||
const {opacityStyle, shouldRender} = Reflect.apply(useVisibilityTransition, useVisibilityTransitionModule,
|
||||
[object2]);
|
||||
const r19 = visible ? 1 : 0;
|
||||
const env0_3 = r19;
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
const closure = BountiesModalAdvertiserCtaB;
|
||||
closure.__closure = {withTiming: (require(4504) /* metro dependency 4504: timing */).withTiming,
|
||||
interpolate: reanimatedRexportModule.interpolate, visibility: r19, visible: visible,
|
||||
timingStandard: (require(4507) /* metro dependency 4507: timingPresets */).timingStandard,
|
||||
timingFast: (require(4507) /* metro dependency 4507: timingPresets */).timingFast};
|
||||
closure.__workletHash = 4075229418021;
|
||||
closure.__initData = env0_12;
|
||||
const value8 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
|
||||
const value9 = reanimatedRexportModule.useSharedValue(0);
|
||||
const value10 = (require(4583) /* metro dependency 4583: ButtonHooksNative */).useButtonPressAnimationProps(value9);
|
||||
const style = value10.style;
|
||||
let binding = env0_4;
|
||||
const value11 = binding(value10, env0_3);
|
||||
binding = env0_5;
|
||||
let useCallback = binding.useCallback;
|
||||
const value12 = Reflect.apply(useCallback, binding, [_fun102908, [bounty.id, bounty.cta, sourceQuestContent]]);
|
||||
const value13 = binding.useCallback(_fun102909, [value12]);
|
||||
useCallback = binding.useCallback;
|
||||
if (shouldRender) {
|
||||
View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
var view2Props = {style: [styles.outerContainer, opacityStyle, value8]};
|
||||
binding = env0_10;
|
||||
var bindingProps = {...value11};
|
||||
bindingProps['onPress'] = value13;
|
||||
bindingProps['accessibilityRole'] = 'button';
|
||||
label = bountyCtaInfo.label;
|
||||
bindingProps['accessibilityLabel'] = label;
|
||||
bindingProps['style'] = [styles.ctaPressable, style];
|
||||
BackgroundBlurView = (require(7976) /* metro dependency 7976: BackgroundBlurViewNative */).BackgroundBlurView;
|
||||
var backgroundBlurViewProps = {blurTheme: 'dark', style: styles.cta, pressed: value9};
|
||||
items3 = [<View style={styles.ctaLogoContainer}>{((Component) => <Component source={{uri: r20}} style={styles.ctaLogo} resizeMode="cover" />)(importDefault(5475) /* metro dependency 5475: FastImage */)}</View>];
|
||||
var viewBindingProps2 = {style: styles.ctaInfo};
|
||||
label = bountyCtaInfo.label;
|
||||
items4 = [<Text lineClamp={2} variant="text-sm/semibold" color="text-default">{label}</Text>];
|
||||
items4[1] = <Text variant="text-xs/medium" color="text-default">{bountyCtaInfo.subtext}</Text>;
|
||||
items3[1] = <View {...viewBindingProps2}>{items4}</View>;
|
||||
items3[2] = <View accessible={false} importantForAccessibility="no-hide-descendants">{((Button) => <Button variant="primary-overlay" text={bountyCtaInfo.buttonLabel} size="sm" onPress={Reflect.apply(useCallback,
|
||||
|
||||
binding, [_fun102910,
|
||||
[value12]])} />)((require(4578) /* metro dependency 4578: ButtonNative */).Button)}</View>;
|
||||
r0 = <View2 {...view2Props}>{((Component) => <Component {...bindingProps}><BackgroundBlurView {...backgroundBlurViewProps}>{items3}</BackgroundBlurView></Component>)(binding)}</View2>;
|
||||
} else {
|
||||
r0 = shouldRender;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function BountiesModalAdvertiserCtaB() { // fn#102907, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13731:1661, owner: BountiesModalAdvertiserCta.b, offset: 0x0224ea91, size: 152 bytes, params: 1, frame: 22
|
||||
let value = environment.__proto__;
|
||||
const timingModule = require(4504) /* metro dependency 4504: timing */;
|
||||
const withTiming = timingModule.withTiming;
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const value3 = reanimatedRexportModule.interpolate(env0_3, [0, 1], [8, 0]);
|
||||
const visibleBinding = visible;
|
||||
value = require(4507) /* metro dependency 4507: timingPresets */;
|
||||
return {transform: [{translateY: Reflect.apply(withTiming, timingModule, [value3,
|
||||
visibleBinding ? value.timingStandard : value.timingFast])}]};
|
||||
}
|
||||
|
||||
function _fun102908(a0) { // fn#102908, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13731:2121, offset: 0x0224eb29, size: 145 bytes, params: 2, frame: 18
|
||||
let value = environment.__proto__;
|
||||
value = require(9520) /* metro dependency 9520: QuestPlatformUtils */;
|
||||
const openAdGameLinkDirectly = value.openAdGameLinkDirectly;
|
||||
const object2 = {};
|
||||
const bountyBinding = bounty;
|
||||
object2.adContentId = bountyBinding.id;
|
||||
const AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType;
|
||||
const BOUNTY = AdCreativeType.BOUNTY;
|
||||
object2.adCreativeType = BOUNTY;
|
||||
object2.cta = bountyBinding.cta;
|
||||
const QuestContentCTA = (require(7120) /* metro dependency 7120: AnalyticsTypes */).QuestContentCTA;
|
||||
const OPEN_GAME_LINK = QuestContentCTA.OPEN_GAME_LINK;
|
||||
Reflect.apply(openAdGameLinkDirectly, value, [object2, {content: a0, ctaContent: OPEN_GAME_LINK,
|
||||
sourceQuestContent: sourceQuestContent}]);
|
||||
}
|
||||
|
||||
function _fun102909() { // fn#102909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13731:2352, offset: 0x0224ebba, size: 51 bytes, params: 1, frame: 12
|
||||
const binding = env0_4;
|
||||
const QuestContent = (require(6533) /* metro dependency 6533: QuestContent */).QuestContent;
|
||||
const VIDEO_MODAL_MOBILE = QuestContent.VIDEO_MODAL_MOBILE;
|
||||
binding(VIDEO_MODAL_MOBILE);
|
||||
}
|
||||
|
||||
function _fun102910() { // fn#102910, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13731:2425, offset: 0x0224ebed, size: 51 bytes, params: 1, frame: 12
|
||||
const binding = env0_4;
|
||||
const QuestContent = (require(6533) /* metro dependency 6533: QuestContent */).QuestContent;
|
||||
const VIDEO_MODAL_MOBILE_FOOTER = QuestContent.VIDEO_MODAL_MOBILE_FOOTER;
|
||||
binding(VIDEO_MODAL_MOBILE_FOOTER);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/* Metro module 13550; source: modules/quests/native/BountiesModal/BountiesModalCloseButton.tsx; dependencies: [31, 33, 4501, 697, 5278, 1244, 5312, 2] */
|
||||
function _fun102933(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13740:6, offset: 0x022500f2, size: 171 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_4 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun102934);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountiesModal/BountiesModalCloseButton.tsx');
|
||||
exports.default = BountiesModalCloseButton;
|
||||
}
|
||||
|
||||
function _fun102934() { // fn#102934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13740:142, offset: 0x0225019d, size: 130 bytes, params: 1, frame: 15
|
||||
const object = {'alignItems': 'center', 'justifyContent': 'center'};
|
||||
const CONTROL_OVERLAY_SECONDARY_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CONTROL_OVERLAY_SECONDARY_BACKGROUND_DEFAULT;
|
||||
object.backgroundColor = CONTROL_OVERLAY_SECONDARY_BACKGROUND_DEFAULT;
|
||||
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
let PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
|
||||
object.width = PX_32;
|
||||
PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
|
||||
object.height = PX_32;
|
||||
return {closeButton: object};
|
||||
}
|
||||
|
||||
function BountiesModalCloseButton({onPress}) { // fn#102935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13740:480, offset: 0x0225021f, size: 209 bytes, params: 2, frame: 21
|
||||
const styles = useStyles();
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const cpT0Cq = (require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq;
|
||||
const XSmallIcon = (require(5312) /* metro dependency 5312: XSmallIcon */).XSmallIcon;
|
||||
const CONTROL_OVERLAY_SECONDARY_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CONTROL_OVERLAY_SECONDARY_TEXT_DEFAULT;
|
||||
return (
|
||||
<PressableOpacity
|
||||
accessibilityLabel={Reflect.apply(string, intl, [cpT0Cq])}
|
||||
accessibilityRole="button"
|
||||
hitSlop={12}
|
||||
onPress={onPress}
|
||||
style={styles.closeButton}
|
||||
>
|
||||
<XSmallIcon size="sm" color={CONTROL_OVERLAY_SECONDARY_TEXT_DEFAULT} />
|
||||
</PressableOpacity>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
/* Metro module 13535; source: modules/quests/native/BountiesModal/BountiesModalConstants.tsx; dependencies: [2] */
|
||||
function _fun102866(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102866, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13725:6, offset: 0x0224c002, size: 84 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountiesModal/BountiesModalConstants.tsx');
|
||||
exports.BOUNTY_REWARD_CLAIM_FAILED_TOAST_DURATION_MS = 10000;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,384 @@
|
||||
/* Metro module 13552; source: modules/quests/native/BountiesModal/BountiesModalContent.tsx; dependencies: [5, 31, 27, 7092, 6528, 661, 482, 33, 1478, 1585, 4501, 697, 566, 10069, 9530, 13533, 13537, 9532, 13534, 13536, 7110, 7121, 7120, 6533, 9522, 13515, 13538, 10183, 13553, 13550, 6618, 13554, 9483, 3868, 2] */
|
||||
function _fun102937(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13742:6, offset: 0x022503b2, size: 338 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 env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const bountyStore = importDefault(7092) /* metro dependency 7092: BountyStore */;
|
||||
const env0_7 = (require(6528) /* metro dependency 6528: QuestConstants */).QuestsExperimentLocations;
|
||||
const env0_8 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const env0_9 = (require(482) /* metro dependency 482: Constants */).ThemeTypes;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_10 = value.jsx;
|
||||
const env0_11 = value.Fragment;
|
||||
const env0_12 = value.jsxs;
|
||||
const env0_14 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun102952);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountiesModal/BountiesModalContent.tsx');
|
||||
exports.default = BountiesModalContent;
|
||||
}
|
||||
|
||||
function BountiesModalContentInner({bounty, sourceQuestContent}) { // fn#102938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13742:648, offset: 0x02250504, size: 1397 bytes, params: 2, frame: 45
|
||||
let env0_4 = undefined;
|
||||
const styles = useStyles();
|
||||
const value2 = useBountiesModalVideoLayout();
|
||||
const env0_3 = value2;
|
||||
const value3 = env0_4.useMemo(_fun102941, [styles.videoWrapper, value2]);
|
||||
const value4 = env0_4.useMemo(_fun102942, [styles.closeButton, value2.top, value2.left, value2.width]);
|
||||
const value5 = env0_4.useMemo(_fun102943, [styles.bottomContainer, styles.bottomContainerFullWidth,
|
||||
styles.bottomContainerNotFullWidth, value2.isFullWidth, value2.left, value2.width]);
|
||||
const value6 = (require(566) /* metro dependency 566: flux */).useStateFromStores([BountyStore], function() {
|
||||
return BountyStore.isBountyCompleted(bounty.id);
|
||||
});
|
||||
const hooksModule = require(10069) /* metro dependency 10069: hooks */;
|
||||
const useFetchVirtualCurrencyBalance = hooksModule.useFetchVirtualCurrencyBalance;
|
||||
const balance = Reflect.apply(useFetchVirtualCurrencyBalance, hooksModule, []).balance;
|
||||
const BountiesStage1Experiment = (require(9530) /* metro dependency 9530: BountiesStage1Experiment */).BountiesStage1Experiment;
|
||||
const useConfig = BountiesStage1Experiment.useConfig;
|
||||
const VIDEO_MODAL_MOBILE = QuestsExperimentLocations.VIDEO_MODAL_MOBILE;
|
||||
const {enabled, loopingEnabled, rewardTimerSeconds} = Reflect.apply(useConfig, BountiesStage1Experiment,
|
||||
[{location: VIDEO_MODAL_MOBILE}]);
|
||||
const BountyVideoEndMode = (require(13533) /* metro dependency 13533: useBountiesModalTiming */).BountyVideoEndMode;
|
||||
const r19 = loopingEnabled ? BountyVideoEndMode.LOOP : BountyVideoEndMode.END_CARD;
|
||||
const r7 = enabled ? 1000 * rewardTimerSeconds : 1000 * bounty.rewardTimerSeconds;
|
||||
env0_4 = r7;
|
||||
const {initialProgress, handleProgress,
|
||||
flushProgress} = (require(13537) /* metro dependency 13537: useBountyVideoProgressPersistence */).useBountyVideoProgressPersistence({bountyId: bounty.id,
|
||||
endMode: r19});
|
||||
const value12 = env0_4.useCallback(env0_3(_fun102946), [bounty.id, sourceQuestContent]);
|
||||
const {handleVideoProgressAnalytics, handleVideoEndAnalytics, handleVideoLoopedAnalytics,
|
||||
handleVideoPausedAnalytics,
|
||||
handleVideoResumedAnalytics} = (require(13536) /* metro dependency 13536: useBountiesModalVideoAnalytics */).useBountiesModalVideoAnalytics({bountyId: bounty.id,
|
||||
sourceQuestContent: sourceQuestContent, rewardDurationMs: r7});
|
||||
const value14 = env0_4.useCallback(function(a0, a1, a2) {
|
||||
handleVideoProgressAnalytics(a0, a1);
|
||||
handleProgress(a0, a1, a2);
|
||||
}, [handleVideoProgressAnalytics, handleProgress]);
|
||||
const useBountiesModalTimingModule = require(13533) /* metro dependency 13533: useBountiesModalTiming */;
|
||||
const useBountiesModalTiming = useBountiesModalTimingModule.useBountiesModalTiming;
|
||||
let duration = initialProgress.duration;
|
||||
duration = duration > 0 ? initialProgress.duration : null;
|
||||
const {isCtaVisible, isEndCardVisible, handleVideoEnd, handleVideoProgress, handleVideoPaused, handleVideoResumed,
|
||||
rewardRemainingSeconds, rewardTotalSeconds, normalizedProgress, maxVideoProgressSeconds,
|
||||
videoDuration} = Reflect.apply(useBountiesModalTiming, useBountiesModalTimingModule, [{endMode: r19,
|
||||
rewardDurationMs: r7, isCompleted: value6, onRewardEarned: value12, onVideoProgress: value14,
|
||||
onVideoEnd: handleVideoEndAnalytics, onVideoLooped: handleVideoLoopedAnalytics,
|
||||
onVideoPaused: handleVideoPausedAnalytics, onVideoResumed: handleVideoResumedAnalytics,
|
||||
initialProgressSec: initialProgress.timestampSec, initialMaxVideoProgressSec: initialProgress.maxTimestampSec,
|
||||
initialVideoDurationSec: duration}]);
|
||||
const value17 = env0_4.useCallback(_fun102948, [bounty.id, maxVideoProgressSeconds, r7, sourceQuestContent,
|
||||
videoDuration, flushProgress]);
|
||||
const value18 = env0_4.useCallback(_fun102949, [bounty.id, maxVideoProgressSeconds, r7, sourceQuestContent,
|
||||
videoDuration, flushProgress]);
|
||||
const jsxRuntimeEnv0_11Binding = jsxRuntimeEnv0_11;
|
||||
const BountyVideo = (require(13538) /* metro dependency 13538: BountyVideo */).BountyVideo;
|
||||
const items2 = [<View style={value3}><BountyVideo isActive bounty={bounty} sourceQuestContent={sourceQuestContent} isCompleted={value6} isCtaVisible={isCtaVisible} isEndCardVisible={isEndCardVisible} isProgressBarVisible={!isEndCardVisible} orbsBalance={balance} handleVideoEnd={handleVideoEnd} handleVideoProgress={handleVideoProgress} handleVideoPaused={handleVideoPaused} handleVideoResumed={handleVideoResumed} rewardRemainingSeconds={rewardRemainingSeconds} rewardTotalSeconds={rewardTotalSeconds} normalizedProgress={normalizedProgress} repeat={loopingEnabled} initialProgress={initialProgress} renderEndCard={renderEndCard} /></View>];
|
||||
items2[1] = <View style={value4}>{((Component) => <Component onPress={value17} />)(importDefault(13550) /* metro dependency 13550: BountiesModalCloseButton */)}</View>;
|
||||
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
|
||||
items2[2] = <SafeAreaPaddingView left={value2.isFullWidth} right={value2.isFullWidth} bottom style={value5} pointerEvents="box-none">{((Component) => <Component bounty={bounty} visible={isEndCardVisible} sourceQuestContent={sourceQuestContent} onClose={value18} />)(importDefault(13554) /* metro dependency 13554: BountiesModalEndedCtaButtons */)}</SafeAreaPaddingView>;
|
||||
return (
|
||||
<>
|
||||
{items2}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun102952() { // fn#102952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13742:300, offset: 0x0225113b, size: 199 bytes, params: 1, frame: 15
|
||||
const object2 = {};
|
||||
object2.videoWrapper = {position: 'absolute'};
|
||||
object2.closeButton = {position: 'absolute'};
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object2.bottomContainer = {'position': 'absolute', 'bottom': null, 'justifyContent': 'flex-end', bottom: PX_24};
|
||||
const object3 = {};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.left = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object3.right = PX_16;
|
||||
object2.bottomContainerFullWidth = object3;
|
||||
const object4 = {};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.paddingLeft = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.paddingRight = PX_16;
|
||||
object2.bottomContainerNotFullWidth = object4;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function BountiesModalContent({bountyId, sourceQuestContent}) { // fn#102953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13742:5002, offset: 0x02251202, size: 280 bytes, params: 2, frame: 22
|
||||
const questHooksModule = require(9483) /* metro dependency 9483: QuestHooks */;
|
||||
const useQuestHomeBounties = questHooksModule.useQuestHomeBounties;
|
||||
const value2 = Reflect.apply(useQuestHomeBounties, questHooksModule, []).questHomeBounties.find(function({id}) {
|
||||
return id === bountyId;
|
||||
});
|
||||
if (value2 == null) {
|
||||
return null;
|
||||
} else {
|
||||
const ThemeContextProvider = (require(3868) /* metro dependency 3868: native */).ThemeContextProvider;
|
||||
return (
|
||||
<ThemeContextProvider theme={ThemeTypes.DARKER}>
|
||||
{((QuestContentImpressionTrackerNative) => <QuestContentImpressionTrackerNative adContentId={value2.id} adCreativeType={(require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType.BOUNTY} questContent={(require(6533) /* metro dependency 6533: QuestContent */).QuestContent.VIDEO_MODAL_MOBILE} sourceQuestContent={sourceQuestContent} overrideVisibility>{children_102955}</QuestContentImpressionTrackerNative>)((require(10183) /* metro dependency 10183: QuestContentImpressionTrackerNative */).QuestContentImpressionTrackerNative)}
|
||||
</ThemeContextProvider>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function useBountiesModalVideoLayout() { // fn#102939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13742:728, owner: BountiesModalContentInner.useBountiesModalVideoLayout, offset: 0x02250a79, size: 141 bytes, params: 1, frame: 17
|
||||
const {width, height} = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)();
|
||||
const value3 = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)();
|
||||
return env1_4.useMemo(_fun102940, [width, height, value3.top, value3.bottom, value3.left, value3.right]);
|
||||
}
|
||||
|
||||
function _fun102941() { // fn#102941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13742:1099, offset: 0x02250be2, size: 69 bytes, params: 1, frame: 4
|
||||
const binding = env0_3;
|
||||
return [styles.videoWrapper, {top: binding.top, left: binding.left, width: binding.width, height: binding.height}];
|
||||
}
|
||||
|
||||
function _fun102942() { // fn#102942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13742:1208, offset: 0x02250c27, size: 146 bytes, params: 1, frame: 17
|
||||
const items2 = [styles.closeButton];
|
||||
const object2 = {};
|
||||
const binding = env0_3;
|
||||
const top = binding.top;
|
||||
let value = environment.__proto__;
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.top = top + PX_8;
|
||||
value = binding.left + binding.width;
|
||||
const PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
|
||||
value -= PX_32;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.left = value - PX_8;
|
||||
items2[1] = object2;
|
||||
return items2;
|
||||
}
|
||||
|
||||
function _fun102943() { // fn#102943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13742:1373, offset: 0x02250cb9, size: 97 bytes, params: 1, frame: 6
|
||||
const isFullWidth = env0_3.isFullWidth;
|
||||
const stylesBinding = styles;
|
||||
const bottomContainer = stylesBinding.bottomContainer;
|
||||
return isFullWidth ? [bottomContainer, stylesBinding.bottomContainerFullWidth] : [bottomContainer,
|
||||
stylesBinding.bottomContainerNotFullWidth, {left: env0_3.left, width: env0_3.width}];
|
||||
}
|
||||
|
||||
function* _fun102946() { // fn#102946, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13742:2133, offset: 0x02250d45, size: 121 bytes, params: 1, frame: 14
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value3;
|
||||
var claimBountyReward;
|
||||
var id;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var error;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
value = binding(env2_2[18]);
|
||||
value.openBountyRewardClaimErrorToast(error);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
value = binding(env2_2[18]);
|
||||
value.openBountyRewardClaimErrorToast(error);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
property = binding2[17];
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
value = binding(env2_2[18]);
|
||||
value.openBountyRewardClaimErrorToast(error);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value3 = binding(property);
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
value = binding(env2_2[18]);
|
||||
value.openBountyRewardClaimErrorToast(error);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
claimBountyReward = value3.claimBountyReward;
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
value = binding(env2_2[18]);
|
||||
value.openBountyRewardClaimErrorToast(error);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
value = binding(env2_2[18]);
|
||||
value.openBountyRewardClaimErrorToast(error);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
id = require.id;
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
value = binding(env2_2[18]);
|
||||
value.openBountyRewardClaimErrorToast(error);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
value = binding(env2_2[18]);
|
||||
value.openBountyRewardClaimErrorToast(error);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value5 = Reflect.apply(claimBountyReward, value3, [id, importDefault]);
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
value = binding(env2_2[18]);
|
||||
value.openBountyRewardClaimErrorToast(error);
|
||||
return undefined;
|
||||
}
|
||||
yield value5;
|
||||
try {
|
||||
value6 = undefined;
|
||||
value7 = false;
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
value = binding(env2_2[18]);
|
||||
value.openBountyRewardClaimErrorToast(error);
|
||||
return undefined;
|
||||
}
|
||||
if (value7) {
|
||||
return value6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102948() { // fn#102948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13742:3138, offset: 0x02250de3, size: 325 bytes, params: 1, frame: 22
|
||||
const value = environment.__proto__;
|
||||
const analyticsActionsModule = require(7110) /* metro dependency 7110: AnalyticsActions */;
|
||||
const trackAdContentEvent = analyticsActionsModule.trackAdContentEvent;
|
||||
const object3 = {};
|
||||
object3.adContentId = bounty.id;
|
||||
const AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType;
|
||||
const BOUNTY = AdCreativeType.BOUNTY;
|
||||
object3.adCreativeType = BOUNTY;
|
||||
const AD_VIDEO_MODAL_CLOSED = AnalyticEvents.AD_VIDEO_MODAL_CLOSED;
|
||||
object3.event = AD_VIDEO_MODAL_CLOSED;
|
||||
const object4 = {};
|
||||
const analyticsTypesModule = require(7120) /* metro dependency 7120: AnalyticsTypes */;
|
||||
const getQuestContentName = analyticsTypesModule.getQuestContentName;
|
||||
const QuestContent = (require(6533) /* metro dependency 6533: QuestContent */).QuestContent;
|
||||
let VIDEO_MODAL_MOBILE = QuestContent.VIDEO_MODAL_MOBILE;
|
||||
object4.content_name = Reflect.apply(getQuestContentName, analyticsTypesModule, [VIDEO_MODAL_MOBILE]);
|
||||
VIDEO_MODAL_MOBILE = QuestContent.VIDEO_MODAL_MOBILE;
|
||||
object4.content_id = VIDEO_MODAL_MOBILE;
|
||||
const videoQuestUtilsModule = require(9522) /* metro dependency 9522: VideoQuestUtils */;
|
||||
object4.video_progress = videoQuestUtilsModule.formatVideoProgressRatio(maxVideoProgressSeconds, videoDuration ?? 0);
|
||||
object4.threshold_met = 1000 * maxVideoProgressSeconds >= env0_4;
|
||||
object4.reward_timer_seconds = env0_4 / 1000;
|
||||
object3.properties = object4;
|
||||
object3.sourceQuestContent = sourceQuestContent;
|
||||
Reflect.apply(trackAdContentEvent, analyticsActionsModule, [object3]);
|
||||
flushProgress();
|
||||
(importDefault(13515) /* metro dependency 13515: BountiesModalActionCreators */).hideModal();
|
||||
}
|
||||
|
||||
function _fun102949() { // fn#102949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13742:3621, offset: 0x02250f28, size: 311 bytes, params: 1, frame: 22
|
||||
const value = environment.__proto__;
|
||||
const analyticsActionsModule = require(7110) /* metro dependency 7110: AnalyticsActions */;
|
||||
const trackAdContentEvent = analyticsActionsModule.trackAdContentEvent;
|
||||
const object3 = {};
|
||||
object3.adContentId = bounty.id;
|
||||
const AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType;
|
||||
const BOUNTY = AdCreativeType.BOUNTY;
|
||||
object3.adCreativeType = BOUNTY;
|
||||
const AD_VIDEO_MODAL_CLOSED = AnalyticEvents.AD_VIDEO_MODAL_CLOSED;
|
||||
object3.event = AD_VIDEO_MODAL_CLOSED;
|
||||
const object4 = {};
|
||||
const analyticsTypesModule = require(7120) /* metro dependency 7120: AnalyticsTypes */;
|
||||
const getQuestContentName = analyticsTypesModule.getQuestContentName;
|
||||
const QuestContent = (require(6533) /* metro dependency 6533: QuestContent */).QuestContent;
|
||||
let VIDEO_MODAL_END_CARD = QuestContent.VIDEO_MODAL_END_CARD;
|
||||
object4.content_name = Reflect.apply(getQuestContentName, analyticsTypesModule, [VIDEO_MODAL_END_CARD]);
|
||||
VIDEO_MODAL_END_CARD = QuestContent.VIDEO_MODAL_END_CARD;
|
||||
object4.content_id = VIDEO_MODAL_END_CARD;
|
||||
const videoQuestUtilsModule = require(9522) /* metro dependency 9522: VideoQuestUtils */;
|
||||
object4.video_progress = videoQuestUtilsModule.formatVideoProgressRatio(maxVideoProgressSeconds, videoDuration ?? 0);
|
||||
object4.threshold_met = true;
|
||||
object4.reward_timer_seconds = env0_4 / 1000;
|
||||
object3.properties = object4;
|
||||
object3.sourceQuestContent = sourceQuestContent;
|
||||
Reflect.apply(trackAdContentEvent, analyticsActionsModule, [object3]);
|
||||
flushProgress();
|
||||
(importDefault(13515) /* metro dependency 13515: BountiesModalActionCreators */).hideModal();
|
||||
}
|
||||
|
||||
function BountiesModalContentInnerRenderEndCard() { // fn#102950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13742:4468, owner: BountiesModalContentInner.renderEndCard, offset: 0x0225105f, size: 151 bytes, params: 1, frame: 17
|
||||
const QuestContentImpressionTrackerNative = (require(10183) /* metro dependency 10183: QuestContentImpressionTrackerNative */).QuestContentImpressionTrackerNative;
|
||||
const id = bounty.id;
|
||||
const AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType;
|
||||
const BOUNTY = AdCreativeType.BOUNTY;
|
||||
const QuestContent = (require(6533) /* metro dependency 6533: QuestContent */).QuestContent;
|
||||
const VIDEO_MODAL_END_CARD = QuestContent.VIDEO_MODAL_END_CARD;
|
||||
return (
|
||||
<QuestContentImpressionTrackerNative
|
||||
adContentId={id}
|
||||
adCreativeType={BOUNTY}
|
||||
questContent={VIDEO_MODAL_END_CARD}
|
||||
sourceQuestContent={sourceQuestContent}
|
||||
overrideVisibility={isEndCardVisible}
|
||||
>
|
||||
{children_102951}
|
||||
</QuestContentImpressionTrackerNative>
|
||||
);
|
||||
}
|
||||
|
||||
function BountiesModalContentChildren() { // fn#102955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13742:5437, owner: BountiesModalContent.children, offset: 0x0225131a, size: 44 bytes, params: 1, frame: 14
|
||||
return <BountiesModalContentInner bounty={env0_2} sourceQuestContent={sourceQuestContent} />;
|
||||
}
|
||||
|
||||
function _fun102940() { // fn#102940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13742:834, offset: 0x02250b06, size: 220 bytes, params: 1, frame: 20
|
||||
var r1;
|
||||
var r4;
|
||||
var r6;
|
||||
var value9;
|
||||
const widthBinding = width;
|
||||
let binding = env0_2;
|
||||
const value3 = widthBinding - binding.left - binding.right;
|
||||
const value5 = height - binding.top - binding.bottom;
|
||||
const value7 = value3 / env2_13;
|
||||
if (value7 > value5) {
|
||||
value9 = value5 * env2_13;
|
||||
r1 = false;
|
||||
r4 = value5;
|
||||
r6 = value9;
|
||||
} else {
|
||||
r1 = true;
|
||||
r4 = value7;
|
||||
r6 = value3;
|
||||
}
|
||||
const object2 = {};
|
||||
let Math = global.Math;
|
||||
const floor = Math.floor;
|
||||
binding = env0_2;
|
||||
object2.top = Reflect.apply(floor, Math, [binding.top + (value5 - r4) / 2]);
|
||||
Math = global.Math;
|
||||
object2.left = Math.floor(binding.left + (value3 - r6) / 2);
|
||||
Math = global.Math;
|
||||
object2.width = Math.floor(r6);
|
||||
Math = global.Math;
|
||||
object2.height = Math.floor(r4);
|
||||
object2.isFullWidth = r1;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function renderEndCardChildren_102951() { // fn#102951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13742:4690, owner: BountiesModalContentInner.renderEndCard.children, offset: 0x022510f6, size: 69 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__.__proto__;
|
||||
return ((Component) => <Component bounty={bounty} visible={isEndCardVisible} sourceQuestContent={sourceQuestContent} />)(importDefault(13553) /* metro dependency 13553: BountiesModalEndCard */);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,879 @@
|
||||
/* Metro module 13517; source: modules/quests/native/BountiesModal/BountiesModalContentScroll.tsx; dependencies: [57, 31, 27, 7092, 6528, 661, 1376, 33, 478, 697, 4501, 4017, 1478, 1585, 13518, 9483, 9530, 566, 13520, 1365, 7013, 491, 7110, 7120, 13521, 9484, 7121, 6533, 9522, 13515, 13522, 13544, 13545, 10183, 13546, 8416, 13550, 3880, 13551, 2] */
|
||||
function _fun102693(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:6, offset: 0x02244f89, size: 790 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const bountyStore = importDefault(7092) /* metro dependency 7092: BountyStore */;
|
||||
let value = require(6528) /* metro dependency 6528: QuestConstants */;
|
||||
const env0_7 = value.DEFAULT_PLACEHOLDER_ENTRYPOINT_BOUNTY_ID;
|
||||
const env0_8 = value.QuestsExperimentLocations;
|
||||
const env0_9 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const env0_10 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_11 = value.jsx;
|
||||
const env0_12 = value.jsxs;
|
||||
const env0_13 = (require(478) /* metro dependency 478: PlatformUtils */).isAndroid();
|
||||
const env0_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object = {code: 'function isScrollEventInBounds_BountiesModalContentScrollTsx1(event){const maxOffset=Math.max(0,event.contentSize.height-event.layoutMeasurement.height);return event.contentOffset.y>=0&&event.contentOffset.y<=maxOffset;}'};
|
||||
const env0_20 = _fun102745();
|
||||
const env0_21 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun102747);
|
||||
object = {code: 'function BountiesModalContentScrollTsx2(){const{scrollY,index,slotHeight,interpolate,FADE_DEADBAND,Extrapolation}=this.__closure;const distance=Math.abs(scrollY.get()-index*slotHeight)/slotHeight;return{opacity:interpolate(distance,[0,FADE_DEADBAND,1],[1,1,0],Extrapolation.CLAMP)};}'};
|
||||
object = {code: 'function BountiesModalContentScrollTsx3(event){const{scrollY,isDraggingSharedValue,isScrollingInBoundsSharedValue,isScrollEventInBounds}=this.__closure;scrollY.set(event.contentOffset.y);if(isDraggingSharedValue.get()){isScrollingInBoundsSharedValue.set(isScrollEventInBounds(event));}}'};
|
||||
object = {code: 'function BountiesModalContentScrollTsx4(event){const{isDraggingSharedValue,isScrollingInBoundsSharedValue,isScrollEventInBounds}=this.__closure;isDraggingSharedValue.set(true);isScrollingInBoundsSharedValue.set(isScrollEventInBounds(event));}'};
|
||||
object = {code: 'function BountiesModalContentScrollTsx5(){const{isDraggingSharedValue,IS_ANDROID,isScrollingInBoundsSharedValue}=this.__closure;isDraggingSharedValue.set(false);if(!IS_ANDROID){isScrollingInBoundsSharedValue.set(false);}}'};
|
||||
object = {code: 'function BountiesModalContentScrollTsx6(event){const{showRecapPullZone,runOnJS,handleRecapMomentumEnd,isScrollingInBoundsSharedValue}=this.__closure;if(showRecapPullZone){runOnJS(handleRecapMomentumEnd)(event);}isScrollingInBoundsSharedValue.set(false);}'};
|
||||
object = {code: 'function BountiesModalContentScrollTsx7(){const{scrollY,slotHeight,lastBountyIndex}=this.__closure;return Math.min(Math.max(Math.round(scrollY.get()/slotHeight),0),lastBountyIndex);}'};
|
||||
object = {code: 'function BountiesModalContentScrollTsx8(next,prev){const{runOnJS,commitSwipe}=this.__closure;if(next!==prev){runOnJS(commitSwipe)(next);}}'};
|
||||
object = {code: 'function BountiesModalContentScrollTsx9(){const{showRecapPullZone,scrollY,lastBountyScrollOffset,RECAP_SNAP_EPSILON}=this.__closure;return showRecapPullZone&&scrollY.get()>=lastBountyScrollOffset-RECAP_SNAP_EPSILON;}'};
|
||||
object = {code: 'function BountiesModalContentScrollTsx10(show,previousShow){const{runOnJS,setShowRecapFooter}=this.__closure;if(show!==previousShow){runOnJS(setShowRecapFooter)(show);}}'};
|
||||
object = {code: 'function BountiesModalContentScrollTsx11(){const{showRecapPullZone,scrollY,lastBountyScrollOffset}=this.__closure;return showRecapPullZone&&scrollY.get()>lastBountyScrollOffset;}'};
|
||||
object = {code: 'function BountiesModalContentScrollTsx12(revealed,previousRevealed){const{runOnJS,setIsRecapPageRevealed}=this.__closure;if(revealed!==previousRevealed){runOnJS(setIsRecapPageRevealed)(revealed);}}'};
|
||||
object = {code: 'function BountiesModalContentScrollTsx13(){const{showRecapPullZone,scrollY,fullRecapScrollOffset,RECAP_SNAP_EPSILON}=this.__closure;return showRecapPullZone&&scrollY.get()>=fullRecapScrollOffset-RECAP_SNAP_EPSILON;}'};
|
||||
object = {code: 'function BountiesModalContentScrollTsx14(onTop,previousOnTop){const{runOnJS,setIsRecapPageOnTop}=this.__closure;if(onTop!==previousOnTop){runOnJS(setIsRecapPageOnTop)(onTop);}}'};
|
||||
object = {code: 'function BountiesModalContentScrollTsx15(){const{getRevealProgress,scrollY,lastBountyScrollOffset,recapRevealHeight}=this.__closure;return getRevealProgress(scrollY.get(),lastBountyScrollOffset,recapRevealHeight);}'};
|
||||
object = {code: 'function BountiesModalContentScrollTsx16(){const{interpolate,recapPullProgress,Extrapolation}=this.__closure;return{opacity:interpolate(recapPullProgress.get(),[0,1],[0,1],Extrapolation.CLAMP)};}'};
|
||||
object = {code: 'function BountiesModalContentScrollTsx17(){const{interpolate,recapPullProgress,FOOTER_FADE_START_PROGRESS,FOOTER_FADE_END_PROGRESS,Extrapolation}=this.__closure;return{opacity:interpolate(recapPullProgress.get(),[FOOTER_FADE_START_PROGRESS,FOOTER_FADE_END_PROGRESS],[1,0],Extrapolation.CLAMP)};}'};
|
||||
object = {code: 'function BountiesModalContentScrollTsx18(){const{scrollY,lastBountyScrollOffset,slotHeight,recapPullProgress,getRevealProgress,recapRevealHeight,interpolate,FOOTER_FADE_START_PROGRESS,FOOTER_FADE_END_PROGRESS,Extrapolation}=this.__closure;const progress=scrollY.get()>=lastBountyScrollOffset-slotHeight/2?recapPullProgress.get():getRevealProgress(scrollY.get(),0,recapRevealHeight);return{opacity:interpolate(progress,[FOOTER_FADE_START_PROGRESS,FOOTER_FADE_END_PROGRESS],[1,0],Extrapolation.CLAMP)};}'};
|
||||
object = {code: 'function BountiesModalContentScrollTsx19(){const{recapPullProgress,FOOTER_FADE_END_PROGRESS}=this.__closure;return recapPullProgress.get()<FOOTER_FADE_END_PROGRESS;}'};
|
||||
object = {code: 'function BountiesModalContentScrollTsx20(pressable,previousPressable){const{runOnJS,setIsCloseButtonPressable}=this.__closure;if(pressable!==previousPressable){runOnJS(setIsCloseButtonPressable)(pressable);}}'};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountiesModal/BountiesModalContentScroll.tsx');
|
||||
exports.default = BountiesModalContentScroll;
|
||||
}
|
||||
|
||||
function ItemSeparator_102694({trailingItem}) { // fn#102694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:391, offset: 0x0224529f, size: 55 bytes, params: 2, frame: 15
|
||||
const value = null;
|
||||
return value == trailingItem ? value : <View style={{height: PX_8}} />;
|
||||
}
|
||||
|
||||
function BountiesScrollVideoItemContainer({index, slotHeight, scrollY, style, children}) { // fn#102696, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:1581, offset: 0x022452d6, size: 244 bytes, params: 2, frame: 23
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
const closure = BountiesScrollVideoItemContainerI;
|
||||
const object2 = {scrollY: scrollY, index: index, slotHeight: slotHeight};
|
||||
object2.interpolate = reanimatedRexportModule.interpolate;
|
||||
object2.FADE_DEADBAND = 0.3;
|
||||
const Extrapolation = reanimatedRexportModule.Extrapolation;
|
||||
object2.Extrapolation = Extrapolation;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 15300322839358;
|
||||
closure.__initData = env0_22;
|
||||
const value2 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
|
||||
const View = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
return (
|
||||
<View style={[style, value2]}>
|
||||
{children}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function BountiesModalContentScrollInner({initialBountyId, sourceQuestContent}) { // fn#102698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:6344, offset: 0x0224545b, size: 4162 bytes, params: 2, frame: 59
|
||||
var object3;
|
||||
const styles = useStyles();
|
||||
const height = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)().height;
|
||||
const env0_3 = height;
|
||||
let binding = env0_4;
|
||||
const value3 = binding.useRef(null);
|
||||
binding = env0_4;
|
||||
const useState = binding.useState;
|
||||
const BOUNTIES_MODAL_BASE_FOOTER_HEIGHT = (require(13518) /* metro dependency 13518: BountiesScrollPromptFooter */).BOUNTIES_MODAL_BASE_FOOTER_HEIGHT;
|
||||
const value5 = env0_3(Reflect.apply(useState, binding, [BOUNTIES_MODAL_BASE_FOOTER_HEIGHT]), 2);
|
||||
let property = value5[0];
|
||||
var env0_4 = value5[1];
|
||||
binding = env0_4;
|
||||
let closure = _fun102699;
|
||||
const value6 = binding.useCallback(closure, []);
|
||||
const value7 = useBountiesScrollVideoLayout({footerHeight: property});
|
||||
const questHooksModule = require(9483) /* metro dependency 9483: QuestHooks */;
|
||||
const useQuestHomeBounties = questHooksModule.useQuestHomeBounties;
|
||||
const env0_6 = Reflect.apply(useQuestHomeBounties, questHooksModule, []).questHomeBounties;
|
||||
property = env0_3(env0_4.useState(_fun102702), 1)[0];
|
||||
const BountiesStage1Experiment = (require(9530) /* metro dependency 9530: BountiesStage1Experiment */).BountiesStage1Experiment;
|
||||
const useConfig = BountiesStage1Experiment.useConfig;
|
||||
const VIDEO_MODAL_MOBILE = QuestsExperimentLocations.VIDEO_MODAL_MOBILE;
|
||||
const {orbAmount, rewardTimerSeconds} = Reflect.apply(useConfig, BountiesStage1Experiment,
|
||||
[{location: VIDEO_MODAL_MOBILE}]);
|
||||
const value10 = (require(566) /* metro dependency 566: flux */).useStateFromStores([BountyStore], _fun102704,
|
||||
[property, orbAmount]);
|
||||
const value11 = (require(566) /* metro dependency 566: flux */).useStateFromStores([BountyStore], _fun102705,
|
||||
[property[0], rewardTimerSeconds]);
|
||||
const height2 = value7.height;
|
||||
const value12 = height2 + PX_8;
|
||||
const value13 = property.length - 1;
|
||||
const env0_13 = value13;
|
||||
const value14 = value10 > 0;
|
||||
const value15 = value13 * value12;
|
||||
const value16 = value15 + height2;
|
||||
const env0_17 = value16;
|
||||
const value17 = env0_4.useMemo(_fun102706, [value16, value15, height2]);
|
||||
const useBountiesRecapScrollModule = require(13520) /* metro dependency 13520: useBountiesRecapScroll */;
|
||||
const useBountiesRecapScroll = useBountiesRecapScrollModule.useBountiesRecapScroll;
|
||||
const handleRecapMomentumEnd = Reflect.apply(useBountiesRecapScroll, useBountiesRecapScrollModule,
|
||||
[{listRef: value3, enabled: value14, offsets: value17}]).handleRecapMomentumEnd;
|
||||
const env0_18 = handleRecapMomentumEnd;
|
||||
const value18 = env0_4.useMemo(_fun102707, [property, value16, value14, value12]);
|
||||
const [property3, property4] = env0_3(env0_4.useState(false), 2);
|
||||
const env0_20 = property4;
|
||||
const [property5, property6] = env0_3(env0_4.useState(false), 2);
|
||||
const [property7, property8] = env0_3(env0_4.useState(true), 2);
|
||||
const env0_23 = property8;
|
||||
const [property9, property10] = env0_3(env0_4.useState(false), 2);
|
||||
const env0_24 = property10;
|
||||
const value28 = env0_3(env0_4.useState(0), 2);
|
||||
const property11 = value28[0];
|
||||
const env0_25 = property11;
|
||||
const env0_26 = value28[1];
|
||||
const value29 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(false);
|
||||
const env0_27 = value29;
|
||||
const value30 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(false);
|
||||
const env0_28 = value30;
|
||||
const value31 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0);
|
||||
const env0_29 = value31;
|
||||
const value33 = env0_3((require(7013) /* metro dependency 7013: useSelectedDismissibleContent */).useSelectedDismissibleContent(property.length > 1 ? [(require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent.BOUNTIES_SWIPE_UP_NUX] : []),
|
||||
2);
|
||||
const property12 = value33[0];
|
||||
const property13 = value33[1];
|
||||
const env0_30 = property13;
|
||||
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
|
||||
const BOUNTIES_SWIPE_UP_NUX = DismissibleContent.BOUNTIES_SWIPE_UP_NUX;
|
||||
const r18 = property11 === 0 && property12 === BOUNTIES_SWIPE_UP_NUX;
|
||||
const env0_31 = r18;
|
||||
let r13 = value11 && r18;
|
||||
const value36 = env0_4.useMemo(_fun102709, []);
|
||||
const env0_32 = value36;
|
||||
const env0_33 = env0_4.useRef(0);
|
||||
const env0_34 = env0_4.useRef(0);
|
||||
env0_4.useEffect(_fun102710, []);
|
||||
const value37 = env0_4.useCallback(_fun102711, [value36]);
|
||||
const env0_35 = value37;
|
||||
const value38 = env0_4.useCallback(_fun102712, [property13, value37, r18]);
|
||||
const env0_36 = value38;
|
||||
const env0_37 = (require(13521) /* metro dependency 13521: useBountiesRecapOrbCount */).useBountiesRecapOrbCount({scrollY: value31,
|
||||
lastBountyScrollOffset: value15, recapRevealHeight: height2, targetOrbAmount: value10, enabled: value14});
|
||||
env0_4.useEffect(_fun102713, [property, property11]);
|
||||
const value39 = env0_4.useCallback(_fun102714, [property, property11, rewardTimerSeconds, sourceQuestContent]);
|
||||
const env0_38 = env0_4.useCallback(_fun102715, [sourceQuestContent]);
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedScrollHandler = reanimatedRexportModule.useAnimatedScrollHandler;
|
||||
object3 = {};
|
||||
closure = onScroll_102716;
|
||||
closure.__closure = {scrollY: value31, isDraggingSharedValue: value30, isScrollingInBoundsSharedValue: value29,
|
||||
isScrollEventInBounds: env0_20};
|
||||
closure.__workletHash = 7942598540397;
|
||||
closure.__initData = env0_23;
|
||||
object3.onScroll = closure;
|
||||
closure = onBeginDrag;
|
||||
closure.__closure = {isDraggingSharedValue: value30, isScrollingInBoundsSharedValue: value29,
|
||||
isScrollEventInBounds: env0_20};
|
||||
closure.__workletHash = 14039038912528;
|
||||
closure.__initData = env0_24;
|
||||
object3.onBeginDrag = closure;
|
||||
closure = onEndDrag;
|
||||
closure.__closure = {isDraggingSharedValue: value30, IS_ANDROID: env0_13, isScrollingInBoundsSharedValue: value29};
|
||||
closure.__workletHash = 9975335138319;
|
||||
closure.__initData = env0_25;
|
||||
object3.onEndDrag = closure;
|
||||
closure = onMomentumEnd;
|
||||
const object2 = {showRecapPullZone: value14};
|
||||
object2.runOnJS = reanimatedRexportModule.runOnJS;
|
||||
object2.handleRecapMomentumEnd = handleRecapMomentumEnd;
|
||||
object2.isScrollingInBoundsSharedValue = value29;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 13684210320337;
|
||||
closure.__initData = env0_26;
|
||||
object3.onMomentumEnd = closure;
|
||||
const value40 = Reflect.apply(useAnimatedScrollHandler, reanimatedRexportModule, [object3]);
|
||||
const moduleValue11 = reanimatedRexportModule;
|
||||
let useAnimatedReaction = moduleValue11.useAnimatedReaction;
|
||||
closure = BountiesModalContentScrollInnerRt;
|
||||
closure.__closure = {scrollY: value31, slotHeight: value12, lastBountyIndex: value13};
|
||||
closure.__workletHash = 14048843158960;
|
||||
closure.__initData = env0_27;
|
||||
const closure2 = BountiesModalContentScrollInnerSt;
|
||||
closure2.__closure = {runOnJS: reanimatedRexportModule.runOnJS, commitSwipe: value38};
|
||||
closure2.__workletHash = 14015091539518;
|
||||
closure2.__initData = env0_28;
|
||||
Reflect.apply(useAnimatedReaction, moduleValue11, [closure, closure2]);
|
||||
const moduleValue12 = reanimatedRexportModule;
|
||||
useAnimatedReaction = moduleValue12.useAnimatedReaction;
|
||||
closure = BountiesModalContentScrollInnerIt;
|
||||
object3 = {showRecapPullZone: value14, scrollY: value31, lastBountyScrollOffset: value15};
|
||||
const RECAP_SNAP_EPSILON = useBountiesRecapScrollModule.RECAP_SNAP_EPSILON;
|
||||
object3.RECAP_SNAP_EPSILON = RECAP_SNAP_EPSILON;
|
||||
closure.__closure = object3;
|
||||
closure.__workletHash = 6584708256992;
|
||||
closure.__initData = env0_29;
|
||||
const closure3 = BountiesModalContentScrollInnerAt;
|
||||
closure3.__closure = {runOnJS: reanimatedRexportModule.runOnJS, setShowRecapFooter: property10};
|
||||
closure3.__workletHash = 10788669301891;
|
||||
closure3.__initData = env0_30;
|
||||
Reflect.apply(useAnimatedReaction, moduleValue12, [closure, closure3]);
|
||||
const moduleValue13 = reanimatedRexportModule;
|
||||
useAnimatedReaction = moduleValue13.useAnimatedReaction;
|
||||
closure = BountiesModalContentScrollInnerCt;
|
||||
closure.__closure = {showRecapPullZone: value14, scrollY: value31, lastBountyScrollOffset: value15};
|
||||
closure.__workletHash = 6186370630693;
|
||||
closure.__initData = env0_31;
|
||||
const closure4 = ut;
|
||||
closure4.__closure = {runOnJS: reanimatedRexportModule.runOnJS, setIsRecapPageRevealed: property4};
|
||||
closure4.__workletHash = 12713474352874;
|
||||
closure4.__initData = env0_32;
|
||||
Reflect.apply(useAnimatedReaction, moduleValue13, [closure, closure4]);
|
||||
const moduleValue14 = reanimatedRexportModule;
|
||||
useAnimatedReaction = moduleValue14.useAnimatedReaction;
|
||||
closure = BountiesModalContentScrollInnerDt;
|
||||
closure.__closure = {showRecapPullZone: value14, scrollY: value31, fullRecapScrollOffset: value16,
|
||||
RECAP_SNAP_EPSILON: RECAP_SNAP_EPSILON};
|
||||
closure.__workletHash = 5669564400667;
|
||||
closure.__initData = env0_33;
|
||||
const closure5 = BountiesModalContentScrollInner_t;
|
||||
closure5.__closure = {runOnJS: reanimatedRexportModule.runOnJS, setIsRecapPageOnTop: property6};
|
||||
closure5.__workletHash = 8102193741774;
|
||||
closure5.__initData = env0_34;
|
||||
Reflect.apply(useAnimatedReaction, moduleValue14, [closure, closure5]);
|
||||
const value41 = env0_4.useMemo(_fun102728, [height2, value14]);
|
||||
const value42 = env0_4.useMemo(_fun102729, [styles.listWrapper, value7]);
|
||||
const value43 = env0_4.useMemo(_fun102730, [value7.top]);
|
||||
const value44 = env0_4.useMemo(_fun102731, [value7.width, value7.height]);
|
||||
const env0_39 = value44;
|
||||
const value45 = env0_4.useMemo(_fun102732, [styles.closeButton, value7.top, value7.left, value7.width]);
|
||||
const value46 = env0_4.useMemo(_fun102733, [property5, styles.recapPage, value7.top, value7.left, value7.width,
|
||||
height]);
|
||||
const moduleValue15 = reanimatedRexportModule;
|
||||
const useDerivedValue = moduleValue15.useDerivedValue;
|
||||
closure = BountiesModalContentScrollInnerGt;
|
||||
const getRevealProgress = useBountiesRecapScrollModule.getRevealProgress;
|
||||
closure.__closure = {getRevealProgress: getRevealProgress, scrollY: value31, lastBountyScrollOffset: value15,
|
||||
recapRevealHeight: height2};
|
||||
closure.__workletHash = 8427964721554;
|
||||
closure.__initData = env0_35;
|
||||
const value47 = Reflect.apply(useDerivedValue, moduleValue15, [closure]);
|
||||
const env0_40 = value47;
|
||||
const moduleValue16 = reanimatedRexportModule;
|
||||
let useAnimatedStyle = moduleValue16.useAnimatedStyle;
|
||||
closure = BountiesModalContentScrollInnerEt;
|
||||
object3 = {interpolate: reanimatedRexportModule.interpolate, recapPullProgress: value47};
|
||||
const Extrapolation = reanimatedRexportModule.Extrapolation;
|
||||
object3.Extrapolation = Extrapolation;
|
||||
closure.__closure = object3;
|
||||
closure.__workletHash = 1497321349449;
|
||||
closure.__initData = env0_36;
|
||||
const value48 = Reflect.apply(useAnimatedStyle, moduleValue16, [closure]);
|
||||
const moduleValue17 = reanimatedRexportModule;
|
||||
useAnimatedStyle = moduleValue17.useAnimatedStyle;
|
||||
closure = Ot;
|
||||
object3 = {interpolate: reanimatedRexportModule.interpolate, recapPullProgress: value47,
|
||||
FOOTER_FADE_START_PROGRESS: env0_17, FOOTER_FADE_END_PROGRESS: env0_18};
|
||||
object3.Extrapolation = Extrapolation;
|
||||
closure.__closure = object3;
|
||||
closure.__workletHash = 3685190194249;
|
||||
closure.__initData = env0_37;
|
||||
const value49 = Reflect.apply(useAnimatedStyle, moduleValue17, [closure]);
|
||||
const moduleValue18 = reanimatedRexportModule;
|
||||
useAnimatedStyle = moduleValue18.useAnimatedStyle;
|
||||
closure = BountiesModalContentScrollInnerFt;
|
||||
object3 = {scrollY: value31, lastBountyScrollOffset: value15, slotHeight: value12, recapPullProgress: value47};
|
||||
object3.getRevealProgress = getRevealProgress;
|
||||
object3.recapRevealHeight = height2;
|
||||
object3.interpolate = reanimatedRexportModule.interpolate;
|
||||
object3.FOOTER_FADE_START_PROGRESS = env0_17;
|
||||
object3.FOOTER_FADE_END_PROGRESS = env0_18;
|
||||
object3.Extrapolation = Extrapolation;
|
||||
closure.__closure = object3;
|
||||
closure.__workletHash = 15092194442650;
|
||||
closure.__initData = env0_38;
|
||||
const value50 = Reflect.apply(useAnimatedStyle, moduleValue18, [closure]);
|
||||
const moduleValue19 = reanimatedRexportModule;
|
||||
useAnimatedReaction = moduleValue19.useAnimatedReaction;
|
||||
closure = BountiesModalContentScrollInnerPt;
|
||||
closure.__closure = {recapPullProgress: value47, FOOTER_FADE_END_PROGRESS: env0_18};
|
||||
closure.__workletHash = 7847901178403;
|
||||
closure.__initData = env0_39;
|
||||
const closure6 = BountiesModalContentScrollInnerRt_102739;
|
||||
closure6.__closure = {runOnJS: reanimatedRexportModule.runOnJS, setIsCloseButtonPressable: property8};
|
||||
closure6.__workletHash = 13255883555182;
|
||||
closure6.__initData = env0_40;
|
||||
Reflect.apply(useAnimatedReaction, moduleValue19, [closure, closure6]);
|
||||
const value51 = env0_4.useCallback(_fun102740, [value12, value31, value44, sourceQuestContent, value7.width,
|
||||
value7.height, property11, property3, property5, value29]);
|
||||
const value52 = env0_4.useMemo(_fun102741, [property11, property3, property5, value7.width, value7.height]);
|
||||
const value53 = env0_4.useCallback(function(a0) {
|
||||
a0.size = height;
|
||||
}, [height2]);
|
||||
if (property.length === 0) {
|
||||
return null;
|
||||
}
|
||||
const r9 = r13 ? ((Component) => <Component />)(importDefault(13544) /* metro dependency 13544: BountiesScrollPromptNuxFooter */) : property9 ? ((BountiesScrollRecapFooter) => <BountiesScrollRecapFooter orbAmount={value10} />)((require(13545) /* metro dependency 13545: BountiesScrollRecapFooter */).BountiesScrollRecapFooter) : null;
|
||||
const items4 = [value14 ? ((View) => <View style={[value46,
|
||||
value48]} pointerEvents={property5 ? 'box-none' : 'none'}>{((QuestContentImpressionTrackerNative) => <QuestContentImpressionTrackerNative adContentId={DEFAULT_PLACEHOLDER_ENTRYPOINT_BOUNTY_ID} adCreativeType={(require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType.BOUNTY} questContent={(require(6533) /* metro dependency 6533: QuestContent */).QuestContent.BOUNTIES_END_INTERSTITIAL} overrideVisibility={property5} sourceQuestContent={sourceQuestContent}>{children_102743}</QuestContentImpressionTrackerNative>)((require(10183) /* metro dependency 10183: QuestContentImpressionTrackerNative */).QuestContentImpressionTrackerNative)}</View>)((importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View) : null];
|
||||
const AnimatedFlashList = (require(8416) /* metro dependency 8416: flashList */).AnimatedFlashList;
|
||||
items4[1] = <View style={value42}><AnimatedFlashList ref={value3} data={property} keyExtractor={function(a0) {
|
||||
return a0.id;
|
||||
}} renderItem={value51} extraData={value52} overrideItemLayout={value53} ItemSeparatorComponent={ItemSeparator_102694} ListFooterComponent={value41} snapToOffsets={value18} snapToEnd={false} estimatedItemSize={value12} decelerationRate={0.85} showsVerticalScrollIndicator={false} drawDistance={value12} onScroll={value40} scrollEventThrottle={16} contentContainerStyle={value43} /></View>;
|
||||
const View3 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
items4[2] = <View3 style={[value45,
|
||||
value49]} pointerEvents={property7 ? 'box-none' : 'none'}>{property7 ? ((Component) => <Component onPress={value39} />)(importDefault(13550) /* metro dependency 13550: BountiesModalCloseButton */) : null}</View3>;
|
||||
const BountiesScrollPromptFooter = importDefault(13518) /* metro dependency 13518: BountiesScrollPromptFooter */;
|
||||
r13 = !r13 ? property9 : r13;
|
||||
items4[3] = <BountiesScrollPromptFooter visible={r13} onContentLayout={value6} zIndex={env0_14} opacityStyle={value50}>{r9}</BountiesScrollPromptFooter>;
|
||||
return (
|
||||
<View style={styles.root}>
|
||||
{items4}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun102745() { // fn#102745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:714, offset: 0x0224739d, size: 48 bytes, params: 1, frame: 2
|
||||
const closure = function(a0) {
|
||||
var Math = global.Math;
|
||||
return a0.contentOffset.y >= 0 && a0.contentOffset.y <= Math.max(0,
|
||||
a0.contentSize.height - a0.layoutMeasurement.height);
|
||||
};
|
||||
closure.__closure = {};
|
||||
closure.__workletHash = 14148486927190;
|
||||
closure.__initData = env0_19;
|
||||
return closure;
|
||||
}
|
||||
|
||||
function _fun102747() { // fn#102747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:1135, offset: 0x02247422, size: 83 bytes, params: 1, frame: 3
|
||||
return {root: {flex: 1}, recapPage: {'position': 'absolute', 'zIndex': 0}, listWrapper: {'position': 'absolute',
|
||||
'zIndex': 1}, closeButton: {position: 'absolute', zIndex: env0_14}};
|
||||
}
|
||||
|
||||
function BountiesModalContentScroll({bountyId, sourceQuestContent}) { // fn#102748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:16725, offset: 0x02247475, size: 119 bytes, params: 2, frame: 19
|
||||
const ThemeContextProvider = (require(3880) /* metro dependency 3880: ThemeContextProvider */).ThemeContextProvider;
|
||||
const ThemeTypes = (require(13551) /* metro dependency 13551: ThemeTypes */).ThemeTypes;
|
||||
const DARKER = ThemeTypes.DARKER;
|
||||
return (
|
||||
<ThemeContextProvider theme={DARKER}>
|
||||
<BountiesModalContentScrollInner initialBountyId={bountyId} sourceQuestContent={sourceQuestContent} />
|
||||
</ThemeContextProvider>
|
||||
);
|
||||
}
|
||||
|
||||
function BountiesScrollVideoItemContainerI() { // fn#102697, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:1714, owner: BountiesScrollVideoItemContainer.i, offset: 0x022453ca, size: 145 bytes, params: 1, frame: 19
|
||||
const Math = global.Math;
|
||||
const abs = Math.abs;
|
||||
const value2 = scrollY.get();
|
||||
const indexBinding = index;
|
||||
const slotHeightBinding = slotHeight;
|
||||
const value = Reflect.apply(abs, Math, [value2 - indexBinding * slotHeightBinding]) / slotHeightBinding;
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const interpolate = reanimatedRexportModule.interpolate;
|
||||
const Extrapolation = reanimatedRexportModule.Extrapolation;
|
||||
const CLAMP = Extrapolation.CLAMP;
|
||||
return {opacity: Reflect.apply(interpolate, reanimatedRexportModule, [value, [0, 0.3, 1], [1, 1, 0], CLAMP])};
|
||||
}
|
||||
|
||||
function _fun102699({nativeEvent}) { // fn#102699, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:6572, offset: 0x0224649d, size: 55 bytes, params: 2, frame: 11
|
||||
const Math = global.Math;
|
||||
env0_4(Math.ceil(nativeEvent.layout.height));
|
||||
}
|
||||
|
||||
function useBountiesScrollVideoLayout({footerHeight}) { // fn#102700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:6634, owner: BountiesModalContentScrollInner.useBountiesScrollVideoLayout, offset: 0x022464d4, size: 149 bytes, params: 2, frame: 18
|
||||
const {width, height} = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)();
|
||||
const value3 = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)();
|
||||
return env1_4.useMemo(_fun102701, [width, height, value3.top, value3.left, value3.right, footerHeight]);
|
||||
}
|
||||
|
||||
function _fun102702() { // fn#102702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:7038, offset: 0x0224661e, size: 86 bytes, params: 1, frame: 17
|
||||
var r0;
|
||||
var items2;
|
||||
var value;
|
||||
const index = questHomeBounties.findIndex(function({id}) {
|
||||
return id === initialBountyId;
|
||||
});
|
||||
if (index <= 0) {
|
||||
r0 = questHomeBounties;
|
||||
} else {
|
||||
questHomeBountiesBinding = questHomeBounties;
|
||||
value = questHomeBountiesBinding.slice(index);
|
||||
items2 = [];
|
||||
value = arraySpread(items2, value, 0, index);
|
||||
arraySpread(items2, questHomeBountiesBinding.slice(0, index), value, index);
|
||||
r0 = items2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun102704() { // fn#102704, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:7296, offset: 0x02246674, size: 37 bytes, params: 1, frame: 12
|
||||
return BountyStore.getCompletedBountyCount(env0_7) * orbAmount;
|
||||
}
|
||||
|
||||
function _fun102705() { // fn#102705, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:7388, offset: 0x02246699, size: 67 bytes, params: 1, frame: 13
|
||||
if (env0_10 == null) {
|
||||
return false;
|
||||
}
|
||||
const bountyVideoProgress = BountyStore.getBountyVideoProgress(env0_10.id);
|
||||
return bountyVideoProgress != null && bountyVideoProgress.maxTimestampSec >= rewardTimerSeconds;
|
||||
}
|
||||
|
||||
function _fun102706() { // fn#102706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:7582, offset: 0x022466dc, size: 34 bytes, params: 1, frame: 3
|
||||
return {lastBounty: env0_16, fullRecap: env0_17, revealHeight: height};
|
||||
}
|
||||
|
||||
function _fun102707() { // fn#102707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:7753, offset: 0x022466fe, size: 49 bytes, params: 1, frame: 12
|
||||
const value2 = env0_7.map(_fun102708);
|
||||
if (result) {
|
||||
value2.push(env0_17);
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
|
||||
function _fun102710() { // fn#102710, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:8460, offset: 0x0224673f, size: 34 bytes, params: 1, frame: 10
|
||||
const binding = env0_33;
|
||||
const Date = global.Date;
|
||||
binding.current = Date.now();
|
||||
}
|
||||
|
||||
function _fun102711(a0) { // fn#102711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:8515, offset: 0x02246761, size: 231 bytes, params: 2, frame: 20
|
||||
var value2;
|
||||
var value3;
|
||||
var value4;
|
||||
var moduleValue;
|
||||
var trackBountyVerticalScroll;
|
||||
var object2;
|
||||
const VerticalScrollingDirection = (require(7120) /* metro dependency 7120: AnalyticsTypes */).VerticalScrollingDirection;
|
||||
const current = env0_34.current;
|
||||
if (a0 !== current) {
|
||||
env0_34.current = a0;
|
||||
value2 = global.Date.now();
|
||||
value3 = value2 - env0_33.current;
|
||||
env0_33.current = value2;
|
||||
value4 = environment.__proto__;
|
||||
moduleValue = require(7110) /* metro dependency 7110: AnalyticsActions */;
|
||||
trackBountyVerticalScroll = moduleValue.trackBountyVerticalScroll;
|
||||
object2 = {};
|
||||
object2.scrollingType = (require(7120) /* metro dependency 7120: AnalyticsTypes */).BountyScrollingType.MANUAL;
|
||||
object2.scrollingDirection = a0 > current ? VerticalScrollingDirection.DOWN : VerticalScrollingDirection.UP;
|
||||
object2.verticalScrollingPosition = a0;
|
||||
object2.scrollSessionId = env0_32;
|
||||
object2.timeWatchedPreScrollMs = value3;
|
||||
Reflect.apply(trackBountyVerticalScroll, moduleValue, [object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102712(a0) { // fn#102712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:8894, offset: 0x02246848, size: 66 bytes, params: 2, frame: 13
|
||||
env0_26(a0);
|
||||
env0_35(a0);
|
||||
let binding = env0_31;
|
||||
if (binding && a0 > 0) {
|
||||
binding = env0_30;
|
||||
value = environment.__proto__;
|
||||
binding(ContentDismissActionType.USER_DISMISS);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102713() { // fn#102713, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:9093, offset: 0x0224688a, size: 99 bytes, params: 1, frame: 16
|
||||
var value;
|
||||
const property = env0_7[env0_25];
|
||||
if (property != null) {
|
||||
value = environment.__proto__;
|
||||
value = require(9484) /* metro dependency 9484: QuestActionCreators */;
|
||||
value.markAdContentSeen((require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType.BOUNTY,
|
||||
[property.id]);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102714() { // fn#102714, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:9255, offset: 0x022468ed, size: 385 bytes, params: 1, frame: 25
|
||||
var maxTimestampSec;
|
||||
var r7;
|
||||
var r10;
|
||||
var value2;
|
||||
var getBountyVideoProgress;
|
||||
var id;
|
||||
var value3;
|
||||
var value4;
|
||||
var value5;
|
||||
var value6;
|
||||
var moduleValue;
|
||||
var trackAdContentEvent;
|
||||
var object3;
|
||||
var object4;
|
||||
var moduleValue2;
|
||||
var getQuestContentName;
|
||||
const QuestContent = (require(6533) /* metro dependency 6533: QuestContent */).QuestContent;
|
||||
var VIDEO_MODAL_MOBILE;
|
||||
const property = env0_7[env0_25];
|
||||
if (property != null) {
|
||||
value2 = environment.__proto__;
|
||||
getBountyVideoProgress = BountyStore.getBountyVideoProgress;
|
||||
id = property.id;
|
||||
value3 = Reflect.apply(getBountyVideoProgress, BountyStore, [id]);
|
||||
value4 = undefined;
|
||||
maxTimestampSec = value3 == null ? value4 : value3.maxTimestampSec;
|
||||
value5 = 0;
|
||||
r7 = maxTimestampSec ?? value5;
|
||||
r10 = (value3 == null ? value4 : value3.duration) ?? value5;
|
||||
value6 = 1000 * rewardTimerSeconds;
|
||||
moduleValue = require(7110) /* metro dependency 7110: AnalyticsActions */;
|
||||
trackAdContentEvent = moduleValue.trackAdContentEvent;
|
||||
object3 = {};
|
||||
id = property.id;
|
||||
object3.adContentId = id;
|
||||
object3.adCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType.BOUNTY;
|
||||
object3.event = AnalyticEvents.AD_VIDEO_MODAL_CLOSED;
|
||||
object4 = {};
|
||||
moduleValue2 = require(7120) /* metro dependency 7120: AnalyticsTypes */;
|
||||
getQuestContentName = moduleValue2.getQuestContentName;
|
||||
VIDEO_MODAL_MOBILE = QuestContent.VIDEO_MODAL_MOBILE;
|
||||
object4.content_name = Reflect.apply(getQuestContentName, moduleValue2, [VIDEO_MODAL_MOBILE]);
|
||||
VIDEO_MODAL_MOBILE = QuestContent.VIDEO_MODAL_MOBILE;
|
||||
object4.content_id = VIDEO_MODAL_MOBILE;
|
||||
object4.video_progress = (require(9522) /* metro dependency 9522: VideoQuestUtils */).formatVideoProgressRatio(r7,
|
||||
|
||||
r10);
|
||||
object4.threshold_met = 1000 * r7 >= value6;
|
||||
object4.reward_timer_seconds = value6 / 1000;
|
||||
object3.properties = object4;
|
||||
object3.sourceQuestContent = sourceQuestContent;
|
||||
Reflect.apply(trackAdContentEvent, moduleValue, [object3]);
|
||||
}
|
||||
const value = environment.__proto__;
|
||||
(importDefault(13515) /* metro dependency 13515: BountiesModalActionCreators */).hideModal();
|
||||
}
|
||||
|
||||
function _fun102715() { // fn#102715, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:9881, offset: 0x02246a6e, size: 216 bytes, params: 1, frame: 20
|
||||
const value = environment.__proto__;
|
||||
const analyticsActionsModule = require(7110) /* metro dependency 7110: AnalyticsActions */;
|
||||
const trackAdContentEvent = analyticsActionsModule.trackAdContentEvent;
|
||||
const object3 = {};
|
||||
object3.adContentId = DEFAULT_PLACEHOLDER_ENTRYPOINT_BOUNTY_ID;
|
||||
const AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType;
|
||||
const BOUNTY = AdCreativeType.BOUNTY;
|
||||
object3.adCreativeType = BOUNTY;
|
||||
const AD_VIDEO_MODAL_CLOSED = AnalyticEvents.AD_VIDEO_MODAL_CLOSED;
|
||||
object3.event = AD_VIDEO_MODAL_CLOSED;
|
||||
const object4 = {};
|
||||
const analyticsTypesModule = require(7120) /* metro dependency 7120: AnalyticsTypes */;
|
||||
const getQuestContentName = analyticsTypesModule.getQuestContentName;
|
||||
const QuestContent = (require(6533) /* metro dependency 6533: QuestContent */).QuestContent;
|
||||
let BOUNTIES_END_INTERSTITIAL = QuestContent.BOUNTIES_END_INTERSTITIAL;
|
||||
object4.content_name = Reflect.apply(getQuestContentName, analyticsTypesModule, [BOUNTIES_END_INTERSTITIAL]);
|
||||
BOUNTIES_END_INTERSTITIAL = QuestContent.BOUNTIES_END_INTERSTITIAL;
|
||||
object4.content_id = BOUNTIES_END_INTERSTITIAL;
|
||||
object3.properties = object4;
|
||||
object3.sourceQuestContent = sourceQuestContent;
|
||||
Reflect.apply(trackAdContentEvent, analyticsActionsModule, [object3]);
|
||||
(importDefault(13515) /* metro dependency 13515: BountiesModalActionCreators */).hideModal();
|
||||
}
|
||||
|
||||
function BountiesModalContentScrollInnerOnScroll(a0) { // fn#102716, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:10272, owner: BountiesModalContentScrollInner.onScroll, offset: 0x02246b46, size: 79 bytes, params: 2, frame: 13
|
||||
let binding = env0_29;
|
||||
let set = binding.set;
|
||||
Reflect.apply(set, binding, [a0.contentOffset.y]);
|
||||
const get = env0_28.get;
|
||||
if (Reflect.apply(get, binding, [])) {
|
||||
binding = env0_27;
|
||||
set = binding.set;
|
||||
value = environment.__proto__;
|
||||
Reflect.apply(set, binding, [env1_20(a0)]);
|
||||
}
|
||||
}
|
||||
|
||||
function BountiesModalContentScrollInnerOnBeginDrag(a0) { // fn#102717, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:10510, owner: BountiesModalContentScrollInner.onBeginDrag, offset: 0x02246b95, size: 52 bytes, params: 2, frame: 13
|
||||
env0_28.set(true);
|
||||
env0_27.set(env1_20(a0));
|
||||
}
|
||||
|
||||
function BountiesModalContentScrollInnerOnEndDrag() { // fn#102718, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:10710, owner: BountiesModalContentScrollInner.onEndDrag, offset: 0x02246bc9, size: 47 bytes, params: 1, frame: 12
|
||||
env0_28.set(false);
|
||||
if (!env1_13) {
|
||||
env0_27.set(false);
|
||||
}
|
||||
}
|
||||
|
||||
function BountiesModalContentScrollInnerOnMomentumEnd(a0) { // fn#102719, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:10903, owner: BountiesModalContentScrollInner.onMomentumEnd, offset: 0x02246bf8, size: 77 bytes, params: 2, frame: 13
|
||||
var value2;
|
||||
var moduleValue;
|
||||
if (result) {
|
||||
value2 = environment.__proto__;
|
||||
moduleValue = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
moduleValue.runOnJS(handleRecapMomentumEnd)(a0);
|
||||
}
|
||||
env0_27.set(false);
|
||||
}
|
||||
|
||||
function BountiesModalContentScrollInnerRt() { // fn#102720, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:11163, owner: BountiesModalContentScrollInner.rt, offset: 0x02246c45, size: 84 bytes, params: 1, frame: 18
|
||||
const Math = global.Math;
|
||||
const min = Math.min;
|
||||
const Math2 = global.Math;
|
||||
const max = Math2.max;
|
||||
const Math3 = global.Math;
|
||||
return Reflect.apply(min, Math, [Reflect.apply(max, Math2, [Math3.round(env0_29.get() / env0_12), 0]), env0_13]);
|
||||
}
|
||||
|
||||
function BountiesModalContentScrollInnerSt(a0, a1) { // fn#102721, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:11329, owner: BountiesModalContentScrollInner.st, offset: 0x02246c99, size: 61 bytes, params: 3, frame: 13
|
||||
var value;
|
||||
if (a0 !== a1) {
|
||||
value = environment.__proto__;
|
||||
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
value.runOnJS(env0_36)(a0);
|
||||
}
|
||||
}
|
||||
|
||||
function BountiesModalContentScrollInnerIt() { // fn#102722, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:11514, owner: BountiesModalContentScrollInner.it, offset: 0x02246cd6, size: 68 bytes, params: 1, frame: 14
|
||||
var r0;
|
||||
var binding;
|
||||
var value2;
|
||||
var value;
|
||||
const resultBinding = result;
|
||||
if (resultBinding) {
|
||||
binding = env0_29;
|
||||
value2 = binding.get();
|
||||
binding = env0_16;
|
||||
value = environment.__proto__;
|
||||
value = value2 >= binding - (require(13520) /* metro dependency 13520: useBountiesRecapScroll */).RECAP_SNAP_EPSILON;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = resultBinding;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function BountiesModalContentScrollInnerAt(a0, a1) { // fn#102723, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:11737, owner: BountiesModalContentScrollInner.at, offset: 0x02246d1a, size: 61 bytes, params: 3, frame: 13
|
||||
var value;
|
||||
if (a0 !== a1) {
|
||||
value = environment.__proto__;
|
||||
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
value.runOnJS(env0_24)(a0);
|
||||
}
|
||||
}
|
||||
|
||||
function BountiesModalContentScrollInnerCt() { // fn#102724, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:11929, owner: BountiesModalContentScrollInner.ct, offset: 0x02246d57, size: 33 bytes, params: 1, frame: 11
|
||||
return result && env0_29.get() > env0_16;
|
||||
}
|
||||
|
||||
function ut(a0, a1) { // fn#102725, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:12076, owner: BountiesModalContentScrollInner.ut, offset: 0x02246d78, size: 61 bytes, params: 3, frame: 13
|
||||
var value;
|
||||
if (a0 !== a1) {
|
||||
value = environment.__proto__;
|
||||
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
value.runOnJS(env0_20)(a0);
|
||||
}
|
||||
}
|
||||
|
||||
function BountiesModalContentScrollInnerDt() { // fn#102726, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:12272, owner: BountiesModalContentScrollInner.dt, offset: 0x02246db5, size: 68 bytes, params: 1, frame: 14
|
||||
var r0;
|
||||
var binding;
|
||||
var value2;
|
||||
var value;
|
||||
const resultBinding = result;
|
||||
if (resultBinding) {
|
||||
binding = env0_29;
|
||||
value2 = binding.get();
|
||||
binding = env0_17;
|
||||
value = environment.__proto__;
|
||||
value = value2 >= binding - (require(13520) /* metro dependency 13520: useBountiesRecapScroll */).RECAP_SNAP_EPSILON;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = resultBinding;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function BountiesModalContentScrollInner_t(a0, a1) { // fn#102727, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:12494, owner: BountiesModalContentScrollInner._t, offset: 0x02246df9, size: 61 bytes, params: 3, frame: 13
|
||||
var value;
|
||||
if (a0 !== a1) {
|
||||
value = environment.__proto__;
|
||||
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
value.runOnJS(env0_22)(a0);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102728() { // fn#102728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:12689, offset: 0x02246e36, size: 43 bytes, params: 1, frame: 14
|
||||
return result ? <BountiesRecapPullZone height={height} /> : null;
|
||||
}
|
||||
|
||||
function _fun102729() { // fn#102729, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:12762, offset: 0x02246e61, size: 82 bytes, params: 1, frame: 4
|
||||
const binding = env0_5;
|
||||
return [styles.listWrapper, {top: 0, left: binding.left, width: binding.width,
|
||||
height: binding.top + binding.height + 97}];
|
||||
}
|
||||
|
||||
function _fun102730() { // fn#102730, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:12875, offset: 0x02246eb3, size: 29 bytes, params: 1, frame: 2
|
||||
return {paddingTop: env0_5.top, paddingBottom: 97};
|
||||
}
|
||||
|
||||
function _fun102731() { // fn#102731, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:12941, offset: 0x02246ed0, size: 29 bytes, params: 1, frame: 3
|
||||
const binding = env0_5;
|
||||
return {width: binding.width, height: binding.height};
|
||||
}
|
||||
|
||||
function _fun102732() { // fn#102732, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:13014, offset: 0x02246eed, size: 146 bytes, params: 1, frame: 17
|
||||
const items2 = [styles.closeButton];
|
||||
const object2 = {};
|
||||
const binding = env0_5;
|
||||
const top = binding.top;
|
||||
let value = environment.__proto__;
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.top = top + PX_8;
|
||||
value = binding.left + binding.width;
|
||||
const PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
|
||||
value -= PX_32;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.left = value - PX_8;
|
||||
items2[1] = object2;
|
||||
return items2;
|
||||
}
|
||||
|
||||
function _fun102733() { // fn#102733, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:13180, offset: 0x02246f7f, size: 113 bytes, params: 1, frame: 14
|
||||
var r2;
|
||||
var r4;
|
||||
const items2 = [styles.recapPage];
|
||||
const object2 = {};
|
||||
let binding = env0_5;
|
||||
object2.top = binding.top;
|
||||
object2.left = binding.left;
|
||||
object2.width = binding.width;
|
||||
const heightBinding = height;
|
||||
object2.height = heightBinding - binding.top;
|
||||
let value = null;
|
||||
if (env0_21) {
|
||||
value = environment.__proto__;
|
||||
binding = env1_14;
|
||||
r2 = {zIndex: binding};
|
||||
r4 = binding;
|
||||
} else {
|
||||
r2 = value;
|
||||
r4 = heightBinding;
|
||||
}
|
||||
copyDataProperties(object2, r2, r4);
|
||||
items2[1] = object2;
|
||||
return items2;
|
||||
}
|
||||
|
||||
function BountiesModalContentScrollInnerGt() { // fn#102734, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:13348, owner: BountiesModalContentScrollInner.gt, offset: 0x02246ff0, size: 64 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__;
|
||||
return (require(13520) /* metro dependency 13520: useBountiesRecapScroll */).getRevealProgress(env0_29.get(),
|
||||
env0_16, height);
|
||||
}
|
||||
|
||||
function BountiesModalContentScrollInnerEt() { // fn#102735, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:13597, owner: BountiesModalContentScrollInner.Et, offset: 0x02247030, size: 106 bytes, params: 1, frame: 20
|
||||
let value = environment.__proto__;
|
||||
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const interpolate = value.interpolate;
|
||||
const value3 = env0_40.get();
|
||||
const Extrapolation = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Extrapolation;
|
||||
const CLAMP = Extrapolation.CLAMP;
|
||||
return {opacity: Reflect.apply(interpolate, value, [value3, [0, 1], [0, 1], CLAMP])};
|
||||
}
|
||||
|
||||
function Ot() { // fn#102736, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:13875, owner: BountiesModalContentScrollInner.Ot, offset: 0x0224709a, size: 119 bytes, params: 1, frame: 22
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const interpolate = reanimatedRexportModule.interpolate;
|
||||
const value3 = env0_40.get();
|
||||
const items2 = [env1_17, env1_18];
|
||||
const Extrapolation = reanimatedRexportModule.Extrapolation;
|
||||
const CLAMP = Extrapolation.CLAMP;
|
||||
return {opacity: Reflect.apply(interpolate, reanimatedRexportModule, [value3, items2, [1, 0], CLAMP])};
|
||||
}
|
||||
|
||||
function BountiesModalContentScrollInnerFt() { // fn#102737, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:14209, owner: BountiesModalContentScrollInner.ft, offset: 0x02247111, size: 214 bytes, params: 1, frame: 22
|
||||
var r6;
|
||||
var value3;
|
||||
var moduleValue;
|
||||
if (env0_29.get() >= env0_16 - env0_12 / 2) {
|
||||
r6 = env0_40.get();
|
||||
} else {
|
||||
value3 = environment.__proto__;
|
||||
moduleValue = require(13520) /* metro dependency 13520: useBountiesRecapScroll */;
|
||||
r6 = moduleValue.getRevealProgress(env0_29.get(), 0, height);
|
||||
}
|
||||
const value = environment.__proto__;
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const interpolate = reanimatedRexportModule.interpolate;
|
||||
const items2 = [env1_17, env1_18];
|
||||
const Extrapolation = reanimatedRexportModule.Extrapolation;
|
||||
const CLAMP = Extrapolation.CLAMP;
|
||||
return {opacity: Reflect.apply(interpolate, reanimatedRexportModule, [r6, items2, [1, 0], CLAMP])};
|
||||
}
|
||||
|
||||
function BountiesModalContentScrollInnerPt() { // fn#102738, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:14740, owner: BountiesModalContentScrollInner.Pt, offset: 0x022471e7, size: 29 bytes, params: 1, frame: 9
|
||||
return env0_40.get() < env1_18;
|
||||
}
|
||||
|
||||
function BountiesModalContentScrollInnerRt_102739(a0, a1) { // fn#102739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:14872, owner: BountiesModalContentScrollInner.Rt, offset: 0x02247204, size: 61 bytes, params: 3, frame: 13
|
||||
var value;
|
||||
if (a0 !== a1) {
|
||||
value = environment.__proto__;
|
||||
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
value.runOnJS(env0_23)(a0);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102740({item, index}) { // fn#102740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:15059, offset: 0x02247241, size: 193 bytes, params: 2, frame: 22
|
||||
const bountiesScrollVideoItemContainerBindingProps = {index: index, slotHeight: env0_12, scrollY: env0_29,
|
||||
style: env0_39};
|
||||
const BountiesScrollVideoItem = (require(13522) /* metro dependency 13522: BountiesScrollVideoItem */).BountiesScrollVideoItem;
|
||||
const sourceQuestContentBinding = sourceQuestContent;
|
||||
const binding = env0_5;
|
||||
return (
|
||||
<BountiesScrollVideoItemContainer {...bountiesScrollVideoItemContainerBindingProps}>
|
||||
<BountiesScrollVideoItem
|
||||
bounty={item}
|
||||
sourceQuestContent={sourceQuestContentBinding}
|
||||
width={binding.width}
|
||||
height={binding.height}
|
||||
isActive={index === env0_25}
|
||||
isRecapPageRevealed={env0_19}
|
||||
isRecapPageOnTop={env0_21}
|
||||
isScrollingInBoundsSharedValue={env0_27}
|
||||
key={item.id}
|
||||
/>
|
||||
</BountiesScrollVideoItemContainer>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun102741() { // fn#102741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:15422, offset: 0x02247302, size: 56 bytes, params: 1, frame: 3
|
||||
const binding = env0_5;
|
||||
return {activeIndex: env0_25, isRecapPageRevealed: env0_19, isRecapPageOnTop: env0_21, width: binding.width,
|
||||
height: binding.height};
|
||||
}
|
||||
|
||||
function BountiesModalContentScrollInnerChildren() { // fn#102743, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:16048, owner: BountiesModalContentScrollInner.children, offset: 0x0224734e, size: 79 bytes, params: 1, frame: 15
|
||||
const BountiesScrollRecapPage = (require(13546) /* metro dependency 13546: BountiesScrollRecapPage */).BountiesScrollRecapPage;
|
||||
return (
|
||||
<BountiesScrollRecapPage
|
||||
orbAmount={env0_37}
|
||||
onClose={env0_38}
|
||||
style={{flex: 1}}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun102701() { // fn#102701, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:6761, offset: 0x02246569, size: 181 bytes, params: 1, frame: 17
|
||||
var r3;
|
||||
var r5;
|
||||
var value8;
|
||||
const widthBinding = width;
|
||||
let binding = env0_3;
|
||||
const value3 = widthBinding - binding.left - binding.right;
|
||||
const value5 = height - binding.top - footerHeight;
|
||||
const value7 = value3 / env2_15;
|
||||
if (value7 > value5) {
|
||||
value8 = value5 * env2_15;
|
||||
r3 = value5;
|
||||
r5 = value8;
|
||||
} else {
|
||||
r3 = value7;
|
||||
r5 = value3;
|
||||
}
|
||||
const object2 = {};
|
||||
binding = env0_3;
|
||||
object2.top = binding.top;
|
||||
let Math = global.Math;
|
||||
object2.left = Math.floor(binding.left + (value3 - r5) / 2);
|
||||
Math = global.Math;
|
||||
object2.width = Math.floor(r5);
|
||||
Math = global.Math;
|
||||
object2.height = Math.floor(r3);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun102708(a0, a1) { // fn#102708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13707:7772, offset: 0x0224672f, size: 16 bytes, params: 3, frame: 2
|
||||
return a1 * env1_12;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,120 @@
|
||||
/* Metro module 13553; source: modules/quests/native/BountiesModal/BountiesModalEndCard.tsx; dependencies: [27, 33, 4501, 697, 13542, 9495, 4017, 4504, 4507, 4589, 9520, 7121, 6533, 7120, 5475, 4573, 2] */
|
||||
function _fun102956(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13743:6, offset: 0x02251346, size: 222 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value.Pressable;
|
||||
const env0_4 = value.StyleSheet;
|
||||
const env0_5 = value.View;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun102957);
|
||||
object = {code: 'function BountiesModalEndCardTsx1(){const{withTiming,visible,timingStandard}=this.__closure;return{opacity:withTiming(visible?1:0,timingStandard)};}'};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountiesModal/BountiesModalEndCard.tsx');
|
||||
exports.default = BountiesModalEndCard;
|
||||
}
|
||||
|
||||
function _fun102957() { // fn#102957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13743:195, offset: 0x02251424, size: 249 bytes, params: 1, frame: 17
|
||||
const object6 = {container: {'position': 'absolute', 'top': 0, 'left': 0, 'right': 0, 'bottom': 0,
|
||||
'justifyContent': 'center', 'alignItems': 'center'}};
|
||||
const object7 = {};
|
||||
copyDataProperties(object7, StyleSheet.absoluteFillObject, undefined);
|
||||
object7['backgroundColor'] = 'rgba(241, 251, 169, 0.15)';
|
||||
object6.backdropTint = object7;
|
||||
const object8 = {};
|
||||
copyDataProperties(object8, StyleSheet.absoluteFillObject, undefined);
|
||||
object6.backdropGradient = object8;
|
||||
const object9 = {'width': 92, 'height': 92, 'borderRadius': null, 'borderWidth': 1};
|
||||
object9.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xl;
|
||||
const BORDER_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_MUTED;
|
||||
object9.borderColor = BORDER_MUTED;
|
||||
object6.image = object9;
|
||||
const object10 = {};
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object10.gap = PX_4;
|
||||
object10.alignItems = 'center';
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object10.marginTop = PX_12;
|
||||
object6.info = object10;
|
||||
object6.ctaContainer = {'position': 'relative', 'alignItems': 'center'};
|
||||
return object6;
|
||||
}
|
||||
|
||||
function BountiesModalEndCard({bounty, visible, sourceQuestContent}) { // fn#102958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13743:849, offset: 0x0225151d, size: 693 bytes, params: 2, frame: 28
|
||||
var r0;
|
||||
var View2;
|
||||
var items2;
|
||||
var label;
|
||||
var items3;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var items4;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const bountyCtaInfo = (require(13542) /* metro dependency 13542: BountyCtaHelpers */).getBountyCtaInfo(bounty);
|
||||
const r17 = bountyCtaInfo.iconImageUri != null ? (require(9495) /* metro dependency 9495: AssetUtils */).getScaledImageUrl({'assetUrl': null,
|
||||
'width': 92, 'height': 92, assetUrl: bountyCtaInfo.iconImageUri}) : undefined;
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
const closure = function() {
|
||||
var object = {};
|
||||
var moduleValue = require(dependencyMap[7]);
|
||||
object.opacity = moduleValue.withTiming(visible ? 1 : 0, require(dependencyMap[8]).timingStandard);
|
||||
return object;
|
||||
};
|
||||
closure.__closure = {withTiming: (require(4504) /* metro dependency 4504: timing */).withTiming, visible: visible,
|
||||
timingStandard: (require(4507) /* metro dependency 4507: timingPresets */).timingStandard};
|
||||
closure.__workletHash = 15062259404736;
|
||||
closure.__initData = env0_9;
|
||||
if (visible) {
|
||||
View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
var view2Props = {style: [styles.container, Reflect.apply(useAnimatedStyle, reanimatedRexportModule,
|
||||
[closure])],
|
||||
pointerEvents: 'box-none'};
|
||||
items2 = [<View style={styles.backdropTint} />];
|
||||
items2[1] = ((Component) => <Component colors={['rgba(0, 0, 0, 0.60)', 'rgba(0, 0, 0, 1)']} locations={[0,
|
||||
0.841]} style={styles.backdropGradient} />)(importDefault(4589) /* metro dependency 4589 */);
|
||||
var pressableBindingProps = {'onPress': null, 'hitSlop': 16, 'accessibilityRole': 'button',
|
||||
onPress: onPress_102960};
|
||||
label = bountyCtaInfo.label;
|
||||
pressableBindingProps.accessibilityLabel = label;
|
||||
pressableBindingProps.style = styles.ctaContainer;
|
||||
items3 = [((Component) => <Component source={{uri: r17}} style={styles.image} />)(importDefault(5475) /* metro dependency 5475: FastImage */)];
|
||||
var viewBindingProps = {style: styles.info};
|
||||
label = bountyCtaInfo.label;
|
||||
value = <Text variant="text-md/semibold" color="text-strong">{label}</Text>;
|
||||
items4 = [value];
|
||||
items4[1] = <Text variant="text-sm/medium" color="text-default">{bountyCtaInfo.subtext}</Text>;
|
||||
items3[1] = <View {...viewBindingProps}>{items4}</View>;
|
||||
items2[2] = <Pressable {...pressableBindingProps}>{items3}</Pressable>;
|
||||
value = <View2 {...view2Props}>{items2}</View2>;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = visible;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function BountiesModalEndCardOnPress() { // fn#102960, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13743:1533, owner: BountiesModalEndCard.onPress, offset: 0x02251827, size: 166 bytes, params: 1, frame: 18
|
||||
let value = environment.__proto__;
|
||||
value = require(9520) /* metro dependency 9520: QuestPlatformUtils */;
|
||||
const openAdGameLinkDirectly = value.openAdGameLinkDirectly;
|
||||
const object3 = {};
|
||||
const bountyBinding = bounty;
|
||||
object3.adContentId = bountyBinding.id;
|
||||
const AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType;
|
||||
const BOUNTY = AdCreativeType.BOUNTY;
|
||||
object3.adCreativeType = BOUNTY;
|
||||
object3.cta = bountyBinding.cta;
|
||||
const object4 = {};
|
||||
const QuestContent = (require(6533) /* metro dependency 6533: QuestContent */).QuestContent;
|
||||
const VIDEO_MODAL_ICON_END_CARD = QuestContent.VIDEO_MODAL_ICON_END_CARD;
|
||||
object4.content = VIDEO_MODAL_ICON_END_CARD;
|
||||
const QuestContentCTA = (require(7120) /* metro dependency 7120: AnalyticsTypes */).QuestContentCTA;
|
||||
const OPEN_GAME_LINK = QuestContentCTA.OPEN_GAME_LINK;
|
||||
object4.ctaContent = OPEN_GAME_LINK;
|
||||
object4.sourceQuestContent = sourceQuestContent;
|
||||
Reflect.apply(openAdGameLinkDirectly, value, [object3, object4]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
/* Metro module 13554; source: modules/quests/native/BountiesModal/BountiesModalEndedCtaButtons.tsx; dependencies: [33, 4501, 697, 4017, 4504, 4507, 13542, 4578, 9520, 7121, 6533, 7120, 1244, 2] */
|
||||
function _fun102961(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13744:6, offset: 0x022518cd, size: 181 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_3 = value.jsx;
|
||||
const env0_4 = value.jsxs;
|
||||
const env0_5 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(function() {
|
||||
var object2 = {};
|
||||
object2.gap = importDefault(dependencyMap[2]).space.PX_8;
|
||||
return {container: object2};
|
||||
});
|
||||
object = {code: 'function BountiesModalEndedCtaButtonsTsx1(){const{withTiming,visible,timingStandard}=this.__closure;return{opacity:withTiming(visible?1:0,timingStandard)};}'};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountiesModal/BountiesModalEndedCtaButtons.tsx');
|
||||
exports.default = BountiesModalEndedCtaButtons;
|
||||
}
|
||||
|
||||
function BountiesModalEndedCtaButtons({bounty, visible, sourceQuestContent, onClose}) { // fn#102963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13744:366, offset: 0x022519b3, size: 436 bytes, params: 2, frame: 24
|
||||
var r0;
|
||||
var View;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
var items2;
|
||||
var intl;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
const closure = function() {
|
||||
var object = {};
|
||||
var moduleValue = require(dependencyMap[4]);
|
||||
object.opacity = moduleValue.withTiming(visible ? 1 : 0, require(dependencyMap[5]).timingStandard);
|
||||
return object;
|
||||
};
|
||||
const object2 = {};
|
||||
object2.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
|
||||
object2.visible = visible;
|
||||
object2.timingStandard = (require(4507) /* metro dependency 4507: timingPresets */).timingStandard;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 11417131685254;
|
||||
closure.__initData = env0_6;
|
||||
if (visible) {
|
||||
View = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
var viewProps = {style: [styles.container, Reflect.apply(useAnimatedStyle, reanimatedRexportModule,
|
||||
[closure])]};
|
||||
value = <Button variant="primary-overlay" text={(require(13542) /* metro dependency 13542: BountyCtaHelpers */).getBountyCtaInfo(bounty).buttonLabel} size="lg" onPress={onPress_102965} />;
|
||||
items2 = [value];
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
items2[1] = <Button variant="secondary-overlay" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)} size="lg" onPress={onClose} />;
|
||||
value = <View {...viewProps}>{items2}</View>;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = visible;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function BountiesModalEndedCtaButtonsOnPress() { // fn#102965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13744:874, owner: BountiesModalEndedCtaButtons.onPress, offset: 0x02251bbc, size: 166 bytes, params: 1, frame: 18
|
||||
let value = environment.__proto__;
|
||||
value = require(9520) /* metro dependency 9520: QuestPlatformUtils */;
|
||||
const openAdGameLinkDirectly = value.openAdGameLinkDirectly;
|
||||
const object3 = {};
|
||||
const bountyBinding = bounty;
|
||||
object3.adContentId = bountyBinding.id;
|
||||
const AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType;
|
||||
const BOUNTY = AdCreativeType.BOUNTY;
|
||||
object3.adCreativeType = BOUNTY;
|
||||
object3.cta = bountyBinding.cta;
|
||||
const object4 = {};
|
||||
const QuestContent = (require(6533) /* metro dependency 6533: QuestContent */).QuestContent;
|
||||
const VIDEO_MODAL_END_CARD = QuestContent.VIDEO_MODAL_END_CARD;
|
||||
object4.content = VIDEO_MODAL_END_CARD;
|
||||
const QuestContentCTA = (require(7120) /* metro dependency 7120: AnalyticsTypes */).QuestContentCTA;
|
||||
const OPEN_GAME_LINK = QuestContentCTA.OPEN_GAME_LINK;
|
||||
object4.ctaContent = OPEN_GAME_LINK;
|
||||
object4.sourceQuestContent = sourceQuestContent;
|
||||
Reflect.apply(openAdGameLinkDirectly, value, [object3, object4]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,118 @@
|
||||
/* Metro module 13539; source: modules/quests/native/BountiesModal/BountiesModalProgress.tsx; dependencies: [57, 31, 27, 33, 4501, 697, 4017, 4504, 4507, 2] */
|
||||
function _fun102892(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13729:6, offset: 0x0224d3f3, size: 269 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value.StyleSheet;
|
||||
const env0_6 = value.View;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.jsxs;
|
||||
const env0_9 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun102893);
|
||||
object = {code: 'function BountiesModalProgressTsx1(){const{withTiming,visible,timingFast}=this.__closure;return{opacity:withTiming(visible?1:0,timingFast)};}'};
|
||||
object = {code: 'function BountiesModalProgressTsx2(){const{withTiming,progress,shouldSkipAnimation,timingNone,timingFast}=this.__closure;return{width:withTiming(progress*100+"%",shouldSkipAnimation?timingNone:timingFast,\'animate-always\')};}'};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountiesModal/BountiesModalProgress.tsx');
|
||||
exports.default = BountiesModalProgress;
|
||||
exports.PROGRESS_BAR_HEIGHT = 4;
|
||||
}
|
||||
|
||||
function _fun102893() { // fn#102893, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13729:201, offset: 0x0224d500, size: 331 bytes, params: 1, frame: 17
|
||||
const object2 = {};
|
||||
object2.progressContainer = {height: 4};
|
||||
const object6 = {};
|
||||
copyDataProperties(object6, StyleSheet.absoluteFillObject, undefined);
|
||||
object6['borderRadius'] = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
const CONTROL_OVERLAY_SECONDARY_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CONTROL_OVERLAY_SECONDARY_BACKGROUND_DEFAULT;
|
||||
object6['backgroundColor'] = CONTROL_OVERLAY_SECONDARY_BACKGROUND_DEFAULT;
|
||||
object6['opacity'] = 0.54;
|
||||
object2.progressTrack = object6;
|
||||
const object7 = {'position': 'absolute', 'height': '100%', 'left': 0, 'bottom': 0, 'borderRadius': null,
|
||||
'backgroundColor': null, 'shadowOffset': null, 'shadowRadius': 8, 'shadowOpacity': 1, 'elevation': 4,
|
||||
'shadowColor': '#30C773'};
|
||||
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
let GREEN_300 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GREEN_300;
|
||||
object7.backgroundColor = GREEN_300;
|
||||
object7.shadowOffset = {'width': 0, 'height': 0};
|
||||
object2.progressBar = object7;
|
||||
const object8 = {'position': 'absolute', 'height': '100%', 'left': 0, 'bottom': 0, 'borderRadius': null,
|
||||
'backgroundColor': null, 'shadowOffset': null, 'shadowRadius': 12, 'shadowOpacity': 1, 'elevation': 8};
|
||||
object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
GREEN_300 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GREEN_300;
|
||||
object8.backgroundColor = GREEN_300;
|
||||
object8.shadowOffset = {'width': 0, 'height': 0};
|
||||
GREEN_300 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GREEN_300;
|
||||
object8.shadowColor = GREEN_300;
|
||||
object2.progressBarGlowLayer = object8;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function BountiesModalProgress({progress, visible, style}) { // fn#102894, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13729:1323, offset: 0x0224d64b, size: 575 bytes, params: 2, frame: 26
|
||||
const styles = useStyles();
|
||||
const binding = env0_4;
|
||||
let useState = binding.useState;
|
||||
const value2 = Reflect.apply(useState, binding, [false]);
|
||||
const binding2 = env0_3;
|
||||
const value3 = binding2(value2, 2);
|
||||
const property = value3[0];
|
||||
const property2 = value3[1];
|
||||
useState = binding.useState;
|
||||
const value4 = binding2(Reflect.apply(useState, binding, [progress]), 2);
|
||||
const property3 = value4[0];
|
||||
if (progress !== property3) {
|
||||
value4[1](progress);
|
||||
property2(progress < property3);
|
||||
}
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
let useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
let closure = function() {
|
||||
var object = {};
|
||||
var moduleValue = require(dependencyMap[7]);
|
||||
object.opacity = moduleValue.withTiming(visible ? 1 : 0, require(dependencyMap[8]).timingFast);
|
||||
return object;
|
||||
};
|
||||
const object2 = {};
|
||||
object2.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
|
||||
object2.visible = visible;
|
||||
object2.timingFast = (require(4507) /* metro dependency 4507: timingPresets */).timingFast;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 5158131592262;
|
||||
closure.__initData = env0_10;
|
||||
const value5 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
|
||||
const moduleValue2 = reanimatedRexportModule;
|
||||
useAnimatedStyle = moduleValue2.useAnimatedStyle;
|
||||
closure = BountiesModalProgressB;
|
||||
closure.__closure = {withTiming: (require(4504) /* metro dependency 4504: timing */).withTiming, progress: progress,
|
||||
shouldSkipAnimation: property,
|
||||
timingNone: (require(4507) /* metro dependency 4507: timingPresets */).timingNone,
|
||||
timingFast: (require(4507) /* metro dependency 4507: timingPresets */).timingFast};
|
||||
closure.__workletHash = 15586067343237;
|
||||
closure.__initData = env0_11;
|
||||
const value6 = Reflect.apply(useAnimatedStyle, moduleValue2, [closure]);
|
||||
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
const items3 = [styles.progressContainer, style, value5];
|
||||
const items2 = [<View style={styles.progressTrack} />];
|
||||
const View3 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
items2[1] = <View3 style={[styles.progressBarGlowLayer, value6]} />;
|
||||
const View4 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
items2[2] = <View4 style={[styles.progressBar, value6]} />;
|
||||
return (
|
||||
<View2 style={items3}>
|
||||
{items2}
|
||||
</View2>
|
||||
);
|
||||
}
|
||||
|
||||
function BountiesModalProgressB() { // fn#102896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13729:1759, owner: BountiesModalProgress.B, offset: 0x0224d8df, size: 114 bytes, params: 1, frame: 19
|
||||
let value = environment.__proto__;
|
||||
const timingModule = require(4504) /* metro dependency 4504: timing */;
|
||||
const withTiming = timingModule.withTiming;
|
||||
const value3 = 100 * progress;
|
||||
const binding = env0_2;
|
||||
value = require(4507) /* metro dependency 4507: timingPresets */;
|
||||
return {width: Reflect.apply(withTiming, timingModule, [value3 + '%', binding ? value.timingNone : value.timingFast,
|
||||
'animate-always'])};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,210 @@
|
||||
/* Metro module 13540; source: modules/quests/native/BountiesModal/BountiesModalTimer.tsx; dependencies: [31, 27, 33, 4582, 4017, 7744, 4501, 697, 477, 4504, 4573, 8707, 2] */
|
||||
function _fun102897(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13730:6, offset: 0x0224d951, size: 817 bytes, params: 8, frame: 26
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const value = undefined;
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const value2 = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value2.jsx;
|
||||
const env0_6 = value2.jsxs;
|
||||
const SMALL_BUTTON_HEIGHT = (require(4582) /* metro dependency 4582: ButtonConstantsNative */).SMALL_BUTTON_HEIGHT;
|
||||
const value3 = (SMALL_BUTTON_HEIGHT - 4) / 2;
|
||||
const Math = global.Math;
|
||||
const PI = Math.PI;
|
||||
const env0_8 = 2 * PI * value3;
|
||||
const Easing = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Easing;
|
||||
const env0_9 = Easing.bezier(0.15, 0.21, 0.58, 1);
|
||||
const env0_10 = Easing.bezier(0.61, 0, 0.58, 1);
|
||||
const env0_11 = Easing.bezier(0.42, 0, 0.58, 1);
|
||||
const reanimatedRexport = importDefault(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const createAnimatedComponent = reanimatedRexport.createAnimatedComponent;
|
||||
const Circle = (require(7744) /* metro dependency 7744 */).Circle;
|
||||
const env0_12 = Reflect.apply(createAnimatedComponent, reanimatedRexport, [Circle]);
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {'alignItems': 'center', 'justifyContent': 'center'};
|
||||
const CONTROL_OVERLAY_SECONDARY_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CONTROL_OVERLAY_SECONDARY_BACKGROUND_DEFAULT;
|
||||
object4.backgroundColor = CONTROL_OVERLAY_SECONDARY_BACKGROUND_DEFAULT;
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
object4.width = SMALL_BUTTON_HEIGHT;
|
||||
object4.height = SMALL_BUTTON_HEIGHT;
|
||||
object3.progress = object4;
|
||||
object3.ring = {position: 'absolute', transform: [{rotate: '-90deg'}]};
|
||||
const BACKGROUND_SURFACE_HIGHEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGHEST;
|
||||
object3.trackPath = {color: BACKGROUND_SURFACE_HIGHEST};
|
||||
const object5 = {};
|
||||
const CONTROL_OVERLAY_SECONDARY_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CONTROL_OVERLAY_SECONDARY_TEXT_DEFAULT;
|
||||
object5.color = CONTROL_OVERLAY_SECONDARY_TEXT_DEFAULT;
|
||||
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
object5.lineHeight = platformUtilsModule.isAndroid() ? 14 : value;
|
||||
object3.countdownText = object5;
|
||||
object3.checkmarkLayer = {'position': 'absolute', 'inset': 6, 'alignItems': 'center', 'justifyContent': 'center'};
|
||||
const object8 = {'width': 20, 'height': 20, 'backgroundColor': '#2ECC71'};
|
||||
object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
object3.checkmarkBackground = object8;
|
||||
object3.checkmarkIcon = {'width': 20, 'height': 20};
|
||||
const env0_13 = Reflect.apply(createStyles, createStylesModule, [object3]);
|
||||
object3 = {code: 'function BountiesModalTimerTsx1(){const{PROGRESS_CIRCUMFERENCE,animatedProgress}=this.__closure;return{strokeDashoffset:PROGRESS_CIRCUMFERENCE-PROGRESS_CIRCUMFERENCE*animatedProgress.get()};}'};
|
||||
object3 = {code: 'function BountiesModalTimerTsx2(){const{checkmarkBackgroundScale}=this.__closure;return{transform:[{scale:checkmarkBackgroundScale.get()}]};}'};
|
||||
object3 = {code: 'function BountiesModalTimerTsx3(){const{checkmarkScale}=this.__closure;return{transform:[{scale:checkmarkScale.get()}]};}'};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountiesModal/BountiesModalTimer.tsx');
|
||||
exports.default = BountiesModalTimer;
|
||||
return value;
|
||||
}
|
||||
|
||||
function BountiesModalTimer({isCompleted, totalSeconds, remainingSeconds}) { // fn#102898, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13730:1577, offset: 0x0224dc82, size: 1169 bytes, params: 2, frame: 34
|
||||
const styles = useStyles();
|
||||
let r6 = isCompleted || remainingSeconds <= 0;
|
||||
const Math = global.Math;
|
||||
const max = Math.max;
|
||||
const Math2 = global.Math;
|
||||
const value5 = Reflect.apply(max, Math, [1, Math2.ceil(remainingSeconds)]);
|
||||
const r1 = isCompleted ? 1 : totalSeconds > 0 ? 1 - remainingSeconds / totalSeconds : 0;
|
||||
const value8 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(r1);
|
||||
const value9 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0);
|
||||
const env0_3 = value9;
|
||||
const value10 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0);
|
||||
let binding = env0_3;
|
||||
binding.useEffect(_fun102899, [value8, r1]);
|
||||
const env0_5 = binding.useRef(false);
|
||||
binding.useEffect(_fun102900, [r6, value9, value10]);
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedProps = reanimatedRexportModule.useAnimatedProps;
|
||||
let closure = BountiesModalTimerU;
|
||||
binding = env0_8;
|
||||
closure.__closure = {PROGRESS_CIRCUMFERENCE: binding, animatedProgress: value8};
|
||||
closure.__workletHash = 12964700773124;
|
||||
closure.__initData = env0_14;
|
||||
const value11 = Reflect.apply(useAnimatedProps, reanimatedRexportModule, [closure]);
|
||||
const moduleValue5 = reanimatedRexportModule;
|
||||
let useAnimatedStyle = moduleValue5.useAnimatedStyle;
|
||||
closure = BountiesModalTimerX;
|
||||
closure.__closure = {checkmarkBackgroundScale: value9};
|
||||
closure.__workletHash = 10834015407160;
|
||||
closure.__initData = env0_15;
|
||||
const value12 = Reflect.apply(useAnimatedStyle, moduleValue5, [closure]);
|
||||
const moduleValue6 = reanimatedRexportModule;
|
||||
useAnimatedStyle = moduleValue6.useAnimatedStyle;
|
||||
closure = BountiesModalTimerG;
|
||||
closure.__closure = {checkmarkScale: value10};
|
||||
closure.__workletHash = 7510845920441;
|
||||
closure.__initData = env0_16;
|
||||
const value13 = Reflect.apply(useAnimatedStyle, moduleValue6, [closure]);
|
||||
const defaultImport = importDefault(7744) /* metro dependency 7744 */;
|
||||
const object = {};
|
||||
const SMALL_BUTTON_HEIGHT = (require(4582) /* metro dependency 4582: ButtonConstantsNative */).SMALL_BUTTON_HEIGHT;
|
||||
object.height = SMALL_BUTTON_HEIGHT;
|
||||
object.width = SMALL_BUTTON_HEIGHT;
|
||||
object.style = styles.ring;
|
||||
const Circle = (require(7744) /* metro dependency 7744 */).Circle;
|
||||
const binding2 = env0_7;
|
||||
const items2 = [((Component) => <Component {...object}><Circle cx={SMALL_BUTTON_HEIGHT / 2} cy={SMALL_BUTTON_HEIGHT / 2} r={binding2} fill="none" stroke={styles.trackPath.color} strokeWidth={4} />{((Component) => <Component cx={SMALL_BUTTON_HEIGHT / 2} cy={SMALL_BUTTON_HEIGHT / 2} r={binding2} fill="none" stroke="#2ECC71" strokeWidth={4} strokeDasharray={binding} strokeLinecap="round" animatedProps={value11} />)(env0_12)}</Component>)(defaultImport)];
|
||||
r6 = !r6 && ((Text) => <Text variant="text-sm/semibold" style={styles.countdownText} maxFontSizeMultiplier={1}>{value5}</Text>)((require(4573) /* metro dependency 4573: Text */).Text);
|
||||
items2[1] = r6;
|
||||
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
items2[2] = <View2 style={[styles.checkmarkLayer, value12]}><View style={styles.checkmarkBackground} /></View2>;
|
||||
const View3 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
const items4 = [styles.checkmarkLayer, value13];
|
||||
const CheckmarkSmallBoldIcon = (require(8707) /* metro dependency 8707: CheckmarkSmallBoldIcon */).CheckmarkSmallBoldIcon;
|
||||
const CONTROL_OVERLAY_PRIMARY_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CONTROL_OVERLAY_PRIMARY_TEXT_DEFAULT;
|
||||
items2[3] = <View3 style={items4}><CheckmarkSmallBoldIcon size="custom" color={CONTROL_OVERLAY_PRIMARY_TEXT_DEFAULT} style={styles.checkmarkIcon} /></View3>;
|
||||
return (
|
||||
<View style={styles.progress}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun102899() { // fn#102899, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13730:1829, offset: 0x0224e113, size: 78 bytes, params: 1, frame: 18
|
||||
const binding = env0_2;
|
||||
const set = binding.set;
|
||||
const timingModule = require(4504) /* metro dependency 4504: timing */;
|
||||
Reflect.apply(set, binding, [timingModule.withTiming(env0_1, {duration: 500}, 'animate-always')]);
|
||||
}
|
||||
|
||||
function _fun102900() { // fn#102900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13730:1936, offset: 0x0224e161, size: 388 bytes, params: 1, frame: 30
|
||||
var r1;
|
||||
var r0;
|
||||
var value2;
|
||||
var value3;
|
||||
var moduleValue;
|
||||
var withSequence;
|
||||
var withTiming;
|
||||
var value4;
|
||||
var moduleValue3;
|
||||
var withDelay;
|
||||
var moduleValue4;
|
||||
var moduleValue5;
|
||||
var binding3;
|
||||
var value5;
|
||||
var moduleValue6;
|
||||
var value;
|
||||
const current = env0_5.current;
|
||||
env0_5.current = true;
|
||||
let binding = env0_0;
|
||||
const binding2 = env0_3;
|
||||
let set = binding2.set;
|
||||
if (binding) {
|
||||
if (current) {
|
||||
value2 = environment.__proto__;
|
||||
value3 = undefined;
|
||||
moduleValue = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
withSequence = moduleValue.withSequence;
|
||||
value4 = (require(4504) /* metro dependency 4504: timing */).withTiming(1.65, {duration: 267,
|
||||
easing: env1_9});
|
||||
moduleValue3 = require(4504) /* metro dependency 4504: timing */;
|
||||
withTiming = moduleValue3.withTiming;
|
||||
Reflect.apply(set, binding2, [Reflect.apply(withSequence, moduleValue, [value4, Reflect.apply(withTiming,
|
||||
moduleValue3, [1, {duration: 233, easing: env1_10}])])]);
|
||||
binding = env0_4;
|
||||
set = binding.set;
|
||||
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
withDelay = value.withDelay;
|
||||
moduleValue4 = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
withSequence = moduleValue4.withSequence;
|
||||
moduleValue5 = require(4504) /* metro dependency 4504: timing */;
|
||||
withTiming = moduleValue5.withTiming;
|
||||
binding3 = env1_11;
|
||||
value5 = Reflect.apply(withTiming, moduleValue5, [1.25, {duration: 167, easing: binding3}]);
|
||||
moduleValue6 = require(4504) /* metro dependency 4504: timing */;
|
||||
withTiming = moduleValue6.withTiming;
|
||||
Reflect.apply(set, binding, [Reflect.apply(withDelay, value, [167, Reflect.apply(withSequence, moduleValue4,
|
||||
[value5, Reflect.apply(withTiming, moduleValue6, [1, {duration: 333, easing: binding3}])])])]);
|
||||
r1 = value3;
|
||||
} else {
|
||||
Reflect.apply(set, binding2, [1]);
|
||||
env0_4.set(1);
|
||||
r1 = undefined;
|
||||
}
|
||||
r0 = r1;
|
||||
} else {
|
||||
Reflect.apply(set, binding2, [0]);
|
||||
env0_4.set(0);
|
||||
r0 = undefined;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function BountiesModalTimerU() { // fn#102901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13730:2362, owner: BountiesModalTimer.U, offset: 0x0224e2e5, size: 40 bytes, params: 1, frame: 11
|
||||
const binding = env1_8;
|
||||
const binding2 = env0_2;
|
||||
const get = binding2.get;
|
||||
return {strokeDashoffset: binding - binding * Reflect.apply(get, binding2, [])};
|
||||
}
|
||||
|
||||
function BountiesModalTimerX() { // fn#102902, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13730:2536, owner: BountiesModalTimer.x, offset: 0x0224e30d, size: 39 bytes, params: 1, frame: 11
|
||||
const object = {};
|
||||
object.scale = env0_3.get();
|
||||
return {transform: [object]};
|
||||
}
|
||||
|
||||
function BountiesModalTimerG() { // fn#102903, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13730:2692, owner: BountiesModalTimer.G, offset: 0x0224e334, size: 39 bytes, params: 1, frame: 11
|
||||
const object = {};
|
||||
object.scale = env0_4.get();
|
||||
return {transform: [object]};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,111 @@
|
||||
/* Metro module 13543; source: modules/quests/native/BountiesModal/BountiesScrollEndCard.tsx; dependencies: [31, 27, 33, 4501, 697, 13542, 1244, 13519, 4507, 4017, 4504, 4589, 4573, 10234, 2] */
|
||||
function _fun102913(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13733:6, offset: 0x0224eced, size: 237 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value.Pressable;
|
||||
const env0_4 = value.StyleSheet;
|
||||
const env0_5 = value.View;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun102914);
|
||||
object = {code: 'function BountiesScrollEndCardTsx1(){const{isScrollingInBoundsSharedValue,withTiming,isActive,timingStandard}=this.__closure;var _isScrollingInBoundsS;const isScrollingInBounds=((_isScrollingInBoundsS=isScrollingInBoundsSharedValue)===null||_isScrollingInBoundsS===void 0?void 0:_isScrollingInBoundsS.get())===true;return{opacity:withTiming(isActive&&!isScrollingInBounds?1:0,timingStandard)};}'};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountiesModal/BountiesScrollEndCard.tsx');
|
||||
exports.default = BountiesScrollEndCard;
|
||||
}
|
||||
|
||||
function _fun102914() { // fn#102914, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13733:203, offset: 0x0224edda, size: 242 bytes, params: 1, frame: 17
|
||||
const object6 = {};
|
||||
const object7 = {};
|
||||
copyDataProperties(object7, StyleSheet.absoluteFillObject, undefined);
|
||||
object6.container = object7;
|
||||
const object8 = {};
|
||||
copyDataProperties(object8, StyleSheet.absoluteFillObject, undefined);
|
||||
object8['backgroundColor'] = 'rgba(0, 0, 0, 0.6)';
|
||||
object6.backdropTint = object8;
|
||||
const object9 = {};
|
||||
copyDataProperties(object9, StyleSheet.absoluteFillObject, undefined);
|
||||
object6.backdropGradient = object9;
|
||||
const object10 = {};
|
||||
copyDataProperties(object10, StyleSheet.absoluteFillObject, undefined);
|
||||
object10['justifyContent'] = 'center';
|
||||
object10['alignItems'] = 'center';
|
||||
object6.pressable = object10;
|
||||
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object6.overlayContent = {alignItems: 'center', gap: PX_4};
|
||||
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object6.textBlock = {alignItems: 'center', gap: PX_4};
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object6.replayIcon = {margin: PX_12};
|
||||
return object6;
|
||||
}
|
||||
|
||||
function BountiesScrollEndCard({bounty, visible, onReplay, isActive, isScrollingInBoundsSharedValue}) { // fn#102915, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13733:1015, offset: 0x0224eecc, size: 826 bytes, params: 2, frame: 33
|
||||
var r0;
|
||||
var View2;
|
||||
var items2;
|
||||
var View3;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var items4;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const bountyCtaInfo = (require(13542) /* metro dependency 13542: BountyCtaHelpers */).getBountyCtaInfo(bounty);
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const value4 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9UtZAY']);
|
||||
const useVisibilityTransitionModule = require(13519) /* metro dependency 13519: useVisibilityTransition */;
|
||||
const useVisibilityTransition = useVisibilityTransitionModule.useVisibilityTransition;
|
||||
let object2 = {visible: visible};
|
||||
object2.entranceTiming = (require(4507) /* metro dependency 4507: timingPresets */).timingStandard;
|
||||
object2.exitTiming = (require(4507) /* metro dependency 4507: timingPresets */).timingStandard;
|
||||
const {opacityStyle, shouldRender} = Reflect.apply(useVisibilityTransition, useVisibilityTransitionModule,
|
||||
[object2]);
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
const closure = BountiesScrollEndCardH;
|
||||
object2 = {isScrollingInBoundsSharedValue: isScrollingInBoundsSharedValue};
|
||||
object2.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
|
||||
object2.isActive = isActive;
|
||||
object2.timingStandard = (require(4507) /* metro dependency 4507: timingPresets */).timingStandard;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 13628650628423;
|
||||
closure.__initData = env0_9;
|
||||
if (shouldRender) {
|
||||
View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
var view2Props = {style: [styles.container, opacityStyle], pointerEvents: 'box-none'};
|
||||
items2 = [<View style={styles.backdropTint} />];
|
||||
items2[1] = ((Component) => <Component colors={['rgba(0, 0, 0, 0.48)',
|
||||
'rgba(0, 0, 0, 0.8)']} style={styles.backdropGradient} />)(importDefault(4589) /* metro dependency 4589 */);
|
||||
var pressableBindingProps = {onPress: isActive ? onReplay : undefined, disabled: !isActive,
|
||||
accessibilityRole: 'button', accessibilityLabel: value4, style: styles.pressable};
|
||||
View3 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
var view3Props = {style: [styles.overlayContent, Reflect.apply(useAnimatedStyle, reanimatedRexportModule,
|
||||
[closure])]};
|
||||
var viewBindingProps = {style: styles.textBlock};
|
||||
value = <Text variant="heading-md/semibold" color="text-strong">{bountyCtaInfo.label}</Text>;
|
||||
items4 = [value];
|
||||
items4[1] = <Text variant="heading-sm/medium" color="text-default">{value4}</Text>;
|
||||
value = <View {...viewBindingProps}>{items4}</View>;
|
||||
items2[2] = <Pressable {...pressableBindingProps}><View3 {...view3Props}>{value}{((RetryIcon) => <RetryIcon accessible={false} color={(importDefault(697) /* metro dependency 697: native */).colors.CONTROL_OVERLAY_SECONDARY_TEXT_DEFAULT} style={styles.replayIcon} />)((require(10234) /* metro dependency 10234: RetryIcon */).RetryIcon)}</View3></Pressable>;
|
||||
value = <View2 {...view2Props}>{items2}</View2>;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = shouldRender;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function BountiesScrollEndCardH() { // fn#102916, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13733:1392, owner: BountiesScrollEndCard.h, offset: 0x0224f206, size: 121 bytes, params: 1, frame: 18
|
||||
const r7 = isScrollingInBoundsSharedValue?.get();
|
||||
const object2 = {};
|
||||
const timingModule = require(4504) /* metro dependency 4504: timing */;
|
||||
const withTiming = timingModule.withTiming;
|
||||
const isActiveBinding = isActive;
|
||||
const value = 0;
|
||||
object2.opacity = Reflect.apply(withTiming, timingModule, [isActiveBinding ? r7 === true ? value : 1 : value,
|
||||
(require(4507) /* metro dependency 4507: timingPresets */).timingStandard]);
|
||||
return object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
/* Metro module 13518; source: modules/quests/native/BountiesModal/BountiesScrollPromptFooter.tsx; dependencies: [31, 27, 4502, 33, 4501, 697, 13519, 4507, 566, 1585, 4017, 3868, 2] */
|
||||
function _fun102749(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13708:6, offset: 0x022474ec, size: 231 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).StyleSheet;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(function() {
|
||||
var object = {root: {'position': 'absolute', 'bottom': 0, 'left': 0, 'right': 0}};
|
||||
var object2 = {'flex': 1, 'minHeight': 97, 'alignItems': 'center', 'justifyContent': 'center'};
|
||||
object2.paddingHorizontal = importDefault(dependencyMap[5]).space.PX_16;
|
||||
object.content = object2;
|
||||
var object3 = {};
|
||||
copyDataProperties(object3, StyleSheet.absoluteFillObject, importDefault);
|
||||
object.gradient = object3;
|
||||
return object;
|
||||
});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountiesModal/BountiesScrollPromptFooter.tsx');
|
||||
exports.default = BountiesScrollPromptFooter;
|
||||
exports.BOUNTIES_MODAL_BASE_FOOTER_HEIGHT = 97;
|
||||
}
|
||||
|
||||
function BountiesScrollPromptFooter({visible, children, onContentLayout, zIndex, opacityStyle}) { // fn#102751, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13708:507, offset: 0x0224763b, size: 547 bytes, params: 2, frame: 28
|
||||
const styles = useStyles();
|
||||
const useVisibilityTransitionModule = require(13519) /* metro dependency 13519: useVisibilityTransition */;
|
||||
const useVisibilityTransition = useVisibilityTransitionModule.useVisibilityTransition;
|
||||
const object2 = {visible: visible};
|
||||
object2.entranceTiming = (require(4507) /* metro dependency 4507: timingPresets */).timingStandard;
|
||||
object2.exitTiming = (require(4507) /* metro dependency 4507: timingPresets */).timingStandard;
|
||||
const value2 = Reflect.apply(useVisibilityTransition, useVisibilityTransitionModule, [object2]);
|
||||
const opacityStyle2 = value2.opacityStyle;
|
||||
const shouldRender = value2.shouldRender;
|
||||
const binding = env0_3;
|
||||
let useMemo = binding.useMemo;
|
||||
const value3 = Reflect.apply(useMemo, binding, [function() {
|
||||
return zIndex != null ? {zIndex: zIndex} : undefined;
|
||||
}, [zIndex]]);
|
||||
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
|
||||
function() {
|
||||
return AccessibilityStore.useReducedMotion;
|
||||
});
|
||||
const value4 = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)();
|
||||
useMemo = binding.useMemo;
|
||||
return shouldRender && ((View) => <View style={[styles.root, opacityStyle2,
|
||||
value3]} pointerEvents="none">{((View) => <View style={[styles.gradient,
|
||||
opacityStyle]}>{((BountiesScrollGradientRive) => <BountiesScrollGradientRive stateMachine="State Machine 1" fit="fill" alignment="bottom-center" withReducedMotion={useReducedMotion ? 'halt' : 'play'} />)((require(3868) /* metro dependency 3868: native */).BountiesScrollGradientRive)}</View>)((importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View)}{((View) => <View style={[styles.content,
|
||||
Reflect.apply(useMemo, binding, [_fun102754, [value4.bottom]]),
|
||||
opacityStyle]} onLayout={onContentLayout}>{children}</View>)((importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View)}</View>)((importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View);
|
||||
}
|
||||
|
||||
function _fun102754() { // fn#102754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13708:905, offset: 0x02247880, size: 75 bytes, params: 1, frame: 16
|
||||
const Math = global.Math;
|
||||
const max = Math.max;
|
||||
const bottom = env0_1.bottom;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
return {paddingBottom: Reflect.apply(max, Math, [bottom, PX_8])};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
/* Metro module 13544; source: modules/quests/native/BountiesModal/BountiesScrollPromptNuxFooter.tsx; dependencies: [27, 33, 4501, 4573, 1244, 2] */
|
||||
function _fun102917(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13734:6, offset: 0x0224f27f, size: 179 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(27) /* metro dependency 27 */).View;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_3 = value.jsx;
|
||||
const env0_4 = value.jsxs;
|
||||
const env0_5 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(function() {
|
||||
return {root: {'alignItems': 'center', 'gap': 2}, titleText: {textAlign: 'center'},
|
||||
swipeText: {'textAlign': 'center', 'textTransform': 'uppercase'}};
|
||||
});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountiesModal/BountiesScrollPromptNuxFooter.tsx');
|
||||
exports.default = BountiesScrollPromptFooter_102919;
|
||||
}
|
||||
|
||||
function BountiesScrollPromptFooter_102919() { // fn#102919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13734:406, offset: 0x0224f36b, size: 263 bytes, params: 1, frame: 24
|
||||
const styles = useStyles();
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const H57f41 = (require(1244) /* metro dependency 1244: indexNative */).t.H57f41;
|
||||
return (
|
||||
<View style={styles.root}>
|
||||
<Text
|
||||
variant="text-md/semibold"
|
||||
color="text-default"
|
||||
style={styles.titleText}
|
||||
>
|
||||
{Reflect.apply(string, intl, [H57f41])}
|
||||
</Text>
|
||||
<Text
|
||||
variant="text-xxs/semibold"
|
||||
color="text-muted"
|
||||
style={styles.swipeText}
|
||||
>
|
||||
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.tG0zsk)}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
/* Metro module 13545; source: modules/quests/native/BountiesModal/BountiesScrollRecapFooter.tsx; dependencies: [31, 27, 4502, 33, 4501, 697, 477, 1244, 4573, 10076, 566, 3868, 2] */
|
||||
function _fun102920(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102920, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13735:6, offset: 0x0224f472, size: 232 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun102921);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountiesModal/BountiesScrollRecapFooter.tsx');
|
||||
exports.BountiesScrollRecapFooter = BountiesScrollRecapFooter;
|
||||
exports.BountiesScrollRecapFooterGradient = BountiesScrollRecapFooterGradient;
|
||||
}
|
||||
|
||||
function _fun102921() { // fn#102921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13735:180, offset: 0x0224f55a, size: 185 bytes, params: 1, frame: 16
|
||||
const object2 = {};
|
||||
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object2.container = {'flex': 1, 'alignItems': 'center', 'justifyContent': 'center', gap: PX_4};
|
||||
object2.headerLabel = {textTransform: 'uppercase'};
|
||||
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object2.orbRow = {'flexDirection': 'row', 'alignItems': 'center', gap: PX_4};
|
||||
object2.rive = {'flex': 1, 'width': '100%'};
|
||||
const object3 = {};
|
||||
const value = 6;
|
||||
object3.marginTop = require(dependencyMap[value]).isIOS() ? value : 0;
|
||||
object2.orbAmount = object3;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function BountiesScrollRecapFooter({orbAmount}) { // fn#102922, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13735:585, offset: 0x0224f613, size: 381 bytes, params: 2, frame: 25
|
||||
const styles = useStyles();
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const value2 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.d6Rrn6);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const items2 = [<Text variant="text-xs/bold" color="text-brand" style={styles.headerLabel} accessible={false}>{value2}</Text>];
|
||||
const OrbsIcon = (require(10076) /* metro dependency 10076: OrbsIcon */).OrbsIcon;
|
||||
items2[1] = <View style={styles.orbRow} accessible={false} importantForAccessibility="no-hide-descendants"><OrbsIcon size="sm" color="icon-strong" accessible={false} /><Text variant="display-sm" color="text-strong" accessible={false} style={styles.orbAmount}>{'+' + orbAmount}</Text></View>;
|
||||
return (
|
||||
<View
|
||||
style={styles.container}
|
||||
pointerEvents="none"
|
||||
accessible
|
||||
accessibilityRole="text"
|
||||
accessibilityLabel={'' + value2 + ', +' + orbAmount}
|
||||
>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function BountiesScrollRecapFooterGradient() { // fn#102923, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13735:1232, offset: 0x0224f790, size: 153 bytes, params: 1, frame: 18
|
||||
const styles = useStyles();
|
||||
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
|
||||
function() {
|
||||
return AccessibilityStore.useReducedMotion;
|
||||
});
|
||||
const BountiesScrollGradientRive = (require(3868) /* metro dependency 3868: native */).BountiesScrollGradientRive;
|
||||
return (
|
||||
<View style={styles.rive}>
|
||||
<BountiesScrollGradientRive
|
||||
stateMachine="State Machine 1"
|
||||
fit="fill"
|
||||
alignment="bottom-center"
|
||||
withReducedMotion={useReducedMotion ? 'halt' : 'play'}
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
/* Metro module 13546; source: modules/quests/native/BountiesModal/BountiesScrollRecapPage.tsx; dependencies: [31, 27, 4502, 33, 697, 4501, 477, 7897, 13547, 9543, 13548, 1585, 566, 13549, 4573, 1244, 10076, 4578, 2] */
|
||||
function _fun102925(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102925, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13736:6, offset: 0x0224f829, size: 265 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value.StyleSheet;
|
||||
const env0_4 = value.View;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
const env0_8 = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
const env0_9 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun102927);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountiesModal/BountiesScrollRecapPage.tsx');
|
||||
exports.BountiesScrollRecapPage = BountiesScrollRecapPage;
|
||||
}
|
||||
|
||||
function BountiesRecapOrbsBackground({style, reducedMotion}) { // fn#102926, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13736:922, offset: 0x0224f932, size: 260 bytes, params: 2, frame: 22
|
||||
var r0;
|
||||
var VideoComponent;
|
||||
var object;
|
||||
if ((require(477) /* metro dependency 477: PlatformUtils */).isAndroid()) {
|
||||
r0 = <View style={style} needsOffscreenAlphaCompositing renderToHardwareTextureAndroid pointerEvents="none">{((APNGPlayer) => <APNGPlayer url={importDefault(13547) /* metro dependency 13547: _3d_orbsPng */} style={StyleSheet.absoluteFillObject} autoplay={!reducedMotion} />)((require(7897) /* metro dependency 7897: APNGPlayerAndroid */).APNGPlayer)}</View>;
|
||||
} else {
|
||||
VideoComponent = (require(9543) /* metro dependency 9543: Video */).VideoComponent;
|
||||
object = {};
|
||||
object.uri = importDefault(13548) /* metro dependency 13548: _3d_orbsMov */;
|
||||
r0 = <VideoComponent source={object} style={style} resizeMode="contain" paused={reducedMotion} disableFocus preventsDisplaySleepDuringVideoPlayback={false} importantForAccessibility="no-hide-descendants" />;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun102927() { // fn#102927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13736:218, offset: 0x0224fa36, size: 398 bytes, params: 1, frame: 18
|
||||
const object3 = {};
|
||||
const object4 = {overflow: 'hidden'};
|
||||
object4.borderRadius = lg;
|
||||
const MOBILE_ACTIONSHEET_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_ACTIONSHEET_BACKGROUND;
|
||||
object4.backgroundColor = MOBILE_ACTIONSHEET_BACKGROUND;
|
||||
object3.root = object4;
|
||||
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object3.content = {'flex': 1, 'paddingHorizontal': null, 'justifyContent': 'center', 'alignItems': 'center',
|
||||
paddingHorizontal: PX_24};
|
||||
object3.centeredCopy = {'alignItems': 'center', 'width': '100%'};
|
||||
object3.orbsBackground = {'position': 'absolute', 'top': 0, 'left': 0, 'right': 0, 'height': '40%', 'zIndex': 1};
|
||||
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object3.headerLabel = {paddingBottom: PX_4, textTransform: 'uppercase'};
|
||||
const object8 = {'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'center'};
|
||||
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object8.paddingBottom = PX_24;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object8.gap = PX_8;
|
||||
object3.titleRow = object8;
|
||||
const object9 = {position: 'absolute'};
|
||||
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object9.left = PX_24;
|
||||
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object9.right = PX_24;
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object9.gap = PX_12;
|
||||
object3.actions = object9;
|
||||
const object10 = {};
|
||||
const value = 6;
|
||||
object10.marginTop = require(dependencyMap[value]).isIOS() ? value : 0;
|
||||
object10.lineHeight = 46;
|
||||
object3.orbAmount = object10;
|
||||
return object3;
|
||||
}
|
||||
|
||||
function BountiesScrollRecapPage({orbAmount, onClose, style}) { // fn#102928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13736:1520, offset: 0x0224fbc4, size: 1017 bytes, params: 2, frame: 41
|
||||
const styles = useStyles();
|
||||
const value2 = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)();
|
||||
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
|
||||
function() {
|
||||
return AccessibilityStore.useReducedMotion;
|
||||
});
|
||||
const items2 = [styles.root, style];
|
||||
const viewBinding2Props = {style: StyleSheet.absoluteFillObject, pointerEvents: 'none'};
|
||||
const VideoComponent = (require(9543) /* metro dependency 9543: Video */).VideoComponent;
|
||||
const view = <View {...viewBinding2Props}><VideoComponent source={{uri: importDefault(13549) /* metro dependency 13549: starfield_bgMp4 */}} style={StyleSheet.absoluteFillObject} resizeMode="cover" paused={useReducedMotion} disableFocus preventsDisplaySleepDuringVideoPlayback={false} importantForAccessibility="no-hide-descendants" /><BountiesRecapOrbsBackground style={styles.orbsBackground} reducedMotion={useReducedMotion} /></View>;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const items4 = [<Text variant="text-xs/bold" color="text-brand" style={styles.headerLabel}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.d6Rrn6)}</Text>];
|
||||
const OrbsIcon = (require(10076) /* metro dependency 10076: OrbsIcon */).OrbsIcon;
|
||||
items4[1] = <View accessible accessibilityRole="text" accessibilityLabel={'+' + orbAmount}><View style={styles.titleRow}><OrbsIcon size="lg" color="icon-strong" accessible={false} /><Text variant="display-lg" color="text-strong" accessible={false} style={styles.orbAmount}>{'+' + orbAmount}</Text></View></View>;
|
||||
items4[2] = <Text variant="text-md/medium" color="text-muted" style={{textAlign: 'center'}}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.x0Ffz3)}</Text>;
|
||||
const view2 = <View style={styles.centeredCopy} pointerEvents="none">{items4}</View>;
|
||||
const items7 = [styles.actions];
|
||||
const bottom = value2.bottom;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
items7[1] = {bottom: bottom + PX_8};
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
return (
|
||||
<View style={items2} pointerEvents="box-none">
|
||||
{view}
|
||||
<View style={styles.content} pointerEvents="box-none">
|
||||
{view2}
|
||||
<View style={items7}>
|
||||
<Button
|
||||
grow
|
||||
variant="primary"
|
||||
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.i4jeWR)}
|
||||
size="lg"
|
||||
onPress={onClose}
|
||||
/>
|
||||
</View>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,481 @@
|
||||
/* Metro module 13522; source: modules/quests/native/BountiesModal/BountiesScrollVideoItem.tsx; dependencies: [5, 57, 31, 27, 10071, 7092, 6528, 33, 13523, 566, 9530, 13533, 9532, 13534, 13536, 13537, 13538, 10183, 7121, 6533, 13543, 2] */
|
||||
function _fun102777(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13712:6, offset: 0x0224825f, size: 260 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 env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_5 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_6 = (require(27) /* metro dependency 27 */).View;
|
||||
const virtualCurrencyStore = importDefault(10071) /* metro dependency 10071: VirtualCurrencyStore */;
|
||||
const bountyStore = importDefault(7092) /* metro dependency 7092: BountyStore */;
|
||||
const env0_9 = (require(6528) /* metro dependency 6528: QuestConstants */).QuestsExperimentLocations;
|
||||
const env0_10 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountiesModal/BountiesScrollVideoItem.tsx');
|
||||
exports.BountiesScrollVideoItem = BountiesScrollVideoItem;
|
||||
}
|
||||
|
||||
function BountiesScrollVideoItemInner({bounty, sourceQuestContent, width, height, isActive, isRecapPageRevealed, isRecapPageOnTop, isScrollingInBoundsSharedValue}) { // fn#102778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13712:211, offset: 0x02248363, size: 1184 bytes, params: 2, frame: 44
|
||||
var currentBalance;
|
||||
const env0_3 = height;
|
||||
const env0_4 = isActive;
|
||||
const env0_5 = isScrollingInBoundsSharedValue;
|
||||
const value2 = env0_5.useMemo(function() {
|
||||
return {width: width, height: height};
|
||||
}, [width, height]);
|
||||
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([BountyStore], function() {
|
||||
return BountyStore.isBountyCompleted(bounty.id);
|
||||
});
|
||||
const BountiesStage1Experiment = (require(9530) /* metro dependency 9530: BountiesStage1Experiment */).BountiesStage1Experiment;
|
||||
const useConfig = BountiesStage1Experiment.useConfig;
|
||||
const VIDEO_MODAL_MOBILE = QuestsExperimentLocations.VIDEO_MODAL_MOBILE;
|
||||
const {enabled, loopingEnabled, orbAmount, rewardTimerSeconds} = Reflect.apply(useConfig, BountiesStage1Experiment,
|
||||
[{location: VIDEO_MODAL_MOBILE}]);
|
||||
const BountyVideoEndMode = (require(13533) /* metro dependency 13533: useBountiesModalTiming */).BountyVideoEndMode;
|
||||
const r26 = loopingEnabled ? BountyVideoEndMode.LOOP : BountyVideoEndMode.END_CARD_WITH_CTA;
|
||||
const r25 = enabled ? 1000 * rewardTimerSeconds : 1000 * bounty.rewardTimerSeconds;
|
||||
const value8 = env0_5.useRef(null);
|
||||
const handlePlayerStateChange = useResumeOnActive({isActive: isActive, playerRef: value8}).handlePlayerStateChange;
|
||||
const [property, property2] = env0_4(env0_5.useState(isActive), 2);
|
||||
const [property3, property4] = env0_4(env0_5.useState(_fun102784), 2);
|
||||
const value14 = env0_4(env0_5.useState(0), 2);
|
||||
const property5 = value14[0];
|
||||
if (property !== isActive) {
|
||||
property2(isActive);
|
||||
if (isActive) {
|
||||
currentBalance = VirtualCurrencyStore.getCurrentBalance();
|
||||
property4(currentBalance);
|
||||
if (currentBalance !== property3) {
|
||||
value14[1](function(a0) {
|
||||
return a0 + 1;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
const value17 = env0_5.useCallback(env0_3(_fun102787), [bounty.id, isActive, orbAmount, sourceQuestContent]);
|
||||
const {handleVideoProgressAnalytics, handleVideoEndAnalytics, handleVideoLoopedAnalytics,
|
||||
handleVideoPausedAnalytics,
|
||||
handleVideoResumedAnalytics} = (require(13536) /* metro dependency 13536: useBountiesModalVideoAnalytics */).useBountiesModalVideoAnalytics({bountyId: bounty.id,
|
||||
sourceQuestContent: sourceQuestContent, rewardDurationMs: r25});
|
||||
const value19 = (require(13537) /* metro dependency 13537: useBountyVideoProgressPersistence */).useBountyVideoProgressPersistence({bountyId: bounty.id,
|
||||
endMode: r26});
|
||||
const initialProgress = value19.initialProgress;
|
||||
const handleProgress = value19.handleProgress;
|
||||
env0_5.useEffect(function() {
|
||||
return _fun102790;
|
||||
}, [value19.flushProgress]);
|
||||
const value20 = env0_5.useCallback(function(a0, a1, a2) {
|
||||
handleVideoProgressAnalytics(a0, a1);
|
||||
handleProgress(a0, a1, a2);
|
||||
}, [handleVideoProgressAnalytics, handleProgress]);
|
||||
const useBountiesModalTimingModule = require(13533) /* metro dependency 13533: useBountiesModalTiming */;
|
||||
const useBountiesModalTiming = useBountiesModalTimingModule.useBountiesModalTiming;
|
||||
let duration = initialProgress.duration;
|
||||
duration = duration > 0 ? initialProgress.duration : null;
|
||||
const value21 = Reflect.apply(useBountiesModalTiming, useBountiesModalTimingModule, [{endMode: r26,
|
||||
rewardDurationMs: r25, isCompleted: value3, onRewardEarned: value17, onVideoProgress: value20,
|
||||
onVideoEnd: handleVideoEndAnalytics, onVideoLooped: handleVideoLoopedAnalytics,
|
||||
onVideoPaused: handleVideoPausedAnalytics, onVideoResumed: handleVideoResumedAnalytics, playerRef: value8,
|
||||
initialProgressSec: initialProgress.timestampSec, initialMaxVideoProgressSec: initialProgress.maxTimestampSec,
|
||||
initialVideoDurationSec: duration}]);
|
||||
const isCtaVisible = value21.isCtaVisible;
|
||||
const isEndCardVisible = value21.isEndCardVisible;
|
||||
const handleVideoEnd = value21.handleVideoEnd;
|
||||
const handleVideoProgress = value21.handleVideoProgress;
|
||||
const handleVideoPaused = value21.handleVideoPaused;
|
||||
const handleVideoResumed = value21.handleVideoResumed;
|
||||
const env0_12 = value21.handleReplay;
|
||||
const rewardRemainingSeconds = value21.rewardRemainingSeconds;
|
||||
const rewardTotalSeconds = value21.rewardTotalSeconds;
|
||||
const normalizedProgress = value21.normalizedProgress;
|
||||
const BountyVideo = (require(13538) /* metro dependency 13538: BountyVideo */).BountyVideo;
|
||||
return (
|
||||
<View style={value2}>
|
||||
<BountyVideo
|
||||
bounty={bounty}
|
||||
sourceQuestContent={sourceQuestContent}
|
||||
isCompleted={value3}
|
||||
isCtaVisible={isCtaVisible}
|
||||
isEndCardVisible={isEndCardVisible}
|
||||
isProgressBarVisible={!isRecapPageOnTop}
|
||||
orbsBalance={property3}
|
||||
handleVideoEnd={handleVideoEnd}
|
||||
handleVideoProgress={handleVideoProgress}
|
||||
handleVideoPaused={handleVideoPaused}
|
||||
handleVideoResumed={handleVideoResumed}
|
||||
rewardRemainingSeconds={rewardRemainingSeconds}
|
||||
rewardTotalSeconds={rewardTotalSeconds}
|
||||
normalizedProgress={normalizedProgress}
|
||||
repeat={loopingEnabled}
|
||||
initialProgress={initialProgress}
|
||||
isActive={isActive}
|
||||
isRecapPageRevealed={isRecapPageRevealed}
|
||||
isScrollingInBoundsSharedValue={isScrollingInBoundsSharedValue}
|
||||
playerRef={value8}
|
||||
onPlayerStateChange={handlePlayerStateChange}
|
||||
balanceWidgetPillResetKey={property5}
|
||||
renderEndCard={renderEndCard}
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function BountiesScrollVideoItem({bounty, sourceQuestContent, width, height, isActive, isRecapPageRevealed, isRecapPageOnTop, isScrollingInBoundsSharedValue}) { // fn#102794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13712:3539, offset: 0x02248b41, size: 235 bytes, params: 2, frame: 19
|
||||
isActive = !(isActive === undefined) && isActive;
|
||||
if (isRecapPageRevealed !== undefined) {
|
||||
}
|
||||
if (isRecapPageOnTop !== undefined) {
|
||||
}
|
||||
const QuestContentImpressionTrackerNative = (require(10183) /* metro dependency 10183: QuestContentImpressionTrackerNative */).QuestContentImpressionTrackerNative;
|
||||
const id = bounty.id;
|
||||
const AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType;
|
||||
const BOUNTY = AdCreativeType.BOUNTY;
|
||||
const QuestContent = (require(6533) /* metro dependency 6533: QuestContent */).QuestContent;
|
||||
const VIDEO_MODAL_MOBILE = QuestContent.VIDEO_MODAL_MOBILE;
|
||||
return (
|
||||
<QuestContentImpressionTrackerNative
|
||||
adContentId={id}
|
||||
adCreativeType={BOUNTY}
|
||||
questContent={VIDEO_MODAL_MOBILE}
|
||||
sourceQuestContent={sourceQuestContent}
|
||||
overrideVisibility={isActive}
|
||||
>
|
||||
{children_102795}
|
||||
</QuestContentImpressionTrackerNative>
|
||||
);
|
||||
}
|
||||
|
||||
function useResumeOnActive({isActive, playerRef}) { // fn#102781, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13712:784, owner: BountiesScrollVideoItemInner.useResumeOnActive, offset: 0x0224883a, size: 137 bytes, params: 2, frame: 17
|
||||
const env0_2 = env1_5.useRef(true);
|
||||
const env0_3 = env1_5.useRef(null);
|
||||
const value2 = env1_5.useCallback(_fun102782, []);
|
||||
env1_5.useEffect(_fun102783, [isActive, playerRef]);
|
||||
return {handlePlayerStateChange: value2};
|
||||
}
|
||||
|
||||
function _fun102784() { // fn#102784, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13712:1186, offset: 0x02248939, size: 31 bytes, params: 1, frame: 10
|
||||
var r0;
|
||||
const isActiveBinding = isActive;
|
||||
let value = null;
|
||||
if (isActiveBinding) {
|
||||
value = environment.__proto__;
|
||||
value = VirtualCurrencyStore.getCurrentBalance();
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function* _fun102787() { // fn#102787, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13712:1378, offset: 0x02248963, size: 167 bytes, params: 1, frame: 15
|
||||
var environment;
|
||||
var r2;
|
||||
var r1;
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value4;
|
||||
var claimBountyReward;
|
||||
var id;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var error;
|
||||
var value9;
|
||||
if (true) {
|
||||
value = false;
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
value9 = binding(env2_2[13]);
|
||||
value9.openBountyRewardClaimErrorToast(error);
|
||||
r2 = value;
|
||||
if (r2) {
|
||||
value = environment.__proto__;
|
||||
binding = env1_4;
|
||||
r1 = binding;
|
||||
} else {
|
||||
r1 = r2;
|
||||
}
|
||||
if (r1) {
|
||||
value = environment.__proto__;
|
||||
VirtualCurrencyStore(_fun102788);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
value9 = binding(env2_2[13]);
|
||||
value9.openBountyRewardClaimErrorToast(error);
|
||||
r2 = value;
|
||||
if (r2) {
|
||||
value = environment.__proto__;
|
||||
binding = env1_4;
|
||||
r1 = binding;
|
||||
} else {
|
||||
r1 = r2;
|
||||
}
|
||||
if (r1) {
|
||||
value = environment.__proto__;
|
||||
VirtualCurrencyStore(_fun102788);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
property = binding2[12];
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
value9 = binding(env2_2[13]);
|
||||
value9.openBountyRewardClaimErrorToast(error);
|
||||
r2 = value;
|
||||
if (r2) {
|
||||
value = environment.__proto__;
|
||||
binding = env1_4;
|
||||
r1 = binding;
|
||||
} else {
|
||||
r1 = r2;
|
||||
}
|
||||
if (r1) {
|
||||
value = environment.__proto__;
|
||||
VirtualCurrencyStore(_fun102788);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value4 = binding(property);
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
value9 = binding(env2_2[13]);
|
||||
value9.openBountyRewardClaimErrorToast(error);
|
||||
r2 = value;
|
||||
if (r2) {
|
||||
value = environment.__proto__;
|
||||
binding = env1_4;
|
||||
r1 = binding;
|
||||
} else {
|
||||
r1 = r2;
|
||||
}
|
||||
if (r1) {
|
||||
value = environment.__proto__;
|
||||
VirtualCurrencyStore(_fun102788);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
claimBountyReward = value4.claimBountyReward;
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
value9 = binding(env2_2[13]);
|
||||
value9.openBountyRewardClaimErrorToast(error);
|
||||
r2 = value;
|
||||
if (r2) {
|
||||
value = environment.__proto__;
|
||||
binding = env1_4;
|
||||
r1 = binding;
|
||||
} else {
|
||||
r1 = r2;
|
||||
}
|
||||
if (r1) {
|
||||
value = environment.__proto__;
|
||||
VirtualCurrencyStore(_fun102788);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
value9 = binding(env2_2[13]);
|
||||
value9.openBountyRewardClaimErrorToast(error);
|
||||
r2 = value;
|
||||
if (r2) {
|
||||
value = environment.__proto__;
|
||||
binding = env1_4;
|
||||
r1 = binding;
|
||||
} else {
|
||||
r1 = r2;
|
||||
}
|
||||
if (r1) {
|
||||
value = environment.__proto__;
|
||||
VirtualCurrencyStore(_fun102788);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
id = require.id;
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
value9 = binding(env2_2[13]);
|
||||
value9.openBountyRewardClaimErrorToast(error);
|
||||
r2 = value;
|
||||
if (r2) {
|
||||
value = environment.__proto__;
|
||||
binding = env1_4;
|
||||
r1 = binding;
|
||||
} else {
|
||||
r1 = r2;
|
||||
}
|
||||
if (r1) {
|
||||
value = environment.__proto__;
|
||||
VirtualCurrencyStore(_fun102788);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
value9 = binding(env2_2[13]);
|
||||
value9.openBountyRewardClaimErrorToast(error);
|
||||
r2 = value;
|
||||
if (r2) {
|
||||
value = environment.__proto__;
|
||||
binding = env1_4;
|
||||
r1 = binding;
|
||||
} else {
|
||||
r1 = r2;
|
||||
}
|
||||
if (r1) {
|
||||
value = environment.__proto__;
|
||||
VirtualCurrencyStore(_fun102788);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value6 = Reflect.apply(claimBountyReward, value4, [id, importDefault]);
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
value9 = binding(env2_2[13]);
|
||||
value9.openBountyRewardClaimErrorToast(error);
|
||||
r2 = value;
|
||||
if (r2) {
|
||||
value = environment.__proto__;
|
||||
binding = env1_4;
|
||||
r1 = binding;
|
||||
} else {
|
||||
r1 = r2;
|
||||
}
|
||||
if (r1) {
|
||||
value = environment.__proto__;
|
||||
VirtualCurrencyStore(_fun102788);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
yield value6;
|
||||
try {
|
||||
value7 = undefined;
|
||||
value8 = false;
|
||||
} catch (error) {
|
||||
binding = env2_0;
|
||||
value9 = binding(env2_2[13]);
|
||||
value9.openBountyRewardClaimErrorToast(error);
|
||||
r2 = value;
|
||||
if (r2) {
|
||||
value = environment.__proto__;
|
||||
binding = env1_4;
|
||||
r1 = binding;
|
||||
} else {
|
||||
r1 = r2;
|
||||
}
|
||||
if (r1) {
|
||||
value = environment.__proto__;
|
||||
VirtualCurrencyStore(_fun102788);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
if (value8) {
|
||||
return value7;
|
||||
}
|
||||
r2 = true;
|
||||
if (r2 && env1_4) {
|
||||
value = environment.__proto__;
|
||||
VirtualCurrencyStore(_fun102788);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102789() { // fn#102789, offset: 0x02248a23, size: 11 bytes, params: 1, frame: 1
|
||||
return function() {
|
||||
return flushProgress();
|
||||
};
|
||||
}
|
||||
|
||||
function BountiesScrollVideoItemInnerRenderEndCard() { // fn#102792, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13712:3092, owner: BountiesScrollVideoItemInner.renderEndCard, offset: 0x02248a53, size: 151 bytes, params: 1, frame: 17
|
||||
const QuestContentImpressionTrackerNative = (require(10183) /* metro dependency 10183: QuestContentImpressionTrackerNative */).QuestContentImpressionTrackerNative;
|
||||
const id = bounty.id;
|
||||
const AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType;
|
||||
const BOUNTY = AdCreativeType.BOUNTY;
|
||||
const QuestContent = (require(6533) /* metro dependency 6533: QuestContent */).QuestContent;
|
||||
const VIDEO_MODAL_END_CARD = QuestContent.VIDEO_MODAL_END_CARD;
|
||||
return (
|
||||
<QuestContentImpressionTrackerNative
|
||||
adContentId={id}
|
||||
adCreativeType={BOUNTY}
|
||||
questContent={VIDEO_MODAL_END_CARD}
|
||||
sourceQuestContent={sourceQuestContent}
|
||||
overrideVisibility={isEndCardVisible}
|
||||
>
|
||||
{children_102793}
|
||||
</QuestContentImpressionTrackerNative>
|
||||
);
|
||||
}
|
||||
|
||||
function BountiesScrollVideoItemChildren() { // fn#102795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13712:3939, owner: BountiesScrollVideoItem.children, offset: 0x02248c2c, size: 96 bytes, params: 1, frame: 14
|
||||
return (
|
||||
<BountiesScrollVideoItemInner
|
||||
bounty={bounty}
|
||||
sourceQuestContent={sourceQuestContent}
|
||||
width={width}
|
||||
height={height}
|
||||
isActive={isActive}
|
||||
isRecapPageRevealed={isRecapPageRevealed}
|
||||
isRecapPageOnTop={isRecapPageOnTop}
|
||||
isScrollingInBoundsSharedValue={isScrollingInBoundsSharedValue}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun102783() { // fn#102783, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13712:932, offset: 0x022488c3, size: 118 bytes, params: 1, frame: 14
|
||||
var r1;
|
||||
var isActiveBinding;
|
||||
var value2;
|
||||
let current = env0_2.current;
|
||||
if (current) {
|
||||
env0_2.current = false;
|
||||
} else {
|
||||
isActiveBinding = isActive;
|
||||
if (isActiveBinding) {
|
||||
current = env0_3.current;
|
||||
value2 = environment.__proto__.__proto__;
|
||||
r1 = current === (require(13523) /* metro dependency 13523: AdVideoPlayer */).PlayerState.PAUSED;
|
||||
} else {
|
||||
r1 = isActiveBinding;
|
||||
}
|
||||
if (r1) {
|
||||
current = playerRef.current;
|
||||
if (current != null) {
|
||||
current.play();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102788(a0) { // fn#102788, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13712:1511, offset: 0x02248a0a, size: 25 bytes, params: 2, frame: 3
|
||||
var r0;
|
||||
let value = null;
|
||||
if (value == a0) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value = environment.__proto__.__proto__;
|
||||
value = a0 + View;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function renderEndCardChildren() { // fn#102793, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13712:3315, owner: BountiesScrollVideoItemInner.renderEndCard.children, offset: 0x02248aea, size: 87 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__.__proto__;
|
||||
return ((Component) => <Component bounty={bounty} visible={isEndCardVisible} onReplay={handleReplay} isActive={isActive} isScrollingInBoundsSharedValue={isScrollingInBoundsSharedValue} />)(importDefault(13543) /* metro dependency 13543: BountiesScrollEndCard */);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
/* Metro module 13542; source: modules/quests/native/BountiesModal/BountyCtaHelpers.tsx; dependencies: [1244, 2] */
|
||||
function _fun102911(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13732:6, offset: 0x0224ec20, size: 96 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountiesModal/BountyCtaHelpers.tsx');
|
||||
exports.getBountyCtaInfo = function(a0) {
|
||||
var object = {label: a0.productName, subtext: a0.cta.buttonLabel};
|
||||
object.buttonLabel = require(dependencyMap[0]).intl.string(require(dependencyMap[0]).t.LLLLPD);
|
||||
object.iconImageUri = a0.productIcon;
|
||||
return object;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,104 @@
|
||||
/* Metro module 13538; source: modules/quests/native/BountiesModal/BountyVideo.tsx; dependencies: [31, 27, 6528, 33, 697, 4501, 13539, 9564, 9530, 4017, 4504, 4507, 13523, 13540, 10124, 13541, 2] */
|
||||
function _fun102888(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13728:6, offset: 0x0224cda1, size: 304 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value.View;
|
||||
const env0_4 = value.StyleSheet;
|
||||
const env0_5 = (require(6528) /* metro dependency 6528: QuestConstants */).QuestsExperimentLocations;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
const env0_8 = value.Fragment;
|
||||
const env0_9 = {'top': 48, 'bottom': 16, 'left': 16, 'right': 16};
|
||||
const env0_10 = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
const env0_11 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun102889);
|
||||
object = {code: 'function BountyVideoTsx1(){const{isScrollingInBoundsSharedValue,withTiming,isActive,timingStandard}=this.__closure;var _isScrollingInBoundsS;const isScrollingInBounds=((_isScrollingInBoundsS=isScrollingInBoundsSharedValue)===null||_isScrollingInBoundsS===void 0?void 0:_isScrollingInBoundsS.get())===true;return{opacity:withTiming(isActive&&!isScrollingInBounds?1:0,timingStandard)};}'};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountiesModal/BountyVideo.tsx');
|
||||
exports.BountyVideo = BountyVideo;
|
||||
}
|
||||
|
||||
function _fun102889() { // fn#102889, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13728:295, offset: 0x0224ced1, size: 215 bytes, params: 1, frame: 18
|
||||
const object4 = {};
|
||||
const object5 = {};
|
||||
copyDataProperties(object5, StyleSheet.absoluteFillObject, undefined);
|
||||
object5['overflow'] = 'hidden';
|
||||
const lgBinding = lg;
|
||||
object5['borderRadius'] = lgBinding;
|
||||
object4.videoContainer = object5;
|
||||
const object6 = {'position': 'absolute', 'top': null, 'left': null, 'flexDirection': 'row', 'alignItems': 'center'};
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object6.top = PX_8;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object6.left = PX_8;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object6.gap = PX_8;
|
||||
object4.leftRow = object6;
|
||||
const PROGRESS_BAR_HEIGHT = (require(13539) /* metro dependency 13539: BountiesModalProgress */).PROGRESS_BAR_HEIGHT;
|
||||
object4.progress = {'position': 'absolute', 'bottom': 0, height: PROGRESS_BAR_HEIGHT, left: lgBinding,
|
||||
right: lgBinding};
|
||||
return object4;
|
||||
}
|
||||
|
||||
function BountyVideo({bounty, sourceQuestContent, isCompleted, isCtaVisible, isEndCardVisible, isProgressBarVisible, orbsBalance, handleVideoEnd, handleVideoProgress, handleVideoPaused, handleVideoResumed, rewardRemainingSeconds, rewardTotalSeconds, normalizedProgress, initialProgress, repeat, isActive, isRecapPageRevealed, isScrollingInBoundsSharedValue, renderEndCard, playerRef, onPlayerStateChange, balanceWidgetPillResetKey}) { // fn#102890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13728:1105, offset: 0x0224cfa8, size: 978 bytes, params: 2, frame: 51
|
||||
var object2;
|
||||
isActive = !(isActive === undefined) && isActive;
|
||||
isRecapPageRevealed = !(isRecapPageRevealed === undefined) && isRecapPageRevealed;
|
||||
const styles = useStyles();
|
||||
const value5 = (require(9564) /* metro dependency 9564: AndroidRNVHttpEngineExperiment */).useRnvHttpEngine();
|
||||
const BountiesStage1Experiment = (require(9530) /* metro dependency 9530: BountiesStage1Experiment */).BountiesStage1Experiment;
|
||||
const useConfig = BountiesStage1Experiment.useConfig;
|
||||
const VIDEO_MODAL_MOBILE = QuestsExperimentLocations.VIDEO_MODAL_MOBILE;
|
||||
const enabled = Reflect.apply(useConfig, BountiesStage1Experiment, [{location: VIDEO_MODAL_MOBILE}]).enabled;
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
const closure = BountyVideoL;
|
||||
object2 = {isScrollingInBoundsSharedValue: isScrollingInBoundsSharedValue};
|
||||
object2.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
|
||||
object2.isActive = isActive;
|
||||
object2.timingStandard = (require(4507) /* metro dependency 4507: timingPresets */).timingStandard;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 12287714482150;
|
||||
closure.__initData = env0_12;
|
||||
const value6 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
|
||||
const jsxRuntimeEnv0_8Binding = jsxRuntimeEnv0_8;
|
||||
const AdVideoPlayer = (require(13523) /* metro dependency 13523: AdVideoPlayer */).AdVideoPlayer;
|
||||
const r35 = !enabled && undefined;
|
||||
let r33 = isActive ? isEndCardVisible : !isActive;
|
||||
r33 = !r33 ? isRecapPageRevealed : r33;
|
||||
const items3 = [<AdVideoPlayer ref={playerRef} source={{uri: bounty.videoHls ?? ''}} httpEngine={value5} automaticallyWaitsToMinimizeStalling={r35} initialProgress={initialProgress} isFullscreen={false} externallyPaused={r33} style={StyleSheet.absoluteFillObject} contentInsets={env0_9} onProgress={handleVideoProgress} onEnd={handleVideoEnd} onPausePlayback={handleVideoPaused} onResumePlayback={handleVideoResumed} hideControls={isEndCardVisible} showSkipButtons={false} repeat={repeat} bufferingSpinnerPlacement="center" onPlayerStateChange={onPlayerStateChange} />];
|
||||
items3[1] = renderEndCard?.();
|
||||
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
const items2 = [styles.leftRow, value6];
|
||||
const value12 = ((Component) => <Component isCompleted={isCompleted} totalSeconds={rewardTotalSeconds} remainingSeconds={rewardRemainingSeconds} />)(importDefault(13540) /* metro dependency 13540: BountiesModalTimer */);
|
||||
const BalanceWidgetPill = (require(10124) /* metro dependency 10124: BalanceWidgetPill */).BalanceWidgetPill;
|
||||
items3[2] = <View2 style={items2}>{value12}<BalanceWidgetPill balance={orbsBalance} key={balanceWidgetPillResetKey} /></View2>;
|
||||
const View3 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
items3[3] = <View3 style={[StyleSheet.absoluteFillObject,
|
||||
value6]} pointerEvents="box-none">{((Component) => <Component bounty={bounty} visible={isCtaVisible} sourceQuestContent={sourceQuestContent} />)(importDefault(13541) /* metro dependency 13541: BountiesModalAdvertiserCta */)}</View3>;
|
||||
const view = <View style={styles.videoContainer}>{items3}</View>;
|
||||
const View4 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
return (
|
||||
<>
|
||||
{view}
|
||||
<View4 style={[styles.progress, value6]}>
|
||||
{((Component) => <Component progress={normalizedProgress} visible={isProgressBarVisible} />)(importDefault(13539) /* metro dependency 13539: BountiesModalProgress */)}
|
||||
</View4>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function BountyVideoL() { // fn#102891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13728:1728, owner: BountyVideo.L, offset: 0x0224d37a, size: 121 bytes, params: 1, frame: 18
|
||||
const r7 = isScrollingInBoundsSharedValue?.get();
|
||||
const object2 = {};
|
||||
const timingModule = require(4504) /* metro dependency 4504: timing */;
|
||||
const withTiming = timingModule.withTiming;
|
||||
const isActiveBinding = isActive;
|
||||
const value = 0;
|
||||
object2.opacity = Reflect.apply(withTiming, timingModule, [isActiveBinding ? r7 === true ? value : 1 : value,
|
||||
(require(4507) /* metro dependency 4507: timingPresets */).timingStandard]);
|
||||
return object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
/* Metro module 13534; source: modules/quests/native/BountiesModal/bountyError.tsx; dependencies: [13535, 1244, 3857, 8947, 2] */
|
||||
function _fun102863(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13724:6, offset: 0x0224be6f, size: 175 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(13535) /* metro dependency 13535: BountiesModalConstants */).BOUNTY_REWARD_CLAIM_FAILED_TOAST_DURATION_MS;
|
||||
const Set = global.Set;
|
||||
const set = new Set([260021]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountiesModal/bountyError.tsx');
|
||||
exports.openBountyRewardClaimErrorToast = function(a0) {
|
||||
var defaultImport = importDefault(dependencyMap[2]);
|
||||
var object = {key: 'QUESTS_BOUNTIES_REWARD_CLAIM_FAILED'};
|
||||
object.content = resolveBountyRewardClaimErrorMessage(a0);
|
||||
object.icon = importDefault(dependencyMap[3]);
|
||||
object.toastDurationMs = BOUNTY_REWARD_CLAIM_FAILED_TOAST_DURATION_MS;
|
||||
defaultImport.open(object);
|
||||
};
|
||||
}
|
||||
|
||||
function resolveBountyRewardClaimErrorMessage(a0) { // fn#102864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13724:171, offset: 0x0224bf1e, size: 137 bytes, params: 2, frame: 15
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const value = undefined;
|
||||
return (a0 == null ? value : a0.code) == null ? intl.string(t.uLjCfn) : env0_4.has(a0.code) && (a0 == null ? value : a0.message) != null ? a0.message : intl.string(t.uLjCfn);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,163 @@
|
||||
/* Metro module 13533; source: modules/quests/native/BountiesModal/useBountiesModalTiming.tsx; dependencies: [57, 31, 6528, 9530, 2] */
|
||||
function _fun102855(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13723:6, offset: 0x0224b836, size: 197 bytes, params: 8, frame: 18
|
||||
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 env0_4 = (require(6528) /* metro dependency 6528: QuestConstants */).QuestsExperimentLocations;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountiesModal/useBountiesModalTiming.tsx');
|
||||
exports.BountyVideoEndMode = {END_CARD: 'END_CARD', END_CARD_WITH_CTA: 'END_CARD_WITH_CTA', LOOP: 'LOOP'};
|
||||
exports.useBountiesModalTiming = useBountiesModalTiming;
|
||||
}
|
||||
|
||||
function useBountiesModalTiming({endMode, rewardDurationMs, isCompleted, onRewardEarned, onVideoProgress, onVideoEnd, onVideoLooped, onVideoPaused, onVideoResumed, playerRef, initialProgressSec, initialMaxVideoProgressSec, initialVideoDurationSec}) { // fn#102856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13723:400, offset: 0x0224b8fb, size: 901 bytes, params: 2, frame: 35
|
||||
var r7;
|
||||
var value20;
|
||||
const env0_2 = onRewardEarned;
|
||||
const env0_3 = onVideoProgress;
|
||||
const env0_5 = onVideoLooped;
|
||||
initialProgressSec = initialProgressSec === undefined ? 0 : initialProgressSec;
|
||||
initialMaxVideoProgressSec = initialMaxVideoProgressSec === undefined ? 0 : initialMaxVideoProgressSec;
|
||||
initialVideoDurationSec = initialVideoDurationSec === undefined ? null : initialVideoDurationSec;
|
||||
let binding = env0_3;
|
||||
let useState = binding.useState;
|
||||
const value5 = Reflect.apply(useState, binding,
|
||||
[initialVideoDurationSec != null && initialProgressSec >= initialVideoDurationSec - 1 && endMode !== env0_5.LOOP]);
|
||||
binding = env0_2;
|
||||
const value6 = binding(value5, 2);
|
||||
const property = value6[0];
|
||||
const env0_11 = value6[1];
|
||||
const binding2 = env0_3;
|
||||
useState = binding2.useState;
|
||||
const value8 = binding(Reflect.apply(useState, binding2, [_fun102857]), 2);
|
||||
const property2 = value8[0];
|
||||
const env0_12 = value8[1];
|
||||
useState = binding2.useState;
|
||||
const value9 = binding(Reflect.apply(useState, binding2, [null]), 2);
|
||||
const property3 = value9[0];
|
||||
const env0_13 = value9[1];
|
||||
useState = binding2.useState;
|
||||
const value10 = binding(Reflect.apply(useState, binding2, [initialMaxVideoProgressSec]), 2);
|
||||
const property4 = value10[0];
|
||||
const env0_14 = value10[1];
|
||||
useState = binding2.useState;
|
||||
const value11 = binding(Reflect.apply(useState, binding2, [initialVideoDurationSec]), 2);
|
||||
const property5 = value11[0];
|
||||
const env0_15 = value11[1];
|
||||
const env0_16 = binding2.useRef(isCompleted);
|
||||
const env0_17 = binding2.useRef(initialMaxVideoProgressSec);
|
||||
const env0_18 = binding2.useRef(initialVideoDurationSec ?? 0);
|
||||
binding = env0_3;
|
||||
const env0_19 = binding.useRef(0);
|
||||
const env0_20 = binding.useRef(0);
|
||||
const value12 = binding.useCallback(_fun102858, [onVideoProgress, onRewardEarned, rewardDurationMs]);
|
||||
const value13 = binding.useCallback(_fun102859, [endMode, onVideoEnd, onVideoLooped, onRewardEarned]);
|
||||
const value14 = binding.useCallback(_fun102860, [playerRef]);
|
||||
const value15 = binding.useCallback(_fun102861, [onVideoPaused]);
|
||||
const value16 = binding.useCallback(_fun102862, [onVideoResumed]);
|
||||
const value17 = 1000 * property4;
|
||||
const value18 = rewardDurationMs / 1000;
|
||||
let Math = global.Math;
|
||||
const value19 = Math.max(0, value18 - property4);
|
||||
if (value17 >= rewardDurationMs) {
|
||||
r7 = 0;
|
||||
} else if (property) {
|
||||
r7 = 0;
|
||||
} else if (isCompleted) {
|
||||
r7 = 0;
|
||||
} else if (property5 == null) {
|
||||
r7 = value19;
|
||||
} else if (property5 > 0) {
|
||||
Math = global.Math;
|
||||
value20 = Math.min(value18, property5);
|
||||
Math = global.Math;
|
||||
r7 = Math.max(0, value20 - property4);
|
||||
} else {
|
||||
r7 = value19;
|
||||
}
|
||||
const BountiesStage1Experiment = (require(9530) /* metro dependency 9530: BountiesStage1Experiment */).BountiesStage1Experiment;
|
||||
const useConfig = BountiesStage1Experiment.useConfig;
|
||||
const VIDEO_MODAL_MOBILE = QuestsExperimentLocations.VIDEO_MODAL_MOBILE;
|
||||
return {isCtaVisible: (isCompleted || value17 > Reflect.apply(useConfig, BountiesStage1Experiment,
|
||||
[{location: VIDEO_MODAL_MOBILE}]).ctaTimerMilliSeconds) && !(property && endMode !== env0_5.END_CARD_WITH_CTA),
|
||||
isEndCardVisible: property, handleVideoEnd: value13, handleVideoProgress: value12, handleVideoPaused: value15,
|
||||
handleVideoResumed: value16, handleReplay: value14, rewardRemainingSeconds: r7, rewardTotalSeconds: value18,
|
||||
normalizedProgress: property3 ?? property2, maxVideoProgressSeconds: property4, videoDuration: property5};
|
||||
}
|
||||
|
||||
function _fun102857() { // fn#102857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13723:755, offset: 0x0224bc80, size: 32 bytes, params: 1, frame: 3
|
||||
return initialVideoDurationSec != null ? initialProgressSec / initialVideoDurationSec : 0;
|
||||
}
|
||||
|
||||
function _fun102858({progress, currentTime, seekableDuration}) { // fn#102858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13723:1015, offset: 0x0224bca0, size: 191 bytes, params: 2, frame: 18
|
||||
env0_13(null);
|
||||
const Math = global.Math;
|
||||
const value2 = Math.max(currentTime, env0_17.current);
|
||||
env0_17.current = value2;
|
||||
env0_18.current = seekableDuration;
|
||||
env0_20.current = currentTime;
|
||||
env0_12(progress);
|
||||
env0_14(value2);
|
||||
env0_15(seekableDuration);
|
||||
onVideoProgress(value2, seekableDuration, currentTime);
|
||||
if (!env0_16.current && 1000 * value2 >= rewardDurationMs) {
|
||||
env0_16.current = true;
|
||||
onRewardEarned();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102859() { // fn#102859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13723:1230, offset: 0x0224bd5f, size: 141 bytes, params: 1, frame: 14
|
||||
var binding;
|
||||
var onVideoLoopedBinding;
|
||||
const onVideoEndBinding = onVideoEnd;
|
||||
let current = env0_17.current;
|
||||
onVideoEndBinding(current, env0_18.current);
|
||||
const endModeBinding = endMode;
|
||||
const LOOP = env1_5.LOOP;
|
||||
if (endModeBinding === LOOP) {
|
||||
binding = env0_19;
|
||||
current = binding.current;
|
||||
binding.current = current + 1;
|
||||
onVideoLoopedBinding = onVideoLooped;
|
||||
current = env0_19.current;
|
||||
onVideoLoopedBinding(current);
|
||||
} else {
|
||||
env0_11(true);
|
||||
}
|
||||
if (!env0_16.current) {
|
||||
env0_16.current = true;
|
||||
onRewardEarned();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102860() { // fn#102860, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13723:1363, offset: 0x0224bdec, size: 73 bytes, params: 1, frame: 14
|
||||
var r2;
|
||||
var r3;
|
||||
var current;
|
||||
const value2 = playerRef == null;
|
||||
const value3 = undefined;
|
||||
if (value2) {
|
||||
r2 = value2;
|
||||
r3 = value3;
|
||||
} else {
|
||||
current = playerRef.current;
|
||||
r2 = current == null;
|
||||
r3 = current;
|
||||
}
|
||||
if (!r2) {
|
||||
r3.seekToStart();
|
||||
}
|
||||
env0_13(0);
|
||||
env0_11(false);
|
||||
return value3;
|
||||
}
|
||||
|
||||
function _fun102861(a0) { // fn#102861, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13723:1455, offset: 0x0224be35, size: 29 bytes, params: 2, frame: 13
|
||||
onVideoPaused(env0_20.current, a0);
|
||||
}
|
||||
|
||||
function _fun102862(a0) { // fn#102862, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13723:1498, offset: 0x0224be52, size: 29 bytes, params: 2, frame: 13
|
||||
onVideoResumed(env0_20.current, a0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,317 @@
|
||||
/* Metro module 13536; source: modules/quests/native/BountiesModal/useBountiesModalVideoAnalytics.tsx; dependencies: [31, 661, 9513, 491, 7110, 7121, 9522, 13523, 2] */
|
||||
function _fun102867(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13726:6, offset: 0x0224c056, size: 172 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_102870 = 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 Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const env0_4 = [25, 50, 75];
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountiesModal/useBountiesModalVideoAnalytics.tsx');
|
||||
exports.useBountiesModalVideoAnalytics = useBountiesModalVideoAnalytics;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_102868(a0, a1) { // fn#102868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13726:137, offset: 0x0224c102, size: 372 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 _fun102869;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_102870(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_102870(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_102870(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun102869;
|
||||
}
|
||||
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 useBountiesModalVideoAnalytics({bountyId, sourceQuestContent, rewardDurationMs}) { // fn#102871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13726:1203, offset: 0x0224c276, size: 551 bytes, params: 2, frame: 24
|
||||
var object2;
|
||||
const env0_2 = rewardDurationMs;
|
||||
const value2 = (require(9513) /* metro dependency 9513: ContentImpressionTrackerHooks */).useQuestImpressionId();
|
||||
const binding = env0_2;
|
||||
const value = binding.useMemo(_fun102872, []);
|
||||
const useRef = binding.useRef;
|
||||
const Set = global.Set;
|
||||
const value3 = Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
const set = new Set();
|
||||
const env0_5 = Reflect.apply(useRef, binding, [set instanceof Object ? set : value3]);
|
||||
const value5 = binding.useCallback(_fun102873, [bountyId, value, value2, sourceQuestContent, rewardDurationMs]);
|
||||
const value6 = binding.useCallback(_fun102874, [value5]);
|
||||
const value7 = binding.useCallback(_fun102875, [value5, rewardDurationMs]);
|
||||
const value8 = binding.useCallback(_fun102876, [value5]);
|
||||
const value9 = binding.useCallback(_fun102877, [value5, rewardDurationMs]);
|
||||
object2 = {};
|
||||
object2.handleVideoProgressAnalytics = binding.useCallback(_fun102878, [value6, value7, value9, rewardDurationMs]);
|
||||
object2.handleVideoEndAnalytics = binding.useCallback(_fun102879, [value6, value7, value9, value8]);
|
||||
object2.handleVideoLoopedAnalytics = binding.useCallback(_fun102880, [bountyId, value, value2, sourceQuestContent,
|
||||
rewardDurationMs]);
|
||||
object2.handleVideoPausedAnalytics = binding.useCallback(_fun102881, [bountyId, value, value2, sourceQuestContent,
|
||||
rewardDurationMs]);
|
||||
object2.handleVideoResumedAnalytics = binding.useCallback(_fun102882, [bountyId, value, value2, sourceQuestContent,
|
||||
rewardDurationMs]);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun102872() { // fn#102872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13726:1348, offset: 0x0224c49d, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return (require(491) /* metro dependency 491 */).v4();
|
||||
}
|
||||
|
||||
function _fun102873({videoTimestampSeconds, progress, thresholdMet}) { // fn#102873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13726:1408, offset: 0x0224c4c2, size: 185 bytes, params: 2, frame: 20
|
||||
const analyticsActionsModule = require(7110) /* metro dependency 7110: AnalyticsActions */;
|
||||
const trackAdContentEvent = analyticsActionsModule.trackAdContentEvent;
|
||||
const object2 = {};
|
||||
object2.adContentId = bountyId;
|
||||
const AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType;
|
||||
const BOUNTY = AdCreativeType.BOUNTY;
|
||||
object2.adCreativeType = BOUNTY;
|
||||
const AD_VIDEO_PROGRESSED = AnalyticEvents.AD_VIDEO_PROGRESSED;
|
||||
object2.event = AD_VIDEO_PROGRESSED;
|
||||
object2.properties = {progress: progress, video_timestamp_seconds: videoTimestampSeconds, video_session_id: env0_4,
|
||||
impression_id: env0_3, threshold_met: thresholdMet, reward_timer_seconds: rewardDurationMs / 1000};
|
||||
object2.sourceQuestContent = sourceQuestContent;
|
||||
Reflect.apply(trackAdContentEvent, analyticsActionsModule, [object2]);
|
||||
}
|
||||
|
||||
function _fun102874() { // fn#102874, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13726:1765, offset: 0x0224c57b, size: 77 bytes, params: 1, frame: 12
|
||||
const current = env0_5.current;
|
||||
if (!current.has('start')) {
|
||||
env0_5.current.add('start');
|
||||
env0_6({'videoTimestampSeconds': 0, 'progress': 0, 'thresholdMet': false});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102875(a0, a1) { // fn#102875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13726:1899, offset: 0x0224c5c8, size: 159 bytes, params: 3, frame: 15
|
||||
var Math;
|
||||
var value2;
|
||||
var value3;
|
||||
const current = env0_5.current;
|
||||
if (!current.has('threshold')) {
|
||||
env0_5.current.add('threshold');
|
||||
Math = global.Math;
|
||||
value2 = Math.max(rewardDurationMs / 1000, a0);
|
||||
value3 = environment.__proto__;
|
||||
env0_6({videoTimestampSeconds: value2,
|
||||
progress: (require(9522) /* metro dependency 9522: VideoQuestUtils */).formatVideoProgressRatio(value2, a1),
|
||||
thresholdMet: true});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102876(a0, a1) { // fn#102876, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13726:2114, offset: 0x0224c667, size: 108 bytes, params: 3, frame: 14
|
||||
const current = env0_5.current;
|
||||
if (!current.has('end')) {
|
||||
env0_5.current.add('end');
|
||||
env0_6({'videoTimestampSeconds': null, 'progress': 1, 'thresholdMet': true,
|
||||
videoTimestampSeconds: global.Math.max(a0, a1)});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102877(a0, a1) { // fn#102877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13726:2270, offset: 0x0224c6d3, size: 225 bytes, params: 3, frame: 23
|
||||
var r1;
|
||||
var value;
|
||||
var value2;
|
||||
var value3;
|
||||
var done;
|
||||
var value5;
|
||||
var value6;
|
||||
var current;
|
||||
var has;
|
||||
var binding;
|
||||
var value7;
|
||||
var value8;
|
||||
if (!(a1 <= 0)) {
|
||||
value = environment.__proto__;
|
||||
value2 = (require(9522) /* metro dependency 9522: VideoQuestUtils */).formatVideoProgressRatio(a0, a1);
|
||||
value = _createForOfIteratorHelperLoose_102868(env1_4);
|
||||
value3 = value();
|
||||
done = value3.done;
|
||||
if (!done) {
|
||||
r1 = value3;
|
||||
while (true) {
|
||||
value5 = r1.value;
|
||||
value6 = 'p' + value5;
|
||||
current = env0_5.current;
|
||||
has = current.has;
|
||||
if (!Reflect.apply(has, current, [value6])) {
|
||||
if (value2 < value5 / 100) {
|
||||
break;
|
||||
}
|
||||
current = env0_5.current;
|
||||
current.add(value6);
|
||||
binding = env0_6;
|
||||
value7 = 1000 * a0;
|
||||
binding({videoTimestampSeconds: a0, progress: value2, thresholdMet: value7 >= rewardDurationMs});
|
||||
break;
|
||||
}
|
||||
value8 = value();
|
||||
done = value8.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r1 = value8;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102878(a0, a1) { // fn#102878, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13726:2588, offset: 0x0224c7b4, size: 59 bytes, params: 3, frame: 15
|
||||
env0_7();
|
||||
if (1000 * a0 >= rewardDurationMs) {
|
||||
env0_8(a0, a1);
|
||||
}
|
||||
env0_10(a0, a1);
|
||||
}
|
||||
|
||||
function _fun102879(a0, a1) { // fn#102879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13726:2676, offset: 0x0224c7ef, size: 51 bytes, params: 3, frame: 14
|
||||
env0_7();
|
||||
env0_8(a0, a1);
|
||||
env0_10(a0, a1);
|
||||
env0_9(a0, a1);
|
||||
}
|
||||
|
||||
function _fun102880(a0) { // fn#102880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13726:2764, offset: 0x0224c822, size: 159 bytes, params: 2, frame: 17
|
||||
const analyticsActionsModule = require(7110) /* metro dependency 7110: AnalyticsActions */;
|
||||
const trackAdContentEvent = analyticsActionsModule.trackAdContentEvent;
|
||||
const object2 = {};
|
||||
object2.adContentId = bountyId;
|
||||
const AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType;
|
||||
const BOUNTY = AdCreativeType.BOUNTY;
|
||||
object2.adCreativeType = BOUNTY;
|
||||
const AD_VIDEO_LOOPED = AnalyticEvents.AD_VIDEO_LOOPED;
|
||||
object2.event = AD_VIDEO_LOOPED;
|
||||
object2.properties = {video_session_id: env0_4, impression_id: env0_3, loop_count: a0,
|
||||
reward_timer_seconds: rewardDurationMs / 1000};
|
||||
object2.sourceQuestContent = sourceQuestContent;
|
||||
Reflect.apply(trackAdContentEvent, analyticsActionsModule, [object2]);
|
||||
}
|
||||
|
||||
function _fun102881(a0, a1) { // fn#102881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13726:3050, offset: 0x0224c8c1, size: 199 bytes, params: 3, frame: 17
|
||||
var moduleValue;
|
||||
var trackAdContentEvent;
|
||||
var object2;
|
||||
const PlaybackTriggerSource = (require(13523) /* metro dependency 13523: AdVideoPlayer */).PlaybackTriggerSource;
|
||||
const USER_INTERACTION = PlaybackTriggerSource.USER_INTERACTION;
|
||||
if (a1 === USER_INTERACTION) {
|
||||
moduleValue = require(7110) /* metro dependency 7110: AnalyticsActions */;
|
||||
trackAdContentEvent = moduleValue.trackAdContentEvent;
|
||||
object2 = {};
|
||||
object2.adContentId = bountyId;
|
||||
object2.adCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType.BOUNTY;
|
||||
object2.event = AnalyticEvents.AD_VIDEO_PAUSED;
|
||||
object2.properties = {video_timestamp_seconds: a0, video_session_id: env0_4, impression_id: env0_3,
|
||||
reward_timer_seconds: rewardDurationMs / 1000};
|
||||
object2.sourceQuestContent = sourceQuestContent;
|
||||
Reflect.apply(trackAdContentEvent, moduleValue, [object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102882(a0, a1) { // fn#102882, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13726:3407, offset: 0x0224c988, size: 199 bytes, params: 3, frame: 17
|
||||
var moduleValue;
|
||||
var trackAdContentEvent;
|
||||
var object2;
|
||||
const PlaybackTriggerSource = (require(13523) /* metro dependency 13523: AdVideoPlayer */).PlaybackTriggerSource;
|
||||
const USER_INTERACTION = PlaybackTriggerSource.USER_INTERACTION;
|
||||
if (a1 === USER_INTERACTION) {
|
||||
moduleValue = require(7110) /* metro dependency 7110: AnalyticsActions */;
|
||||
trackAdContentEvent = moduleValue.trackAdContentEvent;
|
||||
object2 = {};
|
||||
object2.adContentId = bountyId;
|
||||
object2.adCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType.BOUNTY;
|
||||
object2.event = AnalyticEvents.AD_VIDEO_RESUMED;
|
||||
object2.properties = {video_timestamp_seconds: a0, video_session_id: env0_4, impression_id: env0_3,
|
||||
reward_timer_seconds: rewardDurationMs / 1000};
|
||||
object2.sourceQuestContent = sourceQuestContent;
|
||||
Reflect.apply(trackAdContentEvent, moduleValue, [object2]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,123 @@
|
||||
/* Metro module 13521; source: modules/quests/native/BountiesModal/useBountiesRecapOrbCount.tsx; dependencies: [57, 31, 4017, 13520, 2] */
|
||||
function _fun102768(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102768, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13711:6, offset: 0x02247e54, size: 202 bytes, params: 8, frame: 18
|
||||
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 */;
|
||||
object = {code: 'function getRecapOrbCountFromPullProgress_useBountiesRecapOrbCountTsx1(progress,targetOrbAmount){if(targetOrbAmount<=0||!Number.isFinite(targetOrbAmount)){return 0;}const clampedProgress=Math.min(1,Math.max(0,progress));return Math.round(clampedProgress*targetOrbAmount);}'};
|
||||
const value = _fun102769();
|
||||
object = {code: 'function useBountiesRecapOrbCountTsx2(){const{enabled,recapRevealHeight,getRevealProgress,scrollY,lastBountyScrollOffset,RECAP_ORB_COUNT_REACHES_TARGET_AT_PROGRESS,getRecapOrbCountFromPullProgress,targetOrbAmount}=this.__closure;if(!enabled||recapRevealHeight<=0){return{count:0,revealed:false};}const pullProgress=getRevealProgress(scrollY.get(),lastBountyScrollOffset,recapRevealHeight)/RECAP_ORB_COUNT_REACHES_TARGET_AT_PROGRESS;if(pullProgress<=0.1){return{count:0,revealed:false};}return{count:getRecapOrbCountFromPullProgress(pullProgress,targetOrbAmount),revealed:true};}'};
|
||||
object = {code: 'function useBountiesRecapOrbCountTsx3({count:count,revealed:revealed}){const{runOnJS,resetDisplayCount,setDisplayCountMonotonic}=this.__closure;if(!revealed){runOnJS(resetDisplayCount)();return;}runOnJS(setDisplayCountMonotonic)(count);}'};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountiesModal/useBountiesRecapOrbCount.tsx');
|
||||
exports.getRecapOrbCountFromPullProgress = value;
|
||||
exports.useBountiesRecapOrbCount = useBountiesRecapOrbCount;
|
||||
}
|
||||
|
||||
function _fun102769() { // fn#102769, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13711:402, offset: 0x02247f1e, size: 48 bytes, params: 1, frame: 2
|
||||
const closure = function(a0, a1) {
|
||||
var value;
|
||||
if (!(a1 <= 0)) {
|
||||
var property = global.Number;
|
||||
if (property.isFinite(a1)) {
|
||||
property = global.Math;
|
||||
value = global.Math.max(0, a0);
|
||||
value = property.min(1, value);
|
||||
property = global.Math;
|
||||
return property.round(value * a1);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
};
|
||||
closure.__closure = {};
|
||||
closure.__workletHash = 14295638108053;
|
||||
closure.__initData = env0_4;
|
||||
return closure;
|
||||
}
|
||||
|
||||
function useBountiesRecapOrbCount({scrollY, lastBountyScrollOffset, recapRevealHeight, targetOrbAmount, enabled}) { // fn#102771, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13711:1755, offset: 0x02247fad, size: 373 bytes, params: 2, frame: 27
|
||||
const env0_2 = recapRevealHeight;
|
||||
const binding = targetOrbAmount;
|
||||
const [property, env0_5] = env0_2(binding.useState(0), 2);
|
||||
let closure = _fun102772;
|
||||
const value4 = binding.useCallback(closure, []);
|
||||
const env0_6 = value4;
|
||||
const value5 = binding.useCallback(_fun102774, []);
|
||||
const env0_7 = value5;
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedReaction = reanimatedRexportModule.useAnimatedReaction;
|
||||
closure = useBountiesRecapOrbCountB;
|
||||
let object2 = {enabled: enabled, recapRevealHeight: recapRevealHeight};
|
||||
const getRevealProgress = (require(13520) /* metro dependency 13520: useBountiesRecapScroll */).getRevealProgress;
|
||||
object2.getRevealProgress = getRevealProgress;
|
||||
object2.scrollY = scrollY;
|
||||
object2.lastBountyScrollOffset = lastBountyScrollOffset;
|
||||
object2.RECAP_ORB_COUNT_REACHES_TARGET_AT_PROGRESS = 0.95;
|
||||
object2.getRecapOrbCountFromPullProgress = env0_5;
|
||||
object2.targetOrbAmount = targetOrbAmount;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 2855285055570;
|
||||
closure.__initData = env0_6;
|
||||
const closure2 = useBountiesRecapOrbCountP;
|
||||
object2 = {};
|
||||
object2.runOnJS = reanimatedRexportModule.runOnJS;
|
||||
object2.resetDisplayCount = value5;
|
||||
object2.setDisplayCountMonotonic = value4;
|
||||
closure2.__closure = object2;
|
||||
closure2.__workletHash = 12006414940221;
|
||||
closure2.__initData = env0_7;
|
||||
Reflect.apply(useAnimatedReaction, reanimatedRexportModule, [closure, closure2]);
|
||||
return property;
|
||||
}
|
||||
|
||||
function _fun102772(a0) { // fn#102772, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13711:1939, offset: 0x02248122, size: 32 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
env0_5(_fun102773);
|
||||
}
|
||||
|
||||
function _fun102774() { // fn#102774, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13711:1982, offset: 0x02248156, size: 18 bytes, params: 1, frame: 11
|
||||
env0_5(0);
|
||||
}
|
||||
|
||||
function useBountiesRecapOrbCountB() { // fn#102775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13711:2037, owner: useBountiesRecapOrbCount.b, offset: 0x02248168, size: 166 bytes, params: 1, frame: 18
|
||||
var r0;
|
||||
var value2;
|
||||
var moduleValue;
|
||||
var value5;
|
||||
var object2;
|
||||
if (enabled) {
|
||||
if (recapRevealHeight <= 0) {
|
||||
return {'count': 0, 'revealed': false};
|
||||
}
|
||||
value2 = environment.__proto__;
|
||||
moduleValue = require(13520) /* metro dependency 13520: useBountiesRecapScroll */;
|
||||
value5 = moduleValue.getRevealProgress(scrollY.get(), lastBountyScrollOffset, recapRevealHeight) / 0.95;
|
||||
if (value5 <= 0.1) {
|
||||
r0 = {'count': 0, 'revealed': false};
|
||||
} else {
|
||||
object2 = {};
|
||||
object2.count = env1_5(value5, targetOrbAmount);
|
||||
object2.revealed = true;
|
||||
r0 = object2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
return {'count': 0, 'revealed': false};
|
||||
}
|
||||
|
||||
function useBountiesRecapOrbCountP({count, revealed}) { // fn#102776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13711:2474, owner: useBountiesRecapOrbCount.p, offset: 0x0224820e, size: 81 bytes, params: 2, frame: 14
|
||||
let value = environment.__proto__;
|
||||
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const runOnJS = value.runOnJS;
|
||||
if (revealed) {
|
||||
Reflect.apply(runOnJS, value, [env0_6])(count);
|
||||
} else {
|
||||
Reflect.apply(runOnJS, value, [env0_7])();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102773(a0) { // fn#102773, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13711:1946, offset: 0x02248142, size: 20 bytes, params: 2, frame: 3
|
||||
const value = a0;
|
||||
return env0_0 > value ? env0_0 : value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
/* Metro module 13520; source: modules/quests/native/BountiesModal/useBountiesRecapScroll.tsx; dependencies: [31, 2] */
|
||||
function _fun102760(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13710:6, offset: 0x02247b91, size: 152 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importAll(31) /* metro dependency 31 */;
|
||||
object = {code: 'function getRevealProgress_useBountiesRecapScrollTsx1(scrollOffset,startOffset,revealHeight){if(revealHeight<=0){return 0;}return(scrollOffset-startOffset)/revealHeight;}'};
|
||||
const value = _fun102761();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountiesModal/useBountiesRecapScroll.tsx');
|
||||
exports.RECAP_SNAP_EPSILON = 2;
|
||||
exports.getRevealProgress = value;
|
||||
exports.useBountiesRecapScroll = useBountiesRecapScroll;
|
||||
}
|
||||
|
||||
function _fun102761() { // fn#102761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13710:290, offset: 0x02247c29, size: 48 bytes, params: 1, frame: 2
|
||||
const closure = function(a0, a1, a2) {
|
||||
var value = 0;
|
||||
return a2 <= value ? value : (a0 - a1) / a2;
|
||||
};
|
||||
closure.__closure = {};
|
||||
closure.__workletHash = 9769647749947;
|
||||
closure.__initData = env0_1;
|
||||
return closure;
|
||||
}
|
||||
|
||||
function useBountiesRecapScroll({listRef, enabled, offsets}) { // fn#102763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13710:664, offset: 0x02247c75, size: 217 bytes, params: 2, frame: 18
|
||||
const binding = listRef;
|
||||
let useCallback = binding.useCallback;
|
||||
let value = Reflect.apply(useCallback, binding, [function(a0) {
|
||||
if (listRef.current != null) {
|
||||
listRef.current.scrollToOffset({offset: a0, animated: true});
|
||||
}
|
||||
}, [listRef]]);
|
||||
const value2 = binding.useCallback(_fun102765, [offsets.lastBounty, value]);
|
||||
value = binding.useCallback(_fun102766, [enabled, offsets.fullRecap, offsets.lastBounty, offsets.revealHeight,
|
||||
value]);
|
||||
useCallback = binding.useCallback;
|
||||
return {scrollToLastBounty: value2, handleRecapMomentumEnd: Reflect.apply(useCallback, binding, [_fun102767,
|
||||
[enabled, value]])};
|
||||
}
|
||||
|
||||
function _fun102765() { // fn#102765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13710:844, offset: 0x02247d89, size: 26 bytes, params: 1, frame: 11
|
||||
env0_3(offsets.lastBounty);
|
||||
}
|
||||
|
||||
function _fun102766(a0) { // fn#102766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13710:902, offset: 0x02247da3, size: 138 bytes, params: 2, frame: 16
|
||||
var r1;
|
||||
var offsetsBinding;
|
||||
var value2;
|
||||
var binding;
|
||||
if (enabled) {
|
||||
if (!(a0 <= offsets.lastBounty)) {
|
||||
value2 = environment.__proto__;
|
||||
binding = env1_2;
|
||||
offsetsBinding = offsets;
|
||||
r1 = binding(a0, offsetsBinding.lastBounty,
|
||||
offsetsBinding.revealHeight) >= 0.25 ? offsets.fullRecap : offsets.lastBounty;
|
||||
if (!(global.Math.abs(a0 - r1) < 2)) {
|
||||
env0_3(r1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102767(a0) { // fn#102767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13710:1139, offset: 0x02247e2d, size: 39 bytes, params: 2, frame: 11
|
||||
if (enabled) {
|
||||
env0_4(a0.contentOffset.y);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
/* Metro module 13537; source: modules/quests/native/BountiesModal/useBountyVideoProgressPersistence.tsx; dependencies: [57, 31, 7092, 6528, 9530, 13533, 9532, 2] */
|
||||
function _fun102883(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13727:6, offset: 0x0224ca4f, size: 189 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 bountyStore = importDefault(7092) /* metro dependency 7092: BountyStore */;
|
||||
const env0_5 = (require(6528) /* metro dependency 6528: QuestConstants */).QuestsExperimentLocations;
|
||||
const env0_6 = {'timestampSec': 0, 'maxTimestampSec': 0, 'duration': 0};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountiesModal/useBountyVideoProgressPersistence.tsx');
|
||||
exports.useBountyVideoProgressPersistence = useBountyVideoProgressPersistence;
|
||||
}
|
||||
|
||||
function useBountyVideoProgressPersistence({bountyId, endMode}) { // fn#102884, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13727:353, offset: 0x0224cb0c, size: 284 bytes, params: 2, frame: 17
|
||||
var object2;
|
||||
const BountiesStage1Experiment = (require(9530) /* metro dependency 9530: BountiesStage1Experiment */).BountiesStage1Experiment;
|
||||
const useConfig = BountiesStage1Experiment.useConfig;
|
||||
const VIDEO_MODAL_MOBILE = QuestsExperimentLocations.VIDEO_MODAL_MOBILE;
|
||||
const enabled = Reflect.apply(useConfig, BountiesStage1Experiment, [{location: VIDEO_MODAL_MOBILE}]).enabled;
|
||||
const env0_2 = enabled;
|
||||
const binding = env0_3;
|
||||
const property = env0_2(binding.useState(_fun102885), 1)[0];
|
||||
var env0_3 = binding.useRef(0);
|
||||
const env0_4 = binding.useRef(property.timestampSec);
|
||||
const env0_5 = binding.useRef(property.maxTimestampSec);
|
||||
const env0_6 = binding.useRef(property.duration);
|
||||
object2 = {initialProgress: property};
|
||||
object2.handleProgress = binding.useCallback(_fun102886, [enabled, bountyId]);
|
||||
object2.flushProgress = binding.useCallback(_fun102887, [enabled, bountyId]);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun102885() { // fn#102885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13727:524, offset: 0x0224cc28, size: 136 bytes, params: 1, frame: 15
|
||||
var value3;
|
||||
if (enabled) {
|
||||
value3 = BountyStore.getBountyVideoProgress(bountyId);
|
||||
return value3 == null ? env1_6 : endMode !== (require(13533) /* metro dependency 13533: useBountiesModalTiming */).BountyVideoEndMode.LOOP ? value3.timestampSec <= 5 ? env1_6 : value3 : value3.duration > 0 && value3.maxTimestampSec >= value3.duration - 1 || value3.timestampSec <= 5 ? env1_6 : value3;
|
||||
}
|
||||
return env1_6;
|
||||
}
|
||||
|
||||
function _fun102886(a0, a1, a2) { // fn#102886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13727:902, offset: 0x0224ccb0, size: 143 bytes, params: 4, frame: 16
|
||||
var value3;
|
||||
var moduleValue;
|
||||
env0_4.current = a2;
|
||||
env0_5.current = a0;
|
||||
env0_6.current = a1;
|
||||
if (enabled && a2 >= env0_3.current) {
|
||||
env0_3.current = a2 + 1;
|
||||
value3 = environment.__proto__;
|
||||
moduleValue = require(9532) /* metro dependency 9532: BountyActionCreators */;
|
||||
moduleValue.setBountyVideoProgress(bountyId, {timestampSec: a2, maxTimestampSec: a0, duration: a1});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun102887() { // fn#102887, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13727:1099, offset: 0x0224cd3f, size: 98 bytes, params: 1, frame: 15
|
||||
var value2;
|
||||
var moduleValue;
|
||||
var setBountyVideoProgress;
|
||||
var bountyIdBinding;
|
||||
var object2;
|
||||
var current;
|
||||
if (enabled) {
|
||||
value2 = environment.__proto__;
|
||||
moduleValue = require(9532) /* metro dependency 9532: BountyActionCreators */;
|
||||
setBountyVideoProgress = moduleValue.setBountyVideoProgress;
|
||||
bountyIdBinding = bountyId;
|
||||
object2 = {};
|
||||
current = env0_4.current;
|
||||
object2.timestampSec = current;
|
||||
current = env0_5.current;
|
||||
object2.maxTimestampSec = current;
|
||||
current = env0_6.current;
|
||||
object2.duration = current;
|
||||
Reflect.apply(setBountyVideoProgress, moduleValue, [bountyIdBinding, object2]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
/* Metro module 13519; source: modules/quests/native/BountiesModal/useVisibilityTransition.tsx; dependencies: [57, 31, 4017, 4504, 2] */
|
||||
function _fun102755(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102755, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13709:6, offset: 0x022478cb, size: 165 bytes, params: 8, frame: 18
|
||||
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 */;
|
||||
object = {code: "function useVisibilityTransitionTsx1(){const{withTiming,visibility,visible,entranceTiming,exitTiming,runOnJS,animationCallbackJSThread}=this.__closure;return{opacity:withTiming(visibility,visible?entranceTiming:exitTiming,'respect-motion-settings',function(){'worklet';runOnJS(animationCallbackJSThread)();})};}"};
|
||||
object = {code: 'function useVisibilityTransitionTsx2(){const{runOnJS,animationCallbackJSThread}=this.__closure;runOnJS(animationCallbackJSThread)();}'};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountiesModal/useVisibilityTransition.tsx');
|
||||
exports.useVisibilityTransition = useVisibilityTransition;
|
||||
}
|
||||
|
||||
function useVisibilityTransition({visible, entranceTiming, exitTiming}) { // fn#102756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13709:707, offset: 0x02247970, size: 332 bytes, params: 2, frame: 26
|
||||
const env0_2 = exitTiming;
|
||||
let binding = env0_3;
|
||||
let useState = binding.useState;
|
||||
const value2 = Reflect.apply(useState, binding, [false]);
|
||||
const binding2 = env0_2;
|
||||
const value3 = binding2(value2, 2);
|
||||
const property = value3[0];
|
||||
const property2 = value3[1];
|
||||
var env0_3 = property2;
|
||||
useState = binding.useState;
|
||||
const value6 = binding2(Reflect.apply(useState, binding, [visible]), 2);
|
||||
if (value6[0] !== visible) {
|
||||
value6[1](visible);
|
||||
if (!visible) {
|
||||
property2(true);
|
||||
}
|
||||
}
|
||||
binding = env0_3;
|
||||
let closure = _fun102757;
|
||||
const value7 = binding.useCallback(closure, []);
|
||||
const env0_4 = value7;
|
||||
const r15 = visible ? 1 : 0;
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
closure = useVisibilityTransitionK;
|
||||
const object = {};
|
||||
object.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
|
||||
object.visibility = r15;
|
||||
object.visible = visible;
|
||||
object.entranceTiming = entranceTiming;
|
||||
object.exitTiming = exitTiming;
|
||||
object.runOnJS = reanimatedRexportModule.runOnJS;
|
||||
object.animationCallbackJSThread = value7;
|
||||
closure.__closure = object;
|
||||
closure.__workletHash = 12648900540770;
|
||||
closure.__initData = env0_4;
|
||||
return {opacityStyle: Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]),
|
||||
shouldRender: visible || property};
|
||||
}
|
||||
|
||||
function useVisibilityTransitionK() { // fn#102758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13709:986, owner: useVisibilityTransition.k, offset: 0x02247abc, size: 165 bytes, params: 1, frame: 24
|
||||
const timingModule = require(4504) /* metro dependency 4504: timing */;
|
||||
const withTiming = timingModule.withTiming;
|
||||
const binding = env0_5;
|
||||
const r3 = visible ? entranceTiming : exitTiming;
|
||||
const closure = kN;
|
||||
const object = {};
|
||||
object.runOnJS = (require(4017) /* metro dependency 4017: ReanimatedRexport */).runOnJS;
|
||||
object.animationCallbackJSThread = env0_4;
|
||||
closure.__closure = object;
|
||||
closure.__workletHash = 11904317879470;
|
||||
closure.__initData = env1_5;
|
||||
return {opacity: Reflect.apply(withTiming, timingModule, [binding, r3, 'respect-motion-settings', closure])};
|
||||
}
|
||||
|
||||
function kN() { // fn#102759, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13709:1062, owner: useVisibilityTransition.k.n, offset: 0x02247b61, size: 48 bytes, params: 1, frame: 12
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
value.runOnJS(env1_4)();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
/* Metro module 13558; source: modules/quests/native/BountiesNuxPromoSheet.tsx; dependencies: [31, 27, 33, 4501, 697, 4080, 13557, 12765, 1244, 5581, 4578, 2] */
|
||||
function _fun102971(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13748:6, offset: 0x022521ce, size: 226 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
const env0_6 = Reflect.apply(createStyles, createStylesModule, [{illustrationContainer: {paddingTop: PX_12}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountiesNuxPromoSheet.tsx');
|
||||
exports.default = BountiesNuxPromoSheet;
|
||||
}
|
||||
|
||||
function BountiesNuxPromoSheet() { // fn#102972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13748:308, offset: 0x022522b0, size: 356 bytes, params: 1, frame: 22
|
||||
const styles = useStyles();
|
||||
const value2 = env0_3.useCallback(function() {
|
||||
importDefault(dependencyMap[5]).hideActionSheet(require(dependencyMap[6]).PROMO_SHEET_KEY);
|
||||
}, []);
|
||||
const PromoSheet = (require(12765) /* metro dependency 12765: PromoSheetNative */).PromoSheet;
|
||||
const object2 = {gradientColor: 'purple'};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const DDpHZG = (require(1244) /* metro dependency 1244: indexNative */).t.DDpHZG;
|
||||
object2.title = Reflect.apply(string, intl, [DDpHZG]);
|
||||
object2.description = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['LY+igv']);
|
||||
const BountiesPosterSpotIllustration = (require(5581) /* metro dependency 5581: BountiesPosterSpotIllustrationNative */).BountiesPosterSpotIllustration;
|
||||
object2.illustration = <View style={styles.illustrationContainer}><BountiesPosterSpotIllustration width={273} height={205} /></View>;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
object2.actions = <Button grow size="lg" variant="primary" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)} onPress={value2} />;
|
||||
return <PromoSheet {...object2} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,248 @@
|
||||
/* Metro module 13560; source: modules/quests/native/BountyCard.tsx; dependencies: [57, 31, 27, 4502, 7092, 33, 4501, 697, 478, 566, 9495, 3860, 6239, 8011, 5475, 8707, 4573, 1244, 4578, 4073, 2] */
|
||||
function _fun103013(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13750:6, offset: 0x02253ab2, size: 370 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = 0;
|
||||
const env0_3 = importDefault(dependencyMap[value]);
|
||||
const value2 = importAll(31) /* metro dependency 31 */;
|
||||
const value3 = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value3.AppState;
|
||||
const env0_6 = value3.StyleSheet;
|
||||
const env0_7 = value3.View;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
const bountyStore = importDefault(7092) /* metro dependency 7092: BountyStore */;
|
||||
const value4 = require(33) /* metro dependency 33 */;
|
||||
const env0_10 = value4.jsx;
|
||||
const env0_11 = value4.jsxs;
|
||||
const env0_12 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun103014);
|
||||
const platformUtilsModule = require(478) /* metro dependency 478: PlatformUtils */;
|
||||
const env0_13 = platformUtilsModule.isAndroid() ? 150 : value;
|
||||
const env0_14 = platformUtilsModule.isAndroid();
|
||||
const env0_15 = platformUtilsModule.isAndroid();
|
||||
value = value2.memo(_fun103015);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/BountyCard.tsx');
|
||||
exports.default = value;
|
||||
exports.CARD_WIDTH = 188;
|
||||
}
|
||||
|
||||
function _fun103014() { // fn#103014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13750:240, offset: 0x02253c24, size: 557 bytes, params: 1, frame: 17
|
||||
const object2 = {};
|
||||
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object2.tile = {gap: PX_12};
|
||||
object2.card = {'width': 188, 'height': 313, 'overflow': 'hidden', 'padding': 0};
|
||||
const object6 = {};
|
||||
const value = copyDataProperties(object6, StyleSheet.absoluteFillObject, PX_12);
|
||||
object2.cardImage = object6;
|
||||
const object7 = {};
|
||||
copyDataProperties(object7, StyleSheet.absoluteFillObject, value);
|
||||
object2.previewVideo = object7;
|
||||
const object9 = {position: 'absolute'};
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object9.top = PX_12;
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object9.left = PX_12;
|
||||
const CONTROL_OVERLAY_PRIMARY_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CONTROL_OVERLAY_PRIMARY_BACKGROUND_DEFAULT;
|
||||
object9.backgroundColor = CONTROL_OVERLAY_PRIMARY_BACKGROUND_DEFAULT;
|
||||
object9.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object9.paddingHorizontal = PX_8;
|
||||
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object9.paddingVertical = PX_4;
|
||||
let CONTROL_OVERLAY_PRIMARY_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CONTROL_OVERLAY_PRIMARY_TEXT_DEFAULT;
|
||||
object9.color = CONTROL_OVERLAY_PRIMARY_TEXT_DEFAULT;
|
||||
object2.badge = object9;
|
||||
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object2.badgeContent = {'flexDirection': 'row', 'alignItems': 'center', gap: PX_4};
|
||||
CONTROL_OVERLAY_PRIMARY_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CONTROL_OVERLAY_PRIMARY_TEXT_DEFAULT;
|
||||
object2.badgeText = {textTransform: 'uppercase', color: CONTROL_OVERLAY_PRIMARY_TEXT_DEFAULT};
|
||||
const object10 = {position: 'absolute'};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object10.bottom = PX_8;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object10.left = PX_8;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object10.right = PX_8;
|
||||
object2.startButton = object10;
|
||||
object2.cardFooter = {'flexDirection': 'column', 'alignItems': 'flex-start', 'maxWidth': 188};
|
||||
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object2.advertiserRow = {'flexDirection': 'row', 'gap': null, 'alignItems': 'center', gap: PX_4};
|
||||
object2.advertiserName = {flexShrink: 1};
|
||||
object2.advertiserIcon = {'flexShrink': 0, 'opacity': 0.7};
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun103015({bounty, index, isActive, isModalVisible, onPress}) { // fn#103015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13750:1310, offset: 0x02253e51, size: 1995 bytes, params: 2, frame: 39
|
||||
const env0_3 = onPress;
|
||||
let env0_4 = undefined;
|
||||
const styles = useStyles();
|
||||
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([BountyStore], function() {
|
||||
return BountyStore.isBountyCompleted(bounty.id);
|
||||
});
|
||||
let binding = env0_4;
|
||||
const value4 = binding.useCallback(function() {
|
||||
onPress(bounty, index);
|
||||
}, [onPress, bounty, index]);
|
||||
const videoPreview = bounty.videoPreview;
|
||||
let r12 = bounty.imagePreview != null ? (require(9495) /* metro dependency 9495: AssetUtils */).getScaledImageUrl({'assetUrl': null,
|
||||
'width': 188, 'height': 313, assetUrl: bounty.imagePreview}) : null;
|
||||
r12 = r12 == null && videoPreview != null ? (require(9495) /* metro dependency 9495: AssetUtils */).getScaledFirstFrameImageUrl({'assetUrl': null,
|
||||
'width': 188, 'height': 313, assetUrl: videoPreview}) : r12;
|
||||
binding = env0_4;
|
||||
let useState = binding.useState;
|
||||
const value10 = Reflect.apply(useState, binding, [false]);
|
||||
const binding2 = env0_3;
|
||||
const value11 = binding2(value10, 2);
|
||||
const property = value11[0];
|
||||
env0_4 = value11[1];
|
||||
const value12 = binding.useCallback(_fun103018, []);
|
||||
useState = binding.useState;
|
||||
const value13 = binding2(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property2 = value13[0];
|
||||
const property3 = value13[1];
|
||||
useState = binding.useState;
|
||||
const value14 = binding2(Reflect.apply(useState, binding, [false]), 2);
|
||||
const property4 = value14[0];
|
||||
const property5 = value14[1];
|
||||
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
|
||||
function() {
|
||||
return AccessibilityStore.useReducedMotion;
|
||||
});
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
const useToken = useTokenModule.useToken;
|
||||
const BOUNTY_TILE_BORDER_RADIUS = (importDefault(697) /* metro dependency 697: native */).modules.mobile.BOUNTY_TILE_BORDER_RADIUS;
|
||||
const value15 = Reflect.apply(useToken, useTokenModule, [BOUNTY_TILE_BORDER_RADIUS]);
|
||||
const env0_8 = binding.useRef(null);
|
||||
const value16 = binding.useCallback(_fun103020, []);
|
||||
useState = binding.useState;
|
||||
const value17 = binding2(Reflect.apply(useState, binding, [isActive]), 2);
|
||||
if (isActive !== value17[0]) {
|
||||
value17[1](isActive);
|
||||
if (isActive) {
|
||||
if (property2 && !property4) {
|
||||
property3(false);
|
||||
}
|
||||
if (property4) {
|
||||
property5(false);
|
||||
}
|
||||
} else if (env0_14) {
|
||||
property5(true);
|
||||
}
|
||||
}
|
||||
binding = env0_4;
|
||||
const env0_9 = binding.useRef(null);
|
||||
binding.useEffect(_fun103022, [property4]);
|
||||
binding.useEffect(_fun103025, [isActive]);
|
||||
binding.useEffect(function() {
|
||||
return _fun103027;
|
||||
}, []);
|
||||
useState = binding.useState;
|
||||
const value20 = env0_3(Reflect.apply(useState, binding, [AppState.currentState === 'active']), 2);
|
||||
const property8 = value20[0];
|
||||
const env0_10 = value20[1];
|
||||
binding.useEffect(function() {
|
||||
var env0_0 = AppState.addEventListener('change', _fun103029);
|
||||
return _fun103030;
|
||||
}, []);
|
||||
let r7 = (isActive || property4) && videoPreview != null && property;
|
||||
let r5 = env0_15 && isModalVisible;
|
||||
r5 = !r5 && !(property4 && !isActive) && r7 && property2;
|
||||
const value25 = env0_4.useMemo(_fun103031, [r5]);
|
||||
const Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
|
||||
r7 = r7 && ((Component) => <Component accessible={false} importantForAccessibility="no-hide-descendants" accessibilityRole="none" onReadyForDisplay={value16} source={{uri: videoPreview}} style={styles.previewVideo} resizeMode="cover" repeat muted disableFocus paused={property8 ? useReducedMotion : !property8} />)(importDefault(8011) /* metro dependency 8011 */);
|
||||
const items2 = [r7];
|
||||
items2[1] = ((Component) => <Component style={[styles.cardImage,
|
||||
value25]} onLoad={value12} source={{uri: r12 ?? undefined}} resizeMode="cover" />)(importDefault(5475) /* metro dependency 5475: FastImage */);
|
||||
const r9 = value3 && ((CheckmarkSmallBoldIcon) => <CheckmarkSmallBoldIcon size="xxs" color={(importDefault(697) /* metro dependency 697: native */).colors.CONTROL_OVERLAY_PRIMARY_TEXT_DEFAULT} />)((require(8707) /* metro dependency 8707: CheckmarkSmallBoldIcon */).CheckmarkSmallBoldIcon);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
items2[2] = <View style={styles.badge}><View style={styles.badgeContent}>{r9}<Text variant="text-xs/bold" style={styles.badgeText}>{Reflect.apply(string,
|
||||
intl, [value3 ? t.vlGTLf : t['fFIJ/9']])}</Text></View></View>;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
string = intl.string;
|
||||
items2[3] = <View style={styles.startButton}><Button variant="secondary-overlay" text={value3 ? Reflect.apply(string,
|
||||
intl, [t['9UtZAY']]) : Reflect.apply(string, intl, [t.LhlgY9])} onPress={value4} /></View>;
|
||||
const card = <Card style={styles.card} radius={value15} onPress={value4} android_ripple={{color: 'transparent'}}>{items2}</Card>;
|
||||
const text = <Text variant="text-sm/medium" color="text-subtle" lineClamp={1} style={styles.advertiserName}>{bounty.advertiserName ?? ''}</Text>;
|
||||
const CircleCheckIcon = (require(4073) /* metro dependency 4073: CircleCheckIcon */).CircleCheckIcon;
|
||||
const ICON_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.ICON_SUBTLE;
|
||||
return (
|
||||
<View style={styles.tile}>
|
||||
{card}
|
||||
<View style={styles.cardFooter}>
|
||||
<View style={styles.advertiserRow}>
|
||||
{text}
|
||||
<CircleCheckIcon
|
||||
size="xxs"
|
||||
style={styles.advertiserIcon}
|
||||
color={ICON_SUBTLE}
|
||||
/>
|
||||
</View>
|
||||
<Text variant="text-sm/medium" color="text-muted">
|
||||
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.o6FLcF)}
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun103020() { // fn#103020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13750:2026, offset: 0x0225464e, size: 86 bytes, params: 1, frame: 14
|
||||
if (env0_8.current != null) {
|
||||
global.clearTimeout(env0_8.current);
|
||||
}
|
||||
env0_8.current = global.setTimeout(_fun103021, env1_13);
|
||||
}
|
||||
|
||||
function _fun103022() { // fn#103022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13750:2238, offset: 0x022546a4, size: 57 bytes, params: 1, frame: 15
|
||||
if (env0_6) {
|
||||
env0_9.current = global.setTimeout(_fun103023, 150);
|
||||
}
|
||||
return _fun103024;
|
||||
}
|
||||
|
||||
function _fun103025() { // fn#103025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13750:2393, offset: 0x0225473c, size: 129 bytes, params: 1, frame: 12
|
||||
if (isActive && env0_9.current != null) {
|
||||
global.clearTimeout(env0_9.current);
|
||||
env0_9.current = null;
|
||||
}
|
||||
if (!(isActive || env0_8.current == null)) {
|
||||
global.clearTimeout(env0_8.current);
|
||||
env0_8.current = null;
|
||||
}
|
||||
}
|
||||
|
||||
function _fun103026() { // fn#103026, offset: 0x022547bd, size: 11 bytes, params: 1, frame: 1
|
||||
return _fun103027;
|
||||
}
|
||||
|
||||
function _fun103028() { // fn#103028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13750:2698, offset: 0x02254800, size: 45 bytes, params: 1, frame: 14
|
||||
const env0_0 = AppState.addEventListener('change', _fun103029);
|
||||
return _fun103030;
|
||||
}
|
||||
|
||||
function _fun103031() { // fn#103031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13750:2859, offset: 0x0225482d, size: 23 bytes, params: 1, frame: 3
|
||||
return {opacity: env0_11 ? 0 : 1};
|
||||
}
|
||||
|
||||
function _fun103023() { // fn#103023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13750:2269, offset: 0x022546dd, size: 39 bytes, params: 1, frame: 12
|
||||
env1_7(false);
|
||||
env1_5(false);
|
||||
env1_9.current = null;
|
||||
}
|
||||
|
||||
function _fun103024() { // fn#103024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13750:2309, offset: 0x02254704, size: 56 bytes, params: 1, frame: 13
|
||||
if (env1_9.current != null) {
|
||||
global.clearTimeout(env1_9.current);
|
||||
env1_9.current = null;
|
||||
}
|
||||
}
|
||||
|
||||
function _fun103027() { // fn#103027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13750:2544, offset: 0x022547c8, size: 56 bytes, params: 1, frame: 13
|
||||
if (env1_8.current != null) {
|
||||
global.clearTimeout(env1_8.current);
|
||||
env1_8.current = null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,82 @@
|
||||
/* Metro module 13634; source: modules/quests/native/PremiumRewardGradient.tsx; dependencies: [31, 27, 33, 4501, 4000, 697, 3860, 4048, 3967, 4589, 5302, 2] */
|
||||
function _fun104119(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13831:6, offset: 0x022864fa, size: 521 bytes, params: 8, frame: 24
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_4 = value.StyleSheet;
|
||||
const env0_5 = value.View;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({wrapper: {'position': 'relative',
|
||||
'overflow': 'hidden'}, fill: {'position': 'absolute', 'left': 0, 'right': 0, 'bottom': 0, 'height': '100%'},
|
||||
glow: {'position': 'absolute', 'left': 0, 'right': 0, 'bottom': 0, 'height': '50%'}, glowLight: {opacity: 0.5}});
|
||||
const env0_9 = {'x': 0, 'y': 0.5};
|
||||
const env0_10 = {'x': 1, 'y': 0.5};
|
||||
const env0_11 = {'x': 0.5, 'y': 0};
|
||||
const env0_12 = {'x': 0.5, 'y': 1};
|
||||
value = require(4000) /* metro dependency 4000: ColorUtils */;
|
||||
value = value.hexOpacityToRgba('#000000', 0);
|
||||
const BLACK = (importDefault(697) /* metro dependency 697: native */).colors.BLACK;
|
||||
const value3 = (require(4000) /* metro dependency 4000: ColorUtils */).hexOpacityToRgba('#FFFFFF', 0);
|
||||
const WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const env0_13 = createStylesModule.createStyleProperties({transparentBlack: value, opaqueBlack: BLACK,
|
||||
transparentWhite: value3, opaqueWhite: WHITE});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/PremiumRewardGradient.tsx');
|
||||
exports.default = _default_104125;
|
||||
}
|
||||
|
||||
function useGradientColors() { // fn#104120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13831:672, offset: 0x02286703, size: 149 bytes, params: 1, frame: 20
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
let useToken = useTokenModule.useToken;
|
||||
const EXPRESSIVE_GRADIENT_NITRO_PINK_START = (importDefault(697) /* metro dependency 697: native */).colors.EXPRESSIVE_GRADIENT_NITRO_PINK_START;
|
||||
const value2 = Reflect.apply(useToken, useTokenModule, [EXPRESSIVE_GRADIENT_NITRO_PINK_START]);
|
||||
const moduleValue2 = useTokenModule;
|
||||
useToken = moduleValue2.useToken;
|
||||
const EXPRESSIVE_GRADIENT_NITRO_PINK_END = (importDefault(697) /* metro dependency 697: native */).colors.EXPRESSIVE_GRADIENT_NITRO_PINK_END;
|
||||
return env0_3.useMemo(_fun104121, [value2, Reflect.apply(useToken, moduleValue2,
|
||||
[EXPRESSIVE_GRADIENT_NITRO_PINK_END])]);
|
||||
}
|
||||
|
||||
function PremiumRewardFillGradient({children, style}) { // fn#104122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13831:883, offset: 0x022867b1, size: 364 bytes, params: 2, frame: 26
|
||||
const styles = useStyles();
|
||||
const value2 = useGradientColors();
|
||||
const {transparentBlack, opaqueBlack, transparentWhite, opaqueWhite} = env0_13();
|
||||
return (
|
||||
<View style={[styles.wrapper, style]}>
|
||||
{((Component) => <Component style={styles.fill} colors={value2} start={env0_9} end={env0_10} pointerEvents="none" />)(importDefault(4589) /* metro dependency 4589 */)}
|
||||
{((Component) => <Component style={styles.fill} colors={opaqueWhite.useMemo(_fun104123, [transparentBlack,
|
||||
opaqueBlack, transparentWhite, opaqueWhite,
|
||||
(require(3967) /* metro dependency 3967: shared */).isThemeDark((importDefault(4048) /* metro dependency 4048: useTheme */)())])} start={env0_11} end={env0_12} pointerEvents="none" />)(importDefault(4589) /* metro dependency 4589 */)}
|
||||
{children}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function PremiumRewardGlowGradient({children, style}) { // fn#104124, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13831:1321, offset: 0x02286956, size: 339 bytes, params: 2, frame: 26
|
||||
const styles = useStyles();
|
||||
return (
|
||||
<View style={[styles.wrapper, style]}>
|
||||
{((Component) => <Component style={[styles.glow,
|
||||
!(require(3967) /* metro dependency 3967: shared */).isThemeDark((importDefault(4048) /* metro dependency 4048: useTheme */)()) && styles.glowLight]} maskElement={((Component) => <Component style={StyleSheet.absoluteFill} colors={['transparent',
|
||||
'black']} start={env0_11} end={env0_12} />)(importDefault(4589) /* metro dependency 4589 */)}>{((Component) => <Component style={StyleSheet.absoluteFill} colors={useGradientColors()} start={env0_9} end={env0_10} />)(importDefault(4589) /* metro dependency 4589 */)}</Component>)(importDefault(5302) /* metro dependency 5302 */)}
|
||||
{children}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _default_104125({visible, style, children, glow}) { // fn#104125, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13831:1709, offset: 0x02286aa9, size: 77 bytes, params: 2, frame: 16
|
||||
return ((Component) => <Component style={style}>{children}</Component>)(visible ? glow ? PremiumRewardGlowGradient : PremiumRewardFillGradient : View);
|
||||
}
|
||||
|
||||
function _fun104121() { // fn#104121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13831:865, offset: 0x02286798, size: 25 bytes, params: 1, frame: 3
|
||||
return [env0_0, env0_1];
|
||||
}
|
||||
|
||||
function _fun104123() { // fn#104123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13831:1102, offset: 0x0228691d, size: 57 bytes, params: 1, frame: 4
|
||||
return env0_4 ? [transparentBlack, opaqueBlack] : [transparentWhite, opaqueWhite];
|
||||
}
|
||||
|
||||
@@ -0,0 +1,283 @@
|
||||
/* Metro module 15386; source: modules/quests/native/QuestActivityUnenrolledModal.tsx; dependencies: [5, 57, 31, 27, 7093, 15385, 6528, 33, 4501, 697, 478, 4048, 3866, 566, 6777, 7116, 9483, 9950, 6531, 1423, 9484, 7120, 5080, 3874, 4572, 5475, 9542, 4573, 1244, 4578, 7974, 5277, 8160, 10183, 10121, 2] */
|
||||
function _fun117629(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15583:6, offset: 0x024bb1c2, size: 339 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 env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_5 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_6 = value.Pressable;
|
||||
const env0_7 = value.View;
|
||||
const questStore = importDefault(7093) /* metro dependency 7093: QuestStore */;
|
||||
const unenrolledActivityQuestStore = importDefault(15385) /* metro dependency 15385: UnenrolledActivityQuestStore */;
|
||||
const env0_10 = (require(6528) /* metro dependency 6528: QuestConstants */).QuestsExperimentLocations;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_11 = value.jsx;
|
||||
const env0_12 = value.jsxs;
|
||||
object = {MAIN: 'main'};
|
||||
const env0_14 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun117639);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestActivityUnenrolledModal.tsx');
|
||||
exports.default = QuestActivityUnenrolledModal;
|
||||
}
|
||||
|
||||
function QuestActivityUnenrolledModalInner({quest}) { // fn#117630, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15583:1751, offset: 0x024bb315, size: 1610 bytes, params: 2, frame: 41
|
||||
var object2;
|
||||
const value2 = (require(4048) /* metro dependency 4048: useTheme */).useTheme();
|
||||
const themesModule = require(3866) /* metro dependency 3866: themes */;
|
||||
const styles = useStyles(themesModule.isThemeDark(value2));
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStores = fluxModule.useStateFromStores;
|
||||
const [property, env0_2] = env0_4(env0_5.useState(Reflect.apply(useStateFromStores, fluxModule,
|
||||
[[UnenrolledActivityQuestStore], function() {
|
||||
return UnenrolledActivityQuestStore.getState().autoEnroll;
|
||||
}])), 2);
|
||||
const useGetOrFetchApplicationsModule = require(6777) /* metro dependency 6777: useGetOrFetchApplications */;
|
||||
const useGetOrFetchApplication = useGetOrFetchApplicationsModule.useGetOrFetchApplication;
|
||||
const questTaskUtilsModule = require(7116) /* metro dependency 7116: QuestTaskUtils */;
|
||||
const getActivityApplicationId = questTaskUtilsModule.getActivityApplicationId;
|
||||
const value5 = Reflect.apply(useGetOrFetchApplication, useGetOrFetchApplicationsModule,
|
||||
[Reflect.apply(getActivityApplicationId, questTaskUtilsModule, [quest])]);
|
||||
const env0_3 = value5;
|
||||
const value6 = (require(9483) /* metro dependency 9483: QuestHooks */).useQuestTaskDetails(quest);
|
||||
const questCopyHooksModule = require(9950) /* metro dependency 9950: QuestCopyHooks */;
|
||||
const useQuestsInstructionsToWinReward = questCopyHooksModule.useQuestsInstructionsToWinReward;
|
||||
object2 = {quest: quest, taskDetails: value6};
|
||||
let QUEST_ACTIVITY_UNENROLLED_MODAL = QuestsExperimentLocations.QUEST_ACTIVITY_UNENROLLED_MODAL;
|
||||
object2.location = QUEST_ACTIVITY_UNENROLLED_MODAL;
|
||||
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
|
||||
QUEST_ACTIVITY_UNENROLLED_MODAL = QuestContent.QUEST_ACTIVITY_UNENROLLED_MODAL;
|
||||
object2.sourceQuestContent = QUEST_ACTIVITY_UNENROLLED_MODAL;
|
||||
const value7 = Reflect.apply(useQuestsInstructionsToWinReward, questCopyHooksModule, [object2]);
|
||||
const value8 = env0_5.useMemo(_fun117632, [value5]);
|
||||
const value10 = env0_5.useCallback(env0_3(_fun117634), [quest.id]);
|
||||
const {accessibilityRole,
|
||||
accessibilityState} = (require(3874) /* metro dependency 3874: useA11yRolesNative */).useCheckboxA11yNative({checked: property});
|
||||
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
const view = <View style={styles.baseShadow}><View style={styles.imagesContainer}>{value8 != null && <View style={styles.appIconContainer}>{((Component) => <Component source={{uri: value8}} style={styles.appIcon} />)(importDefault(5475) /* metro dependency 5475: FastImage */)}</View>}<View style={styles.rewardTileContainer}>{((Component) => <Component quest={quest} height={87} width={87} style={styles.questRewardTile} />)(importDefault(9542) /* metro dependency 9542: QuestRewardTile */)}</View></View></View>;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const IrNgN4 = (require(1244) /* metro dependency 1244: indexNative */).t.IrNgN4;
|
||||
const text = <Text variant="heading-xl/bold" color="mobile-text-heading-primary" style={{textAlign: 'center'}}>{Reflect.apply(string,
|
||||
intl, [IrNgN4])}</Text>;
|
||||
const format = intl.format;
|
||||
const V3NSJx = (require(1244) /* metro dependency 1244: indexNative */).t.V3NSJx;
|
||||
const view2 = <View style={styles.content}>{view}<View style={styles.textContainer}>{text}<Text variant="text-sm/normal" color="text-subtle" style={{textAlign: 'center'}}>{Reflect.apply(format,
|
||||
intl, [V3NSJx, {questName: quest.config.messages.questName}])}{'\xa0'}{value7}</Text></View></View>;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const view3 = <View style={styles.buttonsContainer}><Button size="lg" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.l7E81v)} onPress={value10} /><Button size="lg" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.fyT2ol)} onPress={onPress_117635} variant="secondary" /></View>;
|
||||
const pressableProps = {accessibilityRole: accessibilityRole,
|
||||
accessibilityLabel: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['931n1T']),
|
||||
accessibilityState: accessibilityState, onPress: onPress_117636, style: {'alignSelf': 'center',
|
||||
'flexDirection': 'row', 'alignItems': 'center', 'gap': 8}};
|
||||
const FormCheckbox = (require(7974) /* metro dependency 7974: FormCheckboxNative */).FormCheckbox;
|
||||
return (
|
||||
<Stack
|
||||
direction="vertical"
|
||||
align="center"
|
||||
justify="center"
|
||||
style={styles.container}
|
||||
>
|
||||
{view2}
|
||||
<View style={styles.footer}>
|
||||
{view3}
|
||||
<Pressable {...pressableProps}>
|
||||
<FormCheckbox checked={property} />
|
||||
<Text variant="text-sm/normal" color="text-subtle">
|
||||
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['931n1T'])}
|
||||
</Text>
|
||||
</Pressable>
|
||||
</View>
|
||||
</Stack>
|
||||
);
|
||||
}
|
||||
|
||||
function CloseButton_117637() { // fn#117637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15583:4284, offset: 0x024bbb21, size: 129 bytes, params: 1, frame: 18
|
||||
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
|
||||
const headerActionButtonProps = {source: importDefault(8160) /* metro dependency 8160 */, onPress: onPress_117638};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
headerActionButtonProps.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq);
|
||||
return <HeaderActionButton {...headerActionButtonProps} />;
|
||||
}
|
||||
|
||||
function _fun117639(a0) { // fn#117639, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15583:311, offset: 0x024bbbc7, size: 783 bytes, params: 2, frame: 22
|
||||
var r12;
|
||||
var items;
|
||||
var r3;
|
||||
var object3;
|
||||
const object5 = {};
|
||||
const object6 = {flex: 1};
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object6.paddingHorizontal = PX_24;
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object6.paddingVertical = PX_16;
|
||||
const PX_48 = (importDefault(697) /* metro dependency 697: native */).space.PX_48;
|
||||
object6.paddingBottom = PX_48;
|
||||
object5.container = object6;
|
||||
object5.content = {marginTop: 'auto'};
|
||||
const object7 = {'flexDirection': 'row', 'justifyContent': 'center', 'alignItems': 'center'};
|
||||
const PX_32 = (importDefault(697) /* metro dependency 697: native */).space.PX_32;
|
||||
object7.marginBottom = PX_32;
|
||||
const platformUtilsModule = require(478) /* metro dependency 478: PlatformUtils */;
|
||||
if (platformUtilsModule.isIOS()) {
|
||||
r3 = a0 ? {'shadowColor': 'rgb(144, 144, 251)', 'shadowOffset': null, 'shadowOpacity': 0.6, 'shadowRadius': 85,
|
||||
shadowOffset: {'width': 0, 'height': 0}} : {};
|
||||
} else {
|
||||
if (a0) {
|
||||
object3 = {'standardDeviation': '85px', 'color': 'rgba(144, 144, 250, 0.41)', 'offsetX': 0, 'offsetY': 0};
|
||||
items = [{dropShadow: {'standardDeviation': '85px', 'color': 'rgba(144, 144, 251, 0.65)', 'offsetX': 0,
|
||||
'offsetY': 0}}, {dropShadow: object3}];
|
||||
r12 = object3;
|
||||
} else {
|
||||
items = [];
|
||||
}
|
||||
r3 = {filter: items};
|
||||
}
|
||||
copyDataProperties(object7, r3, r12);
|
||||
object5.imagesContainer = object7;
|
||||
const isIOS2 = platformUtilsModule.isIOS();
|
||||
const object9 = {};
|
||||
if (isIOS2) {
|
||||
copyDataProperties(object9, a0 ? {'shadowColor': 'rgb(144, 144, 250)', 'shadowOffset': null,
|
||||
'shadowOpacity': 0.4,
|
||||
'shadowRadius': 85, shadowOffset: {'width': 0, 'height': 16}} : {}, r12);
|
||||
}
|
||||
object5.baseShadow = object9;
|
||||
const object10 = {'borderRadius': null, 'borderWidth': 2.18, 'borderColor': 'rgba(151, 151, 159, 0.24)',
|
||||
'borderStyle': 'solid', 'transform': null, 'overflow': 'hidden'};
|
||||
object10.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xl;
|
||||
object10.transform = [{rotate: '-12.41deg'}];
|
||||
object5.appIconContainer = object10;
|
||||
const object12 = {'width': 87, 'height': 87};
|
||||
object12.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xl - 2.18;
|
||||
object5.appIcon = object12;
|
||||
const object13 = {'borderWidth': 2.18, 'borderColor': 'rgba(151, 151, 159, 0.24)', 'borderRadius': null,
|
||||
'borderStyle': 'solid', 'transform': null, 'overflow': 'hidden'};
|
||||
object13.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xl;
|
||||
object13.transform = [{translateX: -10}, {rotate: '7.81deg'}];
|
||||
object5.rewardTileContainer = object13;
|
||||
const object15 = {};
|
||||
object15.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xl - 2.18;
|
||||
object5.questRewardTile = object15;
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object5.textContainer = {alignItems: 'center', gap: PX_8};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object5.buttonsContainer = {'flexDirection': 'column', 'gap': null, 'marginBottom': 20, gap: PX_8};
|
||||
object5.footer = {'flexDirection': 'column', 'width': '100%', 'marginTop': 'auto'};
|
||||
return object5;
|
||||
}
|
||||
|
||||
function QuestActivityUnenrolledModal({questId}) { // fn#117640, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15583:4548, offset: 0x024bbed6, size: 202 bytes, params: 2, frame: 18
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStores = fluxModule.useStateFromStores;
|
||||
let object = [QuestStore];
|
||||
if (Reflect.apply(useStateFromStores, fluxModule, [object, function() {
|
||||
return QuestStore.getQuest(questId);
|
||||
}]) == null) {
|
||||
return null;
|
||||
}
|
||||
object = {};
|
||||
const binding = env0_13;
|
||||
let MAIN = binding.MAIN;
|
||||
object[MAIN] = {headerLeft: CloseButton_117637, headerRight: function() {
|
||||
return null;
|
||||
}, headerTitle: headerTitle_117643, render: render_117644};
|
||||
const Modal = (require(10121) /* metro dependency 10121: ModalNative */).Modal;
|
||||
MAIN = binding.MAIN;
|
||||
return <Modal screens={object} initialRouteName={MAIN} />;
|
||||
}
|
||||
|
||||
function _fun117632() { // fn#117632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15583:2270, offset: 0x024bb978, size: 85 bytes, params: 1, frame: 14
|
||||
var r0;
|
||||
var value3;
|
||||
var defaultImport;
|
||||
var getApplicationIconURL;
|
||||
var binding;
|
||||
const value2 = null;
|
||||
if (value2 == env0_3) {
|
||||
r0 = value2;
|
||||
} else {
|
||||
value3 = environment.__proto__;
|
||||
defaultImport = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
getApplicationIconURL = defaultImport.getApplicationIconURL;
|
||||
binding = env0_3;
|
||||
r0 = Reflect.apply(getApplicationIconURL, defaultImport, [{id: binding.id, icon: binding.icon, size: 87}]);
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function* _fun117634() { // fn#117634, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15583:2374, offset: 0x024bb9d8, size: 194 bytes, params: 1, frame: 20
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var binding = env2_0;
|
||||
var binding2 = env2_2;
|
||||
var value3 = binding(binding2[20]);
|
||||
var enrollInQuest = value3.enrollInQuest;
|
||||
var id = require.id;
|
||||
var object2 = {};
|
||||
var QuestContent = binding(binding2[18]).QuestContent;
|
||||
var QUEST_ACTIVITY_UNENROLLED_MODAL = QuestContent.QUEST_ACTIVITY_UNENROLLED_MODAL;
|
||||
object2.questContent = QUEST_ACTIVITY_UNENROLLED_MODAL;
|
||||
var QuestContentCTA = binding(binding2[21]).QuestContentCTA;
|
||||
var START_QUEST = QuestContentCTA.START_QUEST;
|
||||
object2.questContentCTA = START_QUEST;
|
||||
QuestContent = binding(binding2[18]).QuestContent;
|
||||
QUEST_ACTIVITY_UNENROLLED_MODAL = QuestContent.QUEST_ACTIVITY_UNENROLLED_MODAL;
|
||||
object2.sourceQuestContent = QUEST_ACTIVITY_UNENROLLED_MODAL;
|
||||
yield Reflect.apply(enrollInQuest, value3, [id, object2]);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
env2_1(env2_2[22]).pop();
|
||||
}
|
||||
}
|
||||
|
||||
function QuestActivityUnenrolledModalInnerOnPress() { // fn#117635, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15583:3778, owner: QuestActivityUnenrolledModalInner.onPress, offset: 0x024bba9a, size: 76 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
const questActionCreatorsModule = require(9484) /* metro dependency 9484: QuestActionCreators */;
|
||||
questActionCreatorsModule.dismissQuestActivityModal(quest.id);
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
|
||||
}
|
||||
|
||||
function QuestActivityUnenrolledModalInnerOnPress_117636() { // fn#117636, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15583:3981, owner: QuestActivityUnenrolledModalInner.onPress, offset: 0x024bbae6, size: 59 bytes, params: 1, frame: 13
|
||||
const binding = env0_2;
|
||||
const value = !env0_1;
|
||||
binding(value);
|
||||
(require(9484) /* metro dependency 9484: QuestActionCreators */).setAutoEnroll(value);
|
||||
}
|
||||
|
||||
function CloseButton_117637OnPress() { // fn#117638, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15583:4369, owner: CloseButton_117637.onPress, offset: 0x024bbba2, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return (importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
|
||||
}
|
||||
|
||||
function QuestActivityUnenrolledModalHeaderTitle() { // fn#117643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15583:4754, owner: QuestActivityUnenrolledModal.headerTitle, offset: 0x024bbfbb, size: 107 bytes, params: 1, frame: 18
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<Text variant="redesign/heading-18/bold" color="mobile-text-heading-primary">
|
||||
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.l7E81v)}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
function QuestActivityUnenrolledModalRender() { // fn#117644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15583:4904, owner: QuestActivityUnenrolledModal.render, offset: 0x024bc026, size: 125 bytes, params: 1, frame: 17
|
||||
const QuestContentImpressionTrackerNative = (require(10183) /* metro dependency 10183: QuestContentImpressionTrackerNative */).QuestContentImpressionTrackerNative;
|
||||
const questContentImpressionTrackerNativeProps = {questOrQuests: quest};
|
||||
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
|
||||
let QUEST_ACTIVITY_UNENROLLED_MODAL = QuestContent.QUEST_ACTIVITY_UNENROLLED_MODAL;
|
||||
questContentImpressionTrackerNativeProps.questContent = QUEST_ACTIVITY_UNENROLLED_MODAL;
|
||||
QUEST_ACTIVITY_UNENROLLED_MODAL = QuestContent.QUEST_ACTIVITY_UNENROLLED_MODAL;
|
||||
questContentImpressionTrackerNativeProps.sourceQuestContent = QUEST_ACTIVITY_UNENROLLED_MODAL;
|
||||
return (
|
||||
<QuestContentImpressionTrackerNative {...questContentImpressionTrackerNativeProps}>
|
||||
{children_117645}
|
||||
</QuestContentImpressionTrackerNative>
|
||||
);
|
||||
}
|
||||
|
||||
function renderChildren() { // fn#117645, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15583:5121, owner: QuestActivityUnenrolledModal.render.children, offset: 0x024bc0a3, size: 35 bytes, params: 1, frame: 13
|
||||
return <QuestActivityUnenrolledModalInner quest={quest} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,424 @@
|
||||
/* Metro module 13591; source: modules/quests/native/QuestBottomSheet/QuestBottomSheet.tsx; dependencies: [57, 31, 27, 7093, 6528, 33, 4501, 697, 7099, 9484, 3857, 1244, 8947, 9483, 9520, 6531, 13568, 566, 10183, 7116, 6275, 13592, 13593, 9949, 9513, 7120, 9519, 9517, 9518, 7121, 13630, 13632, 13633, 7114, 8129, 4573, 2] */
|
||||
function _fun103256(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13781:6, offset: 0x0225e8d9, size: 687 bytes, params: 8, frame: 28
|
||||
const env0_0 = require;
|
||||
const closure = useEnrolledQuestContentProps;
|
||||
const closure2 = QuestBottomSheetContent;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
let value = importDefault(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(31) /* metro dependency 31 */).useState;
|
||||
const env0_6 = (require(27) /* metro dependency 27 */).View;
|
||||
const questStore = importDefault(7093) /* metro dependency 7093: QuestStore */;
|
||||
const questConstantsModule = require(6528) /* metro dependency 6528: QuestConstants */;
|
||||
const env0_8 = questConstantsModule.QuestsExperimentLocations;
|
||||
const env0_9 = questConstantsModule.QuestTaskPlatform;
|
||||
const value3 = require(33) /* metro dependency 33 */;
|
||||
const env0_10 = value3.jsx;
|
||||
const env0_11 = value3.jsxs;
|
||||
const env0_12 = value3.Fragment;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const object = {};
|
||||
const object5 = {display: 'flex'};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.paddingHorizontal = PX_16;
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object5.gap = PX_24;
|
||||
object.contentContainer = object5;
|
||||
const object6 = {display: 'flex'};
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object6.gap = PX_8;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object6.marginHorizontal = -PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object6.paddingHorizontal = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object6.marginTop = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object6.paddingTop = PX_16;
|
||||
object6.borderTopWidth = 1;
|
||||
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object6.borderTopColor = BORDER_SUBTLE;
|
||||
object.microphoneUnit = object6;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object.microphoneUnitHeader = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', gap: PX_8};
|
||||
const env0_14 = Reflect.apply(createStyles, createStylesModule, [object]);
|
||||
value = value.createContext({isInQuestBottomSheet: false});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestBottomSheet/QuestBottomSheet.tsx');
|
||||
exports.default = QuestBottomSheetConnected;
|
||||
exports.QuestBottomSheetStep = {TASK_SELECT: 'TASK_SELECT', CONSOLE_CONNECT: 'CONSOLE_CONNECT',
|
||||
TASK_STATUS: 'TASK_STATUS'};
|
||||
exports.useEnrolledQuestContentProps = closure;
|
||||
exports.QuestBottomSheetContent = closure2;
|
||||
exports.QuestBottomSheetContext = value;
|
||||
}
|
||||
|
||||
function QuestBottomSheet({quest, initialStep, sourceQuestContent}) { // fn#103257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13781:861, offset: 0x0225eb88, size: 628 bytes, params: 2, frame: 35
|
||||
const styles = useStyles();
|
||||
let QUEST_HOME_MOBILE = QuestsExperimentLocations.QUEST_HOME_MOBILE;
|
||||
const {step, defibrillator, stepActions, handleTaskSelect,
|
||||
showMicrophone} = useEnrolledQuestContentProps({quest: quest, initialStep: initialStep,
|
||||
location: QUEST_HOME_MOBILE, sourceQuestContent: sourceQuestContent});
|
||||
const value3 = (require(13568) /* metro dependency 13568: QuestHooksNative */).useHasWatchVideoOnMobileTasks(quest.config);
|
||||
const hasWatchVideoTasks2 = (require(7116) /* metro dependency 7116: QuestTaskUtils */).hasWatchVideoTasks(quest);
|
||||
const isInGameQuest2 = (require(7116) /* metro dependency 7116: QuestTaskUtils */).isInGameQuest(quest);
|
||||
const [property, env0_0] = env0_3(useState(0), 2);
|
||||
const value7 = env0_4.useMemo(function() {
|
||||
return {isInQuestBottomSheet: true};
|
||||
}, []);
|
||||
const Provider = env0_15.Provider;
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
const object = {};
|
||||
const QuestBottomSheetHeader = importDefault(13592) /* metro dependency 13592: QuestBottomSheetHeader */;
|
||||
QUEST_HOME_MOBILE = QuestsExperimentLocations.QUEST_HOME_MOBILE;
|
||||
object.header = <QuestBottomSheetHeader quest={quest} step={step} location={QUEST_HOME_MOBILE} />;
|
||||
object.footer = isInGameQuest2 ? null : hasWatchVideoTasks2 ? value3 ? ((Component) => <Component quest={quest} sourceQuestContent={sourceQuestContent} step={step} isDefibrilating={defibrillator.isActive} onLayout={onLayout_103259} onBack={stepActions.onBack} onDefib={defibrillator.start} onConnectConsoleNext={stepActions.onNext} />)(importDefault(13593) /* metro dependency 13593: QuestBottomSheetFooter */) : null : ((Component) => <Component quest={quest} sourceQuestContent={sourceQuestContent} step={step} isDefibrilating={defibrillator.isActive} onLayout={onLayout_103259} onBack={stepActions.onBack} onDefib={defibrillator.start} onConnectConsoleNext={stepActions.onNext} />)(importDefault(13593) /* metro dependency 13593: QuestBottomSheetFooter */);
|
||||
object.startExpanded = true;
|
||||
const TASK_SELECT = env0_13.TASK_SELECT;
|
||||
QUEST_HOME_MOBILE = QuestsExperimentLocations.QUEST_HOME_MOBILE;
|
||||
return (
|
||||
<Provider value={value7}>
|
||||
<BottomSheet {...object}>
|
||||
<View style={[styles.contentContainer, {paddingBottom: step === TASK_SELECT ? 0 : property}]}>
|
||||
<QuestBottomSheetContent
|
||||
defibrillator={defibrillator}
|
||||
quest={quest}
|
||||
handleTaskSelect={handleTaskSelect}
|
||||
location={QUEST_HOME_MOBILE}
|
||||
showMicrophone={showMicrophone}
|
||||
sourceQuestContent={sourceQuestContent}
|
||||
step={step}
|
||||
/>
|
||||
</View>
|
||||
</BottomSheet>
|
||||
</Provider>
|
||||
);
|
||||
}
|
||||
|
||||
function useEnrolledQuestContentProps({quest, initialStep, location, sourceQuestContent}) { // fn#103260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13781:1913, offset: 0x0225ee07, size: 407 bytes, params: 2, frame: 23
|
||||
const env0_2 = (require(9949) /* metro dependency 9949: AnalyticsHooks */).useTrackQuestContentClickedWithImpression();
|
||||
const env0_3 = (require(9513) /* metro dependency 9513: ContentImpressionTrackerHooks */).useQuestImpressionId();
|
||||
const value3 = (require(9483) /* metro dependency 9483: QuestHooks */).useQuestTaskDetails(quest);
|
||||
const value4 = (require(9483) /* metro dependency 9483: QuestHooks */).useIsQuestProgressing(quest);
|
||||
const value6 = env0_3((require(9483) /* metro dependency 9483: QuestHooks */).useTaskPlatformScreen(quest, value3),
|
||||
3);
|
||||
const property = value6[0];
|
||||
const env0_4 = value6[2];
|
||||
const value7 = (require(13568) /* metro dependency 13568: QuestHooksNative */).useHasWatchVideoOnMobileTasks(quest.config);
|
||||
const value9 = env0_3(useSteps({quest: quest, initialStep: initialStep, location: location}), 2);
|
||||
const property2 = value9[0];
|
||||
const property3 = value9[1];
|
||||
const value10 = useDefibrillator(quest);
|
||||
const userStatus = quest.userStatus;
|
||||
return {quest: quest, defibrillator: value10, step: property2, stepActions: property3,
|
||||
showMicrophone: !(userStatus?.completedAt != null) && !value4 && property === (require(6531) /* metro dependency 6531: QuestTypes */).TaskPlatformScreen.CONSOLE && !value7,
|
||||
handleTaskSelect: handleTaskSelect};
|
||||
}
|
||||
|
||||
function QuestBottomSheetContent({defibrillator, quest, handleTaskSelect, showMicrophone, sourceQuestContent, step}) { // fn#103279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13781:5366, offset: 0x0225f98c, size: 400 bytes, params: 2, frame: 27
|
||||
var r5;
|
||||
var r10;
|
||||
var items2;
|
||||
showMicrophone = !(showMicrophone === undefined) && showMicrophone;
|
||||
const value4 = (require(13568) /* metro dependency 13568: QuestHooksNative */).useHasWatchVideoOnMobileTasks(quest.config);
|
||||
const value5 = env0_4.useMemo(_fun103280, [quest, value4, sourceQuestContent]);
|
||||
const jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
|
||||
const TASK_SELECT = env0_13.TASK_SELECT;
|
||||
const items3 = [step === TASK_SELECT && ((Component) => <Component onTaskSelect={handleTaskSelect} />)(importDefault(13632) /* metro dependency 13632: QuestBottomSheetTaskSelect */)];
|
||||
const CONSOLE_CONNECT = env0_13.CONSOLE_CONNECT;
|
||||
items3[1] = step === CONSOLE_CONNECT && ((Component) => <Component quest={quest} step={step} sourceQuestContent={sourceQuestContent} />)(importDefault(13633) /* metro dependency 13633: QuestBottomSheetConsoleConnect */);
|
||||
const TASK_STATUS = env0_13.TASK_STATUS;
|
||||
const value10 = step === TASK_STATUS;
|
||||
if (value10) {
|
||||
items2 = [value5];
|
||||
r10 = showMicrophone && !value4;
|
||||
r10 = r10 && <MicrophoneUnit quest={quest} errorHints={defibrillator?.errorHints} />;
|
||||
items2[1] = r10;
|
||||
r5 = <View>{items2}</View>;
|
||||
} else {
|
||||
r5 = value10;
|
||||
}
|
||||
items3[2] = r5;
|
||||
return (
|
||||
<>
|
||||
{items3}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function MicrophoneUnit({quest, errorHints}) { // fn#103281, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13781:6111, offset: 0x0225fbec, size: 648 bytes, params: 2, frame: 30
|
||||
var r7;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var items;
|
||||
var value7;
|
||||
var value8;
|
||||
const styles = useStyles();
|
||||
const questHooksModule = require(9483) /* metro dependency 9483: QuestHooks */;
|
||||
const useQuestHowToHelpArticle = questHooksModule.useQuestHowToHelpArticle;
|
||||
const message = Reflect.apply(useQuestHowToHelpArticle, questHooksModule, []).message;
|
||||
const value4 = (errorHints?.length ?? 0) > 0;
|
||||
if (value4) {
|
||||
if (errorHints != null) {
|
||||
value7 = errorHints.map(function(a0) {
|
||||
return a0.message;
|
||||
});
|
||||
items = [];
|
||||
value8 = arraySpread(items, value7, 0, undefined);
|
||||
items[value8] = message;
|
||||
value8 + 1;
|
||||
r7 = items;
|
||||
} else {
|
||||
r7 = [(require(7114) /* metro dependency 7114: QuestUtils */).isSponsoredPlayQuest(quest) ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bUyEZZ) : intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.GXqvC1,
|
||||
|
||||
|
||||
{gameTitle: quest.config.messages.gameTitle})];
|
||||
}
|
||||
} else {
|
||||
r7 = [(require(7114) /* metro dependency 7114: QuestUtils */).isSponsoredPlayQuest(quest) ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bUyEZZ) : intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.GXqvC1,
|
||||
|
||||
{gameTitle: quest.config.messages.gameTitle})];
|
||||
}
|
||||
const WarningIcon = (require(8129) /* metro dependency 8129: WarningIcon */).WarningIcon;
|
||||
const warningIcon = <WarningIcon color={value4 ? 'text-feedback-critical' : 'text-feedback-warning'} />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const items2 = [<View style={styles.microphoneUnitHeader}>{warningIcon}<Text variant="text-md/medium" color="mobile-text-heading-primary">{value4 ? intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['28Ql27'],
|
||||
{gameTitle: quest.config.messages.gameTitle}) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.YstzGO)}</Text></View>];
|
||||
items2[1] = r7.map(_fun103283);
|
||||
return (
|
||||
<View style={styles.microphoneUnit}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function QuestBottomSheetConnected({questId, initialStep, sourceQuestContent, questContentPosition}) { // fn#103284, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13781:7103, offset: 0x0225feb5, size: 211 bytes, params: 2, frame: 21
|
||||
const quest = (require(566) /* metro dependency 566: flux */).useStateFromStores([QuestStore], function() {
|
||||
return QuestStore.getQuest(questId);
|
||||
});
|
||||
if (quest == null) {
|
||||
return null;
|
||||
} else {
|
||||
const QuestContentImpressionTrackerNative = (require(10183) /* metro dependency 10183: QuestContentImpressionTrackerNative */).QuestContentImpressionTrackerNative;
|
||||
return (
|
||||
<QuestContentImpressionTrackerNative
|
||||
overrideVisibility
|
||||
questOrQuests={quest}
|
||||
questContent={(require(6531) /* metro dependency 6531: QuestTypes */).QuestContent.QUEST_BOTTOM_SHEET}
|
||||
questContentPosition={questContentPosition}
|
||||
sourceQuestContent={sourceQuestContent}
|
||||
>
|
||||
{children_103286}
|
||||
</QuestContentImpressionTrackerNative>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function useSteps({quest, initialStep}) { // fn#103261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13781:2287, owner: useEnrolledQuestContentProps.useSteps, offset: 0x0225ef9e, size: 843 bytes, params: 2, frame: 31
|
||||
const TaskPlatformScreen = (require(6531) /* metro dependency 6531: QuestTypes */).TaskPlatformScreen;
|
||||
const userStatus = quest.userStatus;
|
||||
const value2 = userStatus?.completedAt != null;
|
||||
const questHooksModule = require(9483) /* metro dependency 9483: QuestHooks */;
|
||||
const useConnectedAccounts = questHooksModule.useConnectedAccounts;
|
||||
const xboxAndPlaystationAccounts = Reflect.apply(useConnectedAccounts, questHooksModule,
|
||||
[]).xboxAndPlaystationAccounts;
|
||||
let binding = env1_4;
|
||||
const value4 = binding.useMemo(_fun103262, [quest, xboxAndPlaystationAccounts]);
|
||||
const value5 = questHooksModule.useQuestTaskDetails(quest);
|
||||
const value6 = questHooksModule.useIsQuestProgressing(quest);
|
||||
const value8 = env1_3(questHooksModule.useTaskPlatformScreen(quest, value5), 3);
|
||||
const property = value8[0];
|
||||
const property2 = value8[1];
|
||||
const property3 = value8[2];
|
||||
binding = env1_4;
|
||||
const useState = binding.useState;
|
||||
let r7 = value4.length === 0 && !value2 && property === TaskPlatformScreen.CONSOLE;
|
||||
r7 = !r7 ? initialStep === env1_13.CONSOLE_CONNECT : r7;
|
||||
const value14 = env1_3(Reflect.apply(useState, binding, [r7]), 2);
|
||||
const property4 = value14[0];
|
||||
const property5 = value14[1];
|
||||
const r12 = value6 || value5.progressSeconds > 0;
|
||||
let r5 = value4.length !== 0 || value2;
|
||||
r5 = !r5 ? property !== TaskPlatformScreen.CONSOLE : r5;
|
||||
r5 = !r5 ? property4 : r5;
|
||||
if (!r5) {
|
||||
property5(true);
|
||||
}
|
||||
const value18 = env1_4.useCallback(_fun103265, [property3]);
|
||||
const value19 = env1_4.useMemo(_fun103268, []);
|
||||
const value20 = env1_4.useMemo(_fun103269, [property4, r12]);
|
||||
const value21 = env1_4.useMemo(_fun103270, [property, property4, r12, value18]);
|
||||
const value22 = (require(13568) /* metro dependency 13568: QuestHooksNative */).useHasWatchVideoOnMobileTasks(quest.config);
|
||||
const questHooksNativeModule = require(13568) /* metro dependency 13568: QuestHooksNative */;
|
||||
const useMobileActivityQuest = questHooksNativeModule.useMobileActivityQuest;
|
||||
const value23 = env1_4.useMemo(_fun103271, [property2, value21, value19, value20, value22,
|
||||
Reflect.apply(useMobileActivityQuest, questHooksNativeModule, [quest]).isMobileActivityQuest]);
|
||||
return [value23.type, {onBack: value23?.onBack, onNext: value23?.onNext}];
|
||||
}
|
||||
|
||||
function useDefibrillator(a0) { // fn#103273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13781:3985, owner: useEnrolledQuestContentProps.useDefibrillator, offset: 0x0225f5c3, size: 206 bytes, params: 2, frame: 21
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const value = environment.__proto__;
|
||||
const getQuestLoggerModule = require(7099) /* metro dependency 7099: getQuestLogger */;
|
||||
const getQuestLogger = getQuestLoggerModule.getQuestLogger;
|
||||
const QUEST_HOME_MOBILE = QuestsExperimentLocations.QUEST_HOME_MOBILE;
|
||||
const value2 = Reflect.apply(getQuestLogger, getQuestLoggerModule, [{quest: a0, location: QUEST_HOME_MOBILE}]);
|
||||
const [property, property2] = env1_3(useState([]), 2);
|
||||
const [property3, property4] = env1_3(useState(false), 2);
|
||||
const binding = env1_4;
|
||||
const useCallback = binding.useCallback;
|
||||
return {errorHints: property, isActive: property3, start: Reflect.apply(useCallback, binding, [_fun103274, [a0,
|
||||
value2, property4, property2]])};
|
||||
}
|
||||
|
||||
function handleTaskSelect(a0) { // fn#103278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13781:4688, owner: useEnrolledQuestContentProps.handleTaskSelect, offset: 0x0225f7bf, size: 461 bytes, params: 2, frame: 19
|
||||
const QuestContentCTA = (require(7120) /* metro dependency 7120: AnalyticsTypes */).QuestContentCTA;
|
||||
var object2;
|
||||
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
|
||||
var captureAdUserAction;
|
||||
let value = environment.__proto__;
|
||||
const CONSOLE = QuestTaskPlatform.CONSOLE;
|
||||
const r6 = a0 === CONSOLE ? QuestContentCTA.SELECT_CONSOLE_PLATFORM : a0 === QuestTaskPlatform.DESKTOP ? QuestContentCTA.SELECT_DESKTOP_PLATFORM : QuestContentCTA.DESELECT_PLATFORM;
|
||||
const adAnalyticsInterfaceExperimentModule = require(9519) /* metro dependency 9519: AdAnalyticsInterfaceExperiment */;
|
||||
const shouldMigrateToAdAnalyticsInterface = adAnalyticsInterfaceExperimentModule.shouldMigrateToAdAnalyticsInterface;
|
||||
const AdAnalyticsInterfaceExperimentStep = adAnalyticsInterfaceExperimentModule.AdAnalyticsInterfaceExperimentStep;
|
||||
const STEP_2_CLICKED_INTERNAL = AdAnalyticsInterfaceExperimentStep.STEP_2_CLICKED_INTERNAL;
|
||||
if (Reflect.apply(shouldMigrateToAdAnalyticsInterface, adAnalyticsInterfaceExperimentModule,
|
||||
[STEP_2_CLICKED_INTERNAL, 'quest_bottom_sheet'])) {
|
||||
value = require(9517) /* metro dependency 9517: captureAdUserAction */;
|
||||
captureAdUserAction = value.captureAdUserAction;
|
||||
object2 = {};
|
||||
object2.type = (require(9518) /* metro dependency 9518: captureAdUserActionTypes */).AdUserActionType.CLICK_INTERNAL;
|
||||
object2.adCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType.QUEST;
|
||||
object2.adCreativeId = quest.id;
|
||||
object2.questContentCTA = r6;
|
||||
object2.surfaceId = QuestContent.QUEST_BOTTOM_SHEET;
|
||||
object2.sourceQuestContent = sourceQuestContent;
|
||||
object2.impressionId = env0_3;
|
||||
Reflect.apply(captureAdUserAction, value, [object2]);
|
||||
} else {
|
||||
env0_2({questId: quest.id, questContent: QuestContent.QUEST_BOTTOM_SHEET, questContentCTA: r6,
|
||||
sourceQuestContent: sourceQuestContent});
|
||||
}
|
||||
env0_4(a0);
|
||||
}
|
||||
|
||||
function _fun103280() { // fn#103280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13781:5561, offset: 0x0225fb1c, size: 208 bytes, params: 1, frame: 17
|
||||
var r0;
|
||||
var moduleValue;
|
||||
var isInGameQuest2;
|
||||
var moduleValue2;
|
||||
if (env0_2) {
|
||||
const QuestBottomSheetProgressCardWatchTask = (require(13630) /* metro dependency 13630: QuestBottomSheetProgressCard */).QuestBottomSheetProgressCardWatchTask;
|
||||
r0 = <QuestBottomSheetProgressCardWatchTask quest={quest} sourceQuestContent={sourceQuestContent} />;
|
||||
} else {
|
||||
moduleValue = require(7116) /* metro dependency 7116: QuestTaskUtils */;
|
||||
isInGameQuest2 = moduleValue.isInGameQuest(quest);
|
||||
moduleValue2 = require(13630) /* metro dependency 13630: QuestBottomSheetProgressCard */;
|
||||
r0 = isInGameQuest2 ? <moduleValue2.QuestBottomSheetProgressCardInGameTask quest={quest} sourceQuestContent={sourceQuestContent} /> : <moduleValue2.QuestBottomSheetProgressCardPlayStreamTask quest={quest} sourceQuestContent={sourceQuestContent} />;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun103283(a0, a1) { // fn#103283, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13781:6880, offset: 0x0225fe74, size: 65 bytes, params: 3, frame: 15
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return <Text {...{variant: 'text-sm/normal', children: a0}} key={a1} />;
|
||||
}
|
||||
|
||||
function QuestBottomSheetConnectedChildren() { // fn#103286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13781:7481, owner: QuestBottomSheetConnected.children, offset: 0x0225ffa3, size: 53 bytes, params: 1, frame: 14
|
||||
return (
|
||||
<QuestBottomSheet
|
||||
quest={quest}
|
||||
initialStep={initialStep}
|
||||
sourceQuestContent={sourceQuestContent}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun103262() { // fn#103262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13781:2464, offset: 0x0225f2e9, size: 64 bytes, params: 1, frame: 11
|
||||
var environment;
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = Reflect.apply((require(9520) /* metro dependency 9520: QuestPlatformUtils */).supportedConsoles, value,
|
||||
[quest]);
|
||||
return value.filter(function(a0) {
|
||||
var env0_0 = a0;
|
||||
return xboxAndPlaystationAccounts.find(_fun103264);
|
||||
});
|
||||
}
|
||||
|
||||
function _fun103265() { // fn#103265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13781:2912, offset: 0x0225f34d, size: 29 bytes, params: 1, frame: 12
|
||||
env0_6(false);
|
||||
env0_4(null);
|
||||
}
|
||||
|
||||
function _fun103268() { // fn#103268, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13781:3007, offset: 0x0225f38e, size: 36 bytes, params: 1, frame: 2
|
||||
const TASK_STATUS = env2_13.TASK_STATUS;
|
||||
return [{type: TASK_STATUS, shouldShow: true}];
|
||||
}
|
||||
|
||||
function _fun103269() { // fn#103269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13781:3066, offset: 0x0225f3b2, size: 95 bytes, params: 1, frame: 5
|
||||
const value = environment.__proto__.__proto__;
|
||||
const CONSOLE_CONNECT = env2_13.CONSOLE_CONNECT;
|
||||
const TASK_STATUS = env2_13.TASK_STATUS;
|
||||
return [{type: CONSOLE_CONNECT, shouldShow: env0_5, onNext: hideConsoleSelect}, {type: TASK_STATUS,
|
||||
shouldShow: true, onBack: env0_7 ? undefined : showConsoleSelect}];
|
||||
}
|
||||
|
||||
function _fun103270() { // fn#103270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13781:3225, offset: 0x0225f411, size: 249 bytes, params: 1, frame: 17
|
||||
const object2 = {};
|
||||
const TASK_SELECT = env2_13.TASK_SELECT;
|
||||
object2.type = TASK_SELECT;
|
||||
let binding = env0_2;
|
||||
const value3 = undefined;
|
||||
const TaskPlatformScreen = (require(6531) /* metro dependency 6531: QuestTypes */).TaskPlatformScreen;
|
||||
const SELECT = TaskPlatformScreen.SELECT;
|
||||
object2.shouldShow = binding === SELECT;
|
||||
const CONSOLE_CONNECT = env2_13.CONSOLE_CONNECT;
|
||||
binding = env0_2;
|
||||
const CONSOLE = TaskPlatformScreen.CONSOLE;
|
||||
const TASK_STATUS = env2_13.TASK_STATUS;
|
||||
return [object2, {type: CONSOLE_CONNECT, shouldShow: binding === CONSOLE && env0_5, onBack: env0_8,
|
||||
onNext: hideConsoleSelect}, {type: TASK_STATUS, shouldShow: true,
|
||||
onBack: env0_7 ? value3 : env0_2 === TaskPlatformScreen.CONSOLE ? showConsoleSelect : env0_8}];
|
||||
}
|
||||
|
||||
function _fun103271() { // fn#103271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13781:3661, offset: 0x0225f50a, size: 174 bytes, params: 1, frame: 14
|
||||
const r2 = env0_3.length === 1 && env0_3.includes(QuestTaskPlatform.DESKTOP) || env0_14 || isMobileActivityQuest ? env0_11 : env0_3.length === 1 && env0_3.includes(QuestTaskPlatform.CONSOLE) ? env0_12 : env0_13;
|
||||
return r2.find(function(a0) {
|
||||
return a0.shouldShow;
|
||||
}) ?? r2.at(-1);
|
||||
}
|
||||
|
||||
function _fun103274() { // fn#103274, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13781:4162, offset: 0x0225f691, size: 116 bytes, params: 1, frame: 14
|
||||
env0_3(true);
|
||||
const questActionCreatorsModule = require(9484) /* metro dependency 9484: QuestActionCreators */;
|
||||
let value = questActionCreatorsModule.manuallyStartConsoleQuest(env0_0.id);
|
||||
value = value.then(_fun103275);
|
||||
value = value.catch(_fun103276);
|
||||
value.finally(_fun103277);
|
||||
}
|
||||
|
||||
function _fun103263(a0) { // fn#103263, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13781:2506, offset: 0x0225f329, size: 36 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
return xboxAndPlaystationAccounts.find(_fun103264);
|
||||
}
|
||||
|
||||
function _fun103275({errorHints}) { // fn#103275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13781:4219, offset: 0x0225f705, size: 25 bytes, params: 2, frame: 11
|
||||
return env1_2(errorHints);
|
||||
}
|
||||
|
||||
function _fun103276(a0) { // fn#103276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13781:4251, offset: 0x0225f71e, size: 161 bytes, params: 2, frame: 19
|
||||
env1_2([]);
|
||||
env1_1.error('Failed to start console quest', a0);
|
||||
const defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
|
||||
const open = defaultImport.open;
|
||||
const object2 = {key: 'START_DEFIBRILLATOR_ERROR'};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const CKsXk3 = (require(1244) /* metro dependency 1244: indexNative */).t.CKsXk3;
|
||||
object2.content = Reflect.apply(string, intl, [CKsXk3]);
|
||||
object2.icon = importDefault(8947) /* metro dependency 8947 */;
|
||||
Reflect.apply(open, defaultImport, [object2]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,176 @@
|
||||
/* Metro module 13633; source: modules/quests/native/QuestBottomSheet/QuestBottomSheetConsoleConnect.tsx; dependencies: [31, 27, 661, 33, 697, 4501, 9483, 9949, 9513, 9520, 4080, 7007, 13591, 1962, 9519, 9517, 9518, 7121, 7120, 6531, 9354, 6231, 6238, 10162, 1244, 9986, 2] */
|
||||
function _fun104107(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13830:6, offset: 0x02285bd7, size: 358 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
(require(27) /* metro dependency 27 */).View;
|
||||
let value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_4 = value.PlatformTypes;
|
||||
const env0_5 = value.UserSettingsSections;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
value.jsxs;
|
||||
value.Fragment;
|
||||
(importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PLATFORM_XBOX;
|
||||
(importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PLATFORM_PLAYSTATION;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
Reflect.apply(createStyles, value, [{platformButtonsContainer: {'display': 'flex', 'flexDirection': 'row',
|
||||
'gap': null, 'justifyContent': 'space-between', gap: PX_16}, platformButton: {'flex': 1, 'display': 'flex',
|
||||
'justifyContent': 'center', 'alignItems': 'center'}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestBottomSheet/QuestBottomSheetConsoleConnect.tsx');
|
||||
exports.default = QuestBottomSheetConsoleConnect;
|
||||
}
|
||||
|
||||
function NonInlineConsoleConnection({consoles, onConsoleSelect}) { // fn#104108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13830:521, offset: 0x02285d3d, size: 94 bytes, params: 2, frame: 16
|
||||
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
return (
|
||||
<TableRowGroup hasIcons>
|
||||
{consoles.map(_fun104109)}
|
||||
</TableRowGroup>
|
||||
);
|
||||
}
|
||||
|
||||
function ConsoleRow(a0) { // fn#104110, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13830:695, offset: 0x02285dd5, size: 518 bytes, params: 2, frame: 24
|
||||
var value3;
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var value4;
|
||||
const env0_0 = a0.onPress;
|
||||
let value = Object.create(null);
|
||||
value.onPress = 0;
|
||||
value = copyDataProperties({}, a0, value, undefined);
|
||||
const type = value.type;
|
||||
const PLAYSTATION = PlatformTypes.PLAYSTATION;
|
||||
if (PLAYSTATION === type) {
|
||||
value4 = undefined;
|
||||
return (
|
||||
<TableRow
|
||||
arrow
|
||||
icon={((PlaystationNeutralIcon) => <PlaystationNeutralIcon />)((require(10162) /* metro dependency 10162: PlaystationNeutralIcon */).PlaystationNeutralIcon)}
|
||||
label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.JafL6p)}
|
||||
subLabel={value.account != null ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t['u30/ut']) : value4}
|
||||
onPress={onPress_104111}
|
||||
/>
|
||||
);
|
||||
}
|
||||
const XBOX = PlatformTypes.XBOX;
|
||||
if (XBOX === type) {
|
||||
value3 = undefined;
|
||||
return (
|
||||
<TableRow
|
||||
arrow
|
||||
icon={((XboxNeutralIcon) => <XboxNeutralIcon />)((require(9986) /* metro dependency 9986: XboxNeutralIcon */).XboxNeutralIcon)}
|
||||
label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.Nfvo72)}
|
||||
subLabel={value.account != null ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t['u30/ut']) : value3}
|
||||
onPress={onPress_104112}
|
||||
/>
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function QuestBottomSheetConsoleConnect({quest, step, sourceQuestContent}) { // fn#104113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13830:1351, offset: 0x02285fdb, size: 212 bytes, params: 2, frame: 18
|
||||
const questHooksModule = require(9483) /* metro dependency 9483: QuestHooks */;
|
||||
const useConnectedAccounts = questHooksModule.useConnectedAccounts;
|
||||
const xboxAndPlaystationAccounts = Reflect.apply(useConnectedAccounts, questHooksModule,
|
||||
[]).xboxAndPlaystationAccounts;
|
||||
const env0_3 = xboxAndPlaystationAccounts;
|
||||
const env0_4 = (require(9949) /* metro dependency 9949: AnalyticsHooks */).useTrackQuestContentClickedWithImpression();
|
||||
const env0_5 = (require(9513) /* metro dependency 9513: ContentImpressionTrackerHooks */).useQuestImpressionId();
|
||||
return (
|
||||
<NonInlineConsoleConnection
|
||||
consoles={env0_3.useMemo(_fun104114, [quest, xboxAndPlaystationAccounts])}
|
||||
onConsoleSelect={onConsoleSelect}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun104109(a0) { // fn#104109, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13830:650, offset: 0x02285d9b, size: 58 bytes, params: 2, frame: 16
|
||||
return (
|
||||
<ConsoleRow
|
||||
{...a0}
|
||||
{...{['onPress']: onConsoleSelect}}
|
||||
key={a0.type}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun104114() { // fn#104114, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13830:1594, offset: 0x022860af, size: 64 bytes, params: 1, frame: 11
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
value = Reflect.apply((require(9520) /* metro dependency 9520: QuestPlatformUtils */).supportedConsoles, value,
|
||||
[quest]);
|
||||
return value.map(function(a0) {
|
||||
var env0_0 = a0;
|
||||
var object = {type: a0};
|
||||
object.account = xboxAndPlaystationAccounts.find(_fun104116);
|
||||
return object;
|
||||
});
|
||||
}
|
||||
|
||||
function openQuestBottomSheet() { // fn#104117, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13830:1709, owner: QuestBottomSheetConsoleConnect.openQuestBottomSheet, offset: 0x0228611e, size: 117 bytes, params: 1, frame: 17
|
||||
let value = environment.__proto__;
|
||||
const defaultImport = importDefault(dependencyMap[10]);
|
||||
const openLazy = defaultImport.openLazy;
|
||||
value = require(dependencyMap[13]);
|
||||
value = value(dependencyMap[12], dependencyMap.paths);
|
||||
Reflect.apply(openLazy, defaultImport, [value, 'QuestBottomSheet', {questId: quest.id, initialStep: step,
|
||||
sourceQuestContent: sourceQuestContent}]);
|
||||
}
|
||||
|
||||
function onConsoleSelect(a0) { // fn#104118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13830:1891, owner: QuestBottomSheetConsoleConnect.onConsoleSelect, offset: 0x02286193, size: 871 bytes, params: 2, frame: 19
|
||||
var value;
|
||||
const AdAnalyticsInterfaceExperimentStep = (require(9519) /* metro dependency 9519: AdAnalyticsInterfaceExperiment */).AdAnalyticsInterfaceExperimentStep;
|
||||
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
|
||||
const QuestContentCTA = (require(7120) /* metro dependency 7120: AnalyticsTypes */).QuestContentCTA;
|
||||
const AdUserActionType = (require(9518) /* metro dependency 9518: captureAdUserActionTypes */).AdUserActionType;
|
||||
const AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType;
|
||||
var moduleValue3;
|
||||
if (a0.account != null) {
|
||||
value = environment.__proto__;
|
||||
moduleValue3 = require(9519) /* metro dependency 9519: AdAnalyticsInterfaceExperiment */;
|
||||
if (moduleValue3.shouldMigrateToAdAnalyticsInterface(AdAnalyticsInterfaceExperimentStep.STEP_2_CLICKED_INTERNAL,
|
||||
'quest_bottom_sheet_console_connect')) {
|
||||
(require(9517) /* metro dependency 9517: captureAdUserAction */).captureAdUserAction({type: AdUserActionType.CLICK_INTERNAL,
|
||||
|
||||
|
||||
adCreativeType: AdCreativeType.QUEST, adCreativeId: quest.id,
|
||||
questContentCTA: QuestContentCTA.VIEW_CONSOLE_CONNECTIONS, surfaceId: QuestContent.QUEST_BOTTOM_SHEET,
|
||||
sourceQuestContent: sourceQuestContent, impressionId: env0_5});
|
||||
} else {
|
||||
env0_4({questId: quest.id, questContent: QuestContent.QUEST_BOTTOM_SHEET,
|
||||
questContentCTA: QuestContentCTA.VIEW_CONSOLE_CONNECTIONS, sourceQuestContent: sourceQuestContent});
|
||||
}
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
(require(7007) /* metro dependency 7007: openUserSettings */).openUserSettings({screen: UserSettingsSections.CONNECTIONS});
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
var moduleValue = require(9519) /* metro dependency 9519: AdAnalyticsInterfaceExperiment */;
|
||||
if (moduleValue.shouldMigrateToAdAnalyticsInterface(AdAnalyticsInterfaceExperimentStep.STEP_2_CLICKED_INTERNAL,
|
||||
'quest_bottom_sheet_console_connect')) {
|
||||
(require(9517) /* metro dependency 9517: captureAdUserAction */).captureAdUserAction({type: AdUserActionType.CLICK_INTERNAL,
|
||||
|
||||
|
||||
adCreativeType: AdCreativeType.QUEST, adCreativeId: quest.id,
|
||||
questContentCTA: QuestContentCTA.CONNECT_CONSOLE,
|
||||
surfaceId: QuestContent.QUEST_BOTTOM_SHEET, sourceQuestContent: sourceQuestContent,
|
||||
impressionId: env0_5});
|
||||
} else {
|
||||
env0_4({questId: quest.id, questContent: QuestContent.QUEST_BOTTOM_SHEET,
|
||||
questContentCTA: QuestContentCTA.CONNECT_CONSOLE, sourceQuestContent: sourceQuestContent});
|
||||
}
|
||||
value = importDefault(9354) /* metro dependency 9354: authorizeConnectionNative */;
|
||||
value({platformType: a0.type, location: 'quests', onClose: openQuestBottomSheet});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun104115(a0) { // fn#104115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13830:1632, offset: 0x022860ef, size: 47 bytes, params: 2, frame: 12
|
||||
const env0_0 = a0;
|
||||
const object2 = {type: a0};
|
||||
object2.account = xboxAndPlaystationAccounts.find(_fun104116);
|
||||
return object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,389 @@
|
||||
/* Metro module 13593; source: modules/quests/native/QuestBottomSheet/QuestBottomSheetFooter.tsx; dependencies: [57, 31, 27, 4502, 1878, 7093, 6276, 33, 697, 4501, 6531, 9483, 9500, 9505, 8461, 566, 3860, 5132, 9480, 13594, 4578, 9523, 9520, 13568, 9950, 13591, 8341, 1244, 5284, 9949, 9513, 13127, 9519, 9517, 9518, 7121, 7120, 1585, 1478, 4017, 4504, 4582, 2] */
|
||||
function _fun103294(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103294, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13783:6, offset: 0x02260909, size: 457 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const closure = useQuestRewardClaimHandler;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const questStore = importDefault(7093) /* metro dependency 7093: QuestStore */;
|
||||
const env0_9 = (require(6276) /* metro dependency 6276: ActionSheetConstants */).ACTION_SHEET_MINIMUM_BOTTOM_PADDING;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_10 = value.jsx;
|
||||
const env0_11 = value.jsxs;
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
const env0_13 = Reflect.apply(createStyles, value, [{container: {'display': 'flex', 'flexGrow': 1, 'flexShrink': 1,
|
||||
paddingHorizontal: PX_16}}]);
|
||||
object = {code: "function QuestBottomSheetFooterTsx1(){const{animation,H_PADDING_PX}=this.__closure;return{opacity:animation.get(),position:'absolute',top:0,left:0,transform:[{translateX:H_PADDING_PX}]};}"};
|
||||
object = {code: "function QuestBottomSheetFooterTsx2(){const{interpolate,animation,windowWidth,H_PADDING_PX,ICON_SIZE_PX}=this.__closure;return{width:interpolate(animation.get(),[0,1],[windowWidth-H_PADDING_PX*2,windowWidth-H_PADDING_PX*2.5-ICON_SIZE_PX]),alignSelf:'flex-end'};}"};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestBottomSheet/QuestBottomSheetFooter.tsx');
|
||||
exports.default = QuestBottomSheetFooter;
|
||||
exports.useQuestRewardClaimHandler = closure;
|
||||
}
|
||||
|
||||
function useQuestRewardClaimHandler({quest, hideActionSheet, questContent, onSuccess, sourceQuestContent}) { // fn#103295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13783:375, offset: 0x02260ad2, size: 852 bytes, params: 2, frame: 32
|
||||
var r13;
|
||||
var styles;
|
||||
hideActionSheet = hideActionSheet === undefined || hideActionSheet;
|
||||
const r7 = questContent !== undefined ? questContent : (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent.QUEST_BOTTOM_SHEET;
|
||||
const env0_4 = sourceQuestContent;
|
||||
const value5 = (require(9483) /* metro dependency 9483: QuestHooks */).useProgressState(quest);
|
||||
const questRewardUtilsModule = require(9500) /* metro dependency 9500: QuestRewardUtils */;
|
||||
const hasCollectiblesQuestReward2 = questRewardUtilsModule.hasCollectiblesQuestReward(quest.config);
|
||||
let binding = env0_4;
|
||||
const useMemo = binding.useMemo;
|
||||
let object = [quest.config];
|
||||
const value6 = Reflect.apply(useMemo, binding, [_fun103296, object]);
|
||||
const useFetchCollectiblesProductModule = require(8461) /* metro dependency 8461: useFetchCollectiblesProduct */;
|
||||
const useFetchCollectiblesProduct = useFetchCollectiblesProductModule.useFetchCollectiblesProduct;
|
||||
const QuestProgressState = (require(9483) /* metro dependency 9483: QuestHooks */).QuestProgressState;
|
||||
const COMPLETED = QuestProgressState.COMPLETED;
|
||||
const {product, isFetching} = Reflect.apply(useFetchCollectiblesProduct, useFetchCollectiblesProductModule,
|
||||
[value5 !== COMPLETED ? null : hasCollectiblesQuestReward2 ? value6 : null]);
|
||||
const {isClaimingReward,
|
||||
isFetchingRewardCode} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([QuestStore],
|
||||
function() {
|
||||
var object = {};
|
||||
var questBinding = quest;
|
||||
object.isFetchingRewardCode = QuestStore.isFetchingRewardCode(questBinding.id);
|
||||
object.isClaimingReward = QuestStore.isClaimingReward(questBinding.id);
|
||||
return object;
|
||||
});
|
||||
const value10 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], _fun103298);
|
||||
const value11 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], _fun103299);
|
||||
const value12 = env0_4.useMemo(function() {
|
||||
return isFetching || isFetchingRewardCode;
|
||||
}, [isFetching, isFetchingRewardCode]);
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
let useToken = useTokenModule.useToken;
|
||||
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
|
||||
const value13 = Reflect.apply(useToken, useTokenModule, [BACKGROUND_BASE_LOWER]);
|
||||
const moduleValue8 = useTokenModule;
|
||||
useToken = moduleValue8.useToken;
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
const value14 = Reflect.apply(useToken, moduleValue8, [BACKGROUND_BASE_LOW]);
|
||||
const moduleValue9 = useTokenModule;
|
||||
useToken = moduleValue9.useToken;
|
||||
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
|
||||
if (product != null) {
|
||||
object = {};
|
||||
styles = product.styles;
|
||||
r13 = styles?.buttonColors ?? [];
|
||||
object.buttonColors = r13;
|
||||
styles = product.styles;
|
||||
r13 = styles?.confettiColors ?? [];
|
||||
object.confettiColors = r13;
|
||||
object.backgroundColors = [(importDefault(5132) /* metro dependency 5132 */)(value14),
|
||||
(importDefault(5132) /* metro dependency 5132 */)(value13),
|
||||
(importDefault(5132) /* metro dependency 5132 */)(Reflect.apply(useToken, moduleValue9,
|
||||
[BACKGROUND_BASE_LOWEST]))];
|
||||
product.styles = object;
|
||||
}
|
||||
binding = env0_4;
|
||||
const useCallback = binding.useCallback;
|
||||
return {isLoading: value12, isClaiming: isClaimingReward, claim: Reflect.apply(useCallback, binding, [_fun103301,
|
||||
[quest, product, value10, value11, hideActionSheet, r7, onSuccess, sourceQuestContent]])};
|
||||
}
|
||||
|
||||
function WatchTaskButton({questId, sourceQuestContent, taskDetails}) { // fn#103302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13783:1915, offset: 0x02260f6b, size: 143 bytes, params: 2, frame: 19
|
||||
const value2 = (require(13594) /* metro dependency 13594: QuestBottomSheetHooks */).useWatchTaskPressHandler({questId: questId,
|
||||
sourceQuestContent: sourceQuestContent});
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
return (
|
||||
<Button
|
||||
grow
|
||||
size="lg"
|
||||
onPress={value2}
|
||||
text={(require(9523) /* metro dependency 9523: MobileQuestVideoWatchCtaCopy */).getVideoQuestWatchCtaText(taskDetails)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function NextButton({onPress, disabled}) { // fn#103303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13783:2167, offset: 0x02260ffa, size: 130 bytes, params: 2, frame: 18
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<Button
|
||||
grow
|
||||
size="lg"
|
||||
onPress={onPress}
|
||||
disabled={disabled}
|
||||
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.a9OfTN)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function DefibButton({questId, loading, disabled, onPress, sourceQuestContent}) { // fn#103304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13783:2323, offset: 0x0226107c, size: 269 bytes, params: 2, frame: 19
|
||||
const env0_3 = (require(9949) /* metro dependency 9949: AnalyticsHooks */).useTrackQuestContentClickedWithImpression();
|
||||
const env0_4 = (require(9513) /* metro dependency 9513: ContentImpressionTrackerHooks */).useQuestImpressionId();
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const buttonProps = {'grow': true, 'size': 'lg', 'variant': 'secondary', loading: loading, disabled: disabled};
|
||||
const RefreshIcon = (require(13127) /* metro dependency 13127: RefreshIcon */).RefreshIcon;
|
||||
buttonProps.icon = <RefreshIcon />;
|
||||
buttonProps.iconPosition = 'end';
|
||||
buttonProps.onPress = onPress_103305;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
buttonProps.text = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.nPThNb);
|
||||
return <Button {...buttonProps} />;
|
||||
}
|
||||
|
||||
function ClaimButton({questId, disabled, loading, onPress, sourceQuestContent}) { // fn#103306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13783:3279, offset: 0x02261300, size: 224 bytes, params: 2, frame: 18
|
||||
const env0_3 = (require(9949) /* metro dependency 9949: AnalyticsHooks */).useTrackQuestContentClickedWithImpression();
|
||||
const env0_4 = (require(9513) /* metro dependency 9513: ContentImpressionTrackerHooks */).useQuestImpressionId();
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const buttonProps = {'grow': true, 'size': 'lg', disabled: disabled, loading: loading, onPress: onPress_103307};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
buttonProps.text = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cfY4PE);
|
||||
return <Button {...buttonProps} />;
|
||||
}
|
||||
|
||||
function AnimatedFooter({onLayout, ctaButton, backButton, style, withSafeArea}) { // fn#103308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13783:4630, offset: 0x02261549, size: 618 bytes, params: 2, frame: 29
|
||||
var object2;
|
||||
withSafeArea = withSafeArea === undefined || withSafeArea;
|
||||
const r16 = backButton != null && backButton !== false;
|
||||
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
|
||||
const styles = useStyles();
|
||||
const width = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)().width;
|
||||
const value2 = (() => (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
|
||||
_fun103310))();
|
||||
const value5 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(r16 ? 1 : 0);
|
||||
env0_4.useEffect(_fun103311, [r16, value2, value5]);
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
let useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
let closure = AnimatedFooterY;
|
||||
closure.__closure = {animation: value5, H_PADDING_PX: PX_16};
|
||||
closure.__workletHash = 7564903336036;
|
||||
closure.__initData = env0_14;
|
||||
const value6 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
|
||||
const moduleValue3 = reanimatedRexportModule;
|
||||
useAnimatedStyle = moduleValue3.useAnimatedStyle;
|
||||
closure = AnimatedFooterB;
|
||||
object2 = {interpolate: reanimatedRexportModule.interpolate, animation: value5, windowWidth: width,
|
||||
H_PADDING_PX: PX_16};
|
||||
const LARGE_BUTTON_HEIGHT = (require(4582) /* metro dependency 4582: ButtonConstantsNative */).LARGE_BUTTON_HEIGHT;
|
||||
object2.ICON_SIZE_PX = LARGE_BUTTON_HEIGHT;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 9095621288509;
|
||||
closure.__initData = env0_15;
|
||||
const value7 = Reflect.apply(useAnimatedStyle, moduleValue3, [closure]);
|
||||
const Math = global.Math;
|
||||
const value8 = Math.max(bottom, ACTION_SHEET_MINIMUM_BOTTOM_PADDING);
|
||||
const items2 = [styles.container];
|
||||
items2[1] = withSafeArea && ({paddingBottom: value8});
|
||||
items2[2] = style;
|
||||
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
const view = <View2 style={value6}>{backButton}</View2>;
|
||||
const View3 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
return (
|
||||
<View style={items2} onLayout={onLayout}>
|
||||
{view}
|
||||
<View3 style={value7}>
|
||||
{ctaButton}
|
||||
</View3>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function QuestBottomSheetFooter({quest, onLayout, step, isDefibrilating, onConnectConsoleNext, onBack, onDefib, style, withSafeArea, sourceQuestContent}) { // fn#103314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13783:5820, offset: 0x02261934, size: 1145 bytes, params: 2, frame: 40
|
||||
var r7;
|
||||
var r0;
|
||||
var value23;
|
||||
var IconButton;
|
||||
var intl;
|
||||
isDefibrilating = !(isDefibrilating === undefined) && isDefibrilating;
|
||||
const object2 = {quest: quest, sourceQuestContent: sourceQuestContent};
|
||||
const value4 = useQuestRewardClaimHandler(object2);
|
||||
const value5 = (require(9483) /* metro dependency 9483: QuestHooks */).useQuestTaskDetails(quest);
|
||||
const value6 = (require(9483) /* metro dependency 9483: QuestHooks */).useIsQuestProgressing(quest);
|
||||
const property = env0_3((require(9483) /* metro dependency 9483: QuestHooks */).useTaskPlatformScreen(quest,
|
||||
value5), 1)[0];
|
||||
const questHooksModule = require(9483) /* metro dependency 9483: QuestHooks */;
|
||||
const useConnectedAccounts = questHooksModule.useConnectedAccounts;
|
||||
const value9 = env0_4.useMemo(_fun103315, [quest, Reflect.apply(useConnectedAccounts, questHooksModule,
|
||||
[]).xboxAndPlaystationAccounts]);
|
||||
const value10 = (require(13568) /* metro dependency 13568: QuestHooksNative */).useHasWatchVideoOnMobileTasks(quest.config);
|
||||
const {isMobileActivityQuest, launchMobileActivity,
|
||||
questApplication} = (require(13568) /* metro dependency 13568: QuestHooksNative */).useMobileActivityQuest(quest);
|
||||
const value12 = (require(9950) /* metro dependency 9950: QuestCopyHooks */).usePrimaryCtaCopy({quest: quest,
|
||||
application: questApplication});
|
||||
const value13 = (require(13594) /* metro dependency 13594: QuestBottomSheetHooks */).useMobileActivityPressHandler({questId: quest.id,
|
||||
sourceQuestContent: sourceQuestContent, launchMobileActivity: launchMobileActivity});
|
||||
let userStatus = quest.userStatus;
|
||||
const value15 = userStatus?.completedAt != null;
|
||||
userStatus = quest.userStatus;
|
||||
const value16 = userStatus?.claimedAt != null;
|
||||
const QuestBottomSheetStep = (require(13591) /* metro dependency 13591: QuestBottomSheet */).QuestBottomSheetStep;
|
||||
const TASK_SELECT = QuestBottomSheetStep.TASK_SELECT;
|
||||
if (step === TASK_SELECT) {
|
||||
r0 = null;
|
||||
} else {
|
||||
var animatedFooterProps = {onLayout: onLayout,
|
||||
ctaButton: (require(13591) /* metro dependency 13591: QuestBottomSheet */).QuestBottomSheetStep.CONSOLE_CONNECT === step ? <NextButton onPress={onConnectConsoleNext} disabled={value9.length === 0} /> : (require(13591) /* metro dependency 13591: QuestBottomSheet */).QuestBottomSheetStep.TASK_STATUS !== step ? null : value15 ? <ClaimButton questId={quest.id} onPress={value4.claim} disabled={value16} loading={value4.isLoading || value4.isClaiming} sourceQuestContent={sourceQuestContent} /> : value10 ? <WatchTaskButton questId={quest.id} taskDetails={value5} sourceQuestContent={sourceQuestContent} /> : isMobileActivityQuest ? ((Button) => <Button grow size="lg" onPress={value13} text={value12} icon={(require(9480) /* metro dependency 9480: QuestUtilsNative */).getPrimaryCtaIcon(quest)} />)((require(4578) /* metro dependency 4578: ButtonNative */).Button) : property !== (require(6531) /* metro dependency 6531: QuestTypes */).TaskPlatformScreen.CONSOLE || value6 ? <ClaimButton questId={quest.id} onPress={value4.claim} disabled sourceQuestContent={sourceQuestContent} /> : <DefibButton questId={quest.id} loading={isDefibrilating} disabled={isDefibrilating} onPress={onDefib} sourceQuestContent={sourceQuestContent} />};
|
||||
value23 = onBack != null;
|
||||
if (value23) {
|
||||
IconButton = (require(8341) /* metro dependency 8341: IconButtonNative */).IconButton;
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
r7 = <IconButton accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])} variant="secondary" icon={((ArrowLargeLeftIcon) => <ArrowLargeLeftIcon />)((require(5284) /* metro dependency 5284: ArrowLargeLeftIcon */).ArrowLargeLeftIcon)} onPress={onBack} size="lg" />;
|
||||
} else {
|
||||
r7 = value23;
|
||||
}
|
||||
animatedFooterProps.backButton = r7;
|
||||
animatedFooterProps.style = style;
|
||||
animatedFooterProps.withSafeArea = withSafeArea;
|
||||
r0 = <AnimatedFooter {...animatedFooterProps} />;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun103296() { // fn#103296, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13783:636, offset: 0x02260e26, size: 56 bytes, params: 1, frame: 11
|
||||
let value = environment.__proto__;
|
||||
value = require(9505) /* metro dependency 9505: QuestCopyUtils */;
|
||||
const getDefaultReward = value.getDefaultReward;
|
||||
return Reflect.apply(getDefaultReward, value, [quest.config]).skuId;
|
||||
}
|
||||
|
||||
function _fun103298() { // fn#103298, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13783:1038, offset: 0x02260e9e, size: 39 bytes, params: 1, frame: 10
|
||||
var r0;
|
||||
let value = environment.__proto__;
|
||||
value = UserStore.getCurrentUser();
|
||||
if (value == null) {
|
||||
r0 = undefined;
|
||||
} else {
|
||||
value = value.hasVerifiedEmailOrPhone();
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun103299() { // fn#103299, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13783:1158, offset: 0x02260ec5, size: 35 bytes, params: 1, frame: 10
|
||||
const value = environment.__proto__;
|
||||
return UserStore.getCurrentUser()?.verified;
|
||||
}
|
||||
|
||||
function _fun103301() { // fn#103301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13783:1701, offset: 0x02260ef8, size: 115 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__;
|
||||
return (require(9480) /* metro dependency 9480: QuestUtilsNative */).handleRewardClaimThenView({quest: quest,
|
||||
product: product, hideActionSheet: hideActionSheet, questContent: env0_2,
|
||||
currentUserHasVerifiedEmailOrPhone: env0_8, currentUserHasVerifiedEmail: env0_9, onSuccess: onSuccess,
|
||||
sourceQuestContent: sourceQuestContent});
|
||||
}
|
||||
|
||||
function DefibButtonOnPress(a0) { // fn#103305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13783:2646, owner: DefibButton.onPress, offset: 0x02261189, size: 375 bytes, params: 2, frame: 17
|
||||
var object2;
|
||||
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
|
||||
const QuestContentCTA = (require(7120) /* metro dependency 7120: AnalyticsTypes */).QuestContentCTA;
|
||||
var captureAdUserAction;
|
||||
let value = environment.__proto__;
|
||||
const adAnalyticsInterfaceExperimentModule = require(9519) /* metro dependency 9519: AdAnalyticsInterfaceExperiment */;
|
||||
const shouldMigrateToAdAnalyticsInterface = adAnalyticsInterfaceExperimentModule.shouldMigrateToAdAnalyticsInterface;
|
||||
const AdAnalyticsInterfaceExperimentStep = adAnalyticsInterfaceExperimentModule.AdAnalyticsInterfaceExperimentStep;
|
||||
const STEP_2_CLICKED_INTERNAL = AdAnalyticsInterfaceExperimentStep.STEP_2_CLICKED_INTERNAL;
|
||||
if (Reflect.apply(shouldMigrateToAdAnalyticsInterface, adAnalyticsInterfaceExperimentModule,
|
||||
[STEP_2_CLICKED_INTERNAL, 'quest_bottom_sheet_footer'])) {
|
||||
value = require(9517) /* metro dependency 9517: captureAdUserAction */;
|
||||
captureAdUserAction = value.captureAdUserAction;
|
||||
object2 = {};
|
||||
object2.type = (require(9518) /* metro dependency 9518: captureAdUserActionTypes */).AdUserActionType.CLICK_INTERNAL;
|
||||
object2.adCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType.QUEST;
|
||||
object2.adCreativeId = questId;
|
||||
object2.questContentCTA = QuestContentCTA.DEFIBRILLATOR;
|
||||
object2.surfaceId = QuestContent.QUEST_BOTTOM_SHEET;
|
||||
object2.sourceQuestContent = sourceQuestContent;
|
||||
object2.impressionId = env0_4;
|
||||
Reflect.apply(captureAdUserAction, value, [object2]);
|
||||
} else {
|
||||
env0_3({questId: questId, questContent: QuestContent.QUEST_BOTTOM_SHEET,
|
||||
questContentCTA: QuestContentCTA.DEFIBRILLATOR, sourceQuestContent: sourceQuestContent});
|
||||
}
|
||||
if (onPress != null) {
|
||||
onPress(a0);
|
||||
}
|
||||
}
|
||||
|
||||
function ClaimButtonOnPress() { // fn#103307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13783:3531, owner: ClaimButton.onPress, offset: 0x022613e0, size: 361 bytes, params: 1, frame: 17
|
||||
var object2;
|
||||
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
|
||||
const QuestContentCTA = (require(7120) /* metro dependency 7120: AnalyticsTypes */).QuestContentCTA;
|
||||
var captureAdUserAction;
|
||||
let value = environment.__proto__;
|
||||
const adAnalyticsInterfaceExperimentModule = require(9519) /* metro dependency 9519: AdAnalyticsInterfaceExperiment */;
|
||||
const shouldMigrateToAdAnalyticsInterface = adAnalyticsInterfaceExperimentModule.shouldMigrateToAdAnalyticsInterface;
|
||||
const AdAnalyticsInterfaceExperimentStep = adAnalyticsInterfaceExperimentModule.AdAnalyticsInterfaceExperimentStep;
|
||||
const STEP_2_CLICKED_INTERNAL = AdAnalyticsInterfaceExperimentStep.STEP_2_CLICKED_INTERNAL;
|
||||
if (Reflect.apply(shouldMigrateToAdAnalyticsInterface, adAnalyticsInterfaceExperimentModule,
|
||||
[STEP_2_CLICKED_INTERNAL, 'quest_bottom_sheet_footer'])) {
|
||||
value = require(9517) /* metro dependency 9517: captureAdUserAction */;
|
||||
captureAdUserAction = value.captureAdUserAction;
|
||||
object2 = {};
|
||||
object2.type = (require(9518) /* metro dependency 9518: captureAdUserActionTypes */).AdUserActionType.CLICK_INTERNAL;
|
||||
object2.adCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType.QUEST;
|
||||
object2.adCreativeId = questId;
|
||||
object2.questContentCTA = QuestContentCTA.CLAIM_REWARD;
|
||||
object2.surfaceId = QuestContent.QUEST_BOTTOM_SHEET;
|
||||
object2.sourceQuestContent = sourceQuestContent;
|
||||
object2.impressionId = env0_4;
|
||||
Reflect.apply(captureAdUserAction, value, [object2]);
|
||||
} else {
|
||||
env0_3({questId: questId, questContent: QuestContent.QUEST_BOTTOM_SHEET,
|
||||
questContentCTA: QuestContentCTA.CLAIM_REWARD, sourceQuestContent: sourceQuestContent});
|
||||
}
|
||||
onPress();
|
||||
}
|
||||
|
||||
function AnimatedFooterUseReducedMotion() { // fn#103309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13783:4788, owner: AnimatedFooter.useReducedMotion, offset: 0x022617b3, size: 59 bytes, params: 1, frame: 13
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore], function() {
|
||||
return AccessibilityStore.useReducedMotion;
|
||||
});
|
||||
}
|
||||
|
||||
function _fun103311() { // fn#103311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13783:4930, offset: 0x022617fd, size: 85 bytes, params: 1, frame: 19
|
||||
const binding = env0_3;
|
||||
const set = binding.set;
|
||||
const timingModule = require(4504) /* metro dependency 4504: timing */;
|
||||
const withTiming = timingModule.withTiming;
|
||||
const value3 = 0;
|
||||
Reflect.apply(set, binding, [Reflect.apply(withTiming, timingModule, [env0_0 ? 1 : value3,
|
||||
{duration: env0_2 ? value3 : 200}])]);
|
||||
}
|
||||
|
||||
function AnimatedFooterY() { // fn#103312, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13783:5039, owner: AnimatedFooter.y, offset: 0x02261852, size: 64 bytes, params: 1, frame: 10
|
||||
const object2 = {'opacity': null, 'position': 'absolute', 'top': 0, 'left': 0};
|
||||
object2.opacity = env0_3.get();
|
||||
object2.transform = [{translateX: PX_16}];
|
||||
return object2;
|
||||
}
|
||||
|
||||
function AnimatedFooterB() { // fn#103313, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13783:5244, owner: AnimatedFooter.B, offset: 0x02261892, size: 162 bytes, params: 1, frame: 22
|
||||
let value = environment.__proto__;
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const interpolate = reanimatedRexportModule.interpolate;
|
||||
const value3 = env0_3.get();
|
||||
const items2 = [width - 2 * PX_16];
|
||||
value = width - 2.5 * PX_16;
|
||||
const LARGE_BUTTON_HEIGHT = (require(4582) /* metro dependency 4582: ButtonConstantsNative */).LARGE_BUTTON_HEIGHT;
|
||||
items2[1] = value - LARGE_BUTTON_HEIGHT;
|
||||
return {width: Reflect.apply(interpolate, reanimatedRexportModule, [value3, [0, 1], items2]), alignSelf: 'flex-end'};
|
||||
}
|
||||
|
||||
function _fun103315() { // fn#103315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13783:6251, offset: 0x02261dad, size: 64 bytes, params: 1, frame: 11
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
value = Reflect.apply((require(9520) /* metro dependency 9520: QuestPlatformUtils */).supportedConsoles, value,
|
||||
[quest]);
|
||||
return value.filter(function(a0) {
|
||||
var env0_0 = a0;
|
||||
return xboxAndPlaystationAccounts.find(_fun103317);
|
||||
});
|
||||
}
|
||||
|
||||
function _fun103316(a0) { // fn#103316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13783:6293, offset: 0x02261ded, size: 36 bytes, params: 2, frame: 11
|
||||
const env0_0 = a0;
|
||||
return xboxAndPlaystationAccounts.find(_fun103317);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,149 @@
|
||||
/* Metro module 13592; source: modules/quests/native/QuestBottomSheet/QuestBottomSheetHeader.tsx; dependencies: [57, 31, 27, 1878, 33, 4501, 697, 9483, 7116, 13568, 566, 9500, 7114, 1244, 13591, 6531, 13569, 4559, 4570, 4573, 5278, 8638, 2] */
|
||||
function _fun103287(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13782:6, offset: 0x0225ffd8, size: 390 bytes, params: 8, frame: 22
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object4 = {'display': 'flex', 'gap': 6};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object4.paddingHorizontal = PX_16;
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object4.paddingTop = PX_8;
|
||||
object3.container = object4;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3.containerWithActionSheet = {'alignItems': 'center', 'flexDirection': 'row', paddingHorizontal: PX_8};
|
||||
object3.title = {textAlign: 'center'};
|
||||
object3.titleWithActionSheet = {'textAlign': 'left', 'flex': 1};
|
||||
object3.actionSheetButton = {'flexGrow': 0, 'flexShrink': 0};
|
||||
const env0_9 = Reflect.apply(createStyles, value, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestBottomSheet/QuestBottomSheetHeader.tsx');
|
||||
exports.default = QuestBottomSheetHeader;
|
||||
}
|
||||
|
||||
function QuestBottomSheetHeader({quest, step, withActionSheet, location}) { // fn#103288, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13782:627, offset: 0x0226015e, size: 530 bytes, params: 2, frame: 26
|
||||
var r5;
|
||||
var PressableOpacity;
|
||||
var intl;
|
||||
withActionSheet = !(withActionSheet === undefined) && withActionSheet;
|
||||
const styles = useStyles();
|
||||
const value2 = (require(13569) /* metro dependency 13569: QuestDockHooks */).useActionSheetPressHandler(quest);
|
||||
const value3 = useHeaderCopy({quest: quest, step: step, location: location});
|
||||
const value4 = (require(4559) /* metro dependency 4559: useIsScreenReaderEnabledNative */).useIsScreenReaderEnabled();
|
||||
const binding = env0_4;
|
||||
const value5 = binding.useRef(null);
|
||||
binding.useEffect(_fun103293, [value4]);
|
||||
const items2 = [styles.container];
|
||||
items2[1] = withActionSheet && styles.containerWithActionSheet;
|
||||
const r6 = value3 != null && ((Text) => <Text ref={value5} variant="redesign/heading-18/bold" color="mobile-text-heading-primary" accessibilityRole="header" style={[styles.title,
|
||||
withActionSheet && styles.titleWithActionSheet]}>{value3}</Text>)((require(4573) /* metro dependency 4573: Text */).Text);
|
||||
if (withActionSheet) {
|
||||
PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
r5 = <PressableOpacity accessibilityRole="button" accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['UKOtz+'])} onPress={value2} style={styles.actionSheetButton}>{((MoreHorizontalIcon) => <MoreHorizontalIcon color={(importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT} />)((require(8638) /* metro dependency 8638: MoreHorizontalIcon */).MoreHorizontalIcon)}</PressableOpacity>;
|
||||
} else {
|
||||
r5 = withActionSheet;
|
||||
}
|
||||
return (
|
||||
<View style={items2}>
|
||||
{r6}
|
||||
{r5}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function useHeaderCopy({quest, step}) { // fn#103289, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13782:762, owner: QuestBottomSheetHeader.useHeaderCopy, offset: 0x02260370, size: 507 bytes, params: 2, frame: 28
|
||||
let value = undefined;
|
||||
const userStatus = quest.userStatus;
|
||||
const value2 = (userStatus == null ? value : userStatus.completedAt) != null;
|
||||
const gameTitle = quest.config.messages.gameTitle;
|
||||
const value4 = (require(9483) /* metro dependency 9483: QuestHooks */).useQuestTaskDetails(quest);
|
||||
const hasWatchVideoTasks2 = (require(7116) /* metro dependency 7116: QuestTaskUtils */).hasWatchVideoTasks(quest);
|
||||
const isInGameQuest2 = (require(7116) /* metro dependency 7116: QuestTaskUtils */).isInGameQuest(quest);
|
||||
const property = env1_3((require(9483) /* metro dependency 9483: QuestHooks */).useTaskPlatformScreen(quest,
|
||||
value4), 1)[0];
|
||||
const targetMinutes = value4.targetMinutes;
|
||||
const binding = env1_4;
|
||||
const value7 = binding.useMemo(_fun103290, [quest]);
|
||||
const value8 = (require(13568) /* metro dependency 13568: QuestHooksNative */).useHasWatchVideoOnMobileTasks(quest.config);
|
||||
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
|
||||
return UserStore.getCurrentUser();
|
||||
});
|
||||
const defaultRewardNameWithArticle = (require(9500) /* metro dependency 9500: QuestRewardUtils */).getDefaultRewardNameWithArticle(quest.config,
|
||||
currentUser);
|
||||
value = require(7114) /* metro dependency 7114: QuestUtils */;
|
||||
value = value.isSponsoredPlayQuest(quest);
|
||||
return binding.useMemo(_fun103292, [value2, hasWatchVideoTasks2, step, property, value7, gameTitle,
|
||||
defaultRewardNameWithArticle, targetMinutes, value8, isInGameQuest2, value, quest.config]);
|
||||
}
|
||||
|
||||
function _fun103293() { // fn#103293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13782:2327, offset: 0x022608b3, size: 86 bytes, params: 1, frame: 12
|
||||
var value3;
|
||||
var moduleValue;
|
||||
if (env0_0 && env0_1.current != null) {
|
||||
value3 = environment.__proto__;
|
||||
moduleValue = require(4570) /* metro dependency 4570: setAccessibilityFocusAndroid */;
|
||||
moduleValue.setAccessibilityFocus({ref: env0_1, delay: 100});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun103290() { // fn#103290, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13782:1065, offset: 0x0226056b, size: 52 bytes, params: 1, frame: 12
|
||||
const value = environment.__proto__.__proto__;
|
||||
return (require(7116) /* metro dependency 7116: QuestTaskUtils */).hasStreamOnDesktopTask({quest: quest});
|
||||
}
|
||||
|
||||
function _fun103292() { // fn#103292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13782:1335, offset: 0x0226059f, size: 788 bytes, params: 1, frame: 19
|
||||
var value2;
|
||||
var moduleValue;
|
||||
var value3;
|
||||
var stepBinding;
|
||||
var value4;
|
||||
var binding;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var formatToPlainString;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var value5;
|
||||
var value;
|
||||
if (env0_2) {
|
||||
value = environment.__proto__.__proto__;
|
||||
return intl.string(t['ij5E/5']);
|
||||
}
|
||||
if (env0_4) {
|
||||
binding = env0_9;
|
||||
value5 = environment.__proto__.__proto__;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
return binding ? Reflect.apply(formatToPlainString, intl, [t.ttFsLj,
|
||||
{reward: env0_10}]) : Reflect.apply(formatToPlainString, intl, [t.IpoqqA, {questReward: env0_10}]);
|
||||
}
|
||||
if (env0_5) {
|
||||
value2 = environment.__proto__.__proto__;
|
||||
moduleValue = require(7116) /* metro dependency 7116: QuestTaskUtils */;
|
||||
value3 = moduleValue.getDefaultInGameTask(quest.config);
|
||||
if (value3 != null) {
|
||||
return value3.messages.taskDescription;
|
||||
}
|
||||
stepBinding = step;
|
||||
value4 = environment.__proto__.__proto__;
|
||||
} else {
|
||||
stepBinding = step;
|
||||
}
|
||||
const QuestBottomSheetStep = (require(13591) /* metro dependency 13591: QuestBottomSheet */).QuestBottomSheetStep;
|
||||
const TASK_SELECT = QuestBottomSheetStep.TASK_SELECT;
|
||||
return stepBinding === TASK_SELECT ? intl.string(t.drVw4T) : step === QuestBottomSheetStep.CONSOLE_CONNECT ? intl.string(t.svdwbA) : env0_11 ? intl.formatToPlainString(t['2GJLK2'],
|
||||
{targetMinutes: targetMinutes,
|
||||
rewardNameWithArticle: env0_10}) : env0_6 !== (require(6531) /* metro dependency 6531: QuestTypes */).TaskPlatformScreen.DESKTOP ? intl.formatToPlainString(t.NIimTt,
|
||||
{gameTitle: gameTitle, rewardNameWithArticle: env0_10,
|
||||
targetMinutes: targetMinutes}) : env0_8 ? intl.formatToPlainString(t['hkJ+Gs'], {gameTitle: gameTitle,
|
||||
questReward: env0_10, streamingDurationRequirement: targetMinutes}) : intl.formatToPlainString(t.NIimTt,
|
||||
{gameTitle: gameTitle, rewardNameWithArticle: env0_10, targetMinutes: targetMinutes});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,159 @@
|
||||
/* Metro module 13594; source: modules/quests/native/QuestBottomSheet/QuestBottomSheetHooks.tsx; dependencies: [5, 31, 6528, 13576, 13591, 4080, 9513, 13595, 9519, 9517, 9518, 7121, 7120, 6531, 7110, 2] */
|
||||
function _fun103318(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103318, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13784:6, offset: 0x02261e11, size: 183 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 env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(6528) /* metro dependency 6528: QuestConstants */).QuestDockMode;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestBottomSheet/QuestBottomSheetHooks.tsx');
|
||||
exports.useWatchTaskPressHandler = useWatchTaskPressHandler;
|
||||
exports.useMobileActivityPressHandler = useMobileActivityPressHandler;
|
||||
}
|
||||
|
||||
function useDismissSheetOrCollapseDock() { // fn#103319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13784:140, offset: 0x02261ec8, size: 137 bytes, params: 1, frame: 18
|
||||
let binding = env0_4;
|
||||
let useContext = binding.useContext;
|
||||
const QuestDockExternalCoordinationContext = (require(13576) /* metro dependency 13576: QuestDockExternalCoordinationContext */).QuestDockExternalCoordinationContext;
|
||||
const setRestingQuestDockMode = Reflect.apply(useContext, binding,
|
||||
[QuestDockExternalCoordinationContext]).setRestingQuestDockMode;
|
||||
binding = env0_4;
|
||||
useContext = binding.useContext;
|
||||
const QuestBottomSheetContext = (require(13591) /* metro dependency 13591: QuestBottomSheet */).QuestBottomSheetContext;
|
||||
return env0_4.useCallback(_fun103320, [Reflect.apply(useContext, binding,
|
||||
[QuestBottomSheetContext]).isInQuestBottomSheet, setRestingQuestDockMode]);
|
||||
}
|
||||
|
||||
function useWatchTaskPressHandler({questId, sourceQuestContent}) { // fn#103321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13784:562, offset: 0x02261fa0, size: 120 bytes, params: 2, frame: 18
|
||||
return env0_4.useCallback(_fun103322, [questId, useDismissSheetOrCollapseDock(),
|
||||
(require(9513) /* metro dependency 9513: ContentImpressionTrackerHooks */).useQuestImpression(),
|
||||
sourceQuestContent]);
|
||||
}
|
||||
|
||||
function useMobileActivityPressHandler({questId, sourceQuestContent, launchMobileActivity}) { // fn#103323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13784:1671, offset: 0x0226224a, size: 143 bytes, params: 2, frame: 19
|
||||
const value2 = useDismissSheetOrCollapseDock();
|
||||
const env0_3 = value2;
|
||||
const value3 = (require(9513) /* metro dependency 9513: ContentImpressionTrackerHooks */).useQuestImpression();
|
||||
return value3.useCallback(env0_3(_fun103325), [questId, value2, launchMobileActivity, value3, sourceQuestContent]);
|
||||
}
|
||||
|
||||
function _fun103320() { // fn#103320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13784:361, offset: 0x02261f51, size: 79 bytes, params: 1, frame: 12
|
||||
if (isInQuestBottomSheet) {
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet('QuestBottomSheet');
|
||||
} else {
|
||||
setRestingQuestDockMode(QuestDockMode.COLLAPSED);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun103322() { // fn#103322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13784:725, offset: 0x02262018, size: 562 bytes, params: 1, frame: 20
|
||||
var r4;
|
||||
var moduleValue2;
|
||||
var trackQuestContentClicked;
|
||||
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
|
||||
const QuestContentCTA = (require(7120) /* metro dependency 7120: AnalyticsTypes */).QuestContentCTA;
|
||||
var moduleValue3;
|
||||
var captureAdUserAction;
|
||||
const value2 = undefined;
|
||||
env0_2();
|
||||
const defaultImport = importDefault(13595) /* metro dependency 13595: openVideoQuestModal */;
|
||||
let object2 = {};
|
||||
object2.questId = questId;
|
||||
object2.questContentPosition = env0_3 == null ? value2 : env0_3.getQuestContentPosition();
|
||||
object2.sourceQuestContent = sourceQuestContent;
|
||||
defaultImport(object2);
|
||||
const adAnalyticsInterfaceExperimentModule = require(9519) /* metro dependency 9519: AdAnalyticsInterfaceExperiment */;
|
||||
const shouldMigrateToAdAnalyticsInterface = adAnalyticsInterfaceExperimentModule.shouldMigrateToAdAnalyticsInterface;
|
||||
const AdAnalyticsInterfaceExperimentStep = adAnalyticsInterfaceExperimentModule.AdAnalyticsInterfaceExperimentStep;
|
||||
const STEP_2_CLICKED_INTERNAL = AdAnalyticsInterfaceExperimentStep.STEP_2_CLICKED_INTERNAL;
|
||||
if (Reflect.apply(shouldMigrateToAdAnalyticsInterface, adAnalyticsInterfaceExperimentModule,
|
||||
[STEP_2_CLICKED_INTERNAL, 'quest_bottom_sheet_watch_task'])) {
|
||||
moduleValue3 = require(9517) /* metro dependency 9517: captureAdUserAction */;
|
||||
captureAdUserAction = moduleValue3.captureAdUserAction;
|
||||
object2 = {};
|
||||
object2.type = (require(9518) /* metro dependency 9518: captureAdUserActionTypes */).AdUserActionType.CLICK_INTERNAL;
|
||||
object2.adCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType.QUEST;
|
||||
object2.adCreativeId = questId;
|
||||
object2.questContentCTA = QuestContentCTA.WATCH_VIDEO;
|
||||
object2.surfaceId = QuestContent.QUEST_BOTTOM_SHEET;
|
||||
object2.sourceQuestContent = sourceQuestContent;
|
||||
r4 = env0_3 == null ? value2 : env0_3.getId();
|
||||
object2.impressionId = r4;
|
||||
r4 = env0_3 == null ? value2 : env0_3.getQuestContentPosition();
|
||||
object2.questContentPosition = r4;
|
||||
Reflect.apply(captureAdUserAction, moduleValue3, [object2]);
|
||||
} else {
|
||||
moduleValue2 = require(7110) /* metro dependency 7110: AnalyticsActions */;
|
||||
trackQuestContentClicked = moduleValue2.trackQuestContentClicked;
|
||||
object2 = {};
|
||||
object2.questId = questId;
|
||||
object2.questContent = QuestContent.QUEST_BOTTOM_SHEET;
|
||||
object2.questContentCTA = QuestContentCTA.WATCH_VIDEO;
|
||||
r4 = env0_3 == null ? value2 : env0_3.getQuestContentPosition();
|
||||
object2.questContentPosition = r4;
|
||||
r4 = env0_3 == null ? value2 : env0_3.getId();
|
||||
object2.impressionId = r4;
|
||||
object2.sourceQuestContent = sourceQuestContent;
|
||||
Reflect.apply(trackQuestContentClicked, moduleValue2, [object2]);
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
|
||||
function* _fun103325() { // fn#103325, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13784:1866, offset: 0x022622e4, size: 525 bytes, params: 1, frame: 22
|
||||
var r6;
|
||||
var value8;
|
||||
var trackQuestContentClicked;
|
||||
var object2;
|
||||
var value11;
|
||||
var captureAdUserAction;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__;
|
||||
const value3 = undefined;
|
||||
env1_3();
|
||||
yield dependencyMap();
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
let binding = env2_0;
|
||||
const binding2 = env2_2;
|
||||
const value7 = binding(binding2[8]);
|
||||
const shouldMigrateToAdAnalyticsInterface = value7.shouldMigrateToAdAnalyticsInterface;
|
||||
const AdAnalyticsInterfaceExperimentStep = binding(binding2[8]).AdAnalyticsInterfaceExperimentStep;
|
||||
const STEP_2_CLICKED_INTERNAL = AdAnalyticsInterfaceExperimentStep.STEP_2_CLICKED_INTERNAL;
|
||||
const shouldMigrateToAdAnalyticsInterface2 = Reflect.apply(shouldMigrateToAdAnalyticsInterface, value7,
|
||||
[STEP_2_CLICKED_INTERNAL, 'quest_bottom_sheet_mobile_activity']);
|
||||
binding = env2_0;
|
||||
const binding3 = env2_2;
|
||||
if (shouldMigrateToAdAnalyticsInterface2) {
|
||||
value11 = binding(binding3[9]);
|
||||
captureAdUserAction = value11.captureAdUserAction;
|
||||
object2 = {};
|
||||
object2.type = binding(binding3[10]).AdUserActionType.CLICK_INTERNAL;
|
||||
object2.adCreativeType = binding(binding3[11]).AdCreativeType.QUEST;
|
||||
object2.adCreativeId = require;
|
||||
object2.questContentCTA = binding(binding3[12]).QuestContentCTA.LAUNCH_MOBILE_ACTIVITY;
|
||||
object2.surfaceId = binding(binding3[13]).QuestContent.QUEST_BOTTOM_SHEET;
|
||||
object2.sourceQuestContent = importDefault;
|
||||
r6 = env1_4 == null ? value3 : env1_4.getId();
|
||||
object2.impressionId = r6;
|
||||
r6 = env1_4 == null ? value3 : env1_4.getQuestContentPosition();
|
||||
object2.questContentPosition = r6;
|
||||
Reflect.apply(captureAdUserAction, value11, [object2]);
|
||||
} else {
|
||||
value8 = binding(binding3[14]);
|
||||
trackQuestContentClicked = value8.trackQuestContentClicked;
|
||||
object2 = {};
|
||||
object2.questId = require;
|
||||
object2.questContent = binding(binding3[13]).QuestContent.QUEST_BOTTOM_SHEET;
|
||||
object2.questContentCTA = binding(binding3[12]).QuestContentCTA.LAUNCH_MOBILE_ACTIVITY;
|
||||
r6 = env1_4 == null ? value3 : env1_4.getQuestContentPosition();
|
||||
object2.questContentPosition = r6;
|
||||
r6 = env1_4 == null ? value3 : env1_4.getId();
|
||||
object2.impressionId = r6;
|
||||
object2.sourceQuestContent = importDefault;
|
||||
Reflect.apply(trackQuestContentClicked, value8, [object2]);
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,285 @@
|
||||
/* Metro module 13630; source: modules/quests/native/QuestBottomSheet/QuestBottomSheetProgressCard.tsx; dependencies: [31, 27, 1878, 33, 4501, 697, 9483, 9520, 566, 9500, 7114, 1244, 4573, 6535, 6239, 13620, 9495, 13594, 9480, 5278, 9543, 4589, 5475, 13631, 9376, 2] */
|
||||
function _fun104088(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13827:6, offset: 0x02284837, size: 676 bytes, params: 8, frame: 25
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_4 = value.View;
|
||||
const StyleSheet = value.StyleSheet;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
object2.card = {padding: 0};
|
||||
object2.cardWatchTask = {'justifyContent': 'flex-end', 'height': 210};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.content = {padding: PX_16};
|
||||
object2.contentWatchTask = {alignItems: 'flex-end'};
|
||||
const object3 = {'padding': 12, 'display': 'flex', 'flexDirection': 'row', 'justifyContent': 'center',
|
||||
'alignItems': 'center'};
|
||||
const BACKGROUND_MOD_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_MUTED;
|
||||
object3.backgroundColor = BACKGROUND_MOD_MUTED;
|
||||
let CARD_DEFAULT_RADIUS = (importDefault(697) /* metro dependency 697: native */).modules.mobile.CARD_DEFAULT_RADIUS;
|
||||
object3.borderBottomLeftRadius = CARD_DEFAULT_RADIUS;
|
||||
CARD_DEFAULT_RADIUS = (importDefault(697) /* metro dependency 697: native */).modules.mobile.CARD_DEFAULT_RADIUS;
|
||||
object3.borderBottomRightRadius = CARD_DEFAULT_RADIUS;
|
||||
object3.borderWidth = 1;
|
||||
const BORDER_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_MUTED;
|
||||
object3.borderColor = BORDER_MUTED;
|
||||
object2.footer = object3;
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object2.instructionsText = {marginTop: PX_12, textAlign: 'center'};
|
||||
const object4 = {};
|
||||
copyDataProperties(object4, StyleSheet.absoluteFillObject, undefined);
|
||||
CARD_DEFAULT_RADIUS = (importDefault(697) /* metro dependency 697: native */).modules.mobile.CARD_DEFAULT_RADIUS;
|
||||
object4['borderRadius'] = CARD_DEFAULT_RADIUS;
|
||||
object4['overflow'] = 'hidden';
|
||||
object2.videoPreviewWrapper = object4;
|
||||
const object6 = {};
|
||||
copyDataProperties(object6, StyleSheet.absoluteFillObject, undefined);
|
||||
object2.videoPreview = object6;
|
||||
const object10 = {'alignItems': 'center', 'justifyContent': 'center', 'borderRadius': null, 'position': 'absolute',
|
||||
'left': '50%', 'overflow': 'hidden', 'top': '50%', 'width': 60, 'height': 60};
|
||||
object10.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
object10.transform = [{translateX: -30}, {translateY: -30}];
|
||||
object2.playVideoIconWrapper = object10;
|
||||
const env0_9 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestBottomSheet/QuestBottomSheetProgressCard.tsx');
|
||||
exports.QuestBottomSheetProgressCardPlayStreamTask = QuestBottomSheetProgressCardPlayStreamTask;
|
||||
exports.QuestBottomSheetProgressCardWatchTask = QuestBottomSheetProgressCardWatchTask;
|
||||
exports.QuestBottomSheetProgressCardInGameTask = QuestBottomSheetProgressCardInGameTask;
|
||||
}
|
||||
|
||||
function QuestBottomSheetProgressCardPlayStreamTask({quest}) { // fn#104089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13827:1292, offset: 0x02284adb, size: 846 bytes, params: 2, frame: 30
|
||||
var r5;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var intl;
|
||||
const styles = useStyles();
|
||||
const value3 = (require(9483) /* metro dependency 9483: QuestHooks */).useQuestTaskDetails(quest);
|
||||
const value4 = (require(9483) /* metro dependency 9483: QuestHooks */).useIsQuestProgressing(quest);
|
||||
let userStatus = quest.userStatus;
|
||||
const value5 = userStatus?.completedAt != null;
|
||||
userStatus = quest.userStatus;
|
||||
const value6 = userStatus?.claimedAt != null;
|
||||
const env0_3 = value6;
|
||||
const value7 = (require(9520) /* metro dependency 9520: QuestPlatformUtils */).supportedTaskPlatforms(quest);
|
||||
const value8 = (require(9483) /* metro dependency 9483: QuestHooks */).useQuestFormattedDate(quest.config.rewardsConfig.rewardsExpireAt);
|
||||
const gameTitle = quest.config.messages.gameTitle;
|
||||
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
|
||||
return UserStore.getCurrentUser();
|
||||
});
|
||||
const value10 = env0_3.useMemo(_fun104091, [value3, value5, value6, gameTitle,
|
||||
(require(9500) /* metro dependency 9500: QuestRewardUtils */).getDefaultRewardName(quest.config, currentUser),
|
||||
value4, value7, value8, (require(7114) /* metro dependency 7114: QuestUtils */).isSponsoredPlayQuest(quest)]);
|
||||
const Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
|
||||
const view = <View style={styles.content}>{((Component) => <Component quest={quest} size="lg" progress={value3.percentComplete} loading={!(value5 || value4)} hasConfetti />)(importDefault(13620) /* metro dependency 13620: QuestProgressIndicator */)}{value10 != null && <Text style={styles.instructionsText} variant="text-sm/semibold" color="text-subtle">{value10}</Text>}</View>;
|
||||
if (value4) {
|
||||
var viewBindingProps = {style: styles.footer};
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
r5 = <View {...viewBindingProps}><Text color="text-feedback-positive" variant="text-sm/semibold">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.lIFg6I,
|
||||
|
||||
{gameName: quest.config.messages.gameTitle})}</Text></View>;
|
||||
} else {
|
||||
r5 = value4;
|
||||
}
|
||||
return (
|
||||
<Card style={styles.card} border="subtle">
|
||||
{view}
|
||||
{r5}
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
||||
function QuestBottomSheetProgressCardWatchTask({quest, sourceQuestContent}) { // fn#104094, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13827:3305, offset: 0x022851c0, size: 1165 bytes, params: 2, frame: 34
|
||||
var url;
|
||||
var VideoComponent;
|
||||
const styles = useStyles();
|
||||
const value3 = (require(9483) /* metro dependency 9483: QuestHooks */).useQuestTaskDetails(quest);
|
||||
const binding = env0_3;
|
||||
const value4 = binding.useMemo(_fun104095, [quest]);
|
||||
const value5 = binding.useMemo(_fun104096, [quest]);
|
||||
const value6 = binding.useMemo(_fun104097, [quest]);
|
||||
const value7 = (require(13594) /* metro dependency 13594: QuestBottomSheetHooks */).useWatchTaskPressHandler({questId: quest.id,
|
||||
sourceQuestContent: sourceQuestContent});
|
||||
let r8 = value4 != null && (require(9480) /* metro dependency 9480: QuestUtilsNative */).isHeroVideoSupported(value4);
|
||||
const userStatus = quest.userStatus;
|
||||
let r10 = userStatus?.completedAt != null ? (require(1244) /* metro dependency 1244: indexNative */).t.YsCuyF : (require(1244) /* metro dependency 1244: indexNative */).t['74KqrR'];
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
const pressableOpacityProps = {onPress: value7, accessibilityRole: 'button',
|
||||
accessibilityLabel: (require(1244) /* metro dependency 1244: indexNative */).intl.string(r10)};
|
||||
const Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
|
||||
const items2 = [styles.card];
|
||||
items2[1] = styles.cardWatchTask;
|
||||
if (r8) {
|
||||
var viewBindingProps = {style: styles.videoPreviewWrapper};
|
||||
VideoComponent = (require(9543) /* metro dependency 9543: Video */).VideoComponent;
|
||||
var videoProps = {'style': null, 'poster': null, 'posterResizeMode': 'cover', 'source': null,
|
||||
'resizeMode': 'cover',
|
||||
'muted': true, 'disableFocus': true, 'preventsDisplaySleepDuringVideoPlayback': false,
|
||||
style: styles.videoPreview};
|
||||
url = value5?.url;
|
||||
videoProps.poster = url;
|
||||
url = value4.url;
|
||||
videoProps.source = {uri: url};
|
||||
r10 = <View {...viewBindingProps}><VideoComponent {...videoProps} />{((Component) => <Component start={{'x': 0.5,
|
||||
|
||||
'y': 0.5}} end={{'x': 1, 'y': 1}} style={StyleSheet.absoluteFill} colors={['rgba(0, 0, 0, 0)',
|
||||
'rgba(0, 0, 0, 1)']} />)(importDefault(4589) /* metro dependency 4589 */)}</View>;
|
||||
} else {
|
||||
r10 = r8;
|
||||
}
|
||||
const items3 = [r10];
|
||||
r8 = !r8 && value6 != null && <View style={styles.videoPreviewWrapper}>{((Component) => <Component style={styles.videoPreview} source={{uri: value6.url}} resizeMode="cover" />)(importDefault(5475) /* metro dependency 5475: FastImage */)}{((Component) => <Component start={{'x': 0.5,
|
||||
'y': 0.5}} end={{'x': 1, 'y': 1}} style={StyleSheet.absoluteFill} colors={['rgba(0, 0, 0, 0)',
|
||||
'rgba(0, 0, 0, 1)']} />)(importDefault(4589) /* metro dependency 4589 */)}</View>;
|
||||
items3[1] = r8;
|
||||
const value15 = ((Component) => <Component blurTheme="light" />)(importDefault(13631) /* metro dependency 13631: QuestDockBlurredContentBackground */);
|
||||
const PlayIcon = (require(9376) /* metro dependency 9376: PlayIcon */).PlayIcon;
|
||||
const WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
|
||||
items3[2] = <View style={styles.playVideoIconWrapper}>{value15}<PlayIcon color={WHITE} /></View>;
|
||||
items3[3] = <View style={[styles.content,
|
||||
styles.contentWatchTask]}>{((Component) => <Component quest={quest} size="x-sm" progress={value3.percentComplete} hasConfetti />)(importDefault(13620) /* metro dependency 13620: QuestProgressIndicator */)}</View>;
|
||||
return (
|
||||
<PressableOpacity {...pressableOpacityProps}>
|
||||
<Card style={items2} border="subtle">
|
||||
{items3}
|
||||
</Card>
|
||||
</PressableOpacity>
|
||||
);
|
||||
}
|
||||
|
||||
function QuestBottomSheetProgressCardInGameTask({quest}) { // fn#104098, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13827:5055, offset: 0x0228571e, size: 213 bytes, params: 2, frame: 21
|
||||
const styles = useStyles();
|
||||
const value3 = (require(9483) /* metro dependency 9483: QuestHooks */).useThirdPartyTaskDetails(quest);
|
||||
const Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
|
||||
return (
|
||||
<Card style={styles.card} border="subtle">
|
||||
<View style={styles.content}>
|
||||
{((Component) => <Component quest={quest} size="lg" progress={value3?.percentComplete ?? 0} hasConfetti />)(importDefault(13620) /* metro dependency 13620: QuestProgressIndicator */)}
|
||||
</View>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun104091() { // fn#104091, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13827:1831, offset: 0x02284e29, size: 789 bytes, params: 1, frame: 19
|
||||
var environment;
|
||||
var r1;
|
||||
var value2;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const FirstPartyQuestTaskTypes = (require(6535) /* metro dependency 6535: FirstPartyQuestTaskTypes */).FirstPartyQuestTaskTypes;
|
||||
const FirstPartyQuestTaskTypesSets = (require(6535) /* metro dependency 6535: FirstPartyQuestTaskTypes */).FirstPartyQuestTaskTypesSets;
|
||||
var binding;
|
||||
var value7;
|
||||
var value;
|
||||
if (env0_2) {
|
||||
if (env0_3) {
|
||||
if (env0_1) {
|
||||
binding = env0_0;
|
||||
value = binding.targetSeconds - binding.progressSeconds;
|
||||
value = global.Math.ceil(value / 60);
|
||||
value7 = environment.__proto__;
|
||||
return intl.format(t.aFaRso, {minutesLeft: value, minutesHook: minutesHook});
|
||||
}
|
||||
if (env0_8) {
|
||||
value = environment.__proto__;
|
||||
value = intl.string(t['04ateG']);
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = env0_4.length > 1 ? intl.formatToPlainString(t.E2R8VX,
|
||||
{gameName: gameTitle}) : env0_0.taskType === FirstPartyQuestTaskTypes.STREAM_ON_DESKTOP ? intl.formatToPlainString(t.boMftC,
|
||||
|
||||
|
||||
|
||||
{gameName: gameTitle}) : env0_0.taskType === FirstPartyQuestTaskTypes.PLAY_ON_DESKTOP ? intl.formatToPlainString(t['9Peldf'],
|
||||
|
||||
|
||||
|
||||
{gameName: gameTitle}) : FirstPartyQuestTaskTypesSets.CONSOLE.has(env0_0.taskType) ? intl.formatToPlainString(t['+8JB6Y'],
|
||||
|
||||
|
||||
|
||||
{gameTitle: gameTitle}) : null;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
value2 = environment.__proto__;
|
||||
return intl.format(t.e3OlfB, {rewardHook: rewardHook, date: env0_5});
|
||||
}
|
||||
if (env0_1) {
|
||||
binding = env0_0;
|
||||
value = binding.targetSeconds - binding.progressSeconds;
|
||||
value = global.Math.ceil(value / 60);
|
||||
value7 = environment.__proto__;
|
||||
return intl.format(t.aFaRso, {minutesLeft: value, minutesHook: minutesHook});
|
||||
}
|
||||
if (env0_8) {
|
||||
value = environment.__proto__;
|
||||
value = intl.string(t['04ateG']);
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = env0_4.length > 1 ? intl.formatToPlainString(t.E2R8VX,
|
||||
{gameName: gameTitle}) : env0_0.taskType === FirstPartyQuestTaskTypes.STREAM_ON_DESKTOP ? intl.formatToPlainString(t.boMftC,
|
||||
|
||||
{gameName: gameTitle}) : env0_0.taskType === FirstPartyQuestTaskTypes.PLAY_ON_DESKTOP ? intl.formatToPlainString(t['9Peldf'],
|
||||
|
||||
{gameName: gameTitle}) : FirstPartyQuestTaskTypesSets.CONSOLE.has(env0_0.taskType) ? intl.formatToPlainString(t['+8JB6Y'],
|
||||
|
||||
{gameTitle: gameTitle}) : null;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
|
||||
function _fun104095() { // fn#104095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13827:3442, offset: 0x0228564d, size: 67 bytes, params: 1, frame: 16
|
||||
let value = environment.__proto__;
|
||||
value = require(9495) /* metro dependency 9495: AssetUtils */;
|
||||
const getQuestAsset = value.getQuestAsset;
|
||||
const questBinding = quest;
|
||||
const QuestAssetType = (require(9495) /* metro dependency 9495: AssetUtils */).QuestAssetType;
|
||||
const QUEST_BAR_HERO_VIDEO = QuestAssetType.QUEST_BAR_HERO_VIDEO;
|
||||
return Reflect.apply(getQuestAsset, value, [questBinding, QUEST_BAR_HERO_VIDEO]);
|
||||
}
|
||||
|
||||
function _fun104096() { // fn#104096, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13827:3536, offset: 0x02285690, size: 75 bytes, params: 1, frame: 18
|
||||
let value = environment.__proto__;
|
||||
value = require(9495) /* metro dependency 9495: AssetUtils */;
|
||||
const getQuestAsset = value.getQuestAsset;
|
||||
const questBinding = quest;
|
||||
const QuestAssetType = (require(9495) /* metro dependency 9495: AssetUtils */).QuestAssetType;
|
||||
const VIDEO_PLAYER_THUMBNAIL = QuestAssetType.VIDEO_PLAYER_THUMBNAIL;
|
||||
return Reflect.apply(getQuestAsset, value, [questBinding, VIDEO_PLAYER_THUMBNAIL, undefined, true]);
|
||||
}
|
||||
|
||||
function _fun104097() { // fn#104097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13827:3642, offset: 0x022856db, size: 67 bytes, params: 1, frame: 16
|
||||
let value = environment.__proto__;
|
||||
value = require(9495) /* metro dependency 9495: AssetUtils */;
|
||||
const getQuestAsset = value.getQuestAsset;
|
||||
const questBinding = quest;
|
||||
const QuestAssetType = (require(9495) /* metro dependency 9495: AssetUtils */).QuestAssetType;
|
||||
const QUEST_BAR_HERO_IMAGE = QuestAssetType.QUEST_BAR_HERO_IMAGE;
|
||||
return Reflect.apply(getQuestAsset, value, [questBinding, QUEST_BAR_HERO_IMAGE]);
|
||||
}
|
||||
|
||||
function rewardHook() { // fn#104092, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13827:1903, offset: 0x0228513e, size: 67 bytes, params: 1, frame: 14
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<Text variant="text-sm/semibold" color="text-strong">
|
||||
{env1_7}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
function minutesHook(a0) { // fn#104093, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13827:2130, offset: 0x02285181, size: 63 bytes, params: 2, frame: 14
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<Text variant="text-sm/semibold" color="text-strong">
|
||||
{a0}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
/* Metro module 13632; source: modules/quests/native/QuestBottomSheet/QuestBottomSheetTaskSelect.tsx; dependencies: [31, 6528, 33, 6231, 6238, 10160, 1244, 8658, 2] */
|
||||
function _fun104103(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104103, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13829:6, offset: 0x02285992, size: 162 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_2 = (require(6528) /* metro dependency 6528: QuestConstants */).QuestTaskPlatform;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_3 = value.jsx;
|
||||
const env0_4 = value.jsxs;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestBottomSheet/QuestBottomSheetTaskSelect.tsx');
|
||||
exports.default = QuestBottomSheetTaskSelect;
|
||||
}
|
||||
|
||||
function QuestBottomSheetTaskSelect({onTaskSelect}) { // fn#104104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13829:272, offset: 0x02285a34, size: 331 bytes, params: 2, frame: 25
|
||||
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const object = {arrow: true};
|
||||
const ScreenIcon = (require(10160) /* metro dependency 10160: ScreenIcon */).ScreenIcon;
|
||||
object.icon = <ScreenIcon />;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['QXc01+']);
|
||||
object.onPress = onPress_104105;
|
||||
const tableRow = <TableRow {...object} />;
|
||||
const GameControllerIcon = (require(8658) /* metro dependency 8658: GameControllerIcon */).GameControllerIcon;
|
||||
return (
|
||||
<TableRowGroup hasIcons>
|
||||
{tableRow}
|
||||
<TableRow
|
||||
arrow
|
||||
icon={<GameControllerIcon />}
|
||||
label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['8lAfuB'])}
|
||||
onPress={onPress_104106}
|
||||
/>
|
||||
</TableRowGroup>
|
||||
);
|
||||
}
|
||||
|
||||
function QuestBottomSheetTaskSelectOnPress() { // fn#104105, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13829:494, owner: QuestBottomSheetTaskSelect.onPress, offset: 0x02285b7f, size: 44 bytes, params: 1, frame: 12
|
||||
var r0;
|
||||
var value;
|
||||
let onTaskSelectBinding = onTaskSelect;
|
||||
if (onTaskSelectBinding == null) {
|
||||
r0 = undefined;
|
||||
} else {
|
||||
onTaskSelectBinding = onTaskSelect;
|
||||
value = environment.__proto__;
|
||||
value = onTaskSelectBinding(QuestTaskPlatform.DESKTOP);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function QuestBottomSheetTaskSelectOnPress_104106() { // fn#104106, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13829:650, owner: QuestBottomSheetTaskSelect.onPress, offset: 0x02285bab, size: 44 bytes, params: 1, frame: 12
|
||||
var r0;
|
||||
var value;
|
||||
let onTaskSelectBinding = onTaskSelect;
|
||||
if (onTaskSelectBinding == null) {
|
||||
r0 = undefined;
|
||||
} else {
|
||||
onTaskSelectBinding = onTaskSelect;
|
||||
value = environment.__proto__;
|
||||
value = onTaskSelectBinding(QuestTaskPlatform.CONSOLE);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,346 @@
|
||||
/* Metro module 10183; source: modules/quests/native/QuestContentImpressionTracker.native.tsx; dependencies: [57, 31, 7030, 9515, 661, 6266, 566, 9513, 9514, 7121, 2] */
|
||||
function _fun79242(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79242, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10369:6, offset: 0x01e4a496, size: 260 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_79245 = 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 Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const appStateStore = importDefault(7030) /* metro dependency 7030: AppStateStore */;
|
||||
const env0_6 = (require(9515) /* metro dependency 9515: ContentImpressionTrackerConstants */).MIN_QUEST_CONTENT_VISIBILITY_PERCENTAGE;
|
||||
const env0_7 = (require(661) /* metro dependency 661: Constants */).AppStates;
|
||||
const env0_8 = (require(31) /* metro dependency 31 */).createElement;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestContentImpressionTracker.native.tsx');
|
||||
exports.QuestContentImpressionTrackerNative = QuestContentImpressionTrackerNative;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_79243(a0, a1) { // fn#79243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10369:228, offset: 0x01e4a59a, size: 372 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 _fun79244;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_79245(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_79245(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_79245(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun79244;
|
||||
}
|
||||
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 useVisibilityData({adContentIds, visibilityRef, overrideVisibility}) { // fn#79246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10369:2034, offset: 0x01e4a70e, size: 175 bytes, params: 2, frame: 20
|
||||
var object2;
|
||||
const [property, property2] = env0_3(env0_4.useState(0), 2);
|
||||
env0_4.useEffect(_fun79247, [adContentIds, property2, visibilityRef]);
|
||||
const r2 = overrideVisibility ?? property >= MIN_QUEST_CONTENT_VISIBILITY_PERCENTAGE;
|
||||
object2 = {visible: r2};
|
||||
object2.visibleChanged = r2 !== (importDefault(6266) /* metro dependency 6266: usePrevious */)(r2);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function calculateVisibilityPercentage({visibilityRef, entityId}) { // fn#79251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10369:1172, offset: 0x01e4a8ce, size: 650 bytes, params: 2, frame: 19
|
||||
var r3;
|
||||
var r0;
|
||||
var r4;
|
||||
var current;
|
||||
var property;
|
||||
var parent;
|
||||
var items2;
|
||||
var scrollX;
|
||||
var x;
|
||||
var width;
|
||||
var items3;
|
||||
var firstItemOffset;
|
||||
var Math;
|
||||
var max;
|
||||
var min;
|
||||
var value2;
|
||||
let value = undefined;
|
||||
if (visibilityRef == null) {
|
||||
r3 = value;
|
||||
} else {
|
||||
current = visibilityRef.current;
|
||||
r3 = current == null || current.children == null ? value : current.children[entityId];
|
||||
}
|
||||
let layout = r3 == null ? value : r3.layout;
|
||||
if (layout == null) {
|
||||
return 0;
|
||||
}
|
||||
if (visibilityRef == null) {
|
||||
layout = value;
|
||||
} else {
|
||||
parent = visibilityRef.current.parent;
|
||||
layout = parent == null ? value : parent.layout;
|
||||
}
|
||||
if (layout == null) {
|
||||
return 0;
|
||||
}
|
||||
let r2 = visibilityRef.current.axis ?? 'vertical';
|
||||
if (r2 === 'horizontal') {
|
||||
current = visibilityRef.current;
|
||||
parent = current.parent;
|
||||
scrollX = parent.scrollX;
|
||||
if (scrollX == null) {
|
||||
return 0;
|
||||
}
|
||||
layout = r3.layout;
|
||||
x = layout.x;
|
||||
items2 = [x];
|
||||
layout = r3.layout;
|
||||
x = layout.x;
|
||||
layout = r3.layout;
|
||||
width = layout.width;
|
||||
items2[1] = x + width;
|
||||
current = visibilityRef.current;
|
||||
parent = current.parent;
|
||||
scrollX = parent.scrollX;
|
||||
items3 = [scrollX];
|
||||
current = visibilityRef.current;
|
||||
parent = current.parent;
|
||||
scrollX = parent.scrollX;
|
||||
current = visibilityRef.current;
|
||||
parent = current.parent;
|
||||
layout = parent.layout;
|
||||
width = layout.width;
|
||||
items3[1] = scrollX + width;
|
||||
layout = r3.layout;
|
||||
width = layout.width;
|
||||
r0 = items3;
|
||||
r2 = items2;
|
||||
r4 = width;
|
||||
current = visibilityRef.current;
|
||||
parent = current.parent;
|
||||
firstItemOffset = parent.firstItemOffset;
|
||||
if (firstItemOffset != null) {
|
||||
firstItemOffset = visibilityRef.current.parent.firstItemOffset;
|
||||
r2[0] += firstItemOffset;
|
||||
r2[1] += firstItemOffset;
|
||||
}
|
||||
Math = global.Math;
|
||||
max = Math.max;
|
||||
property = r2[0];
|
||||
value = Reflect.apply(max, Math, [property, r0[0]]);
|
||||
Math = global.Math;
|
||||
min = Math.min;
|
||||
property = r2[1];
|
||||
value2 = Reflect.apply(min, Math, [property, r0[1]]);
|
||||
} else {
|
||||
if (visibilityRef.current.parent.scrollY == null) {
|
||||
return 0;
|
||||
}
|
||||
var y = r3.layout.y;
|
||||
items2 = [y];
|
||||
y = r3.layout.y;
|
||||
var height = r3.layout.height;
|
||||
items2[1] = y + height;
|
||||
height = r3.layout.height;
|
||||
r0 = [visibilityRef.current.parent.scrollY,
|
||||
visibilityRef.current.parent.scrollY + visibilityRef.current.parent.layout.height];
|
||||
r2 = items2;
|
||||
r4 = height;
|
||||
firstItemOffset = visibilityRef.current.parent.firstItemOffset;
|
||||
if (firstItemOffset != null) {
|
||||
firstItemOffset = visibilityRef.current.parent.firstItemOffset;
|
||||
r2[0] += firstItemOffset;
|
||||
r2[1] += firstItemOffset;
|
||||
}
|
||||
Math = global.Math;
|
||||
value = Math.max(r2[0], r0[0]);
|
||||
Math = global.Math;
|
||||
value2 = Math.min(r2[1], r0[1]);
|
||||
}
|
||||
Math = global.Math;
|
||||
value = Math.max(0, value2 - value);
|
||||
Math = global.Math;
|
||||
return Math.min(value / r4, 1);
|
||||
}
|
||||
|
||||
function QuestContentImpressionTrackerNative(a0) { // fn#79252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10369:2809, offset: 0x01e4ab58, size: 370 bytes, params: 2, frame: 23
|
||||
var object3;
|
||||
const state = (require(566) /* metro dependency 566: flux */).useStateFromStores([AppStateStore], function() {
|
||||
return AppStateStore.getState();
|
||||
});
|
||||
const ACTIVE = AppStates.ACTIVE;
|
||||
const value2 = state === ACTIVE;
|
||||
const value3 = env0_4.useRef(null);
|
||||
const value4 = (importDefault(6266) /* metro dependency 6266: usePrevious */)(value2);
|
||||
const {key,
|
||||
adContentIds} = (require(9513) /* metro dependency 9513: ContentImpressionTrackerHooks */).useAdContentImpressionTrackerProps(a0);
|
||||
object3 = {};
|
||||
copyDataProperties(object3, a0, undefined);
|
||||
object3['adContentIds'] = adContentIds;
|
||||
const value6 = useVisibilityData(object3);
|
||||
object3 = {};
|
||||
const value7 = copyDataProperties(object3, a0, undefined);
|
||||
copyDataProperties(object3, value6, value7);
|
||||
object3['focused'] = value2;
|
||||
object3['focusedChanged'] = value2 !== value4;
|
||||
object3['reference'] = value3;
|
||||
object3['isFocused'] = value2;
|
||||
const createElementBinding = createElement;
|
||||
const QuestContentImpressionTracker = (require(9514) /* metro dependency 9514: ContentImpressionTracker */).QuestContentImpressionTracker;
|
||||
const value8 = 'questOrQuests' in a0;
|
||||
const object4 = {};
|
||||
copyDataProperties(object4, object3, value7);
|
||||
object4['key'] = key;
|
||||
object4['adContentIds'] = adContentIds;
|
||||
if (value8) {
|
||||
object4['adCreativeType'] = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType.QUEST;
|
||||
} else {
|
||||
object4['adCreativeType'] = a0.adCreativeType;
|
||||
}
|
||||
return createElementBinding(QuestContentImpressionTracker, object4);
|
||||
}
|
||||
|
||||
function _fun79247() { // fn#79247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10369:2172, offset: 0x01e4a7bd, size: 50 bytes, params: 1, frame: 11
|
||||
initHandlers({adContentIds: adContentIds, setVisibilityPercentage: env0_2, visibilityRef: visibilityRef});
|
||||
}
|
||||
|
||||
function initHandlers({adContentIds, setVisibilityPercentage, visibilityRef}) { // fn#79248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10369:2178, offset: 0x01e4a7ef, size: 99 bytes, params: 2, frame: 14
|
||||
var environment;
|
||||
var r1;
|
||||
var closure;
|
||||
var value;
|
||||
var value2;
|
||||
var done;
|
||||
var value3;
|
||||
var value4;
|
||||
reducibleJoin3: while (true) {
|
||||
if (visibilityRef == null) {
|
||||
break reducibleJoin3;
|
||||
}
|
||||
closure = function(a0) {
|
||||
var env0_0 = a0;
|
||||
var visibilityRefBinding = visibilityRef;
|
||||
var children = visibilityRefBinding.current.children;
|
||||
var object = {};
|
||||
var children2 = visibilityRefBinding.current.children;
|
||||
copyDataProperties(object, children2[a0], children2);
|
||||
object['calculateVisibility'] = _fun79250;
|
||||
children[a0] = object;
|
||||
};
|
||||
value = environment.__proto__.__proto__;
|
||||
value = _createForOfIteratorHelperLoose_79243(adContentIds);
|
||||
value2 = value();
|
||||
done = value2.done;
|
||||
if (done) {
|
||||
break reducibleJoin3;
|
||||
}
|
||||
r1 = value2;
|
||||
reducibleLoop2: while (true) {
|
||||
value3 = r1.value;
|
||||
closure(value3);
|
||||
value4 = value();
|
||||
done = value4.done;
|
||||
if (done) {
|
||||
break reducibleJoin3;
|
||||
}
|
||||
r1 = value4;
|
||||
continue reducibleLoop2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function initHandlers_loop(a0) { // fn#79249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10369:2287, owner: initHandlers._loop, offset: 0x01e4a852, size: 73 bytes, params: 2, frame: 14
|
||||
const env0_0 = a0;
|
||||
const visibilityRefBinding = visibilityRef;
|
||||
const children = visibilityRefBinding.current.children;
|
||||
const object2 = {};
|
||||
const children2 = visibilityRefBinding.current.children;
|
||||
copyDataProperties(object2, children2[a0], children2);
|
||||
object2['calculateVisibility'] = calculateVisibility;
|
||||
children[a0] = object2;
|
||||
}
|
||||
|
||||
function calculateVisibility() { // fn#79250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10369:2367, owner: initHandlers._loop.calculateVisibility, offset: 0x01e4a89b, size: 51 bytes, params: 1, frame: 12
|
||||
setVisibilityPercentage(calculateVisibilityPercentage({visibilityRef: visibilityRef, entityId: env0_0}));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,291 @@
|
||||
/* Metro module 13623; source: modules/quests/native/QuestContextMenu.tsx; dependencies: [29, 31, 7093, 661, 33, 8341, 8639, 1244, 9483, 566, 6531, 9949, 9513, 9505, 7114, 477, 4093, 9480, 9520, 7120, 3869, 13580, 9484, 6249, 13624, 4060, 7116, 6797, 4064, 9519, 9517, 9518, 7121, 8811, 2] */
|
||||
function _fun104044(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13820:6, offset: 0x02281fe8, size: 231 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const env0_3 = ['ref'];
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(29) /* metro dependency 29 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const questStore = importDefault(7093) /* metro dependency 7093: QuestStore */;
|
||||
const env0_7 = (require(661) /* metro dependency 661: Constants */).LinkingTypes;
|
||||
const env0_8 = (require(33) /* metro dependency 33 */).jsx;
|
||||
value = value.memo(_fun104046);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestContextMenu.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function renderDefaultButton(a0) { // fn#104045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13820:177, offset: 0x022820cf, size: 229 bytes, params: 2, frame: 19
|
||||
const ref = a0.ref;
|
||||
const value2 = env0_4(a0, env0_3);
|
||||
const IconButton = (require(8341) /* metro dependency 8341: IconButtonNative */).IconButton;
|
||||
const iconButtonProps = {ref: ref, ...value2};
|
||||
iconButtonProps['icon'] = importDefault(8639) /* metro dependency 8639 */;
|
||||
iconButtonProps['variant'] = 'secondary';
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const CAgr1w = (require(1244) /* metro dependency 1244: indexNative */).t.CAgr1w;
|
||||
iconButtonProps['accessibilityLabel'] = Reflect.apply(string, intl, [CAgr1w]);
|
||||
iconButtonProps['accessibilityHint'] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.hd0b7t);
|
||||
return <IconButton {...iconButtonProps} />;
|
||||
}
|
||||
|
||||
function _fun104046({children = renderDefaultButton, quest, showShareLink, additionalItems = [], sourceQuestContent}) { // fn#104046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13820:432, offset: 0x022821b4, size: 1019 bytes, params: 2, frame: 37
|
||||
var r23;
|
||||
var moduleValue6;
|
||||
showShareLink = !(showShareLink === undefined) && showShareLink;
|
||||
const value5 = (require(9483) /* metro dependency 9483: QuestHooks */).useQuestPreviewActions(quest.id);
|
||||
const handleComplete = value5.handleComplete;
|
||||
const handleProgress = value5.handleProgress;
|
||||
const handleResetDismissibilityClick = value5.handleResetDismissibilityClick;
|
||||
const env0_5 = handleResetDismissibilityClick;
|
||||
const handleResetStatusClick = value5.handleResetStatusClick;
|
||||
const handleOverridePreviewClick = value5.handleOverridePreviewClick;
|
||||
const handleResetHasBeenSeenClick = value5.handleResetHasBeenSeenClick;
|
||||
const value6 = (require(566) /* metro dependency 566: flux */).useStateFromStores([QuestStore], function() {
|
||||
return QuestStore.getQuestPreviewOverride(require(dependencyMap[10]).QuestContent.QUEST_BAR_MOBILE);
|
||||
}, []);
|
||||
const value7 = (require(9949) /* metro dependency 9949: AnalyticsHooks */).useTrackQuestContentClickedWithImpression();
|
||||
const value8 = (require(9513) /* metro dependency 9513: ContentImpressionTrackerHooks */).useQuestImpressionId();
|
||||
const externalCtaLabel = (require(9505) /* metro dependency 9505: QuestCopyUtils */).getExternalCtaLabel(quest);
|
||||
if (showShareLink) {
|
||||
moduleValue6 = require(7114) /* metro dependency 7114: QuestUtils */;
|
||||
r23 = moduleValue6.isShareableQuest(quest.config);
|
||||
} else {
|
||||
r23 = showShareLink;
|
||||
}
|
||||
let binding = env0_5;
|
||||
const value10 = binding.useCallback(_fun104048, [quest, value8, sourceQuestContent]);
|
||||
const value11 = binding.useCallback(_fun104049, [r23, quest.id, value8, sourceQuestContent]);
|
||||
const value12 = binding.useCallback(_fun104050, [quest, sourceQuestContent]);
|
||||
const value13 = binding.useCallback(_fun104051, [quest.id]);
|
||||
const value14 = binding.useCallback(_fun104052, [quest.id]);
|
||||
const value15 = binding.useMemo(_fun104053, [externalCtaLabel, value10, value12, r23, value11]);
|
||||
const value17 = binding.useMemo(_fun104055, [binding.useMemo(_fun104054, [quest, value13, value14]), handleComplete,
|
||||
handleResetDismissibilityClick, handleProgress, handleResetStatusClick, handleResetHasBeenSeenClick, quest.id]);
|
||||
const value18 = (require(9483) /* metro dependency 9483: QuestHooks */).useShouldShowQuestPreviewOverrides(quest);
|
||||
const value19 = binding.useMemo(_fun104058, [handleOverridePreviewClick, quest.id, value6?.id]);
|
||||
binding = env0_5;
|
||||
const value20 = binding.useMemo(_fun104060, [value15, value17, quest.preview, value18, value19, additionalItems]);
|
||||
const value21 = binding.useCallback(_fun104061, [quest.id, value7, value8, sourceQuestContent]);
|
||||
const ContextMenu = (require(8811) /* metro dependency 8811: ContextMenuNative */).ContextMenu;
|
||||
return (
|
||||
<ContextMenu
|
||||
items={value20}
|
||||
onOpen={value21}
|
||||
triggerOnTap
|
||||
>
|
||||
{children}
|
||||
</ContextMenu>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun104048() { // fn#104048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13820:1040, offset: 0x022825e5, size: 279 bytes, params: 1, frame: 18
|
||||
var r2;
|
||||
var defaultImport;
|
||||
var moduleValue2;
|
||||
let value = environment.__proto__;
|
||||
const isIOS2 = (require(477) /* metro dependency 477: PlatformUtils */).isIOS();
|
||||
if (isIOS2) {
|
||||
defaultImport = importDefault(4093) /* metro dependency 4093: parseURL */;
|
||||
moduleValue2 = require(9505) /* metro dependency 9505: QuestCopyUtils */;
|
||||
r2 = defaultImport(moduleValue2.getCtaLink(quest.config)).payload.type === LinkingTypes.INVITE;
|
||||
} else {
|
||||
r2 = isIOS2;
|
||||
}
|
||||
if (r2) {
|
||||
(require(9480) /* metro dependency 9480: QuestUtilsNative */).dismissOverlayScreens();
|
||||
}
|
||||
value = require(9520) /* metro dependency 9520: QuestPlatformUtils */;
|
||||
const openGameLinkDirectly = value.openGameLinkDirectly;
|
||||
const questBinding = quest;
|
||||
const object2 = {};
|
||||
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
|
||||
const QUEST_HOME_MOBILE = QuestContent.QUEST_HOME_MOBILE;
|
||||
object2.content = QUEST_HOME_MOBILE;
|
||||
const QuestContentCTA = (require(7120) /* metro dependency 7120: AnalyticsTypes */).QuestContentCTA;
|
||||
const CONTEXT_MENU_OPEN_GAME_LINK = QuestContentCTA.CONTEXT_MENU_OPEN_GAME_LINK;
|
||||
object2.ctaContent = CONTEXT_MENU_OPEN_GAME_LINK;
|
||||
object2.impressionId = env0_11;
|
||||
object2.sourceQuestContent = sourceQuestContent;
|
||||
Reflect.apply(openGameLinkDirectly, value, [questBinding, object2]);
|
||||
}
|
||||
|
||||
function _fun104049() { // fn#104049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13820:1372, offset: 0x022826fc, size: 216 bytes, params: 1, frame: 18
|
||||
var value2;
|
||||
var moduleValue;
|
||||
var copyShareLink;
|
||||
var id;
|
||||
var object2;
|
||||
var AccessibilityAnnouncer;
|
||||
var announce;
|
||||
var intl;
|
||||
if (env0_13) {
|
||||
value2 = environment.__proto__;
|
||||
moduleValue = require(9505) /* metro dependency 9505: QuestCopyUtils */;
|
||||
copyShareLink = moduleValue.copyShareLink;
|
||||
id = quest.id;
|
||||
object2 = {};
|
||||
object2.content = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent.QUEST_HOME_MOBILE;
|
||||
object2.ctaContent = (require(7120) /* metro dependency 7120: AnalyticsTypes */).QuestContentCTA.CONTEXT_MENU_COPY_LINK;
|
||||
object2.impressionId = env0_11;
|
||||
object2.sourceQuestContent = sourceQuestContent;
|
||||
Reflect.apply(copyShareLink, moduleValue, [id, object2]);
|
||||
AccessibilityAnnouncer = (require(3869) /* metro dependency 3869: AccessibilityAnnouncerAndroid */).AccessibilityAnnouncer;
|
||||
announce = AccessibilityAnnouncer.announce;
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
Reflect.apply(announce, AccessibilityAnnouncer,
|
||||
[intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+5kSoW'])]);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun104050() { // fn#104050, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13820:1672, offset: 0x022827d4, size: 136 bytes, params: 1, frame: 17
|
||||
const defaultImport = importDefault(13580) /* metro dependency 13580: QuestDisclosureModalActionCreators */;
|
||||
const showModal = defaultImport.showModal;
|
||||
const object3 = {};
|
||||
object3.quest = quest;
|
||||
object3.isTargetedDisclosure = false;
|
||||
const object4 = {};
|
||||
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
|
||||
const QUEST_HOME_MOBILE = QuestContent.QUEST_HOME_MOBILE;
|
||||
object4.content = QUEST_HOME_MOBILE;
|
||||
const QuestContentCTA = (require(7120) /* metro dependency 7120: AnalyticsTypes */).QuestContentCTA;
|
||||
const CONTEXT_MENU_OPEN_DISCLOSURE = QuestContentCTA.CONTEXT_MENU_OPEN_DISCLOSURE;
|
||||
object4.ctaContent = CONTEXT_MENU_OPEN_DISCLOSURE;
|
||||
object4.sourceQuestContent = sourceQuestContent;
|
||||
object3.trackingCtx = object4;
|
||||
Reflect.apply(showModal, defaultImport, [object3]);
|
||||
}
|
||||
|
||||
function _fun104051() { // fn#104051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13820:1905, offset: 0x0228285c, size: 53 bytes, params: 1, frame: 13
|
||||
let value = environment.__proto__;
|
||||
value = require(9484) /* metro dependency 9484: QuestActionCreators */;
|
||||
return value.manuallyStartConsoleQuest(quest.id, true);
|
||||
}
|
||||
|
||||
function _fun104052() { // fn#104052, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13820:1979, offset: 0x02282891, size: 50 bytes, params: 1, frame: 11
|
||||
let value = environment.__proto__;
|
||||
value = require(9484) /* metro dependency 9484: QuestActionCreators */;
|
||||
return value.manualStopConsoleQuest(quest.id);
|
||||
}
|
||||
|
||||
function _fun104053() { // fn#104053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13820:2043, offset: 0x022828c3, size: 285 bytes, params: 1, frame: 21
|
||||
var items2;
|
||||
let object2 = {};
|
||||
object2.label = env0_12;
|
||||
const LinkExternalSmallIcon = (require(6249) /* metro dependency 6249: LinkExternalSmallIcon */).LinkExternalSmallIcon;
|
||||
object2.IconComponent = LinkExternalSmallIcon;
|
||||
object2.action = env0_14;
|
||||
object2.accessibilityRole = 'link';
|
||||
const items3 = [object2];
|
||||
object2 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const GcsZKJ = t.GcsZKJ;
|
||||
object2.label = Reflect.apply(string, intl, [GcsZKJ]);
|
||||
object2.action = env0_16;
|
||||
object2.iconSource = importDefault(13624) /* metro dependency 13624 */;
|
||||
items3[1] = object2;
|
||||
if (env0_13) {
|
||||
object2 = {};
|
||||
object2.label = intl.string(t.WqhZss);
|
||||
object2.IconComponent = (require(4060) /* metro dependency 4060: CopyIcon */).CopyIcon;
|
||||
object2.action = env0_15;
|
||||
items2 = [object2];
|
||||
} else {
|
||||
items2 = [];
|
||||
}
|
||||
arraySpread(items3, items2, 2, require);
|
||||
return items3;
|
||||
}
|
||||
|
||||
function _fun104054() { // fn#104054, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13820:2337, offset: 0x022829e0, size: 109 bytes, params: 1, frame: 13
|
||||
let value = environment.__proto__;
|
||||
value = require(7116) /* metro dependency 7116: QuestTaskUtils */;
|
||||
return value.isConsoleQuest(quest) ? [{label: 'Start Console Heartbeat', action: env0_17},
|
||||
{label: 'Stop Console Heartbeat', action: env0_18}] : [];
|
||||
}
|
||||
|
||||
function _fun104055() { // fn#104055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13820:2481, offset: 0x02282a4d, size: 183 bytes, params: 1, frame: 15
|
||||
const items2 = [{label: 'Set Random Quest Progress', action: action_104056}];
|
||||
items2[1] = {label: 'Complete Quest', action: handleComplete};
|
||||
items2[2] = {label: 'Reset Quest', action: handleResetStatusClick};
|
||||
items2[3] = {label: 'Reset Dismissibility', action: handleResetDismissibilityClick};
|
||||
const handleResetHasBeenSeenClickBinding = handleResetHasBeenSeenClick;
|
||||
items2[4] = {label: 'Reset Quest Seen', action: handleResetHasBeenSeenClickBinding};
|
||||
const value = arraySpread(items2, env0_20, 5, handleResetHasBeenSeenClickBinding);
|
||||
items2[value] = {label: 'Copy Quest ID', action: action_104057};
|
||||
value + 1;
|
||||
return items2;
|
||||
}
|
||||
|
||||
function _fun104058() { // fn#104058, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13820:2841, offset: 0x02282b74, size: 104 bytes, params: 1, frame: 14
|
||||
const value2 = undefined;
|
||||
const CheckmarkLargeIcon = (env0_9 == null ? value2 : env0_9.id) !== quest.id ? value2 : (require(4064) /* metro dependency 4064: CheckmarkLargeIcon */).CheckmarkLargeIcon;
|
||||
return {label: 'Show in Quest Bar', action: function() {
|
||||
return handleOverridePreviewClick(require(dependencyMap[10]).QuestContent.QUEST_BAR_MOBILE);
|
||||
}, IconComponent: CheckmarkLargeIcon};
|
||||
}
|
||||
|
||||
function _fun104060() { // fn#104060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13820:3050, offset: 0x02282c0f, size: 132 bytes, params: 1, frame: 15
|
||||
var r0;
|
||||
var items2;
|
||||
var value2;
|
||||
const r4 = env0_1 != null ? [env0_19, env0_1] : [env0_19];
|
||||
if (env0_22) {
|
||||
r4.push([env0_23]);
|
||||
}
|
||||
if (quest.preview) {
|
||||
items2 = [];
|
||||
value2 = arraySpread(items2, r4, 0, r4);
|
||||
items2[value2] = env0_21;
|
||||
value2 + 1;
|
||||
r0 = items2;
|
||||
} else {
|
||||
r0 = r4;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun104061() { // fn#104061, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13820:3164, offset: 0x02282c93, size: 360 bytes, params: 1, frame: 17
|
||||
var object2;
|
||||
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
|
||||
const QuestContentCTA = (require(7120) /* metro dependency 7120: AnalyticsTypes */).QuestContentCTA;
|
||||
var captureAdUserAction;
|
||||
let value = environment.__proto__;
|
||||
const adAnalyticsInterfaceExperimentModule = require(9519) /* metro dependency 9519: AdAnalyticsInterfaceExperiment */;
|
||||
const shouldMigrateToAdAnalyticsInterface = adAnalyticsInterfaceExperimentModule.shouldMigrateToAdAnalyticsInterface;
|
||||
const AdAnalyticsInterfaceExperimentStep = adAnalyticsInterfaceExperimentModule.AdAnalyticsInterfaceExperimentStep;
|
||||
const STEP_2_CLICKED_INTERNAL = AdAnalyticsInterfaceExperimentStep.STEP_2_CLICKED_INTERNAL;
|
||||
if (Reflect.apply(shouldMigrateToAdAnalyticsInterface, adAnalyticsInterfaceExperimentModule,
|
||||
[STEP_2_CLICKED_INTERNAL, 'quest_context_menu'])) {
|
||||
value = require(9517) /* metro dependency 9517: captureAdUserAction */;
|
||||
captureAdUserAction = value.captureAdUserAction;
|
||||
object2 = {};
|
||||
object2.type = (require(9518) /* metro dependency 9518: captureAdUserActionTypes */).AdUserActionType.CLICK_INTERNAL;
|
||||
object2.adCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType.QUEST;
|
||||
object2.adCreativeId = quest.id;
|
||||
object2.questContentCTA = QuestContentCTA.OPEN_CONTEXT_MENU;
|
||||
object2.surfaceId = QuestContent.QUEST_HOME_MOBILE;
|
||||
object2.sourceQuestContent = sourceQuestContent;
|
||||
object2.impressionId = env0_11;
|
||||
Reflect.apply(captureAdUserAction, value, [object2]);
|
||||
} else {
|
||||
env0_10({questId: quest.id, questContent: QuestContent.QUEST_HOME_MOBILE,
|
||||
questContentCTA: QuestContentCTA.OPEN_CONTEXT_MENU, sourceQuestContent: sourceQuestContent});
|
||||
}
|
||||
}
|
||||
|
||||
function action_104056() { // fn#104056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13820:2528, offset: 0x02282b04, size: 62 bytes, params: 1, frame: 12
|
||||
const value = environment.__proto__;
|
||||
const handleProgressBinding = handleProgress;
|
||||
const Math = global.Math;
|
||||
return handleProgressBinding(0.9 * Math.random() + 0.03);
|
||||
}
|
||||
|
||||
function action_104057() { // fn#104057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13820:2733, offset: 0x02282b42, size: 50 bytes, params: 1, frame: 11
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(6797) /* metro dependency 6797: ClipboardUtilsNative */;
|
||||
return value.copy(quest.id);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
/* Metro module 13581; source: modules/quests/native/QuestDisclosureModal/QuestDisclosureModal.tsx; dependencies: [33, 5277, 8160, 13580, 1244, 5282, 13582, 5280, 2] */
|
||||
function _fun103223(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13771:6, offset: 0x0225d5cd, size: 150 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
object = {DISCLOSURE: 'disclosure'};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDisclosureModal/QuestDisclosureModal.tsx');
|
||||
exports.default = QuestDisclosureModal;
|
||||
}
|
||||
|
||||
function CloseButton_103224() { // fn#103224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13771:167, offset: 0x0225d663, size: 129 bytes, params: 1, frame: 18
|
||||
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
|
||||
const headerActionButtonProps = {source: importDefault(8160) /* metro dependency 8160 */, onPress: onPress_103225};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
headerActionButtonProps.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq);
|
||||
return <HeaderActionButton {...headerActionButtonProps} />;
|
||||
}
|
||||
|
||||
function QuestDisclosureModal({isTargetedDisclosure, gamePublisher, gameTitle, cosponsorName, isVideoQuest}) { // fn#103226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13771:444, offset: 0x0225d709, size: 243 bytes, params: 2, frame: 18
|
||||
const object2 = {};
|
||||
const binding = isVideoQuest;
|
||||
let DISCLOSURE = binding.DISCLOSURE;
|
||||
object2[DISCLOSURE] = {headerLeft: CloseButton_103224, headerRight: function() {
|
||||
return null;
|
||||
}, headerTitle: headerTitle_103229, render: render_103230};
|
||||
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
|
||||
DISCLOSURE = binding.DISCLOSURE;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<Navigator
|
||||
screens={object2}
|
||||
initialRouteName={DISCLOSURE}
|
||||
headerBackTitle={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function CloseButton_103224OnPress() { // fn#103225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13771:250, owner: CloseButton_103224.onPress, offset: 0x0225d6e4, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return (importDefault(13580) /* metro dependency 13580: QuestDisclosureModalActionCreators */).hideModal();
|
||||
}
|
||||
|
||||
function QuestDisclosureModalHeaderTitle() { // fn#103229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13771:670, owner: QuestDisclosureModal.headerTitle, offset: 0x0225d7fc, size: 96 bytes, params: 1, frame: 18
|
||||
const NavigatorHeader = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).NavigatorHeader;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const GcsZKJ = (require(1244) /* metro dependency 1244: indexNative */).t.GcsZKJ;
|
||||
return <NavigatorHeader title={Reflect.apply(string, intl, [GcsZKJ])} />;
|
||||
}
|
||||
|
||||
function QuestDisclosureModalRender() { // fn#103230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13771:754, owner: QuestDisclosureModal.render, offset: 0x0225d85c, size: 96 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__;
|
||||
return ((Component) => <Component isTargetedDisclosure={isTargetedDisclosure} gamePublisher={gamePublisher} gameTitle={gameTitle} onClose={QuestDisclosureModalOnClose} cosponsorName={cosponsorName} isVideoQuest={isVideoQuest} />)(importDefault(13582) /* metro dependency 13582: QuestDisclosureModalInner */);
|
||||
}
|
||||
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
/* Metro module 13580; source: modules/quests/native/QuestDisclosureModal/QuestDisclosureModalActionCreators.tsx; dependencies: [7116, 9519, 9517, 9518, 7121, 7110, 5080, 13581, 1962, 2] */
|
||||
function _fun103220(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103220, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13770:6, offset: 0x0225d33f, size: 122 bytes, params: 8, frame: 18
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object2 = {showModal: showModal_103221, hideModal: hideModal_103222};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDisclosureModal/QuestDisclosureModalActionCreators.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
function showModal_103221({quest, isTargetedDisclosure, trackingCtx}) { // fn#103221, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13770:126, offset: 0x0225d3b9, size: 488 bytes, params: 2, frame: 24
|
||||
var object2;
|
||||
var moduleValue4;
|
||||
var captureAdUserAction;
|
||||
const {gamePublisher, gameTitle} = quest.config.messages;
|
||||
const hasWatchVideoTasks2 = require(dependencyMap[0]).hasWatchVideoTasks(quest);
|
||||
const moduleValue2 = require(dependencyMap[1]);
|
||||
const shouldMigrateToAdAnalyticsInterface = moduleValue2.shouldMigrateToAdAnalyticsInterface;
|
||||
const AdAnalyticsInterfaceExperimentStep = require(dependencyMap[1]).AdAnalyticsInterfaceExperimentStep;
|
||||
const STEP_2_CLICKED_INTERNAL = AdAnalyticsInterfaceExperimentStep.STEP_2_CLICKED_INTERNAL;
|
||||
if (Reflect.apply(shouldMigrateToAdAnalyticsInterface, moduleValue2, [STEP_2_CLICKED_INTERNAL,
|
||||
'quest_disclosure_modal'])) {
|
||||
moduleValue4 = require(dependencyMap[2]);
|
||||
captureAdUserAction = moduleValue4.captureAdUserAction;
|
||||
object2 = {};
|
||||
object2.type = require(dependencyMap[3]).AdUserActionType.CLICK_INTERNAL;
|
||||
object2.adCreativeType = require(dependencyMap[4]).AdCreativeType.QUEST;
|
||||
object2.adCreativeId = quest.id;
|
||||
object2.questContentCTA = trackingCtx.ctaContent;
|
||||
object2.surfaceId = trackingCtx.content;
|
||||
object2.sourceQuestContent = trackingCtx.sourceQuestContent;
|
||||
object2.questContentPosition = trackingCtx.position;
|
||||
Reflect.apply(captureAdUserAction, moduleValue4, [object2]);
|
||||
} else {
|
||||
require(dependencyMap[5]).trackQuestContentClicked({questId: quest.id, questContent: trackingCtx.content,
|
||||
questContentCTA: trackingCtx.ctaContent, questContentPosition: trackingCtx.position,
|
||||
sourceQuestContent: trackingCtx.sourceQuestContent});
|
||||
}
|
||||
const defaultImport = importDefault(dependencyMap[6]);
|
||||
const pushLazy = defaultImport.pushLazy;
|
||||
let value = require(dependencyMap[8]);
|
||||
value = value(dependencyMap[7], dependencyMap.paths);
|
||||
Reflect.apply(pushLazy, defaultImport, [value, {gamePublisher: gamePublisher, gameTitle: gameTitle,
|
||||
isTargetedDisclosure: isTargetedDisclosure, cosponsorName: quest.config.cosponsorMetadata?.name,
|
||||
isVideoQuest: hasWatchVideoTasks2}, 'QUEST_DISCLOSURE_MODAL']);
|
||||
}
|
||||
|
||||
function hideModal_103222() { // fn#103222, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13770:1019, offset: 0x0225d5a1, size: 44 bytes, params: 1, frame: 12
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey('QUEST_DISCLOSURE_MODAL');
|
||||
}
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
/* Metro module 13582; source: modules/quests/native/QuestDisclosureModal/QuestDisclosureModalInner.tsx; dependencies: [27, 661, 33, 4501, 697, 3829, 9390, 1244, 9404, 11441, 8658, 5473, 4573, 9505, 6239, 6766, 1948, 4578, 2] */
|
||||
function _fun103231(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13772:6, offset: 0x0225d8bc, size: 534 bytes, params: 8, frame: 23
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).HelpdeskArticles;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object3 = {};
|
||||
const object5 = {flex: 1};
|
||||
let PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object5.padding = PX_24;
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.gap = PX_16;
|
||||
object5.maxWidth = 480;
|
||||
object3.container = object5;
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3.illustration = {alignSelf: 'center', marginBottom: PX_8};
|
||||
const object7 = {marginTop: 'auto'};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object7.paddingHorizontal = PX_8;
|
||||
PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object7.marginBottom = PX_24;
|
||||
object3.closeButton = object7;
|
||||
object3.targetList = {padding: 0};
|
||||
const object9 = {'flexDirection': 'row', 'flexWrap': 'nowrap', 'alignItems': 'center'};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object9.paddingLeft = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object9.gap = PX_16;
|
||||
object3.targetItem = object9;
|
||||
object3.lastTargetItem = {borderBottomWidth: 0};
|
||||
const object10 = {'flex': 1, 'paddingVertical': null, 'borderBottomWidth': 1};
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object10.paddingVertical = PX_12;
|
||||
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object10.borderBottomColor = BORDER_SUBTLE;
|
||||
object3.disclosureText = object10;
|
||||
const env0_7 = Reflect.apply(createStyles, value, [object3]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDisclosureModal/QuestDisclosureModalInner.tsx');
|
||||
exports.default = QuestDisclosureModalInner;
|
||||
}
|
||||
|
||||
function QuestDisclosureModalInner({isTargetedDisclosure, gamePublisher, gameTitle, isVideoQuest, onClose, cosponsorName}) { // fn#103232, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13772:873, offset: 0x0225dad2, size: 1061 bytes, params: 2, frame: 31
|
||||
var r14;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var items2;
|
||||
const styles = useStyles();
|
||||
const DropsOptedOut = (require(3829) /* metro dependency 3829: UserSettings */).DropsOptedOut;
|
||||
const value2 = DropsOptedOut.useSetting();
|
||||
let object2 = {};
|
||||
if (value2) {
|
||||
object2.icon = ((ServerIcon) => <ServerIcon size="xs" />)((require(9390) /* metro dependency 9390: ServerIcon */).ServerIcon);
|
||||
object2.text = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['2bL0wT']);
|
||||
r14 = [object2];
|
||||
} else {
|
||||
object2.icon = ((GlobeEarthIcon) => <GlobeEarthIcon size="xs" />)((require(9404) /* metro dependency 9404: GlobeEarthIcon */).GlobeEarthIcon);
|
||||
object2.text = intl.string(t.xQSdPv);
|
||||
items2 = [object2];
|
||||
object2 = {};
|
||||
object2.icon = ((UserIcon) => <UserIcon size="xs" />)((require(11441) /* metro dependency 11441: UserIcon */).UserIcon);
|
||||
object2.text = intl.string(t.mYt7hQ);
|
||||
items2[1] = object2;
|
||||
object2 = {};
|
||||
object2.icon = ((GameControllerIcon) => <GameControllerIcon size="xs" />)((require(8658) /* metro dependency 8658: GameControllerIcon */).GameControllerIcon);
|
||||
object2.text = intl.string(t.XAsWxQ);
|
||||
items2[2] = object2;
|
||||
r14 = items2;
|
||||
}
|
||||
const WumpusCouchSpotIllustration = (require(5473) /* metro dependency 5473: native */).WumpusCouchSpotIllustration;
|
||||
const items3 = [<View style={styles.illustration}><WumpusCouchSpotIllustration /></View>];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const questCopyUtilsModule = require(9505) /* metro dependency 9505: QuestCopyUtils */;
|
||||
const getDisclosureText = questCopyUtilsModule.getDisclosureText;
|
||||
items3[1] = <Text variant="text-md/normal" color="mobile-text-heading-primary">{Reflect.apply(getDisclosureText,
|
||||
questCopyUtilsModule, [{gamePublisher: gamePublisher, gameTitle: gameTitle,
|
||||
isTargetedDisclosure: isTargetedDisclosure, isContextualDisclosure: value2, cosponsorName: cosponsorName,
|
||||
isVideoQuest: isVideoQuest}])}</Text>;
|
||||
items3[2] = isTargetedDisclosure && ((Card) => <Card radius={16} style={styles.targetList}>{r14.map(_fun103233)}</Card>)((require(6239) /* metro dependency 6239: CardNative */).Card);
|
||||
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
|
||||
const format = intl.format;
|
||||
const tzq9Wa = (require(1244) /* metro dependency 1244: indexNative */).t.tzq9Wa;
|
||||
const defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
||||
const getArticleURL = defaultImport.getArticleURL;
|
||||
const QUESTS_PRIVACY_CONTROLS = HelpdeskArticles.QUESTS_PRIVACY_CONTROLS;
|
||||
items3[3] = <TextWithIOSLinkWorkaround variant="text-md/medium" color="mobile-text-heading-primary">{Reflect.apply(format,
|
||||
intl, [tzq9Wa, {privacySettingsUrl: Reflect.apply(getArticleURL, defaultImport,
|
||||
[QUESTS_PRIVACY_CONTROLS])}])}</TextWithIOSLinkWorkaround>;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
items3[4] = <View style={styles.closeButton}><Button variant="primary" grow size="lg" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)} onPress={onClose} /></View>;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{items3}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun103233({icon, text}, a1) { // fn#103233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13772:1819, offset: 0x0225def7, size: 193 bytes, params: 3, frame: 23
|
||||
const stylesBinding = styles;
|
||||
const targetItem = stylesBinding.targetItem;
|
||||
const items2 = [stylesBinding.disclosureText];
|
||||
items2[1] = a1 === env0_1.length - 1 && styles.lastTargetItem;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={targetItem} key={a1}>
|
||||
{icon}
|
||||
<View style={items2}>
|
||||
<Text variant="text-md/semibold">
|
||||
{text}
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,771 @@
|
||||
/* Metro module 13651; source: modules/quests/native/QuestDock/QuestDock.tsx; dependencies: [5, 57, 31, 27, 13570, 6528, 13572, 661, 7553, 482, 33, 4501, 697, 13650, 13573, 13576, 13569, 4559, 4017, 8621, 1585, 5176, 3860, 13652, 4577, 13571, 4581, 4556, 13653, 8141, 1244, 13654, 13661, 13664, 13665, 4562, 9483, 6531, 13666, 566, 9479, 13568, 7701, 683, 4826, 4831, 7120, 9484, 10183, 3868, 2] */
|
||||
function _fun104239(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:6, offset: 0x0228b863, size: 979 bytes, params: 8, frame: 33
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const closure = QuestDockWithEntranceAnimation;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const value2 = require(27) /* metro dependency 27 */;
|
||||
const env0_6 = value2.View;
|
||||
const StyleSheet = value2.StyleSheet;
|
||||
const env0_7 = value2.Pressable;
|
||||
const env0_8 = value2.Image;
|
||||
const questDockStore = importDefault(13570) /* metro dependency 13570: QuestDockStore */;
|
||||
const questConstantsModule = require(6528) /* metro dependency 6528: QuestConstants */;
|
||||
const env0_10 = questConstantsModule.QuestDockMode;
|
||||
const env0_11 = questConstantsModule.QuestsExperimentLocations;
|
||||
const questDockConstantsModule = require(13572) /* metro dependency 13572: QuestDockConstants */;
|
||||
const env0_12 = questDockConstantsModule.QUEST_DOCK_MODE_CHANGE_PHYSICS;
|
||||
const env0_13 = questDockConstantsModule.QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED;
|
||||
const env0_14 = questDockConstantsModule.QUEST_DOCK_CONTENT_BORDER_RADII;
|
||||
const env0_15 = questDockConstantsModule.QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED;
|
||||
const env0_16 = questDockConstantsModule.QUEST_DOCK_COLLAPSED_HEIGHT;
|
||||
const env0_17 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const env0_18 = (require(7553) /* metro dependency 7553: YouBarConstants */).useYouBarTotalHeight;
|
||||
const env0_19 = (require(482) /* metro dependency 482: Constants */).ThemeTypes;
|
||||
const value5 = require(33) /* metro dependency 33 */;
|
||||
const env0_20 = value5.jsx;
|
||||
const env0_21 = value5.jsxs;
|
||||
const env0_22 = value5.Fragment;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object3 = {wrapper: {'position': 'absolute', 'left': '50%', 'bottom': 0, 'zIndex': 1}};
|
||||
const object7 = {};
|
||||
copyDataProperties(object7, StyleSheet.absoluteFillObject, undefined);
|
||||
object7['zIndex'] = 1;
|
||||
object3.accessibilityWrapper = object7;
|
||||
const QUEST_DOCK_BORDER_RADIUS = (importDefault(697) /* metro dependency 697: native */).modules.mobile.QUEST_DOCK_BORDER_RADIUS;
|
||||
object3.questDockWrapper = {'position': 'absolute', 'bottom': 0, 'left': '50%', 'overflow': 'hidden',
|
||||
'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', 'borderRadius': null, 'zIndex': 1,
|
||||
borderRadius: QUEST_DOCK_BORDER_RADIUS};
|
||||
const object8 = {};
|
||||
copyDataProperties(object8, StyleSheet.absoluteFillObject, undefined);
|
||||
object8['justifyContent'] = 'flex-end';
|
||||
object8['zIndex'] = 4;
|
||||
object3.questDockContentWrapper = object8;
|
||||
const object9 = {};
|
||||
copyDataProperties(object9, StyleSheet.absoluteFillObject, undefined);
|
||||
object9['bottom'] = undefined;
|
||||
object9['right'] = undefined;
|
||||
object9['borderWidth'] = 1;
|
||||
const BORDER_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_MUTED;
|
||||
object9['borderColor'] = BORDER_MUTED;
|
||||
object9['zIndex'] = 5;
|
||||
object3.questDockHeaderBorder = object9;
|
||||
const object10 = {};
|
||||
copyDataProperties(object10, StyleSheet.absoluteFillObject, undefined);
|
||||
object10['zIndex'] = 6;
|
||||
object3.nestedPressable = object10;
|
||||
const env0_23 = Reflect.apply(createStyles, createStylesModule, [object3]);
|
||||
object3 = {code: 'function QuestDockTsx1(){const{restingQuestDockMode,QuestDockMode}=this.__closure;return restingQuestDockMode.get()===QuestDockMode.EXPANDED;}'};
|
||||
object3 = {code: 'function QuestDockTsx2(){const{appThemedBackgroundColor,withSpring,activeQuestDockMode,QuestDockMode,youBarEnabled,questDockBorderRadius,bottomBorderRadius,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED,questDockWrapperSpecs,QUEST_DOCK_MODE_CHANGE_PHYSICS,roundToNearestPixel}=this.__closure;return{backgroundColor:appThemedBackgroundColor,borderBottomRightRadius:withSpring(activeQuestDockMode.get()===QuestDockMode.COLLAPSED&&!youBarEnabled?questDockBorderRadius:bottomBorderRadius.get(),QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED),borderBottomLeftRadius:withSpring(activeQuestDockMode.get()===QuestDockMode.COLLAPSED&&!youBarEnabled?questDockBorderRadius:bottomBorderRadius.get(),QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED),height:questDockWrapperSpecs.get().height,width:questDockWrapperSpecs.get().width,opacity:withSpring(1,QUEST_DOCK_MODE_CHANGE_PHYSICS),transform:[{translateX:withSpring(questDockWrapperSpecs.get().x+roundToNearestPixel(questDockWrapperSpecs.get().width/2)*-1,QUEST_DOCK_MODE_CHANGE_PHYSICS)},{translateY:withSpring(questDockWrapperSpecs.get().y,QUEST_DOCK_MODE_CHANGE_PHYSICS)}]};}'};
|
||||
object3 = {code: 'function QuestDockTsx3(){const{withSpring,interpolate,isPressed,activeQuestDockMode,QuestDockMode,youBarEnabled,springStandard}=this.__closure;return{transform:[{scale:withSpring(interpolate(isPressed.get(),[1,0],[activeQuestDockMode.get()===QuestDockMode.EXPANDED||youBarEnabled?1:0.98,1]),springStandard)}]};}'};
|
||||
object3 = {code: 'function QuestDockTsx4(){const{withSpring,activeQuestDockMode,QuestDockMode,QUEST_DOCK_MODE_CHANGE_PHYSICS,windowDimensions}=this.__closure;return{opacity:withSpring(activeQuestDockMode.get()===QuestDockMode.EXPANDED?1:0,QUEST_DOCK_MODE_CHANGE_PHYSICS),height:windowDimensions.get().height};}'};
|
||||
object3 = {code: "function QuestDockTsx5(){const{activeQuestDockMode,QuestDockMode}=this.__closure;return{pointerEvents:activeQuestDockMode.get()===QuestDockMode.EXPANDED?'auto':'none'};}"};
|
||||
object3 = {code: 'function QuestDockTsx6(){const{questDockWrapperSpecs,windowDimensions,safeAreaTop}=this.__closure;const specs=questDockWrapperSpecs.get();const windowHeight=windowDimensions.get().height;return windowHeight-safeAreaTop-specs.height;}'};
|
||||
object3 = {code: 'function QuestDockTsx7(){const{withSpring,activeQuestDockMode,QuestDockMode,QUEST_DOCK_MODE_CHANGE_PHYSICS}=this.__closure;return{opacity:withSpring(activeQuestDockMode.get()===QuestDockMode.CLOSED||activeQuestDockMode.get()===QuestDockMode.SOFT_DISMISSED?0:1,QUEST_DOCK_MODE_CHANGE_PHYSICS)};}'};
|
||||
object3 = {code: 'function QuestDockTsx8(){const{isEnrolled,activeQuestDockMode,QuestDockMode,QUEST_DOCK_CONTENT_BORDER_RADII,questDockBorderRadius,youBarEnabled,bottomBorderRadius,withSpring,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED,questDockWrapperSpecs,QUEST_DOCK_COLLAPSED_HEIGHT,QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED}=this.__closure;return{borderTopLeftRadius:!isEnrolled&&activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:questDockBorderRadius,borderTopRightRadius:!isEnrolled&&activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:questDockBorderRadius,borderBottomLeftRadius:!isEnrolled&&activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:youBarEnabled?bottomBorderRadius.get():questDockBorderRadius,borderBottomRightRadius:!isEnrolled&&activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_CONTENT_BORDER_RADII:youBarEnabled?bottomBorderRadius.get():questDockBorderRadius,opacity:withSpring(activeQuestDockMode.get()===QuestDockMode.EXPANDED?0:1,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED),height:activeQuestDockMode.get()===QuestDockMode.EXPANDED?isEnrolled?questDockWrapperSpecs.get().height:QUEST_DOCK_COLLAPSED_HEIGHT:questDockWrapperSpecs.get().height,width:activeQuestDockMode.get()===QuestDockMode.EXPANDED&&!isEnrolled?questDockWrapperSpecs.get().width-QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED*2:questDockWrapperSpecs.get().width,transform:[{translateX:isEnrolled?0:withSpring(activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED:0,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)},{translateY:isEnrolled?0:withSpring(activeQuestDockMode.get()===QuestDockMode.EXPANDED?QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED:0,QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED)}],borderBottomWidth:youBarEnabled?bottomBorderRadius.get()>0?1:0:1};}'};
|
||||
const env0_32 = createStylesModule.createStyles(function() {
|
||||
return {wrapperAnimated: {'position': 'absolute', 'bottom': 0, 'padding': 0, 'width': '100%'}};
|
||||
});
|
||||
object3 = {};
|
||||
const SUBTLE_SPRING = (require(4581) /* metro dependency 4581: springPresets */).SUBTLE_SPRING;
|
||||
copyDataProperties(object3, SUBTLE_SPRING, undefined);
|
||||
object3['overshootClamping'] = true;
|
||||
object3['damping'] = 54;
|
||||
object3 = {code: "function QuestDockTsx9(){const{withSpring,isRendered,ENTRANCE_ANIMATION_SPING_CONFIG,componentDimensions}=this.__closure;return{opacity:withSpring(isRendered?1:0,ENTRANCE_ANIMATION_SPING_CONFIG,'animate-always'),transform:[{translateY:withSpring(isRendered?0:componentDimensions.height,ENTRANCE_ANIMATION_SPING_CONFIG)}]};}"};
|
||||
value = value.memo(QuestDockWithQuestContext);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDock/QuestDock.tsx');
|
||||
exports.default = value;
|
||||
exports.QuestDockWithEntranceAnimation = closure;
|
||||
}
|
||||
|
||||
function QuestDockWithGestureAnimation({appThemedBackgroundColor}) { // fn#104240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:5687, offset: 0x0228bc36, size: 2445 bytes, params: 2, frame: 50
|
||||
var object2;
|
||||
let binding = env0_5;
|
||||
let useContext = binding.useContext;
|
||||
const quest = Reflect.apply(useContext, binding,
|
||||
[importDefault(13650) /* metro dependency 13650: QuestDockContext */]).quest;
|
||||
const styles = useStyles();
|
||||
binding = env0_5;
|
||||
useContext = binding.useContext;
|
||||
const QuestDockGestureContext = (require(13573) /* metro dependency 13573: QuestDockGestureContext */).QuestDockGestureContext;
|
||||
const {questDockWrapperSpecs, activeQuestDockMode, windowDimensions} = Reflect.apply(useContext, binding,
|
||||
[QuestDockGestureContext]);
|
||||
binding = env0_5;
|
||||
useContext = binding.useContext;
|
||||
const QuestDockExternalCoordinationContext = (require(13576) /* metro dependency 13576: QuestDockExternalCoordinationContext */).QuestDockExternalCoordinationContext;
|
||||
const {restingQuestDockMode, setRestingQuestDockMode} = Reflect.apply(useContext, binding,
|
||||
[QuestDockExternalCoordinationContext]);
|
||||
var env0_5 = setRestingQuestDockMode;
|
||||
const value5 = env0_5.useId();
|
||||
const value6 = env0_5.useCallback(function() {
|
||||
setRestingQuestDockMode(QuestDockMode.COLLAPSED);
|
||||
}, [setRestingQuestDockMode]);
|
||||
(require(13569) /* metro dependency 13569: QuestDockHooks */).useQuestDockModeAnimatedReaction();
|
||||
(require(13569) /* metro dependency 13569: QuestDockHooks */).useQuestDockDismissalReset();
|
||||
const value7 = (require(4559) /* metro dependency 4559: useIsScreenReaderEnabledNative */).useIsScreenReaderEnabled();
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
let useDerivedValue = reanimatedRexportModule.useDerivedValue;
|
||||
let closure = QuestDockWithGestureAnimationK;
|
||||
closure.__closure = {restingQuestDockMode: restingQuestDockMode, QuestDockMode: QuestDockMode};
|
||||
closure.__workletHash = 2415817673061;
|
||||
closure.__initData = env0_24;
|
||||
const value9 = (importDefault(8621) /* metro dependency 8621: useStateFromSharedValue */)(Reflect.apply(useDerivedValue,
|
||||
reanimatedRexportModule, [closure]));
|
||||
const top = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().top;
|
||||
const value10 = (require(5176) /* metro dependency 5176: YouBarExperiment */).useYouBarEnabled('QuestDock');
|
||||
const value11 = useYouBarTotalHeight();
|
||||
const userStatus = quest.userStatus;
|
||||
const value12 = userStatus?.enrolledAt != null;
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
const useToken = useTokenModule.useToken;
|
||||
const QUEST_DOCK_BORDER_RADIUS = (importDefault(697) /* metro dependency 697: native */).modules.mobile.QUEST_DOCK_BORDER_RADIUS;
|
||||
const value13 = Reflect.apply(useToken, useTokenModule, [QUEST_DOCK_BORDER_RADIUS]);
|
||||
const value14 = (importDefault(13652) /* metro dependency 13652: useQuestDockAnimatedBorderRadius */)(value13);
|
||||
const moduleValue7 = reanimatedRexportModule;
|
||||
let useAnimatedStyle = moduleValue7.useAnimatedStyle;
|
||||
closure = QuestDockWithGestureAnimationW;
|
||||
object2 = {appThemedBackgroundColor: appThemedBackgroundColor};
|
||||
object2.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
|
||||
object2.activeQuestDockMode = activeQuestDockMode;
|
||||
object2.QuestDockMode = QuestDockMode;
|
||||
object2.youBarEnabled = value10;
|
||||
object2.questDockBorderRadius = value13;
|
||||
object2.bottomBorderRadius = value14;
|
||||
object2.QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED = QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED;
|
||||
object2.questDockWrapperSpecs = questDockWrapperSpecs;
|
||||
object2.QUEST_DOCK_MODE_CHANGE_PHYSICS = QUEST_DOCK_MODE_CHANGE_PHYSICS;
|
||||
object2.roundToNearestPixel = (require(13571) /* metro dependency 13571: QuestDockUtils */).roundToNearestPixel;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 8564067641719;
|
||||
closure.__initData = env0_25;
|
||||
const value15 = Reflect.apply(useAnimatedStyle, moduleValue7, [closure]);
|
||||
const value16 = reanimatedRexportModule.useSharedValue(0);
|
||||
const moduleValue9 = reanimatedRexportModule;
|
||||
useAnimatedStyle = moduleValue9.useAnimatedStyle;
|
||||
closure = QuestDockWithGestureAnimationX;
|
||||
closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring,
|
||||
interpolate: reanimatedRexportModule.interpolate, isPressed: value16, activeQuestDockMode: activeQuestDockMode,
|
||||
QuestDockMode: QuestDockMode, youBarEnabled: value10,
|
||||
springStandard: (require(4581) /* metro dependency 4581: springPresets */).springStandard};
|
||||
closure.__workletHash = 13804511468631;
|
||||
closure.__initData = env0_26;
|
||||
const value17 = Reflect.apply(useAnimatedStyle, moduleValue9, [closure]);
|
||||
const value18 = env0_5.useCallback(function() {
|
||||
setRestingQuestDockMode(QuestDockMode.EXPANDED);
|
||||
}, [setRestingQuestDockMode]);
|
||||
const value19 = env0_5.useCallback(_fun104246, [value16]);
|
||||
const value20 = env0_5.useCallback(_fun104247, [value16]);
|
||||
const moduleValue10 = reanimatedRexportModule;
|
||||
useAnimatedStyle = moduleValue10.useAnimatedStyle;
|
||||
closure = function() {
|
||||
var object = {};
|
||||
var moduleValue = require(dependencyMap[24]);
|
||||
object.opacity = moduleValue.withSpring(activeQuestDockMode.get() !== QuestDockMode.EXPANDED ? 0 : 1,
|
||||
QUEST_DOCK_MODE_CHANGE_PHYSICS);
|
||||
object.height = windowDimensions.get().height;
|
||||
return object;
|
||||
};
|
||||
closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring,
|
||||
activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode,
|
||||
QUEST_DOCK_MODE_CHANGE_PHYSICS: QUEST_DOCK_MODE_CHANGE_PHYSICS, windowDimensions: windowDimensions};
|
||||
closure.__workletHash = 6178969276321;
|
||||
closure.__initData = env0_27;
|
||||
const value21 = Reflect.apply(useAnimatedStyle, moduleValue10, [closure]);
|
||||
const moduleValue11 = reanimatedRexportModule;
|
||||
const useAnimatedProps = moduleValue11.useAnimatedProps;
|
||||
closure = QuestDockWithGestureAnimationF;
|
||||
closure.__closure = {activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode};
|
||||
closure.__workletHash = 5416180055289;
|
||||
closure.__initData = env0_28;
|
||||
const value22 = Reflect.apply(useAnimatedProps, moduleValue11, [closure]);
|
||||
const moduleValue12 = reanimatedRexportModule;
|
||||
useDerivedValue = moduleValue12.useDerivedValue;
|
||||
closure = QuestDockWithGestureAnimationV;
|
||||
closure.__closure = {questDockWrapperSpecs: questDockWrapperSpecs, windowDimensions: windowDimensions,
|
||||
safeAreaTop: top};
|
||||
closure.__workletHash = 8073454569923;
|
||||
closure.__initData = env0_29;
|
||||
const value24 = (importDefault(8621) /* metro dependency 8621: useStateFromSharedValue */)(Reflect.apply(useDerivedValue,
|
||||
moduleValue12, [closure]));
|
||||
const moduleValue13 = reanimatedRexportModule;
|
||||
useAnimatedStyle = moduleValue13.useAnimatedStyle;
|
||||
closure = function() {
|
||||
var moduleValue = require(dependencyMap[24]);
|
||||
return {opacity: moduleValue.withSpring(activeQuestDockMode.get() === QuestDockMode.CLOSED ? 0 : activeQuestDockMode.get() !== QuestDockMode.SOFT_DISMISSED ? 1 : 0,
|
||||
|
||||
QUEST_DOCK_MODE_CHANGE_PHYSICS)};
|
||||
};
|
||||
closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring,
|
||||
activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode,
|
||||
QUEST_DOCK_MODE_CHANGE_PHYSICS: QUEST_DOCK_MODE_CHANGE_PHYSICS};
|
||||
closure.__workletHash = 6468803634518;
|
||||
closure.__initData = env0_30;
|
||||
const value25 = Reflect.apply(useAnimatedStyle, moduleValue13, [closure]);
|
||||
const moduleValue14 = reanimatedRexportModule;
|
||||
useAnimatedStyle = moduleValue14.useAnimatedStyle;
|
||||
closure = QuestDockWithGestureAnimationZ;
|
||||
object2 = {isEnrolled: value12, activeQuestDockMode: activeQuestDockMode};
|
||||
object2.QuestDockMode = QuestDockMode;
|
||||
object2.QUEST_DOCK_CONTENT_BORDER_RADII = QUEST_DOCK_CONTENT_BORDER_RADII;
|
||||
object2.questDockBorderRadius = value13;
|
||||
object2.youBarEnabled = value10;
|
||||
object2.bottomBorderRadius = value14;
|
||||
object2.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
|
||||
object2.QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED = QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED;
|
||||
object2.questDockWrapperSpecs = questDockWrapperSpecs;
|
||||
object2.QUEST_DOCK_COLLAPSED_HEIGHT = QUEST_DOCK_COLLAPSED_HEIGHT;
|
||||
object2.QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED = QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 14482794021030;
|
||||
closure.__initData = env0_31;
|
||||
const value26 = Reflect.apply(useAnimatedStyle, moduleValue14, [closure]);
|
||||
const jsxRuntimeEnv0_22Binding = jsxRuntimeEnv0_22;
|
||||
const value27 = 'auto';
|
||||
const AccessibilityViewAnimated = (require(4556) /* metro dependency 4556: AccessibilityViewNative */).AccessibilityViewAnimated;
|
||||
const r5 = value7 ? value9 : !!value7;
|
||||
const QuestDockGestureDetector = importDefault(13653) /* metro dependency 13653: QuestDockGestureDetector */;
|
||||
const ReanimatedNativeView = importDefault(8141) /* metro dependency 8141: ReanimatedNativeView */;
|
||||
const defaultImport3 = ReanimatedNativeView;
|
||||
const defaultImport3Props = {style: [styles.questDockWrapper, {bottom: value11 - 1}, value15],
|
||||
layout: (require(13571) /* metro dependency 13571: QuestDockUtils */).dimensionsLayoutTransition};
|
||||
const pressableBindingProps = {style: styles.nestedPressable, onPressIn: value19, onPressOut: value20,
|
||||
onPress: value18, pointerEvents: value9 ? 'none' : value27, accessibilityRole: 'button'};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
pressableBindingProps.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.rjVPdM);
|
||||
pressableBindingProps.accessibilityHint = value9 ? '' : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.n0MlOB);
|
||||
const items2 = [<Pressable {...pressableBindingProps} />];
|
||||
items2[1] = <ReanimatedNativeView style={[styles.questDockHeaderBorder,
|
||||
value26]} layout={(require(13571) /* metro dependency 13571: QuestDockUtils */).dimensionsLayoutTransition} pointerEvents="none" />;
|
||||
items2[2] = <ReanimatedNativeView style={[styles.questDockContentWrapper,
|
||||
value25]}><View style={styles.questDockContentWrapper}>{((Component) => <Component hideOnExpand={value12} />)(importDefault(13654) /* metro dependency 13654: QuestDockContentCollapsed */)}{((Component) => <Component />)(importDefault(13661) /* metro dependency 13661: QuestDockContentExpanded */)}</View>{!value12 && ((Component) => <Component />)(importDefault(13664) /* metro dependency 13664: QuestDockUnenrolledBackground */)}</ReanimatedNativeView>;
|
||||
items2[3] = ((Component) => <Component isExpanded={value9} />)(importDefault(13665) /* metro dependency 13665: QuestDockDragHandle */);
|
||||
const view = <View style={styles.wrapper} pointerEvents={value27}><AccessibilityViewAnimated nativeID={value5} style={styles.accessibilityWrapper} accessibilityViewIsModal={r5} onAccessibilityEscape={value6} pointerEvents="box-none"><QuestDockGestureDetector><ReanimatedNativeView style={value17}>{((Component) => <Component {...defaultImport3Props}>{items2}</Component>)(defaultImport3)}</ReanimatedNativeView></QuestDockGestureDetector></AccessibilityViewAnimated></View>;
|
||||
const defaultImport10 = ReanimatedNativeView;
|
||||
const Backdrop = (require(4562) /* metro dependency 4562: BackdropNative */).Backdrop;
|
||||
return (
|
||||
<>
|
||||
{view}
|
||||
{((Component) => <Component style={value21} animatedProps={value22}><Backdrop onDismiss={value6} accessibleDismissStyle={{height: value24}} /></Component>)(defaultImport10)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function QuestDockModeChangeTracker({mode, questId}) { // fn#104253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:11130, offset: 0x0228ccf8, size: 120 bytes, params: 2, frame: 17
|
||||
const questHooksModule = require(9483) /* metro dependency 9483: QuestHooks */;
|
||||
const useQuestBarOrDockModeChangeTracking = questHooksModule.useQuestBarOrDockModeChangeTracking;
|
||||
const object2 = {mode: mode};
|
||||
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
|
||||
let QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
|
||||
object2.questContent = QUEST_BAR_MOBILE;
|
||||
object2.questId = questId;
|
||||
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
|
||||
object2.sourceQuestContent = QUEST_BAR_MOBILE;
|
||||
Reflect.apply(useQuestBarOrDockModeChangeTracking, questHooksModule, [object2]);
|
||||
return null;
|
||||
}
|
||||
|
||||
function QuestBarRenderedTriggerPointWrapper() { // fn#104254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:11381, offset: 0x0228cd70, size: 35 bytes, params: 1, frame: 13
|
||||
env0_5.useEffect(function() {
|
||||
var QuestBarRenderedTriggerPoint = require(dependencyMap[38]).QuestBarRenderedTriggerPoint;
|
||||
QuestBarRenderedTriggerPoint.trigger();
|
||||
}, []);
|
||||
return null;
|
||||
}
|
||||
|
||||
function QuestDockWithEntranceAnimation() { // fn#104256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:12018, offset: 0x0228cdbe, size: 969 bytes, params: 1, frame: 30
|
||||
var r0;
|
||||
var View;
|
||||
var QuestContentImpressionTrackerNative;
|
||||
var object;
|
||||
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
|
||||
var QUEST_BAR_MOBILE;
|
||||
let binding = env0_5;
|
||||
const value2 = undefined;
|
||||
const {isRendered, isVisibleToUser,
|
||||
quest} = binding.useContext(importDefault(13650) /* metro dependency 13650: QuestDockContext */);
|
||||
let env0_2 = env0_4(env0_5.useState(function() {
|
||||
return global.performance.now();
|
||||
}), 1)[0];
|
||||
const env0_3 = env0_5.useRef(false);
|
||||
const styles = useStyles();
|
||||
const value7 = env0_4(env0_5.useState({'width': 0, 'height': 0}), 2);
|
||||
var property = value7[0];
|
||||
var env0_4 = property;
|
||||
var env0_5 = value7[1];
|
||||
const env0_6 = (require(566) /* metro dependency 566: flux */).useStateFromStores([QuestDockStore], function() {
|
||||
return QuestDockStore.prevRestingQuestDockMode;
|
||||
});
|
||||
const isEligibleForQuests = (require(9479) /* metro dependency 9479: QuestsEligibility */).getIsEligibleForQuests();
|
||||
const value9 = (require(9483) /* metro dependency 9483: QuestHooks */).useQuestBarImpressionSurvey(quest);
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
const closure = QuestDockWithEntranceAnimationC;
|
||||
closure.__closure = {withSpring: (require(4577) /* metro dependency 4577: spring */).withSpring,
|
||||
isRendered: isRendered, ENTRANCE_ANIMATION_SPING_CONFIG: env0_33, componentDimensions: property};
|
||||
closure.__workletHash = 15545726338295;
|
||||
closure.__initData = env0_34;
|
||||
const value10 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
|
||||
binding = env0_5;
|
||||
const value11 = null;
|
||||
var [property, env0_8] = env0_4(binding.useState(value11), 2);
|
||||
const questHooksNativeModule = require(13568) /* metro dependency 13568: QuestHooksNative */;
|
||||
const useQuestDockHeroAsset = questHooksNativeModule.useQuestDockHeroAsset;
|
||||
const staticUrl = Reflect.apply(useQuestDockHeroAsset, questHooksNativeModule, [quest]).staticUrl;
|
||||
const value14 = questHooksNativeModule.useQuestGameLogotypeAssetUrl(quest);
|
||||
const userStatus = quest.userStatus;
|
||||
const result = value11 != (value11 == userStatus ? value2 : userStatus.enrolledAt);
|
||||
const value15 = (require(7701) /* metro dependency 7701: ClientThemesOverrides */).useGradientBottom();
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
const useToken = useTokenModule.useToken;
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
const value16 = Reflect.apply(useToken, useTokenModule, [BACKGROUND_SURFACE_HIGH]);
|
||||
const backgroundColor = value11 == value15 ? value2 : value15.backgroundColor;
|
||||
const env0_12 = value11 == backgroundColor ? value16 : backgroundColor;
|
||||
env0_5.useEffect(function() {
|
||||
var env0_0 = _fun104261;
|
||||
var env0_1 = _fun104262;
|
||||
var env0_2 = _fun104265;
|
||||
_fun104269();
|
||||
}, [staticUrl, value14, quest.id]);
|
||||
env0_5.useEffect(_fun104270, [property, quest.id]);
|
||||
let r2 = value11 == quest || !isEligibleForQuests;
|
||||
r2 = !r2 ? !property : r2;
|
||||
env0_5.useEffect(_fun104271, [r2]);
|
||||
if (r2) {
|
||||
r0 = value11;
|
||||
} else {
|
||||
View = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
|
||||
var viewProps = {pointerEvents: 'box-none', style: [styles.wrapperAnimated, value10],
|
||||
onLayout: onLayout_104273};
|
||||
QuestContentImpressionTrackerNative = (require(10183) /* metro dependency 10183: QuestContentImpressionTrackerNative */).QuestContentImpressionTrackerNative;
|
||||
object = {overrideVisibility: isVisibleToUser};
|
||||
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
|
||||
object.questContent = QUEST_BAR_MOBILE;
|
||||
object.questOrQuests = quest;
|
||||
object.onImpression = value9;
|
||||
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
|
||||
object.sourceQuestContent = QUEST_BAR_MOBILE;
|
||||
r0 = <View {...viewProps}><QuestContentImpressionTrackerNative {...object}>{children_104274}</QuestContentImpressionTrackerNative></View>;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function QuestDockWithQuestContext() { // fn#104276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:15188, offset: 0x0228d75e, size: 166 bytes, params: 1, frame: 19
|
||||
const value2 = (require(13568) /* metro dependency 13568: QuestHooksNative */).useMobileQuestDock();
|
||||
const value3 = (require(13568) /* metro dependency 13568: QuestHooksNative */).useIsMobileQuestDockRenderedBase(value2);
|
||||
const value4 = (require(13568) /* metro dependency 13568: QuestHooksNative */).useIsMobileQuestDockVisibleToUser(value2,
|
||||
value3);
|
||||
const value5 = null;
|
||||
if (value5 == value2) {
|
||||
return value5;
|
||||
} else {
|
||||
const Provider = (importDefault(13650) /* metro dependency 13650: QuestDockContext */).Provider;
|
||||
return (
|
||||
<Provider value={{isRendered: value3, isVisibleToUser: value4, quest: value2}}>
|
||||
<QuestDockWithEntranceAnimation />
|
||||
</Provider>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function QuestDockWithGestureAnimationK() { // fn#104242, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:6263, owner: QuestDockWithGestureAnimation.K, offset: 0x0228c5e0, size: 35 bytes, params: 1, frame: 9
|
||||
const value = restingQuestDockMode.get();
|
||||
const EXPANDED = QuestDockMode.EXPANDED;
|
||||
return value === EXPANDED;
|
||||
}
|
||||
|
||||
function QuestDockWithGestureAnimationW() { // fn#104243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:6644, owner: QuestDockWithGestureAnimation.W, offset: 0x0228c603, size: 446 bytes, params: 1, frame: 24
|
||||
const object2 = {};
|
||||
object2.backgroundColor = appThemedBackgroundColor;
|
||||
const springModule = require(4577) /* metro dependency 4577: spring */;
|
||||
let withSpring = springModule.withSpring;
|
||||
const activeQuestDockModeBinding = activeQuestDockMode;
|
||||
let get = activeQuestDockModeBinding.get;
|
||||
const value3 = Reflect.apply(get, activeQuestDockModeBinding, []);
|
||||
let COLLAPSED = QuestDockMode.COLLAPSED;
|
||||
object2.borderBottomRightRadius = Reflect.apply(withSpring, springModule,
|
||||
[value3 !== COLLAPSED || env0_7 ? env0_10.get() : env0_9, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED]);
|
||||
const moduleValue2 = springModule;
|
||||
withSpring = moduleValue2.withSpring;
|
||||
const value5 = activeQuestDockMode.get();
|
||||
COLLAPSED = QuestDockMode.COLLAPSED;
|
||||
object2.borderBottomLeftRadius = Reflect.apply(withSpring, moduleValue2,
|
||||
[value5 !== COLLAPSED || env0_7 ? env0_10.get() : env0_9, QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED]);
|
||||
const questDockWrapperSpecsBinding = questDockWrapperSpecs;
|
||||
get = questDockWrapperSpecsBinding.get;
|
||||
object2.height = Reflect.apply(get, questDockWrapperSpecsBinding, []).height;
|
||||
get = questDockWrapperSpecsBinding.get;
|
||||
object2.width = Reflect.apply(get, questDockWrapperSpecsBinding, []).width;
|
||||
object2.opacity = springModule.withSpring(1, QUEST_DOCK_MODE_CHANGE_PHYSICS);
|
||||
let value = springModule;
|
||||
withSpring = value.withSpring;
|
||||
get = questDockWrapperSpecsBinding.get;
|
||||
const x = Reflect.apply(get, questDockWrapperSpecsBinding, []).x;
|
||||
const questDockUtilsModule = require(13571) /* metro dependency 13571: QuestDockUtils */;
|
||||
const roundToNearestPixel = questDockUtilsModule.roundToNearestPixel;
|
||||
get = questDockWrapperSpecsBinding.get;
|
||||
const items2 = [{translateX: Reflect.apply(withSpring, value, [x + -1 * Reflect.apply(roundToNearestPixel,
|
||||
questDockUtilsModule, [Reflect.apply(get, questDockWrapperSpecsBinding,
|
||||
[]).width / 2]), QUEST_DOCK_MODE_CHANGE_PHYSICS])}];
|
||||
value = springModule;
|
||||
withSpring = value.withSpring;
|
||||
get = questDockWrapperSpecsBinding.get;
|
||||
items2[1] = {translateY: Reflect.apply(withSpring, value, [Reflect.apply(get, questDockWrapperSpecsBinding, []).y,
|
||||
QUEST_DOCK_MODE_CHANGE_PHYSICS])};
|
||||
object2.transform = items2;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function QuestDockWithGestureAnimationX() { // fn#104244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:7499, owner: QuestDockWithGestureAnimation.X, offset: 0x0228c7c1, size: 198 bytes, params: 1, frame: 22
|
||||
const object = {};
|
||||
const springModule = require(4577) /* metro dependency 4577: spring */;
|
||||
const withSpring = springModule.withSpring;
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const interpolate = reanimatedRexportModule.interpolate;
|
||||
const value3 = env0_11.get();
|
||||
const value4 = activeQuestDockMode.get();
|
||||
const EXPANDED = QuestDockMode.EXPANDED;
|
||||
object.scale = Reflect.apply(withSpring, springModule, [Reflect.apply(interpolate, reanimatedRexportModule, [value3,
|
||||
[1, 0], [value4 === EXPANDED || env0_7 ? 1 : 0.98, 1]]),
|
||||
(require(4581) /* metro dependency 4581: springPresets */).springStandard]);
|
||||
return {transform: [object]};
|
||||
}
|
||||
|
||||
function _fun104246() { // fn#104246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:7939, offset: 0x0228c8a4, size: 24 bytes, params: 1, frame: 11
|
||||
env0_11.set(1);
|
||||
}
|
||||
|
||||
function _fun104247() { // fn#104247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:7980, offset: 0x0228c8bc, size: 23 bytes, params: 1, frame: 11
|
||||
env0_11.set(0);
|
||||
}
|
||||
|
||||
function QuestDockWithGestureAnimationF() { // fn#104249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:8338, owner: QuestDockWithGestureAnimation.F, offset: 0x0228c93c, size: 50 bytes, params: 1, frame: 11
|
||||
const value = activeQuestDockMode.get();
|
||||
const EXPANDED = QuestDockMode.EXPANDED;
|
||||
return {pointerEvents: value !== EXPANDED ? 'none' : 'auto'};
|
||||
}
|
||||
|
||||
function QuestDockWithGestureAnimationV() { // fn#104250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:8527, owner: QuestDockWithGestureAnimation.V, offset: 0x0228c96e, size: 53 bytes, params: 1, frame: 11
|
||||
const questDockWrapperSpecsBinding = questDockWrapperSpecs;
|
||||
let get = questDockWrapperSpecsBinding.get;
|
||||
const value2 = Reflect.apply(get, questDockWrapperSpecsBinding, []);
|
||||
const windowDimensionsBinding = windowDimensions;
|
||||
get = windowDimensionsBinding.get;
|
||||
return Reflect.apply(get, windowDimensionsBinding, []).height - top - value2.height;
|
||||
}
|
||||
|
||||
function QuestDockWithGestureAnimationZ() { // fn#104252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:9043, owner: QuestDockWithGestureAnimation.z, offset: 0x0228ca11, size: 743 bytes, params: 1, frame: 23
|
||||
var r1;
|
||||
var r6;
|
||||
var value2;
|
||||
var value3;
|
||||
var value4;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var value9;
|
||||
var value10;
|
||||
var moduleValue2;
|
||||
var moduleValue3;
|
||||
const object2 = {};
|
||||
if (result) {
|
||||
r1 = env0_9;
|
||||
} else {
|
||||
value2 = activeQuestDockMode.get();
|
||||
value3 = environment.__proto__;
|
||||
r1 = value2 !== QuestDockMode.EXPANDED ? env0_9 : QUEST_DOCK_CONTENT_BORDER_RADII;
|
||||
}
|
||||
object2.borderTopLeftRadius = r1;
|
||||
if (result) {
|
||||
r1 = env0_9;
|
||||
} else {
|
||||
value4 = activeQuestDockMode.get();
|
||||
value5 = environment.__proto__;
|
||||
r1 = value4 !== QuestDockMode.EXPANDED ? env0_9 : QUEST_DOCK_CONTENT_BORDER_RADII;
|
||||
}
|
||||
object2.borderTopRightRadius = r1;
|
||||
if (result) {
|
||||
r1 = env0_7 ? env0_10.get() : env0_9;
|
||||
} else {
|
||||
value6 = activeQuestDockMode.get();
|
||||
value7 = environment.__proto__;
|
||||
r1 = value6 !== QuestDockMode.EXPANDED ? env0_7 ? env0_10.get() : env0_9 : QUEST_DOCK_CONTENT_BORDER_RADII;
|
||||
}
|
||||
object2.borderBottomLeftRadius = r1;
|
||||
if (result) {
|
||||
r1 = env0_7 ? env0_10.get() : env0_9;
|
||||
} else {
|
||||
value9 = activeQuestDockMode.get();
|
||||
value10 = environment.__proto__;
|
||||
r1 = value9 !== QuestDockMode.EXPANDED ? env0_7 ? env0_10.get() : env0_9 : QUEST_DOCK_CONTENT_BORDER_RADII;
|
||||
}
|
||||
object2.borderBottomRightRadius = r1;
|
||||
const springModule = require(4577) /* metro dependency 4577: spring */;
|
||||
const withSpring = springModule.withSpring;
|
||||
const value13 = activeQuestDockMode.get();
|
||||
let EXPANDED = QuestDockMode.EXPANDED;
|
||||
const value14 = 1;
|
||||
object2.opacity = Reflect.apply(withSpring, springModule, [value13 !== EXPANDED ? value14 : 0,
|
||||
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED]);
|
||||
const value16 = activeQuestDockMode.get();
|
||||
EXPANDED = QuestDockMode.EXPANDED;
|
||||
object2.height = value16 === EXPANDED ? result ? questDockWrapperSpecs.get().height : QUEST_DOCK_COLLAPSED_HEIGHT : questDockWrapperSpecs.get().height;
|
||||
const value17 = activeQuestDockMode.get();
|
||||
EXPANDED = QuestDockMode.EXPANDED;
|
||||
object2.width = value17 !== EXPANDED || result ? questDockWrapperSpecs.get().width : questDockWrapperSpecs.get().width - 2 * QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED;
|
||||
resultBinding = result;
|
||||
const value19 = 0;
|
||||
if (resultBinding) {
|
||||
r1 = value19;
|
||||
} else {
|
||||
moduleValue2 = springModule;
|
||||
r1 = moduleValue2.withSpring(activeQuestDockMode.get() !== QuestDockMode.EXPANDED ? value19 : QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED,
|
||||
|
||||
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED);
|
||||
}
|
||||
const items2 = [{translateX: r1}];
|
||||
if (result) {
|
||||
r6 = value19;
|
||||
} else {
|
||||
moduleValue3 = springModule;
|
||||
r6 = moduleValue3.withSpring(activeQuestDockMode.get() !== QuestDockMode.EXPANDED ? value19 : QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED,
|
||||
|
||||
QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED);
|
||||
}
|
||||
items2[1] = {translateY: r6};
|
||||
object2.transform = items2;
|
||||
object2.borderBottomWidth = env0_7 ? env0_10.get() > value19 ? value14 : value19 : value14;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function QuestDockWithEntranceAnimationC() { // fn#104259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:12445, owner: QuestDockWithEntranceAnimation.c, offset: 0x0228d196, size: 139 bytes, params: 1, frame: 21
|
||||
const object2 = {};
|
||||
const springModule = require(4577) /* metro dependency 4577: spring */;
|
||||
const withSpring = springModule.withSpring;
|
||||
const isRenderedBinding = isRendered;
|
||||
const value3 = 0;
|
||||
object2.opacity = Reflect.apply(withSpring, springModule, [isRenderedBinding ? 1 : value3, env1_33,
|
||||
'animate-always']);
|
||||
const moduleValue2 = springModule;
|
||||
object2.transform = [{translateY: moduleValue2.withSpring(isRendered ? value3 : env0_4.height, env1_33)}];
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun104260() { // fn#104260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:13068, offset: 0x0228d221, size: 53 bytes, params: 1, frame: 9
|
||||
const prefetchWithErrorReporting = function(a0) {
|
||||
return _prefetchWithErrorReporting.apply(this, arguments);
|
||||
};
|
||||
(function() {
|
||||
return _preloadQuestDockAssets.apply(this, arguments);
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun104270() { // fn#104270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:13818, offset: 0x0228d408, size: 219 bytes, params: 1, frame: 19
|
||||
var value2;
|
||||
var defaultImport;
|
||||
var increment;
|
||||
var object2;
|
||||
var items2;
|
||||
var value;
|
||||
if (env0_7 === false) {
|
||||
value2 = environment.__proto__;
|
||||
defaultImport = importDefault(4826) /* metro dependency 4826: MonitoringAgent */;
|
||||
increment = defaultImport.increment;
|
||||
object2 = {};
|
||||
object2.name = (require(4831) /* metro dependency 4831: MetricEvents */).MetricEvents.QUEST_CONTENT_RENDERING_FAILURE;
|
||||
value = 'quest_id:' + quest.id;
|
||||
items2 = [value];
|
||||
value = require(7120) /* metro dependency 7120: AnalyticsTypes */;
|
||||
value = value.getQuestContentName((require(6531) /* metro dependency 6531: QuestTypes */).QuestContent.QUEST_BAR_MOBILE);
|
||||
items2[1] = 'quest_content:' + value;
|
||||
items2[2] = 'reason:asset_loading_error';
|
||||
object2.tags = items2;
|
||||
Reflect.apply(increment, defaultImport, [object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun104271() { // fn#104271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:14109, offset: 0x0228d4e3, size: 64 bytes, params: 1, frame: 12
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
(require(9484) /* metro dependency 9484: QuestActionCreators */).updateQuestDockVisibilityEligibility({isEligibleToBeVisible: !env0_13});
|
||||
return _fun104272;
|
||||
}
|
||||
|
||||
function QuestDockWithEntranceAnimationOnLayout(a0) { // fn#104273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:14361, owner: QuestDockWithEntranceAnimation.onLayout, offset: 0x0228d552, size: 277 bytes, params: 2, frame: 19
|
||||
var Math;
|
||||
var value4;
|
||||
var value5;
|
||||
var defaultImport;
|
||||
var distribution;
|
||||
const binding = env0_5;
|
||||
let object2 = {};
|
||||
object2.height = a0.nativeEvent.layout.height;
|
||||
object2.width = a0.nativeEvent.layout.width;
|
||||
binding(object2);
|
||||
if (!env0_3.current) {
|
||||
env0_3.current = true;
|
||||
Math = global.Math;
|
||||
if (Math.random() < 0.1) {
|
||||
Math = global.Math;
|
||||
value4 = Math.round(global.performance.now() - env0_2);
|
||||
value5 = environment.__proto__;
|
||||
defaultImport = importDefault(4826) /* metro dependency 4826: MonitoringAgent */;
|
||||
distribution = defaultImport.distribution;
|
||||
object2 = {};
|
||||
object2.name = (require(4831) /* metro dependency 4831: MetricEvents */).MetricEvents.QUEST_BAR_MOBILE_TIME_TO_FIRST_PAINT;
|
||||
object2.tags = ['quest_id:' + quest.id];
|
||||
Reflect.apply(distribution, defaultImport, [object2, value4]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function QuestDockWithEntranceAnimationChildren() { // fn#104274, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:14871, owner: QuestDockWithEntranceAnimation.children, offset: 0x0228d667, size: 224 bytes, params: 1, frame: 24
|
||||
const jsxRuntimeEnv1_22Binding = jsxRuntimeEnv1_22;
|
||||
const id = quest.id;
|
||||
const prevRestingQuestDockModeBinding = prevRestingQuestDockMode;
|
||||
const value3 = undefined;
|
||||
const items2 = [<QuestDockModeChangeTracker questId={id} mode={prevRestingQuestDockModeBinding} />];
|
||||
items2[1] = <QuestBarRenderedTriggerPointWrapper />;
|
||||
const QuestDockGestureContextProvider = (require(13573) /* metro dependency 13573: QuestDockGestureContext */).QuestDockGestureContextProvider;
|
||||
const ThemeContextProvider = (require(3868) /* metro dependency 3868: native */).ThemeContextProvider;
|
||||
const DARK = result ? value3 : ThemeTypes.DARK;
|
||||
items2[2] = <QuestDockGestureContextProvider><ThemeContextProvider theme={DARK}><QuestDockWithGestureAnimation appThemedBackgroundColor={env0_12} /></ThemeContextProvider></QuestDockGestureContextProvider>;
|
||||
return (
|
||||
<>
|
||||
{items2}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function _prefetchWithErrorReporting() { // fn#104262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:13169, offset: 0x0228d256, size: 53 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
const value = environment.__proto__.__proto__;
|
||||
return env2_3(_fun104264).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _preloadQuestDockAssets() { // fn#104265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:13439, offset: 0x0228d328, size: 53 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
const value = environment.__proto__.__proto__;
|
||||
return env2_3(_fun104267).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _fun104272() { // fn#104272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:14188, offset: 0x0228d523, size: 47 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__.__proto__;
|
||||
(require(9484) /* metro dependency 9484: QuestActionCreators */).updateQuestDockVisibilityEligibility({isEligibleToBeVisible: false});
|
||||
}
|
||||
|
||||
function* _fun104264(a0) { // fn#104264, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:13246, offset: 0x0228d296, size: 146 bytes, params: 2, frame: 16
|
||||
var binding;
|
||||
var prefetch;
|
||||
var value3;
|
||||
var value4;
|
||||
var value5;
|
||||
var error;
|
||||
var value6;
|
||||
var track;
|
||||
var QUEST_ASSET_LOADING_FAILURE;
|
||||
var QUESTS_BAR_MOBILE;
|
||||
var id;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
try {
|
||||
binding = env4_8;
|
||||
} catch (error) {
|
||||
binding = env4_1;
|
||||
value6 = binding(env4_2[43]);
|
||||
track = value6.track;
|
||||
QUEST_ASSET_LOADING_FAILURE = env4_17.QUEST_ASSET_LOADING_FAILURE;
|
||||
QUESTS_BAR_MOBILE = env4_11.QUESTS_BAR_MOBILE;
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
id = importDefault.id;
|
||||
Reflect.apply(track, value6, [QUEST_ASSET_LOADING_FAILURE, {source: QUESTS_BAR_MOBILE, quest_id: id,
|
||||
asset_id: a0}]);
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
prefetch = binding.prefetch;
|
||||
} catch (error) {
|
||||
binding = env4_1;
|
||||
value6 = binding(env4_2[43]);
|
||||
track = value6.track;
|
||||
QUEST_ASSET_LOADING_FAILURE = env4_17.QUEST_ASSET_LOADING_FAILURE;
|
||||
QUESTS_BAR_MOBILE = env4_11.QUESTS_BAR_MOBILE;
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
id = importDefault.id;
|
||||
Reflect.apply(track, value6, [QUEST_ASSET_LOADING_FAILURE, {source: QUESTS_BAR_MOBILE, quest_id: id,
|
||||
asset_id: a0}]);
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
value3 = Reflect.apply(prefetch, binding, [a0]);
|
||||
} catch (error) {
|
||||
binding = env4_1;
|
||||
value6 = binding(env4_2[43]);
|
||||
track = value6.track;
|
||||
QUEST_ASSET_LOADING_FAILURE = env4_17.QUEST_ASSET_LOADING_FAILURE;
|
||||
QUESTS_BAR_MOBILE = env4_11.QUESTS_BAR_MOBILE;
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
id = importDefault.id;
|
||||
Reflect.apply(track, value6, [QUEST_ASSET_LOADING_FAILURE, {source: QUESTS_BAR_MOBILE, quest_id: id,
|
||||
asset_id: a0}]);
|
||||
return false;
|
||||
}
|
||||
yield value3;
|
||||
try {
|
||||
value4 = undefined;
|
||||
value5 = false;
|
||||
} catch (error) {
|
||||
binding = env4_1;
|
||||
value6 = binding(env4_2[43]);
|
||||
track = value6.track;
|
||||
QUEST_ASSET_LOADING_FAILURE = env4_17.QUEST_ASSET_LOADING_FAILURE;
|
||||
QUESTS_BAR_MOBILE = env4_11.QUESTS_BAR_MOBILE;
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
id = importDefault.id;
|
||||
Reflect.apply(track, value6, [QUEST_ASSET_LOADING_FAILURE, {source: QUESTS_BAR_MOBILE, quest_id: id,
|
||||
asset_id: a0}]);
|
||||
return false;
|
||||
}
|
||||
if (value5) {
|
||||
return value4;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function* _fun104267() { // fn#104267, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13848:13508, offset: 0x0228d368, size: 160 bytes, params: 1, frame: 16
|
||||
var environment;
|
||||
var push;
|
||||
var value3;
|
||||
var value4;
|
||||
if (true) {
|
||||
var items2 = [];
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
if (QuestDockStore != null) {
|
||||
push = items2.push;
|
||||
value3 = environment.__proto__.__proto__;
|
||||
Reflect.apply(push, items2, [isRendered(QuestDockStore)]);
|
||||
}
|
||||
if (QuestDockMode != null) {
|
||||
push = items2.push;
|
||||
value4 = environment.__proto__.__proto__;
|
||||
Reflect.apply(push, items2, [isRendered(QuestDockMode)]);
|
||||
}
|
||||
var Promise = global.Promise;
|
||||
yield Promise.all(items2);
|
||||
var value5 = undefined;
|
||||
if (false) {
|
||||
return value5;
|
||||
}
|
||||
Image(value5.every(function(a0) {
|
||||
return a0 === true;
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
/* Metro module 13631; source: modules/quests/native/QuestDock/QuestDockBlurredContentBackground.tsx; dependencies: [31, 27, 33, 4563, 2] */
|
||||
function _fun104099(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13828:6, offset: 0x022857f3, size: 170 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).StyleSheet;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
value = value.memo(QuestDockBlurredContentBackground);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockBlurredContentBackground.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function QuestDockBlurredContentBackground({animatedStyle, animatedLayout, blurTheme}) { // fn#104100, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13828:155, offset: 0x0228589d, size: 187 bytes, params: 2, frame: 19
|
||||
const r9 = blurTheme === undefined ? 'dark' : blurTheme;
|
||||
const binding = env0_2;
|
||||
return ((Component) => <Component nativeID="quest-dock-blurred-background" blurTintRgba={binding.useMemo(_fun104102,
|
||||
[r9])} blurAmount={0.5} blurTheme="dark" android_fallbackColor={binding.useMemo(_fun104101,
|
||||
[r9])} style={[StyleSheet.absoluteFillObject,
|
||||
animatedStyle]} layout={animatedLayout} />)(importDefault(4563) /* metro dependency 4563: VisualEffectViewAnimated */);
|
||||
}
|
||||
|
||||
function _fun104101() { // fn#104101, offset: 0x02285958, size: 29 bytes, params: 1, frame: 3
|
||||
return env0_0 !== 'dark' ? 'rgba(255, 255, 255, 0.1)' : 'rgba(38, 39, 50, 0.65)';
|
||||
}
|
||||
|
||||
function _fun104102() { // fn#104102, offset: 0x02285975, size: 29 bytes, params: 1, frame: 3
|
||||
return env0_0 !== 'dark' ? 'rgba(255, 255, 255, 0.1)' : 'rgba(38, 39, 50, 0.1)';
|
||||
}
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
/* Metro module 13656; source: modules/quests/native/QuestDock/QuestDockBlurredHeaderPlaceholder.tsx; dependencies: [31, 27, 6528, 13572, 33, 4501, 13573, 13657, 4017, 2] */
|
||||
function _fun104309(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13853:6, offset: 0x022902c3, size: 373 bytes, params: 8, frame: 25
|
||||
var object4;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const value2 = require(27) /* metro dependency 27 */;
|
||||
const StyleSheet = value2.StyleSheet;
|
||||
const env0_4 = value2.View;
|
||||
const env0_5 = (require(6528) /* metro dependency 6528: QuestConstants */).QuestDockMode;
|
||||
const {QUEST_DOCK_EXPANDED_HEIGHT,
|
||||
QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED} = require(13572) /* metro dependency 13572: QuestDockConstants */;
|
||||
const value4 = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value4.jsx;
|
||||
const env0_8 = value4.Fragment;
|
||||
const env0_9 = value4.jsxs;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object4 = {};
|
||||
const object5 = {};
|
||||
copyDataProperties(object5, StyleSheet.absoluteFillObject, undefined);
|
||||
object5['height'] = QUEST_DOCK_EXPANDED_HEIGHT;
|
||||
object5['top'] = -QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED;
|
||||
object4.image = object5;
|
||||
const object6 = {};
|
||||
copyDataProperties(object6, StyleSheet.absoluteFillObject, undefined);
|
||||
object6['backgroundColor'] = 'rgba(38, 39, 50, 0.3)';
|
||||
object6['height'] = QUEST_DOCK_EXPANDED_HEIGHT;
|
||||
object4.overlay = object6;
|
||||
const env0_10 = Reflect.apply(createStyles, createStylesModule, [object4]);
|
||||
object4 = {code: 'function QuestDockBlurredHeaderPlaceholderTsx1(){const{activeQuestDockMode,QuestDockMode,QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED,questDockWrapperSpecs}=this.__closure;return{left:activeQuestDockMode.get()===QuestDockMode.EXPANDED?-QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED:0,width:questDockWrapperSpecs.get().width+QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED};}'};
|
||||
value = value.memo(QuestDockBlurredContentBackground_104310);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockBlurredHeaderPlaceholder.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function QuestDockBlurredContentBackground_104310({animatedLayout, animatedStyle, placeholder}) { // fn#104310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13853:843, offset: 0x02290438, size: 341 bytes, params: 2, frame: 23
|
||||
const binding = env0_3;
|
||||
const useContext = binding.useContext;
|
||||
const QuestDockGestureContext = (require(13573) /* metro dependency 13573: QuestDockGestureContext */).QuestDockGestureContext;
|
||||
const {questDockWrapperSpecs, activeQuestDockMode} = Reflect.apply(useContext, binding, [QuestDockGestureContext]);
|
||||
const value3 = binding.useMemo(_fun104311, [placeholder]);
|
||||
const styles = useStyles();
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
const closure = function() {
|
||||
var object = {};
|
||||
object.left = activeQuestDockMode.get() !== QuestDockMode.EXPANDED ? 0 : -QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED;
|
||||
object.width = questDockWrapperSpecs.get().width + QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED;
|
||||
return object;
|
||||
};
|
||||
closure.__closure = {activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode,
|
||||
QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED: QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED,
|
||||
questDockWrapperSpecs: questDockWrapperSpecs};
|
||||
closure.__workletHash = 11176778421725;
|
||||
closure.__initData = env0_11;
|
||||
const value4 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
|
||||
const jsxRuntimeEnv0_8Binding = jsxRuntimeEnv0_8;
|
||||
const Image = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).Image;
|
||||
return (
|
||||
<>
|
||||
<Image
|
||||
source={value3}
|
||||
style={[styles.image, animatedStyle, value4]}
|
||||
layout={animatedLayout}
|
||||
/>
|
||||
<View style={styles.overlay} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun104311() { // fn#104311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13853:1059, offset: 0x0229058d, size: 90 bytes, params: 1, frame: 17
|
||||
var environment;
|
||||
const object2 = {};
|
||||
let value = environment.__proto__;
|
||||
value = require(13657) /* metro dependency 13657 */;
|
||||
const thumbHashToDataURL = value.thumbHashToDataURL;
|
||||
const Uint8Array = global.Uint8Array;
|
||||
object2.uri = Reflect.apply(thumbHashToDataURL, value, [Uint8Array.from(global.atob(placeholder), function(a0) {
|
||||
return a0.charCodeAt(0);
|
||||
})]);
|
||||
return object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
/* Metro module 13572; source: modules/quests/native/QuestDock/QuestDockConstants.tsx; dependencies: [697, 2] */
|
||||
function _fun103169(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13762:6, offset: 0x0225ac14, size: 450 bytes, params: 8, frame: 22
|
||||
var object3;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object3 = {'mass': 0.5, 'damping': 80, 'stiffness': 320};
|
||||
const object4 = {};
|
||||
copyDataProperties(object4, object3, undefined);
|
||||
object4['overshootClamping'] = true;
|
||||
const lg = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockConstants.tsx');
|
||||
exports.QUEST_DOCK_COLLAPSED_HEIGHT = 56;
|
||||
exports.QUEST_DOCK_CLOSED_HEIGHT = 22;
|
||||
exports.QUEST_DOCK_EXPANDED_HEIGHT = 400;
|
||||
exports.QUEST_DOCK_EXPANDED_PADDING_BOTTOM = PX_16;
|
||||
exports.QUEST_DOCK_EXPANDED_PADDING_HORIZONTAL = PX_12;
|
||||
exports.QUEST_DOCK_EXPANDED_ENROLLED_PADDING_TOP = PX_8;
|
||||
exports.QUEST_DOCK_COLLAPSED_MAX_WIDTH = 600;
|
||||
exports.QUEST_DOCK_HORIZONTAL_EDGE_GUTTER_COLLAPSED = 8;
|
||||
exports.QUEST_DOCK_VERTICAL_EDGE_GUTTER_COLLAPSED = 8;
|
||||
exports.QUEST_DOCK_VERTICAL_EDGE_GUTTER_EXPANDED = 0;
|
||||
exports.QUEST_DOCK_VERTICAL_EDGE_GUTTER_CLOSED = 0;
|
||||
exports.QUEST_DOCK_UNENROLLED_HEADER_INSET_EXPANDED = 12;
|
||||
exports.QUEST_DOCK_GESTURE_VERTICAL_DELTA_MINIMUM = 15;
|
||||
exports.QUEST_DOCK_GESTURE_CLOSED_VERTICAL_DELTA_MINIMUM = 15;
|
||||
exports.QUEST_DOCK_GESTURE_MODE_TRANSITION_HEIGHT = 200;
|
||||
exports.QUEST_DOCK_GESTURE_MODE_CLOSED_TRANSITION_HEIGHT = 30;
|
||||
exports.QUEST_DOCK_GESTURE_MODE_TRANSITION_VELOCITY = 200;
|
||||
exports.QUEST_DOCK_GESTURE_TOUCH_MOVE_COUNT_THRESHOLD = 5;
|
||||
exports.QUEST_DOCK_GESTURE_CLOSED_Y_OFFSET_FACTOR = 0.8;
|
||||
exports.QUEST_DOCK_GESTURE_COLLAPSED_Y_OFFSET_FACTOR = 1.5;
|
||||
exports.QUEST_DOCK_GESTURE_EXPANDED_EXCESS_HEIGHT_FACTOR = 0.07;
|
||||
exports.QUEST_DOCK_EXTERNAL_SCROLL_DELTA_THRESHOLD = 4;
|
||||
exports.QUEST_DOCK_EXTERNAL_OFFSET_COLLAPSED = 64;
|
||||
exports.QUEST_DOCK_EXTERNAL_OFFSET_COLLAPSED_WITH_YOU_BAR = 56;
|
||||
exports.QUEST_DOCK_EXTERNAL_OFFSET_EXPANDED = 64;
|
||||
exports.QUEST_DOCK_EXTERNAL_OFFSET_EXPANDED_WITH_YOU_BAR = 56;
|
||||
exports.QUEST_DOCK_EXTERNAL_OFFSET_CLOSED = 22;
|
||||
exports.QUEST_DOCK_EXPANDED_CONTENT_PADDING_VERTICAL = 16;
|
||||
exports.QUEST_DOCK_MODE_CHANGE_PHYSICS = object3;
|
||||
exports.QUEST_DOCK_MODE_CHANGE_PHYSICS_CLAMPED = object4;
|
||||
exports.QUEST_DOCK_CONTENT_BORDER_RADII = lg;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
/* Metro module 13654; source: modules/quests/native/QuestDock/QuestDockContentCollapsed.tsx; dependencies: [31, 27, 6528, 13572, 33, 4501, 13650, 13573, 4017, 4577, 8141, 13655, 13660, 2] */
|
||||
function _fun104291(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13851:6, offset: 0x0228ecdb, size: 321 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const StyleSheet = (require(27) /* metro dependency 27 */).StyleSheet;
|
||||
const env0_4 = (require(6528) /* metro dependency 6528: QuestConstants */).QuestDockMode;
|
||||
const env0_5 = (require(13572) /* metro dependency 13572: QuestDockConstants */).QUEST_DOCK_MODE_CHANGE_PHYSICS;
|
||||
const value2 = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value2.jsx;
|
||||
const env0_7 = value2.jsxs;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const object3 = {};
|
||||
copyDataProperties(object3, StyleSheet.absoluteFillObject, undefined);
|
||||
object3['bottom'] = undefined;
|
||||
object3['zIndex'] = 2;
|
||||
const env0_8 = Reflect.apply(createStyles, createStylesModule, [{questDockContentCollapsed: object3}]);
|
||||
object = {code: 'function QuestDockContentCollapsedTsx1(){const{withSpring,activeQuestDockMode,QuestDockMode,hideOnExpand,QUEST_DOCK_MODE_CHANGE_PHYSICS}=this.__closure;return{opacity:withSpring(activeQuestDockMode.get()===QuestDockMode.COLLAPSED||!hideOnExpand?1:0,QUEST_DOCK_MODE_CHANGE_PHYSICS)};}'};
|
||||
object = {code: "function QuestDockContentCollapsedTsx2(){const{activeQuestDockMode,QuestDockMode,hideOnExpand}=this.__closure;return{pointerEvents:activeQuestDockMode.get()===QuestDockMode.COLLAPSED||!hideOnExpand?'auto':'none'};}"};
|
||||
value = value.memo(QuestDockContentCollapsed);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockContentCollapsed.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function QuestDockContentCollapsed({hideOnExpand}) { // fn#104292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13851:855, offset: 0x0228ee1c, size: 492 bytes, params: 2, frame: 25
|
||||
const r10 = hideOnExpand === undefined || hideOnExpand;
|
||||
let binding = env0_3;
|
||||
let useContext = binding.useContext;
|
||||
const quest = Reflect.apply(useContext, binding,
|
||||
[importDefault(13650) /* metro dependency 13650: QuestDockContext */]).quest;
|
||||
const styles = useStyles();
|
||||
const userStatus = quest.userStatus;
|
||||
const value4 = userStatus?.enrolledAt != null;
|
||||
binding = env0_3;
|
||||
useContext = binding.useContext;
|
||||
const QuestDockGestureContext = (require(13573) /* metro dependency 13573: QuestDockGestureContext */).QuestDockGestureContext;
|
||||
const activeQuestDockMode = Reflect.apply(useContext, binding, [QuestDockGestureContext]).activeQuestDockMode;
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
let closure = QuestDockContentCollapsedP;
|
||||
const object2 = {};
|
||||
object2.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
|
||||
object2.activeQuestDockMode = activeQuestDockMode;
|
||||
object2.QuestDockMode = QuestDockMode;
|
||||
object2.hideOnExpand = r10;
|
||||
object2.QUEST_DOCK_MODE_CHANGE_PHYSICS = QUEST_DOCK_MODE_CHANGE_PHYSICS;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 13361221764426;
|
||||
closure.__initData = env0_9;
|
||||
const value5 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
|
||||
const moduleValue2 = reanimatedRexportModule;
|
||||
const useAnimatedProps = moduleValue2.useAnimatedProps;
|
||||
closure = QuestDockContentCollapsedS;
|
||||
closure.__closure = {activeQuestDockMode: activeQuestDockMode, QuestDockMode: QuestDockMode, hideOnExpand: r10};
|
||||
closure.__workletHash = 14339269503421;
|
||||
closure.__initData = env0_10;
|
||||
return ((Component) => <Component style={[styles.questDockContentCollapsed,
|
||||
value5]} animatedProps={Reflect.apply(useAnimatedProps, moduleValue2,
|
||||
[closure])}>{!value4 && ((Component) => <Component />)(importDefault(13655) /* metro dependency 13655: QuestDockUnenrolledHeader */)}{value4 && ((Component) => <Component />)(importDefault(13660) /* metro dependency 13660: QuestDockEnrolledHeader */)}</Component>)(importDefault(8141) /* metro dependency 8141: ReanimatedNativeView */);
|
||||
}
|
||||
|
||||
function QuestDockContentCollapsedP() { // fn#104293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13851:1124, owner: QuestDockContentCollapsed.p, offset: 0x0228f008, size: 96 bytes, params: 1, frame: 18
|
||||
const springModule = require(4577) /* metro dependency 4577: spring */;
|
||||
const withSpring = springModule.withSpring;
|
||||
const value3 = activeQuestDockMode.get();
|
||||
const COLLAPSED = QuestDockMode.COLLAPSED;
|
||||
const value4 = 1;
|
||||
return {opacity: Reflect.apply(withSpring, springModule, [value3 === COLLAPSED ? value4 : env0_0 ? 0 : value4,
|
||||
QUEST_DOCK_MODE_CHANGE_PHYSICS])};
|
||||
}
|
||||
|
||||
function QuestDockContentCollapsedS() { // fn#104294, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13851:1400, owner: QuestDockContentCollapsed.S, offset: 0x0228f068, size: 63 bytes, params: 1, frame: 13
|
||||
const value2 = activeQuestDockMode.get();
|
||||
const COLLAPSED = QuestDockMode.COLLAPSED;
|
||||
const value4 = 'auto';
|
||||
return {pointerEvents: value2 === COLLAPSED ? value4 : env0_0 ? 'none' : value4};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,102 @@
|
||||
/* Metro module 13661; source: modules/quests/native/QuestDock/QuestDockContentExpanded.tsx; dependencies: [31, 27, 6528, 13572, 33, 4501, 13650, 13573, 4017, 4577, 8141, 13662, 13663, 2] */
|
||||
function _fun104327(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104327, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13858:6, offset: 0x02291c5a, size: 328 bytes, params: 8, frame: 23
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const StyleSheet = (require(27) /* metro dependency 27 */).StyleSheet;
|
||||
const env0_4 = (require(6528) /* metro dependency 6528: QuestConstants */).QuestDockMode;
|
||||
const questDockConstantsModule = require(13572) /* metro dependency 13572: QuestDockConstants */;
|
||||
const env0_5 = questDockConstantsModule.QUEST_DOCK_MODE_CHANGE_PHYSICS;
|
||||
const env0_6 = questDockConstantsModule.QUEST_DOCK_EXPANDED_HEIGHT;
|
||||
const value3 = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value3.jsx;
|
||||
const env0_8 = value3.jsxs;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const object3 = {};
|
||||
copyDataProperties(object3, StyleSheet.absoluteFillObject, undefined);
|
||||
object3['bottom'] = undefined;
|
||||
object3['display'] = 'flex';
|
||||
object3['zIndex'] = 1;
|
||||
const env0_9 = Reflect.apply(createStyles, createStylesModule, [{wrapper: object3}]);
|
||||
object = {code: 'function QuestDockContentExpandedTsx1(){const{isEnrolled,QUEST_DOCK_EXPANDED_HEIGHT,windowDimensions,withSpring,activeQuestDockMode,QuestDockMode,QUEST_DOCK_MODE_CHANGE_PHYSICS,questDockWrapperSpecs}=this.__closure;return{height:isEnrolled?undefined:QUEST_DOCK_EXPANDED_HEIGHT,width:windowDimensions.get().width,opacity:withSpring(activeQuestDockMode.get()===QuestDockMode.EXPANDED?1:0,QUEST_DOCK_MODE_CHANGE_PHYSICS),transform:[{translateX:withSpring((questDockWrapperSpecs.get().width-windowDimensions.get().width)/2,QUEST_DOCK_MODE_CHANGE_PHYSICS)}]};}'};
|
||||
value = value.memo(QuestDockContentExpanded);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockContentExpanded.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function QuestDockContentExpanded() { // fn#104328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13858:933, offset: 0x02291da2, size: 436 bytes, params: 1, frame: 24
|
||||
var r5;
|
||||
var value;
|
||||
const binding = env0_3;
|
||||
let useContext = binding.useContext;
|
||||
const value2 = undefined;
|
||||
const quest = Reflect.apply(useContext, binding,
|
||||
[importDefault(13650) /* metro dependency 13650: QuestDockContext */]).quest;
|
||||
const styles = useStyles();
|
||||
useContext = binding.useContext;
|
||||
const QuestDockGestureContext = (require(13573) /* metro dependency 13573: QuestDockGestureContext */).QuestDockGestureContext;
|
||||
const {activeQuestDockMode, questDockWrapperSpecs, windowDimensions} = Reflect.apply(useContext, binding,
|
||||
[QuestDockGestureContext]);
|
||||
const userStatus = quest.userStatus;
|
||||
const value4 = (userStatus == null ? value2 : userStatus.enrolledAt) != null;
|
||||
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
|
||||
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
|
||||
const closure = QuestDockContentExpandedN;
|
||||
const object2 = {isEnrolled: value4};
|
||||
object2.QUEST_DOCK_EXPANDED_HEIGHT = QUEST_DOCK_EXPANDED_HEIGHT;
|
||||
object2.windowDimensions = windowDimensions;
|
||||
object2.withSpring = (require(4577) /* metro dependency 4577: spring */).withSpring;
|
||||
object2.activeQuestDockMode = activeQuestDockMode;
|
||||
object2.QuestDockMode = QuestDockMode;
|
||||
object2.QUEST_DOCK_MODE_CHANGE_PHYSICS = QUEST_DOCK_MODE_CHANGE_PHYSICS;
|
||||
object2.questDockWrapperSpecs = questDockWrapperSpecs;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 17161265612101;
|
||||
closure.__initData = env0_10;
|
||||
const value5 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
|
||||
const ReanimatedNativeView = importDefault(8141) /* metro dependency 8141: ReanimatedNativeView */;
|
||||
const items2 = [styles.wrapper, value5];
|
||||
const r7 = !value4 && ((Component) => <Component />)(importDefault(13662) /* metro dependency 13662: QuestDockUnenrolledBody */);
|
||||
if (value4) {
|
||||
value = importDefault(13663) /* metro dependency 13663: QuestDockEnrolledBody */;
|
||||
value = ((Component) => <Component quest={quest} />)(value);
|
||||
r5 = value;
|
||||
} else {
|
||||
r5 = value4;
|
||||
}
|
||||
return (
|
||||
<ReanimatedNativeView style={items2}>
|
||||
{r7}
|
||||
{r5}
|
||||
</ReanimatedNativeView>
|
||||
);
|
||||
}
|
||||
|
||||
function QuestDockContentExpandedN() { // fn#104329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13858:1216, owner: QuestDockContentExpanded.n, offset: 0x02291f56, size: 219 bytes, params: 1, frame: 19
|
||||
const object2 = {};
|
||||
const QUEST_DOCK_EXPANDED_HEIGHT2 = result ? undefined : QUEST_DOCK_EXPANDED_HEIGHT;
|
||||
object2.height = QUEST_DOCK_EXPANDED_HEIGHT2;
|
||||
let windowDimensionsBinding = windowDimensions;
|
||||
let get = windowDimensionsBinding.get;
|
||||
let width = Reflect.apply(get, windowDimensionsBinding, []).width;
|
||||
object2.width = width;
|
||||
const springModule = require(4577) /* metro dependency 4577: spring */;
|
||||
let withSpring = springModule.withSpring;
|
||||
const value5 = activeQuestDockMode.get();
|
||||
const EXPANDED = QuestDockMode.EXPANDED;
|
||||
object2.opacity = Reflect.apply(withSpring, springModule, [value5 !== EXPANDED ? 0 : 1,
|
||||
QUEST_DOCK_MODE_CHANGE_PHYSICS]);
|
||||
const moduleValue2 = springModule;
|
||||
withSpring = moduleValue2.withSpring;
|
||||
const questDockWrapperSpecsBinding = questDockWrapperSpecs;
|
||||
get = questDockWrapperSpecsBinding.get;
|
||||
width = Reflect.apply(get, questDockWrapperSpecsBinding, []).width;
|
||||
windowDimensionsBinding = windowDimensions;
|
||||
get = windowDimensionsBinding.get;
|
||||
object2.transform = [{translateX: Reflect.apply(withSpring, moduleValue2, [(width - Reflect.apply(get,
|
||||
windowDimensionsBinding, []).width) / 2, QUEST_DOCK_MODE_CHANGE_PHYSICS])}];
|
||||
return object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
/* Metro module 13650; source: modules/quests/native/QuestDock/QuestDockContext.tsx; dependencies: [31, 2] */
|
||||
function _fun104238(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104238, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13847:6, offset: 0x0228b7e7, size: 124 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
value = value.createContext({'quest': null, 'isRendered': false, 'isVisibleToUser': false, quest: undefined});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockContext.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,377 @@
|
||||
/* Metro module 13577; source: modules/quests/native/QuestDock/QuestDockContextMenuActionSheet.tsx; dependencies: [5, 31, 661, 33, 7114, 9483, 9505, 6805, 6807, 10638, 7972, 9520, 6531, 7120, 4080, 4060, 1244, 13578, 9519, 9517, 9518, 7121, 7110, 9480, 10139, 13580, 5312, 9484, 13583, 8653, 13584, 13586, 13588, 8999, 7007, 6797, 2] */
|
||||
function _fun103202(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103202, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:6, offset: 0x0225bf63, size: 185 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 */;
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).UserSettingsSections;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/quests/native/QuestDock/QuestDockContextMenuActionSheet.tsx');
|
||||
exports.default = QuestDockContextMenuActionSheet;
|
||||
}
|
||||
|
||||
function QuestDockContextMenuActionSheet({quest}) { // fn#103203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:180, offset: 0x0225c01c, size: 2479 bytes, params: 2, frame: 35
|
||||
var r8;
|
||||
var r5;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var object19;
|
||||
var object;
|
||||
var items4;
|
||||
var object2;
|
||||
var object4;
|
||||
var object5;
|
||||
var object6;
|
||||
const EyeIcon = (require(8999) /* metro dependency 8999: EyeIcon */).EyeIcon;
|
||||
var object7;
|
||||
var object8;
|
||||
var value;
|
||||
const questUtilsModule = require(7114) /* metro dependency 7114: QuestUtils */;
|
||||
const isShareableQuest2 = questUtilsModule.isShareableQuest(quest.config);
|
||||
const value2 = (require(9483) /* metro dependency 9483: QuestHooks */).useQuestPreviewActions(quest.id);
|
||||
const env0_1 = value2.handleComplete;
|
||||
const env0_2 = value2.handleProgress;
|
||||
const env0_3 = value2.handleResetDismissibilityClick;
|
||||
const env0_4 = value2.handleResetStatusClick;
|
||||
const externalCtaLabel = (require(9505) /* metro dependency 9505: QuestCopyUtils */).getExternalCtaLabel(quest);
|
||||
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
|
||||
const ActionSheetRow = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
|
||||
let Group = ActionSheetRow.Group;
|
||||
const object9 = {};
|
||||
const ActionSheetRow2 = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
|
||||
let Icon = ActionSheetRow2.Icon;
|
||||
const LinkExternalMediumIcon = (require(10638) /* metro dependency 10638: LinkExternalMediumIcon */).LinkExternalMediumIcon;
|
||||
object9.icon = <Icon IconComponent={LinkExternalMediumIcon} />;
|
||||
const FormLabel = (require(7972) /* metro dependency 7972: native */).FormLabel;
|
||||
object9.label = <FormLabel text={externalCtaLabel} />;
|
||||
object9.onPress = onPress_103204;
|
||||
const actionSheetRow = <ActionSheetRow {...object9} />;
|
||||
if (isShareableQuest2) {
|
||||
r8 = <ActionSheetRow icon={((Icon) => <Icon IconComponent={(require(4060) /* metro dependency 4060: CopyIcon */).CopyIcon} />)((require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon)} label={<FormLabel text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.WqhZss)} />} onPress={onPress_103205} />;
|
||||
} else {
|
||||
r8 = isShareableQuest2;
|
||||
}
|
||||
const items2 = [<Group hasIcons>{actionSheetRow}{r8}</Group>];
|
||||
Group = ActionSheetRow.Group;
|
||||
const object11 = {};
|
||||
const ActionSheetRow4 = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
|
||||
Icon = ActionSheetRow4.Icon;
|
||||
object11.icon = <Icon IconComponent={importDefault(13578) /* metro dependency 13578: WreathIcon */} />;
|
||||
let string = intl.string;
|
||||
const LLLLPD = (require(1244) /* metro dependency 1244: indexNative */).t.LLLLPD;
|
||||
object11.label = <FormLabel text={Reflect.apply(string, intl, [LLLLPD])} />;
|
||||
object11.onPress = onPress_103206;
|
||||
const items3 = [<ActionSheetRow {...object11} />];
|
||||
const object12 = {};
|
||||
const ActionSheetRow5 = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
|
||||
Icon = ActionSheetRow5.Icon;
|
||||
const CircleQuestionIcon = (require(10139) /* metro dependency 10139: CircleQuestionIcon */).CircleQuestionIcon;
|
||||
object12.icon = <Icon IconComponent={CircleQuestionIcon} />;
|
||||
string = intl.string;
|
||||
const GcsZKJ = (require(1244) /* metro dependency 1244: indexNative */).t.GcsZKJ;
|
||||
object12.label = <FormLabel text={Reflect.apply(string, intl, [GcsZKJ])} />;
|
||||
object12.onPress = onPress_103207;
|
||||
items3[1] = <ActionSheetRow {...object12} />;
|
||||
const object14 = {};
|
||||
const ActionSheetRow6 = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
|
||||
Icon = ActionSheetRow6.Icon;
|
||||
const XSmallIcon = (require(5312) /* metro dependency 5312: XSmallIcon */).XSmallIcon;
|
||||
object14.icon = <Icon IconComponent={XSmallIcon} />;
|
||||
string = intl.string;
|
||||
const NN79E9 = (require(1244) /* metro dependency 1244: indexNative */).t.NN79E9;
|
||||
object14.label = <FormLabel text={Reflect.apply(string, intl, [NN79E9])} />;
|
||||
string = intl.string;
|
||||
const V6htN5 = (require(1244) /* metro dependency 1244: indexNative */).t.V6htN5;
|
||||
object14.subLabel = Reflect.apply(string, intl, [V6htN5]);
|
||||
object14.onPress = env0_3(_fun103209);
|
||||
items3[2] = <ActionSheetRow {...object14} />;
|
||||
items2[1] = <Group hasIcons>{items3}</Group>;
|
||||
const preview = quest.preview;
|
||||
if (preview) {
|
||||
Group = ActionSheetRow.Group;
|
||||
var groupProps = {title: intl.string(t['Ape+mm']), hasIcons: true};
|
||||
object = {};
|
||||
Icon = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon;
|
||||
object.icon = <Icon IconComponent={(require(8653) /* metro dependency 8653: TrophyIcon */).TrophyIcon} />;
|
||||
string = intl.string;
|
||||
object.label = <FormLabel text={Reflect.apply(string, intl, [t.jQEfRT])} />;
|
||||
object.onPress = onPress_103210;
|
||||
value = <ActionSheetRow {...object} />;
|
||||
items4 = [value];
|
||||
object2 = {};
|
||||
Icon = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon;
|
||||
object2.icon = <Icon IconComponent={(require(13584) /* metro dependency 13584: RedoIcon */).RedoIcon} />;
|
||||
string = intl.string;
|
||||
object2.label = <FormLabel text={Reflect.apply(string, intl, [t.cKSLr4])} />;
|
||||
object2.onPress = onPress_103211;
|
||||
items4[1] = <ActionSheetRow {...object2} />;
|
||||
object4 = {};
|
||||
Icon = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon;
|
||||
object4.icon = <Icon IconComponent={(require(13586) /* metro dependency 13586: UndoIcon */).UndoIcon} />;
|
||||
string = intl.string;
|
||||
object4.label = <FormLabel text={Reflect.apply(string, intl, [t.taqkwK])} />;
|
||||
object4.onPress = onPress_103212;
|
||||
items4[2] = <ActionSheetRow {...object4} />;
|
||||
object5 = {};
|
||||
Icon = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon;
|
||||
object5.icon = <Icon IconComponent={(require(13588) /* metro dependency 13588: UnsendIcon */).UnsendIcon} />;
|
||||
string = intl.string;
|
||||
object5.label = <FormLabel text={Reflect.apply(string, intl, [t.JF6W66])} />;
|
||||
object5.onPress = onPress_103213;
|
||||
items4[3] = <ActionSheetRow {...object5} />;
|
||||
object6 = {};
|
||||
Icon = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon;
|
||||
object6.icon = <Icon IconComponent={EyeIcon} />;
|
||||
string = intl.string;
|
||||
object6.label = <FormLabel text={Reflect.apply(string, intl, [t['lL6/zF']])} />;
|
||||
object6.onPress = onPress_103214;
|
||||
items4[4] = <ActionSheetRow {...object6} />;
|
||||
object7 = {};
|
||||
Icon = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon;
|
||||
object7.icon = <Icon IconComponent={EyeIcon} />;
|
||||
string = intl.string;
|
||||
object7.label = <FormLabel text={Reflect.apply(string, intl, [t.tx5Ax5])} />;
|
||||
object7.onPress = onPress_103215;
|
||||
items4[5] = <ActionSheetRow {...object7} />;
|
||||
object8 = {};
|
||||
Icon = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon;
|
||||
object8.icon = <Icon IconComponent={(require(4060) /* metro dependency 4060: CopyIcon */).CopyIcon} />;
|
||||
string = intl.string;
|
||||
object8.label = <FormLabel text={Reflect.apply(string, intl, [t.oisrFi])} />;
|
||||
object8.onPress = onPress_103216;
|
||||
items4[6] = <ActionSheetRow {...object8} />;
|
||||
value = <Group {...groupProps}>{items4}</Group>;
|
||||
r5 = value;
|
||||
} else {
|
||||
r5 = preview;
|
||||
}
|
||||
items2[2] = r5;
|
||||
return (
|
||||
<ActionSheet>
|
||||
{items2}
|
||||
</ActionSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function QuestDockContextMenuActionSheetOnPress() { // fn#103204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:693, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225c9cb, size: 157 bytes, params: 1, frame: 19
|
||||
const value = environment.__proto__;
|
||||
const questPlatformUtilsModule = require(9520) /* metro dependency 9520: QuestPlatformUtils */;
|
||||
const openGameLinkDirectly = questPlatformUtilsModule.openGameLinkDirectly;
|
||||
const questBinding = quest;
|
||||
const object2 = {};
|
||||
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
|
||||
let QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
|
||||
object2.content = QUEST_BAR_MOBILE;
|
||||
const QuestContentCTA = (require(7120) /* metro dependency 7120: AnalyticsTypes */).QuestContentCTA;
|
||||
const CONTEXT_MENU_OPEN_GAME_LINK = QuestContentCTA.CONTEXT_MENU_OPEN_GAME_LINK;
|
||||
object2.ctaContent = CONTEXT_MENU_OPEN_GAME_LINK;
|
||||
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
|
||||
object2.sourceQuestContent = QUEST_BAR_MOBILE;
|
||||
Reflect.apply(openGameLinkDirectly, questPlatformUtilsModule, [questBinding, object2]);
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
}
|
||||
|
||||
function QuestDockContextMenuActionSheetOnPress_103205() { // fn#103205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:1114, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225ca68, size: 162 bytes, params: 1, frame: 19
|
||||
const value = environment.__proto__;
|
||||
const questCopyUtilsModule = require(9505) /* metro dependency 9505: QuestCopyUtils */;
|
||||
const copyShareLink = questCopyUtilsModule.copyShareLink;
|
||||
const id = quest.id;
|
||||
const object2 = {};
|
||||
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
|
||||
let QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
|
||||
object2.content = QUEST_BAR_MOBILE;
|
||||
const QuestContentCTA = (require(7120) /* metro dependency 7120: AnalyticsTypes */).QuestContentCTA;
|
||||
const CONTEXT_MENU_COPY_LINK = QuestContentCTA.CONTEXT_MENU_COPY_LINK;
|
||||
object2.ctaContent = CONTEXT_MENU_COPY_LINK;
|
||||
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
|
||||
object2.sourceQuestContent = QUEST_BAR_MOBILE;
|
||||
Reflect.apply(copyShareLink, questCopyUtilsModule, [id, object2]);
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
}
|
||||
|
||||
function QuestDockContextMenuActionSheetOnPress_103206() { // fn#103206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:1570, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225cb0a, size: 499 bytes, params: 1, frame: 18
|
||||
var moduleValue2;
|
||||
var trackQuestContentClicked;
|
||||
var object2;
|
||||
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
|
||||
var QUEST_BAR_MOBILE;
|
||||
const QuestContentCTA = (require(7120) /* metro dependency 7120: AnalyticsTypes */).QuestContentCTA;
|
||||
var moduleValue3;
|
||||
var captureAdUserAction;
|
||||
const value = environment.__proto__;
|
||||
const adAnalyticsInterfaceExperimentModule = require(9519) /* metro dependency 9519: AdAnalyticsInterfaceExperiment */;
|
||||
const shouldMigrateToAdAnalyticsInterface = adAnalyticsInterfaceExperimentModule.shouldMigrateToAdAnalyticsInterface;
|
||||
const AdAnalyticsInterfaceExperimentStep = adAnalyticsInterfaceExperimentModule.AdAnalyticsInterfaceExperimentStep;
|
||||
const STEP_2_CLICKED_INTERNAL = AdAnalyticsInterfaceExperimentStep.STEP_2_CLICKED_INTERNAL;
|
||||
if (Reflect.apply(shouldMigrateToAdAnalyticsInterface, adAnalyticsInterfaceExperimentModule,
|
||||
[STEP_2_CLICKED_INTERNAL, 'quest_dock_context_menu'])) {
|
||||
moduleValue3 = require(9517) /* metro dependency 9517: captureAdUserAction */;
|
||||
captureAdUserAction = moduleValue3.captureAdUserAction;
|
||||
object2 = {};
|
||||
object2.type = (require(9518) /* metro dependency 9518: captureAdUserActionTypes */).AdUserActionType.CLICK_INTERNAL;
|
||||
object2.adCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType.QUEST;
|
||||
object2.adCreativeId = quest.id;
|
||||
object2.questContentCTA = QuestContentCTA.CONTEXT_MENU_LEARN_MORE;
|
||||
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
|
||||
object2.surfaceId = QUEST_BAR_MOBILE;
|
||||
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
|
||||
object2.sourceQuestContent = QUEST_BAR_MOBILE;
|
||||
Reflect.apply(captureAdUserAction, moduleValue3, [object2]);
|
||||
} else {
|
||||
moduleValue2 = require(7110) /* metro dependency 7110: AnalyticsActions */;
|
||||
trackQuestContentClicked = moduleValue2.trackQuestContentClicked;
|
||||
object2 = {};
|
||||
object2.questId = quest.id;
|
||||
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
|
||||
object2.questContent = QUEST_BAR_MOBILE;
|
||||
object2.questContentCTA = QuestContentCTA.CONTEXT_MENU_LEARN_MORE;
|
||||
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
|
||||
object2.sourceQuestContent = QUEST_BAR_MOBILE;
|
||||
Reflect.apply(trackQuestContentClicked, moduleValue2, [object2]);
|
||||
}
|
||||
const questUtilsNativeModule = require(9480) /* metro dependency 9480: QuestUtilsNative */;
|
||||
const openQuestHome = questUtilsNativeModule.openQuestHome;
|
||||
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
|
||||
Reflect.apply(openQuestHome, questUtilsNativeModule, [{scrollToQuestId: quest.id, fromContent: QUEST_BAR_MOBILE}]);
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
}
|
||||
|
||||
function QuestDockContextMenuActionSheetOnPress_103207() { // fn#103207, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:2570, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225ccfd, size: 175 bytes, params: 1, frame: 18
|
||||
const value = environment.__proto__;
|
||||
const defaultImport = importDefault(13580) /* metro dependency 13580: QuestDisclosureModalActionCreators */;
|
||||
const showModal = defaultImport.showModal;
|
||||
const object3 = {};
|
||||
object3.quest = quest;
|
||||
object3.isTargetedDisclosure = true;
|
||||
const object4 = {};
|
||||
const QuestContent = (require(6531) /* metro dependency 6531: QuestTypes */).QuestContent;
|
||||
let QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
|
||||
object4.content = QUEST_BAR_MOBILE;
|
||||
const QuestContentCTA = (require(7120) /* metro dependency 7120: AnalyticsTypes */).QuestContentCTA;
|
||||
const CONTEXT_MENU_OPEN_DISCLOSURE = QuestContentCTA.CONTEXT_MENU_OPEN_DISCLOSURE;
|
||||
object4.ctaContent = CONTEXT_MENU_OPEN_DISCLOSURE;
|
||||
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
|
||||
object4.sourceQuestContent = QUEST_BAR_MOBILE;
|
||||
object3.trackingCtx = object4;
|
||||
Reflect.apply(showModal, defaultImport, [object3]);
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
}
|
||||
|
||||
function* _fun103209() { // fn#103209, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:3076, offset: 0x0225cdb7, size: 525 bytes, params: 1, frame: 21
|
||||
var value8;
|
||||
var trackQuestContentClicked;
|
||||
var object2;
|
||||
var value9;
|
||||
var captureAdUserAction;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var binding = env2_0;
|
||||
var binding2 = env2_2;
|
||||
var value3 = binding(binding2[27]);
|
||||
var dismissQuestContent = value3.dismissQuestContent;
|
||||
var id = require.id;
|
||||
var QuestContent = binding(binding2[12]).QuestContent;
|
||||
var QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
|
||||
var value5 = Reflect.apply(dismissQuestContent, value3, [id, QUEST_BAR_MOBILE]);
|
||||
env2_1(binding2[14]).hideActionSheet();
|
||||
var value7 = binding(binding2[18]);
|
||||
var shouldMigrateToAdAnalyticsInterface = value7.shouldMigrateToAdAnalyticsInterface;
|
||||
var AdAnalyticsInterfaceExperimentStep = binding(binding2[18]).AdAnalyticsInterfaceExperimentStep;
|
||||
var STEP_2_CLICKED_INTERNAL = AdAnalyticsInterfaceExperimentStep.STEP_2_CLICKED_INTERNAL;
|
||||
var shouldMigrateToAdAnalyticsInterface2 = Reflect.apply(shouldMigrateToAdAnalyticsInterface, value7,
|
||||
[STEP_2_CLICKED_INTERNAL, 'quest_dock_context_menu']);
|
||||
binding = env2_0;
|
||||
var binding4 = env2_2;
|
||||
if (shouldMigrateToAdAnalyticsInterface2) {
|
||||
value9 = binding(binding4[19]);
|
||||
captureAdUserAction = value9.captureAdUserAction;
|
||||
object2 = {};
|
||||
object2.type = binding(binding4[20]).AdUserActionType.CLICK_INTERNAL;
|
||||
object2.adCreativeType = binding(binding4[21]).AdCreativeType.QUEST;
|
||||
object2.adCreativeId = require.id;
|
||||
object2.questContentCTA = binding(binding4[13]).QuestContentCTA.CONTEXT_MENU_HIDE_CONTENT;
|
||||
QuestContent = binding(binding4[12]).QuestContent;
|
||||
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
|
||||
object2.surfaceId = QUEST_BAR_MOBILE;
|
||||
QuestContent = binding(binding4[12]).QuestContent;
|
||||
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
|
||||
object2.sourceQuestContent = QUEST_BAR_MOBILE;
|
||||
Reflect.apply(captureAdUserAction, value9, [object2]);
|
||||
} else {
|
||||
value8 = binding(binding4[22]);
|
||||
trackQuestContentClicked = value8.trackQuestContentClicked;
|
||||
object2 = {};
|
||||
object2.questId = require.id;
|
||||
QuestContent = binding(binding4[12]).QuestContent;
|
||||
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
|
||||
object2.questContent = QUEST_BAR_MOBILE;
|
||||
object2.questContentCTA = binding(binding4[13]).QuestContentCTA.CONTEXT_MENU_HIDE_CONTENT;
|
||||
QuestContent = binding(binding4[12]).QuestContent;
|
||||
QUEST_BAR_MOBILE = QuestContent.QUEST_BAR_MOBILE;
|
||||
object2.sourceQuestContent = QUEST_BAR_MOBILE;
|
||||
Reflect.apply(trackQuestContentClicked, value8, [object2]);
|
||||
}
|
||||
yield value5;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
env2_0(env2_2[28]).displayQuestDismissalToast();
|
||||
}
|
||||
}
|
||||
|
||||
function QuestDockContextMenuActionSheetOnPress_103210() { // fn#103210, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:4226, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225cfc4, size: 48 bytes, params: 1, frame: 12
|
||||
handleComplete();
|
||||
const value = environment.__proto__;
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
}
|
||||
|
||||
function QuestDockContextMenuActionSheetOnPress_103211() { // fn#103211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:4444, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225cff4, size: 95 bytes, params: 1, frame: 12
|
||||
const handleProgressBinding = handleProgress;
|
||||
const Math = global.Math;
|
||||
handleProgressBinding(0.9 * Math.random() + 0.03);
|
||||
const value = environment.__proto__;
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
}
|
||||
|
||||
function QuestDockContextMenuActionSheetOnPress_103212() { // fn#103212, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:4682, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225d053, size: 48 bytes, params: 1, frame: 12
|
||||
handleResetStatusClick();
|
||||
const value = environment.__proto__;
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
}
|
||||
|
||||
function QuestDockContextMenuActionSheetOnPress_103213() { // fn#103213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:4902, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225d083, size: 48 bytes, params: 1, frame: 12
|
||||
handleResetDismissibilityClick();
|
||||
const value = environment.__proto__;
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
}
|
||||
|
||||
function QuestDockContextMenuActionSheetOnPress_103214() { // fn#103214, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:5122, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225d0b3, size: 109 bytes, params: 1, frame: 17
|
||||
const value = environment.__proto__;
|
||||
const questActionCreatorsModule = require(9484) /* metro dependency 9484: QuestActionCreators */;
|
||||
const markAdContentUnseen = questActionCreatorsModule.markAdContentUnseen;
|
||||
const AdCreativeType = (require(7121) /* metro dependency 7121: AdCreativeType */).AdCreativeType;
|
||||
const QUEST = AdCreativeType.QUEST;
|
||||
Reflect.apply(markAdContentUnseen, questActionCreatorsModule, [QUEST, [quest.id]]);
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
}
|
||||
|
||||
function QuestDockContextMenuActionSheetOnPress_103215() { // fn#103215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:5402, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225d120, size: 105 bytes, params: 1, frame: 16
|
||||
const value = environment.__proto__;
|
||||
const openUserSettingsModule = require(7007) /* metro dependency 7007: openUserSettings */;
|
||||
const openUserSettings = openUserSettingsModule.openUserSettings;
|
||||
const QUEST_PREVIEW_TOOL_2 = UserSettingsSections.QUEST_PREVIEW_TOOL_2;
|
||||
Reflect.apply(openUserSettings, openUserSettingsModule, [{screen: QUEST_PREVIEW_TOOL_2,
|
||||
params: {questId: quest.id}}]);
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
}
|
||||
|
||||
function QuestDockContextMenuActionSheetOnPress_103216() { // fn#103216, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13767:5697, owner: QuestDockContextMenuActionSheet.onPress, offset: 0x0225d189, size: 76 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
const clipboardUtilsNativeModule = require(6797) /* metro dependency 6797: ClipboardUtilsNative */;
|
||||
clipboardUtilsNativeModule.copy(quest.id);
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
}
|
||||
|
||||
Loaded 100 of 16065 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user