Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
39 lines
1.5 KiB
JavaScript
39 lines
1.5 KiB
JavaScript
// Module ID: 1815
|
|
// Function ID: 1816
|
|
// Dependencies: [1640, 1639]
|
|
|
|
// Module 1815
|
|
import _mod1640 from "module_1640" /* 1640 */;
|
|
import module_1639 from "module_1639" /* 1639 */;
|
|
|
|
function setGestureStateNative(arg0, arg1) {
|
|
if (globalThis._WORKLET) {
|
|
global._setGestureState(arg0, arg1);
|
|
} else {
|
|
const logger = _mod1640.logger;
|
|
logger.warn("You can not use setGestureState in non-worklet function.");
|
|
}
|
|
}
|
|
setGestureStateNative.__closure = { logger: _mod1640.logger };
|
|
setGestureStateNative.__workletHash = 13301434022691;
|
|
setGestureStateNative.__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 (!module_1639.shouldBeUseWeb()) {
|
|
exports.setGestureState = setGestureStateNative;
|
|
} else {
|
|
const _module1 = module_1639;
|
|
if (_module1.isJest()) {
|
|
function setGestureStateJest() {
|
|
const logger = _mod1640.logger;
|
|
logger.warn("setGestureState() cannot be used with Jest.");
|
|
}
|
|
} else {
|
|
const _module2 = module_1639;
|
|
setGestureStateJest = _module2.isChromeDebugger() ? (function setGestureStateChromeDebugger() {
|
|
const logger = _mod1640.logger;
|
|
logger.warn("setGestureState() cannot be used with Chrome Debugger.");
|
|
}) : (function setGestureStateDefault() {
|
|
const logger = _mod1640.logger;
|
|
logger.warn("setGestureState() is not supported on this configuration.");
|
|
});
|
|
}
|
|
}
|