UNPKG

@progress/kendo-react-popup

Version:

React Popup positions a piece of content next to a specific anchor component. KendoReact Popup package

9 lines (8 loc) 902 B
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=1e3/60,d=function(u,s,t={}){let e,l,n,r,i=0;t=t||{};const c=function(){i=t.leading===!1?0:new Date().getTime(),e=void 0,r=u.apply(l,n),e||(l=n=null)};return function(){const o=new Date().getTime();!i&&t.leading===!1&&(i=o);const a=s-(o-i);return l=void 0,n=arguments,a<=0||a>s?(e&&(clearTimeout(e),e=void 0),i=o,r=u.apply(l,n),e||(l=n=null)):!e&&t.trailing!==!1&&(e=window.setTimeout(c,a)),r}};exports.FRAME_DURATION=f;exports.throttle=d;