Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,11 @@
|
||||
/* Metro module 10933; source: modules/bug_reporter/BugReportStore.tsx; dependencies: [4024, 2] */
|
||||
function _fun83805(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11119:6, offset: 0x01f2968e, size: 110 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const zustandStore = (require(4024) /* metro dependency 4024: ZustandStore */).createZustandStore(function() {
|
||||
return {isReportOpen: false};
|
||||
});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/bug_reporter/BugReportStore.tsx');
|
||||
exports.default = zustandStore;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,289 @@
|
||||
/* Metro module 11215; source: modules/bug_reporter/BugReportUtils.tsx; dependencies: [5, 1310, 661, 507, 1244, 11216, 477, 5046, 480, 2] */
|
||||
function _fun85716(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85716, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11401:6, offset: 0x01f79314, size: 227 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const themeStore = importDefault(1310) /* metro dependency 1310: ThemeStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_5 = constantsModule.DebugLogCategory;
|
||||
const env0_6 = constantsModule.Endpoints;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/bug_reporter/BugReportUtils.tsx');
|
||||
exports.fetchBugReportConfig = function() {
|
||||
return _fetchBugReportConfig.apply(this, arguments);
|
||||
};
|
||||
exports.getFeatureId = function(a0) {
|
||||
var r5;
|
||||
var value = undefined;
|
||||
r5 = a0 == null ? value : a0.name;
|
||||
var value2 = '';
|
||||
var r3 = r5 ?? value2;
|
||||
var r2 = (a0 == null ? value : a0.squad) ?? value2;
|
||||
return value2 !== r3 ? r3 + '::' + r2 : value2 === r2 ? value2 : r3 + '::' + r2;
|
||||
};
|
||||
exports.getPriorities = getPriorities;
|
||||
exports.submitReport = function() {
|
||||
return _submitReport.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
function _fetchBugReportConfig() { // fn#85717, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11401:161, offset: 0x01f793f7, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun85719).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _submitReport() { // fn#85720, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11401:340, offset: 0x01f79491, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun85722).apply(this, arguments);
|
||||
}
|
||||
|
||||
function getPriorities() { // fn#85726, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11401:2241, offset: 0x01f79959, size: 529 bytes, params: 1, frame: 19
|
||||
var object2;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const VwIij9 = t.VwIij9;
|
||||
let format = intl.format;
|
||||
const DOP8yY = t.DOP8yY;
|
||||
const items2 = [{title: Reflect.apply(string, intl, [VwIij9]), description: Reflect.apply(format, intl, [DOP8yY,
|
||||
{}]), emoji: '801497159479722084', value: 0}];
|
||||
items2[1] = {title: intl.string(t.rYfJop), description: intl.format(t['+LEfDL'], {}), emoji: '410336837563973632',
|
||||
value: 1};
|
||||
object2 = {};
|
||||
object2.title = intl.string(t['9LSuy3']);
|
||||
object2.description = intl.format(t.nC7pvx, {});
|
||||
object2.emoji = '841420679643529296';
|
||||
object2.value = 2;
|
||||
items2[2] = object2;
|
||||
string = intl.string;
|
||||
const Ia0ska = t.Ia0ska;
|
||||
format = intl.format;
|
||||
const D4rbgX = t.D4rbgX;
|
||||
items2[3] = {title: Reflect.apply(string, intl, [Ia0ska]), description: Reflect.apply(format, intl, [D4rbgX, {}]),
|
||||
emoji: '827645852352512021', value: 3};
|
||||
return items2;
|
||||
}
|
||||
|
||||
function* _fun85719() { // fn#85719, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11401:226, offset: 0x01f79434, size: 93 bytes, params: 1, frame: 13
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
const HTTP = env2_0(env2_2[3]).HTTP;
|
||||
const get = HTTP.get;
|
||||
const BUG_REPORTS = env2_6.BUG_REPORTS;
|
||||
yield Reflect.apply(get, HTTP, [{url: BUG_REPORTS, rejectWithError: false}]);
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
return value.body;
|
||||
}
|
||||
|
||||
function* _fun85722(a0, a1, a2) { // fn#85722, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11401:389, offset: 0x01f794ce, size: 1030 bytes, params: 4, frame: 25
|
||||
var object6;
|
||||
var push;
|
||||
var binding3;
|
||||
var property;
|
||||
var value11;
|
||||
var post;
|
||||
var BUG_REPORTS;
|
||||
var object4;
|
||||
var NetworkActionNames;
|
||||
var BUG_REPORT_SUBMIT;
|
||||
var object5;
|
||||
var value12;
|
||||
var error;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = undefined;
|
||||
let name = a0.name;
|
||||
const items2 = [{name: 'name', value: name}];
|
||||
let priority = a0.priority;
|
||||
items2[1] = {name: 'priority', value: '' + priority};
|
||||
items2[2] = {name: 'override_platform_information', value: '' + a1.overridePlatformInformation};
|
||||
object6 = {name: 'theme'};
|
||||
object6.value = env2_4.theme;
|
||||
items2[3] = object6;
|
||||
if (a0.description !== '') {
|
||||
items2.push({name: 'description', value: a0.description});
|
||||
}
|
||||
if (a0.url !== '') {
|
||||
items2.push({name: 'external_url', value: a0.url});
|
||||
}
|
||||
if (a0.buildOverride != null) {
|
||||
items2.push({name: 'build_override', value: a0.buildOverride});
|
||||
}
|
||||
if (a0.experimentOverrides != null) {
|
||||
push = items2.push;
|
||||
object6 = {name: 'experiment_overrides'};
|
||||
object6.value = a0.experimentOverrides.map(function({experimentId, variantId}) {
|
||||
return '' + experimentId + ':' + variantId;
|
||||
}).join(', ');
|
||||
Reflect.apply(push, items2, [object6]);
|
||||
}
|
||||
let feature = a0.feature;
|
||||
const asana_inbox_id = feature == null ? value : feature.asana_inbox_id;
|
||||
if (asana_inbox_id != null && asana_inbox_id !== '') {
|
||||
items2.push({name: 'asana_inbox_id', value: '' + asana_inbox_id});
|
||||
}
|
||||
feature = a0.feature;
|
||||
name = feature == null ? value : feature.name;
|
||||
if (name != null && name !== '') {
|
||||
items2.push({name: 'feature_name', value: name});
|
||||
}
|
||||
if (a1.overridePlatformInformation) {
|
||||
items2.push({name: 'device', value: a1.device});
|
||||
items2.push({name: 'os', value: a1.operatingSystem});
|
||||
items2.push({name: 'os_version', value: a1.operatingSystemVersion});
|
||||
items2.push({name: 'client_version', value: a1.clientVersion});
|
||||
items2.push({name: 'client_build_number', value: a1.clientBuildNumber});
|
||||
items2.push({name: 'release_channel', value: global.window.GLOBAL_ENV.RELEASE_CHANNEL});
|
||||
items2.push({name: 'locale', value: a1.locale});
|
||||
}
|
||||
let binding = env2_0;
|
||||
const binding2 = env2_2;
|
||||
const value9 = binding(binding2[5]);
|
||||
const uploadDebugLogFiles = value9.uploadDebugLogFiles;
|
||||
const isIOS2 = binding(binding2[6]).isIOS();
|
||||
binding = env2_5;
|
||||
Reflect.apply(uploadDebugLogFiles, value9, [isIOS2 ? binding.IOS_APP : binding.ANDROID_APP]);
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
return error;
|
||||
}
|
||||
try {
|
||||
binding3 = env2_2;
|
||||
} catch (error) {
|
||||
return error;
|
||||
}
|
||||
try {
|
||||
property = binding3[7];
|
||||
} catch (error) {
|
||||
return error;
|
||||
}
|
||||
try {
|
||||
value11 = binding(property);
|
||||
} catch (error) {
|
||||
return error;
|
||||
}
|
||||
try {
|
||||
post = value11.post;
|
||||
} catch (error) {
|
||||
return error;
|
||||
}
|
||||
try {
|
||||
object6 = {};
|
||||
} catch (error) {
|
||||
return error;
|
||||
}
|
||||
try {
|
||||
binding = env2_6;
|
||||
} catch (error) {
|
||||
return error;
|
||||
}
|
||||
try {
|
||||
BUG_REPORTS = binding.BUG_REPORTS;
|
||||
} catch (error) {
|
||||
return error;
|
||||
}
|
||||
try {
|
||||
object6.url = BUG_REPORTS;
|
||||
} catch (error) {
|
||||
return error;
|
||||
}
|
||||
try {
|
||||
object6.attachments = a2;
|
||||
} catch (error) {
|
||||
return error;
|
||||
}
|
||||
try {
|
||||
object6.fields = items2;
|
||||
} catch (error) {
|
||||
return error;
|
||||
}
|
||||
try {
|
||||
object4 = {};
|
||||
} catch (error) {
|
||||
return error;
|
||||
}
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
return error;
|
||||
}
|
||||
try {
|
||||
property = binding3[8];
|
||||
} catch (error) {
|
||||
return error;
|
||||
}
|
||||
try {
|
||||
value = binding(property);
|
||||
} catch (error) {
|
||||
return error;
|
||||
}
|
||||
try {
|
||||
NetworkActionNames = value.NetworkActionNames;
|
||||
} catch (error) {
|
||||
return error;
|
||||
}
|
||||
try {
|
||||
BUG_REPORT_SUBMIT = NetworkActionNames.BUG_REPORT_SUBMIT;
|
||||
} catch (error) {
|
||||
return error;
|
||||
}
|
||||
try {
|
||||
object4.event = BUG_REPORT_SUBMIT;
|
||||
} catch (error) {
|
||||
return error;
|
||||
}
|
||||
try {
|
||||
object5 = {};
|
||||
} catch (error) {
|
||||
return error;
|
||||
}
|
||||
try {
|
||||
priority = a0.priority;
|
||||
} catch (error) {
|
||||
return error;
|
||||
}
|
||||
try {
|
||||
object5.priority = priority;
|
||||
} catch (error) {
|
||||
return error;
|
||||
}
|
||||
try {
|
||||
object5.asana_inbox_id = asana_inbox_id;
|
||||
} catch (error) {
|
||||
return error;
|
||||
}
|
||||
try {
|
||||
object4.properties = object5;
|
||||
} catch (error) {
|
||||
return error;
|
||||
}
|
||||
try {
|
||||
object6.trackedActionData = object4;
|
||||
} catch (error) {
|
||||
return error;
|
||||
}
|
||||
try {
|
||||
object6.rejectWithError = false;
|
||||
} catch (error) {
|
||||
return error;
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(post, value11, [object6]);
|
||||
} catch (error) {
|
||||
return error;
|
||||
}
|
||||
yield value;
|
||||
try {
|
||||
value = undefined;
|
||||
value12 = false;
|
||||
} catch (error) {
|
||||
return error;
|
||||
}
|
||||
return value12 ? value : value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* Metro module 11226; source: modules/bug_reporter/BugReporterExperiment.tsx; dependencies: [1854, 2] */
|
||||
function _fun85824(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11412:6, offset: 0x01f7cc7c, size: 147 bytes, params: 8, frame: 20
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(1854) /* metro dependency 1854: apex */;
|
||||
value = value.createApexExperiment({'name': '2026-01-bug-reporter', 'kind': 'user',
|
||||
defaultConfig: {hasBugReporterAccess: false}, variations: {[1]: {hasBugReporterAccess: true}}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/bug_reporter/BugReporterExperiment.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,185 @@
|
||||
/* Metro module 11225; source: modules/bug_reporter/native/BugReportManager.tsx; dependencies: [6, 7, 15, 17, 18, 5, 27, 691, 4661, 477, 11106, 10920, 491, 11226, 4860, 2] */
|
||||
function _fun85805(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11411:6, offset: 0x01f7c66b, size: 355 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
const env0_8 = importDefault(5) /* metro dependency 5 */;
|
||||
const {NativeModules, NativeEventEmitter} = require(27) /* metro dependency 27 */;
|
||||
const developerOptionsStore = importDefault(691) /* metro dependency 691: DeveloperOptionsStore */;
|
||||
const env0_11 = (require(4661) /* metro dependency 4661: NativePermissionConstants */).NativePermissionStatus;
|
||||
const ScreenshotHelper = NativeModules.ScreenshotHelper;
|
||||
let nativeEventEmitter = new NativeEventEmitter(ScreenshotHelper);
|
||||
nativeEventEmitter = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
|
||||
nativeEventEmitter = _fun85817(nativeEventEmitter);
|
||||
nativeEventEmitter = new nativeEventEmitter();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/bug_reporter/native/BugReportManager.tsx');
|
||||
exports.default = nativeEventEmitter;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_85806() { // fn#85806, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11411:252, offset: 0x01f7c7ce, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_85806_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function showNotification() { // fn#85809, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11411:479, offset: 0x01f7c830, size: 60 bytes, params: 1, frame: 13
|
||||
const env0_0 = _fun85810();
|
||||
global.setTimeout(env0_8(_fun85815), 1200);
|
||||
}
|
||||
|
||||
function _fun85817(a0) { // fn#85817, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11411:1113, offset: 0x01f7ca83, size: 144 bytes, params: 2, frame: 17
|
||||
const closure = BugReportManager;
|
||||
env0_7(closure, a0);
|
||||
const binding = env0_4;
|
||||
const items2 = [{key: '_initialize', value: function() {
|
||||
this.initBugReporter();
|
||||
}}];
|
||||
items2[1] = {key: '_terminate', value: value_85820};
|
||||
const env0_0 = env0_8(_fun85822);
|
||||
items2[2] = {key: 'initBugReporter', value: value_85823};
|
||||
return binding(closure, items2);
|
||||
}
|
||||
|
||||
function _fun85810() { // fn#85810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11411:513, offset: 0x01f7c86c, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env1_8(_fun85812);
|
||||
return _fun85813;
|
||||
}
|
||||
|
||||
function* _fun85815() { // fn#85815, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11411:870, offset: 0x01f7c99b, size: 195 bytes, params: 1, frame: 18
|
||||
var environment;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__;
|
||||
value = undefined;
|
||||
yield require();
|
||||
const value3 = undefined;
|
||||
if (false) {
|
||||
return value3;
|
||||
}
|
||||
const binding = env2_1;
|
||||
const binding2 = env2_2;
|
||||
const value6 = binding(binding2[11]);
|
||||
const enqueueNotification = value6.enqueueNotification;
|
||||
const object2 = {'type': 'BUG_REPORTER', 'duration': 5000};
|
||||
object2.key = env2_0(binding2[12]).v4();
|
||||
object2.image = value3;
|
||||
object2.imageUri = value3 == null ? value : value3.uri;
|
||||
object2.onDismiss = onDismiss_85816;
|
||||
object2.inAppNotificationId = env2_0(env2_2[12]).v4();
|
||||
Reflect.apply(enqueueNotification, value6, [object2]);
|
||||
return value;
|
||||
}
|
||||
|
||||
function BugReportManager() { // fn#85818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11411:1125, offset: 0x01f7cb13, size: 113 bytes, params: 1, frame: 20
|
||||
const value = environment.__proto__;
|
||||
env1_3(this, BugReportManager);
|
||||
const value3 = env1_6(BugReportManager);
|
||||
return env1_5(this, _isNativeReflectConstruct_85806() ? global.Reflect.construct(value3, arguments,
|
||||
env1_6(this).constructor) : value3.apply(this, arguments));
|
||||
}
|
||||
|
||||
function value_85820() { // fn#85820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11411:1484, offset: 0x01f7cb97, size: 31 bytes, params: 1, frame: 10
|
||||
const binding = env1_12;
|
||||
if (binding != null) {
|
||||
binding.remove();
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun85822() { // fn#85822, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11411:1571, offset: 0x01f7cbc1, size: 187 bytes, params: 1, frame: 19
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var NativePermissionManager = env2_9.NativePermissionManager;
|
||||
yield NativePermissionManager.hasPhotoAuthorization();
|
||||
var value3 = undefined;
|
||||
if (false) {
|
||||
return value3;
|
||||
}
|
||||
var AUTHORIZED = env2_11.AUTHORIZED;
|
||||
var value5 = value3 === AUTHORIZED;
|
||||
var isBugReporterEnabled = env2_10.isBugReporterEnabled;
|
||||
var value6 = env2_1(env2_2[13]);
|
||||
var getConfig = value6.getConfig;
|
||||
var r3 = Reflect.apply(getConfig, value6,
|
||||
[{location: 'native-BugReportManager'}]).hasBugReporterAccess && isBugReporterEnabled;
|
||||
r3 = r3 && value5;
|
||||
if (r3) {
|
||||
if (env2_12 == null) {
|
||||
env2_12 = env2_13.addListener('screenshotTaken', env2_15);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun85812() { // fn#85812, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11411:533, offset: 0x01f7c89b, size: 245 bytes, params: 1, frame: 15
|
||||
var r1;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
const binding = env3_0;
|
||||
const value3 = undefined;
|
||||
const value4 = binding(env3_2[9]);
|
||||
if (value4.isIOS()) {
|
||||
if (env3_1(env3_2[10]) == null) {
|
||||
r1 = value3;
|
||||
} else {
|
||||
value = env3_1(env3_2[10]);
|
||||
value = value.getPhotos({'first': 1, 'groupTypes': 'Recents', 'assetType': 'Photos'});
|
||||
r1 = value;
|
||||
}
|
||||
yield r1;
|
||||
} else {
|
||||
var CameraRollUtils = env3_9.CameraRollUtils;
|
||||
var getPhotos = CameraRollUtils.getPhotos;
|
||||
yield Reflect.apply(getPhotos, CameraRollUtils, [{'first': 1, 'assetType': 'photos'}]);
|
||||
}
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
let r3 = value;
|
||||
r3 = r3 ?? ({});
|
||||
const edges = r3.edges;
|
||||
if (edges != null) {
|
||||
if (edges.length > 0) {
|
||||
return edges[0].node.image;
|
||||
}
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
|
||||
function onDismiss_85816() { // fn#85816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11411:1027, offset: 0x01f7ca5e, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
env3_1(env3_2[11]).clearNotification();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,256 @@
|
||||
/* Metro module 11214; source: modules/bug_reporter/native/BugReportUtils.tsx; dependencies: [5, 491, 4660, 2] */
|
||||
function _fun85708(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11400:6, offset: 0x01f79018, size: 140 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_85711 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(5) /* metro dependency 5 */;
|
||||
let value = _fun85712();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/bug_reporter/native/BugReportUtils.tsx');
|
||||
exports.getAttachments = value;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_85709(a0, a1) { // fn#85709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11400:110, offset: 0x01f790a4, size: 372 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun85710;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_85711(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_85711(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_85711(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun85710;
|
||||
}
|
||||
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 _fun85712() { // fn#85712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11400:1026, offset: 0x01f79218, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env0_2(_fun85714);
|
||||
return _fun85715;
|
||||
}
|
||||
|
||||
function* _fun85714(a0) { // fn#85714, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11400:1046, offset: 0x01f79247, size: 205 bytes, params: 2, frame: 23
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value6;
|
||||
var v4;
|
||||
var value7;
|
||||
var value8;
|
||||
var getFileInfo;
|
||||
var value9;
|
||||
var value10;
|
||||
var value11;
|
||||
var push;
|
||||
var object2;
|
||||
var name;
|
||||
var value12;
|
||||
var error;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
const items2 = [];
|
||||
value = environment.__proto__.__proto__;
|
||||
const value3 = env2_3(a0);
|
||||
const value4 = value3();
|
||||
let done = value4.done;
|
||||
if (done) {
|
||||
return items2;
|
||||
}
|
||||
let r8 = value4;
|
||||
let value5 = r8.value;
|
||||
reducibleLoop3: while (true) {
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_1;
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
property = binding2[1];
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value6 = binding(property);
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
v4 = value6.v4;
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value7 = Reflect.apply(v4, value6, []);
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
property = binding2[2];
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value8 = binding(property);
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
getFileInfo = value8.getFileInfo;
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value9 = Reflect.apply(getFileInfo, value8, [value5]);
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
yield value9;
|
||||
try {
|
||||
value10 = undefined;
|
||||
value11 = false;
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
if (value11) {
|
||||
return value10;
|
||||
}
|
||||
try {
|
||||
push = items2.push;
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
object2.file = value10;
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
object2.name = value7;
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
name = value10.name;
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
object2.filename = name;
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(push, items2, [object2]);
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
value12 = value3();
|
||||
done = value12.done;
|
||||
if (done) {
|
||||
return items2;
|
||||
}
|
||||
r8 = value12;
|
||||
value5 = r8.value;
|
||||
continue reducibleLoop3;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
/* Metro module 11227; source: modules/bug_reporter/native/BugReporterNotification.tsx; dependencies: [31, 27, 33, 4501, 697, 10973, 10994, 10992, 2] */
|
||||
function _fun85825(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11413:6, offset: 0x01f7cd0f, size: 251 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value.Image;
|
||||
const env0_4 = value.View;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
const env0_6 = Reflect.apply(createStyles, value, [{preview: {'resizeMode': 'contain', 'height': 75, 'width': 40},
|
||||
rightAccessoryContainer: {marginLeft: PX_12}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/bug_reporter/native/BugReporterNotification.tsx');
|
||||
exports.BugReporterNotification = BugReporterNotification;
|
||||
}
|
||||
|
||||
function BugReporterNotification({notification}) { // fn#85826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11413:397, offset: 0x01f7ce0a, size: 275 bytes, params: 2, frame: 20
|
||||
var object2;
|
||||
const styles = useStyles();
|
||||
const imageUri = notification.imageUri;
|
||||
const value2 = env0_2.useMemo(function() {
|
||||
return {'type': 'simple', 'text': 'Bug Catcher Clyde'};
|
||||
}, []);
|
||||
const view = <View style={styles.rightAccessoryContainer}><Image source={{uri: imageUri}} style={styles.preview} /></View>;
|
||||
const inAppNotificationRedesignExperimentModule = require(10973) /* metro dependency 10973: InAppNotificationRedesignExperiment */;
|
||||
const useInAppNotificationRedesign = inAppNotificationRedesignExperimentModule.useInAppNotificationRedesign;
|
||||
const redesignEnabled = Reflect.apply(useInAppNotificationRedesign, inAppNotificationRedesignExperimentModule,
|
||||
['BugReporterNotification']).redesignEnabled;
|
||||
const Notification = (require(10994) /* metro dependency 10994: Notification */).Notification;
|
||||
object2 = {header: value2};
|
||||
if (redesignEnabled) {
|
||||
object2.children = ((SystemMessageText) => <SystemMessageText text="Bzzz! Found a bug? Tap to submit (don't just be a fly on the wall)" />)((require(10992) /* metro dependency 10992: MessagePreviewText */).SystemMessageText);
|
||||
object2.rightAccessory = view;
|
||||
} else {
|
||||
object2.textChildren = "Bzzz! Found a bug? Tap to submit (don't just be a fly on the wall)";
|
||||
object2.rightAccessory = view;
|
||||
}
|
||||
return <Notification {...object2} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,229 @@
|
||||
/* Metro module 11224; source: modules/bug_reporter/native/components/BugReporterFeatureActionSheet.tsx; dependencies: [57, 31, 27, 33, 4501, 697, 4573, 11215, 6238, 4080, 7989, 5463, 22, 6590, 7705, 7706, 6275, 6758, 1244, 6984, 8671, 2] */
|
||||
function _fun85793(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85793, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11410:6, offset: 0x01f7be91, size: 362 bytes, params: 8, frame: 23
|
||||
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 value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const value2 = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value2.jsx;
|
||||
const env0_7 = value2.jsxs;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object2 = {};
|
||||
let PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object2.list = {paddingHorizontal: PX_12};
|
||||
PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object2.searchBar = {paddingHorizontal: PX_12};
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object2.sectionHeader = {backgroundColor: BACKGROUND_BASE_LOW, justifyContent: 'center'};
|
||||
const env0_8 = Reflect.apply(createStyles, createStylesModule, [object2]);
|
||||
const env0_9 = value.memo(_fun85794);
|
||||
const env0_10 = value.memo(_fun85795);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/bug_reporter/native/components/BugReporterFeatureActionSheet.tsx');
|
||||
exports.default = BugReporterFeatureActionSheet;
|
||||
}
|
||||
|
||||
function _fun85794({title, height}) { // fn#85794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11410:380, offset: 0x01f7bffb, size: 125 bytes, params: 2, frame: 18
|
||||
const styles = useStyles();
|
||||
const items2 = [styles.sectionHeader];
|
||||
items2[1] = {height: height};
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={items2}>
|
||||
<Text variant="text-sm/bold" color="text-muted">
|
||||
{title}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun85795({item, feature, setFeature, start, end}) { // fn#85795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11410:561, offset: 0x01f7c078, size: 196 bytes, params: 2, frame: 21
|
||||
const featureId = (require(11215) /* metro dependency 11215: BugReportUtils */).getFeatureId(item);
|
||||
const featureId2 = (require(11215) /* metro dependency 11215: BugReportUtils */).getFeatureId(feature);
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const tableRowProps = {start: start, end: end, label: item.name, onPress: onPress_85796};
|
||||
const FormRadio = (require(7989) /* metro dependency 7989: FormRadioNative */).FormRadio;
|
||||
tableRowProps.trailing = <FormRadio selected={featureId === featureId2} />;
|
||||
return <TableRow {...tableRowProps} />;
|
||||
}
|
||||
|
||||
function BugReporterFeatureActionSheet({features, feature, setFeature}) { // fn#85797, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11410:938, offset: 0x01f7c171, size: 593 bytes, params: 2, frame: 32
|
||||
var object2;
|
||||
const styles = useStyles();
|
||||
const binding = env0_4;
|
||||
const [property, property2] = env0_3(binding.useState(''), 2);
|
||||
const insets = (importDefault(5463) /* metro dependency 5463: useSafeAreaInsetsKeyboardAwareNative */)().insets;
|
||||
const {items, sections} = binding.useMemo(_fun85798, [features, property]);
|
||||
const value5 = (importDefault(7705) /* metro dependency 7705: useScaledRowHeight */)();
|
||||
const value6 = (importDefault(7706) /* metro dependency 7706: useScaledSectionHeight */)();
|
||||
const value7 = binding.useCallback(_fun85803, [items, setFeature, feature]);
|
||||
const value8 = binding.useCallback(_fun85804, [value6, items]);
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
object2 = {'scrollable': true, 'startExpanded': true};
|
||||
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['77VVd8'])} />;
|
||||
const SearchField = (require(6984) /* metro dependency 6984: SearchFieldNative */).SearchField;
|
||||
const items2 = [<View style={styles.searchBar}><SearchField size="md" onChange={property2} /></View>];
|
||||
const fastestListAndroid = importDefault(8671) /* metro dependency 8671: FastestListAndroid */;
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
items2[1] = ((Component) => <Component style={styles.list} inActionSheet sections={sections} itemSize={value5} estimatedListSize="windowSize" renderItem={value7} renderSectionHeader={value8} sectionHeaderSize={value6} insetEnd={PX_16 + insets.bottom} />)(fastestListAndroid);
|
||||
return (
|
||||
<BottomSheet {...object2}>
|
||||
{items2}
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function onPress_85796() { // fn#85796, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11410:735, offset: 0x01f7c13c, size: 53 bytes, params: 1, frame: 12
|
||||
setFeature(item);
|
||||
const value = environment.__proto__;
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
}
|
||||
|
||||
function _fun85798() { // fn#85798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11410:1097, offset: 0x01f7c3c2, size: 137 bytes, params: 1, frame: 16
|
||||
var environment;
|
||||
let value = features.filter(_fun85799);
|
||||
const Object = global.Object;
|
||||
const entries = Object.entries;
|
||||
let value2 = environment.__proto__;
|
||||
const defaultImport = importDefault(22) /* metro dependency 22 */;
|
||||
value = Reflect.apply(entries, Object, [defaultImport.groupBy(value, function(a0) {
|
||||
return a0.squad;
|
||||
})]);
|
||||
let value3 = value.map(function(a0) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
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;
|
||||
if (value2) {
|
||||
r0 = value;
|
||||
r1 = item2;
|
||||
r2 = value2;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r0 = value;
|
||||
r1 = item3;
|
||||
r2 = value3;
|
||||
} else {
|
||||
r0 = item;
|
||||
r1 = item3;
|
||||
r2 = value3;
|
||||
}
|
||||
}
|
||||
if (!r2) {
|
||||
r1.return();
|
||||
}
|
||||
return r0.length;
|
||||
});
|
||||
const object2 = {};
|
||||
object2.items = value.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 (!r3) {
|
||||
r0.return();
|
||||
}
|
||||
return {title: r2, data: r1};
|
||||
});
|
||||
object2.sections = value3;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun85803(a0, a1) { // fn#85803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11410:1572, offset: 0x01f7c5c7, size: 110 bytes, params: 3, frame: 17
|
||||
const binding = env1_10;
|
||||
const itemsBinding = items;
|
||||
return ((Component) => <Component item={itemsBinding[a0].data[a1]} feature={feature} setFeature={setFeature} start={a1 === 0} end={a1 === itemsBinding[a0].data.length - 1} />)(binding);
|
||||
}
|
||||
|
||||
function _fun85804(a0) { // fn#85804, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11410:1693, offset: 0x01f7c635, size: 54 bytes, params: 2, frame: 15
|
||||
return ((Component) => <Component title={items[a0].title} height={env0_5} />)(env1_9);
|
||||
}
|
||||
|
||||
function _fun85799(a0) { // fn#85799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11410:1118, offset: 0x01f7c44b, size: 232 bytes, params: 2, frame: 21
|
||||
var r1;
|
||||
var r0;
|
||||
var value2;
|
||||
var defaultImport;
|
||||
var isEmpty;
|
||||
var value3;
|
||||
var isEmpty2;
|
||||
var defaultImport2;
|
||||
var value4;
|
||||
var name;
|
||||
var value8;
|
||||
var squad;
|
||||
let value = a0.asana_inbox_id != null;
|
||||
if (value) {
|
||||
value = environment.__proto__.__proto__;
|
||||
value2 = undefined;
|
||||
defaultImport = importDefault(22) /* metro dependency 22 */;
|
||||
isEmpty = defaultImport.isEmpty;
|
||||
value3 = environment.__proto__;
|
||||
isEmpty2 = Reflect.apply(isEmpty, defaultImport, [env1_3]);
|
||||
if (isEmpty2) {
|
||||
r1 = isEmpty2;
|
||||
} else {
|
||||
defaultImport2 = importDefault(6590) /* metro dependency 6590 */;
|
||||
value4 = env1_3.toLowerCase();
|
||||
name = a0.name;
|
||||
r1 = defaultImport2(value4, (name == null ? value2 : name.toLowerCase()) ?? '');
|
||||
}
|
||||
if (!r1) {
|
||||
value = importDefault(6590) /* metro dependency 6590 */;
|
||||
value8 = env1_3.toLowerCase();
|
||||
squad = a0.squad;
|
||||
value = value(value8, (squad == null ? value2 : squad.toLowerCase()) ?? '');
|
||||
r1 = value;
|
||||
}
|
||||
r0 = r1;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,859 @@
|
||||
/* Metro module 11213; source: modules/bug_reporter/native/components/BugReporterModal.tsx; dependencies: [5, 57, 31, 27, 1878, 10933, 33, 4501, 697, 674, 672, 5080, 1484, 566, 1244, 5282, 4650, 3857, 8160, 11214, 561, 11215, 8096, 5277, 7987, 5475, 1423, 4673, 4572, 4573, 6239, 11143, 5278, 1305, 4578, 7981, 6231, 6238, 4080, 11224, 1962, 7988, 7681, 693, 11225, 10970, 5280, 2] */
|
||||
function _fun85665(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11399:6, offset: 0x01f7747e, size: 727 bytes, params: 8, frame: 28
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const closure = BugCreateScreen;
|
||||
let Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_5 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_6 = value.View;
|
||||
const env0_7 = value.ScrollView;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const bugReportStore = importDefault(10933) /* metro dependency 10933: BugReportStore */;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_10 = value.jsx;
|
||||
const env0_11 = value.jsxs;
|
||||
const env0_12 = value.Fragment;
|
||||
Object = global.Object;
|
||||
const env0_13 = Object.freeze({'id': '749049128012742676', 'format_type': 3,
|
||||
'name': 'Wumpus zipping by on a monowheel'});
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
object2.container = {padding: 16};
|
||||
object2.attachmentCarousel = {'justifyContent': 'center', 'minWidth': '100%'};
|
||||
object2.attachmentContainer = {'marginHorizontal': 4, 'marginBottom': 16};
|
||||
const object4 = {'position': 'absolute', 'top': 6, 'right': 10, 'height': 20, 'width': 20, 'borderRadius': null,
|
||||
'alignItems': 'center', 'justifyContent': 'center'};
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
const value2 = importDefault(674) /* metro dependency 674 */;
|
||||
const BLACK = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BLACK;
|
||||
object4.backgroundColor = value2(BLACK).alpha(0.5).css();
|
||||
object2.closeContainer = object4;
|
||||
object2.priorityIcon = {'width': 24, 'height': 24};
|
||||
object2.offButton = {marginBottom: 24};
|
||||
const BACKGROUND_SCRIM = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SCRIM;
|
||||
object2.submittingOverlay = {'alignItems': 'center', 'backgroundColor': null, 'bottom': 0, 'flex': 1,
|
||||
'justifyContent': 'center', 'position': 'absolute', 'top': 0, 'width': '100%',
|
||||
backgroundColor: BACKGROUND_SCRIM};
|
||||
object2.submittingText = {marginTop: 8};
|
||||
const env0_14 = Reflect.apply(createStyles, value, [object2]);
|
||||
let Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
let SECOND = Millis.SECOND;
|
||||
const env0_15 = 5 * SECOND;
|
||||
Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
SECOND = Millis.SECOND;
|
||||
const env0_16 = 10 * SECOND;
|
||||
Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
SECOND = Millis.SECOND;
|
||||
const env0_17 = 5 * SECOND;
|
||||
Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
const MINUTE = Millis.MINUTE;
|
||||
const env0_18 = 1 * MINUTE;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/bug_reporter/native/components/BugReporterModal.tsx');
|
||||
exports.default = BugReportModal;
|
||||
exports.BugCreateScreen = closure;
|
||||
}
|
||||
|
||||
function handleClose() { // fn#85666, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11399:1071, offset: 0x01f77755, size: 61 bytes, params: 1, frame: 13
|
||||
BugReportStore.setState({isReportOpen: false});
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
|
||||
}
|
||||
|
||||
function BugCreateScreen({screenshotUri, screenshot}) { // fn#85667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11399:1139, offset: 0x01f77792, size: 2264 bytes, params: 2, frame: 52
|
||||
var r15;
|
||||
var TableRowGroup;
|
||||
var object10;
|
||||
var TableRow;
|
||||
var object11;
|
||||
const styles = useStyles();
|
||||
const [property, property2] = env0_4(env0_5.useState(''), 2);
|
||||
const value5 = env0_4(env0_5.useState(''), 2);
|
||||
const property3 = value5[0];
|
||||
var env0_4 = property3;
|
||||
const property4 = value5[1];
|
||||
const value8 = env0_4(env0_5.useState(null), 2);
|
||||
const property5 = value8[0];
|
||||
var env0_5 = property5;
|
||||
const property6 = value8[1];
|
||||
const [property7, property8] = env0_4(env0_5.useState(''), 2);
|
||||
const [property9, env0_8] = env0_4(env0_5.useState([]), 2);
|
||||
const env0_9 = env0_5.useRef(false);
|
||||
const [property10, env0_11] = env0_4(env0_5.useState(false), 2);
|
||||
const value15 = env0_5.useCallback(_fun85668, []);
|
||||
const [property11, env0_14] = env0_4(env0_5.useState(false), 2);
|
||||
const [property12, env0_16] = env0_4(env0_5.useState(false), 2);
|
||||
const [property13, env0_18] = env0_4(env0_5.useState(null), 2);
|
||||
const [property14, env0_20] = env0_4(env0_5.useState(null), 2);
|
||||
const value24 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const value25 = env0_5.useRef(null);
|
||||
const env0_23 = env0_5.useRef(0);
|
||||
const value26 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], _fun85669);
|
||||
env0_5.useEffect(_fun85670, [value24]);
|
||||
env0_5.useEffect(_fun85671, [screenshotUri, screenshot]);
|
||||
env0_5.useEffect(_fun85673, [property3, property14, property, value24, property5, property7, property9, property10,
|
||||
property11, property12, value15]);
|
||||
env0_5.useEffect(_fun85685, [value26]);
|
||||
env0_5.useEffect(_fun85690, [property9]);
|
||||
const value27 = _fun85691();
|
||||
const jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
|
||||
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
const Stack2 = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const text = <Text variant="text-sm/semibold" color="text-subtle">{Reflect.apply(string, intl,
|
||||
[(require(1244) /* metro dependency 1244: indexNative */).t.tM969v])}</Text>;
|
||||
const Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
|
||||
const scrollView = <ScrollView horizontal ref={value25} contentContainerStyle={styles.attachmentCarousel}>{property9.map(_fun85696)}</ScrollView>;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
string = intl.string;
|
||||
const HVxmOD = (require(1244) /* metro dependency 1244: indexNative */).t.HVxmOD;
|
||||
const items3 = [<Stack2 spacing={8}>{text}<Card>{scrollView}<Button text={Reflect.apply(string, intl,
|
||||
[HVxmOD])} onPress={value27} /></Card></Stack2>];
|
||||
const TextInput = (require(7981) /* metro dependency 7981: TextInputNative */).TextInput;
|
||||
string = intl.string;
|
||||
const OZRgjw = (require(1244) /* metro dependency 1244: indexNative */).t.OZRgjw;
|
||||
items3[1] = <TextInput label={Reflect.apply(string, intl,
|
||||
[OZRgjw])} placeholder={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['6mpW05'])} onChange={property2} isClearable autoCapitalize="sentences" />;
|
||||
if (value26) {
|
||||
TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
var tableRowGroupProps = {title: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['77VVd8']),
|
||||
|
||||
hasIcons: false};
|
||||
TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
r15 = <TableRowGroup {...tableRowGroupProps}><TableRow disabled={property13 == null} onPress={onPress_85700} label={property14 != null ? property14.name : intl.string((require(1244) /* metro dependency 1244: indexNative */).t['77VVd8'])} arrow /></TableRowGroup>;
|
||||
} else {
|
||||
r15 = value26;
|
||||
}
|
||||
items3[2] = r15;
|
||||
const TableRadioGroup = (require(7988) /* metro dependency 7988: TableRadioGroupNative */).TableRadioGroup;
|
||||
items3[3] = <TableRadioGroup title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.xMXLda)} defaultValue={property5 ?? -1} onChange={property6} hasIcons>{(require(11215) /* metro dependency 11215: BugReportUtils */).getPriorities().map(_fun85701)}</TableRadioGroup>;
|
||||
const TextArea = (require(7681) /* metro dependency 7681: TextAreaNative */).TextArea;
|
||||
const textAreaProps = {label: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['1SplH2'])};
|
||||
string = intl.string;
|
||||
const CQmAZd = (require(1244) /* metro dependency 1244: indexNative */).t.CQmAZd;
|
||||
textAreaProps.placeholder = Reflect.apply(string, intl, [CQmAZd]);
|
||||
textAreaProps.onChange = property4;
|
||||
textAreaProps.autoCorrect = true;
|
||||
textAreaProps.autoCapitalize = 'sentences';
|
||||
items3[4] = <TextArea {...textAreaProps} />;
|
||||
const textInputProps = {label: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['7p5pqh'])};
|
||||
string = intl.string;
|
||||
const HewMzo = (require(1244) /* metro dependency 1244: indexNative */).t.HewMzo;
|
||||
textInputProps.placeholder = Reflect.apply(string, intl, [HewMzo]);
|
||||
textInputProps.onChange = property8;
|
||||
textInputProps.isClearable = true;
|
||||
items3[5] = <TextInput {...textInputProps} />;
|
||||
items3[6] = <View style={styles.offButton}><Button text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['636e+U'])} size="sm" variant="secondary" onPress={onPress_85702} /></View>;
|
||||
return (
|
||||
<>
|
||||
<ScrollView>
|
||||
<Stack spacing={24} style={styles.container}>
|
||||
{items3}
|
||||
</Stack>
|
||||
</ScrollView>
|
||||
{property10 ? <Submitting /> : null}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function BugReportModal({screenshotUri, screenshot}) { // fn#85704, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11399:7635, offset: 0x01f78ef3, size: 120 bytes, params: 2, frame: 16
|
||||
const value2 = env0_5.useMemo(function() {
|
||||
return _fun85706({screenshotUri: screenshotUri, screenshot: screenshot});
|
||||
}, [screenshotUri, screenshot]);
|
||||
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
|
||||
return <Navigator screens={value2} initialRouteName="BUG_REPORT_CREATE" />;
|
||||
}
|
||||
|
||||
function _fun85668(a0) { // fn#85668, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11399:1480, offset: 0x01f7806a, size: 29 bytes, params: 2, frame: 11
|
||||
env0_9.current = a0;
|
||||
env0_11(a0);
|
||||
}
|
||||
|
||||
function _fun85669() { // fn#85669, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11399:1790, offset: 0x01f78087, size: 64 bytes, params: 1, frame: 12
|
||||
var r1;
|
||||
let value = environment.__proto__;
|
||||
value = UserStore.getCurrentUser();
|
||||
const value2 = undefined;
|
||||
let r0 = value == null ? value2 : value.isStaff();
|
||||
if (!r0) {
|
||||
if (value == null) {
|
||||
r1 = value2;
|
||||
} else {
|
||||
value = value.isStaffPersonal();
|
||||
r1 = value;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun85670() { // fn#85670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11399:1909, offset: 0x01f780c7, size: 118 bytes, params: 1, frame: 18
|
||||
const binding = env0_21;
|
||||
const setOptions = binding.setOptions;
|
||||
const object2 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.mCCdwi);
|
||||
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(handleClose);
|
||||
Reflect.apply(setOptions, binding, [object2]);
|
||||
}
|
||||
|
||||
function _fun85671() { // fn#85671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11399:2052, offset: 0x01f7813d, size: 159 bytes, params: 1, frame: 18
|
||||
var environment;
|
||||
var object2;
|
||||
var value2;
|
||||
var value4;
|
||||
let screenshotUriBinding = screenshotUri;
|
||||
if (screenshotUriBinding != null) {
|
||||
object2 = {};
|
||||
copyDataProperties(object2, screenshot, undefined);
|
||||
screenshotUriBinding = screenshotUri;
|
||||
object2['uri'] = screenshotUriBinding;
|
||||
object2['originalUri'] = screenshotUriBinding;
|
||||
value2 = environment.__proto__;
|
||||
object2['platform'] = (require(4650) /* metro dependency 4650: Upload */).UploadPlatform.REACT_NATIVE;
|
||||
value4 = new (importDefault(4650) /* metro dependency 4650: Upload */)();
|
||||
env0_8(_fun85672);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun85673() { // fn#85673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11399:2207, offset: 0x01f781dc, size: 60 bytes, params: 1, frame: 12
|
||||
const handleSubmit = function() {
|
||||
return _handleSubmit_85675.apply(this, arguments);
|
||||
};
|
||||
const binding = env0_21;
|
||||
binding.setOptions({headerRight: headerRight_85684});
|
||||
}
|
||||
|
||||
function _fun85685() { // fn#85685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11399:4012, offset: 0x01f7886f, size: 40 bytes, params: 1, frame: 9
|
||||
if (env0_24) {
|
||||
(function() {
|
||||
return _fetchConfig.apply(this, arguments);
|
||||
})();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun85690() { // fn#85690, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11399:4257, offset: 0x01f78920, size: 54 bytes, params: 1, frame: 10
|
||||
const length = env0_7.length;
|
||||
let current = env0_23.current;
|
||||
if (length > current) {
|
||||
current = env0_22.current;
|
||||
if (current != null) {
|
||||
current.scrollToEnd();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun85691() { // fn#85691, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11399:4343, offset: 0x01f78956, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env1_3(_fun85693);
|
||||
return handleAttachmentSelect;
|
||||
}
|
||||
|
||||
function _fun85696(a0) { // fn#85696, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11399:5124, offset: 0x01f78aab, size: 317 bytes, params: 2, frame: 27
|
||||
const stylesBinding = styles;
|
||||
const attachmentContainer = stylesBinding.attachmentContainer;
|
||||
const value3 = ((Component) => <Component uri={a0.item.uri} isImage={a0.isImage} isVideo={a0.isVideo} height={280} width={134} />)(importDefault(11143) /* metro dependency 11143: AttachmentPreview */);
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
const object = {};
|
||||
const env0_0 = a0;
|
||||
object.onPress = onPress_85697;
|
||||
object.style = stylesBinding.closeContainer;
|
||||
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
const object2 = {source: importDefault(8160) /* metro dependency 8160 */};
|
||||
const Icon2 = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
const Sizes = Icon2.Sizes;
|
||||
const REFRESH_SMALL_16 = Sizes.REFRESH_SMALL_16;
|
||||
object2.size = REFRESH_SMALL_16;
|
||||
const WHITE = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.WHITE;
|
||||
object2.color = WHITE;
|
||||
return (
|
||||
<View style={attachmentContainer} key={a0.id}>
|
||||
{value3}
|
||||
<PressableOpacity {...object}>
|
||||
<Icon {...object2} />
|
||||
</PressableOpacity>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function BugCreateScreenOnPress() { // fn#85700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11399:5917, owner: BugCreateScreen.onPress, offset: 0x01f78c19, size: 134 bytes, params: 1, frame: 17
|
||||
let value = environment.__proto__;
|
||||
const defaultImport = importDefault(dependencyMap[38]);
|
||||
const openLazy = defaultImport.openLazy;
|
||||
value = require(dependencyMap[40]);
|
||||
value = value(dependencyMap[39], dependencyMap.paths);
|
||||
return Reflect.apply(openLazy, defaultImport, [value, 'BugReporterFeatureActionSheet',
|
||||
{features: env0_17 != null ? env0_17.features : [], feature: env0_19, setFeature: env0_20}]);
|
||||
}
|
||||
|
||||
function _fun85701({title, description, emoji, value}) { // fn#85701, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11399:6297, offset: 0x01f78c9f, size: 193 bytes, params: 2, frame: 23
|
||||
const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow;
|
||||
const FastImage = importDefault(5475) /* metro dependency 5475: FastImage */;
|
||||
const avatarUtilsModule = require(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
const getEmojiURL = avatarUtilsModule.getEmojiURL;
|
||||
return (
|
||||
<TableRadioRow
|
||||
value={value}
|
||||
label={title}
|
||||
subLabel={description}
|
||||
icon={<FastImage style={styles.priorityIcon} source={{uri: Reflect.apply(getEmojiURL, avatarUtilsModule,
|
||||
[{'id': null, 'animated': true, 'size': 48, id: emoji}])}} resizeMode="contain" />}
|
||||
key={value}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function BugCreateScreenOnPress_85702() { // fn#85702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11399:7028, owner: BugCreateScreen.onPress, offset: 0x01f78d60, size: 188 bytes, params: 1, frame: 17
|
||||
var object2;
|
||||
let value = environment.__proto__;
|
||||
(require(693) /* metro dependency 693: DeveloperOptionsActionCreators */).setDeveloperOptionSettings({bugReporterEnabled: false});
|
||||
(importDefault(11225) /* metro dependency 11225: BugReportManager */).terminate(true);
|
||||
handleClose();
|
||||
value = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
|
||||
const open = value.open;
|
||||
object2 = {key: 'BUG_REPORT_HAS_BEEN_TURNED_OFF_TEXT', icon: importDefault(8096) /* metro dependency 8096 */};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.content = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['J3/feu']);
|
||||
Reflect.apply(open, value, [object2]);
|
||||
}
|
||||
|
||||
function Submitting() { // fn#85703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11399:7270, owner: BugCreateScreen.Submitting, offset: 0x01f78e1c, size: 215 bytes, params: 1, frame: 22
|
||||
const styles = useStyles();
|
||||
const value2 = ((Component) => <Component sticker={env1_13} animated size={148} />)(importDefault(10970) /* metro dependency 10970: Sticker */);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const Uuqbcm = (require(1244) /* metro dependency 1244: indexNative */).t.Uuqbcm;
|
||||
return (
|
||||
<View style={styles.submittingOverlay}>
|
||||
{value2}
|
||||
<Text style={styles.submittingText} variant="heading-md/medium">
|
||||
{Reflect.apply(string, intl, [Uuqbcm])}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun85705() { // fn#85705, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11399:7708, offset: 0x01f78f6b, size: 41 bytes, params: 1, frame: 11
|
||||
return ((a0) => {
|
||||
var object2 = {};
|
||||
object2.title = (require(1244) /* metro dependency 1244: indexNative */).intl.string((require(1244) /* metro dependency 1244: indexNative */).t.mCCdwi);
|
||||
object2.initialParams = a0;
|
||||
object2.render = _fun85707;
|
||||
return {BUG_REPORT_CREATE: object2};
|
||||
})({screenshotUri: screenshotUri, screenshot: screenshot});
|
||||
}
|
||||
|
||||
function _handleSubmit_85675() { // fn#85675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11399:2279, offset: 0x01f78218, size: 53 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
const value = environment.__proto__.__proto__;
|
||||
return env2_3(_fun85677).apply(this, arguments);
|
||||
}
|
||||
|
||||
function headerRight_85684() { // fn#85684, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11399:3693, offset: 0x01f7873f, size: 304 bytes, params: 1, frame: 21
|
||||
var r4;
|
||||
var binding;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var string;
|
||||
var t;
|
||||
const value = environment.__proto__.__proto__;
|
||||
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
|
||||
const object2 = {};
|
||||
if (env1_13) {
|
||||
r4 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['tUu8V+']);
|
||||
} else {
|
||||
binding = env1_10;
|
||||
string = intl.string;
|
||||
t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
r4 = binding ? Reflect.apply(string, intl, [t.ZiWcJ0]) : Reflect.apply(string, intl, [t.geKm7t]);
|
||||
}
|
||||
object2.text = r4;
|
||||
object2.textStyle = {maxWidth: null};
|
||||
object2.onPress = handleSubmit;
|
||||
r4 = env1_3 == null || env1_3 === '';
|
||||
r4 = !r4 ? env1_5 == null : r4;
|
||||
r4 = !r4 ? env1_4 == null : r4;
|
||||
r4 = !r4 ? env1_4 === '' : r4;
|
||||
r4 = !r4 ? env1_10 && !env1_13 : r4;
|
||||
object2.disabled = r4;
|
||||
return <HeaderActionButton {...object2} />;
|
||||
}
|
||||
|
||||
function _fetchConfig() { // fn#85686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11399:4017, offset: 0x01f78897, size: 53 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
const value = environment.__proto__.__proto__;
|
||||
return env2_3(_fun85688).apply(this, arguments);
|
||||
}
|
||||
|
||||
function* _fun85693() { // fn#85693, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11399:4363, offset: 0x01f78985, size: 294 bytes, params: 1, frame: 23
|
||||
var environment;
|
||||
var property;
|
||||
var value6;
|
||||
var length;
|
||||
var object2;
|
||||
var uri;
|
||||
var binding2;
|
||||
var binding3;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
var binding = env3_1;
|
||||
var value3 = binding(env3_2[27]);
|
||||
yield value3.launchImageLibraryAsync({'mediaType': 'any', 'includeBase64': false, 'selectionLimit': 1});
|
||||
var value4 = undefined;
|
||||
if (false) {
|
||||
return value4;
|
||||
}
|
||||
if (value4 != null) {
|
||||
property = value4.assets[0];
|
||||
value6 = environment.__proto__.__proto__;
|
||||
binding = env2_23;
|
||||
length = ScrollView.length;
|
||||
binding.current = length;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, property, undefined);
|
||||
uri = property.uri;
|
||||
object2['uri'] = uri;
|
||||
uri = property.uri;
|
||||
object2['originalUri'] = uri;
|
||||
binding2 = env3_0;
|
||||
binding3 = env3_2;
|
||||
object2['platform'] = binding2(binding3[16]).UploadPlatform.REACT_NATIVE;
|
||||
object2['filename'] = property.fileName;
|
||||
value = env3_1(binding3[16]);
|
||||
value = new value();
|
||||
length = ScrollView.length;
|
||||
binding.current = length;
|
||||
UserStore(_fun85694);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function onPress_85697() { // fn#85697, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11399:5306, offset: 0x01f78be8, size: 25 bytes, params: 1, frame: 11
|
||||
env1_8(function(a0) {
|
||||
return a0.filter(_fun85699);
|
||||
});
|
||||
}
|
||||
|
||||
function getScreens_85706(a0) { // fn#85706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11399:7712, offset: 0x01f78f94, size: 99 bytes, params: 2, frame: 16
|
||||
const object = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.mCCdwi);
|
||||
object.initialParams = a0;
|
||||
object.render = render_85707;
|
||||
return {BUG_REPORT_CREATE: object};
|
||||
}
|
||||
|
||||
function* _fun85677() { // fn#85677, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11399:2328, offset: 0x01f78258, size: 658 bytes, params: 1, frame: 24
|
||||
var environment;
|
||||
var binding;
|
||||
var object3;
|
||||
var handleCloseBinding;
|
||||
var object4;
|
||||
var closure;
|
||||
var value8;
|
||||
var value9;
|
||||
var value10;
|
||||
var clearTimeout;
|
||||
var error;
|
||||
var value11;
|
||||
var binding2;
|
||||
var value12;
|
||||
var open;
|
||||
var intl;
|
||||
var value13;
|
||||
var binding3;
|
||||
var value14;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
if (BugReportStore.current) {
|
||||
if (env3_13) {
|
||||
value13 = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
binding = env4_1;
|
||||
binding3 = env4_2;
|
||||
value14 = binding(binding3[17]);
|
||||
open = value14.open;
|
||||
object3 = {key: 'BUG_REPORT_SUBMITTING_BUG', icon: binding(binding3[18])};
|
||||
binding = env4_0;
|
||||
intl = binding(binding3[14]).intl;
|
||||
object3.content = intl.string(binding(binding3[14]).t.Uuqbcm);
|
||||
object3.toastDurationMs = env4_16;
|
||||
Reflect.apply(open, value14, [object3]);
|
||||
env3_16(true);
|
||||
env4_19();
|
||||
}
|
||||
} else {
|
||||
env3_12(true);
|
||||
if (env3_5 == null) {
|
||||
value11 = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
binding = env4_1;
|
||||
binding2 = env4_2;
|
||||
value12 = binding(binding2[17]);
|
||||
open = value12.open;
|
||||
object3 = {key: 'BUG_REPORT_FAILED_TO_SUBMIT', icon: binding(binding2[18])};
|
||||
binding = env4_0;
|
||||
intl = binding(binding2[14]).intl;
|
||||
object3.content = intl.string(binding(binding2[14]).t['4t1o0u']);
|
||||
Reflect.apply(open, value12, [object3]);
|
||||
env3_12(false);
|
||||
return undefined;
|
||||
}
|
||||
binding = env4_0;
|
||||
var value4 = binding(env4_2[19]);
|
||||
var getAttachments = value4.getAttachments;
|
||||
yield Reflect.apply(getAttachments, value4, [ScrollView]);
|
||||
var value5 = undefined;
|
||||
if (false) {
|
||||
return value5;
|
||||
}
|
||||
useStyles(false);
|
||||
var setTimeout = global.setTimeout;
|
||||
binding = env4_15;
|
||||
var value7 = setTimeout(function() {
|
||||
useStyles(true);
|
||||
}, binding);
|
||||
try {
|
||||
object3 = {};
|
||||
} catch (error) {
|
||||
env3_12(false);
|
||||
useStyles(false);
|
||||
clearTimeout = global.clearTimeout;
|
||||
clearTimeout(value7);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding = env3_3;
|
||||
} catch (error) {
|
||||
env3_12(false);
|
||||
useStyles(false);
|
||||
clearTimeout = global.clearTimeout;
|
||||
clearTimeout(value7);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object3.name = binding;
|
||||
} catch (error) {
|
||||
env3_12(false);
|
||||
useStyles(false);
|
||||
clearTimeout = global.clearTimeout;
|
||||
clearTimeout(value7);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding = env3_5;
|
||||
} catch (error) {
|
||||
env3_12(false);
|
||||
useStyles(false);
|
||||
clearTimeout = global.clearTimeout;
|
||||
clearTimeout(value7);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object3.priority = binding;
|
||||
} catch (error) {
|
||||
env3_12(false);
|
||||
useStyles(false);
|
||||
clearTimeout = global.clearTimeout;
|
||||
clearTimeout(value7);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding = env3_4;
|
||||
} catch (error) {
|
||||
env3_12(false);
|
||||
useStyles(false);
|
||||
clearTimeout = global.clearTimeout;
|
||||
clearTimeout(value7);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object3.description = binding;
|
||||
} catch (error) {
|
||||
env3_12(false);
|
||||
useStyles(false);
|
||||
clearTimeout = global.clearTimeout;
|
||||
clearTimeout(value7);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
handleCloseBinding = handleClose;
|
||||
} catch (error) {
|
||||
env3_12(false);
|
||||
useStyles(false);
|
||||
clearTimeout = global.clearTimeout;
|
||||
clearTimeout(value7);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object3.feature = handleCloseBinding;
|
||||
} catch (error) {
|
||||
env3_12(false);
|
||||
useStyles(false);
|
||||
clearTimeout = global.clearTimeout;
|
||||
clearTimeout(value7);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
env3_12(false);
|
||||
useStyles(false);
|
||||
clearTimeout = global.clearTimeout;
|
||||
clearTimeout(value7);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object3.url = View;
|
||||
} catch (error) {
|
||||
env3_12(false);
|
||||
useStyles(false);
|
||||
clearTimeout = global.clearTimeout;
|
||||
clearTimeout(value7);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object4 = {};
|
||||
} catch (error) {
|
||||
env3_12(false);
|
||||
useStyles(false);
|
||||
clearTimeout = global.clearTimeout;
|
||||
clearTimeout(value7);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object4.overridePlatformInformation = false;
|
||||
} catch (error) {
|
||||
env3_12(false);
|
||||
useStyles(false);
|
||||
clearTimeout = global.clearTimeout;
|
||||
clearTimeout(value7);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
closure = function(a0, a1, a2) {
|
||||
return _submitReportWithNotifications.apply(this, arguments);
|
||||
};
|
||||
} catch (error) {
|
||||
env3_12(false);
|
||||
useStyles(false);
|
||||
clearTimeout = global.clearTimeout;
|
||||
clearTimeout(value7);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value8 = closure(object3, object4, value5);
|
||||
} catch (error) {
|
||||
env3_12(false);
|
||||
useStyles(false);
|
||||
clearTimeout = global.clearTimeout;
|
||||
clearTimeout(value7);
|
||||
throw error;
|
||||
}
|
||||
yield value8;
|
||||
try {
|
||||
value9 = undefined;
|
||||
value10 = false;
|
||||
} catch (error) {
|
||||
env3_12(false);
|
||||
useStyles(false);
|
||||
clearTimeout = global.clearTimeout;
|
||||
clearTimeout(value7);
|
||||
throw error;
|
||||
}
|
||||
if (value10) {
|
||||
env3_12(false);
|
||||
useStyles(false);
|
||||
global.clearTimeout(value7);
|
||||
return value9;
|
||||
}
|
||||
if (value9) {
|
||||
try {
|
||||
binding = env3_16;
|
||||
} catch (error) {
|
||||
env3_12(false);
|
||||
useStyles(false);
|
||||
clearTimeout = global.clearTimeout;
|
||||
clearTimeout(value7);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding(true);
|
||||
} catch (error) {
|
||||
env3_12(false);
|
||||
useStyles(false);
|
||||
clearTimeout = global.clearTimeout;
|
||||
clearTimeout(value7);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding = env4_19;
|
||||
} catch (error) {
|
||||
env3_12(false);
|
||||
useStyles(false);
|
||||
clearTimeout = global.clearTimeout;
|
||||
clearTimeout(value7);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding();
|
||||
} catch (error) {
|
||||
env3_12(false);
|
||||
useStyles(false);
|
||||
clearTimeout = global.clearTimeout;
|
||||
clearTimeout(value7);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
env3_12(false);
|
||||
useStyles(false);
|
||||
clearTimeout = global.clearTimeout;
|
||||
clearTimeout(value7);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun85688() { // fn#85688, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11399:4064, offset: 0x01f788d7, size: 73 bytes, params: 1, frame: 12
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
value = env4_0(env4_2[21]);
|
||||
yield value.fetchBugReportConfig();
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
env3_18(value);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun85698(a0) { // fn#85698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11399:5314, offset: 0x01f78c01, size: 24 bytes, params: 2, frame: 11
|
||||
return a0.filter(_fun85699);
|
||||
}
|
||||
|
||||
function getScreens_85706Render(a0) { // fn#85707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11399:7830, owner: getScreens_85706.render, offset: 0x01f78ff7, size: 33 bytes, params: 2, frame: 13
|
||||
return <BugCreateScreen {...a0} />;
|
||||
}
|
||||
|
||||
function _submitReportWithNotifications() { // fn#85678, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11399:3019, offset: 0x01f784ea, size: 53 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
const value = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
|
||||
return env5_3(_fun85680).apply(this, arguments);
|
||||
}
|
||||
|
||||
function* _fun85680(a0, a1, a2) { // fn#85680, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11399:3102, offset: 0x01f7852a, size: 490 bytes, params: 4, frame: 31
|
||||
var environment;
|
||||
var r4;
|
||||
var r2;
|
||||
var value10;
|
||||
var submitReport;
|
||||
var value11;
|
||||
var value12;
|
||||
var ok;
|
||||
var value13;
|
||||
var Promise;
|
||||
var value14;
|
||||
var closure;
|
||||
var promise;
|
||||
var value15;
|
||||
var value16;
|
||||
var value17;
|
||||
var value18;
|
||||
var binding3;
|
||||
var value19;
|
||||
var open;
|
||||
var object2;
|
||||
var intl;
|
||||
var binding4;
|
||||
var value20;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
|
||||
let binding = env7_1;
|
||||
const value3 = binding(env7_2[20]);
|
||||
binding = env7_17;
|
||||
const binding2 = env7_18;
|
||||
let prototype = value3.prototype;
|
||||
const value4 = Object.create(prototype, {constructor: {value: value3}});
|
||||
const value5 = true;
|
||||
const value6 = new value3(binding, binding2, value5);
|
||||
const value7 = value6 instanceof Object ? value6 : value4;
|
||||
let r13 = 0;
|
||||
reducibleLoop2: while (true) {
|
||||
binding = env7_0;
|
||||
value10 = binding(env7_2[21]);
|
||||
submitReport = value10.submitReport;
|
||||
yield Reflect.apply(submitReport, value10, [a0, a1, a2]);
|
||||
value11 = undefined;
|
||||
value12 = false;
|
||||
if (value12) {
|
||||
return value11;
|
||||
}
|
||||
if (value11 != null) {
|
||||
ok = value11.ok;
|
||||
reducibleJoin6: while (true) {
|
||||
if (ok) {
|
||||
r4 = value5;
|
||||
break reducibleLoop2;
|
||||
}
|
||||
break reducibleJoin6;
|
||||
}
|
||||
}
|
||||
value13 = false;
|
||||
if (env6_15) {
|
||||
Promise = global.Promise;
|
||||
prototype = Promise.prototype;
|
||||
value14 = Object.create(prototype, {constructor: {value: Promise}});
|
||||
closure = _fun85681;
|
||||
promise = new Promise();
|
||||
value15 = promise instanceof Object ? promise : value14;
|
||||
yield value15;
|
||||
value16 = undefined;
|
||||
value17 = false;
|
||||
if (value17) {
|
||||
return value16;
|
||||
}
|
||||
value18 = typeof r13 === 'bigint' ? r13 + 1n : +r13 + 1;
|
||||
if (value18 < 20) {
|
||||
r13 = value18;
|
||||
continue reducibleLoop2;
|
||||
}
|
||||
r4 = value13;
|
||||
break reducibleLoop2;
|
||||
}
|
||||
r4 = value13;
|
||||
break reducibleLoop2;
|
||||
}
|
||||
if (r4) {
|
||||
value7.succeed();
|
||||
binding = env7_1;
|
||||
binding4 = env7_2;
|
||||
value20 = binding(binding4[17]);
|
||||
open = value20.open;
|
||||
object2 = {key: 'BUG_REPORT_BUG_SUBMITTED', icon: binding(binding4[22])};
|
||||
binding = env7_0;
|
||||
intl = binding(binding4[14]).intl;
|
||||
object2.content = intl.string(binding(binding4[14]).t.jB8yOL);
|
||||
object2.toastDurationMs = env7_16;
|
||||
Reflect.apply(open, value20, [object2]);
|
||||
r2 = value5;
|
||||
} else {
|
||||
binding = env7_1;
|
||||
binding3 = env7_2;
|
||||
value19 = binding(binding3[17]);
|
||||
open = value19.open;
|
||||
object2 = {key: 'BUG_REPORT_FAILED_TO_SUBMIT', icon: binding(binding3[18])};
|
||||
binding = env7_0;
|
||||
intl = binding(binding3[14]).intl;
|
||||
object2.content = intl.string(binding(binding3[14]).t['4t1o0u']);
|
||||
Reflect.apply(open, value19, [object2]);
|
||||
r2 = false;
|
||||
}
|
||||
return r2;
|
||||
}
|
||||
|
||||
function _fun85681(a0) { // fn#85681, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11399:3278, offset: 0x01f78714, size: 25 bytes, params: 2, frame: 11
|
||||
env0_0.fail(a0);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user