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