// Module ID: 5173 // Function ID: 5174 // Name: Pressables // Dependencies: [19, 17, 5034, 1182, 21, 4605, 576, 1115, 5174, 2] // Module 5173 (Pressables) import nativeDefault from "native" /* 576 */; import PlatformUtils from "PlatformUtils" /* 1115 */; import StyleSheetUtilsDefault from "StyleSheetUtils" /* 5174 */; import noop from "module_19" /* 19 */; require = fn; function PressableBase(androidRippleConfig) { androidRippleConfig = androidRippleConfig.androidRippleConfig; const style = androidRippleConfig.style; const type = androidRippleConfig.type; const activeOpacity = androidRippleConfig.activeOpacity; const underlayColor = androidRippleConfig.underlayColor; ({ children, innerRef } = androidRippleConfig); let merged = Object.assign(androidRippleConfig, Object.assign({ children: 0, androidRippleConfig: 0, style: 0, type: 0, activeOpacity: 0, underlayColor: 0, innerRef: 0 })); const backgroundColor = closure_8().pressedHighlight.backgroundColor; let items = [type, activeOpacity, underlayColor, style, backgroundColor]; const items1 = [androidRippleConfig, style]; const memo = activeOpacity.useMemo(() => PlatformUtils.isAndroid() ? style : ((pressed) => { const items = [style, , ]; if (!pressed.pressed) { items[1] = null; items[2] = backgroundColor; return items; } else if ("highlight" === type) { let tmp2 = underlayColor; if (underlayColor == null) { tmp2 = closure_1_5; } const obj2 = { backgroundColor: tmp2 }; } else { let num = activeOpacity; if (activeOpacity == null) { num = 0.2; } const obj = { opacity: num }; } }), items); let obj = { android_ripple: activeOpacity.useMemo(() => { if (obj.isAndroid()) { let obj2 = androidRippleConfig; if (androidRippleConfig == null) { obj2 = {}; } const cornerRadius = obj2.cornerRadius; let tmp4 = cornerRadius; if (null == cornerRadius) { const styleProp = StyleSheetUtilsDefault.getStyleProp(style, "borderRadius"); tmp4 = cornerRadius; if (null != styleProp) { tmp4 = styleProp; } } const obj4 = {}; const merged = Object.assign(tmp2); obj4.cornerRadius = tmp4; return getThemedRippleConfig(obj4); } obj = PlatformUtils; }, items1), style: memo, ref: innerRef }; const merged1 = Object.assign(merged); obj.children = children; return { if (obj.isAndroid()) { let obj2 = androidRippleConfig; if (androidRippleConfig == null) { obj2 = {}; } const cornerRadius = obj2.cornerRadius; let tmp4 = cornerRadius; if (null == cornerRadius) { const styleProp = StyleSheetUtilsDefault.getStyleProp(style, "borderRadius"); tmp4 = cornerRadius; if (null != styleProp) { tmp4 = styleProp; } } const obj4 = {}; const merged = Object.assign(tmp2); obj4.cornerRadius = tmp4; return getThemedRippleConfig(obj4); } obj = PlatformUtils; }, items1)} style={memo} ref={innerRef} />; } const Pressable = fn(17).Pressable; const IOS_POINTER_STYLE = fn(5034).IOS_POINTER_STYLE; const getThemedRippleConfig = fn(1182).getThemedRippleConfig; const jsx = fn(21).jsx; const createStyles = fn(4605); let obj = { pressedHighlight: { backgroundColor: nativeDefault.colors.BACKGROUND_MOD_MUTED } }; let closure_8 = createStyles.createStyles(obj); let obj3 = { backgroundColor: nativeDefault.colors.BACKGROUND_MOD_MUTED }; const forwardRefResult = noop.forwardRef((activeOpacity, innerRef) => { let num = activeOpacity.activeOpacity; if (num === undefined) { num = 0.2; } const merged = Object.assign(Object.assign(activeOpacity, Object.assign({ activeOpacity: 0 }))); return ; }); const size = fn(2); const result = size.fileFinishedImporting("design/void/Pressables/native/Pressables.tsx"); export const PressableOpacity = forwardRefResult; export const PressableHighlight = noop.forwardRef((underlayColor, innerRef) => { const merged = Object.assign(Object.assign(underlayColor, Object.assign({ underlayColor: 0 }))); return ; });