"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("@prom-ui/core/useBrowserLayoutEffect");function n(e){if(e&&"object"==typeof e&&"default"in e)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var r,o=n(e),i="i1xT-",u="Zt3lv",c=function(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)},a=function(){return c(/^iPad/i)||c(/^Mac/i)&&navigator.maxTouchPoints>1},d=function(){return c(/^iPhone/i)||a()},l=0,f=function(e){var n=e.isActive,c=void 0===n||n;return t.useBrowserLayoutEffect((function(){return c?(1===++l&&(e=d()?u:i,t=document.documentElement,n=t.style.paddingRight,t.style.paddingRight="".concat(window.innerWidth-document.documentElement.clientWidth,"px"),t.classList.add(e),r=function(){t.style.paddingRight=n,t.classList.remove(e)}),function(){0===--l&&r()}):function(){};var e,t,n}),[c]),o.createElement(o.Fragment,null)};f.displayName="BodyScrollLock",exports.BodyScrollLock=f,require("./style.production.v2.css");
