This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,4 +1,6 @@
/* Metro module 10571; source: modules/user_settings/dev_tools/UserSettingsExperimentsUtils.tsx; dependencies: [4857, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun81548(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81548, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10757:6, offset: 0x01ed3a1c, size: 203 bytes, params: 8, frame: 19
const _arrayLikeToArray_81551 = function(a0, a1) {
var r0;
@@ -43,324 +45,340 @@ function _fun81548(global, require, importDefault, importAll, module, exports, d
}
return value;
};
const closure = getExperimentDateFromId;
const closure2 = matchesDeep;
const getExperimentDateFromId2 = getExperimentDateFromId;
const matchesDeep2 = matchesDeep;
let Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = RegExp('^(\\d{4}-\\d{1,2})', '');
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/dev_tools/UserSettingsExperimentsUtils.tsx');
exports.getExperimentDateFromId = closure;
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/dev_tools/UserSettingsExperimentsUtils.tsx');
exports.getExperimentDateFromId = getExperimentDateFromId2;
exports.getEntries = function(a0) {
var Array = global.Array;
var Object = global.Object;
return Array.from(Object.entries(a0)).map(_fun81555);
};
exports.matchesDeep = closure2;
exports.matchesDeep = matchesDeep2;
exports.sortEntries = function(a0, a1) {
var env0_0 = a1;
return a0.slice().sort(_fun81557);
};
exports.getBestMatches = getBestMatches;
}
function _createForOfIteratorHelperLoose_81549(a0, a1) { // fn#81549, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10757:46, offset: 0x01ed3ae7, 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)) {
function _createForOfIteratorHelperLoose_81549(a0, a1) { // fn#81549, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10757:46, offset: 0x01ed3ae7, 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);
}
return _fun81550;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_81551(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') {
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun81550;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_81551(a0, value);
r6 = value;
r5 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
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_81551(a0, value);
r6 = value;
} else {
r6 = value;
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_81551(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
r5 = r6;
} else {
r5 = value;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun81550;
}
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 getExperimentDateFromId(a0) { // fn#81552, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10757:1031, offset: 0x01ed3c5b, size: 39 bytes, params: 2, frame: 11
const value = env0_2.exec(a0);
const value2 = null;
return value2 != value ? value[1] : value2;
}
function matchesDeep(a0, a1) { // fn#81553, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10757:1108, offset: 0x01ed3c82, size: 237 bytes, params: 3, frame: 17
var r4;
var r1;
var length;
var value2;
var matchesDeepBinding;
var value4;
var value5;
var value6;
var done;
var value7;
var value8;
const Array = global.Array;
if (Array.isArray(a0)) {
value5 = _createForOfIteratorHelperLoose_81549(a0);
value6 = value5();
done = value6.done;
if (done) {
return false;
}
r1 = value6;
loopExit11: while (true) {
matchesDeepBinding = matchesDeep;
value7 = r1.value;
if (matchesDeepBinding(value7, a1)) {
break loopExit11;
if (r5) {
}
value8 = value5();
done = value8.done;
return _fun81550;
}
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 _fun81550() { // fn#81550, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10757:617, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
}
function getExperimentDateFromId(a0) { // fn#81552, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10757:1031, offset: 0x01ed3c5b, size: 39 bytes, params: 2, frame: 11
const value = env0_2.exec(a0);
const value2 = null;
return value2 != value ? value[1] : value2;
}
function matchesDeep(a0, a1) { // fn#81553, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10757:1108, offset: 0x01ed3c82, size: 237 bytes, params: 3, frame: 17
var r4;
var r1;
var length;
var value2;
var matchesDeepBinding;
var value4;
var value5;
var value6;
var done;
var value7;
var value8;
const Array = global.Array;
if (Array.isArray(a0)) {
value5 = _createForOfIteratorHelperLoose_81549(a0);
value6 = value5();
done = value6.done;
if (done) {
return false;
}
r1 = value8;
continue;
}
return true;
}
let value = typeof a0;
if (value !== 'object') {
if (value !== 'string') {
return false;
}
value = a0.toLowerCase();
if (value.includes(a1.toLowerCase())) {
r1 = value6;
loopExit11: while (true) {
matchesDeepBinding = matchesDeep;
value7 = r1.value;
if (matchesDeepBinding(value7, a1)) {
break loopExit11;
}
value8 = value5();
done = value8.done;
if (done) {
return false;
}
r1 = value8;
continue;
}
return true;
}
} else {
if (a0 !== null) {
value = global.Object.values(a0);
length = value.length;
value2 = 0;
if (value2 < length) {
r4 = value2;
loopExit7: while (true) {
if (matchesDeep(value[r4], a1)) {
break loopExit7;
}
value4 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
length = value.length;
if (!(value4 < length)) {
return false;
}
r4 = value4;
continue;
}
let value = typeof a0;
if (value !== 'object') {
if (value !== 'string') {
return false;
}
value = a0.toLowerCase();
if (value.includes(a1.toLowerCase())) {
return true;
}
return false;
}
if (value !== 'string') {
return false;
}
value = a0.toLowerCase();
if (value.includes(a1.toLowerCase())) {
return true;
}
}
return false;
}
function getEntries(a0) { // fn#81554, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10757:1620, offset: 0x01ed3d6f, size: 59 bytes, params: 2, frame: 13
const Array = global.Array;
const from = Array.from;
const Object = global.Object;
return Reflect.apply(from, Array, [Object.entries(a0)]).map(function(a0) {
var r0;
var r1;
var r3;
var item3;
var value3;
var iterator = a0[Symbol.iterator]();
var iterator2 = iterator.next;
var item2 = Reflect.apply(iterator2, iterator, []);
var item = item2.value;
item2 = item2.done ? undefined : iterator;
var value = undefined;
var value2 = item2 === value;
var r2 = value2 ? value : item;
if (value2) {
r0 = item2;
r1 = value;
r3 = value2;
} else {
item3 = Reflect.apply(iterator2, item2, []);
item = item3.value;
item3 = item3.done ? undefined : item2;
value3 = item3 === value;
if (value3) {
r0 = item3;
r1 = value;
r3 = value3;
} else {
r0 = item3;
r1 = item;
r3 = value3;
if (a0 !== null) {
value = global.Object.values(a0);
length = value.length;
value2 = 0;
if (value2 < length) {
r4 = value2;
loopExit7: while (true) {
if (matchesDeep(value[r4], a1)) {
break loopExit7;
}
value4 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
length = value.length;
if (!(value4 < length)) {
return false;
}
r4 = value4;
continue;
}
return true;
}
return false;
}
if (value !== 'string') {
return false;
}
value = a0.toLowerCase();
if (value.includes(a1.toLowerCase())) {
return true;
}
}
if (!r3) {
r0.return();
}
return {id: r2, experiment: r1};
});
}
function sortEntries(a0, a1) { // fn#81556, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10757:1761, offset: 0x01ed3df6, size: 41 bytes, params: 3, frame: 11
const env0_0 = a1;
return a0.slice().sort(_fun81557);
}
function getBestMatches(a0, a1) { // fn#81558, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10757:2174, offset: 0x01ed3efd, size: 282 bytes, params: 3, frame: 28
var r7;
var r14;
var r15;
var r17;
var r4;
var value6;
var value7;
var value8;
var matchesDeepBinding;
var value9;
var value10;
var value11;
var property;
var value12;
let value = a1.split(RegExp('\\s+', 'g'));
value = value.filter(function(a0) {
return a0 !== '';
});
const length = value.length;
const value2 = 0;
if (value2 === length) {
return a0;
return false;
}
const items2 = [];
const value4 = _createForOfIteratorHelperLoose_81549(a0);
const value5 = value4();
let done = value5.done;
if (!done) {
r7 = value5;
while (true) {
value6 = r7.value;
value7 = _createForOfIteratorHelperLoose_81549(value);
value8 = value7();
done = value8.done;
if (done) {
r4 = value2;
function getEntries(a0) { // fn#81554, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10757:1620, offset: 0x01ed3d6f, size: 59 bytes, params: 2, frame: 13
const Array = global.Array;
const from = Array.from;
const Object = global.Object;
return Reflect.apply(from, Array, [Object.entries(a0)]).map(function(a0) {
var r0;
var r1;
var r3;
var item3;
var value3;
var iterator = a0[Symbol.iterator]();
var iterator2 = iterator.next;
var item2 = Reflect.apply(iterator2, iterator, []);
var item = item2.value;
item2 = item2.done ? undefined : iterator;
var value = undefined;
var value2 = item2 === value;
var r2 = value2 ? value : item;
if (value2) {
r0 = item2;
r1 = value;
r3 = value2;
} else {
r14 = value2;
r15 = value8;
while (true) {
matchesDeepBinding = matchesDeep;
value9 = r15.value;
if (matchesDeepBinding(value6, value9)) {
value10 = r14 + 1;
r17 = value10;
} else {
r17 = r14;
}
value11 = value7();
done = value11.done;
if (done) {
r4 = r17;
break;
}
r14 = r17;
r15 = value11;
continue;
item3 = Reflect.apply(iterator2, item2, []);
item = item3.value;
item3 = item3.done ? undefined : item2;
value3 = item3 === value;
if (value3) {
r0 = item3;
r1 = value;
r3 = value3;
} else {
r0 = item3;
r1 = item;
r3 = value3;
}
}
if (value2 === r4) {
continue;
if (!r3) {
r0.return();
}
if (items2[r4] != null) {
continue;
}
items2[r4] = [];
property = items2[r4];
property.push(value6);
value12 = value4();
done = value12.done;
if (done) {
break;
}
r7 = value12;
continue;
}
return {id: r2, experiment: r1};
});
}
value = importDefault(dependencyMap[value2]);
const value13 = items2.filter(function(a0) {
return a0 !== undefined;
});
return value(value13.reverse());
}
function _fun81557(a0, a1) { // fn#81557, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10757:1810, offset: 0x01ed3e1f, size: 222 bytes, params: 3, frame: 16
var getExperimentDateFromIdBinding;
var experimentDateFromIdBinding;
var localeCompare;
var experiment;
var title;
var value;
const value2 = undefined;
let id = a0 == null ? value2 : a0.id;
if (require[id] == null) {
id = a0 == null ? value2 : a0.id;
if (require[id] != null) {
function sortEntries(a0, a1) { // fn#81556, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10757:1761, offset: 0x01ed3df6, size: 41 bytes, params: 3, frame: 11
const env0_0 = a1;
return a0.slice().sort(_fun81557);
function _fun81557(a0, a1) { // fn#81557, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10757:1810, offset: 0x01ed3e1f, size: 222 bytes, params: 3, frame: 16
var getExperimentDateFromIdBinding;
var experimentDateFromIdBinding;
var localeCompare;
var experiment;
var title;
var value;
const value2 = undefined;
let id = a0 == null ? value2 : a0.id;
if (require[id] == null) {
id = a0 == null ? value2 : a0.id;
if (require[id] != null) {
value = environment.__proto__;
getExperimentDateFromIdBinding = getExperimentDateFromId;
id = a0.id;
value = getExperimentDateFromIdBinding(id);
id = a1.id;
experimentDateFromIdBinding = getExperimentDateFromIdBinding(id);
if (value == null) {
experiment = a0.experiment;
title = experiment.title;
localeCompare = title.localeCompare;
experiment = a1.experiment;
return Reflect.apply(localeCompare, title, [experiment.title]);
}
if (experimentDateFromIdBinding == null) {
experiment = a0.experiment;
title = experiment.title;
localeCompare = title.localeCompare;
experiment = a1.experiment;
return Reflect.apply(localeCompare, title, [experiment.title]);
}
value = experimentDateFromIdBinding.localeCompare(value);
if (value !== 0) {
return value;
}
experiment = a0.experiment;
title = experiment.title;
localeCompare = title.localeCompare;
experiment = a1.experiment;
return Reflect.apply(localeCompare, title, [experiment.title]);
}
id = a1 == null ? value2 : a1.id;
if (require[id] != null) {
return 1;
}
value = environment.__proto__;
getExperimentDateFromIdBinding = getExperimentDateFromId;
id = a0.id;
value = getExperimentDateFromIdBinding(id);
id = a1.id;
experimentDateFromIdBinding = getExperimentDateFromIdBinding(id);
if (value == null) {
experiment = a0.experiment;
title = experiment.title;
localeCompare = title.localeCompare;
experiment = a1.experiment;
return Reflect.apply(localeCompare, title, [experiment.title]);
}
if (experimentDateFromIdBinding == null) {
experiment = a0.experiment;
title = experiment.title;
localeCompare = title.localeCompare;
experiment = a1.experiment;
return Reflect.apply(localeCompare, title, [experiment.title]);
}
value = experimentDateFromIdBinding.localeCompare(value);
if (value !== 0) {
return value;
}
experiment = a0.experiment;
title = experiment.title;
localeCompare = title.localeCompare;
experiment = a1.experiment;
return Reflect.apply(localeCompare, title, [experiment.title]);
}
if (require[a1 == null ? value2 : a1.id] == null) {
return -1;
}
id = a0 == null ? value2 : a0.id;
if (require[id] != null) {
value = environment.__proto__;
getExperimentDateFromIdBinding = getExperimentDateFromId;
id = a0.id;
value = getExperimentDateFromIdBinding(id);
id = a1.id;
experimentDateFromIdBinding = getExperimentDateFromIdBinding(id);
if (value == null) {
experiment = a0.experiment;
title = experiment.title;
localeCompare = title.localeCompare;
experiment = a1.experiment;
return Reflect.apply(localeCompare, title, [experiment.title]);
}
if (experimentDateFromIdBinding == null) {
experiment = a0.experiment;
title = experiment.title;
localeCompare = title.localeCompare;
experiment = a1.experiment;
return Reflect.apply(localeCompare, title, [experiment.title]);
}
value = experimentDateFromIdBinding.localeCompare(value);
if (value !== 0) {
return value;
}
experiment = a0.experiment;
title = experiment.title;
localeCompare = title.localeCompare;
experiment = a1.experiment;
return Reflect.apply(localeCompare, title, [experiment.title]);
}
if (require[a1 == null ? value2 : a1.id] != null) {
return 1;
}
value = environment.__proto__;
getExperimentDateFromIdBinding = getExperimentDateFromId;
id = a0.id;
value = getExperimentDateFromIdBinding(id);
id = a1.id;
experimentDateFromIdBinding = getExperimentDateFromIdBinding(id);
value = getExperimentDateFromIdBinding(a0.id);
experimentDateFromIdBinding = getExperimentDateFromIdBinding(a1.id);
if (value == null) {
experiment = a0.experiment;
title = experiment.title;
@@ -379,107 +397,136 @@ function _fun81557(a0, a1) { // fn#81557, source: /ci/build/discord/discord/disc
if (value !== 0) {
return value;
}
experiment = a0.experiment;
title = experiment.title;
localeCompare = title.localeCompare;
experiment = a1.experiment;
return Reflect.apply(localeCompare, title, [experiment.title]);
title = a0.experiment.title;
return title.localeCompare(a1.experiment.title);
}
id = a1 == null ? value2 : a1.id;
if (require[id] != null) {
return 1;
}
value = environment.__proto__;
getExperimentDateFromIdBinding = getExperimentDateFromId;
id = a0.id;
value = getExperimentDateFromIdBinding(id);
id = a1.id;
experimentDateFromIdBinding = getExperimentDateFromIdBinding(id);
if (value == null) {
experiment = a0.experiment;
title = experiment.title;
localeCompare = title.localeCompare;
experiment = a1.experiment;
return Reflect.apply(localeCompare, title, [experiment.title]);
}
if (experimentDateFromIdBinding == null) {
experiment = a0.experiment;
title = experiment.title;
localeCompare = title.localeCompare;
experiment = a1.experiment;
return Reflect.apply(localeCompare, title, [experiment.title]);
}
value = experimentDateFromIdBinding.localeCompare(value);
if (value !== 0) {
return value;
}
experiment = a0.experiment;
title = experiment.title;
localeCompare = title.localeCompare;
experiment = a1.experiment;
return Reflect.apply(localeCompare, title, [experiment.title]);
}
if (require[a1 == null ? value2 : a1.id] == null) {
return -1;
}
id = a0 == null ? value2 : a0.id;
if (require[id] != null) {
value = environment.__proto__;
getExperimentDateFromIdBinding = getExperimentDateFromId;
id = a0.id;
value = getExperimentDateFromIdBinding(id);
id = a1.id;
experimentDateFromIdBinding = getExperimentDateFromIdBinding(id);
if (value == null) {
experiment = a0.experiment;
title = experiment.title;
localeCompare = title.localeCompare;
experiment = a1.experiment;
return Reflect.apply(localeCompare, title, [experiment.title]);
function getBestMatches(a0, a1) { // fn#81558, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10757:2174, offset: 0x01ed3efd, size: 282 bytes, params: 3, frame: 28
var r7;
var r14;
var r15;
var r17;
var r4;
var value6;
var value7;
var value8;
var matchesDeepBinding;
var value9;
var value10;
var value11;
var property;
var value12;
let value = a1.split(RegExp('\\s+', 'g'));
value = value.filter(function(a0) {
return a0 !== '';
});
const length = value.length;
const value2 = 0;
if (value2 === length) {
return a0;
}
if (experimentDateFromIdBinding == null) {
experiment = a0.experiment;
title = experiment.title;
localeCompare = title.localeCompare;
experiment = a1.experiment;
return Reflect.apply(localeCompare, title, [experiment.title]);
const items2 = [];
const value4 = _createForOfIteratorHelperLoose_81549(a0);
const value5 = value4();
let done = value5.done;
if (!done) {
r7 = value5;
while (true) {
value6 = r7.value;
value7 = _createForOfIteratorHelperLoose_81549(value);
value8 = value7();
done = value8.done;
if (done) {
r4 = value2;
} else {
r14 = value2;
r15 = value8;
while (true) {
matchesDeepBinding = matchesDeep;
value9 = r15.value;
if (matchesDeepBinding(value6, value9)) {
value10 = r14 + 1;
r17 = value10;
} else {
r17 = r14;
}
value11 = value7();
done = value11.done;
if (done) {
r4 = r17;
break;
}
r14 = r17;
r15 = value11;
continue;
}
}
if (value2 === r4) {
continue;
}
if (items2[r4] != null) {
continue;
}
items2[r4] = [];
property = items2[r4];
property.push(value6);
value12 = value4();
done = value12.done;
if (done) {
break;
}
r7 = value12;
continue;
}
}
value = experimentDateFromIdBinding.localeCompare(value);
if (value !== 0) {
return value;
}
experiment = a0.experiment;
title = experiment.title;
localeCompare = title.localeCompare;
experiment = a1.experiment;
return Reflect.apply(localeCompare, title, [experiment.title]);
value = importDefault(dependencyMap[value2]);
const value13 = items2.filter(function(a0) {
return a0 !== undefined;
});
return value(value13.reverse());
}
if (require[a1 == null ? value2 : a1.id] != null) {
return 1;
}
value = environment.__proto__;
getExperimentDateFromIdBinding = getExperimentDateFromId;
value = getExperimentDateFromIdBinding(a0.id);
experimentDateFromIdBinding = getExperimentDateFromIdBinding(a1.id);
if (value == null) {
experiment = a0.experiment;
title = experiment.title;
localeCompare = title.localeCompare;
experiment = a1.experiment;
return Reflect.apply(localeCompare, title, [experiment.title]);
}
if (experimentDateFromIdBinding == null) {
experiment = a0.experiment;
title = experiment.title;
localeCompare = title.localeCompare;
experiment = a1.experiment;
return Reflect.apply(localeCompare, title, [experiment.title]);
}
value = experimentDateFromIdBinding.localeCompare(value);
if (value !== 0) {
return value;
}
title = a0.experiment.title;
return title.localeCompare(a1.experiment.title);
}
function _fun81555(a0) { // fn#81555, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10757:1685, offset: 0x01ed3daa, size: 76 bytes, params: 2, frame: 7
var r0;
var r1;
var r3;
var item3;
var value3;
const iterator = a0[Symbol.iterator]();
const iterator2 = iterator.next;
let item2 = Reflect.apply(iterator2, iterator, []);
let item = item2.value;
item2 = item2.done ? undefined : iterator;
const value = undefined;
const value2 = item2 === value;
const r2 = value2 ? value : item;
if (value2) {
r0 = item2;
r1 = value;
r3 = value2;
} else {
item3 = Reflect.apply(iterator2, item2, []);
item = item3.value;
item3 = item3.done ? undefined : item2;
value3 = item3 === value;
if (value3) {
r0 = item3;
r1 = value;
r3 = value3;
} else {
r0 = item3;
r1 = item;
r3 = value3;
}
}
if (!r3) {
r0.return();
}
return {id: r2, experiment: r1};
}
global.__d(_fun81548, 10571, [4857, 2]) /* metro module 10571, dependencies: [4857, 2] */;
@@ -1,242 +1,289 @@
/* Metro module 13959; source: modules/user_settings/dev_tools/native/UserSettingsDebugLogs.tsx; dependencies: [57, 31, 27, 661, 33, 4501, 697, 6993, 1585, 3857, 587, 12, 4573, 6984, 13512, 1244, 13960, 4080, 13961, 8416, 2] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UseSafeAreaInsetsNative from '../../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import ToastActionCreators from '../../../toast/native/ToastActionCreators.tsx'; /* Metro dependency 3857 */
import ActionSheetActionCreators from '../../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import ShareLogsButton from '../../../debug/native/ShareLogsButton.tsx'; /* Metro dependency 13961 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as LogAggregatorModule from '../../../debug/LogAggregator.tsx'; /* Metro dependency 12 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as StorageModule from '../../../../external/discord_common/js/packages/storage/Storage.tsx'; /* Metro dependency 587 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as SearchFieldNativeModule from '../../../../design/components/TextField/native/SearchField.native.tsx'; /* Metro dependency 6984 */
import * as InputTypesNativeModule from '../../../../design/components/Input/native/InputTypes.native.tsx'; /* Metro dependency 6993 */
import * as FlashListModule from '../../../../external/discord_common/js/packages/flash-list/index.jsx'; /* Metro dependency 8416 */
import * as FiltersHorizontalIconModule from '../../../../design/components/Icon/native/redesign/generated/FiltersHorizontalIcon.tsx'; /* Metro dependency 13512 */
import * as UserSettingsDebugLogsActionSheetModule from './UserSettingsDebugLogsActionSheet.tsx'; /* Metro dependency 13960 */
function _fun105935(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14156:6, offset: 0x022c79d1, size: 548 bytes, params: 8, frame: 25
var object2;
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 */;
let value = ReactNativeModule;
const env0_5 = value.RefreshControl;
const env0_6 = value.View;
const Fonts = (require(661) /* metro dependency 661: Constants */).Fonts;
const Fonts = (ConstantsModule).Fonts;
value = require(33) /* metro dependency 33 */;
const env0_7 = value.jsxs;
const env0_8 = value.jsx;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
object = {};
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object2.wrap = {backgroundColor: BACKGROUND_BASE_LOW, flex: 1};
object.wrap = {backgroundColor: BACKGROUND_BASE_LOW, flex: 1};
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.searchWrap = {'padding': null, 'flexDirection': 'row', 'alignItems': 'center', padding: PX_16};
const object3 = {};
object.searchWrap = {'padding': null, 'flexDirection': 'row', 'alignItems': 'center', padding: PX_16};
const object4 = {};
const INPUT_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INPUT_BACKGROUND_DEFAULT;
object3.backgroundColor = INPUT_BACKGROUND_DEFAULT;
object4.backgroundColor = INPUT_BACKGROUND_DEFAULT;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object3.marginLeft = PX_8;
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const InputHeights = (require(6993) /* metro dependency 6993: InputTypesNative */).InputHeights;
object4.marginLeft = PX_8;
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const InputHeights = (InputTypesNativeModule).InputHeights;
let MD = InputHeights.MD;
object3.height = MD;
object4.height = MD;
MD = InputHeights.MD;
object3.width = MD;
object3.justifyContent = 'center';
object3.alignItems = 'center';
object2.shareButton = object3;
object4.width = MD;
object4.justifyContent = 'center';
object4.alignItems = 'center';
object.shareButton = object4;
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.list = {paddingHorizontal: PX_16};
object.list = {paddingHorizontal: PX_16};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.log = {paddingBottom: PX_16};
object.log = {paddingBottom: PX_16};
const CODE_BOLD = Fonts.CODE_BOLD;
object2.code = {fontFamily: CODE_BOLD};
const env0_9 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/dev_tools/native/UserSettingsDebugLogs.tsx');
object.code = {fontFamily: CODE_BOLD};
const env0_9 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/dev_tools/native/UserSettingsDebugLogs.tsx');
exports.default = UserSettingsDebugLogs;
}
function UserSettingsDebugLogs() { // fn#105936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14156:831, offset: 0x022c7bf5, size: 797 bytes, params: 1, frame: 30
const styles = useStyles();
const bottom = (UseSafeAreaInsetsNative)().bottom;
let binding = env0_4;
let useState = binding.useState;
const value3 = Module00057(Reflect.apply(useState, binding, [0]), 2);
let property = value3[0];
const env0_1 = value3[1];
const value4 = binding.useCallback(_fun105937, []);
useState = binding.useState;
const Storage = (StorageModule).Storage;
const value5 = 'oldest';
const value7 = Reflect.apply(useState, binding, [Storage.get('debug-log-sort-order', value5) ?? value5]);
binding = Module00057;
const value8 = binding(value7, 2);
const property2 = value8[0];
var env0_4 = value8[1];
const binding2 = env0_4;
const env0_5 = binding2.useCallback(_fun105939, []);
const value9 = binding2.useMemo(_fun105940, [property2, property]);
useState = binding2.useState;
const value10 = binding(Reflect.apply(useState, binding2, [_fun105941]), 2);
property = value10[0];
const property3 = value10[1];
useState = binding2.useState;
const value11 = binding(Reflect.apply(useState, binding2, [value9]), 2);
const property4 = value11[0];
const env0_8 = value11[1];
binding2.useEffect(_fun105942, [value9, property]);
const value12 = binding2.useCallback(_fun105946, [styles]);
const SearchField = (SearchFieldNativeModule).SearchField;
const FiltersHorizontalIcon = (FiltersHorizontalIconModule).FiltersHorizontalIcon;
const object3 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object3.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+1H47t']);
object3.onPress = onPress_105947;
const view = (
<View style={styles.searchWrap}>
<SearchField
size="md"
placeholder="Filter (regex)"
onChange={property3}
defaultValue={property}
trailingIcon={FiltersHorizontalIcon}
trailingPressableProps={object3}
/>
<View style={styles.shareButton}>
{((Component) => <Component />)(ShareLogsButton)}
</View>
</View>
);
const FlashList = (FlashListModule).FlashList;
const object4 = {};
copyDataProperties(object4, styles.list, intl);
const PX_16 = (Native).space.PX_16;
object4['paddingBottom'] = bottom + PX_16;
return (
<View style={styles.wrap}>
{view}
<FlashList
contentContainerStyle={object4}
data={property4}
renderItem={value12}
estimatedItemSize={100}
refreshControl={<RefreshControl refreshing={false} onRefresh={value4} />}
/>
</View>
);
function _fun105937() { // fn#105937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14156:951, offset: 0x022c7f12, size: 73 bytes, params: 1, frame: 12
var environment;
env0_1(function(a0) {
return a0 + 1;
});
const value = environment.__proto__;
(ToastActionCreators).open({'content': 'Debug logs refreshed',
'key': 'debug-logs-refreshed'});
}
function UserSettingsDebugLogs() { // fn#105936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14156:831, offset: 0x022c7bf5, size: 797 bytes, params: 1, frame: 30
const styles = useStyles();
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
let binding = env0_4;
let useState = binding.useState;
const value3 = env0_3(Reflect.apply(useState, binding, [0]), 2);
let property = value3[0];
const env0_1 = value3[1];
const value4 = binding.useCallback(_fun105937, []);
useState = binding.useState;
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
const value5 = 'oldest';
const value7 = Reflect.apply(useState, binding, [Storage.get('debug-log-sort-order', value5) ?? value5]);
binding = env0_3;
const value8 = binding(value7, 2);
const property2 = value8[0];
var env0_4 = value8[1];
const binding2 = env0_4;
const env0_5 = binding2.useCallback(_fun105939, []);
const value9 = binding2.useMemo(_fun105940, [property2, property]);
useState = binding2.useState;
const value10 = binding(Reflect.apply(useState, binding2, [_fun105941]), 2);
property = value10[0];
const property3 = value10[1];
useState = binding2.useState;
const value11 = binding(Reflect.apply(useState, binding2, [value9]), 2);
const property4 = value11[0];
const env0_8 = value11[1];
binding2.useEffect(_fun105942, [value9, property]);
const value12 = binding2.useCallback(_fun105946, [styles]);
const SearchField = (require(6984) /* metro dependency 6984: SearchFieldNative */).SearchField;
const FiltersHorizontalIcon = (require(13512) /* metro dependency 13512: FiltersHorizontalIcon */).FiltersHorizontalIcon;
const object = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+1H47t']);
object.onPress = onPress_105947;
const view = <View style={styles.searchWrap}><SearchField size="md" placeholder="Filter (regex)" onChange={property3} defaultValue={property} trailingIcon={FiltersHorizontalIcon} trailingPressableProps={object} /><View style={styles.shareButton}>{((Component) => <Component />)(importDefault(13961) /* metro dependency 13961: ShareLogsButton */)}</View></View>;
const FlashList = (require(8416) /* metro dependency 8416: flashList */).FlashList;
const object2 = {};
copyDataProperties(object2, styles.list, intl);
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2['paddingBottom'] = bottom + PX_16;
return (
<View style={styles.wrap}>
{view}
<FlashList
contentContainerStyle={object2}
data={property4}
renderItem={value12}
estimatedItemSize={100}
refreshControl={<RefreshControl refreshing={false} onRefresh={value4} />}
/>
</View>
);
}
function _fun105939(a0) { // fn#105939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14156:1177, offset: 0x022c7f5b, size: 65 bytes, params: 2, frame: 14
env0_4(a0);
const Storage = (StorageModule).Storage;
Storage.set('debug-log-sort-order', a0);
}
function _fun105937() { // fn#105937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14156:951, offset: 0x022c7f12, size: 73 bytes, params: 1, frame: 12
var environment;
env0_1(function(a0) {
return a0 + 1;
});
const value = environment.__proto__;
(importDefault(3857) /* metro dependency 3857: ToastActionCreators */).open({'content': 'Debug logs refreshed',
'key': 'debug-logs-refreshed'});
}
function _fun105940() { // fn#105940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14156:1252, offset: 0x022c7f9c, size: 55 bytes, params: 1, frame: 12
const value = environment.__proto__;
return (LogAggregatorModule).getAllForDebugPanel(Module00057 === 'newest');
}
function _fun105939(a0) { // fn#105939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14156:1177, offset: 0x022c7f5b, size: 65 bytes, params: 2, frame: 14
env0_4(a0);
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
Storage.set('debug-log-sort-order', a0);
}
function _fun105941() { // fn#105941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14156:1321, offset: 0x022c7fd3, size: 66 bytes, params: 1, frame: 13
let value = environment.__proto__;
const Storage = (StorageModule).Storage;
value = '';
return Storage.get('debug-log-query', value) ?? value;
}
function _fun105940() { // fn#105940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14156:1252, offset: 0x022c7f9c, size: 55 bytes, params: 1, frame: 12
const value = environment.__proto__;
return (require(12) /* metro dependency 12: LogAggregator */).getAllForDebugPanel(env0_3 === 'newest');
}
function _fun105942() { // fn#105942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14156:1475, offset: 0x022c8015, size: 126 bytes, params: 1, frame: 15
if (env0_7 !== '') {
var env0_0 = global.setTimeout(_fun105943, 300);
return _fun105945;
}
env0_8(env0_6);
const Storage = (StorageModule).Storage;
Storage.set('debug-log-query', env0_7);
function _fun105943() { // fn#105943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14156:1509, offset: 0x022c8093, size: 135 bytes, params: 1, frame: 15
var environment;
var RegExp;
var value;
var binding;
var prototype;
var value2;
var regExp;
var value3;
var binding2;
var closure;
var value4;
var value5;
var property;
var moduleValue;
var Storage;
var set;
var error;
try {
RegExp = global.RegExp;
value = environment.__proto__;
binding = env1_7;
prototype = RegExp.prototype;
value2 = Object.create(prototype, {constructor: {value: RegExp}});
regExp = new RegExp(binding, 'i');
value3 = regExp instanceof Object ? regExp : value2;
var env0_0 = value3;
binding = env1_8;
binding2 = env1_6;
closure = _fun105944;
value4 = binding2.filter(closure);
binding(value4);
value5 = environment.__proto__.__proto__;
property = dependencyMap[10];
moduleValue = require(property);
Storage = moduleValue.Storage;
set = Storage.set;
binding = env1_7;
Reflect.apply(set, Storage, ['debug-log-query', binding]);
} catch (error) {
}
function _fun105944(a0) { // fn#105944, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14156:1554, offset: 0x022c811a, size: 61 bytes, params: 2, frame: 13
return a0.category.match(env0_0) != null || a0.message.match(env0_0) != null;
}
function _fun105941() { // fn#105941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14156:1321, offset: 0x022c7fd3, size: 66 bytes, params: 1, frame: 13
let value = environment.__proto__;
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
value = '';
return Storage.get('debug-log-query', value) ?? value;
}
}
function _fun105942() { // fn#105942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14156:1475, offset: 0x022c8015, size: 126 bytes, params: 1, frame: 15
if (env0_7 !== '') {
var env0_0 = global.setTimeout(_fun105943, 300);
return _fun105945;
}
env0_8(env0_6);
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
Storage.set('debug-log-query', env0_7);
}
function _fun105945() { // fn#105945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14156:1678, offset: 0x016d7e7e, size: 24 bytes, params: 1, frame: 11
return global.clearTimeout(env0_0);
}
function _fun105946({item, index}) { // fn#105946, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14156:1775, offset: 0x022c8157, size: 381 bytes, params: 2, frame: 27
const value = environment.__proto__;
let stylesBinding = styles;
const log = stylesBinding.log;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const code = stylesBinding.code;
const Date = global.Date;
const time = item.time;
const value3 = Object.create(Date.prototype, {constructor: {value: Date}});
const date = new Date(time);
const text = <Text style={code} variant="text-xs/normal" color="text-muted">{(date instanceof Object ? date : value3).toISOString()}{' '}{item.timing ?? ''}</Text>;
const object = {};
stylesBinding = styles;
object.style = stylesBinding.code;
object.variant = 'text-sm/normal';
const Text2 = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<View style={log} key={index}>
{text}
<Text {...object}>
<Text2
style={stylesBinding.code}
variant="text-sm/normal"
color="text-brand"
}
function _fun105946({item, index}) { // fn#105946, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14156:1775, offset: 0x022c8157, size: 381 bytes, params: 2, frame: 27
const value = environment.__proto__;
let stylesBinding = styles;
const log = stylesBinding.log;
const Text = (TextModule).Text;
const code = stylesBinding.code;
const Date = global.Date;
const time = item.time;
const value3 = Object.create(Date.prototype, {constructor: {value: Date}});
const date = new Date(time);
const text = (
<Text
style={code}
variant="text-xs/normal"
color="text-muted"
>
{'[' + item.category + ']: '}
</Text2>
{item.message}
</Text>
</View>
);
}
{(date instanceof Object ? date : value3).toISOString()}
{' '}
{item.timing ?? ''}
</Text>
);
const object2 = {};
stylesBinding = styles;
object2.style = stylesBinding.code;
object2.variant = 'text-sm/normal';
const Text2 = (TextModule).Text;
return (
<View style={log} key={index}>
{text}
<Text {...object2}>
<Text2
style={stylesBinding.code}
variant="text-sm/normal"
color="text-brand"
>
{'[' + item.category + ']: '}
</Text2>
{item.message}
</Text>
</View>
);
}
function UserSettingsDebugLogsOnPress() { // fn#105947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14156:2473, owner: UserSettingsDebugLogs.onPress, offset: 0x022c82d4, size: 78 bytes, params: 1, frame: 14
var environment;
const value = environment.__proto__;
(require(13960) /* metro dependency 13960: UserSettingsDebugLogsActionSheet */).openUserSettingsDebugLogsFiltersActionSheet({sortOrder: env0_3,
onRefresh: onRefresh_105948, onSortOrderChanged: onSortOrderChanged});
}
function UserSettingsDebugLogsOnPress() { // fn#105947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14156:2473, owner: UserSettingsDebugLogs.onPress, offset: 0x022c82d4, size: 78 bytes, params: 1, frame: 14
var environment;
const value = environment.__proto__;
(UserSettingsDebugLogsActionSheetModule).openUserSettingsDebugLogsFiltersActionSheet({sortOrder: Module00057,
onRefresh: onRefresh, onSortOrderChanged: onSortOrderChanged});
function onRefresh() { // fn#105948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14156:2554, owner: UserSettingsDebugLogs.onPress.onRefresh, offset: 0x022c8322, size: 48 bytes, params: 1, frame: 12
let value = environment.__proto__;
env1_2();
value = environment.__proto__.__proto__;
(ActionSheetActionCreators).hideActionSheet();
}
function onSortOrderChanged(a0) { // fn#105949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14156:2610, owner: UserSettingsDebugLogs.onPress.onSortOrderChanged, offset: 0x022c8352, size: 52 bytes, params: 2, frame: 12
let value = environment.__proto__;
env1_5(a0);
value = environment.__proto__.__proto__;
(ActionSheetActionCreators).hideActionSheet();
}
}
function _fun105943() { // fn#105943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14156:1509, offset: 0x022c8093, size: 135 bytes, params: 1, frame: 15
var environment;
var RegExp;
var value;
var binding;
var prototype;
var value2;
var regExp;
var value3;
var binding2;
var closure;
var value4;
var value5;
var property;
var moduleValue;
var Storage;
var set;
var error;
try {
RegExp = global.RegExp;
value = environment.__proto__;
binding = env1_7;
prototype = RegExp.prototype;
value2 = Object.create(prototype, {constructor: {value: RegExp}});
regExp = new RegExp(binding, 'i');
value3 = regExp instanceof Object ? regExp : value2;
var env0_0 = value3;
binding = env1_8;
binding2 = env1_6;
closure = _fun105944;
value4 = binding2.filter(closure);
binding(value4);
value5 = environment.__proto__.__proto__;
property = dependencyMap[10];
moduleValue = require(property);
Storage = moduleValue.Storage;
set = Storage.set;
binding = env1_7;
Reflect.apply(set, Storage, ['debug-log-query', binding]);
} catch (error) {
}
}
function onPressOnRefresh() { // fn#105948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14156:2554, owner: UserSettingsDebugLogs.onPress.onRefresh, offset: 0x022c8322, size: 48 bytes, params: 1, frame: 12
let value = environment.__proto__;
env1_2();
value = environment.__proto__.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
}
function onSortOrderChanged(a0) { // fn#105949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14156:2610, owner: UserSettingsDebugLogs.onPress.onSortOrderChanged, offset: 0x022c8352, size: 52 bytes, params: 2, frame: 12
let value = environment.__proto__;
env1_5(a0);
value = environment.__proto__.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
}
function _fun105944(a0) { // fn#105944, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14156:1554, offset: 0x022c811a, size: 61 bytes, params: 2, frame: 13
return a0.category.match(env0_0) != null || a0.message.match(env0_0) != null;
}
global.__d(_fun105935, 13959, [57, 31, 27, 661, 33, 4501, 697, 6993, 1585, 3857, 587, 12, 4573, 6984, 13512, 1244,
13960, 4080, 13961, 8416,
2]) /* metro module 13959, dependencies: [57, 31, 27, 661, 33, 4501, 697, 6993, 1585, 3857, 587, 12, 4573, 6984, 13512, 1244, 13960, 4080, 13961, 8416, 2] */;
@@ -1,44 +1,75 @@
/* Metro module 13960; source: modules/user_settings/dev_tools/native/UserSettingsDebugLogsActionSheet.tsx; dependencies: [31, 33, 6805, 6758, 1244, 6231, 6238, 7988, 7987, 1305, 4080, 2] */
import ActionSheetActionCreators from '../../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as NativeModule from '../../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as TableRowGroupNativeModule from '../../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
import * as TableRowNativeModule from '../../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
import * as BottomSheetTitleHeaderNativeModule from '../../../../design/components/Sheet/native/BottomSheetTitleHeader.native.tsx'; /* Metro dependency 6758 */
import * as ActionSheetNativeModule from '../../../../design/components/Sheet/native/ActionSheet.native.tsx'; /* Metro dependency 6805 */
import * as TableRadioRowNativeModule from '../../../../design/components/TableRow/native/TableRadioRow.native.tsx'; /* Metro dependency 7987 */
import * as TableRadioGroupNativeModule from '../../../../design/components/TableRow/native/TableRadioGroup.native.tsx'; /* Metro dependency 7988 */
function _fun105950(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14157:6, offset: 0x022c8386, size: 158 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 value = require(33) /* metro dependency 33 */;
const env0_3 = value.jsx;
const env0_4 = value.jsxs;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/dev_tools/native/UserSettingsDebugLogsActionSheet.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/dev_tools/native/UserSettingsDebugLogsActionSheet.tsx');
exports.openUserSettingsDebugLogsFiltersActionSheet = openUserSettingsDebugLogsFiltersActionSheet;
function UserSettingsDebugLogsFiltersActionSheet({sortOrder, onSortOrderChanged, onRefresh}) { // fn#105951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14157:131, offset: 0x022c8424, size: 618 bytes, params: 2, frame: 30
const ActionSheet = (ActionSheetNativeModule).ActionSheet;
const object = {};
const BottomSheetTitleHeader = (BottomSheetTitleHeaderNativeModule).BottomSheetTitleHeader;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.header = (
<BottomSheetTitleHeader title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+B9e11'])} />
);
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
const TableRow = (TableRowNativeModule).TableRow;
const items2 = [
<TableRowGroup hasIcons={false}>
<TableRow
label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.wzzjk9)}
onPress={onRefresh}
/>
</TableRowGroup>,
];
const TableRadioGroup = (TableRadioGroupNativeModule).TableRadioGroup;
const tableRadioGroupProps = {title: intl.string((require(1244) /* metro dependency 1244: indexNative */).t.gePre2),
defaultValue: sortOrder, onChange: onSortOrderChanged, hasIcons: false};
const TableRadioRow = (TableRadioRowNativeModule).TableRadioRow;
items2[1] = (
<TableRadioGroup {...tableRadioGroupProps}>
<TableRadioRow
label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.eoXe0r)}
value="newest"
/>
<TableRadioRow
label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.mmeWUF)}
value="oldest"
/>
</TableRadioGroup>
);
const Spacer = (NativeModule).Spacer;
items2[2] = <Spacer size={0} />;
return (
<ActionSheet {...object}>
{items2}
</ActionSheet>
);
}
function openUserSettingsDebugLogsFiltersActionSheet(a0) { // fn#105952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14157:962, offset: 0x022c868e, size: 77 bytes, params: 2, frame: 17
const defaultImport = ActionSheetActionCreators;
const openLazy = defaultImport.openLazy;
const Promise = global.Promise;
Reflect.apply(openLazy, defaultImport, [Promise.resolve({default: UserSettingsDebugLogsFiltersActionSheet}),
'UserSettingsDebugLogsFiltersActionSheet', a0]);
}
}
function UserSettingsDebugLogsFiltersActionSheet({sortOrder, onSortOrderChanged, onRefresh}) { // fn#105951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14157:131, offset: 0x022c8424, size: 618 bytes, params: 2, frame: 30
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
const object2 = {};
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.header = <BottomSheetTitleHeader title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+B9e11'])} />;
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const items2 = [<TableRowGroup hasIcons={false}><TableRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.wzzjk9)} onPress={onRefresh} /></TableRowGroup>];
const TableRadioGroup = (require(7988) /* metro dependency 7988: TableRadioGroupNative */).TableRadioGroup;
const tableRadioGroupProps = {title: intl.string((require(1244) /* metro dependency 1244: indexNative */).t.gePre2),
defaultValue: sortOrder, onChange: onSortOrderChanged, hasIcons: false};
const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow;
items2[1] = <TableRadioGroup {...tableRadioGroupProps}><TableRadioRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.eoXe0r)} value="newest" /><TableRadioRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.mmeWUF)} value="oldest" /></TableRadioGroup>;
const Spacer = (require(1305) /* metro dependency 1305: native */).Spacer;
items2[2] = <Spacer size={0} />;
return (
<ActionSheet {...object2}>
{items2}
</ActionSheet>
);
}
function openUserSettingsDebugLogsFiltersActionSheet(a0) { // fn#105952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14157:962, offset: 0x022c868e, size: 77 bytes, params: 2, frame: 17
const defaultImport = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
const openLazy = defaultImport.openLazy;
const Promise = global.Promise;
Reflect.apply(openLazy, defaultImport, [Promise.resolve({default: UserSettingsDebugLogsFiltersActionSheet}),
'UserSettingsDebugLogsFiltersActionSheet', a0]);
}
global.__d(_fun105950, 13960, [31, 33, 6805, 6758, 1244, 6231, 6238, 7988, 7987, 1305, 4080,
2]) /* metro module 13960, dependencies: [31, 33, 6805, 6758, 1244, 6231, 6238, 7988, 7987, 1305, 4080, 2] */;
@@ -1,20 +1,25 @@
/* Metro module 14224; source: modules/user_settings/dev_tools/native/UserSettingsJSError.tsx; dependencies: [31, 33, 4573, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
function _fun107571(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#107571, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14421:6, offset: 0x023012f2, size: 131 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(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/dev_tools/native/UserSettingsJSError.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/dev_tools/native/UserSettingsJSError.tsx');
exports.default = UserSettingsJSError;
function UserSettingsJSError() { // fn#107572, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14421:224, offset: 0x02301375, size: 68 bytes, params: 1, frame: 14
const Text = (TextModule).Text;
return (
<Text variant="display-md">
{null.boo}
</Text>
);
}
}
function UserSettingsJSError() { // fn#107572, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14421:224, offset: 0x02301375, size: 68 bytes, params: 1, frame: 14
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<Text variant="display-md">
{null.boo}
</Text>
);
}
global.__d(_fun107571, 14224, [31, 33, 4573, 2]) /* metro module 14224, dependencies: [31, 33, 4573, 2] */;
@@ -1,188 +1,307 @@
/* Metro module 13962; source: modules/user_settings/dev_tools/native/UserSettingsStartupTimings.tsx; dependencies: [5, 57, 31, 27, 691, 661, 33, 4501, 697, 4573, 4014, 1585, 11221, 566, 14, 4884, 9212, 8416, 4572, 6231, 8950, 693, 6238, 9798, 2] */
import Module00005 from '../../../../by-id/module-00005.js'; /* Metro dependency 5 */
import TTITracker from '../../../tti_analytics/TTITracker.tsx'; /* Metro dependency 14 */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import DeveloperOptionsStore from '../../../../stores/DeveloperOptionsStore.tsx'; /* Metro dependency 691 */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UseSafeAreaInsetsNative from '../../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import NativeTTIManagerModule from '../../../../external/discord_common/js/packages/rtn-codegen/js/NativeTTIManagerModule.tsx'; /* Metro dependency 4014 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as DeveloperOptionsActionCreatorsModule from '../../../../actions/DeveloperOptionsActionCreators.tsx'; /* Metro dependency 693 */
import * as StackNativeModule from '../../../../design/components/Stack/native/Stack.native.tsx'; /* Metro dependency 4572 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as TTIAnalyticsUtilsModule from '../../../tti_analytics/native/TTIAnalyticsUtils.tsx'; /* Metro dependency 4884 */
import * as TableRowGroupNativeModule from '../../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
import * as TableRowNativeModule from '../../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
import * as FlashListModule from '../../../../external/discord_common/js/packages/flash-list/index.jsx'; /* Metro dependency 8416 */
import * as TableCheckboxRowNativeModule from '../../../../design/components/TableRow/native/TableCheckboxRow.native.tsx'; /* Metro dependency 8950 */
import * as ShareIconModule from '../../../../design/components/Icon/native/redesign/generated/ShareIcon.tsx'; /* Metro dependency 9798 */
function _fun105956(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14159:6, offset: 0x022c883e, size: 413 bytes, params: 8, frame: 24
var object2;
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 developerOptionsStore = importDefault(691) /* metro dependency 691: DeveloperOptionsStore */;
const Fonts = (require(661) /* metro dependency 661: Constants */).Fonts;
let value = require(33) /* metro dependency 33 */;
const Fonts = (ConstantsModule).Fonts;
let value = JsxRuntimeModule;
const env0_8 = value.jsx;
const env0_9 = value.jsxs;
const env0_10 = value.Fragment;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object2.wrap = {backgroundColor: BACKGROUND_BASE_LOW, flex: 1};
object = {};
const BACKGROUND_BASE_LOW = (Native).colors.BACKGROUND_BASE_LOW;
object.wrap = {backgroundColor: BACKGROUND_BASE_LOW, flex: 1};
const CODE_BOLD = Fonts.CODE_BOLD;
object2.code = {fontFamily: CODE_BOLD};
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
object2.border = {'height': 1, 'backgroundColor': null, 'marginBottom': 8, backgroundColor: BACKGROUND_BASE_LOWEST};
const env0_11 = Reflect.apply(createStyles, value, [object2]);
const env0_12 = (importDefault(4014) /* metro dependency 4014: NativeTTIManagerModule */).getAppStartedTimestamp();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/dev_tools/native/UserSettingsStartupTimings.tsx');
object.code = {fontFamily: CODE_BOLD};
const BACKGROUND_BASE_LOWEST = (Native).colors.BACKGROUND_BASE_LOWEST;
object.border = {'height': 1, 'backgroundColor': null, 'marginBottom': 8, backgroundColor: BACKGROUND_BASE_LOWEST};
const env0_11 = Reflect.apply(createStyles, value, [object]);
const env0_12 = (NativeTTIManagerModule).getAppStartedTimestamp();
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/dev_tools/native/UserSettingsStartupTimings.tsx');
exports.default = UserSettingsStartupTimings;
}
function Code({children, color}) { // fn#105957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14159:415, offset: 0x022c89db, size: 96 bytes, params: 2, frame: 17
const styles = useStyles();
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<Text
variant="text-sm/normal"
color={color}
lineClamp={1}
style={styles.code}
>
{children}
</Text>
);
}
function UserSettingsStartupTimings() { // fn#105958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14159:709, offset: 0x022c8a3b, size: 768 bytes, params: 1, frame: 24
const value2 = undefined;
const styles = useStyles();
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
const binding = env0_5;
let useState = binding.useState;
const value3 = Reflect.apply(useState, binding, [true]);
const binding2 = env0_4;
const value4 = binding2(value3, 2);
const value5 = 0;
const property = value4[value5];
const env0_2 = value4[1];
useState = binding.useState;
const value6 = binding2(Reflect.apply(useState, binding, [true]), 2);
const property2 = value6[value5];
const env0_3 = property2;
var env0_4 = value6[1];
const value7 = binding.use(env0_12);
var env0_5 = value7;
const value8 = binding.useMemo(_fun105959, [value7, property, property2]);
const env0_6 = (require(566) /* metro dependency 566: flux */).useStateFromStores([DeveloperOptionsStore],
function() {
return DeveloperOptionsStore.alertStartupMetrics;
});
const env0_7 = (importDefault(14) /* metro dependency 14: TTITracker */).loadIndex.start - value7;
const env0_8 = (importDefault(14) /* metro dependency 14: TTITracker */).loadMiniCache.end - (importDefault(14) /* metro dependency 14: TTITracker */).loadMiniCache.start + ((importDefault(14) /* metro dependency 14: TTITracker */).parseStorage.end - (importDefault(14) /* metro dependency 14: TTITracker */).parseStorage.start);
const env0_9 = (importDefault(14) /* metro dependency 14: TTITracker */).loadLazyCache.end - (importDefault(14) /* metro dependency 14: TTITracker */).loadLazyCache.start;
const env0_10 = (importDefault(14) /* metro dependency 14: TTITracker */).ready.end - (importDefault(14) /* metro dependency 14: TTITracker */).ready.start;
const Math = global.Math;
const env0_11 = Math.ceil((importDefault(14) /* metro dependency 14: TTITracker */).renderLatestMessages.importTime);
const lastTrackedAppUiViewed2Properties = (require(4884) /* metro dependency 4884: TTIAnalyticsUtils */).getLastTrackedAppUiViewed2Properties();
const env0_13 = (lastTrackedAppUiViewed2Properties == null ? value2 : lastTrackedAppUiViewed2Properties.time_first_contentful_paint) ?? value5;
const env0_14 = env0_5.useCallback(env0_3(_fun105962), []);
const FlashList = (require(8416) /* metro dependency 8416: flashList */).FlashList;
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
return (
<View style={styles.wrap}>
<FlashList
contentContainerStyle={{paddingBottom: bottom + PX_16}}
ListHeaderComponent={ListHeaderComponent}
data={value8}
renderItem={renderItem_105971}
estimatedItemSize={20}
/>
</View>
);
}
function _fun105959() { // fn#105959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14159:883, offset: 0x022c8d3b, size: 66 bytes, params: 1, frame: 15
let value = environment.__proto__;
value = importDefault(11221) /* metro dependency 11221: serializeAppStartLogs */;
value = value(env0_5, !env0_1, env0_3);
return value.split('\n');
}
function* _fun105962() { // fn#105962, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14159:1416, offset: 0x022c8d97, size: 126 bytes, params: 1, frame: 16
if (true) {
value = environment.__proto__.__proto__;
var binding = env2_1;
var value3 = binding(env2_2[10]);
var getAppFirstVisibleTimestamp = value3.getAppFirstVisibleTimestamp;
yield Reflect.apply(getAppFirstVisibleTimestamp, value3, []);
var value4 = undefined;
if (false) {
return value4;
}
binding = env2_1;
var binding2 = env2_2;
var value6 = binding(binding2[12])(value4);
value = env2_0(binding2[16]);
value.showShareActionSheet({message: value6}, 'Startup Timing');
function Code({children, color}) { // fn#105957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14159:415, offset: 0x022c89db, size: 96 bytes, params: 2, frame: 17
const styles = useStyles();
const Text = (TextModule).Text;
return (
<Text
variant="text-sm/normal"
color={color}
lineClamp={1}
style={styles.code}
>
{children}
</Text>
);
}
function UserSettingsStartupTimings() { // fn#105958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14159:709, offset: 0x022c8a3b, size: 768 bytes, params: 1, frame: 24
const value2 = undefined;
const styles = useStyles();
const bottom = (UseSafeAreaInsetsNative)().bottom;
const binding = env0_5;
let useState = binding.useState;
const value3 = Reflect.apply(useState, binding, [true]);
const binding2 = env0_4;
const value4 = binding2(value3, 2);
const value5 = 0;
const property = value4[value5];
const env0_2 = value4[1];
useState = binding.useState;
const value6 = binding2(Reflect.apply(useState, binding, [true]), 2);
const property2 = value6[value5];
const property22 = property2;
var env0_4 = value6[1];
const value7 = binding.use(env0_12);
var env0_5 = value7;
const value8 = binding.useMemo(_fun105959, [value7, property, property2]);
const env0_6 = (require(566) /* metro dependency 566: flux */).useStateFromStores([DeveloperOptionsStore],
function() {
return DeveloperOptionsStore.alertStartupMetrics;
});
const env0_7 = (TTITracker).loadIndex.start - value7;
const env0_8 = (TTITracker).loadMiniCache.end - (TTITracker).loadMiniCache.start + ((TTITracker).parseStorage.end - (TTITracker).parseStorage.start);
const env0_9 = (TTITracker).loadLazyCache.end - (TTITracker).loadLazyCache.start;
const env0_10 = (TTITracker).ready.end - (TTITracker).ready.start;
const Math = global.Math;
const env0_11 = Math.ceil((TTITracker).renderLatestMessages.importTime);
const lastTrackedAppUiViewed2Properties = (TTIAnalyticsUtilsModule).getLastTrackedAppUiViewed2Properties();
const env0_13 = (lastTrackedAppUiViewed2Properties == null ? value2 : lastTrackedAppUiViewed2Properties.time_first_contentful_paint) ?? value5;
const env0_14 = env0_5.useCallback(property22(_fun105962), []);
const FlashList = (FlashListModule).FlashList;
const PX_16 = (Native).space.PX_16;
return (
<View style={styles.wrap}>
<FlashList
contentContainerStyle={{paddingBottom: bottom + PX_16}}
ListHeaderComponent={ListHeaderComponent}
data={value8}
renderItem={renderItem_105971}
estimatedItemSize={20}
/>
</View>
);
function _fun105959() { // fn#105959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14159:883, offset: 0x022c8d3b, size: 66 bytes, params: 1, frame: 15
let value = environment.__proto__;
value = importDefault(11221) /* metro dependency 11221: serializeAppStartLogs */;
value = value(env0_5, !env0_1, Module00005);
return value.split('\n');
}
function* _fun105962() { // fn#105962, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14159:1416, offset: 0x022c8d97, size: 126 bytes, params: 1, frame: 16
if (true) {
value = environment.__proto__.__proto__;
var binding = env2_1;
var value3 = binding(env2_2[10]);
var getAppFirstVisibleTimestamp = value3.getAppFirstVisibleTimestamp;
yield Reflect.apply(getAppFirstVisibleTimestamp, value3, []);
var value4 = undefined;
if (false) {
return value4;
}
binding = env2_1;
var binding2 = env2_2;
var value6 = binding(binding2[12])(value4);
value = env2_0(binding2[16]);
value.showShareActionSheet({message: value6}, 'Startup Timing');
}
}
function renderTime(a0) { // fn#105963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14159:1571, owner: UserSettingsStartupTimings.renderTime, offset: 0x022c8e15, size: 120 bytes, params: 2, frame: 20
let value = environment.__proto__;
value = a0 / 1000;
const Math = global.Math;
return (
<Code color="text-brand">
{'' + value + 's (' + Math.round(a0 / env0_13 * 100) + '%)'}
</Code>
);
}
function renderTTi(a0) { // fn#105964, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14159:1660, owner: UserSettingsStartupTimings.renderTTi, offset: 0x022c8e8d, size: 86 bytes, params: 2, frame: 16
const value = environment.__proto__;
return (
<Code color="text-brand">
{a0 == null || a0 <= 0 ? '' : a0 / 1000 + 's'}
</Code>
);
}
function ListHeaderComponent() { // fn#105965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14159:1864, owner: UserSettingsStartupTimings.ListHeaderComponent, offset: 0x022c8ee3, size: 1309 bytes, params: 1, frame: 37
const jsxRuntimeEnv1_10Binding = jsxRuntimeEnv1_10;
const value2 = undefined;
const Stack = (StackNativeModule).Stack;
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
const TableCheckboxRow = (TableCheckboxRowNativeModule).TableCheckboxRow;
const items2 = [
<TableRowGroup title="Performance testing" hasIcons={false}>
<TableCheckboxRow
label="Show start times at launch"
onPress={onPress_105966}
checked={alertStartupMetrics}
/>
</TableRowGroup>,
];
const TableRow = (TableRowNativeModule).TableRow;
items2[1] = (
<TableRowGroup title="Key Cold Start Times" hasIcons={false}>
<TableRow
label={<>
<Code>
{'Native: '}
{renderTime(env0_7)}
</Code>
<Code>
{'JS Imports: '}
{renderTime(env0_11)}
</Code>
<Code>
{'Mini Cache: '}
{renderTime(env0_8)}
</Code>
<Code>
{'Lazy Cache: '}
{renderTime(env0_9)}
</Code>
<Code>
{'Ready: '}
{renderTime(env0_10)}
</Code>
<Code>
{'TTI (first contentful paint): '}
{renderTTi(env0_13)}
</Code>
<Code>
{'Cached Messages Render: '}
{renderTTi(env0_12 == null ? value2 : env0_12.time_display_messages_with_cache_end)}
</Code>
<Code>
{'Latest Messages Render: '}
{renderTTi(env0_12 == null ? value2 : env0_12.time_display_latest_messages_end)}
</Code>
</>}
/>
</TableRowGroup>
);
items2[2] = (
<TableRowGroup title="Legend" hasIcons={false}>
<TableRow
label={<>
<Code>
{'☕'}
{' - Java / Kotlin'}
</Code>
<Code>
{'🎨'}
{' - React render'}
</Code>
<Code>
{'💾'}
{' - CacheStore'}
</Code>
<Code>
{'🦥'}
{' - Slow Store Update / Handler'}
</Code>
<Code>
{'🏃'}
{' - Startup Event'}
</Code>
<Code>
{'🌐'}
{' - Socket Event'}
</Code>
</>}
/>
</TableRowGroup>
);
items2[3] = (
<TableRowGroup title="Detailed Times" hasIcons={false}>
<TableCheckboxRow
label="Hide the Noise"
onPress={onPress_105967}
checked={env0_1}
/>
<TableCheckboxRow
label="Hide paints"
onPress={onPress_105969}
checked={!Module00005}
/>
</TableRowGroup>
);
const ShareIcon = (ShareIconModule).ShareIcon;
items2[4] = (
<TableRowGroup title="Share Timings" hasIcons>
<TableRow
icon={<ShareIcon />}
label="Copy timings to clipboard."
arrow
onPress={env0_14}
/>
</TableRowGroup>
);
return (
<>
<Stack spacing={16} style={{padding: 16}}>
{items2}
</Stack>
<View style={styles.border} />
</>
);
function ListHeaderComponentOnPress() { // fn#105966, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14159:2088, owner: UserSettingsStartupTimings.ListHeaderComponent.onPress, offset: 0x022c9400, size: 55 bytes, params: 1, frame: 12
const value = environment.__proto__.__proto__;
return (DeveloperOptionsActionCreatorsModule).setDeveloperOptionSettings({alertStartupMetrics: !alertStartupMetrics});
}
function ListHeaderComponentOnPress_105967() { // fn#105967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14159:3355, owner: UserSettingsStartupTimings.ListHeaderComponent.onPress, offset: 0x022c9437, size: 25 bytes, params: 1, frame: 11
return env1_2(function(a0) {
return !a0;
});
}
function ListHeaderComponentOnPress_105969() { // fn#105969, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14159:3439, owner: UserSettingsStartupTimings.ListHeaderComponent.onPress, offset: 0x022c9450, size: 25 bytes, params: 1, frame: 11
return env1_4(function(a0) {
return !a0;
});
}
}
function UserSettingsStartupTimingsRenderItem({item}) { // fn#105971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14159:3694, owner: UserSettingsStartupTimings.renderItem, offset: 0x022c9469, size: 35 bytes, params: 2, frame: 13
return (
<Code>
{item}
</Code>
);
}
}
}
function renderTime(a0) { // fn#105963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14159:1571, owner: UserSettingsStartupTimings.renderTime, offset: 0x022c8e15, size: 120 bytes, params: 2, frame: 20
let value = environment.__proto__;
value = a0 / 1000;
const Math = global.Math;
return (
<Code color="text-brand">
{'' + value + 's (' + Math.round(a0 / env0_13 * 100) + '%)'}
</Code>
);
}
function renderTTi(a0) { // fn#105964, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14159:1660, owner: UserSettingsStartupTimings.renderTTi, offset: 0x022c8e8d, size: 86 bytes, params: 2, frame: 16
const value = environment.__proto__;
return (
<Code color="text-brand">
{a0 == null || a0 <= 0 ? '' : a0 / 1000 + 's'}
</Code>
);
}
function UserSettingsStartupTimingsListHeaderComponent() { // fn#105965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14159:1864, owner: UserSettingsStartupTimings.ListHeaderComponent, offset: 0x022c8ee3, size: 1309 bytes, params: 1, frame: 37
const jsxRuntimeEnv1_10Binding = jsxRuntimeEnv1_10;
const value2 = undefined;
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
const TableCheckboxRow = (require(8950) /* metro dependency 8950: TableCheckboxRowNative */).TableCheckboxRow;
const items2 = [<TableRowGroup title="Performance testing" hasIcons={false}><TableCheckboxRow label="Show start times at launch" onPress={onPress_105966} checked={alertStartupMetrics} /></TableRowGroup>];
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
items2[1] = <TableRowGroup title="Key Cold Start Times" hasIcons={false}><TableRow label={<><Code>{'Native: '}{renderTime(env0_7)}</Code><Code>{'JS Imports: '}{renderTime(env0_11)}</Code><Code>{'Mini Cache: '}{renderTime(env0_8)}</Code><Code>{'Lazy Cache: '}{renderTime(env0_9)}</Code><Code>{'Ready: '}{renderTime(env0_10)}</Code><Code>{'TTI (first contentful paint): '}{renderTTi(env0_13)}</Code><Code>{'Cached Messages Render: '}{renderTTi(env0_12 == null ? value2 : env0_12.time_display_messages_with_cache_end)}</Code><Code>{'Latest Messages Render: '}{renderTTi(env0_12 == null ? value2 : env0_12.time_display_latest_messages_end)}</Code></>} /></TableRowGroup>;
items2[2] = <TableRowGroup title="Legend" hasIcons={false}><TableRow label={<><Code>{'☕'}{' - Java / Kotlin'}</Code><Code>{'🎨'}{' - React render'}</Code><Code>{'💾'}{' - CacheStore'}</Code><Code>{'🦥'}{' - Slow Store Update / Handler'}</Code><Code>{'🏃'}{' - Startup Event'}</Code><Code>{'🌐'}{' - Socket Event'}</Code></>} /></TableRowGroup>;
items2[3] = <TableRowGroup title="Detailed Times" hasIcons={false}><TableCheckboxRow label="Hide the Noise" onPress={onPress_105967} checked={env0_1} /><TableCheckboxRow label="Hide paints" onPress={onPress_105969} checked={!env0_3} /></TableRowGroup>;
const ShareIcon = (require(9798) /* metro dependency 9798: ShareIcon */).ShareIcon;
items2[4] = <TableRowGroup title="Share Timings" hasIcons><TableRow icon={<ShareIcon />} label="Copy timings to clipboard." arrow onPress={env0_14} /></TableRowGroup>;
return (
<>
<Stack spacing={16} style={{padding: 16}}>
{items2}
</Stack>
<View style={styles.border} />
</>
);
}
function UserSettingsStartupTimingsRenderItem({item}) { // fn#105971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14159:3694, owner: UserSettingsStartupTimings.renderItem, offset: 0x022c9469, size: 35 bytes, params: 2, frame: 13
return (
<Code>
{item}
</Code>
);
}
function ListHeaderComponentOnPress() { // fn#105966, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14159:2088, owner: UserSettingsStartupTimings.ListHeaderComponent.onPress, offset: 0x022c9400, size: 55 bytes, params: 1, frame: 12
const value = environment.__proto__.__proto__;
return (require(693) /* metro dependency 693: DeveloperOptionsActionCreators */).setDeveloperOptionSettings({alertStartupMetrics: !alertStartupMetrics});
}
function ListHeaderComponentOnPress_105967() { // fn#105967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14159:3355, owner: UserSettingsStartupTimings.ListHeaderComponent.onPress, offset: 0x022c9437, size: 25 bytes, params: 1, frame: 11
return env1_2(function(a0) {
return !a0;
});
}
function ListHeaderComponentOnPress_105969() { // fn#105969, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14159:3439, owner: UserSettingsStartupTimings.ListHeaderComponent.onPress, offset: 0x022c9450, size: 25 bytes, params: 1, frame: 11
return env1_4(function(a0) {
return !a0;
});
}
global.__d(_fun105956, 13962, [5, 57, 31, 27, 691, 661, 33, 4501, 697, 4573, 4014, 1585, 11221, 566, 14, 4884, 9212,
8416, 4572, 6231, 8950, 693, 6238, 9798,
2]) /* metro module 13962, dependencies: [5, 57, 31, 27, 691, 661, 33, 4501, 697, 4573, 4014, 1585, 11221, 566, 14, 4884, 9212, 8416, 4572, 6231, 8950, 693, 6238, 9798, 2] */;
@@ -1,18 +1,25 @@
/* Metro module 13365; source: modules/user_settings/dev_tools/native/useIsStaffOrDeveloperSettingPredicate.tsx; dependencies: [7112, 566, 2] */
import DeveloperExperimentStore from '../../../../stores/DeveloperExperimentStore.tsx'; /* Metro dependency 7112 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun101762(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101762, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13555:6, offset: 0x0221e6e3, size: 114 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const developerExperimentStore = importDefault(7112) /* metro dependency 7112: DeveloperExperimentStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/dev_tools/native/useIsStaffOrDeveloperSettingPredicate.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/dev_tools/native/useIsStaffOrDeveloperSettingPredicate.tsx');
exports.useStaffOrDeveloperSettingPredicate = function() {
return require(dependencyMap[1]).useStateFromStores([DeveloperExperimentStore], _fun101764);
};
function useStaffOrDeveloperSettingPredicate() { // fn#101763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13555:258, offset: 0x0221e755, size: 59 bytes, params: 1, frame: 13
return (require(566) /* metro dependency 566: flux */).useStateFromStores([DeveloperExperimentStore], function() {
return DeveloperExperimentStore.isDeveloper;
});
function _fun101764() { // fn#101764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13555:344, offset: 0x0221e790, size: 15 bytes, params: 1, frame: 1
return DeveloperExperimentStore.isDeveloper;
}
}
}
function useStaffOrDeveloperSettingPredicate() { // fn#101763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13555:258, offset: 0x0221e755, size: 59 bytes, params: 1, frame: 13
return (require(566) /* metro dependency 566: flux */).useStateFromStores([DeveloperExperimentStore], function() {
return DeveloperExperimentStore.isDeveloper;
});
}
global.__d(_fun101762, 13365, [7112, 566, 2]) /* metro module 13365, dependencies: [7112, 566, 2] */;