import{useCurrentDevice as e,getResponsiveValueByScreen as r}from"@gem-sdk/core";import{useMemo as t}from"react";let useMarqueeStyles=u=>{let{styles:l,setting:o,itemSize:s}=u,{itemMaxWidth:a}=l||{},{itemWidthType:c}=o||{},m=e(),_=t(()=>r(c,m),[c,m]),E=t(()=>{let e=r(a,m);return"FIT_CONTENT"===_&&(e="auto"),"BASE_ON_NUMBER_OF_ITEMS"===_&&(e=`calc(100% / ${s})`),e},[m,a,s,_]),M=t(()=>E?.includes("%"),[E]);return{isFullWidth:M}};export{useMarqueeStyles};
