// Module ID: 6014 // Function ID: 6015 // Dependencies: [32, 19, 17, 1496, 21, 1895, 4310, 1627, 5562, 5560, 5561, 2] // Module 6014 import closure_2 from "_slicedToArray" /* 32 */; import importAllResult from "noop" /* 19 */; import get_ActivityIndicator from "get ActivityIndicator" /* 17 */; import closure_6 from "subscribeToKeyboardUIStore" /* 1496 */; import { jsx } from "jsxProd" /* 21 */; const require = arg1; let c3 = importAllResult; ({ View: c4, StyleSheet: c5 } = get_ActivityIndicator); const memoResult = importAllResult.memo(function KeyboardAwareView(style) { style = style.style; let flag = style.animated; ({ children, pointerEvents } = style); if (flag === undefined) { flag = true; } let num = style.keyboardHeightOffset; if (num === undefined) { num = 0; } let ref; let first; closure_5 = undefined; closure_6 = undefined; let obj = ref; let systemKeyboardHeight = style(flag[5]).getSystemKeyboardHeight(); if (0 === systemKeyboardHeight) { let tmpResult = tmp(tmp2[6]); let keyboardType = tmpResult.getKeyboardType(); let num2 = 0; if (keyboardType !== tmp(tmp2[7]).KeyboardTypes.SYSTEM) { tmpResult = tmp(tmp2[8]); num2 = tmpResult.getCustomKeyboardHeight(); } systemKeyboardHeight = num2; } ref = ref.useRef(Math.max(0, systemKeyboardHeight + num)); const tmp6 = num(obj.useState(ref.current), 2); first = tmp6[0]; closure_5 = tmp6[1]; const items = [num]; const effect = obj.useEffect(() => ref(() => { let systemKeyboardHeight = closure_1_0(closure_1_1[5]).getSystemKeyboardHeight(); if (0 === systemKeyboardHeight) { let tmp2Result = tmp2(tmp3[6]); const keyboardType = tmp2Result.getKeyboardType(); num = 0; if (keyboardType !== tmp2(tmp3[7]).KeyboardTypes.SYSTEM) { tmp2Result = tmp2(tmp3[8]); num = tmp2Result.getCustomKeyboardHeight(); } systemKeyboardHeight = num; } const bound = Math.max(0, systemKeyboardHeight + closure_2); if (ref.current !== bound) { ref.current = bound; callback(bound); } }), items); closure_6 = obj.useRef(false); const items1 = [flag, first]; const effect1 = obj.useEffect(() => { if (ref.current) { const keyboardDuration = style(flag[9]).getKeyboardDuration(); let tmp5 = flag; if (flag) { tmp5 = keyboardDuration > 0; } if (tmp5) { const result = tmp2(tmp3[10]).DeprecatedLayoutAnimationKeyboard(keyboardDuration); const tmp2Result = tmp2(tmp3[10]); } const obj = style(flag[9]); tmp2 = style; tmp3 = flag; } else { tmp.current = true; } }, items1); const items2 = [first, style]; obj = { style: obj.useMemo(() => { if (null == style) { let obj = { marginBottom: null }; obj[0] = first; return obj; } else { const flattenResult = closure_5.flatten(tmp); if (typeof flattenResult.marginBottom === "number") { obj = {}; const merged = Object.assign(flattenResult); obj.marginBottom = flattenResult.marginBottom + first; } else { obj = {}; const merged1 = Object.assign(flattenResult); obj.marginBottom = first; } return obj; } }, items2), pointerEvents, children }; return { if (null == style) { let obj = { marginBottom: null }; obj[0] = first; return obj; } else { const flattenResult = closure_5.flatten(tmp); if (typeof flattenResult.marginBottom === "number") { obj = {}; const merged = Object.assign(flattenResult); obj.marginBottom = flattenResult.marginBottom + first; } else { obj = {}; const merged1 = Object.assign(flattenResult); obj.marginBottom = first; } return obj; } }, items2)} pointerEvents={pointerEvents}>{children}; }); let result = require("set").fileFinishedImporting("modules/keyboard/native/KeyboardAwareView.tsx"); export default memoResult;