"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/extends"),r=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/objectWithoutProperties"),o=require("react"),i=require("react-transition-group"),n=require("clsx"),c=require("@prom-ui/core/Portal"),a=require("@prom-ui/core/BodyScrollLock"),l=require("@prom-ui/core/useForwardRef");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function s(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 o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var d=u(e),p=u(r),f=u(t),b=s(o),y=u(n),O={root:"ew14A",backdrop:"RtyKW",enterActive:"FuHNM",exitActive:"qwiIx",enter:"Ww68r",exit:"MBjXR"},m=["isOpen","isRenderPortal","isAnimated","isBodyScrollLock","style","zIndex","children","className","onClick"];function v(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function j(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?v(Object(t),!0).forEach((function(r){p.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):v(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var P=b.forwardRef((function(e,r){var t=e.isOpen,o=void 0!==t&&t,n=e.isRenderPortal,u=void 0===n||n,s=e.isAnimated,p=void 0===s||s,v=e.isBodyScrollLock,P=void 0!==v&&v,k=e.style,w=void 0===k?{}:k,h=e.zIndex,q=void 0===h?1e3:h,g=e.children,x=e.className,E=e.onClick,R=f.default(e,m),S=l.useForwardRef(r,null);return b.createElement(i.CSSTransition,{nodeRef:S,in:o,timeout:p?225:0,classNames:O,unmountOnExit:!0},b.createElement(c.Portal,{isActive:u},b.createElement(a.BodyScrollLock,{isActive:P}),b.createElement("div",d.default({ref:S,className:y.default(O.root,x),style:j({zIndex:q},w),"aria-hidden":!0,"data-testid":"backdrop","data-qaid":"backdrop"},R),b.createElement("div",{className:O.backdrop,onClick:E}),g)))}));P.displayName="Backdrop",exports.Backdrop=P,require("./style.production.css");
