"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.countFilters = void 0;
const _excluded = ["amenities", "priceRange", "sizeRange"];
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
const countFilters = function () {
  let _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
    {
      amenities = [],
      priceRange = {},
      sizeRange = {}
    } = _ref,
    others = _objectWithoutProperties(_ref, _excluded);
  return Object.keys(others).filter(key => key !== 'strictSearch' && !!others[key]).length + amenities.length + (Object.keys(priceRange).length ? 1 : 0) + (Object.keys(sizeRange).length ? 1 : 0);
};
exports.countFilters = countFilters;
//# sourceMappingURL=countFilters.js.map