"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
  } = configContext.recordComponents;
  return /*#__PURE__*/React.createElement(Field, {
    name: "document"
  }, /*#__PURE__*/React.createElement(Panel, {
    name: "objectEntryInfo",
    collapsible: true
  }, /*#__PURE__*/React.createElement(Cols, null, /*#__PURE__*/React.createElement(Col, null, /*#__PURE__*/React.createElement(Field, {
    name: "entryNumber"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "entryReason"
  })), /*#__PURE__*/React.createElement(Col, null, /*#__PURE__*/React.createElement(Field, {
    name: "entryDate"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "entryMethods"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "entryMethod"
  })))), /*#__PURE__*/React.createElement(Field, {
    name: "entryNote"
  })), /*#__PURE__*/React.createElement(Panel, {
    name: "location",
    collapsible: true,
    collapsed: true
  }, /*#__PURE__*/React.createElement(Field, {
    name: "currentLocationGroupList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "currentLocationGroup"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "currentLocation"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "currentLocationFitness"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "currentLocationNote"
  }))), /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "locationDate"
  }), /*#__PURE__*/React.createElement(Col, null))), /*#__PURE__*/React.createElement(Panel, {
    name: "condition",
    collapsible: true,
    collapsed: true
  }, /*#__PURE__*/React.createElement(Cols, null, /*#__PURE__*/React.createElement(Col, null, /*#__PURE__*/React.createElement(Field, {
    name: "conditionCheckMethods"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "conditionCheckMethod"
  })), /*#__PURE__*/React.createElement(Field, {
    name: "conditionCheckReasons"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "conditionCheckReason"
  })), /*#__PURE__*/React.createElement(Field, {
    name: "conditionCheckersOrAssessors"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "conditionCheckerOrAssessor"
  }))), /*#__PURE__*/React.createElement(Col, null, /*#__PURE__*/React.createElement(Field, {
    name: "conditionCheckDate"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "conditionCheckReferenceNumber"
  }))), /*#__PURE__*/React.createElement(Field, {
    name: "conditionCheckNote"
  })));
};

var _default = configContext => ({
  messages: (0, _reactIntl.defineMessages)({
    name: {
      "id": "form.intake.doorstep.name",
      "defaultMessage": "Doorstep Donation Template"
    }
  }),
  sortOrder: 1,
  template: template(configContext)
});

exports.default = _default;