"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _react = _interopRequireDefault(require("react"));
var _Draggable = require("../DragAndDrop/Draggable");
var _constants = require("./constants");
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/cjs/NestableListBase/withDNDContext.jsx",
  _this = void 0;
var TOUCH_BACKEND_OPTIONS = {
  delayTouchStart: 200,
  ignoreContextMenu: true
};
var preventContextMenu = function preventContextMenu(e) {
  return e.preventDefault();
};
var _default = exports["default"] = function _default(Component) {
  return function (props) {
    return /*#__PURE__*/_react["default"].createElement("div", {
      "data-hook": props.dataHook,
      onContextMenu: preventContextMenu,
      __self: _this,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 14,
        columnNumber: 3
      }
    }, /*#__PURE__*/_react["default"].createElement(_Draggable.Draggable.Manager, {
      dataHook: _constants.dataHooks.provider,
      backendOptions: TOUCH_BACKEND_OPTIONS,
      __self: _this,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 15,
        columnNumber: 5
      }
    }, /*#__PURE__*/_react["default"].createElement(Component, (0, _extends2["default"])({}, props, {
      __self: _this,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 19,
        columnNumber: 7
      }
    }))));
  };
};