59 lines
3.3 KiB
React
59 lines
3.3 KiB
React
/* Metro module 6322; source: unknown; dependencies: [31, 27, 33, 1610, 6282, 6323] */
|
|
import React from './module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as ReactNativeModule from './module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from './module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as moduleValue2 from './module-01610.js'; /* Metro dependency 1610 */
|
|
import * as Module06282Module from './module-06282.js'; /* Metro dependency 6282 */
|
|
import * as StylesModule from './module-06323-styles.js'; /* Metro dependency 6323 */
|
|
|
|
function _fun49776(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#49776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6500:6, offset: 0x01207e59, size: 181 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = ReactModule;
|
|
const memo = value.memo;
|
|
const env0_3 = value.useMemo;
|
|
React;
|
|
object = {code: "function pnpm_BottomSheetBodyTsx1(){const{Platform,animatedIndex,animatedPosition}=this.__closure;return{opacity:Platform.OS==='android'&&animatedIndex.get()===-1?0:1,transform:[{translateY:animatedPosition.get()}]};}"};
|
|
value = memo(BottomSheetBodyComponent);
|
|
value.displayName = 'BottomSheetBody';
|
|
exports.BottomSheetBody = value;
|
|
function BottomSheetBodyComponent({style, children, BodyComponent = importDefault(dependencyMap[3]).View}) { // fn#49777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6500:408, offset: 0x01207f0e, size: 266 bytes, params: 2, frame: 22
|
|
const {animatedIndex, animatedPosition} = (Module06282Module).useBottomSheetInternal();
|
|
const useAnimatedStyle = moduleValue2.useAnimatedStyle;
|
|
const closure = function() {
|
|
var object = {};
|
|
object.opacity = animatedIndex.get() !== -1 ? 1 : 0;
|
|
var object2 = {};
|
|
object2.translateY = animatedPosition.get();
|
|
object.transform = [object2];
|
|
return object;
|
|
};
|
|
closure.__closure = {Platform: Platform, animatedIndex: animatedIndex, animatedPosition: animatedPosition};
|
|
closure.__workletHash = 5915282482182;
|
|
closure.__initData = env0_6;
|
|
return (
|
|
<BodyComponent
|
|
style={useMemo(_fun49779, [style, Reflect.apply(useAnimatedStyle, moduleValue2, [closure, [animatedPosition,
|
|
animatedIndex]])])}
|
|
collapsable
|
|
>
|
|
{children}
|
|
</BodyComponent>
|
|
);
|
|
function _fun49779() { // fn#49779, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6500:847, offset: 0x0120805f, size: 65 bytes, params: 1, frame: 13
|
|
const items2 = [style];
|
|
const styles = (StylesModule).styles;
|
|
items2[1] = styles.container;
|
|
items2[2] = env0_3;
|
|
return items2;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun49776, 6322, [31, 27, 33, 1610, 6282,
|
|
6323]) /* metro module 6322, dependencies: [31, 27, 33, 1610, 6282, 6323] */;
|