// Metro module 5328 (f5329). 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 RotationGesture; let env3229 = {}; env3229[4] = function _isNativeReflectConstruct() { let c14802_0; try { c14802_0 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); } catch ($e) {} const _isNativeReflectConstruct2 = function _isNativeReflectConstruct() { return !!c14802_0; }; env3229[4] = _isNativeReflectConstruct2; return _isNativeReflectConstruct2(); }; const changeEventCalculator2 = function changeEventCalculator(a0, a1) { return { ...a0, ...a1 === void 0 ? { rotationChange: a0.rotation } : { rotationChange: a0.rotation - a1.rotation } }; }; changeEventCalculator2.__closure = {}; changeEventCalculator2.__workletHash = 11988645380499; changeEventCalculator2.__initData = { code: "function changeEventCalculator_Pnpm_rotationGestureTs1(current,previous){let changePayload;if(previous===undefined){changePayload={rotationChange:current.rotation};}else{changePayload={rotationChange:current.rotation-previous.rotation};}return{...current,...changePayload};}" }; changeEventCalculator = changeEventCalculator2; RotationGesture = function RotationGesture() { _classCallCheck(this, RotationGesture); const r8 = _getPrototypeOf(RotationGesture); const r20 = _possibleConstructorReturn(this, (0, env3229[4])() ? Reflect.construct(r8, [], _getPrototypeOf(this).constructor) : r8.apply(this, void 0)); r20.handlerName = "RotationGestureHandler"; return r20; }; _inherits(RotationGesture, ContinousBaseGesture); exports.RotationGesture = _createClass(RotationGesture, [{ key: "onChange", value: function onChange(a0) { this.handlers.changeEventCalculator = changeEventCalculator; const _this = this; let r13 = _get(_getPrototypeOf(RotationGesture.prototype), "onChange", this); let c25424_1 = r13; if (typeof r13 === "function") { r13 = function(a0) { return c25424_1.apply(_this, a0); }; } return r13([a0]); } }]);