import e from"../../node_modules/classnames/index.js";import o from"../../node_modules/lodash/isNil.js";import t from"react";import"../../node_modules/reactstrap/esm/index.js";import r from"../Button/Button.js";import l from"../../node_modules/@phosphor-icons/react/dist/icons/X.es.js";import a from"../Icon/IconBadge.js";import i from"../Stack/Stack.js";import m from"../Text/Text.js";import d from"../Title/Title.js";import s from"../colors.js";import{__exports as n}from"../../_virtual/index.js";const c=({children:c,disablePadding:p=!1,disableScrolling:g=!1,error:h,footer:f,height:u,isOpen:x,maxWidth:E=!1,size:j="md",title:b,toggleModal:v})=>t.createElement(n.Modal,{centered:!0,className:e("height-80",{"max-width-600px":E}),contentClassName:e("max-height-80",{"modal-height-60":"60"===u,"modal-height-80":"80"===u}),isOpen:x,size:j,toggle:v},t.createElement("div",{className:"position-absolute",style:{right:"-0.65rem",top:"-0.65rem",zIndex:1e3}},t.createElement(r,{"aria-label":"Close",color:"link",onClick:v,tight:!0,title:"Close"},t.createElement(a,{border:1,borderColor:s["gray-light"],color:s["gray-lighter"],colorForeground:s["gray-darker"],icon:l,size:"1.5rem",sizeForeground:"0.5rem"}))),t.createElement(i,{flex:1,fullHeight:!0,fullWidth:!0,overflowY:"hidden",paddingTop:p?0:4,spacing:3},b&&t.createElement(i,{fullWidth:!0,paddingX:p?0:4},t.createElement(n.ModalHeader,{className:"p-0 border-bottom-0",tag:"div"},t.createElement(d,{level:2,noMarginBottom:!0},b))),t.createElement(i,{flex:1,fullWidth:!0,overflowY:g?void 0:"auto",paddingBottom:p?0:4,paddingX:p?0:4,spacing:3},!o(h)&&t.createElement(m,{legacyColor:"danger"},h),t.createElement(n.ModalBody,{className:"p-0 d-flex flex-1 flex-column display-2"},c),f&&t.createElement(n.ModalFooter,{className:"p-0 border-top-0"},f))));export{c as default};
//# sourceMappingURL=Modal.js.map
