"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,
        Panel = _configContext$layout.Panel,
        Row = _configContext$layout.Row;
  var _configContext$record = configContext.recordComponents;
  const Field = _configContext$record.Field,
        InputTable = _configContext$record.InputTable;


  return React.createElement(
    Field,
    { name: "document" },
    React.createElement(
      Panel,
      { name: "useOfCollections", collapsible: true },
      React.createElement(
        Row,
        null,
        React.createElement(
          Col,
          null,
          React.createElement(Field, { name: "referenceNumber" })
        ),
        React.createElement(
          Col,
          null,
          React.createElement(
            Field,
            { name: "methodList" },
            React.createElement(Field, { name: "method" })
          )
        )
      ),
      React.createElement(Field, { name: "title" }),
      React.createElement(
        InputTable,
        { name: "authorizedBy" },
        React.createElement(Field, { name: "authorizedBy" }),
        React.createElement(Field, { name: "authorizationDate" }),
        React.createElement(Field, { name: "authorizationNote" })
      ),
      React.createElement(
        Row,
        null,
        React.createElement(Field, { name: "startSingleDate" }),
        React.createElement(Field, { name: "endDate" })
      ),
      React.createElement(
        Row,
        null,
        React.createElement(
          Field,
          { name: "userGroupList" },
          React.createElement(
            Field,
            { name: "userGroup" },
            React.createElement(Field, { name: "user" }),
            React.createElement(Field, { name: "userType" })
          )
        ),
        React.createElement(Field, { name: "location" })
      ),
      React.createElement(
        Row,
        null,
        React.createElement(Field, { name: "note" }),
        React.createElement(Field, { name: "provisos" })
      ),
      React.createElement(Field, { name: "result" })
    )
  );
};

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