106 lines
3.9 KiB
JavaScript
106 lines
3.9 KiB
JavaScript
// Metro module 5279 (f5280).
|
|
import { tagMessage } from "./deepEqual";
|
|
import { Reanimated } from "./Module5280";
|
|
import * as _Module5278 from "./Module5278";
|
|
const warningMessage = tagMessage("react-native-reanimated is required in order to use synchronous state management");
|
|
const REANIMATED_AVAILABLE = Reanimated?.useSharedValue !== void 0;
|
|
const setGestureState = Reanimated?.setGestureState;
|
|
const __initData = {
|
|
code: "function pnpm_gestureStateManagerTs2(){const{REANIMATED_AVAILABLE,setGestureState,handlerTag,State,warningMessage}=this.__closure;if(REANIMATED_AVAILABLE){setGestureState(handlerTag,State.BEGAN);}else{console.warn(warningMessage);}}"
|
|
};
|
|
const __initData2 = {
|
|
code: "function pnpm_gestureStateManagerTs3(){const{REANIMATED_AVAILABLE,setGestureState,handlerTag,State,warningMessage}=this.__closure;if(REANIMATED_AVAILABLE){setGestureState(handlerTag,State.ACTIVE);}else{console.warn(warningMessage);}}"
|
|
};
|
|
const __initData3 = {
|
|
code: "function pnpm_gestureStateManagerTs4(){const{REANIMATED_AVAILABLE,setGestureState,handlerTag,State,warningMessage}=this.__closure;if(REANIMATED_AVAILABLE){setGestureState(handlerTag,State.FAILED);}else{console.warn(warningMessage);}}"
|
|
};
|
|
const __initData4 = {
|
|
code: "function pnpm_gestureStateManagerTs5(){const{REANIMATED_AVAILABLE,setGestureState,handlerTag,State,warningMessage}=this.__closure;if(REANIMATED_AVAILABLE){setGestureState(handlerTag,State.END);}else{console.warn(warningMessage);}}"
|
|
};
|
|
const create = function create(a0) {
|
|
const T = function T() {
|
|
if (REANIMATED_AVAILABLE) {
|
|
setGestureState(a0, _Module5278.State.BEGAN);
|
|
} else {
|
|
console.warn(warningMessage);
|
|
}
|
|
};
|
|
T.__closure = {
|
|
REANIMATED_AVAILABLE,
|
|
setGestureState,
|
|
handlerTag: a0,
|
|
State: _Module5278.State,
|
|
warningMessage
|
|
};
|
|
T.__workletHash = 4799367197403;
|
|
T.__initData = __initData;
|
|
const S = function S() {
|
|
if (REANIMATED_AVAILABLE) {
|
|
setGestureState(a0, _Module5278.State.ACTIVE);
|
|
} else {
|
|
console.warn(warningMessage);
|
|
}
|
|
};
|
|
S.__closure = {
|
|
REANIMATED_AVAILABLE,
|
|
setGestureState,
|
|
handlerTag: a0,
|
|
State: _Module5278.State,
|
|
warningMessage
|
|
};
|
|
S.__workletHash = 7932903515929;
|
|
S.__initData = __initData2;
|
|
const c = function c() {
|
|
if (REANIMATED_AVAILABLE) {
|
|
setGestureState(a0, _Module5278.State.FAILED);
|
|
} else {
|
|
console.warn(warningMessage);
|
|
}
|
|
};
|
|
c.__closure = {
|
|
REANIMATED_AVAILABLE,
|
|
setGestureState,
|
|
handlerTag: a0,
|
|
State: _Module5278.State,
|
|
warningMessage
|
|
};
|
|
c.__workletHash = 6492077607729;
|
|
c.__initData = __initData3;
|
|
const u = function u() {
|
|
if (REANIMATED_AVAILABLE) {
|
|
setGestureState(a0, _Module5278.State.END);
|
|
} else {
|
|
console.warn(warningMessage);
|
|
}
|
|
};
|
|
u.__closure = {
|
|
REANIMATED_AVAILABLE,
|
|
setGestureState,
|
|
handlerTag: a0,
|
|
State: _Module5278.State,
|
|
warningMessage
|
|
};
|
|
u.__workletHash = 2856860112444;
|
|
u.__initData = __initData4;
|
|
return {
|
|
handlerTag: a0,
|
|
begin: T,
|
|
activate: S,
|
|
fail: c,
|
|
end: u
|
|
};
|
|
};
|
|
create.__closure = {
|
|
REANIMATED_AVAILABLE,
|
|
setGestureState,
|
|
State: _Module5278.State,
|
|
warningMessage
|
|
};
|
|
create.__workletHash = 11660087535665;
|
|
create.__initData = {
|
|
code: "function create_Pnpm_gestureStateManagerTs1(handlerTag){const{REANIMATED_AVAILABLE,setGestureState,State,warningMessage}=this.__closure;return{handlerTag:handlerTag,begin:function(){'worklet';if(REANIMATED_AVAILABLE){setGestureState(handlerTag,State.BEGAN);}else{console.warn(warningMessage);}},activate:function(){'worklet';if(REANIMATED_AVAILABLE){setGestureState(handlerTag,State.ACTIVE);}else{console.warn(warningMessage);}},fail:function(){'worklet';if(REANIMATED_AVAILABLE){setGestureState(handlerTag,State.FAILED);}else{console.warn(warningMessage);}},end:function(){'worklet';if(REANIMATED_AVAILABLE){setGestureState(handlerTag,State.END);}else{console.warn(warningMessage);}}};}"
|
|
};
|
|
export const GestureStateManager = {
|
|
create
|
|
};
|