decord/source/__polyfill/01xxx/module_1816.js
github-actions f0f877e8ce chore: update source for alpha 347.1
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
2026-09-15 14:23:42 +00:00

39 lines
1.5 KiB
JavaScript

// Module ID: 1816
// Function ID: 1817
// Dependencies: [1641, 1640]
// Module 1816
import _mod1641 from "module_1641" /* 1641 */;
import module_1640 from "module_1640" /* 1640 */;
function setGestureStateNative(arg0, arg1) {
if (globalThis._WORKLET) {
global._setGestureState(arg0, arg1);
} else {
const logger = _mod1641.logger;
logger.warn("You can not use setGestureState in non-worklet function.");
}
}
setGestureStateNative.__closure = { logger: _mod1641.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_1640.shouldBeUseWeb()) {
exports.setGestureState = setGestureStateNative;
} else {
const _module1 = module_1640;
if (_module1.isJest()) {
function setGestureStateJest() {
const logger = _mod1641.logger;
logger.warn("setGestureState() cannot be used with Jest.");
}
} else {
const _module2 = module_1640;
setGestureStateJest = _module2.isChromeDebugger() ? (function setGestureStateChromeDebugger() {
const logger = _mod1641.logger;
logger.warn("setGestureState() cannot be used with Chrome Debugger.");
}) : (function setGestureStateDefault() {
const logger = _mod1641.logger;
logger.warn("setGestureState() is not supported on this configuration.");
});
}
}