"use strict";

exports.__esModule = true;
exports.getVirtualTableProps = getVirtualTableProps;
var _designSystem = require("@wix/design-system");
var _minimalRequiredWdsRuntimeCheck = require("../../minimalRequiredWdsRuntimeCheck");
var commonStyle = _interopRequireWildcard(require("../common.st.css.js"));
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
function getVirtualTableProps(props) {
  const {
    horizontalScroll
  } = props;
  if (process.env.NODE_ENV !== 'production') {
    // need this version because of style fixes on the WSR side
    (0, _minimalRequiredWdsRuntimeCheck.minimalRequiredWdsRuntimeCheck)({
      required: '^1.114.0',
      requiredBy: 'WixPatterns/TableVirtual'
    });
  }
  const {
    st,
    classes
  } = _designSystem.Table.dataTableRowVirtualStyle;
  return {
    useNewInfiniteScrollLoader: true,
    rowClass: st(classes.root, {
      horizontalScroll
    }),
    headerClass: commonStyle.st(commonStyle.classes.column),
    headerRowClass: st(classes.root, {
      horizontalScroll
    })
  };
}
//# sourceMappingURL=getVirtualTableProps.js.map