decord/source/__polyfill/08xxx/module_8482.js
github-actions 03cf168fbc chore: update source for alpha 347.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
2026-09-17 08:17:09 +00:00

148 lines
4.1 KiB
JavaScript

// Module ID: 8482
// Function ID: 8483
// Dependencies: [17]
// Module 8482
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;
}
};