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