Files
2026-07-28 01:06:53 +03:00

219 lines
13 KiB
JavaScript

/* Metro module 1654; source: unknown; dependencies: [1655, 1613, 1621, 1618, 1656, 1640, 1658, 1647, 1660, 1617] */
import * as Module01613Module from './module-01613.js'; /* Metro dependency 1613 */
import * as ReanimatedModuleModule from './module-01618-ReanimatedModule.js'; /* Metro dependency 1618 */
import * as MakeShareableModule from './module-01640-makeShareable.js'; /* Metro dependency 1640 */
import * as Module01655Module from './module-01655.js'; /* Metro dependency 1655 */
function _fun18187(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#18187, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1781:6, offset: 0x00e826cd, size: 563 bytes, params: 8, frame: 18
const env0_1 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (Module01655Module).isEdgeToEdge();
const env0_4 = (Module01613Module).shouldBeUseWeb();
const closure = function() {
return true;
};
object = {code: 'function handleAndFlushAnimationFrame_Pnpm_coreTs1(eventTimestamp,event){const{eventHandler}=this.__closure;global.__frameTimestamp=eventTimestamp;eventHandler(event);global.__flushAnimationFrame(eventTimestamp);global.__frameTimestamp=undefined;}'};
object = {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;}'};
const env0_7 = {'enableLayoutAnimations': false, 'setByUser': false};
exports.startMapper = (require(1658) /* metro dependency 1658 */).startMapper;
exports.stopMapper = (require(1658) /* metro dependency 1658 */).stopMapper;
exports.makeMutable = (require(1647) /* metro dependency 1647 */).makeMutable;
exports.createWorkletRuntime = (require(1660) /* metro dependency 1660 */).createWorkletRuntime;
exports.runOnRuntime = (require(1660) /* metro dependency 1660 */).runOnRuntime;
exports.makeShareable = (require(1640) /* metro dependency 1640 */).makeShareable;
exports.makeShareableCloneRecursive = (require(1640) /* metro dependency 1640 */).makeShareableCloneRecursive;
exports.executeOnUIRuntimeSync = (require(1617) /* metro dependency 1617 */).executeOnUIRuntimeSync;
exports.runOnJS = (require(1617) /* metro dependency 1617 */).runOnJS;
exports.runOnUI = (require(1617) /* metro dependency 1617 */).runOnUI;
exports.isReanimated3 = closure;
exports.isConfigured = closure;
exports.getViewProp = getViewProp;
exports.registerEventHandler = registerEventHandler;
exports.unregisterEventHandler = function(a0) {
var ReanimatedModule = require(dependencyMap[3]).ReanimatedModule;
return ReanimatedModule.unregisterEventHandler(a0);
};
exports.subscribeForKeyboardEvents = subscribeForKeyboardEvents;
exports.unsubscribeFromKeyboardEvents = function(a0) {
var ReanimatedModule = require(dependencyMap[3]).ReanimatedModule;
return ReanimatedModule.unsubscribeFromKeyboardEvents(a0);
};
exports.registerSensor = registerSensor;
exports.initializeSensor = initializeSensor;
exports.unregisterSensor = unregisterSensor;
exports.enableLayoutAnimations = enableLayoutAnimations;
exports.configureLayoutAnimationBatch = function(a0) {
var ReanimatedModule = require(dependencyMap[3]).ReanimatedModule;
ReanimatedModule.configureLayoutAnimationBatch(a0);
};
exports.setShouldAnimateExitingForTag = function(a0, a1) {
var ReanimatedModule = require(dependencyMap[3]).ReanimatedModule;
ReanimatedModule.setShouldAnimateExitingForTag(a0, a1);
};
exports.jsiConfigureProps = jsiConfigureProps;
exports.markNodeAsRemovable = function(a0) {
var ReanimatedModule = require(dependencyMap[3]).ReanimatedModule;
ReanimatedModule.markNodeAsRemovable(a0);
};
exports.unmarkNodeAsRemovable = function(a0) {
var ReanimatedModule = require(dependencyMap[3]).ReanimatedModule;
ReanimatedModule.unmarkNodeAsRemovable(a0);
};
function getSensorContainer() { // fn#18188, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1781:189, offset: 0x00e82900, size: 86 bytes, params: 1, frame: 13
var binding;
var SensorContainer;
var value2;
var sensorContainer;
if (!env0_0.__sensorContainer) {
binding = env0_0;
SensorContainer = (require(1656) /* metro dependency 1656 */).SensorContainer;
value2 = Object.create(SensorContainer.prototype, {constructor: {value: SensorContainer}});
sensorContainer = new SensorContainer();
binding.__sensorContainer = sensorContainer instanceof Object ? sensorContainer : value2;
}
return env0_0.__sensorContainer;
}
function getViewProp(a0, a1, a2) { // fn#18190, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1781:1359, offset: 0x00e82956, size: 153 bytes, params: 4, frame: 14
var Promise;
var promise;
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
var value;
if (Module01613Module.isFabric()) {
if (a2) {
Promise = global.Promise;
value = Object.create(Promise.prototype, {constructor: {value: Promise}});
promise = new Promise(_fun18191);
return promise instanceof Object ? promise : value;
}
throw new (require(1621) /* metro dependency 1621 */).ReanimatedError('Function `getViewProp` requires a component to be passed as an argument on Fabric.');
}
Promise = global.Promise;
value = Object.create(Promise.prototype, {constructor: {value: Promise}});
promise = new Promise(_fun18191);
return promise instanceof Object ? promise : value;
function _fun18191(a0, a1) { // fn#18191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1781:1554, offset: 0x00e829ef, size: 82 bytes, params: 3, frame: 17
const env0_0 = a0;
const env0_1 = a1;
const ReanimatedModule = (ReanimatedModuleModule).ReanimatedModule;
return ReanimatedModule.getViewProp(env0_0, require, importDefault, _fun18192);
function _fun18192(a0) { // fn#18192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1781:1619, offset: 0x00e82a41, size: 75 bytes, params: 2, frame: 13
if (typeof a0 !== 'string') {
env0_0(a0);
} else if (a0.substr(0, 6) === 'error:') {
require(a0);
} else {
env0_0(a0);
}
}
}
}
function registerEventHandler(a0, a1) { // fn#18193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1781:1716, offset: 0x00e82a8c, size: 129 bytes, params: 3, frame: 18
const env0_0 = a0;
let value = -1;
const r4 = arguments.length > 2 ? arguments[2] === undefined ? value : arguments[2] : value;
value = _fun18194();
const ReanimatedModule = (ReanimatedModuleModule).ReanimatedModule;
const registerEventHandler = ReanimatedModule.registerEventHandler;
value = (require(1640) /* metro dependency 1640 */).makeShareableCloneRecursive(value);
return Reflect.apply(registerEventHandler, ReanimatedModule, [value, a1, r4]);
function _fun18194() { // fn#18194, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1781:1817, offset: 0x00e82b0d, size: 58 bytes, params: 1, frame: 3
const handleAndFlushAnimationFrame2 = handleAndFlushAnimationFrame;
handleAndFlushAnimationFrame2.__closure = {eventHandler: env0_0};
handleAndFlushAnimationFrame2.__workletHash = 6793284645440;
handleAndFlushAnimationFrame2.__initData = env1_5;
return handleAndFlushAnimationFrame2;
function handleAndFlushAnimationFrame(a0, a1) { // fn#18195, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1781:1834, offset: 0x00e82b47, size: 52 bytes, params: 3, frame: 13
const binding = env2_0;
binding.__frameTimestamp = a0;
env1_0(a1);
binding.__flushAnimationFrame(a0);
binding.__frameTimestamp = undefined;
}
}
}
function subscribeForKeyboardEvents(a0, a1) { // fn#18197, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1781:2289, offset: 0x00e82baa, size: 146 bytes, params: 3, frame: 19
const env0_0 = a0;
let value = _fun18198();
const ReanimatedModule = (ReanimatedModuleModule).ReanimatedModule;
const subscribeForKeyboardEvents = ReanimatedModule.subscribeForKeyboardEvents;
value = (require(1640) /* metro dependency 1640 */).makeShareableCloneRecursive(value);
return Reflect.apply(subscribeForKeyboardEvents, ReanimatedModule, [value,
env0_3 || (a1.isStatusBarTranslucentAndroid ?? a1.isStatusBarTranslucentAndroid != null),
env0_3 || (a1.isNavigationBarTranslucentAndroid ?? a1.isNavigationBarTranslucentAndroid != null)]);
function _fun18198() { // fn#18198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1781:2340, offset: 0x00e82c3c, size: 58 bytes, params: 1, frame: 3
const handleAndFlushAnimationFrame_181992 = handleAndFlushAnimationFrame_18199;
handleAndFlushAnimationFrame_181992.__closure = {eventHandler: env0_0};
handleAndFlushAnimationFrame_181992.__workletHash = 11642615284685;
handleAndFlushAnimationFrame_181992.__initData = env1_6;
return handleAndFlushAnimationFrame_181992;
function handleAndFlushAnimationFrame_18199(a0, a1) { // fn#18199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1781:2357, offset: 0x00e82c76, size: 63 bytes, params: 3, frame: 15
let value = environment.__proto__.__proto__;
const binding = env2_0;
value = binding._getAnimationTimestamp();
binding.__frameTimestamp = value;
env1_0(a0, a1);
binding.__flushAnimationFrame(value);
binding.__frameTimestamp = undefined;
}
}
}
function registerSensor(a0, a1, a2) { // fn#18201, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1781:2958, offset: 0x00e82ce4, size: 68 bytes, params: 4, frame: 16
const sensorContainer = getSensorContainer();
const registerSensor = sensorContainer.registerSensor;
let value = MakeShareableModule;
value = value.makeShareableCloneRecursive(a2);
return Reflect.apply(registerSensor, sensorContainer, [a0, a1, value]);
}
function initializeSensor(a0, a1) { // fn#18202, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1781:3096, offset: 0x00e82d28, size: 33 bytes, params: 3, frame: 13
return getSensorContainer().initializeSensor(a0, a1);
}
function unregisterSensor(a0) { // fn#18203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1781:3197, offset: 0x00e82d49, size: 29 bytes, params: 2, frame: 11
return getSensorContainer().unregisterSensor(a0);
}
function enableLayoutAnimations(a0) { // fn#18204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1781:3300, offset: 0x00e82d66, size: 174 bytes, params: 2, frame: 13
const ReanimatedModule = (ReanimatedModuleModule).ReanimatedModule;
var object;
if (arguments.length > 1) {
if (arguments[1] === undefined) {
object = {enableLayoutAnimations: a0, setByUser: true};
ReanimatedModule.enableLayoutAnimations(a0);
} else if (arguments[1]) {
object = {enableLayoutAnimations: a0, setByUser: true};
ReanimatedModule.enableLayoutAnimations(a0);
} else if (!(env0_7.setByUser || env0_7.enableLayoutAnimations === a0)) {
env0_7.enableLayoutAnimations = a0;
ReanimatedModule.enableLayoutAnimations(a0);
}
} else {
object = {enableLayoutAnimations: a0, setByUser: true};
ReanimatedModule.enableLayoutAnimations(a0);
}
}
function jsiConfigureProps(a0, a1) { // fn#18207, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1781:3903, offset: 0x00e82e76, size: 60 bytes, params: 3, frame: 13
if (!env0_4) {
(require(1618) /* metro dependency 1618 */).ReanimatedModule.configureProps(a0, a1);
}
}
}
global.__d(_fun18187, 1654, [1655, 1613, 1621, 1618, 1656, 1640, 1658, 1647, 1660,
1617]) /* metro module 1654, dependencies: [1655, 1613, 1621, 1618, 1656, 1640, 1658, 1647, 1660, 1617] */;