274 lines
9.5 KiB
React
274 lines
9.5 KiB
React
/* Metro module 5392; source: unknown; dependencies: [57, 65, 29, 31, 27, 33, 5355, 5325, 5356] */
|
|
function _fun47592(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#47592, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5570:6, offset: 0x011c5199, size: 427 bytes, params: 8, frame: 25
|
|
const env0_0 = require;
|
|
const env0_2 = ['refreshControl', 'waitFor'];
|
|
const env0_3 = ['waitFor', 'refreshControl'];
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
|
const env0_5 = importDefault(65) /* metro dependency 65 */;
|
|
const env0_6 = importDefault(29) /* metro dependency 29 */;
|
|
let value = importAll(31) /* metro dependency 31 */;
|
|
const value2 = require(27) /* metro dependency 27 */;
|
|
const ScrollView = value2.ScrollView;
|
|
const Switch = value2.Switch;
|
|
const TextInput = value2.TextInput;
|
|
const DrawerLayoutAndroid = value2.DrawerLayoutAndroid;
|
|
const env0_8 = value2.FlatList;
|
|
const RefreshControl = value2.RefreshControl;
|
|
const env0_9 = (require(33) /* metro dependency 33 */).jsx;
|
|
const value4 = (importDefault(5355) /* metro dependency 5355 */)(RefreshControl, {'disallowInterruption': true,
|
|
'shouldCancelWhenOutside': false});
|
|
const env0_10 = (importDefault(5355) /* metro dependency 5355 */)(ScrollView, {'disallowInterruption': true,
|
|
'shouldCancelWhenOutside': false});
|
|
const value6 = value.forwardRef(_fun47593);
|
|
const value8 = (importDefault(5355) /* metro dependency 5355 */)(Switch, {'shouldCancelWhenOutside': false,
|
|
'shouldActivateOnStart': true, 'disallowInterruption': true});
|
|
const value9 = (importDefault(5355) /* metro dependency 5355 */)(TextInput);
|
|
const value11 = (importDefault(5355) /* metro dependency 5355 */)(DrawerLayoutAndroid, {disallowInterruption: true});
|
|
value = value.forwardRef(_fun47594);
|
|
exports.RefreshControl = value4;
|
|
exports.ScrollView = value6;
|
|
exports.Switch = value8;
|
|
exports.TextInput = value9;
|
|
exports.DrawerLayoutAndroid = value11;
|
|
exports.FlatList = value;
|
|
}
|
|
|
|
function _fun47593(a0, a1) { // fn#47593, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5570:470, offset: 0x011c5344, size: 205 bytes, params: 3, frame: 28
|
|
let binding = env0_7;
|
|
const value2 = binding.useRef(null);
|
|
const refreshControl = a0.refreshControl;
|
|
const waitFor = a0.waitFor;
|
|
binding = env0_6;
|
|
const value3 = undefined;
|
|
const value4 = binding(a0, env0_2);
|
|
binding = env0_10;
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const object2 = {ref: a1};
|
|
const items2 = [];
|
|
const concat = items2.concat;
|
|
const binding2 = env0_5;
|
|
const moduleValue = require(5325) /* metro dependency 5325 */;
|
|
object2.waitFor = Reflect.apply(concat, items2, [binding2(moduleValue.toArray(waitFor ?? [])), [value2]]);
|
|
object2.refreshControl = refreshControl ? env0_7.cloneElement(refreshControl, {ref: value2}) : value3;
|
|
return ((Component) => <Component {...Reflect.apply(assign, Object, [{}, value4, object2])} />)(binding);
|
|
}
|
|
|
|
function _fun47594(a0, a1) { // fn#47594, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5570:853, offset: 0x011c5411, size: 310 bytes, params: 3, frame: 29
|
|
var r8;
|
|
var value5;
|
|
var property;
|
|
var property2;
|
|
var property3;
|
|
var moduleValue;
|
|
var nativeViewProps;
|
|
var includes;
|
|
var value6;
|
|
var error;
|
|
var jsxRuntimeEnv0_9Binding;
|
|
var assign;
|
|
var object3;
|
|
var cloneElement;
|
|
var value7;
|
|
const value = undefined;
|
|
let binding = env0_7;
|
|
const value3 = binding.useRef(null);
|
|
const env0_1 = a0.waitFor;
|
|
const refreshControl = a0.refreshControl;
|
|
const value4 = env0_6(a0, env0_3);
|
|
const object5 = {};
|
|
const object6 = {};
|
|
let Object = global.Object;
|
|
const iterator = Object.entries(value4)[Symbol.iterator]();
|
|
const iterator2 = iterator.next;
|
|
let r2 = iterator;
|
|
let item2 = Reflect.apply(iterator2, r2, []);
|
|
let item = item2.value;
|
|
item2 = item2.done ? undefined : r2;
|
|
reducibleJoin2: while (true) {
|
|
if (item2 === value) {
|
|
jsxRuntimeEnv0_9Binding = jsxRuntimeEnv0_9;
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
object3 = {renderScrollComponent: renderScrollComponent};
|
|
reducibleJoin23: while (true) {
|
|
if (refreshControl) {
|
|
binding = env0_7;
|
|
cloneElement = binding.cloneElement;
|
|
value7 = Reflect.apply(cloneElement, binding, [refreshControl, {ref: value3}]);
|
|
r8 = value7;
|
|
break reducibleJoin23;
|
|
}
|
|
r8 = value;
|
|
break reducibleJoin23;
|
|
}
|
|
object3.refreshControl = r8;
|
|
return <FlatList {...Reflect.apply(assign, Object, [{ref: a1}, object5, object3])} />;
|
|
}
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleLoop2: while (true) {
|
|
try {
|
|
binding = env0_4;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value5 = binding(item, 2);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = value5[0];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property2 = value5[1];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property3 = dependencyMap[8];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
moduleValue = require(property3);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
nativeViewProps = moduleValue.nativeViewProps;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
includes = nativeViewProps.includes;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value6 = Reflect.apply(includes, nativeViewProps, [property]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
if (value6) {
|
|
try {
|
|
object6[property] = property2;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r2 = item2;
|
|
} else {
|
|
try {
|
|
object5[property] = property2;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r2 = item2;
|
|
}
|
|
item2 = Reflect.apply(iterator2, r2, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r2;
|
|
if (item2 === value) {
|
|
break reducibleLoop2;
|
|
}
|
|
continue reducibleLoop2;
|
|
}
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
object3 = {renderScrollComponent: renderScrollComponent};
|
|
reducibleJoin23: while (true) {
|
|
if (refreshControl) {
|
|
binding = env0_7;
|
|
cloneElement = binding.cloneElement;
|
|
value7 = Reflect.apply(cloneElement, binding, [refreshControl, {ref: value3}]);
|
|
r8 = value7;
|
|
break reducibleJoin23;
|
|
}
|
|
r8 = value;
|
|
break reducibleJoin23;
|
|
}
|
|
object3.refreshControl = r8;
|
|
return <FlatList {...Reflect.apply(assign, Object, [{ref: a1}, object5, object3])} />;
|
|
}
|
|
|
|
function renderScrollComponent(a0) { // fn#47595, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5570:1105, offset: 0x011c5547, size: 172 bytes, params: 2, frame: 28
|
|
let value = environment.__proto__;
|
|
const binding = env1_11;
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const Object2 = global.Object;
|
|
const assign2 = Object2.assign;
|
|
const binding2 = env0_2;
|
|
const items2 = [];
|
|
const concat = items2.concat;
|
|
value = env1_5(Reflect.apply((require(5325) /* metro dependency 5325 */).toArray, value, [waitFor ?? []]));
|
|
return ((Component) => <Component {...Reflect.apply(assign, Object, [{}, Reflect.apply(assign2, Object2, [{}, a0,
|
|
binding2, {waitFor: Reflect.apply(concat, items2, [value, [env0_0]])}])])} />)(binding);
|
|
}
|
|
|