// Module ID: 8451 // Function ID: 8452 // Dependencies: [17] // Module 8451 import _mod17 from "module_17" /* 17 */; const Orientation = _mod17.NativeModules.Orientation; const Platform = _mod17.Platform; const DeviceEventEmitter = _mod17.DeviceEventEmitter; const dependencyMap = {}; let c3 = 0; const __listener_id = "__listener_id"; export default { getOrientation(arg0) { closure_0 = arg0; const orientation = Orientation.getOrientation((arg0, arg1) => { closure_0(arg0, arg1); }); }, getSpecificOrientation(arg0) { closure_0 = arg0; const specificOrientation = Orientation.getSpecificOrientation((arg0, arg1) => { closure_0(arg0, arg1); }); }, ignoreAutoRotate(flag) { Orientation.ignoreAutoRotate(flag); }, lockToPortrait() { Orientation.lockToPortrait(); }, lockToLandscape() { Orientation.lockToLandscape(); }, lockToLandscapeRight() { Orientation.lockToLandscapeRight(); }, lockToLandscapeLeft() { Orientation.lockToLandscapeLeft(); }, unlockAllOrientations() { const result = Orientation.unlockAllOrientations(); }, addOrientationListener(handleOrientationChange) { if (handleOrientationChange.hasOwnProperty(__listener_id)) { let str = handleOrientationChange[tmp]; } else { const _Object = Object; str = "F"; if (Object.isExtensible(handleOrientationChange)) { const _Object2 = Object; const obj = { value: null }; const sum = c3 + 1; c3 = sum; obj.value = `L${tmp4}`; Object.defineProperty(handleOrientationChange, tmp, obj); } } closure_2[str] = DeviceEventEmitter.addListener("orientationDidChange", (orientation) => { handleOrientationChange(orientation.orientation); }); }, addOrientationDegreesChangeListener(arg0) { closure_0 = arg0; if (arg0.hasOwnProperty(__listener_id)) { let str = arg0[tmp]; } else { const _Object = Object; str = "F"; if (Object.isExtensible(arg0)) { const _Object2 = Object; const obj = { value: null }; const sum = c3 + 1; c3 = sum; obj.value = `L${tmp4}`; Object.defineProperty(arg0, tmp, obj); } } closure_2[str] = DeviceEventEmitter.addListener("orientationDegreesDidChange", (orientationDegrees) => { closure_0(orientationDegrees.orientationDegrees); }); }, removeOrientationListener(arg0) { if (arg0.hasOwnProperty(__listener_id)) { let str = arg0[tmp]; } else { const _Object = Object; str = "F"; if (Object.isExtensible(arg0)) { const _Object2 = Object; const obj = { value: null }; const sum = c3 + 1; c3 = sum; obj.value = `L${tmp4}`; Object.defineProperty(arg0, tmp, obj); } } if (dependencyMap[str]) { tmp6[str].remove(); tmp6[str] = null; } }, addSpecificOrientationListener(arg0) { closure_0 = arg0; if (arg0.hasOwnProperty(__listener_id)) { let str = arg0[tmp]; } else { const _Object = Object; str = "F"; if (Object.isExtensible(arg0)) { const _Object2 = Object; const obj = { value: null }; const sum = c3 + 1; c3 = sum; obj.value = `L${tmp4}`; Object.defineProperty(arg0, tmp, obj); } } closure_2[str] = DeviceEventEmitter.addListener("specificOrientationDidChange", (specificOrientation) => { closure_0(specificOrientation.specificOrientation); }); }, removeSpecificOrientationListener(arg0) { if (arg0.hasOwnProperty(__listener_id)) { let str = arg0[tmp]; } else { const _Object = Object; str = "F"; if (Object.isExtensible(arg0)) { const _Object2 = Object; const obj = { value: null }; const sum = c3 + 1; c3 = sum; obj.value = `L${tmp4}`; Object.defineProperty(arg0, tmp, obj); } } if (dependencyMap[str]) { tmp6[str].remove(); tmp6[str] = null; } }, getInitialOrientation() { return Orientation.initialOrientation; } };