"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _reactIntl = require("react-intl");

const template = configContext => (data, config) => {
  const {
    React
  } = configContext.lib;
  const {
    Row
  } = configContext.layoutComponents;
  const {
    Field
  } = configContext.recordComponents;
  const workflowStateField = config.showTermListStateIcon ? /*#__PURE__*/React.createElement(Field, {
    name: "workflowState",
    flex: "0 0 32px"
  }) : null;
  return /*#__PURE__*/React.createElement(Field, {
    name: "document"
  }, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "displayName"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "source"
  })), /*#__PURE__*/React.createElement(Field, {
    name: "description"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "list-item",
    subpath: "ns2:abstract-common-list"
  }, workflowStateField, /*#__PURE__*/React.createElement(Field, {
    name: "displayName"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "description"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "source"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "sourcePage"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "termStatus"
  })));
};

var _default = configContext => ({
  messages: (0, _reactIntl.defineMessages)({
    name: {
      "id": "form.vocabulary.default.name",
      "defaultMessage": "Standard Template"
    }
  }),
  template: template(configContext)
});

exports.default = _default;