Files
discord-decomp/sources/components_native/warnings/VADPermission.tsx
T
2026-07-28 01:06:53 +03:00

104 lines
5.5 KiB
TypeScript

/* Metro module 15274; source: components_native/warnings/VADPermission.tsx; dependencies: [6, 7, 15, 17, 18, 31, 33, 15271, 4596, 1244, 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 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 _fun116779(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116779, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15471:6, offset: 0x0249662e, size: 240 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 = _fun116783(Component);
(FileImportTrackerModule).fileFinishedImporting('components_native/warnings/VADPermission.tsx');
exports.default = value;
function _isNativeReflectConstruct_116780() { // fn#116780, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15471:172, offset: 0x0249671e, 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_116780_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun116783(a0) { // fn#116783, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15471:371, offset: 0x02496780, size: 72 bytes, params: 2, frame: 15
const VADPermission2 = VADPermission;
Inherits(VADPermission2, a0);
return CreateClass(VADPermission2, [{key: 'render', value: value_116786}]);
function VADPermission(a0) { // fn#116784, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15471:383, offset: 0x024967c8, size: 141 bytes, params: 2, frame: 19
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_3;
binding(this, VADPermission);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_6(VADPermission);
binding = env1_5;
if (_isNativeReflectConstruct_116780()) {
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_116785;
return value;
function VADPermissionClose() { // fn#116785, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15471:616, owner: VADPermission.close, offset: 0x02496855, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__;
(PermissionActionCreators).clearVADWarning();
}
}
function value_116786() { // fn#116786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15471:713, offset: 0x0249687a, size: 160 bytes, params: 1, frame: 19
const object = {};
const intl = (IndexNativeModule).intl;
let string = intl.string;
const NYklhr = (IndexNativeModule).t.NYklhr;
object.title = Reflect.apply(string, intl, [NYklhr]);
string = intl.string;
const EJ26Oh = (IndexNativeModule).t.EJ26Oh;
object.body = Reflect.apply(string, intl, [EJ26Oh]);
object.onConfirm = this.close;
return <Alert {...object} />;
}
}
}
global.__d(_fun116779, 15274, [6, 7, 15, 17, 18, 31, 33, 15271, 4596, 1244,
2]) /* metro module 15274, dependencies: [6, 7, 15, 17, 18, 31, 33, 15271, 4596, 1244, 2] */;