155 lines
6.1 KiB
JavaScript
155 lines
6.1 KiB
JavaScript
// Metro module 1650 (f1651).
|
|
import * as _Module1651 from "./Module1651";
|
|
import * as _Module1609 from "./Module1609";
|
|
import { isFabric } from "./Module1609";
|
|
import { ReanimatedError } from "./Module1617";
|
|
import { ReanimatedModule } from "./Module1614";
|
|
import { SensorContainer } from "./SensorContainer";
|
|
import * as _freezeObjectInDev from "./freezeObjectInDev";
|
|
import * as _createMapperRegistry from "./createMapperRegistry";
|
|
import * as _addCompilerSafeGetAndSet from "./addCompilerSafeGetAndSet";
|
|
import * as _Module1656 from "./Module1656";
|
|
import * as _runWorkletOnJS from "./runWorkletOnJS";
|
|
let __initData, __initData2, c1306_7;
|
|
const isEdgeToEdge = _Module1651.isEdgeToEdge();
|
|
const shouldBeUseWeb = _Module1609.shouldBeUseWeb();
|
|
export const isReanimated3 = () => true;
|
|
__initData = {
|
|
code: "function handleAndFlushAnimationFrame_Pnpm_coreTs1(eventTimestamp,event){const{eventHandler}=this.__closure;global.__frameTimestamp=eventTimestamp;eventHandler(event);global.__flushAnimationFrame(eventTimestamp);global.__frameTimestamp=undefined;}"
|
|
};
|
|
__initData2 = {
|
|
code: "function handleAndFlushAnimationFrame_Pnpm_coreTs2(state,height){const{eventHandler}=this.__closure;const now=global._getAnimationTimestamp();global.__frameTimestamp=now;eventHandler(state,height);global.__flushAnimationFrame(now);global.__frameTimestamp=undefined;}"
|
|
};
|
|
c1306_7 = {
|
|
enableLayoutAnimations: false,
|
|
setByUser: false
|
|
};
|
|
export const startMapper = _createMapperRegistry.startMapper;
|
|
export const stopMapper = _createMapperRegistry.stopMapper;
|
|
export const makeMutable = _addCompilerSafeGetAndSet.makeMutable;
|
|
export const createWorkletRuntime = _Module1656.createWorkletRuntime;
|
|
export const runOnRuntime = _Module1656.runOnRuntime;
|
|
export const makeShareable = _freezeObjectInDev.makeShareable;
|
|
export const makeShareableCloneRecursive = _freezeObjectInDev.makeShareableCloneRecursive;
|
|
export const executeOnUIRuntimeSync = _runWorkletOnJS.executeOnUIRuntimeSync;
|
|
export const runOnJS = _runWorkletOnJS.runOnJS;
|
|
export const runOnUI = _runWorkletOnJS.runOnUI;
|
|
export { isReanimated3 as isConfigured };
|
|
export function getViewProp(c13148_0, c13148_1, a2) {
|
|
if (isFabric() && !a2) {
|
|
throw new ReanimatedError("Function `getViewProp` requires a component to be passed as an argument on Fabric.");
|
|
}
|
|
return new Promise((c24525_0, c24525_1) => ReanimatedModule.getViewProp(c13148_0, c13148_1, a2, (a0) => {
|
|
if (typeof a0 === "string" && a0.substr(0, 6) === "error:") {
|
|
c24525_1(a0);
|
|
} else {
|
|
c24525_0(a0);
|
|
}
|
|
}));
|
|
}
|
|
export function registerEventHandler(a0, a1) {
|
|
let c13149_0 = a0;
|
|
let r6 = arguments[2];
|
|
if (r6 === void 0) {
|
|
r6 = -1;
|
|
}
|
|
const handleAndFlushAnimationFrame2 = function handleAndFlushAnimationFrame(a0, a1) {
|
|
global.__frameTimestamp = a0;
|
|
c13149_0(a1);
|
|
global.__flushAnimationFrame(a0);
|
|
global.__frameTimestamp = void 0;
|
|
};
|
|
handleAndFlushAnimationFrame2.__closure = {
|
|
eventHandler: a0
|
|
};
|
|
handleAndFlushAnimationFrame2.__workletHash = 6793284645440;
|
|
handleAndFlushAnimationFrame2.__initData = __initData;
|
|
return ReanimatedModule.registerEventHandler(_freezeObjectInDev.makeShareableCloneRecursive(handleAndFlushAnimationFrame2), a1, r6);
|
|
}
|
|
export function unregisterEventHandler(a0) {
|
|
return ReanimatedModule.unregisterEventHandler(a0);
|
|
}
|
|
export function subscribeForKeyboardEvents(a0, a1) {
|
|
let c13150_0 = a0;
|
|
const handleAndFlushAnimationFrame2 = function handleAndFlushAnimationFrame(a0, a1) {
|
|
const __frameTimestamp = global._getAnimationTimestamp();
|
|
global.__frameTimestamp = __frameTimestamp;
|
|
c13150_0(a0, a1);
|
|
global.__flushAnimationFrame(__frameTimestamp);
|
|
global.__frameTimestamp = void 0;
|
|
};
|
|
handleAndFlushAnimationFrame2.__closure = {
|
|
eventHandler: a0
|
|
};
|
|
handleAndFlushAnimationFrame2.__workletHash = 11642615284685;
|
|
handleAndFlushAnimationFrame2.__initData = __initData2;
|
|
const r18 = _freezeObjectInDev.makeShareableCloneRecursive(handleAndFlushAnimationFrame2);
|
|
let r19 = isEdgeToEdge;
|
|
let r20 = isEdgeToEdge;
|
|
if (!isEdgeToEdge) {
|
|
let isStatusBarTranslucentAndroid = a1.isStatusBarTranslucentAndroid;
|
|
if (isStatusBarTranslucentAndroid == null) {
|
|
isStatusBarTranslucentAndroid = false;
|
|
}
|
|
r20 = isStatusBarTranslucentAndroid;
|
|
}
|
|
if (!isEdgeToEdge) {
|
|
let isNavigationBarTranslucentAndroid = a1.isNavigationBarTranslucentAndroid;
|
|
if (isNavigationBarTranslucentAndroid == null) {
|
|
isNavigationBarTranslucentAndroid = false;
|
|
}
|
|
r19 = isNavigationBarTranslucentAndroid;
|
|
}
|
|
return ReanimatedModule.subscribeForKeyboardEvents(r18, r20, r19);
|
|
}
|
|
export function unsubscribeFromKeyboardEvents(a0) {
|
|
return ReanimatedModule.unsubscribeFromKeyboardEvents(a0);
|
|
}
|
|
export function registerSensor(a0, a1, a2) {
|
|
if (!global.__sensorContainer) {
|
|
global.__sensorContainer = new SensorContainer();
|
|
}
|
|
return global.__sensorContainer.registerSensor(a0, a1, _freezeObjectInDev.makeShareableCloneRecursive(a2));
|
|
}
|
|
export function initializeSensor(a0, a1) {
|
|
if (!global.__sensorContainer) {
|
|
global.__sensorContainer = new SensorContainer();
|
|
}
|
|
return global.__sensorContainer.initializeSensor(a0, a1);
|
|
}
|
|
export function unregisterSensor(a0) {
|
|
if (!global.__sensorContainer) {
|
|
global.__sensorContainer = new SensorContainer();
|
|
}
|
|
return global.__sensorContainer.unregisterSensor(a0);
|
|
}
|
|
export function enableLayoutAnimations(a0, r3 = true) {
|
|
if (r3) {
|
|
c1306_7 = {
|
|
enableLayoutAnimations: a0,
|
|
setByUser: true
|
|
};
|
|
ReanimatedModule.enableLayoutAnimations(a0);
|
|
} else if (!(c1306_7.setByUser || c1306_7.enableLayoutAnimations === a0)) {
|
|
c1306_7.enableLayoutAnimations = a0;
|
|
ReanimatedModule.enableLayoutAnimations(a0);
|
|
}
|
|
}
|
|
export function configureLayoutAnimationBatch(a0) {
|
|
ReanimatedModule.configureLayoutAnimationBatch(a0);
|
|
}
|
|
export function setShouldAnimateExitingForTag(a0, a1) {
|
|
ReanimatedModule.setShouldAnimateExitingForTag(a0, a1);
|
|
}
|
|
export function jsiConfigureProps(a0, a1) {
|
|
if (!shouldBeUseWeb) {
|
|
ReanimatedModule.configureProps(a0, a1);
|
|
}
|
|
}
|
|
export function markNodeAsRemovable(a0) {
|
|
ReanimatedModule.markNodeAsRemovable(a0);
|
|
}
|
|
export function unmarkNodeAsRemovable(a0) {
|
|
ReanimatedModule.unmarkNodeAsRemovable(a0);
|
|
}
|