// Module ID: 247 // Function ID: 248 // Dependencies: [92, 134, 248, 249] // Module 247 import COMPOSED_PATH_KEY from "COMPOSED_PATH_KEY" /* 134 */; import _mod248 from "module_248" /* 248 */; import DeviceEventManagerDefault from "DeviceEventManager" /* 249 */; import _isNativeReflectConstruct from "module_92" /* 92 */; require = arg1; let closure_3 = []; _isNativeReflectConstruct.addListener("hardwareBackPress", (timeStamp) => { timeStamp = undefined; if (timeStamp != null) { timeStamp = timeStamp.timeStamp; } obj = {}; if (null != timeStamp) { const result = COMPOSED_PATH_KEY.setEventInitTimeStamp(obj, timeStamp); } const hardwareBackPressEvent = new _mod248.HardwareBackPressEvent(obj); let diff = closure_3.length - 1; if (0 <= diff) { while (true) { let tmp7 = closure_3[diff]; let tmp7Result; if (tmp7 != null) { tmp7Result = tmp7(hardwareBackPressEvent); } if (tmp7Result) { break; } else { diff = diff - 1; } } } obj.exitApp(); }); let obj = { exitApp() { if (DeviceEventManagerDefault) { const result = DeviceEventManagerDefault.invokeDefaultBackPressHandler(); const tmpResult = DeviceEventManagerDefault; } }, addEventListener(arg0, arg1) { closure_0 = arg1; if (-1 === closure_3.indexOf(arg1)) { closure_3.push(arg1); } return { remove() { const index = closure_3.indexOf(closure_0); if (-1 !== index) { closure_3.splice(index, 1); } } }; } }; export default obj;