"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,
    InputTable
  } = configContext.recordComponents;
  return /*#__PURE__*/React.createElement(Field, {
    name: "document"
  }, /*#__PURE__*/React.createElement(Panel, {
    name: "location",
    collapsible: true
  }, /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "movementReferenceNumber"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "normalLocation"
  })), /*#__PURE__*/React.createElement(InputTable, {
    name: "currentLocation"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "currentLocation"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "currentLocationFitness"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "currentLocationNote"
  })), /*#__PURE__*/React.createElement(Cols, null, /*#__PURE__*/React.createElement(Col, null, /*#__PURE__*/React.createElement(Field, {
    name: "locationDate"
  })), /*#__PURE__*/React.createElement(Col, null))), /*#__PURE__*/React.createElement(Panel, {
    name: "movement",
    collapsible: true,
    collapsed: true
  }, /*#__PURE__*/React.createElement(Cols, null, /*#__PURE__*/React.createElement(Col, null, /*#__PURE__*/React.createElement(Field, {
    name: "reasonForMove"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "movementMethods"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "movementMethod"
  })), /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "plannedRemovalDate"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "removalDate"
  }))), /*#__PURE__*/React.createElement(Col, null, /*#__PURE__*/React.createElement(Field, {
    name: "movementContact"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "movementNote"
  })))), /*#__PURE__*/React.createElement(Panel, {
    name: "inventory",
    collapsible: true,
    collapsed: true
  }, /*#__PURE__*/React.createElement(Cols, null, /*#__PURE__*/React.createElement(Col, null, /*#__PURE__*/React.createElement(Field, {
    name: "inventoryActionRequired"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "frequencyForInventory"
  }), /*#__PURE__*/React.createElement(Row, null, /*#__PURE__*/React.createElement(Field, {
    name: "inventoryDate"
  }), /*#__PURE__*/React.createElement(Field, {
    name: "nextInventoryDate"
  }))), /*#__PURE__*/React.createElement(Col, null, /*#__PURE__*/React.createElement(Field, {
    name: "inventoryContactList"
  }, /*#__PURE__*/React.createElement(Field, {
    name: "inventoryContact"
  })), /*#__PURE__*/React.createElement(Field, {
    name: "inventoryNote"
  })))));
};

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

exports.default = _default;