@getontime/cli
Version:
Time keeping for live events
2 lines • 1.43 kB
JavaScript
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`f14ad0099eab1969fdd065b56af5fdd3cf530de6`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`107fad8b-5e83-48a6-8ac0-a61cd45182f7`,e._sentryDebugIdIdentifier=`sentry-dbid-107fad8b-5e83-48a6-8ac0-a61cd45182f7`)}catch{}})();import{a as e,n as t,t as n}from"./jsx-runtime-BNC90REB.js";import{Bt as r,K as i}from"./constants-8b9Q9Bj6.js";var a=e(t(),1);function o(e,t,n){if(!e.current||!t.current)return;let r=e.current.getBoundingClientRect(),i=t.current.getBoundingClientRect(),a=r.top-i.top+t.current.scrollTop-n;t.current.scrollTo({top:a,behavior:`smooth`})}function s({followRef:e,scrollRef:t,doFollow:n,topOffset:r=100,setScrollFlag:i,followTrigger:s}){return(0,a.useEffect)(()=>{!n||!s||e.current&&t.current&&(i?.(!0),window.requestAnimationFrame(()=>{o(e,t,r),i?.(!1)}))},[s,n,e,t,i,r]),(0,a.useCallback)((n=e,i=t,a=r)=>{n&&i&&o(n,i,a)},[e,t,r])}var c={blink:`_blink_e5t0d_1`,fourtyfive:`_fourtyfive_e5t0d_13`,followButton:`_followButton_e5t0d_17`,hidden:`_hidden_e5t0d_38`},l=n();function u(e){let{isVisible:t,onClickHandler:n}=e;return(0,l.jsxs)(`button`,{className:i([c.followButton,!t&&c.hidden]),onClick:n,type:`button`,children:[(0,l.jsx)(r,{}),`Follow`]})}export{s as n,u as t};
//# sourceMappingURL=FollowButton-Cl31kc9t.js.map