52 lines
2.8 KiB
React
52 lines
2.8 KiB
React
/* Metro module 6322; source: unknown; dependencies: [31, 27, 33, 1610, 6282, 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 = require(31) /* metro dependency 31 */;
|
|
const memo = value.memo;
|
|
const env0_3 = value.useMemo;
|
|
importDefault(31) /* metro dependency 31 */;
|
|
const env0_4 = (require(27) /* metro dependency 27 */).Platform;
|
|
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
|
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} = (require(6282) /* metro dependency 6282 */).useBottomSheetInternal();
|
|
const moduleValue2 = require(1610) /* metro dependency 1610 */;
|
|
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 = (require(6323) /* metro dependency 6323 */).styles;
|
|
items2[1] = styles.container;
|
|
items2[2] = env0_3;
|
|
return items2;
|
|
}
|
|
|