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

85 lines
4.3 KiB
TypeScript

/* Metro module 13708; source: components_native/common/UntouchableAlert.tsx; dependencies: [6, 7, 15, 17, 18, 31, 27, 33, 4501, 5461, 3868, 2] */
function _fun104757(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13905:6, offset: 0x0229fda6, size: 328 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(6) /* metro dependency 6 */;
const env0_3 = importDefault(7) /* metro dependency 7 */;
const env0_4 = importDefault(15) /* metro dependency 15 */;
const env0_5 = importDefault(17) /* metro dependency 17 */;
const env0_6 = importDefault(18) /* metro dependency 18 */;
let value = importAll(31) /* metro dependency 31 */;
const env0_7 = (require(27) /* metro dependency 27 */).View;
const env0_8 = (require(33) /* metro dependency 33 */).jsx;
const env0_9 = (require(4501) /* metro dependency 4501: createStyles */).createLegacyClassComponentStyles({container: {'flex': 1,
'alignItems': 'center', 'justifyContent': 'center'}});
const PureComponent = value.PureComponent;
value = _fun104761(PureComponent);
const ThemeContext = (require(3868) /* metro dependency 3868: native */).ThemeContext;
value.contextType = ThemeContext;
(require(2) /* metro dependency 2 */).fileFinishedImporting('components_native/common/UntouchableAlert.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_104758() { // fn#104758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13905:187, offset: 0x0229feee, 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_104758_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun104761(a0) { // fn#104761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13905:495, offset: 0x0229ff50, size: 147 bytes, params: 2, frame: 16
const closure = UntouchableAlert;
env0_6(closure, a0);
return env0_3(closure, [{key: 'componentDidMount', value: function() {
if (!this.props.loading) {
this.closeAlert();
}
}}, {key: 'componentDidUpdate', value: function(a0) {
var loading = this.props.loading;
if (!(a0.loading === loading || loading)) {
this.closeAlert();
}
}}, {key: 'closeAlert', value: function() {
var env0_0 = this;
global.setImmediate(_fun104766);
}}, {key: 'render', value: value_104767}]);
}
function value_104765() { // fn#104765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13905:994, offset: 0x022a0034, size: 33 bytes, params: 1, frame: 11
global.setImmediate(_fun104766);
}
function value_104767() { // fn#104767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13905:1068, offset: 0x022a006d, size: 103 bytes, params: 1, frame: 17
const value = environment.__proto__;
return this.props.loading ? <View style={env1_9(this.context).container}>{((ActivityIndicator) => <ActivityIndicator />)((require(5461) /* metro dependency 5461: ActivityIndicatorNative */).ActivityIndicator)}</View> : null;
}
function _fun104766() { // fn#104766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13905:1019, offset: 0x022a0055, size: 24 bytes, params: 1, frame: 9
return env0_0.props.onClose();
}