"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 /*#__PURE__*/React.createElement(Field, {
    name: "document"
  }, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(ContentViewer, null), /*#__PURE__*/React.createElement(Col, null, /*#__PURE__*/React.createElement(Field, {
    name: "name"
  }), /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "mimeType"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "length"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "createdAt",
    subpath: "ns2:collectionspace_core"
  }), /*#__PURE__*/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;