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 8302; source: modules/polls/parsePollResultSystemMessageEmbed.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun66190(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66190, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8487:6, offset: 0x01bf1616, size: 109 bytes, params: 8, frame: 16
const _arrayLikeToArray_66193 = function(a0, a1) {
var r0;
@@ -45,140 +47,146 @@ function _fun66190(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/polls/parsePollResultSystemMessageEmbed.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/polls/parsePollResultSystemMessageEmbed.tsx');
exports.default = parsePollResultSystemMessageEmbed;
}
function _createForOfIteratorHelperLoose_66191(a0, a1) { // fn#66191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8487:46, offset: 0x01bf1683, 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_66191(a0, a1) { // fn#66191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8487:46, offset: 0x01bf1683, 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 _fun66192;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_66193(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 _fun66192;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_66193(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_66193(a0, value);
r6 = value;
} else {
r6 = value;
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_66193(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
r5 = r6;
} else {
r5 = value;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
if (r5) {
}
return _fun66192;
}
return _fun66192;
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 _fun66192() { // fn#66192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8487: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]};
}
}
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 parsePollResultSystemMessageEmbed(a0) { // fn#66194, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8487:1103, offset: 0x01bf17f7, size: 375 bytes, params: 2, frame: 29
var r4;
var value5;
var rawName;
var rawValue;
var parseInt;
var value6;
var animated;
if (a0?.fields == null) {
return null;
}
const object3 = {};
const object4 = {};
const value3 = _createForOfIteratorHelperLoose_66191(a0.fields);
const value4 = value3();
let done = value4.done;
if (!done) {
r4 = value4;
while (true) {
value5 = r4.value;
rawName = value5.rawName;
if (rawName !== 'poll_question_text') {
if (rawName === 'victor_answer_id') {
object3.victorAnswerId = value5.rawValue;
break;
}
if (rawName === 'victor_answer_text') {
object3.victorAnswerText = value5.rawValue;
break;
}
if (rawName === 'victor_answer_votes') {
parseInt = global.parseInt;
object3.victorAnswerVotes = parseInt(value5.rawValue, 10);
break;
}
if (rawName === 'total_votes') {
parseInt = global.parseInt;
object3.totalVotes = parseInt(value5.rawValue, 10);
break;
}
if (rawName === 'victor_answer_emoji_id') {
object4.id = value5.rawValue;
break;
}
if (rawName === 'victor_answer_emoji_name') {
object4.name = value5.rawValue;
function parsePollResultSystemMessageEmbed(a0) { // fn#66194, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8487:1103, offset: 0x01bf17f7, size: 375 bytes, params: 2, frame: 29
var r4;
var value5;
var rawName;
var rawValue;
var parseInt;
var value6;
var animated;
if (a0?.fields == null) {
return null;
}
const object = {};
const object2 = {};
const value3 = _createForOfIteratorHelperLoose_66191(a0.fields);
const value4 = value3();
let done = value4.done;
if (!done) {
r4 = value4;
while (true) {
value5 = r4.value;
rawName = value5.rawName;
if (rawName !== 'poll_question_text') {
if (rawName === 'victor_answer_id') {
object.victorAnswerId = value5.rawValue;
break;
}
if (rawName === 'victor_answer_text') {
object.victorAnswerText = value5.rawValue;
break;
}
if (rawName === 'victor_answer_votes') {
parseInt = global.parseInt;
object.victorAnswerVotes = parseInt(value5.rawValue, 10);
break;
}
if (rawName === 'total_votes') {
parseInt = global.parseInt;
object.totalVotes = parseInt(value5.rawValue, 10);
break;
}
if (rawName === 'victor_answer_emoji_id') {
object2.id = value5.rawValue;
break;
}
if (rawName === 'victor_answer_emoji_name') {
object2.name = value5.rawValue;
break;
}
if (rawName !== 'victor_answer_emoji_animated') {
break;
}
object2.animated = value5.rawValue === 'true';
break;
}
if (rawName !== 'victor_answer_emoji_animated') {
rawValue = value5.rawValue;
object.questionText = rawValue;
value6 = value3();
done = value6.done;
if (done) {
break;
}
object4.animated = value5.rawValue === 'true';
break;
r4 = value6;
continue;
}
rawValue = value5.rawValue;
object3.questionText = rawValue;
value6 = value3();
done = value6.done;
if (done) {
break;
}
r4 = value6;
continue;
}
}
if (object4.name != null) {
animated = object4.animated;
object4.animated = animated != null && animated;
object3.victorEmoji = object4;
if (object2.name != null) {
animated = object2.animated;
object2.animated = animated != null && animated;
object.victorEmoji = object2;
}
return object;
}
return object3;
}
global.__d(_fun66190, 8302, [2]) /* metro module 8302, dependencies: [2] */;