var _a;var ResponsiveSize;(function(e){e[e["XSmall"]=0]="XSmall";e[e["Small"]=1]="Small";e[e["Medium"]=2]="Medium";e[e["Large"]=3]="Large";e[e["XLarge"]=4]="XLarge"})(ResponsiveSize||(ResponsiveSize={}));var SizeLimits=(_a={},_a[ResponsiveSize.XSmall]=500,_a[ResponsiveSize.Small]=768,_a[ResponsiveSize.Medium]=992,_a[ResponsiveSize.Large]=1200,_a);function getSizeOfWidth(e){var i=Object.keys(SizeLimits);for(var s=0;s<i.length;s++){var r=i[s];if(e<SizeLimits[r]){return Number(r)}}return ResponsiveSize.XLarge}var ResponsiveUIHelper=function(){function e(e,i,s){var r=this;this.el=e;if(typeof ResizeObserver!=="undefined"){new ResizeObserver((function(){var e=r.el.clientWidth;s===null||s===void 0?void 0:s(e);var n=getSizeOfWidth(e);if(r.size!==n){r.size=n;i(n)}})).observe(this.el)}}return e}();ResponsiveUIHelper.getSize=function(e){return getSizeOfWidth(e)};export{ResponsiveSize as R,ResponsiveUIHelper as a};