{"version":3,"sources":["App.js","reportWebVitals.js","index.js"],"names":["App","props","changeActive","bind","state","type","text","x","this","substance","findActive","data","filter","d","toString","toLowerCase","setState","active","particlesrendered","particles","map","p","className","particle","split","join","onClick","subtypes","subt","dangerouslySetInnerHTML","__html","symbol","name","antiparticles","changeMode","Component","reportWebVitals","onPerfEntry","Function","then","getCLS","getFID","getFCP","getLCP","getTTFB","ReactDOM","render","StrictMode","document","getElementById"],"mappings":"4oNAsIeA,E,kDA/Hb,WAAYC,GAAQ,IAAD,8BACjB,cAAMA,IACDC,aAAe,EAAKA,aAAaC,KAAlB,gBACpB,EAAKC,MAAQ,CACX,OAAU,CACRC,KAAM,qCACNC,KAAM,2IAER,UAAa,UARE,E,gDAYnB,SAAaC,GACX,GAA6B,WAAzBC,KAAKJ,MAAMK,UAAwB,CACrC,IAAIC,EAAaC,EAAaC,QAAO,SAAAC,GAAC,OAAKA,EAAER,KAAKS,WAAWC,gBAAkBR,EAAEO,WAAWC,iBAAgB,GAC5GP,KAAKQ,SAAS,CACZC,OAAQP,O,wBAKd,WAC+B,WAAzBF,KAAKJ,MAAMK,UACbD,KAAKQ,SAAS,CACZP,UAAW,aACXQ,OAAQ,CACNZ,KAAM,aACNC,KAAM,4wBAIVE,KAAKQ,SAAS,CACZP,UAAW,SACXQ,OAAQ,CACNZ,KAAM,qCACNC,KAAM,+I,oBAMd,WAAU,IACJY,EADG,OAqDP,OAhDEA,EAD2B,WAAzBV,KAAKJ,MAAMK,UACOU,EAAkBC,KAAI,SAAAC,GAAC,OACzC,yBAASC,UAEJ,EAAKlB,MAAMa,OAAX,KAA0BF,gBAAkBM,EAAEE,SAASR,eAC9B,eAAzB,EAAKX,MAAMK,WACkB,sCAA7B,EAAKL,MAAMa,OAAX,KAED,QAAUI,EAAEE,SAASC,MAAM,KAAKC,KAAK,KAAO,eAC5C,QAAUJ,EAAEE,SAASC,MAAM,KAAKC,KAAK,KAAO,QAC5CC,QAAS,kBAAM,EAAKxB,aAAamB,EAAE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C,SAQE,qBAAKoB,UAAU,WAAf,SACE,sBAAKA,UAAU,mBAAf,UACE,qBAAKA,UAAU,SAAf,eACA,qBAAKA,UAAU,OAAf,gCAIN,0BAASA,UAAU,UAAnB,UACE,6BAAKd,KAAKJ,MAAMa,OAAOZ,OACvB,mBAAGwB,wBAA0B,CAAEC,OAAQtB,KAAKJ,MAAMa,OAAOX,oB,GAxHnD6B,aCMHC,EAZS,SAAAC,GAClBA,GAAeA,aAAuBC,UACxC,6BAAqBC,MAAK,YAAkD,IAA/CC,EAA8C,EAA9CA,OAAQC,EAAsC,EAAtCA,OAAQC,EAA8B,EAA9BA,OAAQC,EAAsB,EAAtBA,OAAQC,EAAc,EAAdA,QAC3DJ,EAAOH,GACPI,EAAOJ,GACPK,EAAOL,GACPM,EAAON,GACPO,EAAQP,OCDdQ,IAASC,OACP,cAAC,IAAMC,WAAP,UACE,cAAC,EAAD,MAEFC,SAASC,eAAe,SAM1Bb,M","file":"static/js/main.a64f6484.chunk.js","sourcesContent":["import './App.scss';\nimport React, { Component } from 'react'\nimport * as data from './data/text.json';\nimport * as particles from './data/particles.json';\nimport * as antiparticles from './data/antiparticles.json';\n\nclass App extends Component {\n constructor(props) {\n super(props);\n this.changeActive = this.changeActive.bind(this);\n this.state = { \n \"active\": {\n type: \"Standard model of particle physics\",\n text: \"Tap the colored sections for more on each particle type.

Tap the matter/antimatter switch to see matter's antimatter partners.\"\n },\n \"substance\": \"matter\"\n };\n }\n\n changeActive(x) {\n if (this.state.substance === \"matter\") {\n let findActive = data.default.filter(d => (d.type.toString().toLowerCase() === x.toString().toLowerCase()))[0];\n this.setState({\n active: findActive\n })\n }\n }\n\n changeMode() {\n if (this.state.substance === \"matter\") {\n this.setState({\n substance: \"antimatter\",\n active: {\n type: \"Antimatter\",\n text: \"Many of the standard model particles have antimatter partners. Antiparticles have the opposite electric charge, but the same mass as their alter egos. Physicists are still trying to understand why matter is more prevalent than antimatter. For example, negatively charged electrons are much more prevalent in our cosmos than their positively charged antiparticle, positrons. Because neutrinos have no electric charge, scientists are puzzling over whether neutrinos and antineutrinos are distinct particles, or the same thing.\"\n }\n })\n } else {\n this.setState({\n substance: \"matter\",\n active: {\n type: \"Standard model of particle physics\",\n text: \"Tap the colored sections for more on each particle type.

Tap the matter/antimatter switch to see matter's antimatter partners.\"\n }\n })\n }\n }\n\n render() {\n let particlesrendered;\n\n // this if-else statement renders our different boxes depending whether we're looking at matter or antimatter particles\n if (this.state.substance === \"matter\") {\n particlesrendered = particles.default.map(p => (\n
this.changeActive(p.particle)}>\n
\n {p.subtypes.map(subt => (\n
\n
\n
\n
{subt.name}
\n
\n
\n ))}\n
\n
\n ))\n \n } else {\n particlesrendered = antiparticles.default.map(p => (\n
this.changeActive(p.particle)}>\n
\n {p.subtypes.map(subt => (\n
\n
\n
\n
{subt.name}
\n
\n
\n ))}\n
\n
\n ))\n \n }\n return (\n
\n
\n {particlesrendered}\n
this.changeMode()}>\n
matter
\n
antimatter
\n
\n
this.changeActive(\"higgs boson\")}>\n
\n
\n
H
\n
Higgs boson
\n
\n
\n
\n
\n

{this.state.active.type}

\n

\n
\n
\n
\n );\n }\n}\n\nexport default App;\n","const reportWebVitals = onPerfEntry => {\n if (onPerfEntry && onPerfEntry instanceof Function) {\n import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {\n getCLS(onPerfEntry);\n getFID(onPerfEntry);\n getFCP(onPerfEntry);\n getLCP(onPerfEntry);\n getTTFB(onPerfEntry);\n });\n }\n};\n\nexport default reportWebVitals;\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport App from './App';\nimport reportWebVitals from './reportWebVitals';\n\nReactDOM.render(\n \n \n ,\n document.getElementById('root')\n);\n\n// If you want to start measuring performance in your app, pass a function\n// to log results (for example: reportWebVitals(console.log))\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\nreportWebVitals();\n"],"sourceRoot":""}