"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.TYPE = exports.SHAPE = exports.PLACE = exports.ERROR = exports.DEFAULT_AMOUNT = exports.DATASOURCE = void 0;
var _propTypes = _interopRequireDefault(require("prop-types"));
var _constants = require("../../helpers/constants");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const {
  APARTMENT,
  ACCOMMODATION,
  PITCH,
  ROOM,
  VILLA
} = _constants.ACCOMMODATION_TYPE;
const DEFAULT_AMOUNT = exports.DEFAULT_AMOUNT = 2;
const ERROR = exports.ERROR = {
  NOT_FILLED: {
    code: 2,
    type: 'warn',
    message: 'Not all fields have been filled out'
  }
};
const PLACE = exports.PLACE = {
  [ACCOMMODATION]: 'accommodation',
  [APARTMENT]: 'apartment',
  [PITCH]: 'pitch',
  [ROOM]: 'room',
  [VILLA]: 'villa'
};
const SHAPE = exports.SHAPE = {
  DATASOURCE: _propTypes.default.shape({
    type: _propTypes.default.number,
    age: _propTypes.default.arrayOf(_propTypes.default.number),
    max: _propTypes.default.number,
    min: _propTypes.default.number,
    fulfill: _propTypes.default.bool
  }),
  VALUE: _propTypes.default.shape({
    ages: _propTypes.default.arrayOf(_propTypes.default.number),
    amount: _propTypes.default.number,
    type: _propTypes.default.number
  })
};
const TYPE = exports.TYPE = {
  GUEST: 1,
  ADULT: 2,
  CHILD: 3
};
const DATASOURCE = exports.DATASOURCE = [{
  type: TYPE.ADULT,
  min: 1,
  age: [18]
}, {
  type: TYPE.CHILD,
  age: [0, 17],
  fulfill: true
}];
//# sourceMappingURL=Occupation.constants.js.map