// Metro module 5311 (f5312). import _classCallCheck from "./_classCallCheck"; import _createClass from "./_createClass"; import _possibleConstructorReturn from "./_possibleConstructorReturn"; import _getPrototypeOf from "./_getPrototypeOf"; import _get from "./_get"; import _inherits from "./_inherits"; import { ContinousBaseGesture } from "./Gesture"; let changeEventCalculator; let HoverGesture; let env3207 = {}; env3207[4] = function _isNativeReflectConstruct() { let c14790_0; try { c14790_0 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); } catch ($e) {} const _isNativeReflectConstruct2 = function _isNativeReflectConstruct() { return !!c14790_0; }; env3207[4] = _isNativeReflectConstruct2; return _isNativeReflectConstruct2(); }; const r25 = { NONE: 0, 0: "NONE", LIFT: 1, 1: "LIFT", HIGHLIGHT: 2, 2: "HIGHLIGHT" }; const changeEventCalculator2 = function changeEventCalculator(a0, a1) { return { ...a0, ...a1 === void 0 ? { changeX: a0.x, changeY: a0.y } : { changeX: a0.x - a1.x, changeY: a0.y - a1.y } }; }; changeEventCalculator2.__closure = {}; changeEventCalculator2.__workletHash = 2074844346342; changeEventCalculator2.__initData = { code: "function changeEventCalculator_Pnpm_hoverGestureTs1(current,previous){let changePayload;if(previous===undefined){changePayload={changeX:current.x,changeY:current.y};}else{changePayload={changeX:current.x-previous.x,changeY:current.y-previous.y};}return{...current,...changePayload};}" }; changeEventCalculator = changeEventCalculator2; HoverGesture = function HoverGesture() { _classCallCheck(this, HoverGesture); const r8 = _getPrototypeOf(HoverGesture); const r20 = _possibleConstructorReturn(this, (0, env3207[4])() ? Reflect.construct(r8, [], _getPrototypeOf(this).constructor) : r8.apply(this, void 0)); r20.config = {}; r20.handlerName = "HoverGestureHandler"; return r20; }; _inherits(HoverGesture, ContinousBaseGesture); const r47 = _createClass(HoverGesture, [{ key: "effect", value: function effect(a0) { this.config.hoverEffect = a0; return this; } }, { key: "onChange", value: function onChange(a0) { this.handlers.changeEventCalculator = changeEventCalculator; const _this = this; let r13 = _get(_getPrototypeOf(HoverGesture.prototype), "onChange", this); let c25421_1 = r13; if (typeof r13 === "function") { r13 = function(a0) { return c25421_1.apply(_this, a0); }; } return r13([a0]); } }]); export { r25 as HoverEffect }; export const hoverGestureHandlerProps = ["hoverEffect"]; export { r47 as HoverGesture };