"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.legacyGetHideDisplayMd = exports.getHideDisplayXl = exports.getHideDisplayLg = exports.getHideDisplayMd = exports.getHideDisplaySm = exports.getHideDisplay = void 0;

var getHideDisplay = function getHideDisplay(hide, size) {
  if (typeof hide === 'string') {
    // eslint-disable-next-line no-console
    console.warn('string value for hide is being deprecated. Please pass values in as an array.');
    return hide === size ? 'none' : undefined;
  }

  if (hide && hide[0]) {
    return hide.includes(size) ? 'none' : undefined;
  }
};

exports.getHideDisplay = getHideDisplay;

var getHideDisplaySm = function getHideDisplaySm(_ref) {
  var hide = _ref.hide;
  return getHideDisplay(hide, 'sm');
};

exports.getHideDisplaySm = getHideDisplaySm;

var getHideDisplayMd = function getHideDisplayMd(_ref2) {
  var hide = _ref2.hide;
  return getHideDisplay(hide, 'md');
};

exports.getHideDisplayMd = getHideDisplayMd;

var getHideDisplayLg = function getHideDisplayLg(_ref3) {
  var hide = _ref3.hide;
  return getHideDisplay(hide, 'lg');
};

exports.getHideDisplayLg = getHideDisplayLg;

var getHideDisplayXl = function getHideDisplayXl(_ref4) {
  var hide = _ref4.hide;
  return getHideDisplay(hide, 'xl');
};

exports.getHideDisplayXl = getHideDisplayXl;

var legacyGetHideDisplayMd = function legacyGetHideDisplayMd(_ref5) {
  var hide = _ref5.hide;
  return hide === 'md' ? 'none' : undefined;
};

exports.legacyGetHideDisplayMd = legacyGetHideDisplayMd;