{"version":3,"file":"chunks/compatibilitytesting.js","sources":["webpack://GUI/./src/playground/compatibility-testing.jsx"],"sourcesContent":["import React from 'react';\nimport ReactDOM from 'react-dom';\n\nimport GUI from '../containers/gui.jsx';\nimport HashParserHOC from '../lib/hash-parser-hoc.jsx';\nimport AppStateHOC from '../lib/app-state-hoc.jsx';\nconst WrappedGui = AppStateHOC(HashParserHOC(GUI));\n\n\nconst DEFAULT_PROJECT_ID = '10015059';\n\nclass Player extends React.Component {\n constructor (props) {\n super(props);\n this.updateProject = this.updateProject.bind(this);\n\n this.state = {\n projectId: window.location.hash.substring(1) || DEFAULT_PROJECT_ID\n };\n }\n componentDidMount () {\n window.addEventListener('hashchange', this.updateProject);\n if (!window.location.hash.substring(1)) {\n window.location.hash = DEFAULT_PROJECT_ID;\n }\n }\n componentWillUnmount () {\n window.addEventListener('hashchange', this.updateProject);\n }\n updateProject () {\n this.setState({projectId: window.location.hash.substring(1)});\n }\n render () {\n return (\n