text: (window.webpackJsonp=window.webpackJsonp||[]).push([[0],{110:function(e,a,t){},481:function(e,a,t){e.exports=t(630)},486:function(e,a,t){},497:function(e,a){},499:function(e,a){},533:function(e,a){},534:function(e,a){},601:function(e,a){},624:function(e,a,t){var s={"./abap":132,"./abap.js":132,"./abc":133,"./abc.js":133,"./actionscript":134,"./actionscript.js":134,"./ada":135,"./ada.js":135,"./apache_conf":136,"./apache_conf.js":136,"./applescript":137,"./applescript.js":137,"./asciidoc":138,"./asciidoc.js":138,"./assembly_x86":139,"./assembly_x86.js":139,"./autohotkey":140,"./autohotkey.js":140,"./batchfile":141,"./batchfile.js":141,"./bro":142,"./bro.js":142,"./c9search":143,"./c9search.js":143,"./c_cpp":144,"./c_cpp.js":144,"./cirru":145,"./cirru.js":145,"./clojure":146,"./clojure.js":146,"./cobol":147,"./cobol.js":147,"./coffee":148,"./coffee.js":148,"./coldfusion":149,"./coldfusion.js":149,"./csharp":150,"./csharp.js":150,"./csound_document":151,"./csound_document.js":151,"./csound_orchestra":152,"./csound_orchestra.js":152,"./csound_score":153,"./csound_score.js":153,"./css":154,"./css.js":154,"./curly":155,"./curly.js":155,"./d":156,"./d.js":156,"./dart":157,"./dart.js":157,"./diff":158,"./diff.js":158,"./django":159,"./django.js":159,"./dockerfile":160,"./dockerfile.js":160,"./dot":161,"./dot.js":161,"./drools":162,"./drools.js":162,"./eiffel":163,"./eiffel.js":163,"./ejs":164,"./ejs.js":164,"./elixir":165,"./elixir.js":165,"./elm":166,"./elm.js":166,"./erlang":167,"./erlang.js":167,"./forth":168,"./forth.js":168,"./fortran":169,"./fortran.js":169,"./ftl":170,"./ftl.js":170,"./gcode":171,"./gcode.js":171,"./gherkin":172,"./gherkin.js":172,"./gitignore":173,"./gitignore.js":173,"./glsl":174,"./glsl.js":174,"./gobstones":175,"./gobstones.js":175,"./golang":176,"./golang.js":176,"./graphqlschema":177,"./graphqlschema.js":177,"./groovy":178,"./groovy.js":178,"./haml":179,"./haml.js":179,"./handlebars":180,"./handlebars.js":180,"./haskell":181,"./haskell.js":181,"./haskell_cabal":182,"./haskell_cabal.js":182,"./haxe":183,"./haxe.js":183,"./hjson":184,"./hjson.js":184,"./html":185,"./html.js":185,"./html_elixir":186,"./html_elixir.js":186,"./html_ruby":187,"./html_ruby.js":187,"./ini":188,"./ini.js":188,"./io":189,"./io.js":189,"./jack":190,"./jack.js":190,"./jade":191,"./jade.js":191,"./java":192,"./java.js":192,"./javascript":193,"./javascript.js":193,"./json":194,"./json.js":194,"./jsoniq":195,"./jsoniq.js":195,"./jsp":196,"./jsp.js":196,"./jssm":197,"./jssm.js":197,"./jsx":69,"./jsx.js":69,"./julia":198,"./julia.js":198,"./kotlin":199,"./kotlin.js":199,"./latex":200,"./latex.js":200,"./lean":201,"./lean.js":201,"./less":202,"./less.js":202,"./liquid":203,"./liquid.js":203,"./lisp":204,"./lisp.js":204,"./live_script":205,"./live_script.js":205,"./livescript":206,"./livescript.js":206,"./logiql":207,"./logiql.js":207,"./lsl":208,"./lsl.js":208,"./lua":209,"./lua.js":209,"./luapage":211,"./luapage.js":211,"./lucene":212,"./lucene.js":212,"./makefile":213,"./makefile.js":213,"./markdown":214,"./markdown.js":214,"./mask":215,"./mask.js":215,"./matlab":216,"./matlab.js":216,"./mavens_mate_log":217,"./mavens_mate_log.js":217,"./maze":218,"./maze.js":218,"./mel":219,"./mel.js":219,"./mips_assembler":220,"./mips_assembler.js":220,"./mipsassembler":221,"./mipsassembler.js":221,"./mushcode":222,"./mushcode.js":222,"./mysql":223,"./mysql.js":223,"./nix":224,"./nix.js":224,"./nsis":225,"./nsis.js":225,"./objectivec":226,"./objectivec.js":226,"./ocaml":227,"./ocaml.js":227,"./pascal":228,"./pascal.js":228,"./perl":229,"./perl.js":229,"./pgsql":230,"./pgsql.js":230,"./php":231,"./php.js":231,"./pig":232,"./pig.js":232,"./plain_text":233,"./plain_text.js":233,"./powershell":234,"./powershell.js":234,"./praat":235,"./praat.js":235,"./prolog":236,"./prolog.js":236,"./properties":237,"./properties.js":237,"./protobuf":238,"./protobuf.js":238,"./python":239,"./python.js":239,"./r":240,"./r.js":240,"./razor":241,"./razor.js":241,"./rdoc":242,"./rdoc.js":242,"./red":243,"./red.js":243,"./rhtml":244,"./rhtml.js":244,"./rst":245,"./rst.js":245,"./ruby":246,"./ruby.js":246,"./rust":247,"./rust.js":247,"./sass":248,"./sass.js":248,"./scad":249,"./scad.js":249,"./scala":250,"./scala.js":250,"./scheme":251,"./scheme.js":251,"./scss":252,"./scss.js":252,"./sh":253,"./sh.js":253,"./sjs":254,"./sjs.js":254,"./smarty":255,"./smarty.js":255,"./snippets":256,"./snippets.js":256,"./soy_template":257,"./soy_template.js":257,"./space":258,"./space.js":258,"./sparql":259,"./sparql.js":259,"./sql":260,"./sql.js":260,"./sqlserver":261,"./sqlserver.js":261,"./stylus":262,"./stylus.js":262,"./svg":263,"./svg.js":263,"./swift":264,"./swift.js":264,"./swig":265,"./swig.js":265,"./tcl":266,"./tcl.js":266,"./tex":267,"./tex.js":267,"./text":268,"./text.js":268,"./textile":269,"./textile.js":269,"./toml":270,"./toml.js":270,"./tsx":271,"./tsx.js":271,"./turtle":272,"./turtle.js":272,"./twig":273,"./twig.js":273,"./typescript":274,"./typescript.js":274,"./vala":275,"./vala.js":275,"./vbscript":276,"./vbscript.js":276,"./velocity":277,"./velocity.js":277,"./verilog":278,"./verilog.js":278,"./vhdl":279,"./vhdl.js":279,"./wollok":280,"./wollok.js":280,"./xml":281,"./xml.js":281,"./xquery":282,"./xquery.js":282,"./yaml":283,"./yaml.js":283};function l(e){var a=n(e);return t(a)}function n(e){var a=s[e];if(!(a+1)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a}l.keys=function(){return Object.keys(s)},l.resolve=n,e.exports=l,l.id=624},627:function(e,a,t){var s={"./abap":284,"./abap.js":284,"./abc":285,"./abc.js":285,"./actionscript":286,"./actionscript.js":286,"./ada":287,"./ada.js":287,"./apache_conf":288,"./apache_conf.js":288,"./applescript":289,"./applescript.js":289,"./asciidoc":290,"./asciidoc.js":290,"./assembly_x86":291,"./assembly_x86.js":291,"./autohotkey":292,"./autohotkey.js":292,"./batchfile":293,"./batchfile.js":293,"./bro":294,"./bro.js":294,"./c9search":295,"./c9search.js":295,"./c_cpp":296,"./c_cpp.js":296,"./cirru":297,"./cirru.js":297,"./clojure":298,"./clojure.js":298,"./cobol":299,"./cobol.js":299,"./coffee":300,"./coffee.js":300,"./coldfusion":301,"./coldfusion.js":301,"./csharp":302,"./csharp.js":302,"./csound_document":303,"./csound_document.js":303,"./csound_orchestra":304,"./csound_orchestra.js":304,"./csound_score":305,"./csound_score.js":305,"./css":306,"./css.js":306,"./curly":307,"./curly.js":307,"./d":308,"./d.js":308,"./dart":309,"./dart.js":309,"./diff":310,"./diff.js":310,"./django":311,"./django.js":311,"./dockerfile":312,"./dockerfile.js":312,"./dot":313,"./dot.js":313,"./drools":314,"./drools.js":314,"./eiffel":315,"./eiffel.js":315,"./ejs":316,"./ejs.js":316,"./elixir":317,"./elixir.js":317,"./elm":318,"./elm.js":318,"./erlang":319,"./erlang.js":319,"./forth":320,"./forth.js":320,"./fortran":321,"./fortran.js":321,"./ftl":322,"./ftl.js":322,"./gcode":323,"./gcode.js":323,"./gherkin":324,"./gherkin.js":324,"./gitignore":325,"./gitignore.js":325,"./glsl":326,"./glsl.js":326,"./gobstones":327,"./gobstones.js":327,"./golang":328,"./golang.js":328,"./graphqlschema":329,"./graphqlschema.js":329,"./groovy":330,"./groovy.js":330,"./haml":331,"./haml.js":331,"./handlebars":332,"./handlebars.js":332,"./haskell":333,"./haskell.js":333,"./haskell_cabal":334,"./haskell_cabal.js":334,"./haxe":335,"./haxe.js":335,"./hjson":336,"./hjson.js":336,"./html":337,"./html.js":337,"./html_elixir":338,"./html_elixir.js":338,"./html_ruby":339,"./html_ruby.js":339,"./ini":340,"./ini.js":340,"./io":341,"./io.js":341,"./jack":342,"./jack.js":342,"./jade":343,"./jade.js":343,"./java":344,"./java.js":344,"./javascript":345,"./javascript.js":345,"./json":346,"./json.js":346,"./jsoniq":347,"./jsoniq.js":347,"./jsp":348,"./jsp.js":348,"./jssm":349,"./jssm.js":349,"./jsx":350,"./jsx.js":350,"./julia":351,"./julia.js":351,"./kotlin":352,"./kotlin.js":352,"./latex":353,"./latex.js":353,"./lean":354,"./lean.js":354,"./less":355,"./less.js":355,"./liquid":356,"./liquid.js":356,"./lisp":357,"./lisp.js":357,"./live_script":358,"./live_script.js":358,"./livescript":359,"./livescript.js":359,"./logiql":360,"./logiql.js":360,"./lsl":361,"./lsl.js":361,"./lua":362,"./lua.js":362,"./luapage":363,"./luapage.js":363,"./lucene":364,"./lucene.js":364,"./makefile":365,"./makefile.js":365,"./markdown":366,"./markdown.js":366,"./mask":367,"./mask.js":367,"./matlab":368,"./matlab.js":368,"./maze":369,"./maze.js":369,"./mel":370,"./mel.js":370,"./mips_assembler":371,"./mips_assembler.js":371,"./mipsassembler":372,"./mipsassembler.js":372,"./mushcode":373,"./mushcode.js":373,"./mysql":374,"./mysql.js":374,"./nix":375,"./nix.js":375,"./nsis":376,"./nsis.js":376,"./objectivec":377,"./objectivec.js":377,"./ocaml":378,"./ocaml.js":378,"./pascal":379,"./pascal.js":379,"./perl":380,"./perl.js":380,"./pgsql":381,"./pgsql.js":381,"./php":382,"./php.js":382,"./pig":383,"./pig.js":383,"./plain_text":384,"./plain_text.js":384,"./powershell":385,"./powershell.js":385,"./praat":386,"./praat.js":386,"./prolog":387,"./prolog.js":387,"./properties":388,"./properties.js":388,"./protobuf":389,"./protobuf.js":389,"./python":390,"./python.js":390,"./r":391,"./r.js":391,"./razor":392,"./razor.js":392,"./rdoc":393,"./rdoc.js":393,"./red":394,"./red.js":394,"./rhtml":395,"./rhtml.js":395,"./rst":396,"./rst.js":396,"./ruby":397,"./ruby.js":397,"./rust":398,"./rust.js":398,"./sass":399,"./sass.js":399,"./scad":400,"./scad.js":400,"./scala":401,"./scala.js":401,"./scheme":402,"./scheme.js":402,"./scss":403,"./scss.js":403,"./sh":404,"./sh.js":404,"./sjs":405,"./sjs.js":405,"./smarty":406,"./smarty.js":406,"./snippets":407,"./snippets.js":407,"./soy_template":408,"./soy_template.js":408,"./space":409,"./space.js":409,"./sparql":410,"./sparql.js":410,"./sql":411,"./sql.js":411,"./sqlserver":412,"./sqlserver.js":412,"./stylus":413,"./stylus.js":413,"./svg":414,"./svg.js":414,"./swift":415,"./swift.js":415,"./swig":416,"./swig.js":416,"./tcl":417,"./tcl.js":417,"./tex":418,"./tex.js":418,"./text":419,"./text.js":419,"./textile":420,"./textile.js":420,"./toml":421,"./toml.js":421,"./tsx":422,"./tsx.js":422,"./turtle":423,"./turtle.js":423,"./twig":424,"./twig.js":424,"./typescript":425,"./typescript.js":425,"./vala":426,"./vala.js":426,"./vbscript":427,"./vbscript.js":427,"./velocity":428,"./velocity.js":428,"./verilog":429,"./verilog.js":429,"./vhdl":430,"./vhdl.js":430,"./wollok":431,"./wollok.js":431,"./xml":432,"./xml.js":432,"./xquery":433,"./xquery.js":433,"./yaml":434,"./yaml.js":434};function l(e){var a=n(e);return t(a)}function n(e){var a=s[e];if(!(a+1)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a}l.keys=function(){return Object.keys(s)},l.resolve=n,e.exports=l,l.id=627},628:function(e,a,t){var s={"./ambiance":435,"./ambiance.js":435,"./chaos":436,"./chaos.js":436,"./chrome":437,"./chrome.js":437,"./clouds":438,"./clouds.js":438,"./clouds_midnight":439,"./clouds_midnight.js":439,"./cobalt":440,"./cobalt.js":440,"./crimson_editor":441,"./crimson_editor.js":441,"./dawn":442,"./dawn.js":442,"./dracula":443,"./dracula.js":443,"./dreamweaver":444,"./dreamweaver.js":444,"./eclipse":445,"./eclipse.js":445,"./github":446,"./github.js":446,"./gob":447,"./gob.js":447,"./gruvbox":448,"./gruvbox.js":448,"./idle_fingers":449,"./idle_fingers.js":449,"./iplastic":450,"./iplastic.js":450,"./katzenmilch":451,"./katzenmilch.js":451,"./kr_theme":452,"./kr_theme.js":452,"./kuroir":453,"./kuroir.js":453,"./merbivore":454,"./merbivore.js":454,"./merbivore_soft":455,"./merbivore_soft.js":455,"./mono_industrial":456,"./mono_industrial.js":456,"./monokai":457,"./monokai.js":457,"./pastel_on_dark":458,"./pastel_on_dark.js":458,"./solarized_dark":459,"./solarized_dark.js":459,"./solarized_light":460,"./solarized_light.js":460,"./sqlserver":461,"./sqlserver.js":461,"./terminal":462,"./terminal.js":462,"./textmate":463,"./textmate.js":463,"./tomorrow":464,"./tomorrow.js":464,"./tomorrow_night":465,"./tomorrow_night.js":465,"./tomorrow_night_blue":466,"./tomorrow_night_blue.js":466,"./tomorrow_night_bright":467,"./tomorrow_night_bright.js":467,"./tomorrow_night_eighties":468,"./tomorrow_night_eighties.js":468,"./twilight":469,"./twilight.js":469,"./vibrant_ink":470,"./vibrant_ink.js":470,"./xcode":471,"./xcode.js":471};function l(e){var a=n(e);return t(a)}function n(e){var a=s[e];if(!(a+1)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a}l.keys=function(){return Object.keys(s)},l.resolve=n,e.exports=l,l.id=628},630:function(e,a,t){"use strict";t.r(a);var s,l=t(0),n=t.n(l),o=t(472),c=t.n(o),i=(t(486),t(23)),r=t(24),m=t(27),d=t(25),u=t(26),h=t(48),j=t(474),p=t.n(j),g=t(632),v=t(634),b=t(633),f=t(18),E=t(475),N=t(15),y={result:null,loading:!1},k={result:null,loading:!1},w=Object(f.c)({compiled:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"COMPILE":return Object(N.a)({},e,{result:a.payload});default:return e}},error:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"COMPILE":return Object(N.a)({},e,{courses:a.payload});default:return e}}}),_={},x=[E.a];try{s=Object(f.e)(w,_,Object(f.d)(f.a.apply(void 0,x),window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__()))}catch(K){s=Object(f.e)(w,_,Object(f.d)(f.a.apply(void 0,x)))}var O=s,S=t(4),C=t(631),M=function(e){function a(e){var t;return Object(i.a)(this,a),(t=Object(m.a)(this,Object(d.a)(a).call(this,e))).state={logInModal:"",signUpModal:"",user:null},t.displayLoginModal=t.displayLoginModal.bind(Object(S.a)(Object(S.a)(t))),t.displaySignUpModal=t.displaySignUpModal.bind(Object(S.a)(Object(S.a)(t))),t.closeModal=t.closeModal.bind(Object(S.a)(Object(S.a)(t))),t.logIn=t.logIn.bind(Object(S.a)(Object(S.a)(t))),t.signUp=t.signUp.bind(Object(S.a)(Object(S.a)(t))),t}return Object(u.a)(a,e),Object(r.a)(a,[{key:"displaySignUpModal",value:function(){this.setState({signUpModal:"is-active",logInModal:""})}},{key:"displayLoginModal",value:function(){this.setState({signUpModal:"",logInModal:"is-active"})}},{key:"closeModal",value:function(){this.setState({signUpModal:"",logInModal:""})}},{key:"logIn",value:function(){}},{key:"signUp",value:function(){}},{key:"render",value:function(){return n.a.createElement("div",null,n.a.createElement("nav",{className:"navbar",role:"navigation","aria-label":"main navigation"},n.a.createElement("div",{className:"navbar-brand"},n.a.createElement(C.a,{className:"navbar-item",to:"/"},n.a.createElement("img",{src:"/favicon.ico",alt:"logo",width:"35",height:"80"})),n.a.createElement(C.a,{to:"#",type:"button",className:"navbar-burger burger","aria-label":"menu","aria-expanded":"false","data-target":"navbarBasicExample"},n.a.createElement("span",{"aria-hidden":"true"}),n.a.createElement("span",{"aria-hidden":"true"}),n.a.createElement("span",{"aria-hidden":"true"}))),n.a.createElement("div",{id:"navbarBasicExample",className:"navbar-menu"},n.a.createElement("div",{className:"navbar-start"},n.a.createElement(C.a,{to:"/",className:"navbar-item"},"Home"),n.a.createElement(C.a,{to:"/editor?session=".concat(localStorage.getItem("session")),className:"navbar-item"},"Editor")),n.a.createElement("div",{className:"navbar-end"},n.a.createElement("div",{className:"navbar-item"},n.a.createElement("div",{className:"buttons"},n.a.createElement("button",{className:"button is-primary",onClick:this.displaySignUpModal},n.a.createElement("strong",null,"Sign up")),n.a.createElement("button",{className:"button is-info",onClick:this.displayLoginModal},"Log in")))))),n.a.createElement("div",{id:"signUpModal",className:"modal ".concat(this.state.logInModal)},n.a.createElement("div",{className:"modal-background"}),n.a.createElement("div",{className:"modal-card"},n.a.createElement("header",{className:"modal-card-head"},n.a.createElement("p",{className:"modal-card-title"},"Log In"),n.a.createElement("button",{className:"delete",onClick:this.closeModal})),n.a.createElement("section",{className:"modal-card-body"},n.a.createElement("br",null),n.a.createElement("div",{className:"control has-icons-left has-icons-right"},n.a.createElement("input",{className:"input is-medium",type:"email",placeholder:"Email"}),n.a.createElement("span",{className:"icon is-left"},n.a.createElement("i",{className:"fas fa-envelope"}))),n.a.createElement("br",null),n.a.createElement("div",{className:"control has-icons-left has-icons-right"},n.a.createElement("input",{className:"input is-medium",type:"password",placeholder:"Password"}),n.a.createElement("span",{className:"icon is-left"},n.a.createElement("i",{className:"fas fa-lock"}))),n.a.createElement("br",null)),n.a.createElement("footer",{className:"modal-card-foot"},n.a.createElement("button",{className:"button is-success",onClick:this.logIn},"Submit"),n.a.createElement("button",{className:"button",onClick:this.closeModal},"Cancel")))),n.a.createElement("div",{id:"logInModal",className:"modal ".concat(this.state.signUpModal)},n.a.createElement("div",{className:"modal-background"}),n.a.createElement("div",{className:"modal-card"},n.a.createElement("header",{className:"modal-card-head"},n.a.createElement("p",{className:"modal-card-title"},"Sign Up"),n.a.createElement("button",{className:"delete",onClick:this.closeModal})),n.a.createElement("section",{className:"modal-card-body"},n.a.createElement("br",null),n.a.createElement("div",{className:"control has-icons-left has-icons-right"},n.a.createElement("input",{className:"input is-medium",type:"username",placeholder:"Username"}),n.a.createElement("span",{className:"icon is-left"},n.a.createElement("i",{className:"fas fa-user"}))),n.a.createElement("br",null),n.a.createElement("div",{className:"control has-icons-left has-icons-right"},n.a.createElement("input",{className:"input is-medium",type:"email",placeholder:"Email"}),n.a.createElement("span",{className:"icon is-left"},n.a.createElement("i",{className:"fas fa-envelope"}))),n.a.createElement("br",null),n.a.createElement("div",{className:"control has-icons-left has-icons-right"},n.a.createElement("input",{className:"input is-medium",type:"password",placeholder:"Password"}),n.a.createElement("span",{className:"icon is-left"},n.a.createElement("i",{className:"fas fa-lock"}))),n.a.createElement("br",null),n.a.createElement("div",{className:"control has-icons-left has-icons-right"},n.a.createElement("input",{className:"input is-medium",type:"confirmPassword",placeholder:"Confirm Password"}),n.a.createElement("span",{className:"icon is-left"},n.a.createElement("i",{className:"fas fa-lock"}))),n.a.createElement("br",null)),n.a.createElement("footer",{className:"modal-card-foot"},n.a.createElement("button",{className:"button is-success",onClick:this.signUp},"Submit"),n.a.createElement("button",{className:"button",onClick:this.closeModal},"Cancel")))))}}]),a}(l.Component),q=(t(110),function(e){function a(){return Object(i.a)(this,a),Object(m.a)(this,Object(d.a)(a).apply(this,arguments))}return Object(u.a)(a,e),Object(r.a)(a,[{key:"componentDidMount",value:function(){var e=new URLSearchParams(window.location.search).get("to");e&&e.length>0&&this.props.history.push("".concat(e))}},{key:"render",value:function(){return n.a.createElement("div",{className:"content-wrapper"},n.a.createElement("section",{className:"hero is-landing is-large"},n.a.createElement("div",{className:"hero-body"},n.a.createElement("div",{className:"container has-text-centered"},n.a.createElement("div",{className:"columns"},n.a.createElement("div",{className:"column is-6 is-offset-3"},n.a.createElement("h1",{className:"title is-1"},"ByteMarshall"),n.a.createElement("h2",{className:"subtitle is-4"},"A realtime collaborative runtime environment for your favourite programming languages"),n.a.createElement("br",null),n.a.createElement("figure",{className:"image"},n.a.createElement(C.a,{to:"/editor",href:"/",className:"button is-primary is-large is-outlined"},n.a.createElement("span",null,"View Editor"),n.a.createElement("span",{className:"icon"},n.a.createElement("i",{className:"fas fa-arrow-right"}))))))))),n.a.createElement("section",{className:"bg-light"},n.a.createElement("div",{className:"container section"},n.a.createElement("div",{className:"content has-text-centered"},n.a.createElement("h1",null,"Features you love")),n.a.createElement("nav",{className:"columns"},n.a.createElement("div",{className:"column has-text-centered"},n.a.createElement("article",{className:"media"},n.a.createElement("figure",{className:"media-left"},n.a.createElement("span",{className:"icon has-text-danger"},n.a.createElement("i",{className:"far fa-smile-wink fa-3x"}))),n.a.createElement("div",{className:"media-content"},n.a.createElement("div",{className:"content"},n.a.createElement("h4",{className:"heading"},n.a.createElement("strong",null,"Free")),n.a.createElement("p",null,"ByteMarshall is easy and free to use start now and learn more effectively"))))),n.a.createElement("div",{className:"column has-text-centered"},n.a.createElement("article",{className:"media"},n.a.createElement("figure",{className:"media-left"},n.a.createElement("span",{className:"icon has-text-danger"},n.a.createElement("i",{className:"fas fa-user-friends fa-3x"}))),n.a.createElement("div",{className:"media-content"},n.a.createElement("div",{className:"content"},n.a.createElement("h4",{className:"heading"},n.a.createElement("strong",null,"Collaborative")),n.a.createElement("p",null,"You could work on programming problems with your friends under in reltime on different screens"))))),n.a.createElement("div",{className:"column has-text-centered"},n.a.createElement("article",{className:"media"},n.a.createElement("figure",{className:"media-left"},n.a.createElement("span",{className:"icon has-text-danger"},n.a.createElement("i",{className:"fas fa-check-circle fa-3x"}))),n.a.createElement("div",{className:"media-content"},n.a.createElement("div",{className:"content"},n.a.createElement("h4",{className:"heading"},n.a.createElement("strong",null,"Simple")),n.a.createElement("p",null,"Simple user experience and multple themes and languages are supported on one page which makes it very easy to use ")))))))),n.a.createElement("section",{className:"bg-white"},n.a.createElement("div",{className:"container section"},n.a.createElement("div",{className:"columns is-vcentered"},n.a.createElement("div",{className:"column"},n.a.createElement("figure",{className:"image"},n.a.createElement("img",{src:"/assets/img/screenshot.png",alt:""}))),n.a.createElement("div",{className:"column "},n.a.createElement("div",{className:"content"},n.a.createElement("h1",null,"Discover your editor"),n.a.createElement("p",null,"Discover what a more pleasant programming experience feels like  "),n.a.createElement(C.a,{to:"/editor",href:"/",className:"button is-danger"},"Discover")))))),n.a.createElement("footer",{className:"footer"},n.a.createElement("div",{className:"container"},n.a.createElement("div",{className:"content has-text-centered"},n.a.createElement("p",null,"Built with",n.a.createElement("span",{className:"icon has-text-danger"},n.a.createElement("i",{className:"fas fa-heart"})),"by ",n.a.createElement("a",{href:"http://jesseokeya.com"},"Jesse Okeya")," @ ",(new Date).getFullYear(),".")))))}}]),a}(l.Component)),L=t(46),I=t(476),U=t(477),B=t(478),z=t.n(B),A=function(){var e=JSON.parse(localStorage.getItem("languageTemplates"));return{python:e&&e.python?e.python:"def main():\n\tprint('Hello World!')\n\nmain()",javascript:e&&e.javascript?e.javascript:"const welcome = 'Hello World!';\nconsole.log(welcome);",golang:e&&e.golang?e.golang:'package main\n\nimport "fmt"\n\nfunc main() {\n\tfmt.Println("Hello World!");\n}'}},P=function(){return window.location.hostname.includes("localhost")?"http://localhost:8080":""},T=t(479),D=t.n(T),W=P(),J=function(){return{type:"LOADING"}},H=(t(622),t(69),t(623),["javascript","python","golang"]),G=["monokai","github","tomorrow","kuroir","twilight","xcode","textmate","solarized_dark","solarized_light","terminal"],F=z()(P());F.on("connected",function(e){return console.log(e)}),H.forEach(function(e){t(624)("./".concat(e)),t(627)("./".concat(e))}),G.forEach(function(e){t(628)("./".concat(e))});var R=function(e){function a(e){var t;return Object(i.a)(this,a),(t=Object(m.a)(this,Object(d.a)(a).call(this,e))).state={splits:2,orientation:"beside",value:[],theme:"solarized_dark",mode:"javascript",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,laoding:!1,fontSize:14,showGutter:!0,showPrintMargin:!0,highlightActiveLine:!0,enableSnippets:!0,showLineNumbers:!0,useWorker:!1,hasSaved:!1},t.setTheme=t.setTheme.bind(Object(S.a)(Object(S.a)(t))),t.setMode=t.setMode.bind(Object(S.a)(Object(S.a)(t))),t.onChange=t.onChange.bind(Object(S.a)(Object(S.a)(t))),t.setBoolean=t.setBoolean.bind(Object(S.a)(Object(S.a)(t))),t.setOrientation=t.setOrientation.bind(Object(S.a)(Object(S.a)(t))),t.handleCompile=t.handleCompile.bind(Object(S.a)(Object(S.a)(t))),t}return Object(u.a)(a,e),Object(r.a)(a,[{key:"onLoad",value:function(e){e.$editors[1].getSession().setUseWorker(!1)}},{key:"onChange",value:function(e){var a=this;e.join().trim()!==this.state.value.join().trim()&&this.setState({value:e},function(e){return F.emit("stateChanged",Object(N.a)({},a.state))})}},{key:"setTheme",value:function(e){var a=this;this.setState({theme:e.target.value},function(e){return F.emit("stateChanged",Object(N.a)({},a.state))})}},{key:"setMode",value:function(e){var a=this,t=A();this.setState({mode:e.target.value},function(e){return F.emit("stateChanged",Object(N.a)({},a.state))}),this.setState({value:[t[e.target.value],this.state.value[1]]})}},{key:"setBoolean",value:function(e,a){this.setState(Object(L.a)({},e,a))}},{key:"setOrientation",value:function(e){var a=this;this.setState({orientation:e.target.value},function(e){return F.emit("stateChanged",Object(N.a)({},a.state))})}},{key:"componentDidMount",value:function(){var e=this,a=new URLSearchParams(window.location.search).get("session");a&&a.length>0?this.setState({session:a}):this.props.history.push("/editor?session=".concat(localStorage.getItem("session")));var t=document.getElementsByClassName("ace_editor")[2];t&&t.classList.add("disable-div");var s,l=A(),n=localStorage.getItem("settings"),o=localStorage.getItem("languageTemplates"),c=this.props.compiled.result||"";if(Object(I.isEmpty)(c)||this.props.compiled.result.stdout&&(c=this.props.compiled.result.stdout),o){o=JSON.parse(o);var i=(n=JSON.parse(n)).mode?n.mode:this.state.mode;s=[l&&l[i]?l[i]:"const welcome = 'Hello World!';\nconsole.log(welcome);",c||"".concat(o.javascript?"Output: ":"Output: Hello World!")]}else o=JSON.parse(o),s=[l&&l[this.state.mode]?l[this.state.mode]:"const welcome = 'Hello World!';\nconsole.log(welcome);",c||"".concat(o&&o.javascript?"Output: ":"Output: Hello World!")];n&&(n="string"===typeof n?JSON.parse(n):n,this.setState(Object(N.a)({},n))),this.setState({value:s},function(){return e.handleCompile()}),this.setState({loading:this.props.compiled.loading})}},{key:"componentWillReceiveProps",value:function(e){var a=this;this.setState({loading:e.compiled.loading});var t=e.compiled.result&&e.compiled.result.stdout&&e.compiled.result.stdout.length>0?"Output: ".concat(e.compiled.result.stdout):"".concat(e.compiled.result&&e.compiled.result.stderr?e.compiled.result.stderr:"Something went wrong!. Check your syntax");this.setState({value:[this.state.value[0],t]},function(e){F.emit("stateChanged",Object(N.a)({},a.state)),F.on("updateState",function(e){e.session&&a.state.session&&e.session===a.state.session&&a.setState(Object(N.a)({},e,{loading:!1,hasSaved:!1}),a.updateStore)})})}},{key:"handleCompile",value:function(){var e=this;this.setState({loading:!0}),this.updateStore(),this.setState({hasSaved:!0}),setTimeout(function(a){return e.setState({hasSaved:!1})},3e3),this.props.compileCode({language:this.state.mode,syntax:this.state.value[0]})}},{key:"updateStore",value:function(){var e=localStorage.getItem("languageTemplates"),a={};e?(e=JSON.parse(e),(a=Object(N.a)({},e))[this.state.mode]=this.state.value[0],localStorage.setItem("languageTemplates",JSON.stringify(a))):(a[this.state.mode]=this.state.value[0],localStorage.setItem("languageTemplates",JSON.stringify(a)));var t={mode:this.state.mode,theme:this.state.theme,orientation:this.state.orientation};localStorage.setItem("settings",JSON.stringify(t))}},{key:"notifyUser",value:function(){return n.a.createElement("div",null,n.a.createElement("br",null),n.a.createElement("div",{className:"notification is-primary"},n.a.createElement("button",{className:"delete"}),n.a.createElement("strong",null,"Code was successfully saved.")))}},{key:"render",value:function(){var e=this;return n.a.createElement("div",{className:"columns"},n.a.createElement("div",{className:"column"},n.a.createElement("div",{className:"field"},n.a.createElement("label",null,"Mode:"),n.a.createElement("p",{className:"control"},n.a.createElement("span",{className:"select"},n.a.createElement("select",{name:"mode",onChange:this.setMode,value:this.state.mode},H.map(function(e){return n.a.createElement("option",{key:e,value:e},e)}))))),n.a.createElement("div",{className:"field"},n.a.createElement("label",null,"Theme:"),n.a.createElement("p",{className:"control"},n.a.createElement("span",{className:"select"},n.a.createElement("select",{name:"Theme",onChange:this.setTheme,value:this.state.theme},G.map(function(e){return n.a.createElement("option",{key:e,value:e},e)}))))),n.a.createElement("div",{className:"field"},n.a.createElement("label",null,"Orientation:"),n.a.createElement("p",{className:"control"},n.a.createElement("span",{className:"select"},n.a.createElement("select",{name:"orientation",onChange:this.setOrientation,value:this.state.orientation},["beside","below"].map(function(e){return n.a.createElement("option",{key:e,value:e},e)}))))),n.a.createElement("div",{className:"field"},n.a.createElement("p",{className:"control"},n.a.createElement("label",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",checked:this.state.enableBasicAutocompletion,onChange:function(a){return e.setBoolean("enableBasicAutocompletion",a.target.checked)}})," Enable Basic Autocomplete"))),n.a.createElement("div",{className:"field"},n.a.createElement("p",{className:"control"},n.a.createElement("label",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",checked:this.state.enableLiveAutocompletion,onChange:function(a){return e.setBoolean("enableLiveAutocompletion",a.target.checked)}})," Enable Live Autocomplete"))),n.a.createElement("div",{className:"field"},n.a.createElement("p",{className:"control"},n.a.createElement("label",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",checked:this.state.showGutter,onChange:function(a){return e.setBoolean("showGutter",a.target.checked)}})," Show Gutter"))),n.a.createElement("div",{className:"field"},n.a.createElement("p",{className:"control"},n.a.createElement("label",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",checked:this.state.showPrintMargin,onChange:function(a){return e.setBoolean("showPrintMargin",a.target.checked)}})," Show Print Margin"))),n.a.createElement("div",{className:"field"},n.a.createElement("p",{className:"control"},n.a.createElement("label",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",checked:this.state.highlightActiveLine,onChange:function(a){return e.setBoolean("highlightActiveLine",a.target.checked)}})," Highlight Active Line"))),n.a.createElement("div",{className:"field"},n.a.createElement("p",{className:"control"},n.a.createElement("label",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",checked:this.state.enableSnippets,onChange:function(a){return e.setBoolean("enableSnippets",a.target.checked)}})," Enable Snippets"))),n.a.createElement("div",{className:"field"},n.a.createElement("p",{className:"control"},n.a.createElement("label",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",checked:this.state.showLineNumbers,onChange:function(a){return e.setBoolean("showLineNumbers",a.target.checked)}})," Show Line Numbers")))),n.a.createElement("div",{className:"examples column"},n.a.createElement("div",{className:"text-center"},n.a.createElement("button",{id:"runButton",onClick:this.handleCompile,className:"button is-primary is-rounded"},n.a.createElement("span",{className:"text-bold"},"Run"),n.a.createElement("span",{className:"icon is-small"},n.a.createElement("i",{className:"fas fa-check"}))),this.state.loading&&n.a.createElement("div",{className:"loader move-right"}),this.state.hasSaved&&this.notifyUser()),n.a.createElement("h2",{className:"text-bold"},"Editor"),this.state.value&&this.state.value.length>0&&n.a.createElement(U.split,{mode:this.state.mode,orientation:this.state.orientation,splits:this.state.splits,theme:this.state.theme,name:"target",onLoad:this.onLoad,debounceChangePeriod:1e3,onChange:function(a){return e.onChange(a)},fontSize:this.state.fontSize,useWorker:this.state.useWorker,height:"150vh",width:window.innerWidth<=769?"95vw":"80vw",showPrintMargin:this.state.showPrintMargin,showGutter:this.state.showGutter,highlightActiveLine:this.state.highlightActiveLine,value:this.state.value,setOptions:{displayIndentGuides:!1,enableBasicAutocompletion:this.state.enableBasicAutocompletion,enableLiveAutocompletion:this.state.enableLiveAutocompletion,enableSnippets:this.state.enableSnippets,showLineNumbers:this.state.showLineNumbers,tabSize:2}})))}}]),a}(l.Component),X=Object(h.b)(function(e){return{compiled:e.compiled}},{compileCode:function(e){return function(a){a(J()),D.a.post("".concat(W,"/api/compile"),e).then(function(e){return a({type:"COMPILE",payload:e.data||""})}).catch(function(e){return a({type:"COMPILE",payload:{}})})}}})(R),V=function(e){return n.a.createElement("div",null,n.a.createElement(M,e),n.a.createElement(q,e))},Y=function(e){return n.a.createElement("div",null,n.a.createElement(M,e),n.a.createElement("br",null),n.a.createElement("div",{className:"container is-fluid"},n.a.createElement(X,e)))},$=function(e){function a(){return Object(i.a)(this,a),Object(m.a)(this,Object(d.a)(a).apply(this,arguments))}return Object(u.a)(a,e),Object(r.a)(a,[{key:"componentDidMount",value:function(){localStorage.getItem("session")||localStorage.setItem("session",p()())}},{key:"render",value:function(){return n.a.createElement(h.a,{store:O},n.a.createElement(g.a,null,n.a.createElement(v.a,null,n.a.createElement(b.a,{exact:!0,path:"/",component:V}),n.a.createElement(b.a,{path:"/editor",component:Y}))))}}]),a}(l.Component);Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));c.a.render(n.a.createElement($,null),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(function(e){e.unregister()})}},[[481,1,2]]]);
  //# sourceMappingURL=main.69acca59.chunk.js.map