121 lines
6.2 KiB
TypeScript
121 lines
6.2 KiB
TypeScript
/* Metro module 15270; source: components_native/warnings/Suppressed.tsx; dependencies: [6, 7, 15, 17, 18, 31, 12598, 33, 15271, 1244, 15272, 15273, 4596, 2] */
|
|
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
|
|
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
|
|
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
|
|
import Alert from '../common/Alert.tsx'; /* Metro dependency 4596 */
|
|
import PermissionSpeakStore from '../../stores/PermissionSpeakStore.tsx'; /* Metro dependency 12598 */
|
|
import PermissionActionCreators from '../../actions/PermissionActionCreators.tsx'; /* Metro dependency 15271 */
|
|
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 IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
|
|
|
|
function _fun116762(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116762, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15467:6, offset: 0x02496047, size: 256 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = ReactModule;
|
|
const Component = value.Component;
|
|
value = _fun116766(Component);
|
|
(FileImportTrackerModule).fileFinishedImporting('components_native/warnings/Suppressed.tsx');
|
|
exports.default = value;
|
|
function _isNativeReflectConstruct_116763() { // fn#116763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15467:182, offset: 0x02496147, 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_116763_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun116766(a0) { // fn#116766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15467:381, offset: 0x024961a9, size: 72 bytes, params: 2, frame: 15
|
|
const Suppressed2 = Suppressed;
|
|
Inherits(Suppressed2, a0);
|
|
return CreateClass(Suppressed2, [{key: 'render', value: value_116769}]);
|
|
function Suppressed(a0) { // fn#116767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15467:393, offset: 0x024961f1, size: 141 bytes, params: 2, frame: 19
|
|
var r0;
|
|
var Reflect;
|
|
let value = copyRestArgs(0, undefined);
|
|
let binding = env1_3;
|
|
binding(this, Suppressed);
|
|
const items2 = [];
|
|
arraySpread(items2, value, 0, items2);
|
|
value = env1_6(Suppressed);
|
|
binding = env1_5;
|
|
if (_isNativeReflectConstruct_116763()) {
|
|
Reflect = global.Reflect;
|
|
value = Reflect.construct(value, items2, env1_6(this).constructor);
|
|
r0 = value;
|
|
} else {
|
|
value = value.apply(this, items2);
|
|
r0 = value;
|
|
}
|
|
value = binding(this, r0);
|
|
value.close = close_116768;
|
|
return value;
|
|
function SuppressedClose() { // fn#116768, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15467:617, owner: Suppressed.close, offset: 0x0249627e, size: 37 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__.__proto__;
|
|
(PermissionActionCreators).clearSuppressWarning();
|
|
}
|
|
|
|
}
|
|
|
|
function value_116769() { // fn#116769, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15467:713, offset: 0x024962a3, size: 275 bytes, params: 1, frame: 21
|
|
var r4;
|
|
var r5;
|
|
var r6;
|
|
var value2;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
const value = environment.__proto__;
|
|
const isAFKChannel2 = PermissionSpeakStore.isAFKChannel();
|
|
const intl = (IndexNativeModule).intl;
|
|
const string = intl.string;
|
|
const t = (IndexNativeModule).t;
|
|
if (isAFKChannel2) {
|
|
value4 = Reflect.apply(string, intl, [t.KuYcnU]);
|
|
value5 = intl.string(t['RaFZ3+']);
|
|
r4 = importDefault(15272) /* metro dependency 15272 */;
|
|
r5 = value5;
|
|
r6 = value4;
|
|
} else {
|
|
value2 = Reflect.apply(string, intl, [t.FJSZVM]);
|
|
value3 = intl.string(t.etJjgW);
|
|
r4 = importDefault(15273) /* metro dependency 15273 */;
|
|
r5 = value3;
|
|
r6 = value2;
|
|
}
|
|
return ((Component) => <Component title={r6} body={r5} iconSource={r4} onConfirm={this.close} />)(Alert);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun116762, 15270, [6, 7, 15, 17, 18, 31, 12598, 33, 15271, 1244, 15272, 15273, 4596,
|
|
2]) /* metro module 15270, dependencies: [6, 7, 15, 17, 18, 31, 12598, 33, 15271, 1244, 15272, 15273, 4596, 2] */;
|