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