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AAItE,EAAI,IAAI2E,MAAM,uBAAyBL,EAAM,KAEjD,MADAtE,EAAE4E,KAAO,mBACH5E,CACP,CACA,OAAOoE,EAAIE,EACZ,CACAD,EAAe5B,KAAO,WACrB,OAAOD,OAAOC,KAAK2B,EACpB,EACAC,EAAe7E,QAAUgF,EACzBK,EAAOC,QAAUT,EACjBA,EAAeE,GAAK,K","sources":["webpack://evalarmjs/../share/app/javascript/components/modal.js","webpack://evalarmjs/../share/app/javascript/services/attach-terms-modal.js","webpack://evalarmjs/../share/app/javascript/services/i18n.js","webpack://evalarmjs/../share/app/javascript/services/validators.js","webpack://evalarmjs/../share/app/javascript/packs/sessions.js","webpack://evalarmjs/./app/javascript/packs/sessions.js","webpack://evalarmjs/../../shared/node_modules/moment/locale/ sync ^\\.\\/.*$"],"sourcesContent":["import ReactDOM from 'react-dom'\nimport { Fragment, PureComponent } from 'react'\n\nexport const ModalHeader = ({ onClose, children }) => (\n \n \n {(children && children !== true) ?
{children}
: null}\n
\n);\n\nclass Modal extends PureComponent {\n static defaultProps = {\n skin: 'default',\n size: 'md',\n header: false\n }\n\n constructor(props) {\n super(props);\n this.el = document.createElement('div');\n document.getElementById('modals').appendChild(this.el);\n }\n\n componentWillUnmount() {\n document.getElementById('modals').removeChild(this.el);\n }\n\n renderContent() {\n return this.props.children;\n }\n\n render() {\n return ReactDOM.createPortal(\n \n
\n
\n
\n {\n this.props.header && (\n \n {this.props.header}\n \n )\n }\n {this.renderContent()}\n
\n
\n
\n
\n ,\n this.el\n );\n }\n}\n\nexport const openModal = (render, custom = {}) => new Promise((resolve, reject) => {\n let node = document.createElement('div');\n let onSuccess = (...args) => {\n ReactDOM.unmountComponentAtNode(node);\n resolve(...args);\n };\n let opts = {\n ...custom,\n onSuccess,\n onCancel(...args) {\n ReactDOM.unmountComponentAtNode(node);\n reject(...args);\n },\n onClose: onSuccess\n };\n ReactDOM.render({render(opts)}, node);\n});\n\nexport default Modal;\n","import Modal, { openModal, ModalHeader } from '../components/modal'\nimport { Translate } from '../services/i18n'\n\nexport default node => {\n node.addEventListener('click', e => {\n e.preventDefault();\n openModal(props => (\n \n \n EVALARM\n
\n \n
\n
\n