"use strict";

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

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

var _default = () => ({
  messages: (0, _reactIntl.defineMessages)({
    name: {
      "id": "form.blob.default.name",
      "defaultMessage": "Standard Template"
    }
  }),
  sortOrder: 0,
  template: data => {
    if (!data) {
      return null;
    }

    const document = data.get('document');

    if (!document) {
      return null;
    } // Show the view template if this is an existing record, or the upload template if new.


    return document.getIn(['ns2:collectionspace_core', 'uri']) ? 'view' : 'upload';
  }
});

exports.default = _default;