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

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

exports.default = _default;