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

28 lines
1.2 KiB
JavaScript

// Metro module 1785 (f1786).
import * as _Module1610 from "./Module1610";
import { shouldBeUseWeb, isJest, isChromeDebugger } from "./Module1609";
let r13 = function setGestureStateNative(a0, a1) {
if (_WORKLET) {
global._setGestureState(a0, a1);
} else {
_Module1610.logger.warn("You can not use setGestureState in non-worklet function.");
}
};
r13.__closure = {
logger: _Module1610.logger
};
r13.__workletHash = 13301434022691;
r13.__initData = {
code: "function setGestureStateNative_Pnpm_setGestureStateTs1(handlerTag,newState){const{logger}=this.__closure;if(!_WORKLET){logger.warn('You can not use setGestureState in non-worklet function.');return;}global._setGestureState(handlerTag,newState);}"
};
if (shouldBeUseWeb()) {
r13 = isJest() ? function setGestureStateJest() {
_Module1610.logger.warn("setGestureState() cannot be used with Jest.");
} : isChromeDebugger() ? function setGestureStateChromeDebugger() {
_Module1610.logger.warn("setGestureState() cannot be used with Chrome Debugger.");
} : function setGestureStateDefault() {
_Module1610.logger.warn("setGestureState() is not supported on this configuration.");
};
}
export { r13 as setGestureState };