"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = pickProProps;
require("core-js/modules/es.regexp.exec.js");
const proFieldProps = 'valueType request plain renderFormItem render text formItemProps valueEnum';
const proFormProps = 'fieldProps isDefaultDom groupProps contentRender submitterProps submitter';
function pickProProps(props) {
  const propList = `${proFieldProps} ${proFormProps}`.split(/[\s\n]+/);
  const attrs = {};
  Object.keys(props || {}).forEach(key => {
    if (propList.includes(key)) {
      return;
    }
    attrs[key] = props[key];
  });
  return attrs;
}