{"version":3,"file":"main.min.js","sources":["main.min.js"],"sourcesContent":["// import Popper\n// ../../../node_modules/popper.js/dist/umd/popper.js\n\n// import required js-files Bootstrap 5\n// ../../../node_modules/bootstrap/js/dist/alert.js\n// ../../../node_modules/bootstrap/js/dist/button.js\n// ../../../node_modules/bootstrap/js/dist/carousel.js\n// ../../../node_modules/bootstrap/js/dist/collapse.js\n// ../../../node_modules/bootstrap/js/dist/dropdown.js\n// ../../../node_modules/bootstrap/js/dist/modal.js\n// ../../../node_modules/bootstrap/js/dist/popover.js\n// ../../../node_modules/bootstrap/js/dist/scrollspy.js\n// ../../../node_modules/bootstrap/js/dist/tab.js\n// ../../../node_modules/bootstrap/js/dist/toast.js\n// ../../../node_modules/bootstrap/js/dist/tooltip.js\n\n\nfunction bruh_moment(){\n\talert('this is a bruh moment')\n}\n\nconst downloadToFile = (content, filename, contentType) => {\n const a = document.createElement('a');\n const file = new Blob([content], {type: contentType});\n \n a.href= URL.createObjectURL(file);\n a.download = filename;\n a.click();\n\n\tURL.revokeObjectURL(a.href);\n};\n\nfunction get_smiles_from_element_text(el_id){\n\tvar inputVal = document.getElementById(el_id).value;\n\tlet url = `https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/name/${inputVal}/property/CanonicalSMILES/JSON`;\n\tconsole.log(url)\n\tfetch(url)\n\t.then(res => res.json())\n\t.then((out) => {\n\t console.log('Aye, got that dub from PubChem');\n\t //console.log(out[\"PropertyTable\"][\"Properties\"][0][\"CanonicalSMILES\"])\n\t document.getElementById(\"inputSMILES\").value = out[\"PropertyTable\"][\"Properties\"][0][\"CanonicalSMILES\"]\n\t})\n\t.catch(err => { \n\t\tbruh_moment()\n\t\tthrow err });\n}\n\n\n\nfunction draw_me_like_one_of_your_french_girls(mol){\n\t\n\tmol.condense_abbreviations();\n\t//var canvas = document.getElementById(\"draw-canvas-2\");\n\t//mol.draw_to_canvas(canvas, -1, -1);\n\tvar dest = document.getElementById(\"draw-output\");\n\tvar svg = mol.get_svg();\n\tdest.outerHTML = \"