79 lines
4.7 KiB
React
79 lines
4.7 KiB
React
/* Metro module 1794; source: unknown; dependencies: [1709, 1795, 1796] */
|
|
function _fun19690(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#19690, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1921:6, offset: 0x00eb1681, size: 167 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(require(1709) /* metro dependency 1709 */).configureProps();
|
|
object = {code: 'function startScreenTransition_Pnpm_animationManagerTs1(screenTransitionConfig){const{applyStyle}=this.__closure;const{stackTag:stackTag,sharedEvent:sharedEvent}=screenTransitionConfig;sharedEvent.addListener(stackTag,function(){applyStyle(screenTransitionConfig,sharedEvent.value);});}'};
|
|
value = _fun19691();
|
|
object = {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;}"};
|
|
const env0_4 = _fun19694();
|
|
object = {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();}'};
|
|
const value2 = _fun19696();
|
|
exports.startScreenTransition = value;
|
|
exports.finishScreenTransition = value2;
|
|
}
|
|
|
|
function _fun19691() { // fn#19691, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1921:421, offset: 0x00eb1728, size: 79 bytes, params: 1, frame: 14
|
|
const closure = function(a0) {
|
|
var env0_0 = a0;
|
|
var stackTag = a0.stackTag;
|
|
var sharedEvent = a0.sharedEvent;
|
|
var env0_1 = sharedEvent;
|
|
sharedEvent.addListener(stackTag, _fun19693);
|
|
};
|
|
const object2 = {};
|
|
object2.applyStyle = (require(1795) /* metro dependency 1795 */).applyStyle;
|
|
closure.__closure = object2;
|
|
closure.__workletHash = 9428952089760;
|
|
closure.__initData = env0_2;
|
|
return closure;
|
|
}
|
|
|
|
function _fun19694() { // fn#19694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1921:929, offset: 0x00eb17dc, size: 46 bytes, params: 1, frame: 2
|
|
const closure = function(a0) {
|
|
return ['swipeRight', 'swipeLeft', 'horizontalSwipe'].includes(a0) ? 'x' : ['swipeUp', 'swipeDown',
|
|
'verticalSwipe'].includes(a0) ? 'y' : undefined;
|
|
};
|
|
closure.__closure = {};
|
|
closure.__workletHash = 16916946798878;
|
|
closure.__initData = env0_3;
|
|
return closure;
|
|
}
|
|
|
|
function _fun19696() { // fn#19696, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1921:1587, offset: 0x00eb184a, size: 90 bytes, params: 1, frame: 14
|
|
const closure = finishScreenTransition;
|
|
const object2 = {};
|
|
object2.getLockAxis = env0_4;
|
|
const getSwipeSimulator = (require(1796) /* metro dependency 1796 */).getSwipeSimulator;
|
|
object2.getSwipeSimulator = getSwipeSimulator;
|
|
closure.__closure = object2;
|
|
closure.__workletHash = 6937010294861;
|
|
closure.__initData = env0_5;
|
|
return closure;
|
|
}
|
|
|
|
function startScreenTransition(a0) { // fn#19692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1921:438, offset: 0x00eb1777, size: 46 bytes, params: 2, frame: 13
|
|
const env0_0 = a0;
|
|
a0.sharedEvent.addListener(a0.stackTag, _fun19693);
|
|
}
|
|
|
|
function finishScreenTransition(a0) { // fn#19697, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1921:1604, offset: 0x00eb18a4, size: 90 bytes, params: 2, frame: 17
|
|
const stackTag = a0.stackTag;
|
|
const sharedEvent = a0.sharedEvent;
|
|
const goBackGesture = a0.goBackGesture;
|
|
sharedEvent.removeListener(stackTag);
|
|
let value = environment.__proto__;
|
|
const value2 = env1_4(goBackGesture);
|
|
value = require(1796) /* metro dependency 1796 */;
|
|
const getSwipeSimulator = value.getSwipeSimulator;
|
|
Reflect.apply(getSwipeSimulator, value, [sharedEvent.value, a0, value2])();
|
|
}
|
|
|
|
function _fun19693() { // fn#19693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1921:522, offset: 0x00eb17a5, size: 55 bytes, params: 1, frame: 14
|
|
let value = environment.__proto__.__proto__;
|
|
value = require(1795) /* metro dependency 1795 */;
|
|
value.applyStyle(env0_0, sharedEvent.value);
|
|
}
|
|
|