85 lines
5.1 KiB
React
85 lines
5.1 KiB
React
/* Metro module 395; source: unknown; dependencies: [57, 29, 31, 33, 396, 147, 397, 325, 340, 253, 380] */
|
|
import ObjectWithoutProperties from './module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
|
|
import Module00057 from './module-00057.js'; /* Metro dependency 57 */
|
|
import Module00147 from './module-00147.js'; /* Metro dependency 147 */
|
|
import Module00253 from './module-00253.js'; /* Metro dependency 253 */
|
|
import Module00325 from './module-00325.js'; /* Metro dependency 325 */
|
|
import Module00340 from './module-00340.jsx'; /* Metro dependency 340 */
|
|
import Unstable_createAnimatedComponentWithAllowlist from './module-00380-unstable_createAnimatedComponentWithAllowlist.jsx'; /* Metro dependency 380 */
|
|
import Module00397 from './module-00397.js'; /* Metro dependency 397 */
|
|
import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from './module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
|
|
function _fun5761(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#5761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:436:6, offset: 0x00ce4ca3, size: 234 bytes, params: 8, frame: 19
|
|
const env0_2 = ['ref'];
|
|
const env0_3 = ['ref'];
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
const env0_10 = (Unstable_createAnimatedComponentWithAllowlist)(Module00340);
|
|
exports.default = AnimatedScrollViewWithOrWithoutInvertedRefreshControl;
|
|
function AnimatedScrollViewWithInvertedRefreshControl(a0) { // fn#5762, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:436:205, offset: 0x00ce4d8d, size: 302 bytes, params: 2, frame: 29
|
|
const ref = a0.ref;
|
|
let binding = ObjectWithoutProperties;
|
|
const value2 = binding(a0, env0_3);
|
|
const {intermediatePropsForRefreshControl, intermediatePropsForScrollView} = useMemo(_fun5763, [value2]);
|
|
const value4 = (Module00397)(intermediatePropsForRefreshControl);
|
|
binding = Module00057;
|
|
const value5 = binding(value4, 2);
|
|
const property = value5[0];
|
|
const property2 = value5[1];
|
|
const cloneElementBinding = cloneElement;
|
|
const refreshControl = value2.refreshControl;
|
|
let Object = global.Object;
|
|
let assign = Object.assign;
|
|
const value6 = cloneElementBinding(refreshControl, Reflect.apply(assign, Object, [{}, property, {ref: property2}]));
|
|
const value7 = binding((Module00397)(intermediatePropsForScrollView), 2);
|
|
const property3 = value7[0];
|
|
const value8 = (Module00325)(value7[1], ref);
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
object = {ref: value8, refreshControl: value6};
|
|
const defaultImport = Module00253;
|
|
object.style = defaultImport.compose(property3.style, property.style);
|
|
return ((Component) => <Component {...Reflect.apply(assign, Object, [{}, property3, object])} />)(Module00340);
|
|
function _fun5763() { // fn#5763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:436:288, offset: 0x00ce4ebb, size: 119 bytes, params: 1, frame: 16
|
|
let value = environment.__proto__;
|
|
value = importDefault(396) /* metro dependency 396 */;
|
|
const defaultImport = Module00147;
|
|
const binding = env0_0;
|
|
value = value(defaultImport(binding.style));
|
|
const outer = value.outer;
|
|
const inner = value.inner;
|
|
const Object = global.Object;
|
|
return {intermediatePropsForRefreshControl: {style: outer}, intermediatePropsForScrollView: Object.assign({},
|
|
binding, {style: inner})};
|
|
}
|
|
|
|
}
|
|
|
|
function AnimatedScrollViewWithOrWithoutInvertedRefreshControl(a0) { // fn#5764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:436:808, offset: 0x00ce4f32, size: 177 bytes, params: 2, frame: 21
|
|
const ref = a0.ref;
|
|
const value2 = ObjectWithoutProperties(a0, env0_2);
|
|
return (
|
|
value2.refreshControl == null
|
|
? ((Component) => <Component {...global.Object.assign({scrollEventThrottle: 0.0001}, value2,
|
|
{ref: ref})} />)(env0_10)
|
|
: (
|
|
value2.style != null
|
|
? (
|
|
<AnimatedScrollViewWithInvertedRefreshControl
|
|
{...global.Object.assign({scrollEventThrottle: 0.0001}, value2, {ref: ref,
|
|
refreshControl: value2.refreshControl})}
|
|
/>
|
|
)
|
|
: ((Component) => <Component {...global.Object.assign({scrollEventThrottle: 0.0001}, value2,
|
|
{ref: ref})} />)(env0_10)
|
|
)
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun5761, 395, [57, 29, 31, 33, 396, 147, 397, 325, 340, 253,
|
|
380]) /* metro module 395, dependencies: [57, 29, 31, 33, 396, 147, 397, 325, 340, 253, 380] */;
|