Files
discord-decomp/sources/by-id/module-00329.jsx
T
2026-07-28 01:06:53 +03:00

147 lines
7.3 KiB
React

/* Metro module 329; source: unknown; dependencies: [29, 6, 7, 15, 17, 18, 31, 33, 147, 112, 319, 253] */
import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from './module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from './module-00017.js'; /* Metro dependency 17 */
import Inherits from './module-00018-Inherits.js'; /* Metro dependency 18 */
import ObjectWithoutProperties from './module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
import Module00112 from './module-00112.jsx'; /* Metro dependency 112 */
import Module00147 from './module-00147.js'; /* Metro dependency 147 */
import Module00253 from './module-00253.js'; /* Metro dependency 253 */
import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from './module-00033-JsxRuntime.js'; /* Metro dependency 33 */
function _fun4906(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#4906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:370:6, offset: 0x00cd065b, size: 243 bytes, params: 8, frame: 18
const env0_2 = ['children', 'style', 'imageStyle', 'imageRef', 'importantForAccessibility'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const Component = ReactModule.Component;
exports.default = _fun4910(Component);
function _isNativeReflectConstruct_4907() { // fn#4907, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:370:274, offset: 0x00cd074e, size: 94 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_4907_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun4910(a0) { // fn#4910, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:370:499, offset: 0x00cd07ac, size: 91 bytes, params: 2, frame: 16
const ImageBackground2 = ImageBackground;
Inherits(ImageBackground2, a0);
return CreateClass(ImageBackground2, [{key: 'setNativeProps', value: function(a0) {
var _viewRef = this._viewRef;
if (_viewRef) {
_viewRef.setNativeProps(a0);
}
}}, {key: 'render', value: value_4914}]);
function ImageBackground() { // fn#4911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:370:511, offset: 0x00cd0807, size: 212 bytes, params: 1, frame: 21
var environment;
var r2;
var r6;
var r0;
var value7;
var Reflect;
var construct;
let value = environment.__proto__;
let binding = env1_4;
binding(this, ImageBackground);
const length = arguments.length;
const Array = global.Array;
const array = new Array(length);
const value6 = 0;
if (value6 < length) {
r2 = value6;
reducibleLoop1: while (true) {
array[r2] = arguments[r2];
value7 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
if (value7 < length) {
r2 = value7;
continue reducibleLoop1;
}
break reducibleLoop1;
}
}
const value8 = [].concat(array);
const value9 = env1_7(ImageBackground);
binding = env1_6;
if (_isNativeReflectConstruct_4907()) {
Reflect = global.Reflect;
construct = Reflect.construct;
reducibleJoin6: while (true) {
if (value8) {
r6 = value8;
break reducibleJoin6;
}
r6 = [];
break reducibleJoin6;
}
r0 = Reflect.apply(construct, Reflect, [value9, r6, env1_7(this).constructor]);
} else {
r0 = value9.apply(this, value8);
}
value = binding(this, r0);
value._viewRef = null;
value._captureRef = _captureRef_4912;
return value;
function ImageBackground_captureRef(a0) { // fn#4912, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:370:845, owner: ImageBackground._captureRef, offset: 0x00cd08db, size: 20 bytes, params: 2, frame: 2
env0_0._viewRef = a0;
}
}
function value_4914() { // fn#4914, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:370:1040, offset: 0x00cd090d, size: 281 bytes, params: 1, frame: 29
const props = this.props;
const children = props.children;
const style = props.style;
const imageStyle = props.imageStyle;
const imageRef = props.imageRef;
const importantForAccessibility = props.importantForAccessibility;
let value = environment.__proto__;
const binding = env1_3;
const value2 = undefined;
const value3 = binding(props, env1_2);
const value4 = (Module00147)(style);
const defaultImport = Module00112;
const _captureRef = this._captureRef;
value = importDefault(319) /* metro dependency 319 */;
const Object = global.Object;
const assign = Object.assign;
const object2 = {importantForAccessibility: importantForAccessibility};
const items2 = [(Module00253).absoluteFill];
items2[1] = {width: value4 == null ? value2 : value4.width, height: value4 == null ? value2 : value4.height};
items2[2] = imageStyle;
object2.style = items2;
object2.ref = imageRef;
value = ((Component) => <Component {...Reflect.apply(assign, Object, [{}, value3, object2])} />)(value);
return ((Component) => <Component accessibilityIgnoresInvertColors importantForAccessibility={importantForAccessibility} style={style} ref={_captureRef}>{value}{children}</Component>)(defaultImport);
}
}
}
global.__d(_fun4906, 329, [29, 6, 7, 15, 17, 18, 31, 33, 147, 112, 319,
253]) /* metro module 329, dependencies: [29, 6, 7, 15, 17, 18, 31, 33, 147, 112, 319, 253] */;