"use strict";var core=require("@gem-sdk/core"),React=require("react");const useMarqueeStyles=e=>{let{styles:r,setting:s,itemSize:t}=e,{itemMaxWidth:u}=r||{},{itemWidthType:c}=s||{},a=core.useCurrentDevice(),o=React.useMemo(()=>core.getResponsiveValueByScreen(c,a),[c,a]),l=React.useMemo(()=>{let e=core.getResponsiveValueByScreen(u,a);return"FIT_CONTENT"===o&&(e="auto"),"BASE_ON_NUMBER_OF_ITEMS"===o&&(e=`calc(100% / ${t})`),e},[a,u,t,o]),n=React.useMemo(()=>l?.includes("%"),[l]);return{isFullWidth:n}};exports.useMarqueeStyles=useMarqueeStyles;
