Files
discord-decomp/_bundle/Module1656.js
T
2026-11-01 12:12:55 +02:00

81 lines
3.8 KiB
JavaScript

// Metro module 1656 (f1657).
import * as _Module1609 from "./Module1609";
import * as _Module1614 from "./Module1614";
import * as _freezeObjectInDev from "./freezeObjectInDev";
import * as _Module1617 from "./Module1617";
import * as _Module1610 from "./Module1610";
import * as _callGuardDEV from "./callGuardDEV";
import * as _Module1631 from "./Module1631";
const shouldBeUseWeb = _Module1609.shouldBeUseWeb();
const __initData = {
code: "function pnpm_runtimesTs1(){const{registerReanimatedError,registerLoggerConfig,config,setupCallGuard,setupConsole,initializer}=this.__closure;var _initializer;registerReanimatedError();registerLoggerConfig(config);setupCallGuard();setupConsole();(_initializer=initializer)===null||_initializer===void 0||_initializer();}"
};
const __initData2 = {
code: "function pnpm_runtimesTs3(){const{worklet,args}=this.__closure;worklet(...args);}"
};
const __initData3 = {
code: "function pnpm_runtimesTs4(){const{worklet,args}=this.__closure;worklet(...args);}"
};
export function runOnRuntime(c24528_0, worklet) {
return _WORKLET ? function(...args) {
let c28937_0 = args;
const u = function u() {
worklet.apply(void 0, [...c28937_0]);
};
u.__closure = {
worklet,
args
};
u.__workletHash = 1376644884193;
u.__initData = __initData2;
return global._scheduleOnRuntime(c24528_0, _freezeObjectInDev.makeShareableCloneOnUIRecursive(u));
} : function(...args) {
let c28938_0 = args;
const r19 = function l() {
worklet.apply(void 0, [...c28938_0]);
};
r19.__closure = {
worklet,
args
};
r19.__workletHash = 10918069222950;
r19.__initData = __initData3;
return _Module1614.ReanimatedModule.scheduleOnRuntime(c24528_0, _freezeObjectInDev.makeShareableCloneRecursive(r19));
};
}
runOnRuntime.__closure = {
__DEV__: false,
SHOULD_BE_USE_WEB: shouldBeUseWeb,
isWorkletFunction: _Module1631.isWorkletFunction,
makeShareableCloneOnUIRecursive: _freezeObjectInDev.makeShareableCloneOnUIRecursive,
ReanimatedModule: _Module1614.ReanimatedModule,
makeShareableCloneRecursive: _freezeObjectInDev.makeShareableCloneRecursive
};
runOnRuntime.__workletHash = 14671185280560;
runOnRuntime.__initData = {
code: "function runOnRuntime_Pnpm_runtimesTs2(workletRuntime,worklet){const{__DEV__,SHOULD_BE_USE_WEB,isWorkletFunction,makeShareableCloneOnUIRecursive,ReanimatedModule,makeShareableCloneRecursive}=this.__closure;if(__DEV__&&!SHOULD_BE_USE_WEB&&!isWorkletFunction(worklet)){throw new ReanimatedError('The function passed to `runOnRuntime` is not a worklet.'+(_WORKLET?' Please make sure that `processNestedWorklets` option in Reanimated Babel plugin is enabled.':''));}if(_WORKLET){return function(...args){return global._scheduleOnRuntime(workletRuntime,makeShareableCloneOnUIRecursive(function(){'worklet';worklet(...args);}));};}return function(...args){return ReanimatedModule.scheduleOnRuntime(workletRuntime,makeShareableCloneRecursive(function(){'worklet';worklet(...args);}));};}"
};
export function createWorkletRuntime(a0, a1) {
const __reanimatedLoggerConfig2 = __reanimatedLoggerConfig;
const r18 = function l() {
_Module1617.registerReanimatedError();
_Module1610.registerLoggerConfig(__reanimatedLoggerConfig2);
_callGuardDEV.setupCallGuard();
_callGuardDEV.setupConsole();
if (a1 != null) {
a1();
}
};
r18.__closure = {
registerReanimatedError: _Module1617.registerReanimatedError,
registerLoggerConfig: _Module1610.registerLoggerConfig,
config: __reanimatedLoggerConfig2,
setupCallGuard: _callGuardDEV.setupCallGuard,
setupConsole: _callGuardDEV.setupConsole,
initializer: a1
};
r18.__workletHash = 8531807001072;
r18.__initData = __initData;
return _Module1614.ReanimatedModule.createWorkletRuntime(a0, _freezeObjectInDev.makeShareableCloneRecursive(r18));
}