"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 {
    Panel,
    Row
  } = configContext.layoutComponents;
  const {
    Field,
    InputTable
  } = configContext.recordComponents;
  return /*#__PURE__*/React.createElement(Field, {
    name: "document"
  }, /*#__PURE__*/React.createElement(Panel, {
    name: "info",
    collapsible: true
  }, /*#__PURE__*/React.createElement(Field, {
    name: "citationTermGroupList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "citationTermGroup"
  }, /*#__PURE__*/React.createElement(Panel, null, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "termDisplayName"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "termStatus"
  })), /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "termType"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "termFlag"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "termLanguage"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "termPrefForLang"
  })), /*#__PURE__*/React.createElement(Field, {
    name: "termFullCitation"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "termTitle"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "termSubTitle"
  }), /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "termSectionTitle"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "termVolume"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "termIssue"
  })), /*#__PURE__*/React.createElement(InputTable, {
    name: "termSource"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "termSource"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "termSourceDetail"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "termSourceID"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "termSourceNote"
  }))))), /*#__PURE__*/React.createElement(Field, {
    name: "citationPublicationInfoGroupList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "citationPublicationInfoGroup"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "publisher"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "publicationPlace"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "publicationDate"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "edition"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "pages"
  }))), /*#__PURE__*/React.createElement(Field, {
    name: "citationAgentInfoGroupList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "citationAgentInfoGroup"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "agent"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "role"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "note"
  }))), /*#__PURE__*/React.createElement(Field, {
    name: "citationNote"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "citationResourceIdentGroupList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "citationResourceIdentGroup"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "resourceIdent"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "type"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "captureDate"
  }))), /*#__PURE__*/React.createElement(Field, {
    name: "citationRelatedTermsGroupList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "citationRelatedTermsGroup"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "relatedTerm"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "relationType"
  })))), /*#__PURE__*/React.createElement(Panel, {
    name: "hierarchy",
    collapsible: true,
    collapsed: true
  }, /*#__PURE__*/React.createElement(Field, {
    name: "relation-list-item",
    subpath: "rel:relations-common-list"
  })));
};

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

exports.default = _default;