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

71 lines
3.6 KiB
React

/* Metro module 28; source: unknown; dependencies: [29, 31, 33, 35, 112, 253] */
import ObjectWithoutProperties from './module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
import Module00112 from './module-00112.jsx'; /* Metro dependency 112 */
import defaultImport2 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 */
import * as Module00035Module from './module-00035.jsx'; /* Metro dependency 35 */
function _fun1192(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#1192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:33:6, offset: 0x00c55148, size: 237 bytes, params: 8, frame: 19
const env0_2 = ['ref', 'animating', 'color', 'hidesWhenStopped', 'onLayout', 'size', 'style'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
ReactModule;
const ActivityIndicator2 = ActivityIndicator;
ActivityIndicator2.displayName = 'ActivityIndicator';
const env0_6 = (defaultImport2).create({container: {'alignItems': 'center',
'justifyContent': 'center'}, sizeSmall: {'width': 20, 'height': 20}, sizeLarge: {'width': 36, 'height': 36}});
exports.default = ActivityIndicator2;
function ActivityIndicator(a0) { // fn#1193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:33:229, offset: 0x00c55235, size: 327 bytes, params: 2, frame: 25
var r9;
var r11;
var value8;
var sizeLarge;
var sizeSmall;
const ref = a0.ref;
const animating = a0.animating;
const value = undefined;
const r14 = value === animating || animating;
const color = a0.color;
const r13 = value === color ? null : color;
const hidesWhenStopped = a0.hidesWhenStopped;
const r0 = value === hidesWhenStopped || hidesWhenStopped;
const onLayout = a0.onLayout;
const size = a0.size;
const value5 = 'small';
const r4 = value === size ? value5 : size;
const style = a0.style;
let binding = ObjectWithoutProperties;
const value7 = binding(a0, env0_2);
if (value5 === r4) {
sizeSmall = env0_6.sizeSmall;
r9 = value5;
r11 = sizeSmall;
} else {
value8 = 'large';
if (value8 === r4) {
sizeLarge = env0_6.sizeLarge;
r9 = value8;
r11 = sizeLarge;
} else {
r9 = value;
r11 = {height: r4, width: r4};
}
}
let Object = global.Object;
const value9 = Object.assign({animating: r14, color: r13, hidesWhenStopped: r0}, value7, {ref: ref, style: r11,
size: r9});
const defaultImport = Module00112;
const compose = defaultImport2.compose;
const container = env0_6.container;
binding = Module00035Module.default;
Object = global.Object;
return ((Component) => <Component onLayout={onLayout} style={Reflect.apply(compose, defaultImport2, [container,
style])}>{((Component) => <Component {...Object.assign({}, value9, {'styleAttr': 'Normal',
'indeterminate': true})} />)(binding)}</Component>)(defaultImport);
}
}
global.__d(_fun1192, 28, [29, 31, 33, 35, 112, 253]) /* metro module 28, dependencies: [29, 31, 33, 35, 112, 253] */;