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


  return React.createElement(
    Field,
    { name: "document" },
    React.createElement(
      Row,
      null,
      React.createElement(ContentViewer, null),
      React.createElement(
        Col,
        null,
        React.createElement(Field, { name: "name" }),
        React.createElement(
          Row,
          null,
          React.createElement(Field, { name: "mimeType" }),
          React.createElement(Field, { name: "length" }),
          React.createElement(Field, { name: "createdAt", subpath: "ns2:collectionspace_core" }),
          React.createElement(Field, { name: "updatedAt", subpath: "ns2:collectionspace_core" })
        )
      )
    )
  );
};

exports.default = configContext => ({
  messages: (0, _reactIntl.defineMessages)({
    name: {
      "id": "form.blob.view.name",
      "defaultMessage": "View Template"
    }
  }),
  sortOrder: 1,
  template: template(configContext)
});