"use strict";var R=Object.create;var a=Object.defineProperty;var S=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var P=Object.getPrototypeOf;var I=Object.prototype.hasOwnProperty;var c=(o,e)=>a(o,"name",{value:e,configurable:true});var g=(o,e)=>{for(var s in e)a(o,s,{get:e[s],enumerable:true})};var i=(o,e,s,n)=>{if(e&&typeof e==="object"||typeof e==="function"){for(let l of k(e))if(!I.call(o,l)&&l!==s)a(o,l,{get:()=>e[l],enumerable:!(n=S(e,l))||n.enumerable})}return o};var r=(o,e,s)=>(s=o!=null?R(P(o)):{},i(e||!o||!o.__esModule?a(s,"default",{value:o,enumerable:true}):s,o));var q=o=>i(a({},"__esModule",{value:true}),o);var x={};g(x,{default:()=>w});module.exports=q(x);var t=require("react/jsx-runtime");var d=require("@mdi/js");var C=r(require("classnames"));var u=require("react");var y=r(require("react-jss"));var f=r(require("react-modal"));var h=r(require("../icon"));var N=r(require("./styles"));class m extends u.Component{render(){const{children:e,classes:s,isOpen:n,close:l,className:p=null,portal:O="modal-portal",shouldCloseOnOverlayClick:v=false,showClose:b=true}=this.props;return(0,t.jsxs)(f.default,{isOpen:n,className:(0,C.default)({[`${s.modal}`]:true,[`${p}`]:p}),portalClassName:s.component,overlayClassName:s.overlay,portal:O,onRequestClose:l,shouldCloseOnOverlayClick:v,appElement:document.querySelector("#root"),children:[b&&l&&(0,t.jsx)("button",{type:"button",className:s.close,onClick:l,children:(0,t.jsx)(h.default,{icon:d.mdiClose,size:1.5})}),(0,t.jsx)("div",{className:s.content,children:e})]})}}c(m,"Modal");var w=(0,y.default)(N.default)(m);
