"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getColumnCount = getColumnCount;
var _constants = require("../../constants");
function getColumnCount(clientWidth) {
  var small = _constants.FLEX_ITEMS_CONTAINER_BREAKPOINT_NUMBERS.small,
    medium = _constants.FLEX_ITEMS_CONTAINER_BREAKPOINT_NUMBERS.medium,
    large = _constants.FLEX_ITEMS_CONTAINER_BREAKPOINT_NUMBERS.large;
  switch (true) {
    case clientWidth < small:
      return 1;
    case clientWidth >= small && clientWidth < medium:
      return Math.floor(clientWidth / 200);
    case clientWidth >= large:
      return Math.floor(clientWidth / 248);
    default:
      return Math.floor(clientWidth / 220);
  }
}