"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 Panel = _configContext$layout.Panel,
        Row = _configContext$layout.Row;
  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(
        Row,
        null,
        React.createElement(Field, { name: "responsibleDepartment" }),
        React.createElement(Field, { name: "owner" })
      ),
      React.createElement(Field, { name: "scopeNote" })
    )
  );
};

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