"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _reactRedux = require("react-redux");
var _reducers = require("../../reducers");
var _HierarchyInput = _interopRequireDefault(require("../../components/record/HierarchyInput"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const mapStateToProps = (state, ownProps) => {
  const {
    csid
  } = ownProps;
  return {
    isRecordModified: (0, _reducers.isRecordModifiedExceptPart)(state, csid, 'rel:relations-common-list')
  };
};
const ConnectedHierarchyInput = (0, _reactRedux.connect)(mapStateToProps)(_HierarchyInput.default);
ConnectedHierarchyInput.propTypes = _HierarchyInput.default.propTypes;
var _default = ConnectedHierarchyInput;
exports.default = _default;