"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.mapVirtualToProps=exports.getVisibleItemBounds=void 0;var _styleToCssString=_interopRequireDefault(require("../helpers/libs/styleToCssString"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var mapVirtualToProps=exports.mapVirtualToProps=function(e,t){var r=e.items,e=e.itemHeight,i=t.startIndex,t=t.endIndex,i=-1<t?r.slice(i,t+1):[],t=r.length*e;return{virtual:{items:i,style:(0,_styleToCssString.default)({boxSizing:"border-box",width:"100%",height:t})}}},getVisibleItemBounds=exports.getVisibleItemBounds=function(e,t,r,i,s){e=Math.max(0,e),e=Math.max(0,Math.floor(e/i));return{startIndex:e,endIndex:Math.min(e+Math.ceil(t/i)+s-1,r)}};