2026-08-15 05:55:55 +00:00
|
|
|
// Module ID: 1838
|
|
|
|
|
// Function ID: 1839
|
2026-07-29 08:29:29 +00:00
|
|
|
// Name: startScreenTransition
|
2026-08-15 05:55:55 +00:00
|
|
|
// Dependencies: [1753, 1839, 1840]
|
2026-07-29 08:29:29 +00:00
|
|
|
// Exports: finishScreenTransition, startScreenTransition
|
|
|
|
|
|
2026-08-15 05:55:55 +00:00
|
|
|
// Module 1838 (startScreenTransition)
|
2026-08-24 06:08:38 +00:00
|
|
|
import createViewDescriptorPaper from "createViewDescriptorPaper" /* 1839 */;
|
|
|
|
|
import computeEasingProgress from "computeEasingProgress" /* 1840 */;
|
|
|
|
|
import configureProps from "configureProps" /* 1753 */;
|
2026-07-29 08:29:29 +00:00
|
|
|
|
|
|
|
|
configureProps = configureProps.configureProps();
|
|
|
|
|
function startScreenTransition(sharedEvent) {
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_0 = sharedEvent;
|
2026-07-29 08:29:29 +00:00
|
|
|
sharedEvent = sharedEvent.sharedEvent;
|
|
|
|
|
sharedEvent.addListener(sharedEvent.stackTag, () => {
|
|
|
|
|
sharedEvent(sharedEvent[1]).applyStyle(sharedEvent, sharedEvent.value);
|
|
|
|
|
});
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
let obj = { applyStyle: createViewDescriptorPaper.applyStyle };
|
2026-07-29 08:29:29 +00:00
|
|
|
startScreenTransition.__closure = obj;
|
|
|
|
|
startScreenTransition.__workletHash = 9428952089760;
|
|
|
|
|
startScreenTransition.__initData = { code: "function startScreenTransition_Pnpm_animationManagerTs1(screenTransitionConfig){const{applyStyle}=this.__closure;const{stackTag:stackTag,sharedEvent:sharedEvent}=screenTransitionConfig;sharedEvent.addListener(stackTag,function(){applyStyle(screenTransitionConfig,sharedEvent.value);});}" };
|
|
|
|
|
function getLockAxis(arg0) {
|
|
|
|
|
const items = ["swipeRight", "swipeLeft", "horizontalSwipe"];
|
|
|
|
|
let str = "x";
|
|
|
|
|
if (!items.includes(arg0)) {
|
|
|
|
|
const items1 = ["swipeUp", "swipeDown", "verticalSwipe"];
|
|
|
|
|
let str2;
|
|
|
|
|
if (items1.includes(arg0)) {
|
|
|
|
|
str2 = "y";
|
|
|
|
|
}
|
|
|
|
|
str = str2;
|
|
|
|
|
}
|
|
|
|
|
return str;
|
|
|
|
|
}
|
|
|
|
|
getLockAxis.__closure = {};
|
|
|
|
|
getLockAxis.__workletHash = 16916946798878;
|
|
|
|
|
getLockAxis.__initData = { code: "function getLockAxis_Pnpm_animationManagerTs2(goBackGesture){if(['swipeRight','swipeLeft','horizontalSwipe'].includes(goBackGesture)){return'x';}else if(['swipeUp','swipeDown','verticalSwipe'].includes(goBackGesture)){return'y';}return undefined;}" };
|
|
|
|
|
function finishScreenTransition(stackTag) {
|
|
|
|
|
({ sharedEvent, goBackGesture } = stackTag);
|
|
|
|
|
sharedEvent.removeListener(stackTag.stackTag);
|
2026-08-04 21:03:28 +00:00
|
|
|
if (typeof getLockAxis !== "function") {
|
2026-07-29 08:29:29 +00:00
|
|
|
HermesBuiltin.throwTypeError();
|
|
|
|
|
}
|
|
|
|
|
const items = ["swipeRight", "swipeLeft", "horizontalSwipe"];
|
|
|
|
|
let str = "x";
|
|
|
|
|
if (!items.includes(goBackGesture)) {
|
|
|
|
|
const items1 = ["swipeUp", "swipeDown", "verticalSwipe"];
|
|
|
|
|
let str2;
|
|
|
|
|
if (items1.includes(goBackGesture)) {
|
|
|
|
|
str2 = "y";
|
|
|
|
|
}
|
|
|
|
|
str = str2;
|
|
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
computeEasingProgress.getSwipeSimulator(sharedEvent.value, stackTag, str)();
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
obj = { getLockAxis, getSwipeSimulator: computeEasingProgress.getSwipeSimulator };
|
2026-07-29 08:29:29 +00:00
|
|
|
finishScreenTransition.__closure = obj;
|
|
|
|
|
finishScreenTransition.__workletHash = 6937010294861;
|
|
|
|
|
finishScreenTransition.__initData = { code: "function finishScreenTransition_Pnpm_animationManagerTs3(screenTransitionConfig){const{getLockAxis,getSwipeSimulator}=this.__closure;const{stackTag:stackTag,sharedEvent:sharedEvent,goBackGesture:goBackGesture}=screenTransitionConfig;sharedEvent.removeListener(stackTag);const lockAxis=getLockAxis(goBackGesture);const step=getSwipeSimulator(sharedEvent.value,screenTransitionConfig,lockAxis);step();}" };
|
|
|
|
|
|
|
|
|
|
export { startScreenTransition };
|
|
|
|
|
export { finishScreenTransition };
|