// Module ID: 6558 // Function ID: 6559 // Name: forHorizontalIOS // Dependencies: [17, 6559] // Exports: forBottomSheetAndroid, forFadeFromBottomAndroid, forFadeFromCenter, forFadeFromRightAndroid, forHorizontalIOSInverted, forModalPresentationIOS, forNoAnimation, forRevealFromBottomAndroid, forScaleFromCenterAndroid, forVerticalIOS // Module 6558 (forHorizontalIOS) import conditional from "conditional" /* 6559 */; import get_ActivityIndicator from "get ActivityIndicator" /* 17 */; function forHorizontalIOS(layouts) { ({ current, next, inverted } = layouts); const screen = layouts.layouts.screen; let obj = { translateX: callback(progress.interpolate({ inputRange: [0, 1], outputRange: items, extrapolate: "clamp" }), inverted) }; progress = current.progress; items = [screen.width, ]; let num = 0; items[1] = 0; const items1 = [obj, ]; if (next) { const progress2 = next.progress; obj = { inputRange: null, outputRange: null, extrapolate: "clamp" }; obj[0] = [0, 1]; const items2 = [0, -0.3 * screen.width]; obj[1] = items2; num = tmp(progress2.interpolate(obj), inverted); } obj = { cardStyle: { transform: items1 }, overlayStyle: { opacity: progress3.interpolate({ inputRange: [0, 1], outputRange: [0, 0.07], extrapolate: "clamp" }) }, shadowStyle: null }; items1[1] = { translateX: num }; progress3 = current.progress; obj1 = { opacity: progress3.interpolate({ inputRange: [0, 1], outputRange: [0, 0.07], extrapolate: "clamp" }) }; tmp = callback; const progress4 = current.progress; obj[2] = { shadowOpacity: progress4.interpolate({ inputRange: [0, 1], outputRange: [0, 0.3], extrapolate: "clamp" }) }; return obj; } const Animated = get_ActivityIndicator.Animated; ({ add: c3, multiply: c4 } = Animated); export { forHorizontalIOS }; export const forHorizontalIOSInverted = function forHorizontalIOSInverted(inverted) { const obj = {}; const merged = Object.assign(Object.assign(inverted, Object.create(null))); obj.inverted = Animated.multiply(inverted.inverted, -1); return forHorizontalIOS(obj); }; export const forVerticalIOS = function forVerticalIOS(inverted) { let obj = { cardStyle: null }; obj = { transform: null }; obj = { translateY: callback(progress.interpolate({ inputRange: [0, 1], outputRange: items, extrapolate: "clamp" }), inverted.inverted) }; progress = inverted.current.progress; items = [inverted.layouts.screen.height, 0]; const items1 = [obj]; obj[0] = items1; obj[0] = obj; return obj; }; export const forModalPresentationIOS = function forModalPresentationIOS(next) { next = next.next; const screen = next.layouts.screen; let num = 10; let num2 = 10; ({ index, current, inverted, insets } = next); if (screen.width > screen.height) { num2 = 0; } const top = insets.top; const progress = current.progress; const result = screen.height / screen.width; let num3 = 0; if (next) { const progress2 = next.progress; let obj = { inputRange: null, outputRange: null, extrapolate: "clamp" }; obj[0] = [0, 1]; obj[1] = [0, 1]; num3 = progress2.interpolate(obj); } const tmp3Result = closure_3(progress.interpolate({ inputRange: [0, 1], outputRange: [0, 1], extrapolate: "clamp" }), num3); obj = { inputRange: [0, 1, 2], outputRange: null }; const items = [screen.height, , ]; let num4 = 0; if (0 !== index) { num4 = num2; } items[1] = num4; let num5 = 0; if (0 === index) { num5 = top; } items[2] = num5 - num2 * result; obj[1] = items; const interpolateResult = progress.interpolate({ inputRange: [0, 1], outputRange: [0, 1], extrapolate: "clamp" }); const tmp3 = closure_3; const tmp6 = closure_4; let num6 = 1; const opacity = tmp3Result.interpolate({ inputRange: [0, 1, 1.0001, 2], outputRange: [0, 0.3, 1, 1] }); if (screen.width <= screen.height) { obj = { inputRange: null, outputRange: null }; obj[0] = [0, 1, 2]; let num7 = 1; if (screen.width) { num7 = 1 - 2 * num2 / screen.width; } const items1 = [1, 1, num7]; obj[1] = items1; num6 = tmp3Result.interpolate(obj); } let num9 = 0; if (screen.width <= screen.height) { if (tmp5) { obj1 = { inputRange: null, outputRange: null }; obj1[0] = [0, 1, 1.0001, 2]; obj1[1] = [0, 0, 0, 10]; num = tmp3Result.interpolate(obj1); } num9 = num; } const obj2 = { overflow: "hidden", borderCurve: "continuous", borderTopLeftRadius: num9, borderTopRightRadius: num9, borderBottomLeftRadius: 0, borderBottomRightRadius: 0, marginTop: null, marginBottom: null, transform: null }; let num10 = 0; if (0 !== index) { num10 = top; } obj2[6] = num10; let num11 = 0; if (0 !== index) { num11 = num2; } obj2[7] = num11; const items2 = [{ translateY: closure_4(tmp3Result.interpolate(obj), inverted) }, { scale: num6 }]; obj2[8] = items2; return { cardStyle: obj2, overlayStyle: { opacity } }; }; export const forFadeFromBottomAndroid = function forFadeFromBottomAndroid(current) { current = current.current; const progress = current.progress; const items = [0.08 * current.layouts.screen.height, 0]; ({ inverted, closing } = current); let obj = { cardStyle: null }; obj = { opacity: null, transform: null }; const tmp = callback(progress.interpolate({ inputRange: [0, 1], outputRange: items, extrapolate: "clamp" }), inverted); const progress2 = current.progress; obj[0] = conditional.conditional(closing, current.progress, progress2.interpolate({ inputRange: [0, 0.5, 0.9, 1], outputRange: [0, 0.25, 0.7, 1], extrapolate: "clamp" })); const items1 = [{ translateY: tmp }]; obj[1] = items1; obj[0] = obj; return obj; }; export const forRevealFromBottomAndroid = function forRevealFromBottomAndroid(layouts) { ({ current, next, inverted } = layouts); const screen = layouts.layouts.screen; let obj = { containerStyle: null, cardStyle: null, overlayStyle: null }; obj = { overflow: "hidden", transform: null }; obj = { translateY: callback(progress.interpolate({ inputRange: [0, 1], outputRange: items, extrapolate: "clamp" }), inverted) }; progress = current.progress; items = [screen.height, ]; let num = 0; items[1] = 0; const items1 = [obj]; obj[1] = items1; obj[0] = obj; const progress2 = current.progress; const items2 = [0.9590000000000001 * screen.height * -1, 0]; const items3 = [{ translateY: callback(progress2.interpolate({ inputRange: [0, 1], outputRange: items2, extrapolate: "clamp" }), inverted) }, ]; if (next) { const progress3 = next.progress; const obj2 = { inputRange: null, outputRange: null, extrapolate: "clamp" }; obj2[0] = [0, 1]; const items4 = [0, 0.02 * screen.height * -1]; obj2[1] = items4; num = tmp(progress3.interpolate(obj2), inverted); } items3[1] = { translateY: num }; obj[1] = { transform: items3 }; obj1 = { translateY: callback(progress2.interpolate({ inputRange: [0, 1], outputRange: items2, extrapolate: "clamp" }), inverted) }; tmp = callback; const progress4 = current.progress; obj[2] = { opacity: progress4.interpolate({ inputRange: [0, 0.36, 1], outputRange: [0, 0.1, 0.1], extrapolate: "clamp" }) }; return obj; }; export const forScaleFromCenterAndroid = function forScaleFromCenterAndroid(closing) { ({ current, next } = closing); const progress = current.progress; let num = 0; if (next) { const progress2 = next.progress; let obj = { inputRange: null, outputRange: null, extrapolate: "clamp" }; obj[0] = [0, 1]; obj[1] = [0, 1]; num = progress2.interpolate(obj); } const tmpResult = closure_3(progress.interpolate({ inputRange: [0, 1], outputRange: [0, 1], extrapolate: "clamp" }), num); obj = { cardStyle: null }; obj = { opacity: tmpResult.interpolate({ inputRange: [0, 0.75, 0.875, 1, 1.0825, 1.2075, 2], outputRange: [0, 0, 1, 1, 1, 1, 0] }), transform: null }; obj1 = { scale: null }; const interpolateResult = progress.interpolate({ inputRange: [0, 1], outputRange: [0, 1], extrapolate: "clamp" }); const tmp = closure_3; const progress3 = current.progress; const obj6 = conditional; obj1[0] = obj6.conditional(closing.closing, progress3.interpolate({ inputRange: [0, 1], outputRange: [0.925, 1], extrapolate: "clamp" }), tmpResult.interpolate({ inputRange: [0, 1, 2], outputRange: [0.85, 1, 1.075] })); const items = [obj1]; obj[1] = items; obj[0] = obj; return obj; }; export const forFadeFromRightAndroid = function forFadeFromRightAndroid(closing) { ({ current, next, inverted } = closing); const progress = current.progress; let num = 0; if (next) { const progress2 = next.progress; let obj = { inputRange: null, outputRange: null, extrapolate: "clamp" }; obj[0] = [0, 1]; obj[1] = [0, -96]; num = tmp(progress2.interpolate(obj), inverted); } obj = { cardStyle: null }; obj = { opacity: null, transform: null }; tmp = callback; const tmp2 = callback(progress.interpolate({ inputRange: [0, 1], outputRange: [96, 0], extrapolate: "clamp" }), inverted); const progress3 = current.progress; obj[0] = conditional.conditional(closing.closing, progress3.interpolate({ inputRange: [0, 1], outputRange: [0, 1], extrapolate: "clamp" }), current.progress); const items = [{ translateX: tmp2 }, { translateX: num }]; obj[1] = items; obj[0] = obj; return obj; }; export const forBottomSheetAndroid = function forBottomSheetAndroid(current) { current = current.current; const progress = current.progress; const items = [0.8 * current.layouts.screen.height, 0]; ({ inverted, closing } = current); let obj = { cardStyle: null, overlayStyle: null }; obj = { opacity: null, transform: null }; const tmp = callback(progress.interpolate({ inputRange: [0, 1], outputRange: items, extrapolate: "clamp" }), inverted); const progress2 = current.progress; obj[0] = conditional.conditional(closing, current.progress, progress2.interpolate({ inputRange: [0, 1], outputRange: [0, 1], extrapolate: "clamp" })); const items1 = [{ translateY: tmp }]; obj[1] = items1; obj[0] = obj; obj = { opacity: progress3.interpolate({ inputRange: [0, 1], outputRange: [0, 0.3], extrapolate: "clamp" }) }; progress3 = current.progress; obj[1] = obj; return obj; }; export const forFadeFromCenter = function forFadeFromCenter(current) { const progress = current.current.progress; let obj = { cardStyle: null, overlayStyle: null }; obj = { opacity: progress.interpolate({ inputRange: [0, 0.5, 0.9, 1], outputRange: [0, 0.25, 0.7, 1] }) }; obj[0] = obj; obj = { opacity: progress.interpolate({ inputRange: [0, 1], outputRange: [0, 0.5], extrapolate: "clamp" }) }; obj[1] = obj; return obj; }; export function forNoAnimation() { return {}; }