"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 Col = _pluginContext$layout.Col,
        Cols = _pluginContext$layout.Cols,
        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(
        Cols,
        null,
        React.createElement(
          Col,
          null,
          React.createElement(Field, { name: "family" }),
          React.createElement(Field, { name: "commonName" }),
          React.createElement(Field, { name: "locale" })
        ),
        React.createElement(
          Col,
          null,
          React.createElement(Field, { name: "taxonName" }),
          React.createElement(
            Row,
            null,
            React.createElement(Field, { name: "numberOfLabels" }),
            React.createElement(Field, { name: "printLabels" })
          )
        )
      ),
      React.createElement(Field, { name: "labelData" })
    )
  );
};

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