"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
  } = configContext.recordComponents;
  return /*#__PURE__*/React.createElement(Field, {
    name: "document"
  }, /*#__PURE__*/React.createElement(Panel, {
    name: "info",
    collapsible: true
  }, /*#__PURE__*/React.createElement(Cols, null, /*#__PURE__*/React.createElement(Col, null, /*#__PURE__*/React.createElement(Field, {
    name: "conservationNumber"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "conservationStatusGroupList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "conservationStatusGroup"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "status"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "statusDate"
  }))), /*#__PURE__*/React.createElement(Field, {
    name: "treatmentPurpose"
  })), /*#__PURE__*/React.createElement(Col, null, /*#__PURE__*/React.createElement(Field, {
    name: "conservators"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "conservator"
  })), /*#__PURE__*/React.createElement(Field, {
    name: "otherPartyGroupList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "otherPartyGroup"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "otherParty"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "otherPartyRole"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "otherPartyNote"
  }))))), /*#__PURE__*/React.createElement(Field, {
    name: "examinationGroupList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "examinationGroup"
  }, /*#__PURE__*/React.createElement(Panel, null, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "examinationStaff"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "examinationPhase"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "examinationDate"
  })), /*#__PURE__*/React.createElement(Field, {
    name: "examinationNote"
  })))), /*#__PURE__*/React.createElement(Field, {
    name: "fabricationNote"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "proposedTreatment"
  }), /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "approvedBy"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "approvedDate"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "treatmentStartDate"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "treatmentEndDate"
  })), /*#__PURE__*/React.createElement(Field, {
    name: "treatmentSummary"
  })), /*#__PURE__*/React.createElement(Panel, {
    name: "objectAnalysisInfo",
    collapsible: true,
    collapsed: true
  }, /*#__PURE__*/React.createElement(Field, {
    name: "proposedAnalysis"
  }), /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "researcher"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "proposedAnalysisDate"
  })), /*#__PURE__*/React.createElement(Field, {
    name: "destAnalysisGroupList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "destAnalysisGroup"
  }, /*#__PURE__*/React.createElement(Panel, null, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "destAnalysisApprovedDate"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "destAnalysisApprovalNote"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "sampleBy"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "sampleDate"
  })), /*#__PURE__*/React.createElement(Field, {
    name: "sampleDescription"
  }), /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "sampleReturned"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "sampleReturnedLocation"
  }))))), /*#__PURE__*/React.createElement(Field, {
    name: "analysisMethod"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "analysisResults"
  })));
};

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

exports.default = _default;