function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
import _filter from "ramda/src/filter";
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
import { useMemo } from 'react';
var EMPTY_OBJECT = {};
var DEFAULT_CELL_FLEX_PROPS = {
  container: true,
  flex: '1',
  item: true,
  wrap: 'nowrap'
};
var usePickFlexCellProps = function usePickFlexCellProps(_ref) {
  var align = _ref.align,
    alignContent = _ref.alignContent,
    alignItems = _ref.alignItems,
    alignSelf = _ref.alignSelf,
    basis = _ref.basis,
    container = _ref.container,
    direction = _ref.direction,
    flex = _ref.flex,
    grow = _ref.grow,
    gutter = _ref.gutter,
    height = _ref.height,
    item = _ref.item,
    justifyContent = _ref.justifyContent,
    lg = _ref.lg,
    md = _ref.md,
    order = _ref.order,
    shrink = _ref.shrink,
    size = _ref.size,
    sm = _ref.sm,
    wrap = _ref.wrap,
    hidden = _ref.hidden,
    xl = _ref.xl;
  return useMemo(function () {
    return _filter(function (val) {
      return val !== undefined;
    }, {
      align: align,
      alignContent: alignContent,
      alignItems: alignItems,
      alignSelf: alignSelf,
      basis: basis,
      container: container,
      direction: direction,
      flex: flex,
      grow: grow,
      gutter: gutter,
      height: height,
      item: item,
      justifyContent: justifyContent,
      lg: lg,
      md: md,
      order: order,
      shrink: shrink,
      size: size,
      sm: sm,
      wrap: wrap,
      hidden: hidden,
      xl: xl
    });
  }, [align, alignContent, alignItems, alignSelf, basis, container, direction, flex, grow, gutter, height, item, justifyContent, lg, md, order, shrink, size, sm, wrap, hidden, xl]);
};
export var useFlexCellProps = function useFlexCellProps(props) {
  var cellFlexProps = usePickFlexCellProps(props) || EMPTY_OBJECT;
  return _objectSpread(_objectSpread({}, DEFAULT_CELL_FLEX_PROPS), cellFlexProps);
};