"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("react-transition-group"),t=require("clsx"),n=require("@prom-ui/core/Portal"),o=require("@prom-ui/core/BodyScrollLock");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function c(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var a=c(e),l=i(t);function u(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function s(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?u(Object(t),!0).forEach((function(r){f(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function f(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==typeof r?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},d.apply(this,arguments)}function p(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var b={root:"mZ7dv",backdrop:"AJyr0",enterActive:"aDdF3",exitActive:"rC-Zl",enter:"NgQBr",exit:"_9LKEC"},y=["isOpen","isRenderPortal","isAnimated","isBodyScrollLock","style","zIndex","children","className","onClick"],O=a.forwardRef((function(e,t){var i=e.isOpen,c=void 0!==i&&i,u=e.isRenderPortal,f=void 0===u||u,O=e.isAnimated,v=void 0===O||O,m=e.isBodyScrollLock,j=void 0!==m&&m,g=e.style,P=void 0===g?{}:g,k=e.zIndex,h=void 0===k?1e3:k,w=e.children,S=e.className,E=e.onClick,x=p(e,y);return a.createElement(r.CSSTransition,{in:c,timeout:v?225:0,classNames:b,unmountOnExit:!0},a.createElement(n.Portal,{isActive:f},a.createElement(o.BodyScrollLock,{isActive:j}),a.createElement("div",d({ref:t,className:l.default(b.root,S),style:s({zIndex:h},P),"aria-hidden":!0,"data-testid":"backdrop","data-qaid":"backdrop"},x),a.createElement("div",{className:b.backdrop,onClick:E}),w)))}));O.displayName="Backdrop",exports.Backdrop=O,require("./style.production.css");
