"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getAccommodationType = void 0;
var _Core = require("../Core.constants");
const getAccommodationType = (denomination, hotelId) => {
  const base = typeof denomination === 'object' && hotelId ? denomination[hotelId] : denomination;
  let accommodationType = _Core.ACCOMMODATION_TYPE.DEFAULT;
  if (base === 'ROOMS') accommodationType = _Core.ACCOMMODATION_TYPE.ROOM;else if (base === 'APARTMENTS') accommodationType = _Core.ACCOMMODATION_TYPE.APARTMENT;else if (base === 'VILLAS') accommodationType = _Core.ACCOMMODATION_TYPE.VILLA;else if (base === 'PITCHES') accommodationType = _Core.ACCOMMODATION_TYPE.PITCH;else if (base === 'LODGINGS') accommodationType = _Core.ACCOMMODATION_TYPE.ACCOMMODATION;
  return accommodationType;
};
exports.getAccommodationType = getAccommodationType;
//# sourceMappingURL=getAccommodationType.js.map