67 lines
3.0 KiB
React
67 lines
3.0 KiB
React
/* Metro module 28; source: unknown; dependencies: [29, 31, 33, 35, 112, 253] */
|
|
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});
|
|
const env0_3 = importDefault(29) /* metro dependency 29 */;
|
|
importAll(31) /* metro dependency 31 */;
|
|
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
|
const env0_5 = (require(35) /* metro dependency 35 */).default;
|
|
const closure = ActivityIndicator;
|
|
closure.displayName = 'ActivityIndicator';
|
|
const env0_6 = (importDefault(253) /* metro dependency 253 */).create({container: {'alignItems': 'center',
|
|
'justifyContent': 'center'}, sizeSmall: {'width': 20, 'height': 20}, sizeLarge: {'width': 36, 'height': 36}});
|
|
exports.default = closure;
|
|
}
|
|
|
|
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 = env0_3;
|
|
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 = importDefault(112) /* metro dependency 112 */;
|
|
const defaultImport2 = importDefault(253) /* metro dependency 253 */;
|
|
const compose = defaultImport2.compose;
|
|
const container = env0_6.container;
|
|
binding = env0_5;
|
|
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);
|
|
}
|
|
|