"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

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

const template = configContext => {
  const {
    React
  } = configContext.lib;
  const {
    Col,
    Row
  } = configContext.layoutComponents;
  const {
    ContentViewer,
    Field
  } = configContext.recordComponents;
  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"
  })))));
};

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

exports.default = _default;