"use strict";var core=require("@gem-sdk/core"),React=require("react");const useMarquee=({children:e,isPause:r,isPreview:t,rate:u=0,speed:o=0})=>{let c=core.useEditorMode(),s=React.useMemo(()=>React.Children.count(core.filterToolbarPreview(e)),[e]),a=React.useMemo(()=>"edit"!==c||!r&&(!!t||"edit"!==c||u>0),[u,t,c,r]),i=React.useMemo(()=>a?(o??0)*100:u,[u,a,o]);return{itemSize:s,isPlay:a,rateUse:i}};exports.useMarquee=useMarquee;
