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