import React from'react';class Modal extends React.Component{constructor(a){super(a)}componentWillUnmount(){try{document.querySelector('.modal-backdrop').remove()}catch(a){}}render(){return React.createElement('div',{className:'modal fade',id:this.props.id,tabIndex:'-1',role:'dialog',"aria-labelledby":'ModalLabel',"aria-hidden":'true'},React.createElement('div',{className:'modal-dialog',role:'document'},React.createElement('div',{className:'modal-content'},React.createElement('div',{className:'modal-header'},React.createElement('h5',{className:'modal-title',id:'ModalLabel'},this.props.title),React.createElement('button',{type:'button',className:'close',"data-dismiss":'modal',"aria-label":'Close'},React.createElement('span',{"aria-hidden":'true'},'\xD7'))),React.createElement('div',{className:'modal-body'},this.props.children),this.props.footer?React.createElement('div',{className:'modal-footer'},React.createElement('button',{type:'button',className:'btn btn-secondary',"data-dismiss":'modal'},'Close'),this.props.confirmButton?React.createElement('button',{type:'button',className:'btn btn-primary',onClick:()=>this.onConfirm()},this.props.confirmButton):''):'')))}}export default Modal;