"use strict";

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

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

const template = pluginContext => {
  const React = pluginContext.lib.React;
  var _pluginContext$layout = pluginContext.layoutComponents;
  const Panel = _pluginContext$layout.Panel,
        Row = _pluginContext$layout.Row;
  const Field = pluginContext.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 = pluginContext => ({
  messages: (0, _reactIntl.defineMessages)({
    name: {
      "id": "form.group.default.name",
      "defaultMessage": "Standard Template"
    }
  }),
  template: template(pluginContext)
});