Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
53 lines
2 KiB
JavaScript
53 lines
2 KiB
JavaScript
// Module ID: 6914
|
|
// Function ID: 6915
|
|
// Dependencies: [19, 17, 21, 1636, 6733, 6915]
|
|
|
|
// Module 6914
|
|
import _mod17 from "module_17" /* 17 */;
|
|
import jsxProd from "jsxProd" /* 21 */;
|
|
import _mod6915 from "module_6915" /* 6915 */;
|
|
import noop_mod from "module_19" /* 19 */;
|
|
|
|
let noop = noop_mod;
|
|
({ useMemo: c3, memo } = noop);
|
|
let noop = noop_mod;
|
|
const Platform = _mod17.Platform;
|
|
const jsx = jsxProd.jsx;
|
|
const __initData = { code: "function pnpm_BottomSheetBodyTsx1(){const{Platform,animatedIndex,animatedPosition}=this.__closure;return{opacity:Platform.OS==='android'&&animatedIndex.get()===-1?0:1,transform:[{translateY:animatedPosition.get()}]};}" };
|
|
const memoResult = memo(function BottomSheetBodyComponent(children) {
|
|
const style = children.style;
|
|
let View = children.BodyComponent;
|
|
if (View === undefined) {
|
|
View = animatedIndex(animatedPosition[3]).View;
|
|
}
|
|
animatedPosition = undefined;
|
|
const bottomSheetInternal = style(animatedPosition[4]).useBottomSheetInternal();
|
|
animatedIndex = bottomSheetInternal.animatedIndex;
|
|
animatedPosition = bottomSheetInternal.animatedPosition;
|
|
let obj = style(animatedPosition[4]);
|
|
const fn = function y() {
|
|
let num = 1;
|
|
if (-1 === animatedIndex.get()) {
|
|
num = 0;
|
|
}
|
|
const obj = { opacity: num, transform: null };
|
|
const items = [{ translateY: animatedPosition.get() }];
|
|
obj.transform = items;
|
|
return obj;
|
|
};
|
|
fn.__closure = { Platform, animatedIndex, animatedPosition };
|
|
fn.__workletHash = 5915282482182;
|
|
fn.__initData = __initData;
|
|
let items = [animatedPosition, animatedIndex];
|
|
const animatedStyle = style(animatedPosition[3]).useAnimatedStyle(fn, items);
|
|
const items1 = [style, animatedStyle];
|
|
const obj2 = style(animatedPosition[3]);
|
|
const obj3 = { Platform, animatedIndex, animatedPosition };
|
|
return <View style={animatedStyle(() => {
|
|
const items = [style, _mod6915.styles.container, animatedStyle];
|
|
return items;
|
|
}, items1)} collapsable>{arg0.children}</View>;
|
|
});
|
|
memoResult.displayName = "BottomSheetBody";
|
|
|
|
export const BottomSheetBody = memoResult;
|