"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,
    Cols,
    Panel
  } = configContext.layoutComponents;
  const {
    Field,
    Subrecord
  } = configContext.recordComponents;
  const {
    extensions
  } = configContext.config;
  return /*#__PURE__*/React.createElement(Field, {
    name: "document"
  }, /*#__PURE__*/React.createElement(Panel, {
    name: "media",
    collapsible: true
  }, /*#__PURE__*/React.createElement(Cols, null, /*#__PURE__*/React.createElement(Col, null, /*#__PURE__*/React.createElement(Field, {
    name: "identificationNumber"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "title"
  })), /*#__PURE__*/React.createElement(Col, null, /*#__PURE__*/React.createElement(Field, {
    name: "publishToList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "publishTo"
  })))), /*#__PURE__*/React.createElement(Panel, {
    name: "file",
    collapsible: true
  }, /*#__PURE__*/React.createElement(Subrecord, {
    name: "blob",
    showDetachButton: true
  })), /*#__PURE__*/React.createElement(Field, {
    name: "externalUrl"
  }), extensions.dimension.form, /*#__PURE__*/React.createElement(Field, {
    name: "checksumGroupList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "checksumGroup"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "checksumValue"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "checksumType"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "checksumDate"
  }))), /*#__PURE__*/React.createElement(Cols, null, /*#__PURE__*/React.createElement(Col, null, /*#__PURE__*/React.createElement(Field, {
    name: "contributor"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "creator"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "languageList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "language"
  })), /*#__PURE__*/React.createElement(Field, {
    name: "publisher"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "relationList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "relation"
  })), /*#__PURE__*/React.createElement(Field, {
    name: "copyrightStatement"
  })), /*#__PURE__*/React.createElement(Col, null, /*#__PURE__*/React.createElement(Field, {
    name: "typeList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "type"
  })), /*#__PURE__*/React.createElement(Field, {
    name: "coverage"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "dateGroupList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "dateGroup"
  })), /*#__PURE__*/React.createElement(Field, {
    name: "source"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "subjectList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "subject"
  })), /*#__PURE__*/React.createElement(Field, {
    name: "rightsHolder"
  }))), /*#__PURE__*/React.createElement(Field, {
    name: "description"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "altText"
  })));
};

var _default = configContext => ({
  messages: (0, _reactIntl.defineMessages)({
    name: {
      "id": "form.media.default.name",
      "defaultMessage": "Standard Template"
    }
  }),
  template: template(configContext)
});

exports.default = _default;