"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 {
    Cols,
    Col,
    Panel,
    Row
  } = configContext.layoutComponents;
  const {
    Field,
    InputTable
  } = configContext.recordComponents;
  const {
    extensions
  } = configContext.config;
  return /*#__PURE__*/React.createElement(Field, {
    name: "document"
  }, /*#__PURE__*/React.createElement(Panel, {
    name: "info",
    collapsible: true
  }, /*#__PURE__*/React.createElement(Field, {
    name: "chronologyTermGroupList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "chronologyTermGroup"
  }, /*#__PURE__*/React.createElement(Panel, null, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "termDisplayName"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "termName"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "termQualifier"
  }), /*#__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: "historicalStatus"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "termLanguage"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "termPrefForLang"
  })), /*#__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(Cols, null, /*#__PURE__*/React.createElement(Col, null, /*#__PURE__*/React.createElement(Field, {
    name: "chronologyDateStructuredDateGroup"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "chronologyType"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "chronologyPlaces"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "chronologyPlace"
  }))), /*#__PURE__*/React.createElement(Col, null, /*#__PURE__*/React.createElement(Field, {
    name: "chronologyDescription"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "chronologyNote"
  }))), /*#__PURE__*/React.createElement(Field, {
    name: "identifierGroupList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "identifierGroup"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "identifierValue"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "identifierCitation"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "identifierDate"
  })))), /*#__PURE__*/React.createElement(Panel, {
    name: "associated",
    collapsible: true,
    collapsed: true
  }, extensions.associatedAuthority.form), /*#__PURE__*/React.createElement(Panel, {
    name: "altdate",
    collapsible: true,
    collapsed: true
  }, /*#__PURE__*/React.createElement(Field, {
    name: "otherDateGroupList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "otherDateGroup"
  }, /*#__PURE__*/React.createElement(Panel, null, /*#__PURE__*/React.createElement(Cols, null, /*#__PURE__*/React.createElement(Col, null, /*#__PURE__*/React.createElement(Field, {
    name: "otherDateStructuredDateGroup"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "otherDatePlaces"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "otherDatePlace"
  }))), /*#__PURE__*/React.createElement(Col, null, /*#__PURE__*/React.createElement(Field, {
    name: "otherDateCitations"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "otherDateCitation"
  })), /*#__PURE__*/React.createElement(Field, {
    name: "otherDateNote"
  }))))))), /*#__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.chronology.default.name",
      "defaultMessage": "Standard Template"
    }
  }),
  template: template(configContext)
});
exports.default = _default;