Liferay.Loader.define("sharing-web$dnd-core@11.1.3/dist/esm/contracts", ['module', 'exports', 'require'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    function _typeof(obj) {
      "@babel/helpers - typeof";
      if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
        _typeof = function _typeof(obj) {
          return typeof obj;
        };
      } else {
        _typeof = function _typeof(obj) {
          return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
        };
      }return _typeof(obj);
    }

    import { invariant } from '@react-dnd/invariant';
    export function validateSourceContract(source) {
      invariant(typeof source.canDrag === 'function', 'Expected canDrag to be a function.');
      invariant(typeof source.beginDrag === 'function', 'Expected beginDrag to be a function.');
      invariant(typeof source.endDrag === 'function', 'Expected endDrag to be a function.');
    }
    export function validateTargetContract(target) {
      invariant(typeof target.canDrop === 'function', 'Expected canDrop to be a function.');
      invariant(typeof target.hover === 'function', 'Expected hover to be a function.');
      invariant(typeof target.drop === 'function', 'Expected beginDrag to be a function.');
    }
    export function validateType(type, allowArray) {
      if (allowArray && Array.isArray(type)) {
        type.forEach(function (t) {
          return validateType(t, false);
        });
        return;
      }

      invariant(typeof type === 'string' || _typeof(type) === 'symbol', allowArray ? 'Type can only be a string, a symbol, or an array of either.' : 'Type can only be a string or a symbol.');
    }
  }
});
//# sourceMappingURL=contracts.js.map