"use strict";var React=require("react"),useCarousel=require("./useCarousel.js");const useListCarousel=e=>{let{productImages:r,itemPerRow:s,vertical:u}=e,{moveToIdx:t}=useCarousel.useCarousel(),l=React.useCallback(()=>{let e=[...r];return e?.splice(t,s)},[r,s,t]),a=React.useMemo(()=>{let e=l();if(e.length>=s)return e;if(u)return[...r];let t=[...r],a=s-e.length;return t.push(...Array(a).fill(null)),t},[l,s,r,u]);return{listRender:a}};exports.useListCarousel=useListCarousel;
