Files
discord-decomp/sources/components_native/warnings/VADPermission.tsx
T
2026-07-27 16:20:00 +03:00

97 lines
4.4 KiB
TypeScript

/* Metro module 15274; source: components_native/warnings/VADPermission.tsx; dependencies: [6, 7, 15, 17, 18, 31, 33, 15271, 4596, 1244, 2] */
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});
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 */;
let value = importAll(31) /* metro dependency 31 */;
const env0_8 = (require(33) /* metro dependency 33 */).jsx;
const Component = value.Component;
value = _fun116783(Component);
(require(2) /* metro dependency 2 */).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 closure = VADPermission;
env0_7(closure, a0);
return env0_4(closure, [{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 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 Alert = importDefault(4596) /* metro dependency 4596: Alert */;
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const NYklhr = (require(1244) /* metro dependency 1244: indexNative */).t.NYklhr;
object2.title = Reflect.apply(string, intl, [NYklhr]);
string = intl.string;
const EJ26Oh = (require(1244) /* metro dependency 1244: indexNative */).t.EJ26Oh;
object2.body = Reflect.apply(string, intl, [EJ26Oh]);
object2.onConfirm = this.close;
return <Alert {...object2} />;
}
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__;
(importDefault(15271) /* metro dependency 15271: PermissionActionCreators */).clearVADWarning();
}