"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});

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

const template = configContext => {
  const React = configContext.lib.React;
  var _configContext$layout = configContext.layoutComponents;
  const Col = _configContext$layout.Col,
        Cols = _configContext$layout.Cols,
        Panel = _configContext$layout.Panel;
  const Field = configContext.recordComponents.Field;


  return React.createElement(
    Field,
    { name: "document" },
    React.createElement(
      Panel,
      { name: "info", collapsible: true },
      React.createElement(Field, { name: "title" }),
      React.createElement(
        Cols,
        null,
        React.createElement(
          Col,
          null,
          React.createElement(Field, { name: "responsibleDepartment" }),
          React.createElement(Field, { name: "owner" })
        ),
        React.createElement(
          Col,
          null,
          React.createElement(Field, { name: "groupEarliestSingleDate" }),
          React.createElement(Field, { name: "groupLatestDate" })
        )
      ),
      React.createElement(Field, { name: "scopeNote" })
    )
  );
};

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