Files
discord-decomp/sources/modules/activities/getActivityReportOptions.tsx
T
2026-07-27 16:20:00 +03:00

46 lines
2.5 KiB
TypeScript

/* Metro module 15703; source: modules/activities/getActivityReportOptions.tsx; dependencies: [4237, 1244, 2] */
function _fun120532(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120532, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15911:6, offset: 0x0252e58b, size: 117 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(4237) /* metro dependency 4237: Constants */).ActivityFeedbackReasons;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/getActivityReportOptions.tsx');
exports.default = getActivityReportOptions;
}
function getActivityReportOptions(a0) { // fn#120533, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15911:221, offset: 0x0252e600, size: 591 bytes, params: 2, frame: 20
var push;
const value = a1;
const r1 = value !== undefined ? value : false;
const object2 = {};
const FAILED_LOAD = ActivityFeedbackReasons.FAILED_LOAD;
object2.value = FAILED_LOAD;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object2.label = a0 ? Reflect.apply(string, intl, [t.uaiF6B]) : Reflect.apply(string, intl, [t.aO6OMZ]);
const items2 = [object2];
const LAGGING = ActivityFeedbackReasons.LAGGING;
string = intl.string;
items2[1] = {value: LAGGING, label: a0 ? Reflect.apply(string, intl, [t['/nJOlj']]) : Reflect.apply(string, intl,
[t['79HFwf']])};
const CONFUSING = ActivityFeedbackReasons.CONFUSING;
string = intl.string;
items2[2] = {value: CONFUSING, label: a0 ? Reflect.apply(string, intl, [t['/8psS7']]) : Reflect.apply(string, intl,
[t.iSv55N])};
const NOT_FUN = ActivityFeedbackReasons.NOT_FUN;
string = intl.string;
items2[3] = {value: NOT_FUN, label: a0 ? Reflect.apply(string, intl, [t['7GVmLm']]) : Reflect.apply(string, intl,
[t.GnVff5])};
const OTHER = ActivityFeedbackReasons.OTHER;
items2[4] = {value: OTHER, label: intl.string(t.emlT91)};
if (r1) {
push = items2.push;
string = intl.string;
Reflect.apply(push, items2, [{value: ActivityFeedbackReasons.ADS, label: a0 ? Reflect.apply(string, intl,
[t['5o1UL6']]) : Reflect.apply(string, intl, [t.XeeDhK])}]);
}
return items2;
}